Files
ISUP/front/dist/js/326.baf1129d.js
T
2023-09-22 13:13:03 +03:00

350 lines
2.3 MiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(self["webpackChunkfront"]=self["webpackChunkfront"]||[]).push([[326],{709:function(e){
/*!
* DevExpress Gantt (dx-gantt.min)
* Version: 4.1.37
* Build date: Thu Dec 01 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
*/
!function(t,i){e.exports=i()}(0,(function(){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=73)}([function(e,t,i){"use strict";i.r(t),i.d(t,"__extends",(function(){return o})),i.d(t,"__assign",(function(){return r})),i.d(t,"__rest",(function(){return a})),i.d(t,"__decorate",(function(){return s})),i.d(t,"__param",(function(){return l})),i.d(t,"__metadata",(function(){return d})),i.d(t,"__awaiter",(function(){return u})),i.d(t,"__generator",(function(){return c})),i.d(t,"__createBinding",(function(){return h})),i.d(t,"__exportStar",(function(){return p})),i.d(t,"__values",(function(){return f})),i.d(t,"__read",(function(){return g})),i.d(t,"__spread",(function(){return m})),i.d(t,"__spreadArrays",(function(){return _})),i.d(t,"__spreadArray",(function(){return v})),i.d(t,"__await",(function(){return y})),i.d(t,"__asyncGenerator",(function(){return C})),i.d(t,"__asyncDelegator",(function(){return b})),i.d(t,"__asyncValues",(function(){return x})),i.d(t,"__makeTemplateObject",(function(){return w})),i.d(t,"__importStar",(function(){return S})),i.d(t,"__importDefault",(function(){return I})),i.d(t,"__classPrivateFieldGet",(function(){return E})),i.d(t,"__classPrivateFieldSet",(function(){return D}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var r=function(){return(r=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]])}return i}function s(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a}function l(e,t){return function(i,n){t(i,n,e)}}function d(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,i,n){return new(i||(i=Promise))((function(o,r){function a(e){try{l(n.next(e))}catch(e){r(e)}}function s(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))}function c(e,t){var i,n,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,n=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!((o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}var h=Object.create?function(e,t,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[i]}})}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]};function p(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||h(t,e,i)}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,o,r=i.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(o)throw o.error}}return a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function _(){for(var e=0,t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<i;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)n[o]=r[a];return n}function v(e,t,i){if(i||2===arguments.length)for(var n,o=0,r=t.length;o<r;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function C(e,t,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=i.apply(e,t||[]),r=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){o[e]&&(n[e]=function(t){return new Promise((function(i,n){r.push([e,t,i,n])>1||s(e,t)}))})}function s(e,t){try{(i=o[e](t)).value instanceof y?Promise.resolve(i.value.v).then(l,d):u(r[0][2],i)}catch(e){u(r[0][3],e)}var i}function l(e){s("next",e)}function d(e){s("throw",e)}function u(e,t){e(t),r.shift(),r.length&&s(r[0][0],r[0][1])}}function b(e){var t,i;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(i=!i)?{value:y(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e=f(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=e[i]&&function(t){return new Promise((function(n,o){(function(e,t,i,n){Promise.resolve(n).then((function(t){e({value:t,done:i})}),t)})(n,o,(t=e[i](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var T=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&h(t,e,i);return T(t,e),t}function I(e){return e&&e.__esModule?e:{default:e}}function E(e,t,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)}function D(e,t,i,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,i):o?o.value=i:t.set(e,i),i}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numberToStringHex=t.numberToStringBin=t.isOdd=t.isEven=t.isNonNullString=t.isString=t.isNumber=t.boolToString=t.boolToInt=t.isDefined=void 0;var n=i(39);t.isDefined=function(e){return null!=e},t.boolToInt=function(e){return e?1:0},t.boolToString=function(e){return e?"1":"0"},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isNonNullString=function(e){return!!e},t.isEven=function(e){return e%2!=0},t.isOdd=function(e){return e%2==0},t.numberToStringBin=function(e,t){return void 0===t&&(t=0),n.StringUtils.padLeft(e.toString(2),t,"0")},t.numberToStringHex=function(e,t){return void 0===t&&(t=0),n.StringUtils.padLeft(e.toString(16),t,"0")}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GanttDataObjectNames=t.DataObject=void 0;var n=i(1),o=i(18),r=function(){function e(){this.internalId=o.MathUtils.generateGuid()}return e.prototype.assignFromObject=function(e){(0,n.isDefined)(e)&&(0,n.isDefined)(e.id)&&this.updateId(e.id)},e.prototype.updateId=function(e){this.id=e,this.internalId=String(e)},e}();t.DataObject=r,t.GanttDataObjectNames={task:"task",dependency:"dependency",resource:"resource",resourceAssignment:"assignment"}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DomUtils=void 0;var n=i(10),o=i(1),r=i(18),a=i(39),s=function(){function e(){}return e.clearInnerHtml=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},e.setStylePosition=function(e,t){e.left=r.MathUtils.round(t.x,3)+"px",e.top=r.MathUtils.round(t.y,3)+"px"},e.setStyleSize=function(e,t){e.width=r.MathUtils.round(t.width,3)+"px",e.height=r.MathUtils.round(t.height,3)+"px"},e.setStyleSizeAndPosition=function(t,i){e.setStylePosition(t,i),e.setStyleSize(t,i)},e.hideNode=function(e){if(e){var t=e.parentNode;t&&t.removeChild(e)}},e.isHTMLElementNode=function(e){return e.nodeType===Node.ELEMENT_NODE},e.isTextNode=function(e){return e.nodeType===Node.TEXT_NODE},e.isElementNode=function(e){return e.nodeType===Node.ELEMENT_NODE},e.isHTMLTableRowElement=function(e){return"TR"===e.tagName},e.isItParent=function(e,t){if(!e||!t)return!1;for(;t;){if(t===e)return!0;if("BODY"===t.tagName)return!1;t=t.parentNode}return!1},e.getParentByTagName=function(e,t){for(t=t.toUpperCase();e;){if("BODY"===e.tagName)return null;if(e.tagName===t)return e;e=e.parentNode}return null},e.getDocumentScrollTop=function(){var t=n.Browser.IE&&"hidden"===e.getCurrentStyle(document.body).overflow&&document.body.scrollTop>0;return n.Browser.WebKitFamily||n.Browser.Edge||t?n.Browser.MacOSMobilePlatform?window.pageYOffset:n.Browser.WebKitFamily&&document.documentElement.scrollTop||document.body.scrollTop:document.documentElement.scrollTop},e.getDocumentScrollLeft=function(){var t=n.Browser.IE&&"hidden"===e.getCurrentStyle(document.body).overflow&&document.body.scrollLeft>0;return n.Browser.Edge||t?document.body?document.body.scrollLeft:document.documentElement.scrollLeft:n.Browser.WebKitFamily?document.documentElement.scrollLeft||document.body.scrollLeft:document.documentElement.scrollLeft},e.getCurrentStyle=function(e){if(e.currentStyle)return e.currentStyle;if(document.defaultView&&document.defaultView.getComputedStyle){var t=document.defaultView.getComputedStyle(e,null);if(!t&&n.Browser.Firefox&&window.frameElement){for(var i=[],r=window.frameElement;!(t=document.defaultView.getComputedStyle(e,null));)i.push([r,r.style.display]),r.style.setProperty("display","block","important"),r="BODY"===r.tagName?r.ownerDocument.defaultView.frameElement:r.parentNode;t=function(e){if("object"!=typeof e||!o.isDefined(e))return e;var t={};for(var i in e)t[i]=e[i];return t}(t);for(var a=void 0,s=0;a=i[s];s++)a[0].style.display=a[1];document.body.offsetWidth}return t}return window.getComputedStyle(e,null)},e.setFocus=function(e){function t(){try{e.focus(),n.Browser.IE&&document.activeElement!==e&&e.focus()}catch(e){}}n.Browser.MacOSMobilePlatform?t():setTimeout((function(){t()}),100)},e.hasClassName=function(e,t){try{var i=t.split(" "),n=e.classList;if(n){for(var o=i.length-1;o>=0;o--)if(!n.contains(i[o]))return!1}else{var r=e.getAttribute&&e.getAttribute("class");if(!r)return!1;var a=r.split(" ");for(o=i.length-1;o>=0;o--)if(a.indexOf(i[o])<0)return!1}return!0}catch(e){return!1}},e.addClassName=function(t,i){if(!e.hasClassName(t,i)){var n=t.getAttribute&&t.getAttribute("class");t.setAttribute("class",""===n?i:n+" "+i)}},e.removeClassName=function(e,t){var i=" "+(e.getAttribute&&e.getAttribute("class"))+" ",n=i.replace(" "+t+" "," ");i.length!==n.length&&e.setAttribute("class",a.StringUtils.trim(n))},e.toggleClassName=function(t,i,n){void 0===n?e.hasClassName(t,i)?e.removeClassName(t,i):e.addClassName(t,i):n?e.addClassName(t,i):e.removeClassName(t,i)},e.pxToInt=function(e){return l(e,parseInt)},e.pxToFloat=function(e){return l(e,parseFloat)},e.getAbsolutePositionY=function(t){function i(t){return Math.round(t.getBoundingClientRect().top+e.getDocumentScrollTop())}return t?n.Browser.IE?function(t){return n.Browser.IE&&null===t.parentNode?0:t.getBoundingClientRect().top+e.getDocumentScrollTop()}(t):n.Browser.Firefox&&n.Browser.Version>=3?i(t):n.Browser.Opera?function(t){var i=!0;t&&e.isHTMLTableRowElement(t)&&t.cells.length>0&&(t=t.cells[0]);for(var n=d(t,!1);null!=t;)n+=t.offsetTop,i||(n-=t.scrollTop),t=t.offsetParent,i=!1;return n+document.body.scrollTop}(t):n.Browser.NetscapeFamily&&(!n.Browser.Firefox||n.Browser.Version<3)?function(t){for(var i=d(t,!1),o=!0;null!=t;){if(i+=t.offsetTop,o||null==t.offsetParent||(i-=t.scrollTop),!o&&n.Browser.Firefox){var r=e.getCurrentStyle(t);"DIV"===t.tagName&&"visible"!==r.overflow&&(i+=e.pxToInt(r.borderTopWidth))}o=!1,t=t.offsetParent}return i}(t):n.Browser.WebKitFamily||n.Browser.Edge?i(t):function(e){for(var t=0,i=!0;null!=e;)t+=e.offsetTop,i||null==e.offsetParent||(t-=e.scrollTop),i=!1,e=e.offsetParent;return t}(t):0},e.getAbsolutePositionX=function(t){function i(t){return Math.round(t.getBoundingClientRect().left+e.getDocumentScrollLeft())}return t?n.Browser.IE?function(t){return n.Browser.IE&&null===t.parentNode?0:t.getBoundingClientRect().left+e.getDocumentScrollLeft()}(t):n.Browser.Firefox&&n.Browser.Version>=3?i(t):n.Browser.Opera&&n.Browser.Version<=12?function(e){for(var t=!0,i=d(e,!0);null!=e;)i+=e.offsetLeft,t||(i-=e.scrollLeft),e=e.offsetParent,t=!1;return i+document.body.scrollLeft}(t):n.Browser.NetscapeFamily&&(!n.Browser.Firefox||n.Browser.Version<3)?function(t){for(var i=d(t,!0),o=!0;null!=t;){if(i+=t.offsetLeft,o||null==t.offsetParent||(i-=t.scrollLeft),!o&&n.Browser.Firefox){var r=e.getCurrentStyle(t);"DIV"===t.tagName&&"visible"!==r.overflow&&(i+=e.pxToInt(r.borderLeftWidth))}o=!1,t=t.offsetParent}return i}(t):n.Browser.WebKitFamily||n.Browser.Edge?i(t):function(e){for(var t=0,i=!0;null!=e;)t+=e.offsetLeft,i||null==e.offsetParent||(t-=e.scrollLeft),i=!1,e=e.offsetParent;return t}(t):0},e.isInteractiveControl=function(e){return["A","INPUT","SELECT","OPTION","TEXTAREA","BUTTON","IFRAME"].indexOf(e.tagName)>-1},e.getClearClientHeight=function(t){return t.offsetHeight-(e.getTopBottomPaddings(t)+e.getVerticalBordersWidth(t))},e.getTopBottomPaddings=function(t,i){var n=i||e.getCurrentStyle(t);return e.pxToInt(n.paddingTop)+e.pxToInt(n.paddingBottom)},e.getVerticalBordersWidth=function(t,i){o.isDefined(i)||(i=n.Browser.IE&&9!==n.Browser.MajorVersion&&window.getComputedStyle?window.getComputedStyle(t):e.getCurrentStyle(t));var r=0;return"none"!==i.borderTopStyle&&(r+=e.pxToFloat(i.borderTopWidth)),"none"!==i.borderBottomStyle&&(r+=e.pxToFloat(i.borderBottomWidth)),r},e.getNodes=function(e,t){for(var i=e.all||e.getElementsByTagName("*"),n=[],o=0;o<i.length;o++){var r=i[o];t(r)&&n.push(r)}return n},e.getChildNodes=function(e,t){for(var i=e.childNodes,n=[],o=0;o<i.length;o++){var r=i[o];t(r)&&n.push(r)}return n},e.getNodesByClassName=function(t,i){if(t.querySelectorAll){var n=t.querySelectorAll("."+i),o=[];return n.forEach((function(e){return o.push(e)})),o}return e.getNodes(t,(function(t){return e.hasClassName(t,i)}))},e.getChildNodesByClassName=function(t,i){return t.querySelectorAll?function(e,t){for(var i=[],n=0;n<e.length;n++){var o=e[n];t(o)&&i.push(o)}return i}(t.querySelectorAll("."+i),(function(e){return e.parentNode===t})):e.getChildNodes(t,(function(t){return!!e.isElementNode(t)&&o.isNonNullString(t.className)&&e.hasClassName(t,t.className)}))},e.getVerticalScrollBarWidth=function(){if(void 0===e.verticalScrollBarWidth){var t=document.createElement("DIV");t.style.cssText="position: absolute; top: 0px; left: 0px; visibility: hidden; width: 200px; height: 150px; overflow: hidden; box-sizing: content-box",document.body.appendChild(t);var i=document.createElement("P");t.appendChild(i),i.style.cssText="width: 100%; height: 200px;";var n=i.offsetWidth;t.style.overflow="scroll";var o=i.offsetWidth;n===o&&(o=t.clientWidth),e.verticalScrollBarWidth=n-o,document.body.removeChild(t)}return e.verticalScrollBarWidth},e.getHorizontalBordersWidth=function(t,i){o.isDefined(i)||(i=n.Browser.IE&&window.getComputedStyle?window.getComputedStyle(t):e.getCurrentStyle(t));var r=0;return"none"!==i.borderLeftStyle&&(r+=e.pxToFloat(i.borderLeftWidth)),"none"!==i.borderRightStyle&&(r+=e.pxToFloat(i.borderRightWidth)),r},e.getFontFamiliesFromCssString=function(e){return e.split(",").map((function(e){return a.StringUtils.trim(e.replace(/'|"/gi,""))}))},e.getInnerText=function(t){if(n.Browser.Safari&&n.Browser.MajorVersion<=5){null===e.html2PlainTextFilter&&(e.html2PlainTextFilter=document.createElement("DIV"),e.html2PlainTextFilter.style.width="0",e.html2PlainTextFilter.style.height="0",e.html2PlainTextFilter.style.overflow="visible",e.html2PlainTextFilter.style.display="none",document.body.appendChild(e.html2PlainTextFilter));var i=e.html2PlainTextFilter;i.innerHTML=t.innerHTML,i.style.display="";var o=i.innerText;return i.style.display="none",o}return n.Browser.NetscapeFamily||n.Browser.WebKitFamily||n.Browser.IE&&n.Browser.Version>=9||n.Browser.Edge?t.textContent:t.innerText},e.html2PlainTextFilter=null,e.verticalScrollBarWidth=void 0,e}();function l(e,t){var i=0;if(o.isDefined(e)&&""!==e)try{var n=e.indexOf("px");n>-1&&(i=t(e.substr(0,n)))}catch(e){}return i}function d(e,t){for(var i=0,n=!0;null!=e&&"BODY"!==e.tagName;){var o=s.getCurrentStyle(e);if("absolute"===o.position)break;n||"DIV"!==e.tagName||""!==o.position&&"static"!==o.position||(i-=t?e.scrollLeft:e.scrollTop),e=e.parentNode,n=!1}return i}t.DomUtils=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaEventSource=t.TaskTitlePosition=t.Position=t.ViewType=void 0,function(e){e[e.TenMinutes=0]="TenMinutes",e[e.Hours=1]="Hours",e[e.SixHours=2]="SixHours",e[e.Days=3]="Days",e[e.Weeks=4]="Weeks",e[e.Months=5]="Months",e[e.Quarter=6]="Quarter",e[e.Years=7]="Years",e[e.FiveYears=8]="FiveYears"}(t.ViewType||(t.ViewType={})),function(e){e[e.Left=0]="Left",e[e.Top=1]="Top",e[e.Right=2]="Right",e[e.Bottom=3]="Bottom"}(t.Position||(t.Position={})),function(e){e[e.Inside=0]="Inside",e[e.Outside=1]="Outside",e[e.None=2]="None"}(t.TaskTitlePosition||(t.TaskTitlePosition={})),function(e){e[e.TaskArea=0]="TaskArea",e[e.TaskEdit_Frame=1]="TaskEdit_Frame",e[e.TaskEdit_Progress=2]="TaskEdit_Progress",e[e.TaskEdit_Start=3]="TaskEdit_Start",e[e.TaskEdit_End=4]="TaskEdit_End",e[e.TaskEdit_DependencyStart=5]="TaskEdit_DependencyStart",e[e.TaskEdit_DependencyFinish=6]="TaskEdit_DependencyFinish",e[e.Successor_Wrapper=7]="Successor_Wrapper",e[e.Successor_DependencyStart=8]="Successor_DependencyStart",e[e.Successor_DependencyFinish=9]="Successor_DependencyFinish"}(t.TaskAreaEventSource||(t.TaskAreaEventSource={}))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Point=void 0;var n=function(){function e(e,t){this.x=e,this.y=t}return e.zero=function(){return new e(0,0)},e.fromNumber=function(t){return new e(t,t)},e.prototype.isZero=function(){return 0===this.x&&0===this.y},e.prototype.toString=function(){return JSON.stringify(this)},e.prototype.copyFrom=function(e){this.x=e.x,this.y=e.y},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.equals=function(e){return this.x===e.x&&this.y===e.y},e.prototype.offset=function(e,t){return this.x+=e,this.y+=t,this},e.prototype.offsetByPoint=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.multiply=function(e,t){return this.x*=e,this.y*=t,this},e.prototype.negative=function(){return this.x*=-1,this.y*=-1,this},e.prototype.applyConverter=function(e){return this.x=e(this.x),this.y=e(this.y),this},e.plus=function(t,i){return new e(t.x+i.x,t.y+i.y)},e.minus=function(t,i){return new e(t.x-i.x,t.y-i.y)},e.xComparer=function(e,t){return e.x-t.x},e.yComparer=function(e,t){return e.y-t.y},e.equals=function(e,t){return e.x===t.x&&e.y===t.y},e}();t.Point=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommandBase=void 0;var n=function(){function e(e){this.control=e}return Object.defineProperty(e.prototype,"modelManipulator",{get:function(){return this.control.modelManipulator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"history",{get:function(){return this.control.history},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"validationController",{get:function(){return this.control.validationController},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state||(this._state=this.getState()),this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!this.state.enabled)return!1;var i=this.executeInternal.apply(this,e);return i&&this.control.barManager.updateItemsState([]),i},e.prototype.isEnabled=function(){return this.control.settings.editing.enabled},e.prototype.executeInternal=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];throw new Error("Not implemented")},e}();t.CommandBase=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleCommandState=void 0;var n=function(e,t){this.visible=!0,this.enabled=e,this.value=t};t.SimpleCommandState=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DateTimeUtils=void 0;var n=i(55),o=i(56),r=i(1),a=i(19),s=i(57),l=function(){function e(){}return e.compareDates=function(e,t){return e&&t?t.getTime()-e.getTime():-1},e.areDatesEqual=function(e,t){return 0==this.compareDates(e,t)},e.getMaxDate=function(e,t){return e||t?e?t&&this.compareDates(e,t)>0?t:e:t:null},e.getMinDate=function(e,t){return e||t?e?t?this.compareDates(e,t)>0?e:t:e:t:null},e.getDaysBetween=function(e,t){var i=Math.abs(t.getTime()-e.getTime());return Math.ceil(i/this.msInDay)},e.getWeeksBetween=function(e,t){var i=this.getDaysBetween(e,t),n=Math.floor(i/7);return e.getDay()>t.getDay()&&n++,n},e.getMonthsDifference=function(e,t){var i=this.compareDates(e,t),n=i>=0?e:t,o=i>=0?t:e;return 12*(o.getFullYear()-n.getFullYear())+(o.getMonth()-n.getMonth())},e.getYearsDifference=function(e,t){return Math.abs(t.getFullYear()-e.getFullYear())},e.getDayNumber=function(e){return Math.ceil(e.getTime()/this.msInDay)},e.getDateByDayNumber=function(e){var t=new Date(e*this.msInDay);return t.setHours(0),t.setMinutes(0),t.setSeconds(0),t},e.addDays=function(e,t){return new Date(e.getTime()+t*this.msInDay)},e.checkDayOfMonth=function(e,t){return e==t.getDate()},e.checkDayOfWeek=function(e,t){return e==t.getDay()},e.checkMonth=function(e,t){return e==t.getMonth()},e.checkYear=function(e,t){return e==t.getFullYear()},e.checkDayOfWeekOccurrenceInMonth=function(e,t,i){var n=this.getSpecificDayOfWeekInMonthDates(t,e.getFullYear(),e.getMonth());return i==s.DayOfWeekMonthlyOccurrence.Last?this.areDatesEqual(e,n[n.length-1]):this.areDatesEqual(e,n[i])},e.getFirstDayOfWeekInMonth=function(e,t){return new Date(e,t,1).getDay()},e.getSpecificDayOfWeekInMonthDates=function(e,t,i){for(var n=this.getFirstDayOfWeekInMonth(t,i),o=e>=n?e-n:e+7-n,r=new Array,a=new Date(t,i,o+1);a.getMonth()==i;)r.push(a),a=this.addDays(a,7);return r},e.getSpecificDayOfWeekInMonthDate=function(e,t,i,n){var o=this.getSpecificDayOfWeekInMonthDates(e,t,i);return n==s.DayOfWeekMonthlyOccurrence.Last?o[o.length-1]:o[n]},e.checkValidDayInMonth=function(e,t,i){return!(i<1||i>31||new Date(e,t,i).getMonth()!=t)},e.getNextMonth=function(e,t){return void 0===t&&(t=1),(e+t)%12},e.convertToDate=function(e){if(e instanceof Date)return new Date(e);var t=Date.parse(e);return isNaN(t)?null:new Date(t)},e.convertTimeRangeToDateRange=function(e,t){var i=this.getDateByDayNumber(t),n=i.getFullYear(),o=i.getMonth(),r=i.getDate(),s=e.start,l=new Date(n,o,r,s.hour,s.min,s.sec,s.msec),d=e.end,u=new Date(n,o,r,d.hour,d.min,d.sec,d.msec);return new a.DateRange(l,u)},e.convertToTimeRanges=function(e){var t=this;return e instanceof Array?e.map((function(e){return t.convertToTimeRange(e)})):this.parseTimeRanges(e)},e.convertToTimeRange=function(e){return e?e instanceof o.TimeRange?e:(0,r.isDefined)(e.start)&&(0,r.isDefined)(e.end)?new o.TimeRange(this.convertToTime(e.start),this.convertToTime(e.end)):this.parseTimeRange(e):null},e.convertToTime=function(e){return e?e instanceof n.Time?e:e instanceof Date?this.getTimeGromJsDate(e):this.parseTime(e):null},e.parseTimeRanges=function(e){var t=this;return e?e.split(/;|,/).map((function(e){return t.parseTimeRange(e)})).filter((function(e){return!!e})):null},e.parseTimeRange=function(e){if(!e)return null;var t=e.split("-"),i=t[0],n=t[1];return(0,r.isDefined)(i)&&(0,r.isDefined)(n)?new o.TimeRange(this.parseTime(i),this.parseTime(n)):null},e.parseTime=function(e){if(!e)return null;var t=e.split(":"),i=parseInt(t[0])||0,o=parseInt(t[1])||0,r=parseInt(t[2])||0,a=parseInt(t[3])||0;return new n.Time(i,o,r,a)},e.getTimeGromJsDate=function(e){if(!e)return null;var t=e.getHours(),i=e.getMinutes(),o=e.getSeconds(),r=e.getMilliseconds();return new n.Time(t,i,o,r)},e.caclTimeDifference=function(e,t){return t.getTimeInMilleconds()-e.getTimeInMilleconds()},e.areTimesEqual=function(e,t){return 0==this.caclTimeDifference(e,t)},e.getMaxTime=function(e,t){return e||t?e?t&&this.caclTimeDifference(e,t)>0?t:e:t:null},e.getMinTime=function(e,t){return e||t?e?t?this.caclTimeDifference(e,t)>0?e:t:e:t:null},e.getLastTimeOfDay=function(){return new n.Time(23,59,59,999)},e.msInDay=864e5,e}();t.DateTimeUtils=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EvtUtils=void 0;var n=i(10),o=i(1),r=i(3),a=i(167),s=function(){function e(){}return e.preventEvent=function(e){e.cancelable&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},e.getEventSource=function(t){return o.isDefined(t)?e.getEventSourceCore(t):null},e.getEventSourceByPosition=function(t){if(!o.isDefined(t))return null;if(!document.elementFromPoint)return e.getEventSourceCore(t);var i=e.getEventX(t)-(e.clientEventRequiresDocScrollCorrection()?r.DomUtils.getDocumentScrollLeft():0),n=e.getEventY(t)-(e.clientEventRequiresDocScrollCorrection()?r.DomUtils.getDocumentScrollTop():0);return void 0===i||void 0===n?e.getEventSourceCore(t):document.elementFromPoint(i,n)},e.getEventSourceCore=function(e){return e.srcElement?e.srcElement:e.target},e.getMouseWheelEventName=function(){return n.Browser.Safari?"mousewheel":n.Browser.NetscapeFamily&&n.Browser.MajorVersion<17?"DOMMouseScroll":"wheel"},e.isLeftButtonPressed=function(t){return!!a.TouchUtils.isTouchEvent(t)||!!(t=n.Browser.IE&&o.isDefined(event)?event:t)&&(n.Browser.IE&&n.Browser.Version<11?!!n.Browser.MSTouchUI||t.button%2==1:n.Browser.WebKitFamily?"pointermove"===t.type||"pointerenter"===t.type||"pointerleave"===t.type?1===t.buttons:1===t.which:n.Browser.NetscapeFamily||n.Browser.Edge||n.Browser.IE&&n.Browser.Version>=11?e.isMoveEventName(t.type)?1===t.buttons:1===t.which:!n.Browser.Opera||0===t.button)},e.isMoveEventName=function(t){return t===a.TouchUtils.touchMouseMoveEventName||t===e.getMoveEventName()},e.getMoveEventName=function(){return window.PointerEvent?"pointermove":n.Browser.TouchUI?"touchmove":"mousemove"},e.preventEventAndBubble=function(t){e.preventEvent(t),t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0},e.clientEventRequiresDocScrollCorrection=function(){var e=n.Browser.Safari&&n.Browser.Version<3,t=n.Browser.MacOSMobilePlatform&&n.Browser.Version<5.1;return n.Browser.AndroidDefaultBrowser||n.Browser.AndroidChromeBrowser||!(e||t)},e.getEventX=function(t){return a.TouchUtils.isTouchEvent(t)?a.TouchUtils.getEventX(t):t.clientX+(e.clientEventRequiresDocScrollCorrection()?r.DomUtils.getDocumentScrollLeft():0)},e.getEventY=function(t){return a.TouchUtils.isTouchEvent(t)?a.TouchUtils.getEventY(t):t.clientY+(e.clientEventRequiresDocScrollCorrection()?r.DomUtils.getDocumentScrollTop():0)},e.cancelBubble=function(e){e.cancelBubble=!0},e.getWheelDelta=function(e){var t;return t=n.Browser.NetscapeFamily&&n.Browser.MajorVersion<17?-e.detail:n.Browser.Safari?e.wheelDelta:-e.deltaY,n.Browser.Opera&&n.Browser.Version<9&&(t=-t),t},e}();t.EvtUtils=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Browser=void 0;var n=function(){function e(){}return e.IdentUserAgent=function(t,i){void 0===i&&(i=!1);var n=["Mozilla","IE","Firefox","Netscape","Safari","Chrome","Opera","Opera10","Edge"],o={Safari:2,Chrome:.1,Mozilla:1.9,Netscape:8,Firefox:2,Opera:9,IE:6,Edge:12};if(t&&0!==t.length){t=t.toLowerCase(),e.indentPlatformMajorVersion(t);try{for(var r={Windows:"Win",Macintosh:"Mac","Mac OS":"Mac",Mac_PowerPC:"Mac","cpu os":"MacMobile","cpu iphone os":"MacMobile",Android:"Android","!Windows Phone":"WinPhone","!WPDesktop":"WinPhone","!ZuneWP":"WinPhone"},a="(?:(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?)?",s={Safari:"applewebkit(?:.*?(?:version/(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?[\\.\\w\\d]*?(?:\\s+mobile/\\S*)?\\s+safari))?",Chrome:"(?:chrome|crios)(?!frame)(?:/|\\s*)?"+a,Mozilla:"mozilla(?:.*rv:"+a+".*Gecko)?",Netscape:"(?:netscape|navigator)\\d*/?\\s*"+a,Firefox:"firefox(?:/|\\s*)?"+a,Opera:"(?:opera|\\sopr)(?:/|\\s*)?"+a,Opera10:"opera.*\\s*version(?:/|\\s*)?"+a,IE:"msie\\s*"+a,Edge:"edge(?:/|\\s*)?"+a},l=null,d=-1,u=0;u<n.length;u++){var c=n[u],h=new RegExp(s[c],"i").exec(t);if(h&&h.index>=0){if("IE"===l&&d>=11&&"Safari"===c)continue;"Opera10"===(l=c)&&(l="Opera"),d=e.GetBrowserVersion(t,h,"trident(?:/|\\s*)?(?:(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?)?",e.getIECompatibleVersionString()),"Mozilla"===l&&d>=11&&(l="IE")}}l||(l="IE");var p=-1!==d;p||(d=o[l]);var f=null,g=Number.MAX_VALUE;for(var m in r)if(Object.prototype.hasOwnProperty.call(r,m)){var _="!"===m.substr(0,1),v=t.indexOf((_?m.substr(1):m).toLowerCase());v>=0&&(v<g||_)&&(g=_?0:v,f=r[m])}var y=t.toUpperCase().match("SM-[A-Z]"),C=y&&y.length>0;"WinPhone"===f&&d<9&&(d=Math.floor(e.getVersionFromTrident(t,"trident(?:/|\\s*)?"+a))),!i&&"IE"===l&&d>7&&document.documentMode<d&&(d=document.documentMode),"WinPhone"===f&&(d=Math.max(9,d)),f||(f="Win"),f!==r["cpu os"]||p||(d=4),e.fillUserAgentInfo(n,l,d,f,C)}catch(t){e.fillUserAgentInfo(n,"IE",o.IE,"Win")}}else e.fillUserAgentInfo(n,"IE",o.IE,"Win")},e.GetBrowserVersion=function(t,i,n,o){var r=e.getVersionFromMatches(i);if(o){var a=e.getVersionFromTrident(t,n);if("edge"===o||parseInt(o)===a)return a}return r},e.getIECompatibleVersionString=function(){if(document.compatible)for(var e=0;e<document.compatible.length;e++)if("IE"===document.compatible[e].userAgent&&document.compatible[e].version)return document.compatible[e].version.toLowerCase();return""},e.isTouchEnabled=function(){return e.hasTouchStart()||e.hasMaxTouchPoints()||e.hasMsMaxTouchPoints()},e.hasTouchStart=function(){return"ontouchstart"in window},e.hasMaxTouchPoints=function(){return navigator.maxTouchPoints>0},e.hasMsMaxTouchPoints=function(){return navigator.msMaxTouchPoints>0},e.hasNavigator=function(){return"undefined"!=typeof navigator},e.fillUserAgentInfo=function(t,i,n,o,r){void 0===r&&(r=!1);for(var a=0;a<t.length;a++){var s=t[a];e[s]=s===i}e.Version=Math.floor(10*n)/10,e.MajorVersion=Math.floor(e.Version),e.WindowsPlatform="Win"===o||"WinPhone"===o,e.MacOSMobilePlatform="MacMobile"===o||"Mac"===o&&e.isTouchEnabled(),e.MacOSPlatform="Mac"===o&&!e.MacOSMobilePlatform,e.AndroidMobilePlatform="Android"===o,e.WindowsPhonePlatform="WinPhone"===o,e.WebKitFamily=e.Safari||e.Chrome||e.Opera&&e.MajorVersion>=15,e.NetscapeFamily=e.Netscape||e.Mozilla||e.Firefox,e.WebKitTouchUI=e.MacOSMobilePlatform||e.AndroidMobilePlatform;var l=e.IE&&e.MajorVersion>9&&e.WindowsPlatform&&e.UserAgent.toLowerCase().indexOf("touch")>=0;if(e.MSTouchUI=l||e.Edge&&!!window.navigator.maxTouchPoints,e.TouchUI=e.WebKitTouchUI||e.MSTouchUI,e.MobileUI=e.WebKitTouchUI||e.WindowsPhonePlatform,e.AndroidDefaultBrowser=e.AndroidMobilePlatform&&!e.Chrome,e.AndroidChromeBrowser=e.AndroidMobilePlatform&&e.Chrome,r&&(e.SamsungAndroidDevice=r),e.MSTouchUI){var d=e.UserAgent.toLowerCase().indexOf("arm;")>-1;e.VirtualKeyboardSupported=d||e.WindowsPhonePlatform}else e.VirtualKeyboardSupported=e.WebKitTouchUI;e.fillDocumentElementBrowserTypeClassNames(t)},e.indentPlatformMajorVersion=function(t){var i=/(?:(?:windows nt|macintosh|mac os|cpu os|cpu iphone os|android|windows phone|linux) )(\d+)(?:[-0-9_.])*/.exec(t);i&&(e.PlaformMajorVersion=i[1])},e.getVersionFromMatches=function(e){var t=-1,i="";return e&&(e[1]&&(i+=e[1],e[2]&&(i+="."+e[2])),""!==i&&(t=parseFloat(i),isNaN(t)&&(t=-1))),t},e.getVersionFromTrident=function(t,i){var n=new RegExp(i,"i").exec(t);return e.getVersionFromMatches(n)+4},e.fillDocumentElementBrowserTypeClassNames=function(t){for(var i="",n=t.concat(["WindowsPlatform","MacOSPlatform","MacOSMobilePlatform","AndroidMobilePlatform","WindowsPhonePlatform","WebKitFamily","WebKitTouchUI","MSTouchUI","TouchUI","AndroidDefaultBrowser"]),o=0;o<n.length;o++){var r=n[o];e[r]&&(i+="dx"+r+" ")}i+="dxBrowserVersion-"+e.MajorVersion,"undefined"!=typeof document&&document&&document.documentElement&&(""!==document.documentElement.className&&(i=" "+i),document.documentElement.className+=i,e.Info=i)},e.getUserAgent=function(){return e.hasNavigator()&&navigator.userAgent?navigator.userAgent.toLowerCase():""},e.UserAgent=e.getUserAgent(),e._foo=e.IdentUserAgent(e.UserAgent),e}();t.Browser=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseArguments=void 0;var n=function(e){this.cancel=!1,this.values={},this.key=e};t.BaseArguments=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Size=void 0;var n=function(){function e(e,t){this.width=e,this.height=t}return e.empty=function(){return new e(0,0)},e.fromNumber=function(t){return new e(t,t)},e.initByCommonAction=function(t){var i=function(e){return e.width},n=function(e){return e.height};return new e(t(i,n),t(n,i))},e.prototype.isEmpty=function(){return 0===this.width&&0===this.height},e.prototype.toString=function(){return JSON.stringify(this)},e.prototype.nonNegativeSize=function(){return this.width<0&&(this.width=0),this.height<0&&(this.height=0),this},e.prototype.offset=function(e,t){return this.width=this.width+e,this.height=this.height+t,this},e.prototype.multiply=function(e,t){return this.width*=e,this.height*=t,this},e.prototype.equals=function(e){return this.width===e.width&&this.height===e.height},e.prototype.clone=function(){return new e(this.width,this.height)},e.prototype.copyFrom=function(e){this.width=e.width,this.height=e.height},e.prototype.applyConverter=function(e){return this.width=e(this.width),this.height=e(this.height),this},e.equals=function(e,t){return e.width===t.width&&e.height===t.height},e}();t.Size=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaStateEventNames=void 0;var n=function(){function e(){}return e.TASK_AREA_CLICK="taskAreaClick",e.TASK_AREA_DBLCLICK="taskAreaDblClick",e.TASK_AREA_SCROLL="taskAreaScroll",e.TASK_AREA_START_MOVE="taskAreaStartMove",e.TASK_AREA_PROCESS_MOVE="taskAreaProcessMove",e.TASK_AREA_END_MOVE="taskAreaEndMove",e.TASK_AREA_ZOOM_IN="taskAreaZoomIn",e.TASK_AREA_ZOOM_OUT="taskAreaZoomOut",e.CONTEXTMENU_SHOW="contextMenuShow",e.CONTEXTMENU_HIDE="contextMenuHide",e.DEPENDENCY_SELECTION="dependencySelection",e.STATE_EXIT="stateExit",e.TASK_SELECTION="taskSelection",e.TASK_EDIT_START="taskEditStart",e.TASK_EDIT_END="taskEditEnd",e.TASK_LEAVE="taskLeave",e.TASK_PROCESS_MOVE="taskProcessMove",e.TASK_END_MOVE="taskEndMove",e.TASK_PROCESS_PROGRESS="taskProcessProgress",e.TASK_END_PROGRESS="taskEndProgress",e.TASK_PROCESS_START="taskProcessStart",e.TASK_CONFIRM_START="taskConfirmStart",e.TASK_PROCESS_END="taskProcessEnd",e.TASK_CONFIRM_END="taskConfirmEnd",e.GET_DEPENDENCY_POINTS="getDependencyPoints",e.DEPENDENCY_START="dependencyStart",e.DEPENDENCY_PROCESS="dependencyProcess",e.DEPENDENCY_END="dependencyEnd",e.TASK_AREA_KEY_DOWN="taskAreaKeyDown",e.GET_POINTERS_INFO="getPointersInfo",e.GET_COORDINATES_REF_POINT="getCoordinatesRefPoint",e}();t.TaskAreaStateEventNames=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HistoryItem=void 0;var n=function(){function e(e){this.setModelManipulator(e)}return e.prototype.setModelManipulator=function(e){this.modelManipulator=e},Object.defineProperty(e.prototype,"keyUpdaters",{get:function(){return[]},enumerable:!1,configurable:!0}),e}();t.HistoryItem=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DateUtils=void 0;var n=i(4),o=function(){function e(){}var t;return e.getDaysInQuarter=function(t){var i=3*Math.floor(t.getMonth()/3);return[i,i+1,i+2].reduce((function(i,n){return i+e.getDaysInMonth(n,t.getFullYear())}),0)},e.getDaysInMonth=function(e,t){return new Date(t,e+1,0).getDate()},e.getOffsetInMonths=function(e,t){return 12*(t.getFullYear()-e.getFullYear())+t.getMonth()-e.getMonth()},e.getOffsetInQuarters=function(e,t){return 4*(t.getFullYear()-e.getFullYear())+Math.floor(t.getMonth()/3)-Math.floor(e.getMonth()/3)},e.getNearestScaleTickDate=function(e,t,i,n){var o=new Date,r=t.start.getTime(),a=t.end.getTime();if(o.setTime(e.getTime()),e.getTime()<r)o.setTime(r);else if(e.getTime()>a)o.setTime(a);else if(this.needCorrectDate(e,r,i,n)){var s=this.getNearestLeftTickTime(e,r,i,n),l=this.getNextTickTime(s,i,n);Math.abs(e.getTime()-s)>Math.abs(e.getTime()-l)?o.setTime(l):o.setTime(s)}return o},e.needCorrectDate=function(e,t,i,o){return o==n.ViewType.Months?e.getTime()!==new Date(e.getFullYear(),e.getMonth(),1).getTime():(e.getTime()-t)%i!=0},e.getNearestLeftTickTime=function(e,t,i,o){return o==n.ViewType.Months?new Date(e.getFullYear(),e.getMonth(),1).getTime():t+Math.floor((e.getTime()-t)/i)*i},e.getNextTickTime=function(e,t,i){if(i==n.ViewType.Months){var o=new Date;return o.setTime(e),o.setMonth(o.getMonth()+1),o.getTime()}return e+t},e.adjustStartDateByViewType=function(e,t,i){switch(void 0===i&&(i=0),t){case n.ViewType.TenMinutes:return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours());case n.ViewType.SixHours:case n.ViewType.Hours:return new Date(e.getFullYear(),e.getMonth(),e.getDate());case n.ViewType.Days:case n.ViewType.Weeks:return new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay()+i);case n.ViewType.Months:case n.ViewType.Quarter:case n.ViewType.Years:return new Date(e.getFullYear(),0,1);default:return new Date}},e.adjustEndDateByViewType=function(e,t,i){switch(void 0===i&&(i=0),t){case n.ViewType.TenMinutes:return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours()+1);case n.ViewType.SixHours:case n.ViewType.Hours:return new Date(e.getFullYear(),e.getMonth(),e.getDate()+1);case n.ViewType.Days:case n.ViewType.Weeks:return new Date(e.getFullYear(),e.getMonth(),e.getDate()+7-e.getDay()+i);case n.ViewType.Months:case n.ViewType.Quarter:case n.ViewType.Years:return new Date(e.getFullYear()+1,0,1);default:return new Date}},e.roundStartDate=function(e,t){switch(t){case n.ViewType.TenMinutes:case n.ViewType.Hours:return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours()-1);case n.ViewType.SixHours:case n.ViewType.Days:return new Date(e.getFullYear(),e.getMonth(),e.getDate()-1);case n.ViewType.Weeks:return new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay());case n.ViewType.Months:return new Date(e.getFullYear(),e.getMonth()-1);case n.ViewType.Quarter:case n.ViewType.Years:return new Date(e.getFullYear()-1,0,1);default:return new Date}},e.getTickTimeSpan=function(t){switch(t){case n.ViewType.TenMinutes:return e.msPerHour/6;case n.ViewType.Hours:return e.msPerHour;case n.ViewType.SixHours:return 6*e.msPerHour;case n.ViewType.Days:return e.msPerDay;case n.ViewType.Weeks:return e.msPerWeek;case n.ViewType.Months:return e.msPerMonth;case n.ViewType.Quarter:return 3*e.msPerMonth;case n.ViewType.Years:return e.msPerYear}},e.getRangeTickCount=function(t,i,o){return o===n.ViewType.Months?this.getRangeTickCountInMonthsViewType(t,i):o===n.ViewType.Quarter?this.getRangeTickCountInQuarterViewType(t,i):e.getRangeMSPeriod(t,i)/e.getTickTimeSpan(o)},e.getRangeMSPeriod=function(t,i){return i.getTime()-e.getDSTDelta(t,i)-t.getTime()},e.getRangeTickCountInMonthsViewType=function(t,i){var n=new Date(t.getFullYear(),t.getMonth(),1),o=new Date(i.getFullYear(),i.getMonth(),1);return e.getOffsetInMonths(n,o)+(i.getTime()-o.getTime())/(e.getDaysInMonth(i.getMonth(),i.getFullYear())*e.msPerDay)-(t.getTime()-n.getTime())/(e.getDaysInMonth(t.getMonth(),t.getFullYear())*e.msPerDay)},e.getRangeTickCountInQuarterViewType=function(t,i){var n=new Date(t.getFullYear(),3*Math.floor(t.getMonth()/3),1),o=new Date(i.getFullYear(),3*Math.floor(i.getMonth()/3),1);return e.getOffsetInQuarters(n,o)+(i.getTime()-o.getTime())/(e.getDaysInQuarter(o)*e.msPerDay)-(t.getTime()-n.getTime())/(e.getDaysInQuarter(n)*e.msPerDay)},e.parse=function(e){return"function"==typeof e?new Date(e()):new Date(e)},e.getOrCreateUTCDate=function(e){var t=e.getTimezoneOffset();return t?new Date(e.valueOf()+6e4*t):e},e.getTimezoneOffsetDiff=function(e,t){return t.getTimezoneOffset()-e.getTimezoneOffset()},e.getDSTDelta=function(t,i){var n=e.getTimezoneOffsetDiff(t,i)*e.msPerMinute;return n>0?n:0},e.getDSTCorrectedTaskEnd=function(t,i){var n=t.getTime()+i,o=e.getDSTDelta(t,new Date(n));return new Date(n+o)},e.msPerMinute=6e4,e.msPerHour=36e5,e.msPerDay=24*e.msPerHour,e.msPerWeek=7*e.msPerDay,e.msPerMonth=30*e.msPerDay,e.msPerYear=365*e.msPerDay,e.ViewTypeToScaleMap=((t={})[n.ViewType.TenMinutes]=n.ViewType.Hours,t[n.ViewType.Hours]=n.ViewType.Days,t[n.ViewType.SixHours]=n.ViewType.Days,t[n.ViewType.Days]=n.ViewType.Weeks,t[n.ViewType.Weeks]=n.ViewType.Months,t[n.ViewType.Months]=n.ViewType.Years,t[n.ViewType.Quarter]=n.ViewType.Years,t[n.ViewType.Years]=n.ViewType.FiveYears,t),e}();t.DateUtils=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RenderElementUtils=void 0;var n=function(){function e(){}return e.create=function(e,t,i,n){var o=document.createElement("DIV");for(var r in e.assignToElement(o),i.appendChild(o),n&&(n instanceof Array&&null!==t?n[t]=o:n[e.id]=o),e.attr)Object.prototype.hasOwnProperty.call(e.attr,r)&&o.setAttribute(r,e.attr[r]);for(var r in e.style)Object.prototype.hasOwnProperty.call(e.style,r)&&(o.style[r]=e.style[r]);return o},e.remove=function(e,t,i,n){var o;n instanceof Array&&null!==t?(o=n[t],delete n[t]):(o=n[e.id],delete n[e.id]),o&&o.parentNode==i&&i.removeChild(o)},e.recreate=function(e,t,i,n){e.filter((function(e){return-1===t.indexOf(e)})).forEach((function(e){i(e)})),t.filter((function(t){return-1===e.indexOf(t)})).forEach((function(e){n(e)}))},e}();t.RenderElementUtils=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Color=void 0;var n=i(1),o=function(){function e(e){this._num=null,this._opacity=1,this._rgb=null,this.assign(e)}return Object.defineProperty(e.prototype,"opacity",{get:function(){return this._opacity},enumerable:!1,configurable:!0}),e.prototype.hasValue=function(){return(0,n.isDefined)(this._num)||!!this._rgb||0===this._opacity},e.prototype.getValue=function(){return!(0===this._opacity&&!this._rgb)&&((0,n.isDefined)(this._num)?this._num:this._rgb?this.getRBGColor():null)},e.prototype.assign=function(t){this.reset(),"string"==typeof t&&this.assignFromString(t),"number"==typeof t&&(this._num=t),t instanceof Array&&this.assignFromRgbArray(t),t instanceof e&&this.assignFromColor(t)},e.prototype.reset=function(){this._opacity=1,this._num=null,this._rgb=null},e.prototype.assignFromString=function(e){e&&("transparent"===e&&(this._opacity=0),0===e.indexOf("#")&&this.assignFromHexString(e),"rgb"===e.substr(0,3).toLowerCase()&&this.assignFromRgbString(e))},e.prototype.assignFromHexString=function(e){if(4===e.length&&(e="#"+e[1].repeat(2)+e[2].repeat(2)+e[3].repeat(2)),e.length>6){var t=parseInt(e.substr(1,2),16),i=parseInt(e.substr(3,2),16),n=parseInt(e.substr(5,2),16);this._rgb=[t,i,n]}},e.prototype.assignFromRgbString=function(t){var i="rgba"===t.substr(0,4).toLowerCase(),n=t.toLowerCase().match(i?e.rgbaRegexp:e.rgbRegexp);if(n){var o=parseInt(n[1]),r=parseInt(n[2]),a=parseInt(n[3]);this._rgb=[o,r,a],i&&(this._opacity=parseFloat(n[4]))}},e.prototype.assignFromRgbArray=function(e){e&&e.length>2&&(this._rgb=[e[0],e[1],e[2]],(0,n.isDefined)(e[3])&&(this._opacity=e[3]))},e.prototype.assignFromColor=function(e){this._opacity=e._opacity,this._num=e._num,this._rgb=e._rgb},e.prototype.getRBGColor=function(){return this._rgb?this._rgb:[0,0,0]},e.prototype.applyOpacityToBackground=function(t){if(1!==this._opacity){var i=(t instanceof e?t:new e(t)).getValue();if(i instanceof Array){var n=this.opacity,o=Math.round((1-n)*i[0]+n*this._rgb[0]),r=Math.round((1-n)*i[1]+n*this._rgb[1]),a=Math.round((1-n)*i[2]+n*this._rgb[2]);this._rgb=[o,r,a]}}},e.rgbRegexp=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/,e.rgbaRegexp=/rgba?\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,?\s*([0-9]*\.?[0-9]*)\s*\)/,e}();t.Color=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MathUtils=void 0;var n=i(82),o=function(){function e(){}return e.round=function(t,i){void 0===i&&(i=0);var n=e.powFactor[i];return Math.round(t*n)/n},e.numberCloseTo=function(e,t,i){return void 0===i&&(i=1e-5),Math.abs(e-t)<i},e.restrictValue=function(e,t,i){return i<t&&(i=t),e>i?i:e<t?t:e},e.getRandomInt=function(e,t){return Math.floor(Math.random()*(t-e+1))+e},e.generateGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},e.powFactor=n.ListUtils.initByCallback(20,(function(e){return Math.pow(10,e)})),e.somePrimes=[1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003],e}();t.MathUtils=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DateRange=void 0;var n=function(){function e(e,t){this.start=e,this.end=t}return e.prototype.equal=function(e){var t=!0;return(t=t&&this.start.getTime()===e.start.getTime())&&this.end.getTime()===e.end.getTime()},e}();t.DateRange=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DialogBase=void 0;var n=i(0),o=i(6),r=i(7),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isApiCall=!1,t._canRefresh=!0,t}return n.__extends(t,e),t.prototype.execute=function(t,i){return void 0===t&&(t=void 0),void 0===i&&(i=!1),this.isApiCall=i,e.prototype.execute.call(this,t)},t.prototype.executeInternal=function(e){return this.options=e,this.showDialog(e)},Object.defineProperty(t.prototype,"canRefresh",{get:function(){return this._canRefresh},enumerable:!1,configurable:!0}),t.prototype.refresh=function(){this.showDialog(this.options)},t.prototype.showDialog=function(e){var i=this,n=this.createParameters(e),o=n.clone();return!!this.onBeforeDialogShow(n)&&(t.activeInstance=this,this.control.showDialog(this.getDialogName(),n,(function(e){e&&(i._canRefresh=!1,i.applyParameters(e,o),i._canRefresh=!0)}),(function(){delete t.activeInstance,i.afterClosing()})),!0)},t.prototype.onBeforeDialogShow=function(e){return!0},t.prototype.applyParameters=function(e,t){return!1},t.prototype.afterClosing=function(){},t.prototype.getState=function(){return new r.SimpleCommandState(this.isEnabled())},t.activeInstance=null,t}(o.CommandBase);t.DialogBase=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceCollection=void 0;var n=i(0),o=i(22),r=i(48),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.createItem=function(){return new r.Resource},t}(o.CollectionBase);t.ResourceCollection=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionBase=void 0;var n=i(1),o=i(80),r=function(){function e(){this._items=new Array,this._isGanttCollection=!0}return e.prototype.add=function(e){if((0,n.isDefined)(e)){if(this.getItemById(e.internalId))throw"The collection item with id ='"+e.internalId+"' already exists.";this._addItem(e)}},e.prototype.addRange=function(e){for(var t=0;t<e.length;t++)this.add(e[t])},e.prototype.remove=function(e){var t=this._items.indexOf(e);t>-1&&t<this._items.length&&this._removeItems(t,1)},e.prototype.clear=function(){this._removeItems(0,this._items.length)},e.prototype.invalidate=function(){delete this._invertedItems},e.prototype._addItem=function(e){this._items.push(e),delete this._invertedItems},e.prototype._removeItems=function(e,t){this._items.splice(e,t),delete this._invertedItems},Object.defineProperty(e.prototype,"items",{get:function(){return this._items.slice()},set:function(e){e&&(this._items=e.slice())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._items.length},enumerable:!1,configurable:!0}),e.prototype.getItem=function(e){return e>-1&&e<this._items.length?this._items[e]:null},Object.defineProperty(e.prototype,"invertedItems",{get:function(){var e;return null!==(e=this._invertedItems)&&void 0!==e||(this._invertedItems=this._createInvertedItems()),this._invertedItems},enumerable:!1,configurable:!0}),e.prototype._createInvertedItems=function(){for(var e={},t=0;t<this._items.length;t++){var i=this._items[t];e[i.internalId]=i}return e},e.prototype.getItemById=function(e){return this.invertedItems[e]},e.prototype.getItemByPublicId=function(e){return this._items.filter((function(t){return t.id===e||t.id.toString()===e}))[0]},e.prototype.assign=function(e){(0,n.isDefined)(e)&&(this.items=e.items)},e.prototype.importFromObject=function(e){(0,n.isDefined)(e)&&(this.clear(),e._isGanttCollection?this.assign(e):e instanceof Array?this.importFromArray(e):this.createItemFromObjectAndAdd(e))},e.prototype.createItemFromObjectAndAdd=function(e){if((0,n.isDefined)(e)&&Object.keys(e).length>0){var t=this.createItem();t.assignFromObject(e),this.add(t)}},e.prototype.importFromArray=function(e){for(var t=0;t<e.length;t++)this.createItemFromObjectAndAdd(e[t])},e.prototype.importFromJSON=function(e){this.importFromObject(o.GanttJsonUtils.parseJson(e))},e}();t.CollectionBase=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DependencyType=t.TaskType=void 0,function(e){e[e.Regular=0]="Regular",e[e.Summary=1]="Summary",e[e.Milestone=2]="Milestone"}(t.TaskType||(t.TaskType={})),function(e){e[e.FS=0]="FS",e[e.SS=1]="SS",e[e.FF=2]="FF",e[e.SF=3]="SF"}(t.DependencyType||(t.DependencyType={}))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskCommandBase=void 0;var n=i(0),o=i(6),r=i(7),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isApiCall=!1,t}return n.__extends(t,e),t.prototype.getState=function(){var e=new r.SimpleCommandState(this.isEnabled());return e.visible=this.control.settings.editing.enabled&&!this.control.taskEditController.dependencyId,e},t.prototype.updateParent=function(e){this.validationController._parentAutoCalc&&e&&e.children.length>0&&this.control.validationController.updateParentsIfRequired(e.children[0].task.internalId)},t}(o.CommandBase);t.TaskCommandBase=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GridLayoutCalculator=void 0;var n=i(12),o=i(19),r=i(4),a=i(58),s=i(5),l=i(15),d=i(59),u=i(23),c=i(129),h=i(1),p=function(){function e(){this.tileToDependencyMap=[],this.tileToNoWorkingIntervalsMap=[],this.minLineLength=10,this.resourceMaxWidth=500,this.minTaskWidth=2,this._taskWrapperPoints=Array(),this._taskElementInfoList=Array(),this._scaleCalculator=new c.ScaleCalculator}return e.prototype.setSettings=function(e,t,i,o,r,a,s,d){void 0===s&&(s=0),void 0===d&&(d=0),this.visibleTaskAreaSize=e,this.tickSize=t,this._viewType=a,this.range=o,this.verticalTickCount=r.itemCount,this.viewModel=r,this.elementSizeValues=i,this.taskHeight=i.taskHeight,this.parentTaskHeight=i.parentTaskHeight,this.milestoneWidth=i.milestoneWidth,this.scaleHeight=i.scaleItemHeight,this.arrowSize=new n.Size(i.connectorArrowWidth,i.connectorArrowWidth),this.lineThickness=i.connectorLineThickness,this.minConnectorSpaceFromTask=(this.tickSize.height-this.taskHeight)/2,this.tickTimeSpan=l.DateUtils.getTickTimeSpan(a),this.scrollBarHeight=s,this.createTileToNonWorkingIntervalsMap(),this._scaleCalculator.setSettings(o,a,t,d),this.reset()},Object.defineProperty(e.prototype,"viewType",{get:function(){return this._viewType},set:function(e){this._viewType!==e&&(this._viewType=e,this._scaleCalculator.setViewType(e))},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this._taskWrapperPoints=new Array,this._taskElementInfoList=Array()},e.prototype.resetTaskInfo=function(e){delete this._taskWrapperPoints[e],delete this._taskElementInfoList[e]},e.prototype.getTaskAreaBorderInfo=function(e,t){var i=t?this.getVerticalGridLineHeight():this.getTotalWidth();return this.getGridBorderInfo(e,t,i)},e.prototype.getTotalWidth=function(){return this._scaleCalculator.scaleWidth},e.prototype.getScaleBorderInfo=function(e,t){var i=new a.GridElementInfo,o=this._scaleCalculator;return i.setPosition(new s.Point(o.getScaleBorderPosition(e,t),void 0)),i.setSize(new n.Size(0,this.scaleHeight)),i.className="dx-gantt-vb",i},e.prototype.getGridBorderInfo=function(e,t,i){var n=new a.GridElementInfo;return n.setPosition(this.getGridBorderPosition(e,t)),i&&n.setSize(this.getGridBorderSize(t,i)),n.className=t?"dx-gantt-vb":"dx-gantt-hb",n},e.prototype.getGridBorderPosition=function(e,t){var i=new s.Point(void 0,void 0),n=this._scaleCalculator,o=t?n.getScaleBorderPosition(e,this.viewType):(e+1)*this.tickSize.height;return t?i.x=o:i.y=o,i},e.prototype.getGridBorderSize=function(e,t){var i=new n.Size(0,0);return e?i.height=t:i.width=t,i},e.prototype.getScaleElementInfo=function(e,t){var i=new a.GridElementInfo,n=this.getScaleItemInfo(e,t);if(n){i.setPosition(n.position),i.setSize(n.size),i.className=this.getScaleItemClassName(t,i,this.getRenderedNoWorkingIntervals(i.position.x));var r=this._scaleCalculator.getScaleItems(t);(0===e||e===r.length-1)&&(i.style.overflowX="hidden",i.style.textOverflow="ellipsis"),i.additionalInfo.range=new o.DateRange(n.start,n.end)}return i},e.prototype.getScaleItemStart=function(e,t){return this._scaleCalculator.getScaleItemAdjustedStart(e,t)},e.prototype.getScaleItemClassName=function(e,t,i){var n="dx-gantt-si";return e.valueOf()==this.viewType.valueOf()&&this.isScaleItemInsideNoWorkingInterval(t,i)&&(n+=" dx-gantt-holiday-scaleItem"),n},e.prototype.getScaleItemInfo=function(e,t){return this._scaleCalculator.getScaleItem(e,t)},e.prototype.getScaleRangesInArea=function(e,t){var i=l.DateUtils.ViewTypeToScaleMap[this.viewType],n=this._scaleCalculator,o=Math.max(n.getScaleIndexByPos(e,i),0),r=n.getScaleIndexByPos(t,i);-1===r&&(r=n.topScaleItems.length-1);var a=Math.max(n.getScaleIndexByPos(e),0),s=n.getScaleIndexByPos(t);return-1===s&&(s=n.bottomScaleItems.length-1),[[o,r],[a,s]]},e.prototype.isScaleItemInsideNoWorkingInterval=function(e,t){for(var i=e.position.x,n=e.position.x+e.size.width,o=0;o<t.length;o++){var r=t[o].position.x,a=t[o].position.x+t[o].size.width;if(i>=r&&n<=a)return!0}return!1},e.prototype.getScaleItemColSpan=function(e){return this._scaleCalculator.getScaleItemColSpan(e)},e.prototype.getTaskWrapperElementInfo=function(e){var t=new a.GridElementInfo;return t.className=this.getTaskWrapperClassName(e),t.setPosition(this.getTaskWrapperPoint(e)),t.setAttribute("task-index",e),t},e.prototype.getTaskWrapperClassName=function(e){var t="dx-gantt-taskWrapper",i=this.getViewItem(e);return i.task.isMilestone()&&!i.isCustom&&(t="dx-gantt-milestoneWrapper"),i.selected&&(t+=" dx-gantt-selectedTask"),t},e.prototype.getTaskWrapperPoint=function(e){if(!(0,h.isDefined)(this._taskWrapperPoints[e])){var t=this.getViewItem(e),i=this.getTaskHeight(e),n=e*this.tickSize.height+(this.tickSize.height-i)/2,o=new s.Point(this.getPosByDate(t.task.start),n);t.task.isMilestone()&&!t.isCustom&&(o.x-=i/2),this._taskWrapperPoints[e]=o}return this._taskWrapperPoints[e].clone()},e.prototype.getTaskElementInfo=function(e,t){if(void 0===t&&(t=!1),!(0,h.isDefined)(this._taskElementInfoList[e])){var i=new a.GridElementInfo,n=this.getTask(e),o=this.viewModel.parentAutoCalc&&this.viewModel.taskHasChildrenByIndex(e);if(!n.isMilestone()){var r=this.getTaskWidth(e);i.size.width=this.getCorrectedTaskWidthByRange(e,r),i.size.width<r&&(i.additionalInfo.taskCut=!0),t&&(i.size.height=this.getTaskHeight(e))}i.className=this.getTaskClassName(e,i.size.width),n.color&&(i.style.backgroundColor=n.color,o&&(i.style.borderLeftColor=n.color,i.style.borderRightColor=n.color,i.style.borderTopColor=n.color)),this._taskElementInfoList[e]=i}return this._taskElementInfoList[e]},e.prototype.getTaskClassName=function(t,i){var n=e.taskClassName,o=this.getViewItem(t),r=this.viewModel.parentAutoCalc&&this.viewModel.taskHasChildrenByIndex(t);return o.task.isMilestone()&&!o.isCustom?n+=" "+e.milestoneClassName:(i<=this.elementSizeValues.smallTaskWidth&&(n+=" "+e.smallTaskClassName),r&&(n+=this.getAutoCalcParentTaskClassName(o.task))),n},e.prototype.getAutoCalcParentTaskClassName=function(t){var i=" "+e.parentTaskClassName;return 0==t.progress&&(i+=" dx-gantt-noPrg"),t.progress>=100&&(i+=" dx-gantt-cmpl"),i},e.prototype.getTaskPoint=function(e){var t=this.getTaskWrapperPoint(e);return this.getTask(e).isMilestone()||(t.y+=this.elementSizeValues.taskWrapperTopPadding),t},e.prototype.getTaskSize=function(e){return new n.Size(this.getTaskWidth(e),this.getTaskHeight(e))},e.prototype.getTaskWidth=function(e){var t=this.getViewItem(e);return t.isCustom&&t.size.width?t.size.width:t.task.isMilestone()&&!t.isCustom?this.getTaskHeight(e):Math.max(this.getWidthByDateRange(t.task.start,t.task.end),this.minTaskWidth)},e.prototype.getTaskHeight=function(e){var t=this.getViewItem(e);return t.task.isMilestone()&&!t.isCustom?this.milestoneWidth:this.viewModel.isTaskToCalculateByChildren(t.task.internalId)?this.parentTaskHeight:t.isCustom&&t.size.height?t.size.height:this.taskHeight},e.prototype.getTask=function(e){var t=this.getViewItem(e);return null==t?void 0:t.task},e.prototype.getViewItem=function(e){return this.viewModel.items[e]},e.prototype.getTaskProgressElementInfo=function(t){var i=new a.GridElementInfo;return i.className=e.taskProgressClassName,i.setSize(this.getTaskProgressSize(t)),i},e.prototype.getTaskProgressSize=function(e){var t=this.getTaskProgressWidth(e);return this.isTaskCutByRange(e)&&(t=this.getCorrectedTaskWidthByRange(e,t)),new n.Size(t,0)},e.prototype.getTaskProgressWidth=function(e){return this.getTaskWidth(e)*this.getTask(e).normalizedProgress/100},e.prototype.getTaskTextElementInfo=function(e,t){var i=new a.GridElementInfo;if(i.className=this.getTaskTextElementClassName(t),!t){var n=this.getTaskPoint(e).x;if(n<this.elementSizeValues.outsideTaskTextDefaultWidth){var o=Math.max(n,0);i.size.width=o,o>0?i.margins.left=-o:i.additionalInfo.hidden=!0}}return i},e.prototype.getTaskTextElementClassName=function(t){return e.taskTitleClassName.concat(" ",t?e.titleInClassName:e.titleOutClassName)},e.prototype.getTaskResourcesWrapperElementInfo=function(e){var t=new a.GridElementInfo,i=this.getTaskSize(e).width;return t.className="dx-gantt-taskResWrapper",t.setPosition(this.getTaskWrapperPoint(e)),t.position.x=t.position.x+i,t},e.prototype.getTaskResourceElementInfo=function(){var t=new a.GridElementInfo;return t.className=e.taskResourceClassName,t},e.prototype.getSelectionElementInfo=function(e){return this.getRowElementInfo(e,"dx-gantt-sel")},e.prototype.getSelectionPosition=function(e){var t=new s.Point(void 0,void 0);return t.y=e*this.tickSize.height,t},e.prototype.getSelectionSize=function(){return new n.Size(this.getTotalWidth(),this.tickSize.height)},e.prototype.getHighlightRowInfo=function(e){return this.getRowElementInfo(e,"dx-gantt-altRow")},e.prototype.getRowElementInfo=function(e,t){var i=new a.GridElementInfo;return i.className=t,i.setPosition(this.getSelectionPosition(e)),i.setSize(this.getSelectionSize()),i},e.prototype.getNoWorkingIntervalInfo=function(e){var t=new a.GridElementInfo;return t.className="dx-gantt-nwi",t.setPosition(this.getNoWorkingIntervalPosition(e.start)),t.setSize(this.getNoWorkingIntervalSize(e)),t},e.prototype.getNoWorkingIntervalPosition=function(e){var t=new s.Point(void 0,void 0);return t.x=this.getPosByDate(e),t},e.prototype.getNoWorkingIntervalSize=function(e){return new n.Size(this.getWidthByDateRange(e.start,e.end),this.getVerticalGridLineHeight())},e.prototype.getVerticalGridLineHeight=function(){return Math.max(this.visibleTaskAreaSize.height-this.scrollBarHeight,this.tickSize.height*this.verticalTickCount)},e.prototype.getConnectorInfo=function(e,t,i,n){for(var o=new Array,r=this.getConnectorPoints(t,i,n),a=0;a<r.length-1;a++)o.push(this.getConnectorLineInfo(e,r[a],r[a+1],0==a||a==r.length-2));return o.push(this.getArrowInfo(e,r,o,t,i)),this.checkAndCorrectConnectorLinesByRange(o),o.filter((function(e){return!!e}))},e.prototype.getConnectorLineInfo=function(e,t,i,n){var o=new a.GridElementInfo,r=t.x==i.x;return o.className=this.getConnectorClassName(r),o.setPosition(this.getConnectorPosition(t,i)),o.setSize(this.getConnectorSize(t,i,r,n)),o.setAttribute("dependency-id",e),o},e.prototype.getConnectorClassName=function(t){return t?e.CLASSNAMES.CONNECTOR_VERTICAL:e.CLASSNAMES.CONNECTOR_HORIZONTAL},e.prototype.getConnectorPosition=function(e,t){return new s.Point(Math.min(e.x,t.x),Math.min(e.y,t.y))},e.prototype.getConnectorSize=function(e,t,i,o){var r=new n.Size(0,0),a=o?0:1;return i?r.height=Math.abs(t.y-e.y)+a:r.width=Math.abs(t.x-e.x)+a,r},e.prototype.getArrowInfo=function(e,t,i,n,o){var r=new a.GridElementInfo,s=this.findArrowLineInfo(i,n,o),l=this.getArrowPosition(t,n,o);return r.className=this.getArrowClassName(l),r.setPosition(this.getArrowPoint(s,l)),r.setAttribute("dependency-id",e),r},e.prototype.findArrowLineInfo=function(e,t,i){return e[t<i?e.length-1:0]},e.prototype.getArrowPosition=function(e,t,i){var n=e[t<i?e.length-2:1],o=e[t<i?e.length-1:0];return n.x==o.x?n.y>o.y?r.Position.Top:r.Position.Bottom:n.x>o.x?r.Position.Left:r.Position.Right},e.prototype.getArrowClassName=function(t){var i=e.arrowClassName;switch(t){case r.Position.Left:i=i.concat(" ",e.leftArrowClassName);break;case r.Position.Top:i=i.concat(" ",e.topArrowClassName);break;case r.Position.Right:i=i.concat(" ",e.rightArrowClassName);break;case r.Position.Bottom:i=i.concat(" ",e.bottomArrowClassName)}return i},e.prototype.getArrowPositionByClassName=function(t){return t.indexOf(e.leftArrowClassName)>-1?r.Position.Left:t.indexOf(e.topArrowClassName)>-1?r.Position.Top:t.indexOf(e.rightArrowClassName)>-1?r.Position.Right:t.indexOf(e.bottomArrowClassName)>-1?r.Position.Bottom:void 0},e.prototype.getArrowPoint=function(e,t){return new s.Point(this.getArrowX(e,t),this.getArrowY(e,t))},e.prototype.getArrowX=function(e,t){switch(t){case r.Position.Left:return e.position.x-this.arrowSize.width/2;case r.Position.Right:return e.position.x+e.size.width-this.arrowSize.width/2;case r.Position.Top:case r.Position.Bottom:return e.position.x-(this.arrowSize.width-this.lineThickness)/2}},e.prototype.getArrowY=function(e,t){switch(t){case r.Position.Top:return e.position.y-this.arrowSize.height/2;case r.Position.Bottom:return e.position.y+e.size.height-this.arrowSize.height/2;case r.Position.Left:case r.Position.Right:return e.position.y-(this.arrowSize.height-this.lineThickness)/2}},e.prototype.getPosByDate=function(e){return this.getWidthByDateRange(this.range.start,e)},e.prototype.getWidthByDateRange=function(e,t){return l.DateUtils.getRangeTickCount(e,t,this.viewType)*this.tickSize.width},e.prototype.getDateByPos=function(e){if(this.viewType===r.ViewType.Months||this.viewType===r.ViewType.Quarter)return this.getDateByPosInMonthBasedViewTypes(e);var t=e/this.tickSize.width,i=new Date(this.range.start);return l.DateUtils.getDSTCorrectedTaskEnd(i,t*this.tickTimeSpan)},e.prototype.getDateByPosInMonthBasedViewTypes=function(e){return this._scaleCalculator.getDateInScale(e)},e.prototype.getConnectorPoints=function(e,t,i){switch(i){case u.DependencyType.FS:return this.getFinishToStartConnectorPoints(e,t);case u.DependencyType.SF:return this.getStartToFinishConnectorPoints(e,t);case u.DependencyType.SS:return this.getStartToStartConnectorPoints(e,t);case u.DependencyType.FF:return this.getFinishToFinishConnectorPoints(e,t);default:return new Array}},e.prototype.getFinishToStartConnectorPoints=function(e,t){return e<t?this.getTask(e).end<=this.getTask(t).start?this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskTopSide(e,t,!1):this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskLeftSide(e,t,!1):this.getTask(e).end<=this.getTask(t).start?this.getConnectorPoints_FromTopTaskBottomSide_ToBottomTaskRightSide(t,e,!1):this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskRightSide(t,e,!0)},e.prototype.getFinishToFinishConnectorPoints=function(e,t){return e<t?this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskRightSide(e,t):this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskRightSide(t,e)},e.prototype.getStartToStartConnectorPoints=function(e,t){return e<t?this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskLeftSide(e,t):this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskLeftSide(t,e)},e.prototype.getStartToFinishConnectorPoints=function(e,t){return e<t?this.getTask(e).start>=this.getTask(t).end?this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskTopSide(e,t,!0):this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskRightSide(e,t,!1):this.getTask(e).start>=this.getTask(t).end?this.getConnectorPoints_FromTopTaskBottomSide_ToBottomTaskLeftSide(t,e,!0):this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskLeftSide(t,e,!0)},e.prototype.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskTopSide=function(e,t,i){var n=new Array,o=this.getTaskPoint(e),r=this.getTaskPoint(t),a=this.getTaskRightCenter(o,e),l=this.getTask(t).isMilestone(),d=this.getTaskTopCenter(r,t),u=this.getHorizontalIndentFromTaskEdge(t,i);return n.push(new s.Point(Math.floor(a.x),Math.floor(a.y))),n.push(new s.Point(Math.floor(l?d.x:r.x+u),Math.floor(n[0].y))),n.push(new s.Point(Math.floor(n[1].x),Math.floor(d.y))),n},e.prototype.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskRightSide=function(e,t){var i=new Array,n=this.getTaskPoint(e),o=this.getTaskPoint(t),r=this.getTaskRightCenter(n,e),a=this.getTaskRightCenter(o,t);return i.push(new s.Point(Math.floor(r.x),Math.floor(r.y))),i.push(new s.Point(Math.floor(Math.max(r.x,a.x)+this.minLineLength),Math.floor(i[0].y))),i.push(new s.Point(Math.floor(i[1].x),Math.floor(a.y))),i.push(new s.Point(Math.floor(a.x),Math.floor(a.y))),i},e.prototype.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskLeftSide=function(e,t,i){var n=new Array,o=this.getTaskPoint(e),r=this.getTaskPoint(t),a=this.getTaskRightCenter(o,e),l=this.getTaskBottomCenter(o,e),d=this.getTaskLeftCenter(r,t),u=this.getTaskTopCenter(r,t),c=i?this.getViewItem(e):this.getViewItem(t),h=c.isCustom?(this.tickSize.height-c.size.height)/2:this.minConnectorSpaceFromTask;return n.push(new s.Point(Math.floor(a.x),Math.floor(a.y))),n.push(new s.Point(Math.floor(n[0].x+this.minLineLength),Math.floor(n[0].y))),n.push(new s.Point(Math.floor(n[1].x),Math.floor(i?l.y+h:u.y-h))),n.push(new s.Point(Math.floor(d.x-this.minLineLength),Math.floor(n[2].y))),n.push(new s.Point(Math.floor(n[3].x),Math.floor(d.y))),n.push(new s.Point(Math.floor(d.x),Math.floor(d.y))),n},e.prototype.getConnectorPoints_FromTopTaskBottomSide_ToBottomTaskRightSide=function(e,t,i){var n=new Array,o=this.getTaskPoint(e),r=this.getTaskPoint(t),a=this.getTaskBottomCenter(o,e),l=this.getTask(e).isMilestone(),d=this.getTaskRightCenter(r,t),u=this.getHorizontalIndentFromTaskEdge(e,i);return n.push(new s.Point(Math.floor(l?a.x:o.x+u),Math.floor(a.y))),n.push(new s.Point(Math.floor(n[0].x),Math.floor(d.y))),n.push(new s.Point(Math.floor(d.x),Math.floor(d.y))),n},e.prototype.getConnectorPoints_FromTopTaskBottomSide_ToBottomTaskLeftSide=function(e,t,i){var n=new Array,o=this.getTaskPoint(e),r=this.getTaskPoint(t),a=this.getTaskBottomCenter(o,e),l=this.getTask(e).isMilestone(),d=this.getTaskLeftCenter(r,t),u=this.getHorizontalIndentFromTaskEdge(e,i);return n.push(new s.Point(Math.floor(l?a.x:o.x+u),Math.floor(a.y))),n.push(new s.Point(Math.floor(n[0].x),Math.floor(d.y))),n.push(new s.Point(Math.floor(d.x),Math.floor(d.y))),n},e.prototype.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskTopSide=function(e,t,i){var n=new Array,o=this.getTaskPoint(e),r=this.getTaskPoint(t),a=this.getTaskLeftCenter(o,e),l=this.getTaskTopCenter(r,t),d=this.getTask(t).isMilestone(),u=this.getHorizontalIndentFromTaskEdge(t,i);return n.push(new s.Point(Math.floor(a.x),Math.floor(a.y))),n.push(new s.Point(Math.floor(d?l.x:r.x+u),Math.floor(n[0].y))),n.push(new s.Point(Math.floor(n[1].x),Math.floor(l.y))),n},e.prototype.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskRightSide=function(e,t,i){var n=new Array,o=this.getTaskPoint(e),r=this.getTaskPoint(t),a=this.getTaskLeftCenter(o,e),l=this.getTaskBottomCenter(o,e),d=this.getTaskRightCenter(r,t),u=this.getTaskTopCenter(r,t),c=i?this.getViewItem(e):this.getViewItem(t),h=c.isCustom?(this.tickSize.height-c.size.height)/2:this.minConnectorSpaceFromTask;return n.push(new s.Point(Math.floor(a.x),a.y)),n.push(new s.Point(Math.floor(n[0].x-this.minLineLength),n[0].y)),n.push(new s.Point(Math.floor(n[1].x),Math.floor(i?l.y+h:u.y-h))),n.push(new s.Point(Math.floor(d.x+this.minLineLength),Math.floor(n[2].y))),n.push(new s.Point(Math.floor(n[3].x),Math.floor(d.y))),n.push(new s.Point(Math.floor(d.x),Math.floor(d.y))),n},e.prototype.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskLeftSide=function(e,t){var i=new Array,n=this.getTaskPoint(e),o=this.getTaskPoint(t),r=this.getTaskLeftCenter(n,e),a=this.getTaskLeftCenter(o,t);return i.push(new s.Point(Math.floor(r.x),Math.floor(r.y))),i.push(new s.Point(Math.floor(Math.min(r.x,a.x)-this.minLineLength),Math.floor(i[0].y))),i.push(new s.Point(Math.floor(i[1].x),Math.floor(a.y))),i.push(new s.Point(Math.floor(a.x),Math.floor(a.y))),i},e.prototype.getTaskSidePoints=function(e){var t=this.getTaskPoint(e);return[this.getTaskLeftCenter(t,e),this.getTaskTopCenter(t,e),this.getTaskRightCenter(t,e),this.getTaskBottomCenter(t,e)]},e.prototype.getTaskLeftCenter=function(e,t){return new s.Point(e.x-this.getTaskEdgeCorrection(t),e.y+this.getTaskHeight(t)/2)},e.prototype.getTaskRightCenter=function(e,t){return new s.Point(e.x+this.getTaskWidth(t)+this.getTaskEdgeCorrection(t),e.y+this.getTaskHeight(t)/2)},e.prototype.getTaskTopCenter=function(e,t){return new s.Point(e.x+this.getTaskWidth(t)/2,e.y-this.getTaskEdgeCorrection(t))},e.prototype.getTaskBottomCenter=function(e,t){return new s.Point(e.x+this.getTaskWidth(t)/2,e.y+this.getTaskHeight(t)+this.getTaskEdgeCorrection(t))},e.prototype.getTaskEdgeCorrection=function(e){var t=this.getViewItem(e);return t.task.isMilestone()&&!t.isCustom?this.getTaskHeight(e)*(Math.sqrt(2)-1)/2:0},e.prototype.getHorizontalIndentFromTaskEdge=function(e,t){void 0===t&&(t=!1);var i=this.getTaskWidth(e),n=this.minLineLength<i/3?this.minLineLength:.2*i;return t?i-n:n},e.prototype.getRenderedRowColumnIndices=function(e,t){for(var i=t?this.visibleTaskAreaSize.height:this.visibleTaskAreaSize.width,n=t?this.getFirstVisibleGridCellIndex(e,this.tickSize.height):this.getFirstScaleVisibleIndex(e),o=t?this.getLastVisibleGridCellIndex(e,this.tickSize.height,i,this.verticalTickCount):this.getLastScaleVisibleIndex(e),r=new Array,a=n;a<=o;a++)r.push(a);return r},e.prototype.getRenderedScaleItemIndices=function(e,t){for(var i=e===this.viewType,n=this._scaleCalculator,o=t[0],r=t[t.length-1],a=i?o:n.getTopScaleIndexByBottomIndex(o),s=i?r:n.getTopScaleIndexByBottomIndex(r),l=new Array,d=a;d<=s;d++)l.push(d);return l},e.prototype.getFirstScaleVisibleIndex=function(e){return this._scaleCalculator.getFirstScaleIndexForRender(e)},e.prototype.getLastScaleVisibleIndex=function(e){return this._scaleCalculator.getLastScaleIndexForRender(e+this.visibleTaskAreaSize.width)},e.prototype.getFirstVisibleGridCellIndex=function(e,t){var i=Math.floor(e/t);return Math.max(i-10,0)},e.prototype.getLastVisibleGridCellIndex=function(e,t,i,n){var o=Math.floor((e+i)/t);return Math.min(o+10,n-1)},e.prototype.createTileToConnectorLinesMap=function(){this.tileToDependencyMap=[];for(var e=0;e<this.viewModel.items.length;e++)for(var t=0;t<this.viewModel.items[e].dependencies.length;t++)this.createConnecotInfo(this.viewModel.items[e].dependencies[t],this.viewModel.items[e].visibleIndex)},e.prototype.updateTileToConnectorLinesMap=function(e){this.tileToDependencyMap.forEach((function(t,i,n){n[i]=t.filter((function(t){return t.attr["dependency-id"]!=e}))}));var t=[],i=this.viewModel.items.filter((function(t){return t.dependencies.filter((function(t){return t.id==e})).length>0}))[0];if(i){var n=i.dependencies.filter((function(t){return t.id===e}))[0];t=this.createConnecotInfo(n,i.visibleIndex)}return t},e.prototype.createConnecotInfo=function(e,t){var i=this,n=e.predecessor.visibleIndex,o=e.type,r=e.id,a=this.getConnectorInfo(r,n,t,o);return a.forEach((function(e){i.addElementInfoToTileMap(e,i.tileToDependencyMap,!0)})),a},e.prototype.createTileToNonWorkingIntervalsMap=function(){this.tileToNoWorkingIntervalsMap=[];for(var e=0;e<this.viewModel.noWorkingIntervals.length;e++){var t=this.getAdjustedNoWorkingInterval(this.viewModel.noWorkingIntervals[e]);if(t){var i=this.getNoWorkingIntervalInfo(t);this.addElementInfoToTileMap(i,this.tileToNoWorkingIntervalsMap,!1)}}},e.prototype.getAdjustedNoWorkingInterval=function(e){return e.end.getTime()-e.start.getTime()<this.tickTimeSpan-1?null:new o.DateRange(l.DateUtils.getNearestScaleTickDate(e.start,this.range,this.tickTimeSpan,this.viewType),l.DateUtils.getNearestScaleTickDate(e.end,this.range,this.tickTimeSpan,this.viewType))},e.prototype.addElementInfoToTileMap=function(e,t,i){var n=i?e.position.y:e.position.x,o=i?e.size.height:e.size.width,r=2*(i?this.visibleTaskAreaSize.height:this.visibleTaskAreaSize.width);if(r>0)for(var a=Math.floor(n/r),s=Math.floor((n+o)/r),l=a;l<=s;l++)t[l]||(t[l]=new Array),t[l].push(e)},e.prototype.getRenderedConnectorLines=function(e){return this.getElementsInRenderedTiles(this.tileToDependencyMap,!0,e)},e.prototype.getRenderedNoWorkingIntervals=function(e){return this.getElementsInRenderedTiles(this.tileToNoWorkingIntervalsMap,!1,e)},e.prototype.getRenderedStripLines=function(e){var t=new Array,i=e.stripLines.map((function(e){return e.clone()}));e.showCurrentTime&&i.push(new d.StripLine(new Date,null,e.currentTimeTitle,e.currentTimeCssClass,!0));for(var n=0,o=void 0;o=i[n];n++){var r=l.DateUtils.parse(o.start),s=o.end?l.DateUtils.parse(o.end):null;if(r>=this.range.start&&r<=this.range.end||s&&s>=this.range.start&&s<=this.range.end){var u=r>this.range.start?r:this.range.start,c=new a.GridElementInfo;c.size.height=this.getVerticalGridLineHeight(),c.position.x=this.getPosByDate(u),c.size.width=s?this.getWidthByDateRange(u,s<this.range.end?s:this.range.end):0,c.className=o.isCurrent?"dx-gantt-tc":s?"dx-gantt-ti":"dx-gantt-tm",c.className+=o.cssClass?" "+o.cssClass:"",c.attr.title=o.title,t.push(c)}}return t},e.prototype.getElementsInRenderedTiles=function(e,t,i){var n=new Array,o=t?this.visibleTaskAreaSize.height:this.visibleTaskAreaSize.width;if(o>0)for(var r=Math.floor(i/(2*o)),a=Math.floor((i+o)/(2*o)),s=r;s<=a;s++)e[s]&&e[s].forEach((function(e){-1===n.indexOf(e)&&n.push(e)}));return n},e.prototype.isTaskInRenderedRange=function(e){var t=this.getViewItem(e),i=this.getTaskPoint(e);return t.task.isMilestone()?i.x+this.getTaskWidth(e)<this.getTotalWidth():i.x<this.getTotalWidth()},e.prototype.isTaskCutByRange=function(e){return!!this.getTaskElementInfo(e).additionalInfo.taskCut},e.prototype.checkAndCorrectElementDisplayByRange=function(e){e.parentElement.offsetLeft+e.offsetLeft+e.offsetWidth>this.getTotalWidth()&&(e.style.display="none")},e.prototype.checkAndCorrectArrowElementDisplayByRange=function(e){e.offsetLeft+e.offsetWidth>this.getTotalWidth()&&(e.style.display="none")},e.prototype.checkAndCorrectConnectorLinesByRange=function(e){if(null==e?void 0:e.length)for(var t=this.getTotalWidth(),i=0;i<e.length;i++){var n=e[i],o=!n.size.width;n.position.x>t?delete e[i]:!o&&n.position.x+n.size.width>t&&(n.size.width=t-n.position.x)}},e.prototype.getCorrectedTaskWidthByRange=function(e,t){var i=this.getTotalWidth()-this.getTaskPoint(e).x;return Math.min(i,t)},e.dxGanttPrefix="dx-gantt-",e.taskClassName=e.dxGanttPrefix+"task",e.milestoneClassName=e.dxGanttPrefix+"milestone",e.smallTaskClassName=e.dxGanttPrefix+"smallTask",e.parentTaskClassName=e.dxGanttPrefix+"parent",e.taskProgressClassName=e.dxGanttPrefix+"tPrg",e.taskTitleClassName=e.dxGanttPrefix+"taskTitle",e.titleInClassName=e.dxGanttPrefix+"titleIn",e.titleOutClassName=e.dxGanttPrefix+"titleOut",e.taskResourceClassName=e.dxGanttPrefix+"taskRes",e.arrowClassName=e.dxGanttPrefix+"arrow",e.leftArrowClassName=e.dxGanttPrefix+"LA",e.topArrowClassName=e.dxGanttPrefix+"TA",e.rightArrowClassName=e.dxGanttPrefix+"RA",e.bottomArrowClassName=e.dxGanttPrefix+"BA",e.CLASSNAMES={CONNECTOR_VERTICAL:"dx-gantt-conn-v",CONNECTOR_HORIZONTAL:"dx-gantt-conn-h"},e}();t.GridLayoutCalculator=p},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StyleDef=void 0;var n=i(1),o=i(3),r=i(17),a=i(35),s=i(36),l=i(62),d=function(){function e(e){this._fillColor=new r.Color,this._textColor=new r.Color,this._lineColor=new r.Color,this._cellWidth=new l.Width,this._cellPadding=new s.Margin,e&&this.assign(e)}return Object.defineProperty(e.prototype,"font",{get:function(){return this._fontFamily},set:function(e){this._fontFamily=a.PredefinedStyles.getPredefinedStringOrUndefined(e,a.PredefinedStyles.fontFamilies)||e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontStyle",{get:function(){return this._fontStyle},set:function(e){this._fontStyle=a.PredefinedStyles.getPredefinedStringOrUndefined(e,a.PredefinedStyles.fontStyles)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontSize",{get:function(){return this._fontSize},set:function(e){this._fontSize=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overflow",{get:function(){return this._overflow},set:function(e){this._overflow=a.PredefinedStyles.getPredefinedStringOrUndefined(e,a.PredefinedStyles.overflow)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"halign",{get:function(){return this._horizontalAlign},set:function(e){this._horizontalAlign=a.PredefinedStyles.getPredefinedStringOrUndefined(e,a.PredefinedStyles.horizontalAlign)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"valign",{get:function(){return this._verticalAlign},set:function(e){this._verticalAlign=a.PredefinedStyles.getPredefinedStringOrUndefined(e,a.PredefinedStyles.verticalAlign)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fillColor",{get:function(){return this._fillColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textColor",{get:function(){return this._textColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lineColor",{get:function(){return this._lineColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cellWidth",{get:function(){return this._cellWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cellPadding",{get:function(){return this._cellPadding},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lineWidth",{get:function(){return this._lineWidth},set:function(e){this._lineWidth=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minCellWidth",{get:function(){return this._minCellWidth},set:function(e){this._minCellWidth=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minCellHeight",{get:function(){return this._minCellHeight},set:function(e){this._minCellHeight=e},enumerable:!1,configurable:!0}),e.prototype.assign=function(t){t&&(t instanceof e?((0,n.isDefined)(t.font)&&(this.font=t.font),(0,n.isDefined)(t.fontStyle)&&(this.fontStyle=t.fontStyle),(0,n.isDefined)(t.overflow)&&(this.overflow=t.overflow),(0,n.isDefined)(t.halign)&&(this.halign=t.halign),(0,n.isDefined)(t.valign)&&(this.valign=t.valign),(0,n.isDefined)(t.fontSize)&&(this.fontSize=t.fontSize),(0,n.isDefined)(t.lineWidth)&&(this.lineWidth=t.lineWidth),(0,n.isDefined)(t.minCellWidth)&&(this.minCellWidth=t.minCellWidth),(0,n.isDefined)(t.minCellHeight)&&(this.minCellHeight=t.minCellHeight),(0,n.isDefined)(t.fillColor)&&this.fillColor.assign(t.fillColor),(0,n.isDefined)(t.textColor)&&this.textColor.assign(t.textColor),(0,n.isDefined)(t.lineColor)&&this.lineColor.assign(t.lineColor),(0,n.isDefined)(t.cellWidth)&&this.cellWidth.assign(t.cellWidth),(0,n.isDefined)(t.cellPadding)&&this.cellPadding.assign(t.cellPadding)):this.assignFromCssStyle(t))},e.prototype.assignFromCssStyle=function(e){if(e.fontFamily&&(this.font=this.getPdfFontFamily(e)),this.fontStyle=this.getPdfFontStyle(e),(0,n.isDefined)(e.fontSize)&&(this.fontSize=this.getPfrFontSize(e.fontSize)),e.textAlign&&(this.halign=e.textAlign),e.verticalAlign&&(this.valign=e.verticalAlign),(0,n.isDefined)(e.borderWidth)&&(this.lineWidth=e.borderWidth),(0,n.isDefined)(e.cellWidth)&&this.cellWidth.assign(e.cellWidth),(0,n.isDefined)(e.width)&&(this.minCellWidth="number"==typeof e.width?e.width:o.DomUtils.pxToInt(e.width)),(0,n.isDefined)(e.height)&&(this.minCellHeight="number"==typeof e.height?e.height:o.DomUtils.pxToInt(e.height)),e.backgroundColor&&this.fillColor.assign(e.backgroundColor),e.color&&this.textColor.assign(e.color),e.borderColor&&this.lineColor.assign(e.borderColor),(0,n.isDefined)(e.width)&&this.cellWidth.assign(e.width),this.assignPaddingFromCss(e),(0,n.isDefined)(e.extraLeftPadding)){var t=this._cellPadding.left;this._cellPadding.left=t?t+e.extraLeftPadding:e.extraLeftPadding}},e.prototype.getPdfFontStyle=function(e){var t=e.fontWeight,i=parseInt(t),n="bold"===t||!isNaN(i)&&i>500,o=n?"bold":"normal";return"italic"===e.fontStyle&&(o=n?"bolditalic":"italic"),o},e.prototype.getPdfFontFamily=function(e){var t=e.fontFamily&&e.fontFamily.toLowerCase(),i="helvetica";return t.indexOf("times")>-1&&(i="times"),t.indexOf("courier")>-1&&(i="courier"),i},e.prototype.getPfrFontSize=function(e){var t=o.DomUtils.pxToInt(e);if(!isNaN(t))return Math.ceil(t/96*72)},e.prototype.assignPaddingFromCss=function(e){if(e.padding)this._cellPadding.assign(e.padding);else{var t={};e.paddingLeft&&(t.left=o.DomUtils.pxToInt(e.paddingLeft)),e.paddingTop&&(t.top=o.DomUtils.pxToInt(e.paddingTop)),e.paddingRight&&(t.right=o.DomUtils.pxToInt(e.paddingRight)),e.paddingBottom&&(t.bottom=o.DomUtils.pxToInt(e.paddingBottom)),this._cellPadding.assign(t)}},e.prototype.hasValue=function(){return!0},e.prototype.getValue=function(){var e=this,t={};return(0,n.isDefined)(this.font)&&(t.font=this.font),(0,n.isDefined)(this.fontStyle)&&(t.fontStyle=this.fontStyle),(0,n.isDefined)(this.fontSize)&&(t.fontSize=this.fontSize),(0,n.isDefined)(this.overflow)&&(t.overflow=this.overflow),(0,n.isDefined)(this.halign)&&(t.halign=this.halign),(0,n.isDefined)(this.valign)&&(t.valign=this.valign),(0,n.isDefined)(this.lineWidth)&&(t.lineWidth=this.lineWidth),(0,n.isDefined)(this.minCellWidth)&&(t.minCellWidth=this.minCellWidth),(0,n.isDefined)(this.minCellHeight)&&(t.minCellHeight=this.minCellHeight),this.getJsPdfProviderProps().forEach((function(i){var n=e[i];n&&n.hasValue()&&(t[i]=n.getValue())})),t},e.prototype.getJsPdfProviderProps=function(){return["fillColor","textColor","lineColor","cellWidth","cellPadding"]},e}();t.StyleDef=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PdfPageTableNames=void 0;var n=function(){function e(){}return e.treeListHeader="treeListHeader",e.treeListMain="treeListMain",e.chartMain="chartMain",e.chartScaleTop="chartScaleTop",e.chartScaleBottom="chartScaleBottom",e}();t.PdfPageTableNames=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseManipulator=void 0;var n=function(){function e(e,t){this.viewModel=e,this.dispatcher=t}return e.prototype.getErrorCallback=function(){return this.viewModel.getDataUpdateErrorCallback()},Object.defineProperty(e.prototype,"renderHelper",{get:function(){return this.viewModel.owner.renderHelper},enumerable:!1,configurable:!0}),e}();t.BaseManipulator=n},function(e,t,i){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaDomHelper=void 0;var o=i(3),r=i(9),a=i(46),s=i(4),l=i(25),d=function(){function e(){}return e.getEventSource=function(t){var i,n=(t.nodeType===(null===(i=null===window||void 0===window?void 0:window.Node)||void 0===i?void 0:i.ELEMENT_NODE)?t:t.parentNode).classList[0];return e.classToSource[n]||s.TaskAreaEventSource.TaskArea},e.isConnectorLine=function(e){var t=r.EvtUtils.getEventSource(e);return o.DomUtils.hasClassName(t,l.GridLayoutCalculator.CLASSNAMES.CONNECTOR_HORIZONTAL)||o.DomUtils.hasClassName(t,l.GridLayoutCalculator.CLASSNAMES.CONNECTOR_VERTICAL)},e.isTaskElement=function(t){var i=r.EvtUtils.getEventSource(t),n=e.classToSource[i.classList[0]];return n===s.TaskAreaEventSource.TaskEdit_Frame||n===s.TaskAreaEventSource.TaskEdit_Progress||n===s.TaskAreaEventSource.TaskEdit_Start||n===s.TaskAreaEventSource.TaskEdit_End||n===s.TaskAreaEventSource.TaskEdit_DependencyStart||n===s.TaskAreaEventSource.TaskEdit_DependencyFinish},e.isMouseEvent=function(e){return e instanceof MouseEvent},e.isTouchEvent=function(e){return window.TouchEvent&&e instanceof TouchEvent},e.isPointerEvent=function(e){return window.PointerEvent&&e instanceof PointerEvent},e.isMousePointer=function(e){return this.isPointerEvent(e)&&"mouse"===e.pointerType},e.classToSource=((n={})[a.TaskEditController.CLASSNAMES.TASK_EDIT_PROGRESS]=s.TaskAreaEventSource.TaskEdit_Progress,n[a.TaskEditController.CLASSNAMES.TASK_EDIT_START]=s.TaskAreaEventSource.TaskEdit_Start,n[a.TaskEditController.CLASSNAMES.TASK_EDIT_END]=s.TaskAreaEventSource.TaskEdit_End,n[a.TaskEditController.CLASSNAMES.TASK_EDIT_FRAME]=s.TaskAreaEventSource.TaskEdit_Frame,n[a.TaskEditController.CLASSNAMES.TASK_EDIT_DEPENDENCY_RIGTH]=s.TaskAreaEventSource.TaskEdit_DependencyStart,n[a.TaskEditController.CLASSNAMES.TASK_EDIT_DEPENDENCY_LEFT]=s.TaskAreaEventSource.TaskEdit_DependencyFinish,n[a.TaskEditController.CLASSNAMES.TASK_EDIT_SUCCESSOR_DEPENDENCY_RIGTH]=s.TaskAreaEventSource.Successor_DependencyStart,n[a.TaskEditController.CLASSNAMES.TASK_EDIT_SUCCESSOR_DEPENDENCY_LEFT]=s.TaskAreaEventSource.Successor_DependencyFinish,n),e}();t.TaskAreaDomHelper=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaStateBase=void 0;var n=i(10),o=i(5),r=i(3),a=i(9),s=i(66),l=i(172),d=i(29),u=i(13),c=function(){function e(e,t,i){this.position=new o.Point(-1,-1),this.isCursorInArea=!1,this._listener=e,this._taskArea=t,this._cellSize=i}return e.prototype.start=function(){},e.prototype.finish=function(){},e.prototype.isTouchEvent=function(e){return d.TaskAreaDomHelper.isTouchEvent(e)},e.prototype.isPointerEvent=function(e){return d.TaskAreaDomHelper.isPointerEvent(e)},e.prototype.isMouseEvent=function(e){return d.TaskAreaDomHelper.isMouseEvent(e)},e.prototype.onMouseWheel=function(e){},e.prototype.onScroll=function(e){this.raiseEvent(u.TaskAreaStateEventNames.TASK_AREA_SCROLL)},e.prototype.onKeyDown=function(e){this.isCursorInArea&&this.raiseEvent(u.TaskAreaStateEventNames.TASK_AREA_KEY_DOWN,e,null,{code:this.getShortcutCode(e)})},e.prototype.onContextMenu=function(e){var t=this.getClickedRowIndex(e),i=d.TaskAreaDomHelper.isConnectorLine(e);i||this.raiseTaskSelection(e,t),e.stopPropagation(),e.preventDefault(),n.Browser.WebKitFamily&&(e.returnValue=!1),this.raiseEvent(u.TaskAreaStateEventNames.CONTEXTMENU_SHOW,e,t,{type:i?"dependency":"task"})},e.prototype.onTaskPointerEnter=function(e){this.onTaskPointerEnterBase(e)},e.prototype.onDocumentPointerMove=function(e){this.processPointerMove(e)},e.prototype.onDocumentPointerDown=function(e){this.processPointerDown(e)},e.prototype.onDocumentPointerUp=function(e){this.processPointerUp(e)},e.prototype.onTaskTouchStart=function(e){this.onTaskPointerEnterBase(e)},e.prototype.onTouchMove=function(e){this.processPointerMove(e)},e.prototype.onTouchStart=function(e){this.processPointerDown(e)},e.prototype.onTouchEnd=function(e){this.processPointerUp(e)},e.prototype.onMouseDown=function(e){this.processPointerDown(e)},e.prototype.onMouseUp=function(e){},e.prototype.onMouseMove=function(e){this.processPointerMove(e)},e.prototype.onTaskHover=function(e){this.onTaskPointerEnterBase(e)},e.prototype.onTaskLeave=function(e){this.raiseEvent(u.TaskAreaStateEventNames.TASK_LEAVE,e,this.getClickedRowIndex(e))},e.prototype.onClick=function(e){var t=this.getClickedRowIndex(e);this.raiseTaskSelection(e,t),this.raiseEvent(u.TaskAreaStateEventNames.TASK_AREA_CLICK,e,t)},e.prototype.onDblClick=function(e){e.preventDefault(),this.raiseEvent(u.TaskAreaStateEventNames.TASK_AREA_DBLCLICK,e,this.getClickedRowIndex(e))},e.prototype.onTaskAreaLeave=function(e){(!this.isPointerEvent(e)||d.TaskAreaDomHelper.isMousePointer(e))&&(this.isCursorInArea=!1,this.raiseEvent(u.TaskAreaStateEventNames.TASK_EDIT_END,e)),this.onTaskAreaLeaveInternal(e)},e.prototype.onTaskPointerEnterBase=function(e){this.isTouchEvent(e)||this.isPointerEvent(e)||e.preventDefault(),this.raiseEvent(u.TaskAreaStateEventNames.TASK_EDIT_START,e,this.getClickedRowIndex(e))},e.prototype.processPointerDown=function(e){var t=this.isTouchEvent(e),i=this.isPointerEvent(e);(t||i)&&this.checkAndProcessTouchOutsideArea(e)||(this.position=new o.Point(a.EvtUtils.getEventX(e),a.EvtUtils.getEventY(e)),(t||i)&&e.preventDefault(),t?this.onTouchStartInternal(e):i?this.onDocumentPointerDownInternal(e):this.onMouseDownInternal(e))},e.prototype.processPointerMove=function(e){var t,i=this.isTouchEvent(e),n=this.isPointerEvent(e);null!==(t=this.position)&&void 0!==t||(this.position=new o.Point(a.EvtUtils.getEventX(e),a.EvtUtils.getEventY(e)));var r=Math.abs(this.position.x-a.EvtUtils.getEventX(e))>2||Math.abs(this.position.y-a.EvtUtils.getEventY(e))>2;(!i&&!n||!this.checkAndProcessTouchOutsideArea(e))&&r&&((i||n)&&e.preventDefault(),this.isTouchEvent(e)?this.onTouchMoveInternal(e):this.isPointerEvent(e)?this.onDocumentPointerMoveInternal(e):(this.isCursorInArea=!0,this.onMouseMoveInternal(e)))},e.prototype.processPointerUp=function(e){this.checkAndProcessTouchOutsideArea(e)||(e.preventDefault(),this.isTouchEvent(e)?this.onTouchEndInternal(e):this.onDocumentPointerUpInternal(e))},e.prototype.onMouseDownInternal=function(e){},e.prototype.onMouseMoveInternal=function(e){},e.prototype.onDocumentPointerUpInternal=function(e){},e.prototype.onDocumentPointerDownInternal=function(e){},e.prototype.onDocumentPointerMoveInternal=function(e){},e.prototype.onTouchStartInternal=function(e){},e.prototype.onTouchEndInternal=function(e){},e.prototype.onTouchMoveInternal=function(e){},e.prototype.onTaskAreaLeaveInternal=function(e){},e.prototype.checkAndProcessTouchOutsideArea=function(e){var t=!this.isInTaskArea(e);return t&&this.raiseEvent(u.TaskAreaStateEventNames.TASK_EDIT_END,e),this.isCursorInArea=!t,t},e.prototype.raiseEvent=function(e,t,i,n){var o=new l.TaskAreaEventArgs(e,t,i,n),r=this._listener.getHandler(e);return r&&r(o)},e.prototype.raiseDependencySelection=function(e,t){this.raiseEvent(u.TaskAreaStateEventNames.DEPENDENCY_SELECTION,e,null,{key:t})},e.prototype.raiseTaskSelection=function(e,t){r.DomUtils.isItParent(this._taskArea,a.EvtUtils.getEventSource(e))&&!d.TaskAreaDomHelper.isConnectorLine(e)&&this.raiseEvent(u.TaskAreaStateEventNames.TASK_SELECTION,e,t)},e.prototype.getClickedRowIndex=function(e){if(!e)return-1;var t=a.EvtUtils.getEventY(e)-r.DomUtils.getAbsolutePositionY(this._taskArea);return Math.floor(t/this._cellSize.height)},e.prototype.getRelativePos=function(e){var t=r.DomUtils.getAbsolutePositionX(this._taskArea),i=r.DomUtils.getAbsolutePositionY(this._taskArea);return new o.Point(e.x-t,e.y-i)},e.prototype.isInTaskArea=function(e){return r.DomUtils.isItParent(this._taskArea,a.EvtUtils.getEventSource(e))},e.prototype.getShortcutCode=function(e){var t=s.KeyUtils.getEventKeyCode(e),i=0;return e.altKey&&(i|=s.ModifierKey.Alt),e.ctrlKey&&(i|=s.ModifierKey.Ctrl),e.shiftKey&&(i|=s.ModifierKey.Shift),e.metaKey&&n.Browser.MacOSPlatform&&(i|=s.ModifierKey.Meta),i|t},e}();t.TaskAreaStateBase=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConstraintViolationOption=t.ConfirmationType=void 0,function(e){e[e.TaskDelete=0]="TaskDelete",e[e.DependencyDelete=1]="DependencyDelete",e[e.ResourcesDelete=2]="ResourcesDelete"}(t.ConfirmationType||(t.ConfirmationType={})),function(e){e[e.DoNothing=0]="DoNothing",e[e.RemoveDependency=1]="RemoveDependency",e[e.KeepDependency=2]="KeepDependency"}(t.ConstraintViolationOption||(t.ConstraintViolationOption={}))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DialogParametersBase=void 0;var n=function(){};t.DialogParametersBase=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeassignResourceHistoryItem=void 0;var n=i(0),o=i(14),r=i(2),a=function(e){function t(t,i){var n=e.call(this,t)||this;return n.assignmentId=i,n}return n.__extends(t,e),t.prototype.redo=function(){this.assignment=this.modelManipulator.resource.deassig(this.assignmentId)},t.prototype.undo=function(){this.modelManipulator.resource.assign(this.assignment.resourceId,this.assignment.taskId,this.assignmentId)},Object.defineProperty(t.prototype,"keyUpdaters",{get:function(){var e=this;return[{objectType:r.GanttDataObjectNames.resourceAssignment,getKey:function(){return e.assignmentId},updateKey:function(t){return e.assignmentId=t}},{objectType:r.GanttDataObjectNames.task,getKey:function(){var t;return null===(t=e.assignment)||void 0===t?void 0:t.taskId},updateKey:function(t){return e.assignment.taskId=t}},{objectType:r.GanttDataObjectNames.resource,getKey:function(){var t;return null===(t=e.assignment)||void 0===t?void 0:t.resourceId},updateKey:function(t){return e.assignment.resourceId=t}}]},enumerable:!1,configurable:!0}),t}(o.HistoryItem);t.DeassignResourceHistoryItem=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceCommandBase=void 0;var n=i(0),o=i(6),r=i(7),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.getState=function(){return new r.SimpleCommandState(this.isEnabled())},t}(o.CommandBase);t.ResourceCommandBase=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PredefinedStyles=void 0;var n=function(){function e(){}return e.getPredefinedStringOrUndefined=function(e,t){var i=e&&t&&e.toLowerCase()||void 0;return i&&(t.filter((function(e){return e.toLowerCase()===i}))[0]||t.filter((function(e){return i.indexOf(e.toLowerCase())>-1}))[0])},e.fontFamilies=["helvetica","times","courier"],e.fontStyles=["normal","bold","italic","bolditalic"],e.headerFooterVisibility=["everyPage","firstPage","never"],e.horizontalAlign=["left","center","right"],e.overflow=["linebreak","ellipsize","visible","hidden"],e.pageBreak=["auto","avoid","always"],e.rowPageBreak=["auto","avoid"],e.verticalAlign=["top","middle","bottom"],e.width=["auto","wrap"],e}();t.PredefinedStyles=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Margin=void 0;var n=i(1),o=i(3),r=function(){function e(e){this.assign(e)}return e.prototype.assign=function(e){if((0,n.isDefined)(e))if("string"==typeof e)this.assignFromString(e);else if("number"==typeof e||e instanceof Array)this.assignWithValues(e);else{var t=e||e;this.assignWithMargin(t)}},e.prototype.assignFromString=function(e){var t=e.split(" ").map((function(e){return o.DomUtils.pxToInt(e)}));this.assignWithValues(t)},e.prototype.assignWithMargin=function(e){(0,n.isDefined)(e.top)&&(this.top=e.top),(0,n.isDefined)(e.right)&&(this.right=e.right),(0,n.isDefined)(e.bottom)&&(this.bottom=e.bottom),(0,n.isDefined)(e.left)&&(this.left=e.left)},e.prototype.assignWithValues=function(e){var t=this.getCorrectedValues(e);this.top=t[0],this.right=t[1],this.bottom=t[2],this.left=t[3]},e.prototype.getCorrectedValues=function(e){var t=[this.top,this.right,this.bottom,this.left];if("number"==typeof e)t=[e,e,e,e];else{var i=e;switch(i.length){case 1:t=[i[0],i[0],i[0],i[0]];break;case 2:t=[i[0],i[1],i[0],i[1]];break;case 3:t=[i[0],i[1],i[2],i[1]];break;default:i.forEach((function(e,i){return t[i]=e}))}}return t},e.prototype.hasValue=function(){return(0,n.isDefined)(this.top)||(0,n.isDefined)(this.left)||(0,n.isDefined)(this.right)||(0,n.isDefined)(this.bottom)},e.prototype.getValue=function(){if(!this.hasValue())return null;if(this.top===this.bottom&&this.left===this.right&&this.top===this.left)return this.top;var e={};return(0,n.isDefined)(this.top)&&(e.top=this.top),(0,n.isDefined)(this.left)&&(e.left=this.left),(0,n.isDefined)(this.right)&&(e.right=this.right),(0,n.isDefined)(this.bottom)&&(e.bottom=this.bottom),e},e}();t.Margin=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataExportMode=t.ExportMode=void 0,function(e){e[e.all=0]="all",e[e.treeList=1]="treeList",e[e.chart=2]="chart"}(t.ExportMode||(t.ExportMode={})),function(e){e[e.all=0]="all",e[e.visible=1]="visible"}(t.DataExportMode||(t.DataExportMode={}))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RecurrenceBase=void 0;var n=i(0),o=i(203),r=i(57),a=i(204),s=i(1),l=i(8),d=i(71),u=function(e){function t(t,i,n,o){void 0===t&&(t=null),void 0===i&&(i=null),void 0===n&&(n=1),void 0===o&&(o=0);var r=e.call(this)||this;return r._start=null,r._end=null,r._interval=1,r._occurrenceCount=0,r._dayOfWeek=0,r._day=1,r._dayOfWeekOccurrence=0,r._month=0,r._calculateByDayOfWeek=!1,r.start=t,r.end=i,r.interval=n,r.occurrenceCount=o,r}return n.__extends(t,e),t.prototype.assignFromObject=function(t){(0,s.isDefined)(t)&&(e.prototype.assignFromObject.call(this,t),this.start=l.DateTimeUtils.convertToDate(t.start),this.end=l.DateTimeUtils.convertToDate(t.end),(0,s.isDefined)(t.interval)&&(this.interval=t.interval),(0,s.isDefined)(t.occurrenceCount)&&(this.occurrenceCount=t.occurrenceCount),(0,s.isDefined)(t.dayOfWeek)&&(this.dayOfWeekInternal=d.RecurrenceFactory.getEnumValue(o.DayOfWeek,t.dayOfWeek)),(0,s.isDefined)(t.day)&&(this.dayInternal=t.day),(0,s.isDefined)(t.dayOfWeekOccurrence)&&(this.dayOfWeekOccurrenceInternal=d.RecurrenceFactory.getEnumValue(r.DayOfWeekMonthlyOccurrence,t.dayOfWeekOccurrence)),(0,s.isDefined)(t.month)&&(this.monthInternal=d.RecurrenceFactory.getEnumValue(a.Month,t.month)),(0,s.isDefined)(t.calculateByDayOfWeek)&&(this._calculateByDayOfWeek=!!t.calculateByDayOfWeek))},t.prototype.calculatePoints=function(e,t){if(!e||!t)return new Array;var i=l.DateTimeUtils.getMaxDate(e,this._start),n=l.DateTimeUtils.getMinDate(t,this._end);return this._occurrenceCount>0?this.calculatePointsByOccurrenceCount(i,n):this.calculatePointsByDateRange(i,n)},t.prototype.calculatePointsByOccurrenceCount=function(e,t){for(var i=new Array,n=this.getFirstPoint(e);n&&i.length<this._occurrenceCount&&l.DateTimeUtils.compareDates(n,t)>=0;)this.isRecurrencePoint(n)&&i.push(n),n=this.getNextPoint(n);return i},t.prototype.calculatePointsByDateRange=function(e,t){for(var i=new Array,n=this.getFirstPoint(e);n&&l.DateTimeUtils.compareDates(n,t)>=0;)this.isRecurrencePoint(n)&&i.push(n),n=this.getNextPoint(n);return i},t.prototype.getFirstPoint=function(e){return this.isRecurrencePoint(e)?e:this.getNextPoint(e)},t.prototype.isRecurrencePoint=function(e){return this.isDateInRange(e)&&this.checkDate(e)&&(!this.useIntervalInCalc()||this.checkInterval(e))},t.prototype.isDateInRange=function(e){return!!e&&!(this._start&&l.DateTimeUtils.compareDates(this.start,e)<0)&&!(0==this._occurrenceCount&&this.end&&l.DateTimeUtils.compareDates(e,this.end)<0)},t.prototype.useIntervalInCalc=function(){return this.interval>1&&!!this._start},t.prototype.getNextPoint=function(e){return this.isDateInRange(e)?this.useIntervalInCalc()?this.calculatePointByInterval(e):this.calculateNearestPoint(e):null},t.prototype.getSpecDayInMonth=function(e,t){return this._calculateByDayOfWeek?l.DateTimeUtils.getSpecificDayOfWeekInMonthDate(this.dayOfWeekInternal,e,t,this.dayOfWeekOccurrenceInternal):new Date(e,t,this.dayInternal)},Object.defineProperty(t.prototype,"dayInternal",{get:function(){return this._day},set:function(e){e>0&&e<=31&&(this._day=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dayOfWeekInternal",{get:function(){return this._dayOfWeek},set:function(e){e>=o.DayOfWeek.Sunday&&e<=o.DayOfWeek.Saturday&&(this._dayOfWeek=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dayOfWeekOccurrenceInternal",{get:function(){return this._dayOfWeekOccurrence},set:function(e){e>=r.DayOfWeekMonthlyOccurrence.First&&e<=r.DayOfWeekMonthlyOccurrence.Last&&(this._dayOfWeekOccurrence=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"monthInternal",{get:function(){return this._month},set:function(e){e>=a.Month.January&&e<=a.Month.December&&(this._month=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"start",{get:function(){return this._start},set:function(e){e&&(this._start=e,this._end&&e>this._end&&(this._end=e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this._end},set:function(e){e&&(this._end=e,this._start&&e<this._start&&(this._start=e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"occurrenceCount",{get:function(){return this._occurrenceCount},set:function(e){e<0&&(e=0),this._occurrenceCount=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"interval",{get:function(){return this._interval},set:function(e){e>0&&(this._interval=e)},enumerable:!1,configurable:!0}),t}(i(2).DataObject);t.RecurrenceBase=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtils=void 0;var n=function(){function e(){}return e.isAlpha=function(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"},e.isDigit=function(e){return e>="0"&&e<="9"},e.stringHashCode=function(e){var t=0;if(0===e.length)return t;for(var i=e.length,n=0;n<i;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t},e.endsAt=function(e,t){var i=e.length-1,n=t.length-1,o=i-n;if(o<0)return!1;for(;i>=o;i--,n--)if(e[i]!==t[n])return!1;return!0},e.startsAt=function(e,t){return e.substr(0,t.length)===t},e.stringInLowerCase=function(e){return e.toLowerCase()===e},e.stringInUpperCase=function(e){return e.toUpperCase()===e},e.atLeastOneSymbolInUpperCase=function(t){for(var i=0,n=void 0;n=t[i];i++)if(e.stringInUpperCase(n)&&!e.stringInLowerCase(n))return!0;return!1},e.getSymbolFromEnd=function(e,t){return e[e.length-t]},e.trim=function(t,i){if(void 0===i)return e.trimInternal(t,!0,!0);var n=i.join("");return t.replace(new RegExp("(^["+n+"]*)|(["+n+"]*$)","g"),"")},e.trimStart=function(t,i){if(void 0===i)return e.trimInternal(t,!0,!1);var n=i.join("");return t.replace(new RegExp("^["+n+"]*","g"),"")},e.trimEnd=function(t,i){if(void 0===i)return e.trimInternal(t,!1,!0);var n=i.join("");return t.replace(new RegExp("["+n+"]*$","g"),"")},e.getDecimalSeparator=function(){return 1.1.toLocaleString().substr(1,1)},e.repeat=function(e,t){return new Array(t<=0?0:t+1).join(e)},e.isNullOrEmpty=function(e){return!e||!e.length},e.padLeft=function(t,i,n){return e.repeat(n,Math.max(0,i-t.length))+t},e.trimInternal=function(e,t,i){var n=e.length;if(!n)return e;if(n<764833){var o=e;return t&&(o=o.replace(/^\s+/,"")),i&&(o=o.replace(/\s+$/,"")),o}var r=0;if(i)for(;n>0&&/\s/.test(e[n-1]);)n--;if(t&&n>0)for(;r<n&&/\s/.test(e[r]);)r++;return e.substring(r,n)},e}();t.StringUtils=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfirmationDialogParameters=void 0;var n=i(0),o=function(e){function t(t,i){var n=e.call(this)||this;return n.type=t,n.callback=i,n}return n.__extends(t,e),t.prototype.clone=function(){var e=new t(this.type,this.callback);return e.message=this.message,e},t}(i(32).DialogParametersBase);t.ConfirmationDialogParameters=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveDependencyHistoryItem=void 0;var n=i(0),o=i(2),r=function(e){function t(t,i){var n=e.call(this,t)||this;return n.dependencyId=i,n}return n.__extends(t,e),t.prototype.redo=function(){this.dependency=this.modelManipulator.dependency.removeDependency(this.dependencyId)},t.prototype.undo=function(){this.modelManipulator.dependency.insertDependency(this.dependency.predecessorId,this.dependency.successorId,this.dependency.type,this.dependencyId)},Object.defineProperty(t.prototype,"keyUpdaters",{get:function(){var e=this;return[{objectType:o.GanttDataObjectNames.dependency,getKey:function(){return e.dependencyId},updateKey:function(t){return e.dependencyId=t}},{objectType:o.GanttDataObjectNames.task,getKey:function(){var t;return null===(t=e.dependency)||void 0===t?void 0:t.predecessorId},updateKey:function(t){return e.dependency.predecessorId=t}},{objectType:o.GanttDataObjectNames.task,getKey:function(){var t;return null===(t=e.dependency)||void 0===t?void 0:t.successorId},updateKey:function(t){return e.dependency.successorId=t}}]},enumerable:!1,configurable:!0}),t}(i(14).HistoryItem);t.RemoveDependencyHistoryItem=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompositionHistoryItem=void 0;var n=i(0),o=function(e){function t(){var t=e.call(this,null)||this;return t.historyItems=[],t}return n.__extends(t,e),t.prototype.redo=function(){for(var e,t=0;e=this.historyItems[t];t++)e.redo()},t.prototype.undo=function(){for(var e,t=this.historyItems.length-1;e=this.historyItems[t];t--)e.undo()},t.prototype.add=function(e){if(null==e)throw new Error("Can't add null HistoryItem");this.historyItems.push(e)},t.prototype.undoItemsQuery=function(){this.undo()},t.prototype.setModelManipulator=function(t){if(e.prototype.setModelManipulator.call(this,t),this.historyItems)for(var i=0;i<this.historyItems.length;i++)this.historyItems[i].setModelManipulator(t)},t}(i(14).HistoryItem);t.CompositionHistoryItem=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CreateTaskHistoryItem=void 0;var n=i(0),o=i(18),r=i(2),a=function(e){function t(t,i){var n=e.call(this,t)||this;return n.data=i,n}return n.__extends(t,e),t.prototype.redo=function(){var e;null!==(e=this.insertedKey)&&void 0!==e||(this.insertedKey=o.MathUtils.generateGuid()),this.modelManipulator.task.create(this.data,this.insertedKey)},t.prototype.undo=function(){this.modelManipulator.task.remove(this.insertedKey)},Object.defineProperty(t.prototype,"keyUpdaters",{get:function(){var e,t=this,i=[{objectType:r.GanttDataObjectNames.task,getKey:function(){return t.insertedKey},updateKey:function(e){return t.insertedKey=e}}];return(null===(e=this.data)||void 0===e?void 0:e.parentId)&&i.push({objectType:r.GanttDataObjectNames.task,getKey:function(){var e;return null===(e=t.data)||void 0===e?void 0:e.parentId},updateKey:function(e){return t.data.parentId=e}}),i},enumerable:!1,configurable:!0}),t}(i(14).HistoryItem);t.CreateTaskHistoryItem=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PdfTaskInfo=void 0;var n=i(5),o=i(17),r=i(26),a=function(){function e(){}return Object.defineProperty(e.prototype,"left",{get:function(){var e;return(null===(e=this.sidePoints)||void 0===e?void 0:e.length)>3?this.sidePoints[0].x:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){var e;return(null===(e=this.sidePoints)||void 0===e?void 0:e.length)>3?this.sidePoints[1].y:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){var e;return(null===(e=this.sidePoints)||void 0===e?void 0:e.length)>3?this.sidePoints[2].x:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){var e;return(null===(e=this.sidePoints)||void 0===e?void 0:e.length)>3?this.sidePoints[3].y:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var t=this.bottom-this.top;return this.isParent&&(t-=e.defaultParentHeightCorrection),t},enumerable:!1,configurable:!0}),e.prototype.assign=function(e){var t,i,n;this.isMilestone=e.isMilestone,this._copyPoints(e.sidePoints),this.progressWidth=e.progressWidth,this.isSmallTask=e.isSmallTask,this.text=e.text,this.textPosition=e.textPosition,null!==(t=this.progressColor)&&void 0!==t||(this.progressColor=new o.Color),this.progressColor.assign(e.progressColor),null!==(i=this.taskColor)&&void 0!==i||(this.taskColor=new o.Color),this.taskColor.assign(e.taskColor),null!==(n=this.textStyle)&&void 0!==n||(this.textStyle=new r.StyleDef),this.textStyle.assign(e.textStyle),this.isParent=e.isParent},e.prototype._copyPoints=function(e){var t=this;this.sidePoints=new Array,null==e||e.forEach((function(e){return t.sidePoints.push(new n.Point(e.x,e.y))}))},e.defaultParentHeightCorrection=4,e}();t.PdfTaskInfo=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CellDef=void 0;var n=i(1),o=i(26),r=function(){function e(e,t,i){this.content="","string"==typeof e?(this.content=e,this.colSpan=t,i&&this.appendStyles(i)):e&&this.assign(e)}return Object.defineProperty(e.prototype,"styles",{get:function(){return this._styles||(this._styles=new o.StyleDef),this._styles},enumerable:!1,configurable:!0}),e.prototype.assign=function(e){(0,n.isDefined)(e.content)&&(this.content=e.content),(0,n.isDefined)(e.colSpan)&&(this.colSpan=e.colSpan),e.styles&&this.appendStyles(e.styles)},e.prototype.appendStyles=function(e){e&&this.styles.assign(e)},e.prototype.hasValue=function(){return!0},e.prototype.getValue=function(){var e={};return e.content=this.content,this.colSpan>1&&(e.colSpan=this.colSpan),this._styles&&(e.styles=this._styles.getValue()),e},e}();t.CellDef=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskEditController=void 0;var n=i(4),o=i(19),r=i(3),a=i(10),s=i(169),l=i(65),d=i(15),u=function(){function e(e){this.showInfoDelay=1e3,this.taskIndex=-1,this.successorIndex=-1,this.isEditingInProgress=!1,this.disableTaskEditBox=!1,this.isTaskEditBoxShown=!1,this.settings=e,this.createElements()}return Object.defineProperty(e.prototype,"taskId",{get:function(){return this.viewModel.items[this.taskIndex].task.internalId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"successorId",{get:function(){return this.viewModel.items[this.successorIndex].task.internalId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"task",{get:function(){return this.viewItem.task},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewItem",{get:function(){return this.viewModel.items[this.taskIndex]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderHelper",{get:function(){return this.settings.getRenderHelper()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ganttSettings",{get:function(){return this.settings.getGanttSettings()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewModel",{get:function(){return this.settings.getViewModel()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"commandManager",{get:function(){return this.settings.getCommandManager()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"updateTaskCommand",{get:function(){return this.commandManager.updateTaskCommand},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"validationController",{get:function(){return this.settings.getValidationController()},enumerable:!1,configurable:!0}),e.prototype.raiseTaskMoving=function(e,t,i,n){return this.settings.getModelManipulator().dispatcher.raiseTaskMoving(e,t,i,n)},Object.defineProperty(e.prototype,"tooltip",{get:function(){var e;return null!==(e=this._tooltip)&&void 0!==e||(this._tooltip=new s.TaskEditTooltip(this.baseElement,this.tooltipSettings,this.renderHelper.elementTextHelperCultureInfo)),this._tooltip.tooltipSettings=this.tooltipSettings,this._tooltip},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tooltipSettings",{get:function(){var e=this;return l.TooltipSettings.parse({getHeaderHeight:this.settings.getRenderHelper().header.clientHeight,getTaskProgressTooltipContentTemplate:this.ganttSettings.taskProgressTooltipContentTemplate,getTaskTimeTooltipContentTemplate:this.ganttSettings.taskTimeTooltipContentTemplate,getTaskTooltipContentTemplate:this.ganttSettings.taskTooltipContentTemplate,destroyTemplate:function(t){e.settings.destroyTemplate(t)},formatDate:function(t){return e.settings.formatDate(t)}})},enumerable:!1,configurable:!0}),e.prototype.show=function(t){if(!this.isEditingInProgress&&!this.disableTaskEditBox){this.taskIndex=t,this.hide(),this.changeWrapInfo(),this.baseElement.className=e.CLASSNAMES.TASK_EDIT_BOX,this.displayDependency(),this.task.isMilestone()&&!this.viewItem.isCustom?this.baseElement.className=this.baseElement.className+" milestone":(this.isTaskUpdateAllowed()||(this.baseElement.className=this.baseElement.className+" "+e.CLASSNAMES.TASK_EDIT_HIDE_UPDATING),this.viewItem.isCustom&&this.baseElement.classList.add(e.CLASSNAMES.TASK_EDIT_BOX_CUSTOM));var i=this.settings.getGanttSettings().editing.taskHoverDelay||0;this.taskDateRange=new o.DateRange(this.task.start,this.task.end),this.displayTaskEditBox(i),this.displayProgressEdit(),this.displayStartEndEditElements()}},e.prototype.displayStartEndEditElements=function(){!this.task.isMilestone()&&this.isTaskUpdateAllowed()&&this.canUpdateTask()?(this.startEdit.style.display="block",this.endEdit.style.display="block"):(this.startEdit.style.display="none",this.endEdit.style.display="none")},e.prototype.displayProgressEdit=function(){!this.viewItem.isCustom&&this.canUpdateTask()&&this.isTaskUpdateAllowed()&&this.wrapInfo.size.width>this.wrapInfo.size.height?(this.progressEdit.style.display="block",this.progressEdit.style.left=this.task.normalizedProgress/100*this.wrapInfo.size.width-this.progressEdit.offsetWidth/2+"px"):this.progressEdit.style.display="none"},e.prototype.displayDependency=function(){this.ganttSettings.editing.enabled&&this.ganttSettings.editing.allowDependencyInsert&&this.ganttSettings.showDependencies||(this.baseElement.className=this.baseElement.className+" hide-dependency")},e.prototype.changeWrapInfo=function(){this.updateWrapInfo(),this.wrapInfo.assignPosition(this.baseElement),this.wrapInfo.assignSize(this.baseElement)},e.prototype.displayTaskEditBox=function(e){var t=this;void 0===e&&(e=0);var i=function(){t.renderHelper.taskArea.appendChild(t.baseElement),t.isTaskEditBoxShown=!0};e?this.timerId=setTimeout(i,e):i()},e.prototype.endEditing=function(){this.isEditingInProgress=!1,this.hide()},e.prototype.hide=function(){this.isTaskEditBoxShown=!1;var e=this.baseElement.parentNode;e&&e.removeChild(this.baseElement),this.tooltip.hide(),clearTimeout(this.timerId)},e.prototype.cancel=function(){clearTimeout(this.timerId)},e.prototype.showTaskInfo=function(e,t){void 0===t&&(t=500),this.timerId&&(t=this.showInfoDelay),this.tooltip.showInfo(this.task,e,t)},e.prototype.updateWrapInfo=function(){this.wrapInfo=this.getTaskWrapperElementInfo(this.taskIndex),this.wrapInfo.position.x--},e.prototype.isAllowedToConnectTasks=function(e){var t,i=this.viewModel.items[e];return this.validationController.canCreateDependency(this.taskId,null===(t=i.task)||void 0===t?void 0:t.internalId)},e.prototype.showDependencySuccessor=function(e){if(this.isAllowedToConnectTasks(e)){this.successorIndex=e;var t=this.getTaskWrapperElementInfo(e);t.assignPosition(this.dependencySuccessorBaseElement),t.assignSize(this.dependencySuccessorBaseElement),t.assignSize(this.dependencySuccessorFrame),this.renderHelper.taskArea.appendChild(this.dependencySuccessorBaseElement)}},e.prototype.hideDependencySuccessor=function(){var e=this.dependencySuccessorBaseElement.parentNode;e&&e.removeChild(this.dependencySuccessorBaseElement),this.successorIndex=-1},e.prototype.processProgress=function(e){if(this.isTaskUpdateAllowed()){this.isEditingInProgress=!0;var t=e.x-this.wrapInfo.position.x,i=0;e.x>this.wrapInfo.position.x&&(i=e.x<this.wrapInfo.position.x+this.wrapInfo.size.width?Math.round(t/this.baseElement.clientWidth*100):100),this.progressEdit.style.left=i/100*this.wrapInfo.size.width-this.progressEdit.offsetWidth/2+"px",this.tooltip.showProgress(i,r.DomUtils.getAbsolutePositionX(this.progressEdit)+this.progressEdit.offsetWidth/2)}},e.prototype.confirmProgress=function(){if(this.isTaskUpdateAllowed()){this.isEditingInProgress=!1;var e=Math.round((this.progressEdit.offsetLeft+this.progressEdit.offsetWidth/2)/this.wrapInfo.size.width*100);this.updateTaskCommand.execute(this.taskId,{progress:e})}},e.prototype.processEnd=function(e){if(this.isTaskUpdateAllowed()){this.baseElement.className=this.baseElement.className+" move",this.isEditingInProgress=!0;var t=e.x>this.wrapInfo.position.x?e.x:this.wrapInfo.position.x,i=t-this.wrapInfo.position.x;this.baseElement.style.width=(i<1?0:i)+"px";var n=this.task.start,o=this.renderHelper.gridLayoutCalculator.getDateByPos(t);o.setSeconds(0),o<n||i<1?this.taskDateRange.end.setTime(n.getTime()):this.taskDateRange.end=this.getCorrectedDate(this.task.end,o),this.tooltip.showTime(n,this.taskDateRange.end,r.DomUtils.getAbsolutePositionX(this.baseElement)+this.baseElement.clientWidth)}},e.prototype.confirmEnd=function(){this.isTaskUpdateAllowed()&&(this.baseElement.className=e.CLASSNAMES.TASK_EDIT_BOX,this.isEditingInProgress=!1,this.updateTaskCommand.execute(this.taskId,{end:this.taskDateRange.end}),this.hide(),this.updateWrapInfo())},e.prototype.processStart=function(e){if(this.isTaskUpdateAllowed()){this.baseElement.className=this.baseElement.className+" move",this.isEditingInProgress=!0;var t=e.x<this.wrapInfo.position.x+this.wrapInfo.size.width?e.x:this.wrapInfo.position.x+this.wrapInfo.size.width,i=this.wrapInfo.size.width-(t-this.wrapInfo.position.x);this.baseElement.style.left=t+"px",this.baseElement.style.width=(i<1?0:i)+"px";var n=this.task.end,o=this.renderHelper.gridLayoutCalculator.getDateByPos(t);o.setSeconds(0),o>n||i<1?this.taskDateRange.start.setTime(n.getTime()):this.taskDateRange.start=this.getCorrectedDate(this.task.start,o),this.tooltip.showTime(this.taskDateRange.start,n,r.DomUtils.getAbsolutePositionX(this.baseElement))}},e.prototype.confirmStart=function(){this.isTaskUpdateAllowed()&&(this.baseElement.className=e.CLASSNAMES.TASK_EDIT_BOX,this.isEditingInProgress=!1,this.updateTaskCommand.execute(this.taskId,{start:this.taskDateRange.start}),this.hide(),this.updateWrapInfo())},e.prototype.processMove=function(e){if(this.isTaskUpdateAllowed()&&this.isTaskEditBoxShown){this.baseElement.className=this.baseElement.className+" move";var t=this.baseElement.offsetLeft+e;this.baseElement.style.left=t+"px";var i=this.renderHelper.gridLayoutCalculator.getDateByPos(t);this.taskDateRange.start=this.getCorrectedDate(this.task.start,i);var n=d.DateUtils.getRangeMSPeriod(this.task.start,this.task.end);return this.taskDateRange.end=d.DateUtils.getDSTCorrectedTaskEnd(this.taskDateRange.start,n),this.isEditingInProgress=this.raiseTaskMoving(this.task,this.taskDateRange.start,this.taskDateRange.end,this.onTaskMovingCallback.bind(this)),this.isEditingInProgress&&this.tooltip.showTime(this.taskDateRange.start,this.taskDateRange.end,r.DomUtils.getAbsolutePositionX(this.baseElement)),this.isEditingInProgress}return!0},e.prototype.onTaskMovingCallback=function(e,t){if(this.taskDateRange.start!==e||this.taskDateRange.end!==t){var i=this.renderHelper.gridLayoutCalculator,n=i.getPosByDate(e),o=i.getPosByDate(t)-n;this.baseElement.style.left=n+"px",this.baseElement.style.width=(o<1?0:o)+"px",this.taskDateRange.start=e,this.taskDateRange.end=t}},e.prototype.confirmMove=function(){this.isTaskUpdateAllowed()&&(this.ganttSettings.editing.allowDependencyInsert||(this.baseElement.className=this.baseElement.className+" hide-dependency"),this.isEditingInProgress&&(this.baseElement.className=e.CLASSNAMES.TASK_EDIT_BOX,this.updateTaskCommand.execute(this.taskId,{start:this.taskDateRange.start,end:this.taskDateRange.end}),this.updateWrapInfo(),this.hide(),this.isEditingInProgress=!1))},e.prototype.getCorrectedDate=function(e,t){if(this.ganttSettings.viewType>n.ViewType.SixHours){var i=t.getFullYear(),o=t.getMonth(),r=t.getDate(),a=this.ganttSettings.viewType===n.ViewType.Days?t.getHours():e.getHours(),s=e.getMinutes(),l=e.getSeconds(),d=e.getMilliseconds();return new Date(i,o,r,a,s,l,d)}return t},e.prototype.startDependency=function(t){this.dependencyLine=document.createElement("DIV"),this.dependencyLine.className=e.CLASSNAMES.TASK_EDIT_DEPENDENCY_LINE,this.renderHelper.taskArea.appendChild(this.dependencyLine),this.startPosition=t},e.prototype.processDependency=function(e){this.isEditingInProgress=!0,this.drawline(this.startPosition,e)},e.prototype.endDependency=function(e){this.isEditingInProgress=!1,null!=e&&this.commandManager.createDependencyCommand.execute(this.task.internalId,this.successorId,e);var t=this.dependencyLine.parentNode;t&&t.removeChild(this.dependencyLine),this.dependencyLine=null,this.hideDependencySuccessor(),this.hide()},e.prototype.selectDependency=function(e){this.ganttSettings.editing.allowDependencyDelete&&(this.dependencyId=e)},e.prototype.isDependencySelected=function(e){return this.dependencyId&&this.dependencyId===e},e.prototype.deleteSelectedDependency=function(){this.dependencyId&&this.commandManager.removeDependencyCommand.execute(this.dependencyId)},e.prototype.getTaskWrapperElementInfo=function(e){var t=this.renderHelper.gridLayoutCalculator,i=t.getTaskWrapperElementInfo(e);return i.size.width=t.getTaskWidth(e),i.size.height=t.getTaskHeight(e),i},e.prototype.createElements=function(){this.baseElement=document.createElement("DIV"),this.baseFrame=document.createElement("DIV"),this.baseFrame.className=e.CLASSNAMES.TASK_EDIT_FRAME,this.baseElement.appendChild(this.baseFrame),this.progressEdit=document.createElement("DIV"),this.progressEdit.className=e.CLASSNAMES.TASK_EDIT_PROGRESS,this.baseFrame.appendChild(this.progressEdit),this.progressEdit.appendChild(document.createElement("DIV")),this.dependencyFinish=document.createElement("DIV"),this.dependencyFinish.classList.add(e.CLASSNAMES.TASK_EDIT_DEPENDENCY_RIGTH),a.Browser.TouchUI&&this.dependencyFinish.classList.add(e.CLASSNAMES.TASK_EDIT_TOUCH),this.baseFrame.appendChild(this.dependencyFinish),this.dependencyStart=document.createElement("DIV"),this.dependencyStart.classList.add(e.CLASSNAMES.TASK_EDIT_DEPENDENCY_LEFT),a.Browser.TouchUI&&this.dependencyStart.classList.add(e.CLASSNAMES.TASK_EDIT_TOUCH),this.baseFrame.appendChild(this.dependencyStart),this.startEdit=document.createElement("DIV"),this.startEdit.className=e.CLASSNAMES.TASK_EDIT_START,this.baseFrame.appendChild(this.startEdit),this.endEdit=document.createElement("DIV"),this.endEdit.className=e.CLASSNAMES.TASK_EDIT_END,this.baseFrame.appendChild(this.endEdit),this.dependencySuccessorBaseElement=document.createElement("DIV"),this.dependencySuccessorBaseElement.className=e.CLASSNAMES.TASK_EDIT_BOX_SUCCESSOR,this.dependencySuccessorFrame=document.createElement("DIV"),this.dependencySuccessorFrame.className=e.CLASSNAMES.TASK_EDIT_FRAME_SUCCESSOR,this.dependencySuccessorBaseElement.appendChild(this.dependencySuccessorFrame),this.dependencySuccessorStart=document.createElement("DIV"),this.dependencySuccessorStart.classList.add(e.CLASSNAMES.TASK_EDIT_SUCCESSOR_DEPENDENCY_RIGTH),a.Browser.TouchUI&&this.dependencySuccessorStart.classList.add(e.CLASSNAMES.TASK_EDIT_TOUCH),this.dependencySuccessorFrame.appendChild(this.dependencySuccessorStart),this.dependencySuccessorFinish=document.createElement("DIV"),this.dependencySuccessorFinish.classList.add(e.CLASSNAMES.TASK_EDIT_SUCCESSOR_DEPENDENCY_LEFT),a.Browser.TouchUI&&this.dependencySuccessorFinish.classList.add(e.CLASSNAMES.TASK_EDIT_TOUCH),this.dependencySuccessorFrame.appendChild(this.dependencySuccessorFinish),this._tooltip=new s.TaskEditTooltip(this.baseElement,this.tooltipSettings,this.renderHelper.elementTextHelperCultureInfo),this.attachEvents()},e.prototype.attachEvents=function(){this.onMouseLeaveHandler=function(){this.isEditingInProgress||this.hide()}.bind(this),this.baseElement.addEventListener("mouseleave",this.onMouseLeaveHandler)},e.prototype.drawline=function(e,t){if(e.x>t.x){var i=t;t=e,e=i}var n=Math.atan((e.y-t.y)/(t.x-e.x));n=-(n=180*n/Math.PI);var o=Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y));this.dependencyLine.style.left=e.x+"px",this.dependencyLine.style.top=e.y+"px",this.dependencyLine.style.width=o+"px",this.dependencyLine.style.transform="rotate("+n+"deg)"},e.prototype.canUpdateTask=function(){return!this.viewModel.isTaskToCalculateByChildren(this.task.internalId)},e.prototype.isTaskUpdateAllowed=function(){var e=this.ganttSettings.editing;return e.enabled&&e.allowTaskUpdate},e.prototype.detachEvents=function(){var e;null===(e=this.baseElement)||void 0===e||e.removeEventListener("mouseleave",this.onMouseLeaveHandler)},e.CLASSNAMES={TASK_EDIT_BOX:"dx-gantt-task-edit-wrapper",TASK_EDIT_BOX_CUSTOM:"dx-gantt-task-edit-wrapper-custom",TASK_EDIT_FRAME:"dx-gantt-task-edit-frame",TASK_EDIT_PROGRESS:"dx-gantt-task-edit-progress",TASK_EDIT_DEPENDENCY_RIGTH:"dx-gantt-task-edit-dependency-r",TASK_EDIT_DEPENDENCY_LEFT:"dx-gantt-task-edit-dependency-l",TASK_EDIT_START:"dx-gantt-task-edit-start",TASK_EDIT_END:"dx-gantt-task-edit-end",TASK_EDIT_DEPENDENCY_LINE:"dx-gantt-task-edit-dependency-line",TASK_EDIT_BOX_SUCCESSOR:"dx-gantt-task-edit-wrapper-successor",TASK_EDIT_FRAME_SUCCESSOR:"dx-gantt-task-edit-frame-successor",TASK_EDIT_SUCCESSOR_DEPENDENCY_RIGTH:"dx-gantt-task-edit-successor-dependency-r",TASK_EDIT_SUCCESSOR_DEPENDENCY_LEFT:"dx-gantt-task-edit-successor-dependency-l",TASK_EDIT_TOUCH:"dx-gantt-edit-touch",TASK_EDIT_HIDE_UPDATING:"hide-updating"},e}();t.TaskEditController=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GanttView=void 0;var n=i(75),o=i(10),r=i(76),a=i(43),s=i(19),l=i(8),d=i(15),u=i(123),c=i(124),h=i(126),p=i(137),f=i(1),g=i(139),m=i(145),_=i(152),v=i(157),y=i(185),C=i(12),b=i(68),x=i(46),w=i(189),T=i(190),S=i(192),I=i(4),E=i(193),D=i(210),k=i(9),O=i(3),A=i(5),P=i(211),M=i(20),R=i(2),B=function(){function e(e,t,i){var o=this;this.currentSelectedTaskID="",this.isFocus=!1,this._updateWithModelReloadLockedCounter=0,this.scaleCount=2,this.tickSize=new C.Size(0,0),this.currentZoom=1,this.stripLinesUpdaterId=null,this.ganttOwner=t,this.settings=y.Settings.parse(i),this.initValidationController(),this.renderHelper=new v.RenderHelper(this),this.renderHelper.initMarkup(e),this.loadOptionsFromGanttOwner(),this.renderHelper.init(this.tickSize,this.range,this.settings.viewType,this.viewModel,this.settings.firstDayOfWeek),this.commandManager=new r.CommandManager(this),this.barManager=new n.BarManager(this.commandManager,this.ganttOwner.bars),this.initTaskEditController(),this.history=new p.History(this._getHistoryListener()),this.initFullScreenModeHelper(),this.updateView(),this._scrollTimeOut=setTimeout((function(){o.scrollLeftByViewType()}),0),this.initializeStripLinesUpdater(),this.initGanttViewApi()}return e.prototype.initGanttViewApi=function(){this.ganttViewApi=new D.GanttViewApi(this)},e.prototype._getHistoryListener=function(){return{onTransactionStart:this.onHistoryTransactionStart.bind(this),onTransactionEnd:this.onHistoryTransactionEnd.bind(this)}},e.prototype.onHistoryTransactionStart=function(){this.lockUpdateWithReload()},e.prototype.onHistoryTransactionEnd=function(){this.unlockUpdateWithReload()},e.prototype.lockUpdateWithReload=function(){this._updateWithModelReloadLockedCounter++},e.prototype.unlockUpdateWithReload=function(){this._updateWithModelReloadLockedCounter--,0===this._updateWithModelReloadLockedCounter&&this._pendingUpdateInfo&&(this.updateWithDataReload(this._pendingUpdateInfo.keepExpandState),this._pendingUpdateInfo=null)},e.prototype.initValidationController=function(){var e=this,t=S.ValidationControllerSettings.parse({getViewModel:function(){return e.viewModel},getHistory:function(){return e.history},getModelManipulator:function(){return e.modelManipulator},getRange:function(){return e.range},getValidationSettings:function(){return e.settings.validation},updateOwnerInAutoParentMode:function(){e.updateOwnerInAutoParentMode()},getIsValidateDependenciesRequired:function(){return e.isValidateDependenciesRequired()}});this.validationController=new T.ValidationController(t)},e.prototype.initTaskEditController=function(){var e=this,t=w.TaskEditSettings.parse({destroyTemplate:function(t){e.destroyTemplate(t)},formatDate:function(t){return e.getDateFormat(t)},getRenderHelper:function(){return e.renderHelper},getGanttSettings:function(){return e.settings},getViewModel:function(){return e.viewModel},getCommandManager:function(){return e.commandManager},getModelManipulator:function(){return e.modelManipulator},getValidationController:function(){return e.validationController}});this.taskEditController=new x.TaskEditController(t)},Object.defineProperty(e.prototype,"taskAreaEventsListener",{get:function(){var e;return null!==(e=this._taskAreaEventsListener)&&void 0!==e||(this._taskAreaEventsListener=new P.TaskAreaEventsListener(this)),this._taskAreaEventsListener},enumerable:!1,configurable:!0}),e.prototype.initFullScreenModeHelper=function(){var e=this,t=u.FullScreenHelperSettings.parse({getMainElement:function(){return e.getOwnerControlMainElement()},adjustControl:function(){e.adjustOwnerControl()}});this.fullScreenModeHelper=new c.FullScreenModeHelper(t)},e.prototype.getDateRange=function(e,t){var i=this.getVisibleAreaTime(),n=this.settings.startDateRange||d.DateUtils.adjustStartDateByViewType(new Date(e.getTime()-i),this.settings.viewType,this.settings.firstDayOfWeek),o=this.settings.endDateRange||d.DateUtils.adjustEndDateByViewType(new Date(t.getTime()+i),this.settings.viewType,this.settings.firstDayOfWeek);return this.settings.startDateRange&&n>o?o=n:this.settings.endDateRange&&n>o&&(n=o),new s.DateRange(n,o)},e.prototype.getVisibleAreaTime=function(){return Math.ceil(this.renderHelper.getTaskAreaContainerWidth()/this.tickSize.width)*d.DateUtils.getTickTimeSpan(this.settings.viewType)},e.prototype.zoomIn=function(e){void 0===e&&(e=this.renderHelper.getTaskAreaContainerWidth()/2),this.ganttViewApi.zoomIn(e)},e.prototype.zoomOut=function(e){void 0===e&&(e=this.renderHelper.getTaskAreaContainerWidth()/2),this.ganttViewApi.zoomOut(e)},e.prototype.scrollToDate=function(e){if(e){var t=e instanceof Date?d.DateUtils.getOrCreateUTCDate(e):d.DateUtils.parse(e);this.scrollToDateCore(t,0)}},e.prototype.showDialog=function(e,t,i,n){this.ganttOwner.showDialog(e,t,i,n)},e.prototype.showPopupMenu=function(e){this.ganttOwner.showPopupMenu(e)},e.prototype.hidePopupMenu=function(){this.ganttOwner.hidePopupMenu&&this.ganttOwner.hidePopupMenu()},e.prototype.collapseAll=function(){this.ganttOwner.collapseAll()},e.prototype.expandAll=function(){this.ganttOwner.expandAll()},e.prototype.onGanttViewContextMenu=function(e,t,i){return this.ganttOwner.onGanttViewContextMenu(e,t,i)},e.prototype.changeGanttTaskSelection=function(e,t){this.ganttOwner.changeGanttTaskSelection(e,t)},e.prototype.hideTaskEditControl=function(){this.taskEditController.hide()},e.prototype.scrollLeftByViewType=function(){var e=d.DateUtils.roundStartDate(this.dataRange.start,this.settings.viewType);this.scrollToDateCore(e,1)},e.prototype.scrollToDateCore=function(e,t){this.renderHelper.setTaskAreaContainerScrollLeftToDate(e,t)},e.prototype.onVisualModelChanged=function(){this.resetAndUpdate()},e.prototype.initializeStripLinesUpdater=function(){var e=this;this.settings.stripLines.showCurrentTime&&(this.stripLinesUpdaterId=setInterval((function(){e.renderHelper.recreateStripLines()}),Math.max(this.settings.stripLines.currentTimeUpdateInterval,100)))},e.prototype.clearStripLinesUpdater=function(){this.stripLinesUpdaterId&&clearInterval(this.stripLinesUpdaterId),this.stripLinesUpdaterId=null},e.prototype.getGanttViewStartDate=function(e){if(!e)return new Date;var t=e.map((function(e){return"string"==typeof e.start?new Date(e.start):e.start})).filter((function(e){return(0,f.isDefined)(e)}));return t.length>0?t.reduce((function(e,t){return t<e?t:e}),t[0]):new Date},e.prototype.getGanttViewEndDate=function(e){if(!e)return new Date;var t=e.map((function(e){return"string"==typeof e.end?new Date(e.end):e.end})).filter((function(e){return(0,f.isDefined)(e)}));return t.length>0?t.reduce((function(e,t){return t>e?t:e}),t[0]):new Date},e.prototype.getTask=function(e){var t=this.getViewItem(e);return null==t?void 0:t.task},e.prototype.getViewItem=function(e){var t;return null===(t=this.viewModel)||void 0===t?void 0:t.items[e]},e.prototype.isValidateDependenciesRequired=function(){return this.settings.validation.validateDependencies&&this.settings.showDependencies},e.prototype.updateTickSizeWidth=function(){this.tickSize.width=this.renderHelper.etalonScaleItemWidths*this.currentZoom},e.prototype.updateView=function(){this.onBeginUpdateView(),this.renderHelper.setTimeScaleContainerScrollLeft(this.taskAreaContainerScrollLeft),this.processScroll(!1),this.processScroll(!0),this.ganttOwner.onGanttScroll(this.taskAreaContainerScrollTop),this.onEndUpdateView()},e.prototype.onBeginUpdateView=function(){this[e.taskAreaScrollTopKey]=this.renderHelper.taskAreaContainerScrollTop,this[e.taskAreaScrollLeftKey]=this.renderHelper.taskAreaContainerScrollLeft},e.prototype.onEndUpdateView=function(){delete this[e.taskAreaScrollTopKey],delete this[e.taskAreaScrollLeftKey],delete this[e.taskTextHeightKey]},Object.defineProperty(e.prototype,"taskAreaContainerScrollTop",{get:function(){var t;return null!==(t=this[e.taskAreaScrollTopKey])&&void 0!==t?t:this.renderHelper.taskAreaContainerScrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaContainerScrollLeft",{get:function(){var t;return null!==(t=this[e.taskAreaScrollLeftKey])&&void 0!==t?t:this.renderHelper.taskAreaContainerScrollLeft},enumerable:!1,configurable:!0}),e.prototype.processScroll=function(e){this.hideTaskEditControl(),this.renderHelper.processScroll(e)},e.prototype.allowTaskAreaBorders=function(e){return e?this.settings.areHorizontalBordersEnabled:this.settings.areVerticalBordersEnabled},e.prototype.getScaleItemText=function(e,t){return this.renderHelper.getScaleItemText(e,t)},e.prototype.getTaskText=function(e){return this.renderHelper.getTaskText(e)},e.prototype.rowHasChildren=function(e){var t=this.getViewItem(e);return(null==t?void 0:t.children.length)>0},e.prototype.rowHasSelection=function(e){var t=this.getViewItem(e);return null==t?void 0:t.selected},e.prototype.getAllVisibleTaskIndices=function(e,t){return this.viewModel.getAllVisibleTaskIndices(e,t)},e.prototype.getVisibleDependencyKeysByTaskRange=function(e){var t=this.viewModel,i=e.map((function(e){return t.tasks.items[e].internalId}));return t.dependencies.items.filter((function(e){return i.indexOf(e.successorId)>-1||i.indexOf(e.predecessorId)>-1})).map((function(e){return e.internalId}))},e.prototype.getTreeListTableStyle=function(){var e,t;return null===(t=(e=this.ganttOwner).getTreeListTableStyle)||void 0===t?void 0:t.call(e)},e.prototype.getTreeListColCount=function(){var e,t;return null===(t=(e=this.ganttOwner).getTreeListColCount)||void 0===t?void 0:t.call(e)},e.prototype.getTreeListHeaderInfo=function(e){var t,i;return null===(i=(t=this.ganttOwner).getTreeListHeaderInfo)||void 0===i?void 0:i.call(t,e)},e.prototype.getTreeListCellInfo=function(e,t,i){var n,o;return null===(o=(n=this.ganttOwner).getTreeListCellInfo)||void 0===o?void 0:o.call(n,e,t,i)},e.prototype.getTreeListEmptyDataCellInfo=function(){var e,t;return null===(t=(e=this.ganttOwner).getTreeListEmptyDataCellInfo)||void 0===t?void 0:t.call(e)},e.prototype.exportToPdf=function(e){var t;return null!==(t=e.docCreateMethod)&&void 0!==t||(e.docCreateMethod=this.getDefaultPdfDocCreateMethod()),new _.PdfGanttExporter(new h.GanttExportCalculator(this,e)).export()},e.prototype.getDefaultPdfDocCreateMethod=function(){var e;return null===(e=window.jspdf)||void 0===e?void 0:e.jsPDF},e.prototype.getTaskDependencies=function(e){return this.viewModel.dependencies.items.filter((function(t){return t.predecessorId==e||t.successorId==e}))},e.prototype.isHighlightRowElementAllowed=function(e){var t=this.getViewItem(e);return e%2!=0&&this.settings.areAlternateRowsEnabled||(null==t?void 0:t.children.length)>0},e.prototype.calculateAutoViewType=function(e,t){var i=(t.getTime()-e.getTime())/36e5;return i>8760?I.ViewType.Years:i>720?I.ViewType.Months:i>168?I.ViewType.Weeks:i>24?I.ViewType.Days:i>6?I.ViewType.SixHours:i>1?I.ViewType.Hours:I.ViewType.TenMinutes},e.prototype.getExternalTaskAreaContainer=function(e){return this.ganttOwner.getExternalTaskAreaContainer(e)},e.prototype.prepareExternalTaskAreaContainer=function(e,t){return this.ganttOwner.prepareExternalTaskAreaContainer(e,t)},e.prototype.getHeaderHeight=function(){return this.ganttOwner.getHeaderHeight()},e.prototype.changeTaskExpanded=function(e,t){var i=this.getTaskByPublicId(e);i&&this.viewModel.changeTaskExpanded(i.internalId,t)},e.prototype.expandTask=function(e){this.viewModel.changeTaskExpanded(e,!0)},e.prototype.collapseTask=function(e){this.viewModel.changeTaskExpanded(e,!1)},e.prototype.showTask=function(e){this.viewModel.changeTaskVisibility(e,!0)},e.prototype.hideTask=function(e){this.viewModel.changeTaskVisibility(e,!1)},e.prototype.getTaskVisibility=function(e){return this.viewModel.getTaskVisibility(e)},e.prototype.unselectCurrentSelectedTask=function(){this.unselectTask(this.currentSelectedTaskID)},e.prototype.getTaskSelected=function(e){return this.viewModel.getTaskSelected(e)},e.prototype.setViewType=function(e,t){void 0===t&&(t=!0),this.ganttViewApi.setViewType(e,t)},e.prototype.setViewTypeRange=function(e,t){this.ganttViewApi.setViewTypeRange(e,t)},e.prototype.setTaskTitlePosition=function(e){this.settings.taskTitlePosition!==e&&(this.settings.taskTitlePosition=e,this.resetAndUpdate())},e.prototype.setShowResources=function(e){this.settings.showResources!==e&&(this.settings.showResources=e,this.resetAndUpdate())},e.prototype.toggleResources=function(){this.setShowResources(!this.settings.showResources)},e.prototype.setShowDependencies=function(e){this.settings.showDependencies!==e&&(this.settings.showDependencies=e,this.resetAndUpdate())},e.prototype.toggleDependencies=function(){this.setShowDependencies(!this.settings.showDependencies)},e.prototype.setFirstDayOfWeek=function(e){this.settings.firstDayOfWeek!==e&&(this.settings.firstDayOfWeek=e,this.resetAndUpdate())},e.prototype.setStartDateRange=function(e){l.DateTimeUtils.areDatesEqual(this.settings.startDateRange,e)||(this.settings.startDateRange=new Date(e),this.resetAndUpdate())},e.prototype.setEndDateRange=function(e){l.DateTimeUtils.areDatesEqual(this.settings.endDateRange,e)||(this.settings.endDateRange=new Date(e),this.resetAndUpdate())},e.prototype.loadOptionsFromGanttOwner=function(){var e,t=this;this.tickSize.height=this.ganttOwner.getRowHeight();var i=this.ganttOwner.getGanttTasksData();this.dataRange=new s.DateRange(this.getGanttViewStartDate(i),this.getGanttViewEndDate(i)),null==this.settings.viewType&&(this.settings.viewType=this.calculateAutoViewType(this.dataRange.start,this.dataRange.end)),this.updateTickSizeWidth(),this.range=this.getDateRange(this.dataRange.start,this.dataRange.end),this.dispatcher=new g.ModelChangesDispatcher;var n=this.ganttOwner.getModelChangesListener();n&&this.dispatcher.onModelChanged.add(n),this.viewModel=new E.ViewVisualModel(this,i,this.ganttOwner.getGanttDependenciesData(),this.ganttOwner.getGanttResourcesData(),this.ganttOwner.getGanttResourceAssignmentsData(),this.range,this.ganttOwner.getGanttWorkTimeRules()),this.modelManipulator=new m.ModelManipulator(this.viewModel,this.dispatcher),null===(e=this.history)||void 0===e||e.historyItems.forEach((function(e){return e.setModelManipulator(t.modelManipulator)}))},e.prototype.resetAndUpdate=function(){this.range=this.getDateRange(this.dataRange.start,this.dataRange.end),this.viewModel.updateRange(this.range),this.renderHelper.resetAndUpdate(this.tickSize,this.range,this.settings.viewType,this.viewModel,this.settings.firstDayOfWeek),o.Browser.IE&&this.taskEditController.createElements(),this.updateView()},e.prototype.cleanMarkup=function(){this.renderHelper.taskAreaManagerDetachEvents(),this.taskEditController.detachEvents(),this.clearStripLinesUpdater(),this.renderHelper.reset(),clearTimeout(this._scrollTimeOut)},e.prototype.checkAndProcessModelChanges=function(){var e=this.ganttOwner.getGanttTasksData(),t=this.viewModel.refreshTaskDataIfRequires(e);return t&&this.resetAndUpdate(),t},e.prototype.updateHistoryObsoleteInsertedKey=function(e,t,i){var n;null===(n=this.history)||void 0===n||n.updateObsoleteInsertedKey(e,t,i),i===R.GanttDataObjectNames.dependency&&this.renderHelper.updateRenderedConnectorLinesId(e,t)},e.prototype.updateRowHeights=function(e){if(this.tickSize.height!==e){this.tickSize.height=e;var t=this.renderHelper.getTaskAreaContainerScrollLeft();this.resetAndUpdate(),this.renderHelper.setTaskAreaContainerScrollLeft(t)}},e.prototype.selectTask=function(e){this.selectDependency(null),this.viewModel.changeTaskSelected(e,!0),this.currentSelectedTaskID=e,this.updateBarManager()},e.prototype.unselectTask=function(e){this.viewModel.changeTaskSelected(e,!1),this.updateBarManager()},e.prototype.selectTaskById=function(e){this.unselectCurrentSelectedTask();var t=this.getTaskByPublicId(e);t&&this.selectTask(t.internalId)},e.prototype.selectDependency=function(e){this.taskEditController.selectDependency(e),this.renderHelper.createConnectorLines()},e.prototype.getTaskAreaContainer=function(){return this.renderHelper.taskAreaContainer},e.prototype.setWidth=function(e){this.renderHelper.setMainElementWidth(e)},e.prototype.setHeight=function(e){this.renderHelper.setMainElementHeight(e)},e.prototype.setAllowSelection=function(e){this.settings.allowSelectTask=e},e.prototype.setEditingSettings=function(e){this.settings.editing=e,this.updateBarManager()},e.prototype.setValidationSettings=function(e){this.settings.validation=e},e.prototype.setRowLinesVisible=function(e){this.settings.areHorizontalBordersEnabled=e,this.renderHelper.prepareTaskAreaContainer(),this.resetAndUpdate()},e.prototype.setStripLines=function(e){this.settings.stripLines=b.StripLineSettings.parse(e),this.clearStripLinesUpdater(),this.initializeStripLinesUpdater(),this.renderHelper.recreateStripLines()},e.prototype.deleteTask=function(e){var t=this.getTaskByPublicId(e.toString());t&&this.commandManager.removeTaskCommand.execute(t.internalId,!1,!0)},e.prototype.insertTask=function(e){if(e){var t=null!=e.parentId?String(e.parentId):null,i=this.getTaskByPublicId(t),n=this.viewModel.getRootTaskId(),o="string"==typeof e.start?new Date(e.start):e.start,r="string"==typeof e.end?new Date(e.end):e.end,a={parentId:n&&t===n?t:null==i?void 0:i.internalId,title:e.title,start:o,end:r,progress:parseInt(e.progress)||0,color:e.color};if(this.commandManager.createTaskCommand.execute(a))return this.getLastInsertedTaskId()}return""},e.prototype.updateTask=function(e,t){var i=this.getTaskByPublicId(e.toString()),n=this._getTaskDataForUpdate(t,i);n&&this.commandManager.updateTaskCommand.execute(i.internalId,n)},e.prototype.getTaskData=function(e){var t=this.getTaskByPublicId(e.toString());if(t)return this.viewModel.getTaskObjectForDataSource(t)},e.prototype.insertDependency=function(e){if(e){var t=String(e.predecessorId),i=this.getTaskByPublicId(t),n=String(e.successorId),o=this.getTaskByPublicId(n),r=e.type;i&&o&&this.validationController.canCreateDependency(t,n)&&this.commandManager.createDependencyCommand.execute(i.internalId,o.internalId,r)}},e.prototype.deleteDependency=function(e){var t=this.viewModel.convertPublicToInternalKey("dependency",e);(0,f.isDefined)(t)&&this.commandManager.removeDependencyCommand.execute(t)},e.prototype.getDependencyData=function(e){return this.viewModel.getDependencyObjectForDataSource(e)},e.prototype.insertResource=function(e,t){var i=this;e&&this.commandManager.createResourceCommand.execute(String(e.text),e.color&&String(e.color),(function(e){if((0,f.isDefined)(t))for(var n=0;n<t.length;n++)i.assignResourceToTask(e,t[n])}))},e.prototype.deleteResource=function(e){var t=this.viewModel.convertPublicToInternalKey("resource",e);(0,f.isDefined)(t)&&this.commandManager.removeResourceCommand.execute(t)},e.prototype.assignResourceToTask=function(e,t){var i=this.viewModel.convertPublicToInternalKey("resource",e),n=this.viewModel.convertPublicToInternalKey("task",t);(0,f.isDefined)(i)&&(0,f.isDefined)(n)&&this.commandManager.assignResourceCommand.execute(i,n)},e.prototype.unassignResourceFromTask=function(e,t){var i=this.viewModel.findAssignment(e,t);i&&this.commandManager.deassignResourceCommand.execute(i.internalId)},e.prototype.unassignAllResourcesFromTask=function(e){var t=this,i=this.viewModel.convertPublicToInternalKey("task",e);this.viewModel.findAllTaskAssignments(i).forEach((function(e){return t.commandManager.deassignResourceCommand.execute(e.internalId)}))},e.prototype.getResourceData=function(e){return this.viewModel.getResourceObjectForDataSource(e)},e.prototype.getResourceAssignmentData=function(e){return this.viewModel.getResourceAssignmentObjectForDataSource(e)},e.prototype.getTaskResources=function(e){var t=this.viewModel,i=t.getItemByPublicId("task",e);return i&&t.getAssignedResources(i).items},e.prototype.getVisibleTaskKeys=function(){return this.viewModel.getVisibleTasks().map((function(e){return e.id}))},e.prototype.getVisibleDependencyKeys=function(){return this.viewModel.getVisibleDependencies().map((function(e){return e.id}))},e.prototype.getVisibleResourceKeys=function(){return this.viewModel.getVisibleResources().map((function(e){return e.id}))},e.prototype.getVisibleResourceAssignmentKeys=function(){return this.viewModel.getVisibleResourceAssignments().map((function(e){return e.id}))},e.prototype.getTasksExpandedState=function(){return this.viewModel.getTasksExpandedState()},e.prototype.applyTasksExpandedState=function(e){this.viewModel.applyTasksExpandedState(e)},e.prototype.updateWithDataReload=function(e){if(this._updateWithModelReloadLockedCounter>0)this._pendingUpdateInfo={keepExpandState:e};else{var t=e&&this.getTasksExpandedState();this.loadOptionsFromGanttOwner(),e?this.applyTasksExpandedState(t):this.resetAndUpdate();var i=M.DialogBase.activeInstance;i&&i.canRefresh&&"TaskEdit"===i.getDialogName()&&i.refresh()}},e.prototype.onBrowserWindowResize=function(){this.fullScreenModeHelper.isInFullScreenMode?this.fullScreenModeHelper.adjustControlInFullScreenMode():this.adjustOwnerControl()},e.prototype.setTaskValue=function(e,t,i){var n=this.commandManager.updateTaskCommand,o=this.getTaskByPublicId(e),r={};return o&&("title"===t&&(r[t]=i||""),"progress"===t&&(r[t]=i),"start"===t&&(r[t]=l.DateTimeUtils.getMinDate(i,o.end)),"end"===t&&(r[t]=l.DateTimeUtils.getMaxDate(i,o.start))),Object.keys(r).length>0&&n.execute(o.internalId,r)},e.prototype.getLastInsertedTaskId=function(){var e=this.history.historyItems.filter((function(e){return e instanceof a.CreateTaskHistoryItem})),t=e[e.length-1];return t&&t.insertedKey},e.prototype.getTaskByPublicId=function(e){return this.viewModel.tasks.getItemByPublicId(e)},e.prototype.getPrevTask=function(e){var t=this.viewModel.findItem(e),i=(t.parent||this.viewModel.root).children.indexOf(t)-1;return i>-1?t.parent.children[i].task:t.parent.task},e.prototype.getTaskIdByInternalId=function(e){var t=this.viewModel.findItem(e),i=t&&t.task;return i?i.id:null},e.prototype.isTaskHasChildren=function(e){var t=this.viewModel.findItem(e);return t&&t.children.length>0},e.prototype.requireFirstLoadParentAutoCalc=function(){var e=this.ganttOwner;return e.getRequireFirstLoadParentAutoCalc&&e.getRequireFirstLoadParentAutoCalc()},e.prototype.updateOwnerInAutoParentMode=function(){this.viewModel.parentAutoCalc&&this.dispatcher.notifyParentDataRecalculated(this.viewModel.getCurrentTaskData())},e.prototype.getOwnerControlMainElement=function(){var e=this.ganttOwner;return e.getMainElement&&e.getMainElement()},e.prototype.adjustOwnerControl=function(){var e=this.ganttOwner;e.adjustControl&&e.adjustControl()},e.prototype.applySettings=function(e,t){void 0===t&&(t=!1);var i=y.Settings.parse(e),n=t||this.settings.equal(i);this.settings=i,n||this.resetAndUpdate()},e.prototype.getDataUpdateErrorCallback=function(){var e=this,t=this.history,i=t.getCurrentProcessingItemInfo();return function(){e.dispatcher.lock(),t.rollBackAndRemove(i),e.dispatcher.unlock(),e.updateBarManager()}},e.prototype.setTaskTooltipContentTemplate=function(e){this.settings.taskTooltipContentTemplate=e},e.prototype.setTaskProgressTooltipContentTemplate=function(e){this.settings.taskProgressTooltipContentTemplate=e},e.prototype.setTaskTimeTooltipContentTemplate=function(e){this.settings.taskTimeTooltipContentTemplate=e},e.prototype.setTaskContentTemplate=function(e){this.settings.taskContentTemplate=e},e.prototype.updateBarManager=function(){this.barManager.updateItemsState([])},e.prototype.onTaskAreaClick=function(e,t){var i,n=this.viewModel.items[e];return n&&this.onTaskClick(null===(i=n.task)||void 0===i?void 0:i.id,t)},e.prototype.onTaskAreaDblClick=function(e,t){var i=this.viewModel.items[e];i&&this.onTaskDblClick(i.task.id,t)&&this.commandManager.showTaskEditDialog.execute(i.task)},e.prototype.onTaskAreaContextMenu=function(e,t,i){var n,o,r="dependency"===i,a=t,s=this.viewModel,l=r?s.convertInternalToPublicKey("dependency",k.EvtUtils.getEventSource(t).getAttribute("dependency-id")):null===(o=null===(n=s.items[e])||void 0===n?void 0:n.task)||void 0===o?void 0:o.id;if(this.onGanttViewContextMenu(t,l,i)){var d={event:t,type:i,key:l,position:new A.Point(k.EvtUtils.getEventX(a),k.EvtUtils.getEventY(a))};this.showPopupMenu(d)}},e.prototype.onTaskSelectionChanged=function(e,t){var i=this,n=this.viewModel.items[e];this.isFocus=O.DomUtils.isItParent(this.renderHelper.taskArea,k.EvtUtils.getEventSource(t)),n&&this.isFocus&&this.settings.allowSelectTask&&setTimeout((function(){i.changeGanttTaskSelection(n.task.id,!0)}),0)},e.prototype.onTaskClick=function(e,t){return!this.ganttOwner.onTaskClick||this.ganttOwner.onTaskClick(e,t)},e.prototype.onTaskDblClick=function(e,t){return!this.ganttOwner.onTaskDblClick||this.ganttOwner.onTaskDblClick(e,t)},e.prototype.getDateFormat=function(e){return this.ganttOwner.getFormattedDateText?this.ganttOwner.getFormattedDateText(e):this.getDefaultDateFormat(e)},e.prototype.getDefaultDateFormat=function(e){return("0"+e.getDate()).slice(-2)+"/"+("0"+(e.getMonth()+1)).slice(-2)+"/"+e.getFullYear()+" "+("0"+e.getHours()).slice(-2)+":"+("0"+e.getMinutes()).slice(-2)},e.prototype.destroyTemplate=function(e){this.ganttOwner.destroyTemplate?this.ganttOwner.destroyTemplate(e):e.innerHTML=""},e.prototype.onTaskAreaSizeChanged=function(e){this.ganttOwner.onTaskAreaSizeChanged&&this.ganttOwner.onTaskAreaSizeChanged(e)},e.prototype.showTaskEditDialog=function(){this.commandManager.showTaskEditDialog.execute()},e.prototype.showTaskDetailsDialog=function(e){var t=this.getTaskByPublicId(e);t&&this.commandManager.showTaskEditDialog.execute(t,!0)},e.prototype.showResourcesDialog=function(){this.commandManager.showResourcesDialog.execute()},e.prototype.getCommandByKey=function(e){return this.commandManager.getCommand(e)},e.prototype._getTaskDataForUpdate=function(e,t){var i={};return t&&e&&((0,f.isDefined)(e.title)&&e.title!==t.title&&(i.title=e.title),(0,f.isDefined)(e.progress)&&e.progress!==t.progress&&(i.progress=e.progress),(0,f.isDefined)(e.start)&&e.start!==t.start&&(i.start=e.start),(0,f.isDefined)(e.end)&&e.end!==t.end&&(i.end=e.end),(0,f.isDefined)(e.color)&&e.color!==t.color&&(i.color=e.color)),Object.keys(i).length>0?i:null},e.prototype.updateViewDataRange=function(){var e=this.viewModel,t=e.getTaskMinStart(),i=e.getTaskMaxEnd(),n=t.getTime()<this.dataRange.start.getTime(),o=i.getTime()>this.dataRange.end.getTime();n&&(this.dataRange.start=t),o&&(this.dataRange.end=i),(n||o)&&this.resetAndUpdate()},e.cachedPrefix="cached_",e.taskAreaScrollLeftKey=e.cachedPrefix+"taskAreaScrollLeft",e.taskAreaScrollTopKey=e.cachedPrefix+"taskAreaScrollTop",e.taskTextHeightKey=e.cachedPrefix+"taskTextHeight",e}();t.GanttView=B},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Resource=void 0;var n=i(0),o=i(1),r=function(e){function t(){var t=e.call(this)||this;return t.text="",t.color="",t}return n.__extends(t,e),t.prototype.assignFromObject=function(t){(0,o.isDefined)(t)&&(e.prototype.assignFromObject.call(this,t),this.text=t.text,(0,o.isDefined)(t.color)&&(this.color=t.color))},t}(i(2).DataObject);t.Resource=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceAssigningArguments=void 0;var n=i(0),o=function(e){function t(t,i){var n=e.call(this,null)||this;return n.values={resourceId:t,taskId:i},n}return n.__extends(t,e),Object.defineProperty(t.prototype,"resourceId",{get:function(){return this.values.resourceId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"taskId",{get:function(){return this.values.taskId},enumerable:!1,configurable:!0}),t}(i(11).BaseArguments);t.ResourceAssigningArguments=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AssignResourceHistoryItem=void 0;var n=i(0),o=i(14),r=i(2),a=i(18),s=function(e){function t(t,i,n){var o=e.call(this,t)||this;return o.resourceId=i,o.taskId=n,o}return n.__extends(t,e),t.prototype.redo=function(){var e;null!==(e=this.insertedKey)&&void 0!==e||(this.insertedKey=a.MathUtils.generateGuid()),this.modelManipulator.resource.assign(this.resourceId,this.taskId,this.insertedKey)},t.prototype.undo=function(){this.modelManipulator.resource.deassig(this.insertedKey)},Object.defineProperty(t.prototype,"keyUpdaters",{get:function(){var e=this;return[{objectType:r.GanttDataObjectNames.resourceAssignment,getKey:function(){return e.insertedKey},updateKey:function(t){return e.insertedKey=t}},{objectType:r.GanttDataObjectNames.task,getKey:function(){return e.taskId},updateKey:function(t){return e.taskId=t}},{objectType:r.GanttDataObjectNames.resource,getKey:function(){return e.resourceId},updateKey:function(t){return e.resourceId=t}}]},enumerable:!1,configurable:!0}),t}(o.HistoryItem);t.AssignResourceHistoryItem=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DependencyCommandBase=void 0;var n=i(0),o=i(6),r=i(7),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.getState=function(){return new r.SimpleCommandState(this.isEnabled())},t}(o.CommandBase);t.DependencyCommandBase=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskInsertingArguments=void 0;var n=i(0),o=function(e){function t(t,i){var n=e.call(this,t)||this;return n.values=null!=i?i:{},n}return n.__extends(t,e),Object.defineProperty(t.prototype,"start",{get:function(){return this.values.start},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this.values.end},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.values.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return this.values.progress},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentId",{get:function(){return this.values.parentId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return this.values.color},enumerable:!1,configurable:!0}),t}(i(11).BaseArguments);t.TaskInsertingArguments=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateTaskHistoryItem=void 0;var n=i(0),o=i(2),r=i(14),a=i(54),s=function(e){function t(t,i,n){var o=e.call(this,t)||this;return o.taskId=i,o.newValues=n,o}return n.__extends(t,e),t.prototype.redo=function(){var e=this.modelManipulator.task.update(this.taskId,this.newValues);this.oldState=new a.HistoryItemState(this.taskId,e)},t.prototype.undo=function(){this.modelManipulator.task.update(this.taskId,this.oldState.value)},Object.defineProperty(t.prototype,"keyUpdaters",{get:function(){var e=this;return[{objectType:o.GanttDataObjectNames.task,getKey:function(){return e.taskId},updateKey:function(t){return e.taskId=t}}]},enumerable:!1,configurable:!0}),t}(r.HistoryItem);t.UpdateTaskHistoryItem=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HistoryItemState=void 0;var n=function(e,t){this.id=e,this.value=t};t.HistoryItemState=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Time=void 0;var n=function(){function e(e,t,i,n){void 0===e&&(e=0),void 0===t&&(t=0),void 0===i&&(i=0),void 0===n&&(n=0),this._hour=0,this._min=0,this._sec=0,this._msec=0,this._fullmsec=0,this.hour=e,this.min=t,this.sec=i,this.msec=n}return Object.defineProperty(e.prototype,"hour",{get:function(){return this._hour},set:function(e){e>=0&&e<24&&(this._hour=e,this.updateFullMilleconds())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){e>=0&&e<60&&(this._min=e,this.updateFullMilleconds())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sec",{get:function(){return this._sec},set:function(e){e>=0&&e<60&&(this._sec=e,this.updateFullMilleconds())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"msec",{get:function(){return this._msec},set:function(e){e>=0&&e<1e3&&(this._msec=e,this.updateFullMilleconds())},enumerable:!1,configurable:!0}),e.prototype.updateFullMilleconds=function(){var e=60*(60*this._hour+this._min)+this._sec;this._fullmsec=1e3*e+this._msec},e.prototype.getTimeInMilleconds=function(){return this._fullmsec},e}();t.Time=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeRange=void 0;var n=i(8),o=function(){function e(e,t){n.DateTimeUtils.caclTimeDifference(e,t)>=0?(this._start=e,this._end=t):(this._start=t,this._end=e)}return Object.defineProperty(e.prototype,"start",{get:function(){return this._start},set:function(e){e&&n.DateTimeUtils.caclTimeDifference(e,this._end)>=0&&(this._start=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._end},set:function(e){e&&n.DateTimeUtils.caclTimeDifference(this._start,e)>=0&&(this._end=e)},enumerable:!1,configurable:!0}),e.prototype.isTimeInRange=function(e){return n.DateTimeUtils.caclTimeDifference(this._start,e)>=0&&n.DateTimeUtils.caclTimeDifference(e,this._end)>=0},e.prototype.hasIntersect=function(e){return this.isTimeInRange(e.start)||this.isTimeInRange(e.end)||e.isTimeInRange(this.start)||e.isTimeInRange(this.end)},e.prototype.concatWith=function(e){return!!this.hasIntersect(e)&&(this.start=n.DateTimeUtils.getMinTime(this.start,e.start),this.end=n.DateTimeUtils.getMaxTime(this.end,e.end),!0)},e}();t.TimeRange=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DayOfWeekMonthlyOccurrence=void 0,function(e){e[e.First=0]="First",e[e.Second=1]="Second",e[e.Third=2]="Third",e[e.Forth=3]="Forth",e[e.Last=4]="Last"}(t.DayOfWeekMonthlyOccurrence||(t.DayOfWeekMonthlyOccurrence={}))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GridElementInfo=void 0;var n=i(5),o=i(12),r=i(127),a=function(){function e(t,i,a){this.id=e.id++,this.position=new n.Point(void 0,void 0),this.size=new o.Size(0,0),this.margins=new r.Margins(void 0,void 0,void 0,void 0),this.attr={},this.style={},this.additionalInfo={},t&&(this.className=t),i&&this.setPosition(i),a&&this.setSize(a)}return e.prototype.setSize=function(e){this.size.width=e.width,this.size.height=e.height},e.prototype.setPosition=function(e){this.position.x=e.x,this.position.y=e.y},e.prototype.assignToElement=function(e){this.assignPosition(e),this.assignSize(e),this.assignMargins(e),this.className&&(e.className=this.className)},e.prototype.assignPosition=function(e){null!=this.position.x&&(e.style.left=this.position.x+"px"),null!=this.position.y&&(e.style.top=this.position.y+"px")},e.prototype.assignSize=function(e){this.size.width&&(e.style.width=this.size.width+"px"),this.size.height&&(e.style.height=this.size.height+"px")},e.prototype.assignMargins=function(e){this.margins.left&&(e.style.marginLeft=this.margins.left+"px"),this.margins.top&&(e.style.marginTop=this.margins.top+"px"),this.margins.right&&(e.style.marginRight=this.margins.right+"px"),this.margins.bottom&&(e.style.marginBottom=this.margins.bottom+"px")},e.prototype.setAttribute=function(e,t){this.attr[e]=t},e.id=0,e}();t.GridElementInfo=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StripLine=void 0;var n=i(1),o=function(){function e(e,t,i,n,o){this.isCurrent=!1,this.start=e,this.end=t,this.title=i,this.cssClass=n,this.isCurrent=o}return e.parse=function(t){var i=new e;return t&&((0,n.isDefined)(t.start)&&(i.start=t.start),(0,n.isDefined)(t.end)&&(i.end=t.end),(0,n.isDefined)(t.title)&&(i.title=t.title),(0,n.isDefined)(t.cssClass)&&(i.cssClass=t.cssClass)),i},e.prototype.clone=function(){return new e(this.start,this.end,this.title,this.cssClass,this.isCurrent)},e.prototype.equal=function(e){var t=!0;return(t=(t=(t=t&&this.start==e.start)&&this.end==e.end)&&this.title==e.title)&&this.cssClass==e.cssClass},e}();t.StripLine=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PdfDependencyLineInfo=void 0;var n=i(5),o=i(17),r=function(){function e(){}return e.prototype.assign=function(e){var t;this._copyPoints(e.points),this.arrowInfo=e.arrowInfo,null!==(t=this.fillColor)&&void 0!==t||(this.fillColor=new o.Color),this.fillColor.assign(e.fillColor)},e.prototype._copyPoints=function(e){var t=this;this.points=new Array,null==e||e.forEach((function(e){return t.points.push(new n.Point(e.x,e.y))}))},e}();t.PdfDependencyLineInfo=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PdfTaskResourcesInfo=void 0;var n=i(1),o=i(26),r=function(){function e(e,t,i,r){e&&(this.text=e),t&&(this.style=new o.StyleDef(t)),(0,n.isDefined)(i)&&(this.x=i),(0,n.isDefined)(r)&&(this.y=r)}return e.prototype.assign=function(e){this.text=e.text,this.style=new o.StyleDef(e.style),this.x=e.x,this.y=e.y},e}();t.PdfTaskResourcesInfo=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Width=void 0;var n=i(35),o=i(3),r=function(){function e(e){this.assign(e)}return e.prototype.assign=function(t){if(t instanceof e)this._widthInternal=t._widthInternal;else{var i="number"==typeof t?t:parseInt(t);isNaN(i)?this.assignFromString(t):this._widthInternal=i}},e.prototype.assignFromString=function(e){if(e){var t=o.DomUtils.pxToInt(e);this._widthInternal=t||n.PredefinedStyles.getPredefinedStringOrUndefined(e,n.PredefinedStyles.width)}},e.prototype.hasValue=function(){return!!this._widthInternal},e.prototype.getValue=function(){return this._widthInternal},e}();t.Width=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PdfTimeMarkerInfo=void 0;var n=i(5),o=i(12),r=i(1),a=i(17),s=function(){function e(e,t,i,s,l){this.lineColor=new a.Color,this.color=new a.Color,e&&(this.start=new n.Point(e.x,e.y)),t&&(this.size=new o.Size(t.width,t.height)),i&&this.color.assign(i),s&&this.lineColor.assign(s),(0,r.isDefined)(l)&&(this.isStripLine=l)}return e.prototype.assign=function(e){var t,i,r,a;e&&(this.start=new n.Point(null===(t=e.start)||void 0===t?void 0:t.x,null===(i=e.start)||void 0===i?void 0:i.y),this.size=new o.Size(null===(r=e.size)||void 0===r?void 0:r.width,null===(a=e.size)||void 0===a?void 0:a.height),this.isStripLine=e.isStripLine,this.color.assign(e.color),this.lineColor.assign(e.lineColor))},e}();t.PdfTimeMarkerInfo=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EllipsisHelper=void 0;var n=function(){function e(){}return e.limitPdfTextWithEllipsis=function(t,i,n){if(!(null==i?void 0:i.getTextWidth)||!n)return t;if(i.getTextWidth(t.toString())>n){for(var o=t,r=t.length-1;i.getTextWidth(o)>n&&r>0;)o=o.substring(0,r)+e.ellipsis,r--;return o}return t},e.ellipsis="...",e}();t.EllipsisHelper=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TooltipSettings=void 0;var n=i(1),o=function(){function e(){}return e.parse=function(t){var i=new e;return t&&((0,n.isDefined)(t.getHeaderHeight)&&(i.getHeaderHeight=t.getHeaderHeight),(0,n.isDefined)(t.getTaskTooltipContentTemplate)&&(i.getTaskTooltipContentTemplate=t.getTaskTooltipContentTemplate),(0,n.isDefined)(t.getTaskProgressTooltipContentTemplate)&&(i.getTaskProgressTooltipContentTemplate=t.getTaskProgressTooltipContentTemplate),(0,n.isDefined)(t.getTaskTimeTooltipContentTemplate)&&(i.getTaskTimeTooltipContentTemplate=t.getTaskTimeTooltipContentTemplate),(0,n.isDefined)(t.destroyTemplate)&&(i.destroyTemplate=t.destroyTemplate),(0,n.isDefined)(t.formatDate)&&(i.formatDate=t.formatDate)),i},e}();t.TooltipSettings=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeyCode=t.ModifierKey=t.KeyUtils=void 0;var n,o,r=i(10),a=i(171),s=i(39),l=function(){function e(){}return e.getKeyModifiers=function(e){var t=0;return e.altKey&&(t|=n.Alt),e.ctrlKey&&(t|=n.Ctrl),e.shiftKey&&(t|=n.Shift),e.metaKey&&(t|=n.Meta),t},e.getShortcutCode=function(e,t,i,o,r){var a=e;return a|=t?n.Ctrl:0,a|=i?n.Shift:0,a|=o?n.Alt:0,a|(r?n.Meta:0)},e.getShortcutCodeByEvent=function(t){return e.getShortcutCode(e.getEventKeyCode(t),t.ctrlKey,t.shiftKey,t.altKey,!!r.Browser.MacOSPlatform&&t.metaKey)},e.getEventKeyCode=function(e){return r.Browser.NetscapeFamily||r.Browser.Opera?e.which:e.keyCode},e.parseShortcutString=function(t){if(!t)return 0;var i=!1,n=!1,r=!1,l=!1,d=null,u=t.toString().split("+");if(u.length>0)for(var c=0;c<u.length;c++){var h=s.StringUtils.trim(u[c].toUpperCase());switch(h){case"CONTROL":case"CONTROLKEY":case"CTRL":i=!0;break;case"SHIFT":case"SHIFTKEY":n=!0;break;case"ALT":r=!0;break;case"CMD":l=!0;break;case"F1":d=o.F1;break;case"F2":d=o.F2;break;case"F3":d=o.F3;break;case"F4":d=o.F4;break;case"F5":d=o.F5;break;case"F6":d=o.F6;break;case"F7":d=o.F7;break;case"F8":d=o.F8;break;case"F9":d=o.F9;break;case"F10":d=o.F10;break;case"F11":d=o.F11;break;case"F12":d=o.F12;break;case"RETURN":case"ENTER":d=o.Enter;break;case"HOME":d=o.Home;break;case"END":d=o.End;break;case"LEFT":d=o.Left;break;case"RIGHT":d=o.Right;break;case"UP":d=o.Up;break;case"DOWN":d=o.Down;break;case"PAGEUP":d=o.PageUp;break;case"PAGEDOWN":d=o.PageDown;break;case"SPACE":d=o.Space;break;case"TAB":d=o.Tab;break;case"BACKSPACE":case"BACK":d=o.Backspace;break;case"CONTEXT":d=o.ContextMenu;break;case"ESCAPE":case"ESC":d=o.Esc;break;case"DELETE":case"DEL":d=o.Delete;break;case"INSERT":case"INS":d=o.Insert;break;case"PLUS":d="+".charCodeAt(0);break;default:d=h.charCodeAt(0)}}else alert(a.EncodeUtils.decodeViaTextArea("Invalid shortcut"));return e.getShortcutCode(d,i,n,r,l)},e}();t.KeyUtils=l,function(e){e[e.None=0]="None",e[e.Ctrl=65536]="Ctrl",e[e.Shift=262144]="Shift",e[e.Alt=1048576]="Alt",e[e.Meta=16777216]="Meta"}(n=t.ModifierKey||(t.ModifierKey={})),function(e){e[e.Backspace=8]="Backspace",e[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Pause=19]="Pause",e[e.CapsLock=20]="CapsLock",e[e.Esc=27]="Esc",e[e.Space=32]="Space",e[e.PageUp=33]="PageUp",e[e.PageDown=34]="PageDown",e[e.End=35]="End",e[e.Home=36]="Home",e[e.Left=37]="Left",e[e.Up=38]="Up",e[e.Right=39]="Right",e[e.Down=40]="Down",e[e.Insert=45]="Insert",e[e.Delete=46]="Delete",e[e.Key_0=48]="Key_0",e[e.Key_1=49]="Key_1",e[e.Key_2=50]="Key_2",e[e.Key_3=51]="Key_3",e[e.Key_4=52]="Key_4",e[e.Key_5=53]="Key_5",e[e.Key_6=54]="Key_6",e[e.Key_7=55]="Key_7",e[e.Key_8=56]="Key_8",e[e.Key_9=57]="Key_9",e[e.Key_a=65]="Key_a",e[e.Key_b=66]="Key_b",e[e.Key_c=67]="Key_c",e[e.Key_d=68]="Key_d",e[e.Key_e=69]="Key_e",e[e.Key_f=70]="Key_f",e[e.Key_g=71]="Key_g",e[e.Key_h=72]="Key_h",e[e.Key_i=73]="Key_i",e[e.Key_j=74]="Key_j",e[e.Key_k=75]="Key_k",e[e.Key_l=76]="Key_l",e[e.Key_m=77]="Key_m",e[e.Key_n=78]="Key_n",e[e.Key_o=79]="Key_o",e[e.Key_p=80]="Key_p",e[e.Key_q=81]="Key_q",e[e.Key_r=82]="Key_r",e[e.Key_s=83]="Key_s",e[e.Key_t=84]="Key_t",e[e.Key_u=85]="Key_u",e[e.Key_v=86]="Key_v",e[e.Key_w=87]="Key_w",e[e.Key_x=88]="Key_x",e[e.Key_y=89]="Key_y",e[e.Key_z=90]="Key_z",e[e.Windows=91]="Windows",e[e.ContextMenu=93]="ContextMenu",e[e.Numpad_0=96]="Numpad_0",e[e.Numpad_1=97]="Numpad_1",e[e.Numpad_2=98]="Numpad_2",e[e.Numpad_3=99]="Numpad_3",e[e.Numpad_4=100]="Numpad_4",e[e.Numpad_5=101]="Numpad_5",e[e.Numpad_6=102]="Numpad_6",e[e.Numpad_7=103]="Numpad_7",e[e.Numpad_8=104]="Numpad_8",e[e.Numpad_9=105]="Numpad_9",e[e.Multiply=106]="Multiply",e[e.Add=107]="Add",e[e.Subtract=109]="Subtract",e[e.Decimal=110]="Decimal",e[e.Divide=111]="Divide",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F3=114]="F3",e[e.F4=115]="F4",e[e.F5=116]="F5",e[e.F6=117]="F6",e[e.F7=118]="F7",e[e.F8=119]="F8",e[e.F9=120]="F9",e[e.F10=121]="F10",e[e.F11=122]="F11",e[e.F12=123]="F12",e[e.NumLock=144]="NumLock",e[e.ScrollLock=145]="ScrollLock",e[e.Semicolon=186]="Semicolon",e[e.Equals=187]="Equals",e[e.Comma=188]="Comma",e[e.Dash=189]="Dash",e[e.Period=190]="Period",e[e.ForwardSlash=191]="ForwardSlash",e[e.GraveAccent=192]="GraveAccent",e[e.OpenBracket=219]="OpenBracket",e[e.BackSlash=220]="BackSlash",e[e.CloseBracket=221]="CloseBracket",e[e.SingleQuote=222]="SingleQuote"}(o=t.KeyCode||(t.KeyCode={}))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskDragBaseState=void 0;var n=i(0),o=i(5),r=i(9),a=i(30),s=i(13),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.onMouseDownInternal=function(e){this.onStart(e)},t.prototype.onMouseUp=function(e){this.onEnd(e)},t.prototype.onMouseMoveInternal=function(e){this.onDrag(e)},t.prototype.onTouchStartInternal=function(e){this.onStart(e)},t.prototype.onTouchEndInternal=function(e){this.onEnd(e)},t.prototype.onTouchMoveInternal=function(e){this.onDrag(e)},t.prototype.onDocumentPointerDownInternal=function(e){this.onStart(e)},t.prototype.onDocumentPointerUpInternal=function(e){this.onEnd(e)},t.prototype.onDocumentPointerMoveInternal=function(e){this.onDrag(e)},t.prototype.onStart=function(e){this.currentPosition=new o.Point(r.EvtUtils.getEventX(e),r.EvtUtils.getEventY(e)),this.raiseDependencySelection(e,null),this.onStartInternal(e)},t.prototype.onDrag=function(e){var t;e.preventDefault();var i=new o.Point(r.EvtUtils.getEventX(e),r.EvtUtils.getEventY(e));null!==(t=this.currentPosition)&&void 0!==t||(this.currentPosition=i),this.onDragInternal(i),this.currentPosition=i},t.prototype.onEnd=function(e){this.onEndInternal(e),this.raiseEvent(s.TaskAreaStateEventNames.STATE_EXIT,e)},t.prototype.onStartInternal=function(e){},t.prototype.onEndInternal=function(e){},t.prototype.onDragInternal=function(e){},t.prototype.finish=function(){this.raiseEvent(s.TaskAreaStateEventNames.TASK_EDIT_END)},t}(a.TaskAreaStateBase);t.TaskDragBaseState=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StripLineSettings=void 0;var n=i(1),o=i(59),r=function(){function e(){this.showCurrentTime=!1,this.currentTimeUpdateInterval=6e4,this.stripLines=[]}return e.parse=function(t){var i=new e;if(t&&((0,n.isDefined)(t.showCurrentTime)&&(i.showCurrentTime=t.showCurrentTime),(0,n.isDefined)(t.currentTimeUpdateInterval)&&(i.currentTimeUpdateInterval=t.currentTimeUpdateInterval),(0,n.isDefined)(t.currentTimeTitle)&&(i.currentTimeTitle=t.currentTimeTitle),(0,n.isDefined)(t.currentTimeCssClass)&&(i.currentTimeCssClass=t.currentTimeCssClass),(0,n.isDefined)(t.stripLines)))for(var r=0;r<t.stripLines.length;r++)i.stripLines.push(o.StripLine.parse(t.stripLines[r]));return i},e.prototype.equal=function(e){var t=!0;if(t=(t=(t=(t=(t=t&&this.showCurrentTime==e.showCurrentTime)&&this.currentTimeUpdateInterval==e.currentTimeUpdateInterval)&&this.currentTimeTitle==e.currentTimeTitle)&&this.currentTimeCssClass==e.currentTimeCssClass)&&this.stripLines.length===e.stripLines.length)for(var i=0;i<e.stripLines.length;i++)t=t&&this.stripLines[i].equal(e.stripLines[i]);return t},e}();t.StripLineSettings=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Dependency=void 0;var n=i(0),o=i(1),r=i(2),a=i(23),s=function(e){function t(){var t=e.call(this)||this;return t.predecessorId="",t.successorId="",t.type=null,t}return n.__extends(t,e),Object.defineProperty(t.prototype,"isStartDependency",{get:function(){return this.type===a.DependencyType.SS||this.type===a.DependencyType.SF},enumerable:!1,configurable:!0}),t.prototype.assignFromObject=function(t){(0,o.isDefined)(t)&&(e.prototype.assignFromObject.call(this,t),this.predecessorId=String(t.predecessorId),this.successorId=String(t.successorId),this.type=this.parseType(t.type))},t.prototype.parseType=function(e){if(!(0,o.isDefined)(e))return a.DependencyType.FS;switch(e.toString().toUpperCase()){case"SS":case"1":return a.DependencyType.SS;case"FF":case"2":return a.DependencyType.FF;case"SF":case"3":return a.DependencyType.SF;default:return a.DependencyType.FS}},t}(r.DataObject);t.Dependency=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceAssignment=void 0;var n=i(0),o=i(1),r=function(e){function t(){var t=e.call(this)||this;return t.taskId="",t.resourceId="",t}return n.__extends(t,e),t.prototype.assignFromObject=function(t){(0,o.isDefined)(t)&&(e.prototype.assignFromObject.call(this,t),this.taskId=String(t.taskId),this.resourceId=String(t.resourceId))},t}(i(2).DataObject);t.ResourceAssignment=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RecurrenceFactory=void 0;var n=i(1),o=i(72),r=i(205),a=i(206),s=i(208),l=function(){function e(){}return e.createRecurrenceByType=function(e){if(!e)return null;switch(e.toLowerCase()){case"daily":return new o.Daily;case"weekly":return new r.Weekly;case"monthly":return new a.Monthly;case"yearly":return new s.Yearly}return null},e.createRecurrenceFromObject=function(e){if(!e)return null;var t=this.createRecurrenceByType(e.type);return t&&t.assignFromObject(e),t},e.getEnumValue=function(e,t){if(!(0,n.isDefined)(e[t]))return null;var i=parseInt(t);return isNaN(i)?e[t]:i},e}();t.RecurrenceFactory=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Daily=void 0;var n=i(0),o=i(38),r=i(8),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.checkDate=function(e){return!0},t.prototype.checkInterval=function(e){return r.DateTimeUtils.getDaysBetween(this.start,e)%this.interval==0},t.prototype.calculatePointByInterval=function(e){var t=this.interval;return this.isRecurrencePoint(e)||(t-=r.DateTimeUtils.getDaysBetween(this.start,e)%this.interval),r.DateTimeUtils.addDays(e,t)},t.prototype.calculateNearestPoint=function(e){return r.DateTimeUtils.addDays(e,1)},t}(o.RecurrenceBase);t.Daily=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GanttView=t.default=void 0,i(74);var n=i(47);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.GanttView}}),Object.defineProperty(t,"GanttView",{enumerable:!0,get:function(){return n.GanttView}})},function(e,t,i){},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BarManager=void 0;var n=function(){function e(e,t){this.commandManager=e,this.bars=t}return e.prototype.updateContextMenu=function(){for(var e=0,t=void 0;t=this.bars[e];e++)if(t.isContextMenu()){t.updateItemsList();for(var i=t.getCommandKeys(),n=0;n<i.length;n++)this.updateBarItem(t,i[n])}},e.prototype.updateItemsState=function(e){for(var t=!!e.length,i=function(i,o){if(o.isVisible()){for(var r=o.getCommandKeys(),a=function(i){if(t&&!e.filter((function(e){return e==r[i]})).length)return"continue";n.updateBarItem(o,r[i])},s=0;s<r.length;s++)a(s);o.completeUpdate()}},n=this,o=0,r=void 0;r=this.bars[o];o++)i(0,r)},e.prototype.updateBarItem=function(e,t){var i=this.commandManager.getCommand(t);if(i){var n=i.getState();e.setItemVisible(t,n.visible),n.visible&&(e.setItemEnabled(t,n.enabled),e.setItemValue(t,n.value))}},e}();t.BarManager=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommandManager=void 0;var n=i(77),o=i(78),r=i(79),a=i(86),s=i(88),l=i(89),d=i(90),u=i(91),c=i(94),h=i(96),p=i(97),f=i(98),g=i(99),m=i(100),_=i(101),v=i(104),y=i(105),C=i(109),b=i(112),x=i(113),w=i(114),T=i(115),S=i(117),I=i(120),E=i(121),D=i(122),k=function(){function e(e){this.control=e,this.commands={},this.createCommand(s.GanttClientCommand.CreateTask,this.createTaskCommand),this.createCommand(s.GanttClientCommand.CreateSubTask,this.createSubTaskCommand),this.createCommand(s.GanttClientCommand.RemoveTask,this.removeTaskCommand),this.createCommand(s.GanttClientCommand.RemoveDependency,this.removeDependencyCommand),this.createCommand(s.GanttClientCommand.TaskInformation,this.showTaskEditDialog),this.createCommand(s.GanttClientCommand.ResourceManager,this.showResourcesDialog),this.createCommand(s.GanttClientCommand.TaskAddContextItem,new I.TaskAddContextItemCommand(this.control)),this.createCommand(s.GanttClientCommand.Undo,new g.UndoCommand(this.control)),this.createCommand(s.GanttClientCommand.Redo,new f.RedoCommand(this.control)),this.createCommand(s.GanttClientCommand.ZoomIn,new E.ZoomInCommand(this.control)),this.createCommand(s.GanttClientCommand.ZoomOut,new D.ZoomOutCommand(this.control)),this.createCommand(s.GanttClientCommand.FullScreen,new p.ToggleFullScreenCommand(this.control)),this.createCommand(s.GanttClientCommand.CollapseAll,new l.CollapseAllCommand(this.control)),this.createCommand(s.GanttClientCommand.ExpandAll,new d.ExpandAllCommand(this.control)),this.createCommand(s.GanttClientCommand.ToggleResources,this.toggleResources),this.createCommand(s.GanttClientCommand.ToggleDependencies,this.toggleDependencies)}return Object.defineProperty(e.prototype,"createTaskCommand",{get:function(){return new w.CreateTaskCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"createSubTaskCommand",{get:function(){return new x.CreateSubTaskCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"removeTaskCommand",{get:function(){return new S.RemoveTaskCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"updateTaskCommand",{get:function(){return new T.UpdateTaskCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"createDependencyCommand",{get:function(){return new u.CreateDependencyCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"removeDependencyCommand",{get:function(){return new c.RemoveDependencyCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"createResourceCommand",{get:function(){return new _.CreateResourceCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"removeResourceCommand",{get:function(){return new C.RemoveResourceCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"assignResourceCommand",{get:function(){return new m.AssignResourceCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"deassignResourceCommand",{get:function(){return new v.DeassignResourceCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"changeResourceColorCommand",{get:function(){return new y.ResourceColorCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showTaskEditDialog",{get:function(){return new a.TaskEditDialogCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showConstraintViolationDialog",{get:function(){return new o.ConstraintViolationDialogCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showConfirmationDialog",{get:function(){return new n.ConfirmationDialog(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showResourcesDialog",{get:function(){return new r.ResourcesDialogCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"toggleResources",{get:function(){return new b.ToggleResourceCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"toggleDependencies",{get:function(){return new h.ToggleDependenciesCommand(this.control)},enumerable:!1,configurable:!0}),e.prototype.getCommand=function(e){return this.commands[e]},e.prototype.createCommand=function(e,t){this.commands[e]=t},e}();t.CommandManager=k},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfirmationDialog=void 0;var n=i(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.applyParameters=function(e,t){return this.history.beginTransaction(),t.callback(),this.history.endTransaction(),this.control.barManager.updateItemsState([]),!0},t.prototype.createParameters=function(e){return e},t.prototype.getDialogName=function(){return"Confirmation"},t}(i(20).DialogBase);t.ConfirmationDialog=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConstraintViolationDialogCommand=void 0;var n=i(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.applyParameters=function(e,t){return t.callback(e),!0},t.prototype.createParameters=function(e){return e},t.prototype.getDialogName=function(){return"ConstraintViolation"},t}(i(20).DialogBase);t.ConstraintViolationDialogCommand=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourcesDialogCommand=void 0;var n=i(0),o=i(21),r=i(20),a=i(31),s=i(40),l=i(85),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.resourcesForDelete=[],t}return n.__extends(t,e),t.prototype.onBeforeDialogShow=function(e){return this.modelManipulator.dispatcher.raiseResourceManagerDialogShowing(e,(function(t){e.resources=t.values.resources}))},t.prototype.applyParameters=function(e,t){this.history.beginTransaction();for(var i=0;i<e.resources.length;i++)t.resources.getItemById(e.resources.getItem(i).internalId)||this.control.commandManager.createResourceCommand.execute(e.resources.getItem(i).text);for(i=0;i<t.resources.length;i++)e.resources.getItemById(t.resources.getItem(i).internalId)||this.resourcesForDelete.push(t.resources.getItem(i));return this.history.endTransaction(),!1},t.prototype.createParameters=function(e){this.callBack=e;var t=new l.ResourcesDialogParameters;return t.resources=new o.ResourceCollection,t.resources.addRange(this.control.viewModel.resources.items),t},t.prototype.afterClosing=function(){var e=this;if(this.resourcesForDelete.length){var t=this.control.commandManager.showConfirmationDialog,i=new s.ConfirmationDialogParameters(a.ConfirmationType.ResourcesDelete,(function(){e.history.beginTransaction();for(var t=0;t<e.resourcesForDelete.length;t++)e.control.commandManager.removeResourceCommand.execute(e.resourcesForDelete[t].internalId);e.history.endTransaction()}));i.message=this.resourcesForDelete.reduce((function(e,t){return n.__spreadArray(n.__spreadArray([],e,!0),[t.text],!1)}),[]).join(", "),this.callBack&&(t.afterClosing=function(){delete r.DialogBase.activeInstance,e.callBack()}),t.execute(i)}else this.callBack&&this.callBack()},t.prototype.getDialogName=function(){return"Resources"},t}(r.DialogBase);t.ResourcesDialogCommand=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GanttJsonUtils=void 0;var n=i(81),o=function(){function e(){}return e.parseJson=function(e){return n.JsonUtils.isValid(e)?JSON.parse(e):null},e}();t.GanttJsonUtils=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JsonUtils=void 0;var n=function(){function e(){}return e.isValid=function(e){return!/[^,:{}[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(e.replace(/"(\\.|[^"\\])*"/g,""))},e}();t.JsonUtils=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListUtils=void 0;var n=i(83),o=i(84),r=function(){function e(){}return e.remove=function(e,t){var i=e.indexOf(t,0);i>=0&&e.splice(i,1)},e.removeBy=function(e,t){for(var i=e.length,n=0;n<i;n++)if(t(e[n],n))return e.splice(n,1)[0];return null},e.shallowCopy=function(e){return e.slice()},e.deepCopy=function(t){return e.map(t,(function(e){return e.clone()}))},e.initByValue=function(e,t){for(var i=[];e>0;e--)i.push(t);return i},e.initByCallback=function(e,t){for(var i=[],n=0;n<e;n++)i.push(t(n));return i},e.forEachOnInterval=function(e,t){for(var i=e.end,n=e.start;n<i;n++)t(n)},e.reverseForEachOnInterval=function(e,t){for(var i=e.start,n=e.end-1;n>=i;n--)t(n)},e.reducedMap=function(e,t,i,n){void 0===i&&(i=0),void 0===n&&(n=e.length);for(var o=[],r=i;r<n;r++){var a=t(e[r],r);null!==a&&o.push(a)}return o},e.filter=function(e,t,i,n){void 0===i&&(i=0),void 0===n&&(n=e.length);for(var o=[],r=i;r<n;r++){var a=e[r];t(a,r)&&o.push(a)}return o},e.map=function(e,t,i,n){void 0===i&&(i=0),void 0===n&&(n=e.length);for(var o=[],r=i;r<n;r++)o.push(t(e[r],r));return o},e.indexBy=function(e,t,i,n){void 0===i&&(i=0),void 0===n&&(n=e.length);for(var o=i;o<n;o++)if(t(e[o],o))return o;return-1},e.reverseIndexBy=function(e,t,i,n){void 0===i&&(i=e.length-1),void 0===n&&(n=0);for(var o=i;o>=n;o--)if(t(e[o],o))return o;return-1},e.elementBy=function(t,i,n,o){void 0===n&&(n=0),void 0===o&&(o=t.length);var r=e.indexBy(t,i,n,o);return r<0?null:t[r]},e.reverseElementBy=function(t,i,n,o){void 0===n&&(n=t.length-1),void 0===o&&(o=0);var r=e.reverseIndexBy(t,i,n,o);return r<0?null:t[r]},e.last=function(e){return e[e.length-1]},e.setLast=function(e,t){return e[e.length-1]=t},e.incLast=function(e){return++e[e.length-1]},e.decLast=function(e){return--e[e.length-1]},e.equals=function(t,i){return t.length===i.length&&e.allOf2(t,i,(function(e,t){return e.equals(t)}))},e.equalsByReference=function(e,t){var i=e.length;if(i!==e.length)return!1;for(var n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0},e.unique=function(t,i,n,o){void 0===n&&(n=i),void 0===o&&(o=function(){});var r=t.length;if(0===r)return[];var a=(t=t.sort(i))[0],s=e.reducedMap(t,(function(e){return 0!==n(a,e)?(a=e,e):(o(e),null)}),1,r);return s.unshift(t[0]),s},e.uniqueNumber=function(e){e=e.sort(o.Comparers.number);for(var t=Number.NaN,i=e.length-1;i>=0;i--)t===e[i]?e.splice(i,1):t=e[i];return e},e.forEach=function(e,t,i,n){void 0===i&&(i=0),void 0===n&&(n=e.length);for(var o=i;o<n;o++)t(e[o],o)},e.forEach2=function(e,t,i,n,o){void 0===n&&(n=0),void 0===o&&(o=e.length);for(var r=n;r<o;r++)i(e[r],t[r],r)},e.reverseForEach=function(e,t,i,n){void 0===i&&(i=e.length-1),void 0===n&&(n=0);for(var o=i;o>=n;o--)t(e[o],o)},e.reverseIndexOf=function(e,t,i,n){void 0===i&&(i=e.length-1),void 0===n&&(n=0);for(var o=i;o>=n;o--)if(e[o]===t)return o;return-1},e.accumulate=function(e,t,i,n,o){void 0===n&&(n=0),void 0===o&&(o=e.length);for(var r=t,a=n;a<o;a++)r=i(r,e[a],a);return r},e.accumulateNumber=function(e,t,i,n,o){void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=e.length);for(var r=i,a=n;a<o;a++)r+=t(e[a],a,r);return r},e.anyOf=function(e,t,i,n){void 0===i&&(i=0),void 0===n&&(n=e.length);for(var o=i;o<n;o++)if(t(e[o],o))return!0;return!1},e.unsafeAnyOf=function(e,t,i,n){void 0===i&&(i=0),void 0===n&&(n=e.length);for(var o=i;o<n;o++){var r=t(e[o],o);if(r)return r}return null},e.reverseAnyOf=function(e,t,i,n){void 0===i&&(i=e.length-1),void 0===n&&(n=0);for(var o=i;o>=n;o--)if(t(e[o],o))return!0;return!1},e.unsafeReverseAnyOf=function(e,t,i,n){void 0===i&&(i=e.length-1),void 0===n&&(n=0);for(var o=i;o>=n;o--){var r=t(e[o],o);if(r)return r}return null},e.anyOf2=function(e,t,i,n,o){void 0===n&&(n=0),void 0===o&&(o=e.length);for(var r=n;r<o;r++)if(i(e[r],t[r],r))return!0;return!1},e.allOf=function(e,t,i,n){void 0===i&&(i=0),void 0===n&&(n=e.length);for(var o=i;o<n;o++)if(!t(e[o],o))return!1;return!0},e.allOf2=function(e,t,i,n,o){void 0===n&&(n=0),void 0===o&&(o=e.length);for(var r=n;r<o;r++)if(!i(e[r],t[r],r))return!1;return!0},e.allOfOnInterval=function(e,t){for(var i=e.end,n=e.start;n<i;n++)if(!t(n))return!1;return!0},e.addListOnTail=function(e,t){for(var i=0,n=void 0;n=t[i];i++)e.push(n);return e},e.joinLists=function(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];return e.accumulate(i,[],(function(i,n){return e.addListOnTail(i,t(n)),i}))},e.push=function(e,t){return e.push(t),e},e.countIf=function(t,i){return e.accumulateNumber(t,(function(e,t){return i(e,t)?1:0}))},e.clear=function(e){e.splice(0)},e.merge=function(e,t,i,n,o,r){if(void 0===o&&(o=0),void 0===r&&(r=e.length),e=e.slice(o,r),r-o<2)return e;for(var a=(e=e.sort(t))[o],s=[a],l=o+1;l<r;l++){var d=e[l];i(a,d)?n(a,d):(a=d,s.push(a))}return s},e.min=function(t,i,n,o){void 0===n&&(n=0),void 0===o&&(o=t.length);var r=e.minExtended(t,i,n,o);return r?r.minElement:null},e.max=function(t,i,n,o){void 0===n&&(n=0),void 0===o&&(o=t.length);var r=e.maxExtended(t,i,n,o);return r?r.maxElement:null},e.minMax=function(t,i,o,r){void 0===o&&(o=0),void 0===r&&(r=t.length);var a=e.minMaxExtended(t,i,o,r);return a?new n.MinMax(a.minElement,a.maxElement):null},e.minExtended=function(e,t,i,o){if(void 0===i&&(i=0),void 0===o&&(o=e.length),0===e.length)return null;for(var r=e[i],a=t(r),s=i+1;s<o;s++){var l=e[s],d=t(l);d<a&&(a=d,r=l)}return new n.ExtendedMin(r,a)},e.maxExtended=function(e,t,i,o){if(void 0===i&&(i=0),void 0===o&&(o=e.length),0===e.length)return null;for(var r=e[i],a=t(r),s=i+1;s<o;s++){var l=e[s],d=t(l);d>a&&(a=d,r=l)}return new n.ExtendedMax(r,a)},e.minMaxExtended=function(e,t,i,o){if(void 0===i&&(i=0),void 0===o&&(o=e.length),0===e.length)return null;for(var r=e[i],a=r,s=t(r),l=s,d=i+1;d<o;d++){var u=e[d],c=t(u);c<s?(s=c,r=u):c>l&&(l=c,a=u)}return new n.ExtendedMinMax(r,s,a,l)},e.minByCmp=function(e,t,i,n){if(void 0===i&&(i=0),void 0===n&&(n=e.length),0===e.length)return null;for(var o=e[i],r=i+1;r<n;r++){var a=e[r];t(a,o)<0&&(o=a)}return o},e.maxByCmp=function(e,t,i,n){if(void 0===i&&(i=0),void 0===n&&(n=e.length),0===e.length)return null;for(var o=e[i],r=i+1;r<n;r++){var a=e[r];t(a,o)>0&&(o=a)}return o},e.minMaxByCmp=function(e,t,i,o){if(void 0===i&&(i=0),void 0===o&&(o=e.length),0===e.length)return null;for(var r=e[i],a=r,s=i+1;s<o;s++){var l=e[s],d=t(l,r);d>0?a=l:d<0&&(r=l)}return new n.MinMax(r,a)},e}();t.ListUtils=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedMinMax=t.ExtendedMax=t.ExtendedMin=t.MinMaxNumber=t.MinMax=void 0;var n=i(0),o=function(e,t){this.minElement=e,this.maxElement=t};t.MinMax=o;var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),Object.defineProperty(t.prototype,"length",{get:function(){return this.maxElement-this.minElement},enumerable:!1,configurable:!0}),t}(o);t.MinMaxNumber=r;var a=function(e,t){this.minElement=e,this.minValue=t};t.ExtendedMin=a;var s=function(e,t){this.maxElement=e,this.maxValue=t};t.ExtendedMax=s;var l=function(e){function t(t,i,n,o){var r=e.call(this,t,n)||this;return r.minValue=i,r.maxValue=o,r}return n.__extends(t,e),t}(o);t.ExtendedMinMax=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Equals=t.Comparers=void 0;var n=function(){function e(){}return e.number=function(e,t){return e-t},e.string=function(e,t){return e===t?0:e>t?1:-1},e.stringIgnoreCase=function(e,t){return(e=e.toLowerCase())===(t=t.toLowerCase())?0:e>t?1:-1},e}();t.Comparers=n;var o=function(){function e(){}return e.simpleType=function(e,t){return e===t},e.object=function(e,t){return e&&t&&(e===t||e.equals(t))},e}();t.Equals=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourcesDialogParameters=void 0;var n=i(0),o=i(21),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.clone=function(){var e=new t;return e.resources=new o.ResourceCollection,e.resources.addRange(this.resources.items),e},t}(i(32).DialogParametersBase);t.ResourcesDialogParameters=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskEditDialogCommand=void 0;var n=i(0),o=i(21),r=i(49),a=i(50),s=i(33),l=i(20),d=i(87),u=i(1),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.onBeforeDialogShow=function(e){return this.modelManipulator.dispatcher.raiseTaskTaskEditDialogShowing(e,(function(t){var i=t.values;e.start=i.start,e.end=i.end,e.progress=i.progress,e.title=i.title,e.readOnlyFields=t.readOnlyFields,e.hiddenFields=t.hiddenFields}))},t.prototype.applyParameters=function(e,t){var i=this;this.history.beginTransaction();var n=this.getUpdatedTaskData(e,t);Object.keys(n).length>0&&setTimeout((function(){return i.control.commandManager.updateTaskCommand.execute(t.id,n)}),0);for(var o=0;o<e.assigned.length;o++)if(!t.assigned.getItemById(e.assigned.getItem(o).internalId)){var l=e.assigned.getItem(o).internalId,d=t.id,u=new r.ResourceAssigningArguments(l,d);this.modelManipulator.dispatcher.notifyResourceAssigning(u),u.cancel||this.history.addAndRedo(new a.AssignResourceHistoryItem(this.modelManipulator,u.resourceId,u.taskId))}var c=function(i){var n=t.assigned.getItem(i);if(!e.assigned.getItemById(n.internalId)){var o=h.control.viewModel.assignments.items.filter((function(e){return e.resourceId===n.internalId&&e.taskId===t.id}))[0];h.modelManipulator.dispatcher.fireResourceUnassigning(o)&&h.history.addAndRedo(new s.DeassignResourceHistoryItem(h.modelManipulator,o.internalId))}},h=this;for(o=0;o<t.assigned.length;o++)c(o);return this.history.endTransaction(),!1},t.prototype.getUpdatedTaskData=function(e,t){var i={};return(0,u.isDefined)(e.title)&&t.title!==e.title&&(i.title=e.title),(0,u.isDefined)(e.progress)&&t.progress!==e.progress&&(i.progress=e.progress),(0,u.isDefined)(e.start)&&t.start!==e.start&&(i.start=e.start),(0,u.isDefined)(e.end)&&t.end!==e.end&&(i.end=e.end),i},t.prototype.createParameters=function(e){var t=this;e=e||this.control.viewModel.tasks.getItemById(this.control.currentSelectedTaskID);var i=new d.TaskEditParameters;return i.id=e.internalId,i.title=e.title,i.progress=e.progress,i.start=e.start,i.end=e.end,i.assigned=this.control.viewModel.getAssignedResources(e),i.resources=new o.ResourceCollection,i.resources.addRange(this.control.viewModel.resources.items),i.showResourcesDialogCommand=this.control.commandManager.showResourcesDialog,i.showTaskEditDialogCommand=this.control.commandManager.showTaskEditDialog,i.enableEdit=this.isTaskEditEnabled(),i.enableRangeEdit=this.isTaskRangeEditEnabled(e),i.isValidationRequired=this.control.isValidateDependenciesRequired(),i.getCorrectDateRange=function(e,i,n){return t.control.validationController.getCorrectDateRange(e,i,n)},i},t.prototype.isTaskEditEnabled=function(){var e=this.control.settings;return e.editing.enabled&&e.editing.allowTaskUpdate},t.prototype.isTaskRangeEditEnabled=function(e){return!this.control.viewModel.isTaskToCalculateByChildren(e.internalId)},t.prototype.isEnabled=function(){var e=this.control,t=e.viewModel.findItem(e.currentSelectedTaskID);return!!t&&t.selected||this.isApiCall},t.prototype.getState=function(){var t=e.prototype.getState.call(this);return t.visible=t.visible&&!this.control.taskEditController.dependencyId,t},t.prototype.getDialogName=function(){return"TaskEdit"},t}(l.DialogBase);t.TaskEditDialogCommand=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskEditParameters=void 0;var n=i(0),o=i(21),r=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.enableEdit=!0,t.enableRangeEdit=!0,t.isValidationRequired=!1,t.hiddenFields=[],t.readOnlyFields=[],t}return n.__extends(t,e),t.prototype.clone=function(){var e=new t;return e.id=this.id,e.title=this.title,e.progress=this.progress,e.start=this.start,e.end=this.end,e.assigned=new o.ResourceCollection,e.assigned.addRange(this.assigned.items),e.resources=new o.ResourceCollection,e.resources.addRange(this.resources.items),e.showResourcesDialogCommand=this.showResourcesDialogCommand,e.showTaskEditDialogCommand=this.showTaskEditDialogCommand,e.enableEdit=this.enableEdit,e.enableRangeEdit=this.enableRangeEdit,e.hiddenFields=this.hiddenFields.slice(),e.readOnlyFields=this.readOnlyFields.slice(),e.isValidationRequired=this.isValidationRequired,e.getCorrectDateRange=this.getCorrectDateRange,e},t}(i(32).DialogParametersBase);t.TaskEditParameters=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GanttClientCommand=void 0,function(e){e[e.CreateTask=0]="CreateTask",e[e.CreateSubTask=1]="CreateSubTask",e[e.RemoveTask=2]="RemoveTask",e[e.RemoveDependency=3]="RemoveDependency",e[e.TaskInformation=4]="TaskInformation",e[e.TaskAddContextItem=5]="TaskAddContextItem",e[e.Undo=6]="Undo",e[e.Redo=7]="Redo",e[e.ZoomIn=8]="ZoomIn",e[e.ZoomOut=9]="ZoomOut",e[e.FullScreen=10]="FullScreen",e[e.CollapseAll=11]="CollapseAll",e[e.ExpandAll=12]="ExpandAll",e[e.ResourceManager=13]="ResourceManager",e[e.ToggleResources=14]="ToggleResources",e[e.ToggleDependencies=15]="ToggleDependencies"}(t.GanttClientCommand||(t.GanttClientCommand={}))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CollapseAllCommand=void 0;var n=i(0),o=i(6),r=i(7),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.getState=function(){return new r.SimpleCommandState(this.isEnabled())},t.prototype.execute=function(){return e.prototype.execute.call(this)},t.prototype.executeInternal=function(){return this.control.collapseAll(),!0},t.prototype.isEnabled=function(){return!0},t}(o.CommandBase);t.CollapseAllCommand=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExpandAllCommand=void 0;var n=i(0),o=i(6),r=i(7),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.getState=function(){return new r.SimpleCommandState(this.isEnabled())},t.prototype.execute=function(){return e.prototype.execute.call(this)},t.prototype.executeInternal=function(){return this.control.expandAll(),!0},t.prototype.isEnabled=function(){return!0},t}(o.CommandBase);t.ExpandAllCommand=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CreateDependencyCommand=void 0;var n=i(0),o=i(23),r=i(92),a=i(93),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.execute=function(t,i,n){return e.prototype.execute.call(this,t,i,n)},t.prototype.executeInternal=function(e,t,i){if(this.control.viewModel.dependencies.items.filter((function(i){return i.predecessorId===e&&i.successorId===t||i.successorId===e&&i.predecessorId===t})).length)return!1;var n=new r.DependencyInsertingArguments(e,t,i);if(this.modelManipulator.dispatcher.notifyDependencyInserting(n),n.cancel)return!1;if(e=n.predecessorId,t=n.successorId,i=n.type,this.control.history.beginTransaction(),this.history.addAndRedo(new a.InsertDependencyHistoryItem(this.modelManipulator,e,t,i)),this.control.isValidateDependenciesRequired()){var s=this.control.viewModel.tasks.getItemById(e);i===o.DependencyType.SF||i===o.DependencyType.SS?this.control.validationController.moveStartDependTasks(e,s.start):this.control.validationController.moveEndDependTasks(e,s.end)}return this.control.history.endTransaction(),!0},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.control.settings.editing.allowDependencyInsert},t}(i(51).DependencyCommandBase);t.CreateDependencyCommand=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DependencyInsertingArguments=void 0;var n=i(0),o=function(e){function t(t,i,n){var o=e.call(this,null)||this;return o.values={predecessorId:t,successorId:i,type:n},o}return n.__extends(t,e),Object.defineProperty(t.prototype,"predecessorId",{get:function(){return this.values.predecessorId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"successorId",{get:function(){return this.values.successorId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this.values.type},enumerable:!1,configurable:!0}),t}(i(11).BaseArguments);t.DependencyInsertingArguments=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InsertDependencyHistoryItem=void 0;var n=i(0),o=i(18),r=i(2),a=function(e){function t(t,i,n,o){var r=e.call(this,t)||this;return r.predecessorId=i,r.successorId=n,r.type=o,r}return n.__extends(t,e),t.prototype.redo=function(){var e;null!==(e=this.insertedKey)&&void 0!==e||(this.insertedKey=o.MathUtils.generateGuid()),this.modelManipulator.dependency.insertDependency(this.predecessorId,this.successorId,this.type,this.insertedKey)},t.prototype.undo=function(){this.modelManipulator.dependency.removeDependency(this.insertedKey)},Object.defineProperty(t.prototype,"keyUpdaters",{get:function(){var e=this;return[{objectType:r.GanttDataObjectNames.dependency,getKey:function(){return e.insertedKey},updateKey:function(t){return e.insertedKey=t}},{objectType:r.GanttDataObjectNames.task,getKey:function(){return e.predecessorId},updateKey:function(t){return e.predecessorId=t}},{objectType:r.GanttDataObjectNames.task,getKey:function(){return e.successorId},updateKey:function(t){return e.successorId=t}}]},enumerable:!1,configurable:!0}),t}(i(14).HistoryItem);t.InsertDependencyHistoryItem=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveDependencyCommand=void 0;var n=i(0),o=i(31),r=i(40),a=i(95),s=i(41),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.execute=function(t,i){var n=this;return void 0===i&&(i=!0),i?(this.control.commandManager.showConfirmationDialog.execute(new r.ConfirmationDialogParameters(o.ConfirmationType.DependencyDelete,(function(){n.executeInternal(t)}))),!1):e.prototype.execute.call(this,t)},t.prototype.executeInternal=function(e){if(null!=(e=e||this.control.taskEditController.dependencyId)){var t=this.control.viewModel.dependencies.items.filter((function(t){return t.internalId===e}))[0];if(t){var i=new a.DependencyRemovingArguments(t);if(this.modelManipulator.dispatcher.notifyDependencyRemoving(i),!i.cancel)return this.history.addAndRedo(new s.RemoveDependencyHistoryItem(this.modelManipulator,e)),e===this.control.taskEditController.dependencyId&&this.control.taskEditController.selectDependency(null),this.control.barManager.updateItemsState([]),!0}}return!1},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.control.settings.editing.allowDependencyDelete},t.prototype.getState=function(){var t=e.prototype.getState.call(this);return t.visible=t.enabled&&null!=this.control.taskEditController.dependencyId,t},t}(i(51).DependencyCommandBase);t.RemoveDependencyCommand=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DependencyRemovingArguments=void 0;var n=i(0),o=function(e){function t(t){var i=e.call(this,t.id)||this;return i.values=t,i}return n.__extends(t,e),t}(i(11).BaseArguments);t.DependencyRemovingArguments=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleDependenciesCommand=void 0;var n=i(0),o=i(6),r=i(7),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.getState=function(){return new r.SimpleCommandState(!0)},t.prototype.execute=function(){return e.prototype.execute.call(this)},t.prototype.executeInternal=function(){return this.control.toggleDependencies(),!0},t}(o.CommandBase);t.ToggleDependenciesCommand=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleFullScreenCommand=void 0;var n=i(0),o=i(6),r=i(7),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isInFullScreenMode=!1,t.fullScreenTempVars={},t}return n.__extends(t,e),t.prototype.getState=function(){var e=new r.SimpleCommandState(!0);return e.value=this.control.fullScreenModeHelper.isInFullScreenMode,e},t.prototype.execute=function(){return e.prototype.execute.call(this)},t.prototype.executeInternal=function(){return this.control.fullScreenModeHelper.toggle(),!0},t}(o.CommandBase);t.ToggleFullScreenCommand=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RedoCommand=void 0;var n=i(0),o=i(6),r=i(7),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.getState=function(){var e=new r.SimpleCommandState(this.isEnabled());return e.visible=this.control.settings.editing.enabled,e},t.prototype.execute=function(){return e.prototype.execute.call(this)},t.prototype.executeInternal=function(){return this.history.redo(),!0},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.history.canRedo()},t}(o.CommandBase);t.RedoCommand=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UndoCommand=void 0;var n=i(0),o=i(6),r=i(7),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.getState=function(){var e=new r.SimpleCommandState(this.isEnabled());return e.visible=this.control.settings.editing.enabled,e},t.prototype.execute=function(){return e.prototype.execute.call(this)},t.prototype.executeInternal=function(){return this.history.undo(),!0},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.history.canUndo()},t}(o.CommandBase);t.UndoCommand=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AssignResourceCommand=void 0;var n=i(0),o=i(49),r=i(50),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.execute=function(t,i){return e.prototype.execute.call(this,t,i)},t.prototype.executeInternal=function(e,t){if(!this.control.viewModel.assignments.items.filter((function(i){return i.resourceId===e&&i.taskId===t}))[0]){var i=this.control.viewModel,n=new o.ResourceAssigningArguments(i.convertInternalToPublicKey("resource",e),i.convertInternalToPublicKey("task",t));if(this.modelManipulator.dispatcher.notifyResourceAssigning(n),!n.cancel)return this.history.addAndRedo(new r.AssignResourceHistoryItem(this.modelManipulator,i.convertPublicToInternalKey("resource",n.resourceId),i.convertPublicToInternalKey("task",n.taskId))),!0}return!1},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.control.settings.editing.allowTaskResourceUpdate},t}(i(34).ResourceCommandBase);t.AssignResourceCommand=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CreateResourceCommand=void 0;var n=i(0),o=i(102),r=i(103),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.execute=function(t,i,n){return void 0===i&&(i=""),e.prototype.execute.call(this,t,i,n)},t.prototype.executeInternal=function(e,t,i){void 0===t&&(t="");var n=new o.ResourceInsertingArguments(e,t);return this.modelManipulator.dispatcher.notifyResourceCreating(n),n.cancel||this.history.addAndRedo(new r.CreateResourceHistoryItem(this.modelManipulator,n.text,n.color,i)),!n.cancel},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.control.settings.editing.allowResourceInsert},t}(i(34).ResourceCommandBase);t.CreateResourceCommand=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceInsertingArguments=void 0;var n=i(0),o=function(e){function t(t,i){void 0===i&&(i="");var n=e.call(this,null)||this;return n.values={text:t,color:i},n}return n.__extends(t,e),Object.defineProperty(t.prototype,"text",{get:function(){return this.values.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return this.values.color},enumerable:!1,configurable:!0}),t}(i(11).BaseArguments);t.ResourceInsertingArguments=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CreateResourceHistoryItem=void 0;var n=i(0),o=i(14),r=i(2),a=i(18),s=function(e){function t(t,i,n,o){void 0===n&&(n="");var r=e.call(this,t)||this;return r.text=i,r.color=n,r.createCallback=o,r}return n.__extends(t,e),t.prototype.redo=function(){var e;null!==(e=this.insertedKey)&&void 0!==e||(this.insertedKey=a.MathUtils.generateGuid()),this.modelManipulator.resource.create(this.text,this.color,this.insertedKey,this.createCallback)},t.prototype.undo=function(){this.modelManipulator.resource.remove(this.insertedKey)},Object.defineProperty(t.prototype,"keyUpdaters",{get:function(){var e=this;return[{objectType:r.GanttDataObjectNames.resource,getKey:function(){return e.insertedKey},updateKey:function(t){return e.insertedKey=t}}]},enumerable:!1,configurable:!0}),t}(o.HistoryItem);t.CreateResourceHistoryItem=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeassignResourceCommand=void 0;var n=i(0),o=i(33),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.execute=function(t){return e.prototype.execute.call(this,t)},t.prototype.executeInternal=function(e){var t=this.control.viewModel.assignments.items.filter((function(t){return t.internalId===e}))[0];return!(!t||!this.modelManipulator.dispatcher.fireResourceUnassigning(t))&&(this.history.addAndRedo(new o.DeassignResourceHistoryItem(this.modelManipulator,e)),!0)},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.control.settings.editing.allowTaskResourceUpdate},t}(i(34).ResourceCommandBase);t.DeassignResourceCommand=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceColorCommand=void 0;var n=i(0),o=i(106),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.execute=function(t,i){return e.prototype.execute.call(this,t,i)},t.prototype.executeInternal=function(e,t){return this.control.viewModel.resources.getItemById(e).color!==t&&(this.history.addAndRedo(new o.ResourceColorHistoryItem(this.modelManipulator,e,t)),!0)},t}(i(108).ResourcePropertyCommandBase);t.ResourceColorCommand=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceColorHistoryItem=void 0;var n=i(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.resource.properties.color},t}(i(107).ResourcePropertiesHistoryItemBase);t.ResourceColorHistoryItem=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourcePropertiesHistoryItemBase=void 0;var n=i(0),o=i(2),r=function(e){function t(t,i,n){var o=e.call(this,t)||this;return o.resourceId=i,o.newValue=n,o}return n.__extends(t,e),t.prototype.redo=function(){this.oldState=this.getPropertiesManipulator().setValue(this.resourceId,this.newValue)},t.prototype.undo=function(){this.getPropertiesManipulator().restoreValue(this.oldState)},t.prototype.getPropertiesManipulator=function(){throw new Error("Not Implemented")},Object.defineProperty(t.prototype,"keyUpdaters",{get:function(){var e=this;return[{objectType:o.GanttDataObjectNames.resource,getKey:function(){return e.resourceId},updateKey:function(t){return e.resourceId=t}}]},enumerable:!1,configurable:!0}),t}(i(14).HistoryItem);t.ResourcePropertiesHistoryItemBase=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourcePropertyCommandBase=void 0;var n=i(0),o=i(6),r=i(7),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.getState=function(){return new r.SimpleCommandState(this.isEnabled())},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.control.settings.editing.allowResourceUpdate},t}(o.CommandBase);t.ResourcePropertyCommandBase=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveResourceCommand=void 0;var n=i(0),o=i(110),r=i(111),a=i(33),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.execute=function(t){return e.prototype.execute.call(this,t)},t.prototype.executeInternal=function(e){var t=this,i=this.control.viewModel.resources.items.filter((function(t){return t.internalId===e}))[0];if(i){var n=new o.ResourceRemovingArguments(i);if(this.modelManipulator.dispatcher.notifyResourceRemoving(n),!n.cancel){var s=new r.RemoveResourceHistoryItem(this.modelManipulator,e);return this.control.viewModel.assignments.items.filter((function(t){return t.resourceId===e})).forEach((function(e){t.modelManipulator.dispatcher.fireResourceUnassigning(e)&&s.add(new a.DeassignResourceHistoryItem(t.modelManipulator,e.internalId))})),this.history.addAndRedo(s),!0}}return!1},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.control.settings.editing.allowResourceDelete},t}(i(34).ResourceCommandBase);t.RemoveResourceCommand=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceRemovingArguments=void 0;var n=i(0),o=function(e){function t(t){var i=e.call(this,t.id)||this;return i.values=t,i}return n.__extends(t,e),t}(i(11).BaseArguments);t.ResourceRemovingArguments=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveResourceHistoryItem=void 0;var n=i(0),o=i(42),r=i(2),a=function(e){function t(t,i){var n=e.call(this)||this;return n.modelManipulator=t,n.resourceId=i,n}return n.__extends(t,e),t.prototype.redo=function(){e.prototype.redo.call(this),this.resource=this.modelManipulator.resource.remove(this.resourceId)},t.prototype.undo=function(){var t=this;this.modelManipulator.resource.create(this.resource.text,this.resource.color,this.resourceId,(function(){t.resource.color&&t.modelManipulator.resource.properties.color.setValue(t.resource.internalId,t.resource.color),window.setTimeout((function(){return e.prototype.undo.call(t)}),0)}))},t.prototype.undoItemsQuery=function(){this.modelManipulator.resource.create(this.resource.text,this.resource.color,this.resourceId,(function(){})),this.resource.color&&this.modelManipulator.resource.properties.color.setValue(this.resource.internalId,this.resource.color),e.prototype.undo.call(this)},Object.defineProperty(t.prototype,"keyUpdaters",{get:function(){var e=this;return[{objectType:r.GanttDataObjectNames.resource,getKey:function(){return e.resourceId},updateKey:function(t){return e.resourceId=t}}]},enumerable:!1,configurable:!0}),t}(o.CompositionHistoryItem);t.RemoveResourceHistoryItem=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleResourceCommand=void 0;var n=i(0),o=i(6),r=i(7),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.getState=function(){return new r.SimpleCommandState(!0)},t.prototype.execute=function(){return e.prototype.execute.call(this)},t.prototype.executeInternal=function(){return this.control.toggleResources(),!0},t}(o.CommandBase);t.ToggleResourceCommand=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CreateSubTaskCommand=void 0;var n=i(0),o=i(52),r=i(43),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.execute=function(t){return e.prototype.execute.call(this,t)},t.prototype.executeInternal=function(t){t=t||this.control.currentSelectedTaskID;var i=this.control.viewModel.findItem(t);if(i.selected){var n={start:new Date(i.task.start.getTime()),end:new Date(i.task.end.getTime()),title:"New task",progress:0,parentId:t},a=new o.TaskInsertingArguments(null,n);if(this.modelManipulator.dispatcher.notifyTaskCreating(a),!a.cancel){this.history.addAndRedo(new r.CreateTaskHistoryItem(this.modelManipulator,a));var s=this.control.viewModel.findItem(n.parentId);e.prototype.updateParent.call(this,s)}return!a.cancel}return!1},t.prototype.isEnabled=function(){var t=this.control,i=t.viewModel.findItem(t.currentSelectedTaskID);return e.prototype.isEnabled.call(this)&&!!i&&i.selected},t.prototype.getState=function(){var t=e.prototype.getState.call(this),i=this.control;return t.visible=t.visible&&i.settings.editing.allowTaskInsert,t},t}(i(24).TaskCommandBase);t.CreateSubTaskCommand=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CreateTaskCommand=void 0;var n=i(0),o=i(52),r=i(43),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.execute=function(t){return e.prototype.execute.call(this,t)},t.prototype.executeInternal=function(t){var i,n;if(null!=t||(t={}),!t.parentId){var a=this.control.viewModel.findItem(this.control.currentSelectedTaskID),s=a&&a.task;s&&(t.parentId=s.parentId)}var l=this.control.viewModel.findItem(t.parentId)||this.control.viewModel.items[0],d=l&&l.task;t.start||(t.start=d?new Date(d.start.getTime()):new Date(this.control.range.start.getTime())),t.end||(t.end=d?new Date(d.end.getTime()):new Date(this.control.range.end.getTime())),null!==(i=t.title)&&void 0!==i||(t.title="New task"),null!==(n=t.progress)&&void 0!==n||(t.progress=0);var u=new o.TaskInsertingArguments(null,t);if(this.modelManipulator.dispatcher.notifyTaskCreating(u),!u.cancel){this.history.addAndRedo(new r.CreateTaskHistoryItem(this.modelManipulator,u));var c=this.control.viewModel.findItem(t.parentId);e.prototype.updateParent.call(this,c)}return!u.cancel},t.prototype.getState=function(){var t=e.prototype.getState.call(this);return t.visible=t.visible&&this.control.settings.editing.allowTaskInsert,t},t}(i(24).TaskCommandBase);t.CreateTaskCommand=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateTaskCommand=void 0;var n=i(0),o=i(1),r=i(31),a=i(116),s=i(41),l=i(53),d=i(15),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.execute=function(t,i){return e.prototype.execute.call(this,t,i)},t.prototype.executeInternal=function(e,t){var i=this.control.viewModel.tasks.getItemById(e);if(!i)return!1;var n=this.control.modelManipulator.dispatcher.raiseTaskUpdating(i,t,(function(e){t.title=e.title,t.progress=e.progress,t.start=e.start,t.end=e.end,t.color=e.color}));if(n){(0,o.isDefined)(t.start)&&(0,o.isDefined)(t.end)&&t.end.getTime()<t.start.getTime()&&(t.end=t.start),(0,o.isDefined)(t.progress)&&(t.progress=Math.max(Math.min(t.progress,100),0));var r=this.filterChangedValues(t,i);this.processDependecyValidation(r,i)}return n},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.control.settings.editing.allowTaskUpdate},t.prototype.filterChangedValues=function(e,t){if(!e)return null;var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(0,o.isDefined)(e[n])&&t[n]!==e[n]&&(i[n]=e[n]);return i},t.prototype.processDependecyValidation=function(e,t){var i=this,n=function(n){i.onAfterValidationCallback(e,t,n)},r=this.control.isValidateDependenciesRequired();if(r){var s=[],l=(0,o.isDefined)(e.start)&&e.start!==t.start,d=(0,o.isDefined)(e.end)&&e.end!==t.end;l&&r&&(s=s.concat(this.control.validationController.checkStartDependencies(t.internalId,e.start))),d&&r&&(s=s.concat(this.control.validationController.checkEndDependencies(t.internalId,e.end))),s.length>0?this.control.commandManager.showConstraintViolationDialog.execute(new a.ConstraintViolationDialogParameters(s,n)):n(null)}else n(null)},t.prototype.onAfterValidationCallback=function(e,t,i){var n=this;if(!i||i.option!==r.ConstraintViolationOption.DoNothing||(delete e.start,delete e.end),Object.keys(e).length>0){this.history.beginTransaction(),(null==i?void 0:i.option)===r.ConstraintViolationOption.RemoveDependency&&i.validationErrors.forEach((function(e){return n.history.addAndRedo(new s.RemoveDependencyHistoryItem(n.modelManipulator,e.dependencyId))}));var a=this.control.isValidateDependenciesRequired(),d=t.internalId,u=t.start,c=t.end;this.history.addAndRedo(new l.UpdateTaskHistoryItem(this.modelManipulator,d,e)),(0,o.isDefined)(e.start)&&a&&this.control.validationController.moveStartDependTasks(d,u),(0,o.isDefined)(e.end)&&a&&this.control.validationController.moveEndDependTasks(d,c),this.processAutoParentUpdate(d,e,u,c),this.history.endTransaction(),(null==i?void 0:i.option)!==r.ConstraintViolationOption.RemoveDependency&&(null==i?void 0:i.option)!==r.ConstraintViolationOption.KeepDependency||this.control.updateBarManager(),this.control.updateViewDataRange()}},t.prototype.processAutoParentUpdate=function(e,t,i,n){var r=(0,o.isDefined)(t.start),a=(0,o.isDefined)(t.end),s=(0,o.isDefined)(t.progress)||r||a,l=r?t.start.getTime()-i.getTime():null,u=a?t.end.getTime()-n.getTime():null,c=r&&0!==d.DateUtils.getTimezoneOffsetDiff(i,t.start),h=a&&0!==d.DateUtils.getTimezoneOffsetDiff(n,t.end),p=(c||h)&&Math.abs(u-l)===d.DateUtils.msPerHour;s?0===l||l!==u&&!p?this.validationController.updateParentsIfRequired(e):this.validationController.correctParentsOnChildMoving(e,l):this.control.updateOwnerInAutoParentMode()},t}(i(24).TaskCommandBase);t.UpdateTaskCommand=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConstraintViolationDialogParameters=void 0;var n=i(0),o=function(e){function t(t,i){var n=e.call(this)||this;return n.validationErrors=t,n.callback=i,n}return n.__extends(t,e),t.prototype.clone=function(){var e=new t(this.validationErrors,this.callback);return e.option=this.option,e},Object.defineProperty(t.prototype,"hasCriticalErrors",{get:function(){var e;return null===(e=this.validationErrors)||void 0===e?void 0:e.some((function(e){return e.critical}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"errorsCount",{get:function(){var e;return null===(e=this.validationErrors)||void 0===e?void 0:e.length},enumerable:!1,configurable:!0}),t}(i(32).DialogParametersBase);t.ConstraintViolationDialogParameters=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveTaskCommand=void 0;var n=i(0),o=i(31),r=i(40),a=i(118),s=i(41),l=i(33),d=i(119),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.execute=function(t,i,n,a,s,l){var d=this;return void 0===i&&(i=!0),void 0===n&&(n=!1),void 0===a&&(a=!0),this.isApiCall=n,this.isUpdateParentTaskRequired=a,i?(this.control.commandManager.showConfirmationDialog.execute(new r.ConfirmationDialogParameters(o.ConfirmationType.TaskDelete,(function(){d.executeInternal(t,s,l)}))),!1):e.prototype.execute.call(this,t,s,l)},t.prototype.executeInternal=function(i,n,o){var r=this,u=o||[];i=i||this.control.currentSelectedTaskID;var c=this.control.viewModel.findItem(i),h=c?c.task:this.control.viewModel.tasks.getItemById(i),p=new a.TaskRemovingArguments(h);if(this.modelManipulator.dispatcher.notifyTaskRemoving(p),p.cancel)return!1;var f=this.history,g=this.control.viewModel;f.beginTransaction(),g.beginUpdate();var m=!!n,_=new d.RemoveTaskHistoryItem(this.modelManipulator,i),v=g.tasks.items.filter((function(e){return e.parentId===i})),y=v.map((function(e){return e.internalId})),C=g.dependencies.items.filter((function(e){return-1===u.indexOf(e.internalId)&&(e.predecessorId===i||e.successorId===i)&&!y.some((function(t){return e.predecessorId===t||e.successorId===t}))}));if(C.length){if(!this.control.settings.editing.allowDependencyDelete)return!1;C.forEach((function(e){_.add(new s.RemoveDependencyHistoryItem(r.modelManipulator,e.internalId)),u.push(e.internalId)}))}if(g.assignments.items.filter((function(e){return e.taskId===i})).forEach((function(e){r.modelManipulator.dispatcher.fireResourceUnassigning(e)&&_.add(new l.DeassignResourceHistoryItem(r.modelManipulator,e.internalId))})),v.reverse().forEach((function(e){return new t(r.control).execute(e.internalId,!1,!0,!1,_,u)})),m?n.add(_):f.addAndRedo(_),this.isUpdateParentTaskRequired){var b=this.control.viewModel.findItem(h.parentId);e.prototype.updateParent.call(this,b)}return f.endTransaction(),g.endUpdate(),!0},t.prototype.isEnabled=function(){var t=this.control,i=t.viewModel.findItem(t.currentSelectedTaskID);return e.prototype.isEnabled.call(this)&&(!!i&&i.selected||this.isApiCall)},t.prototype.getState=function(){var t=e.prototype.getState.call(this),i=this.control;return t.visible=t.visible&&i.settings.editing.allowTaskDelete,t},t}(i(24).TaskCommandBase);t.RemoveTaskCommand=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskRemovingArguments=void 0;var n=i(0),o=function(e){function t(t){var i=e.call(this,t.id)||this;return i.values=t,i}return n.__extends(t,e),t}(i(11).BaseArguments);t.TaskRemovingArguments=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveTaskHistoryItem=void 0;var n=i(0),o=i(2),r=i(42),a=function(e){function t(t,i){var n=e.call(this)||this;return n.modelManipulator=t,n.taskId=i,n}return n.__extends(t,e),t.prototype.redo=function(){e.prototype.redo.call(this),this.task=this.modelManipulator.task.remove(this.taskId)},t.prototype.undo=function(){var t=this;this.modelManipulator.task.create(this.task,this.taskId,(function(){window.setTimeout((function(){return e.prototype.undo.call(t)}),0)}))},t.prototype.undoItemsQuery=function(){var e;this.modelManipulator.task.create(this.task,this.taskId);for(var t=this.historyItems.length-1;e=this.historyItems[t];t--)e instanceof r.CompositionHistoryItem?e.undoItemsQuery():e.undo()},Object.defineProperty(t.prototype,"keyUpdaters",{get:function(){var e=this;return[{objectType:o.GanttDataObjectNames.task,getKey:function(){return e.taskId},updateKey:function(t){return e.taskId=t}},{objectType:o.GanttDataObjectNames.task,getKey:function(){var t;return null===(t=e.task)||void 0===t?void 0:t.parentId},updateKey:function(t){return e.task.parentId=t}}]},enumerable:!1,configurable:!0}),t}(r.CompositionHistoryItem);t.RemoveTaskHistoryItem=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAddContextItemCommand=void 0;var n=i(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.getState=function(){var t=e.prototype.getState.call(this);return t.visible=t.visible&&this.control.settings.editing.allowTaskInsert,t},t.prototype.execute=function(){return!1},t}(i(24).TaskCommandBase);t.TaskAddContextItemCommand=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZoomInCommand=void 0;var n=i(0),o=i(6),r=i(7),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.getState=function(){return new r.SimpleCommandState(!0)},t.prototype.execute=function(){return e.prototype.execute.call(this)},t.prototype.executeInternal=function(){return this.control.zoomIn(),!0},t}(o.CommandBase);t.ZoomInCommand=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZoomOutCommand=void 0;var n=i(0),o=i(6),r=i(7),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.getState=function(){return new r.SimpleCommandState(!0)},t.prototype.execute=function(){return e.prototype.execute.call(this)},t.prototype.executeInternal=function(){return this.control.zoomOut(),!0},t}(o.CommandBase);t.ZoomOutCommand=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FullScreenHelperSettings=void 0;var n=i(1),o=function(){function e(){}return e.parse=function(t){var i=new e;return t&&((0,n.isDefined)(t.getMainElement)&&(i.getMainElement=t.getMainElement),(0,n.isDefined)(t.adjustControl)&&(i.adjustControl=t.adjustControl)),i},e}();t.FullScreenHelperSettings=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FullScreenModeHelper=void 0;var n=i(10),o=i(125),r=i(3),a=function(){function e(e){this._isInFullScreenMode=!1,this.fullScreenTempVars={},this.settings=e}return Object.defineProperty(e.prototype,"isInFullScreenMode",{get:function(){return this._isInFullScreenMode},enumerable:!1,configurable:!0}),e.prototype.getMainElement=function(){return this.settings.getMainElement()},e.prototype.adjustControl=function(){this.settings.adjustControl()},e.prototype.toggle=function(){return this._isInFullScreenMode=!this._isInFullScreenMode,this._isInFullScreenMode?this.setFullScreenMode():this.setNormalMode(),!0},e.prototype.setFullScreenMode=function(){this.prepareFullScreenMode(),this.adjustControlInFullScreenMode()},e.prototype.prepareFullScreenMode=function(){var e=this.getMainElement();o.AttrUtils.changeElementStyleAttribute(e,"border-top-width","0px"),o.AttrUtils.changeElementStyleAttribute(e,"border-left-width","0px"),o.AttrUtils.changeElementStyleAttribute(e,"border-right-width","0px"),o.AttrUtils.changeElementStyleAttribute(e,"border-bottom-width","0px"),this.fullScreenTempVars.scrollTop=r.DomUtils.getDocumentScrollTop(),this.fullScreenTempVars.scrollLeft=r.DomUtils.getDocumentScrollLeft(),o.AttrUtils.changeElementStyleAttribute(e,"background-color","white"),o.AttrUtils.changeElementStyleAttribute(e,"position","fixed"),o.AttrUtils.changeElementStyleAttribute(e,"top","0px"),o.AttrUtils.changeElementStyleAttribute(e,"left","0px"),o.AttrUtils.changeElementStyleAttribute(e,"z-index","1010"),o.AttrUtils.changeElementStyleAttribute(document.documentElement,"position","static"),o.AttrUtils.changeElementStyleAttribute(document.documentElement,"overflow","hidden"),this.fullScreenTempVars.bodyMargin=document.body.style.margin,document.body.style.margin="0",this.fullScreenTempVars.width=e.style.width,this.fullScreenTempVars.height=e.style.height||e.clientHeight,window.self!==window.top&&this.requestFullScreen(document.body)},e.prototype.setNormalMode=function(){this.cancelFullScreen(document);var e=this.getMainElement();o.AttrUtils.restoreElementStyleAttribute(e,"left"),o.AttrUtils.restoreElementStyleAttribute(e,"top"),o.AttrUtils.restoreElementStyleAttribute(e,"background-color"),o.AttrUtils.restoreElementStyleAttribute(document.documentElement,"overflow"),o.AttrUtils.restoreElementStyleAttribute(document.documentElement,"position"),o.AttrUtils.restoreElementStyleAttribute(e,"z-index"),document.body.style.margin=this.fullScreenTempVars.bodyMargin,o.AttrUtils.restoreElementStyleAttribute(e,"position"),o.AttrUtils.restoreElementStyleAttribute(e,"border-top-width"),o.AttrUtils.restoreElementStyleAttribute(e,"border-left-width"),o.AttrUtils.restoreElementStyleAttribute(e,"border-right-width"),o.AttrUtils.restoreElementStyleAttribute(e,"border-bottom-width"),this.setHeight(this.fullScreenTempVars.height),this.setWidth(this.fullScreenTempVars.width),document.documentElement.scrollTop=this.fullScreenTempVars.scrollTop,document.documentElement.scrollLeft=this.fullScreenTempVars.scrollLeft,this.adjustControl()},e.prototype.adjustControlInFullScreenMode=function(){var e=0==document.documentElement.clientWidth?document.body.clientWidth:document.documentElement.clientWidth,t=0==document.documentElement.clientHeight?document.body.clientHeight:document.documentElement.clientHeight;this.setWidth(e),this.setHeight(t),this.adjustControl()},e.prototype.requestFullScreen=function(e){e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()},e.prototype.cancelFullScreen=function(e){n.Browser.Firefox&&!this.getFullScreenElement(e)||(e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen?e.msExitFullscreen():e.exitFullscreen&&e.exitFullscreen())},e.prototype.getFullScreenElement=function(e){return e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement},e.prototype.setWidth=function(e){this.getMainElement().style.width=this.isNumber(e)?e+"px":e},e.prototype.setHeight=function(e){this.getMainElement().style.height=this.isNumber(e)?e+"px":e},e.prototype.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},e}();t.FullScreenModeHelper=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AttrUtils=void 0;var n=i(10),o=function(){function e(){}return e.setElementAttribute=function(e,t,i){e.setAttribute&&(n.Browser.IE&&n.Browser.MajorVersion>=11&&"src"===t.toLowerCase()&&e.setAttribute(t,""),e.setAttribute(t,i))},e.setStyleAttribute=function(e,t,i){e.setProperty&&e.setProperty(t,i,"")},e.getElementAttribute=function(e,t){return e.getAttribute(t)},e.getStyleAttribute=function(e,t){if(e.getPropertyValue){if(n.Browser.Firefox)try{return e.getPropertyValue(t)}catch(i){return e[t]}return e.getPropertyValue(t)}return null},e.removeElementAttribute=function(e,t){e.removeAttribute&&e.removeAttribute(t)},e.removeStyleAttribute=function(e,t){e.removeProperty&&e.removeProperty(t)},e.changeElementStyleAttribute=function(t,i,n){e.saveStyleAttributeInElement(t,i),e.setStyleAttribute(t.style,i,n)},e.restoreElementStyleAttribute=function(t,i){var n="dxwu_saved"+i,o=t.style;if(e.isExistsAttributeInElement(t,n)){var r=e.getElementAttribute(t,n);return r===e.emptyObject||null===r?e.removeStyleAttribute(o,i):e.setStyleAttribute(o,i,r),e.removeElementAttribute(t,n),!0}return!1},e.saveStyleAttributeInElement=function(t,i){var n="dxwu_saved"+i,o=t.style;if(!e.isExistsAttributeInElement(t,n)){var r=e.getStyleAttribute(o,i);e.setElementAttribute(t,n,e.isAttributeExists(r)?r:e.emptyObject)}},e.isExistsAttributeInElement=function(t,i){var n=e.getElementAttribute(t,i);return e.isAttributeExists(n)},e.isAttributeExists=function(e){return null!==e&&""!==e},e.emptyObject="DxEmptyValue",e}();t.AttrUtils=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GanttExportCalculator=void 0;var n=i(5),o=i(3),r=i(4),a=i(25),s=i(60),l=i(61),d=i(44),u=i(17),c=i(26),h=i(36),p=i(45),f=i(130),g=i(131),m=i(27),_=i(12),v=i(134),y=i(136),C=i(63),b=i(37),x=i(35),w=function(){function e(t,i){var n,o;this._owner=t,this._props=new g.GanttPdfExportProps(i),null!==(n=(o=this._props).margins)&&void 0!==n||(o.margins=new h.Margin(e._defaultPageMargin))}return Object.defineProperty(e.prototype,"chartTableScaleTopMatrix",{get:function(){var e;return null!==(e=this._chartTableScaleTopMatrix)&&void 0!==e||(this._chartTableScaleTopMatrix=this.calculateChartScaleMatrix(0)),this._chartTableScaleTopMatrix},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"chartTableScaleBottomMatrix",{get:function(){var e;return null!==(e=this._chartTableScaleBottomMatrix)&&void 0!==e||(this._chartTableScaleBottomMatrix=this.calculateChartScaleMatrix(1)),this._chartTableScaleBottomMatrix},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"chartTableBodyMatrix",{get:function(){return this._chartTableBodyMatrix||this.calculateChartTableBodyMatrix(),this._chartTableBodyMatrix},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"treeListHeaderMatrix",{get:function(){return this._treeListHeaderMatrix||this.calculateTreeListTableHeaderMatrix(),this._treeListHeaderMatrix},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"treeListBodyMatrix",{get:function(){return this._treeListBodyMatrix||this.calculateTreeListTableBodyMatrix(),this._treeListBodyMatrix},enumerable:!1,configurable:!0}),e.prototype.getPages=function(e){return new v.PdfGanttPaginator(e,this.settings,this.createGlobalInfo()).getPages()},Object.defineProperty(e.prototype,"settings",{get:function(){return this.settingsForPaging},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layoutCalculator",{get:function(){return this._taskAreaHelper.layoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaHelper",{get:function(){var e;return null!==(e=this._taskAreaHelper)&&void 0!==e||(this._taskAreaHelper=new f.TaskAreaExportHelper(this._owner,this._props)),this._taskAreaHelper},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scalingHelper",{get:function(){var e,t;return null!==(e=this._scalingHelper)&&void 0!==e||(this._scalingHelper=new y.ScalingHelper(null===(t=this._props)||void 0===t?void 0:t.pdfDoc)),this._scalingHelper},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visibleTaskIndices",{get:function(){return this.taskAreaHelper.visibleTaskIndices},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseCellWidth",{get:function(){return this.taskAreaHelper.baseCellSize.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseCellHeight",{get:function(){return this.taskAreaHelper.baseCellHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"chartScaleTableStyle",{get:function(){var e;return null!==(e=this._chartScaleTableStyle)&&void 0!==e||(this._chartScaleTableStyle=this.getChartScaleTableStyle()),this._chartScaleTableStyle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"chartMainTableStyle",{get:function(){var e;return null!==(e=this._chartMainTableStyle)&&void 0!==e||(this._chartMainTableStyle=this.getChartMainTableStyle()),this._chartMainTableStyle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"treeListTableStyle",{get:function(){return this._treeListTableStyle||this.calculateTreeListTableStyle(),this._treeListTableStyle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageTopMargin",{get:function(){return this._props.margins.top},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageLeftMargin",{get:function(){return this._props.margins.left},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageRightMargin",{get:function(){return this._props.margins.right},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageBottomMargin",{get:function(){return this._props.margins.bottom},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headerTableTop",{get:function(){var e;return null!==(e=this._headerTableTop)&&void 0!==e||(this._headerTableTop=this.pageTopMargin),this._headerTableTop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mainTableTop",{get:function(){var e;return null!==(e=this._mainTableTop)&&void 0!==e||(this._mainTableTop=this.getMainTableTop()),this._mainTableTop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"exportDataMode",{get:function(){return this._props.exportDataMode},enumerable:!1,configurable:!0}),e.prototype.getMainTableTop=function(){return this.headerTableTop+this.headerTableHeight-this.taskAreaHelper.offsetTop},Object.defineProperty(e.prototype,"chartLeft",{get:function(){var e;return null!==(e=this._chartLeft)&&void 0!==e||(this._chartLeft=this.getChartLeft()),this._chartLeft},enumerable:!1,configurable:!0}),e.prototype.getChartLeft=function(){var e;return(((null===(e=this._props)||void 0===e?void 0:e.exportMode)||b.ExportMode.all)===b.ExportMode.chart?this.pageLeftMargin:this.treeListLeft+this.treeListWidth)-this.taskAreaHelper.offsetLeft},Object.defineProperty(e.prototype,"treeListLeft",{get:function(){var e;return null!==(e=this._treeListLeft)&&void 0!==e||(this._treeListLeft=this.pageLeftMargin),this._treeListLeft},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headerTableHeight",{get:function(){return 2*this.taskAreaHelper.headerRowHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mainTableHeight",{get:function(){var e;return null!==(e=this._mainTableHeight)&&void 0!==e||(this._mainTableHeight=this.taskAreaHelper.taskAreaHeight),this._mainTableHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"treeListWidth",{get:function(){var e;return null!==(e=this._treeListWidth)&&void 0!==e||(this._treeListWidth=this.getTreeListTableWidth()),this._treeListWidth},enumerable:!1,configurable:!0}),e.prototype.getTreeListTableWidth=function(){var e,t=this,i=this.treeListHeaderMatrix[0].map((function(e,i){return t.getTreeListColumnWidth(i)}));return null!==(e=null==i?void 0:i.reduce((function(e,t){return e+t}),0))&&void 0!==e?e:0},Object.defineProperty(e.prototype,"chartWidth",{get:function(){var e=this;if(!this._chartWidth){var t=this.chartTableScaleBottomMatrix[0];this._chartWidth=t.reduce((function(t,i){return t+(i.styles.cellWidth.hasValue()?i.styles.cellWidth.getValue():e.baseCellWidth)}),0)}return this._chartWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"settingsForPaging",{get:function(){return this._settingsForPaging||(this._settingsForPaging=new g.GanttPdfExportProps(this._props),this.prepareAutoFormat(this._settingsForPaging),this.scalingHelper.scalePageMargins(this._settingsForPaging)),this._settingsForPaging},enumerable:!1,configurable:!0}),e.prototype.prepareAutoFormat=function(e){if(e.format===g.GanttPdfExportProps.autoFormatKey){e.format=null;var t=e.landscape,i=this.autoFormatWidth,n=this.autoFormatHeight;(t&&n>i||!t&&n<i)&&(e.landscape=!t),e.pageSize=new _.Size(i,n)}},Object.defineProperty(e.prototype,"autoFormatWidth",{get:function(){var t,i=((null===(t=this._props)||void 0===t?void 0:t.exportMode)||b.ExportMode.all)!==b.ExportMode.treeList,n=this.pageRightMargin;return(n+=i?this.chartLeft+this.chartWidth:this.treeListLeft+this.treeListWidth)+e._autoFormatWidthAddStock},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"autoFormatHeight",{get:function(){return this.mainTableTop+this.mainTableHeight+this.pageBottomMargin},enumerable:!1,configurable:!0}),e.prototype.createGlobalInfo=function(){var e={objects:this._canExportChart()?this.getGanttObjectsInfo():null,tables:this.getTablesInfo()};return this.scalingHelper.scaleSizes(e),e},e.prototype.getTablesInfo=function(){var e={};return this._canExportTreelist()&&(e[m.PdfPageTableNames.treeListHeader]=this.createTreeListHeaderTableInfo(),e[m.PdfPageTableNames.treeListMain]=this.createTreeListMainTableInfo()),this._canExportChart()&&(e[m.PdfPageTableNames.chartMain]=this.createChartMainTableInfo(),e[m.PdfPageTableNames.chartScaleTop]=this._createChartScaleTopInfo(),e[m.PdfPageTableNames.chartScaleBottom]=this._createChartScaleBottomInfo()),e},Object.defineProperty(e.prototype,"exportMode",{get:function(){var e,t;return null!==(t=null===(e=this._props)||void 0===e?void 0:e.exportMode)&&void 0!==t?t:b.ExportMode.all},enumerable:!1,configurable:!0}),e.prototype._canExportTreelist=function(){return this.exportMode===b.ExportMode.all||this.exportMode===b.ExportMode.treeList},e.prototype._canExportChart=function(){return this.exportMode===b.ExportMode.all||this.exportMode===b.ExportMode.chart},Object.defineProperty(e.prototype,"_predefinedFont",{get:function(){var e,t,i,n,o=null===(t=null===(e=this._props)||void 0===e?void 0:e.pdfDoc)||void 0===t?void 0:t.getFont();return(null==o?void 0:o.fontName)||(null===(n=null===(i=this._props)||void 0===i?void 0:i.font)||void 0===n?void 0:n.name)},enumerable:!1,configurable:!0}),e.prototype._createChartScaleTopInfo=function(){return{name:m.PdfPageTableNames.chartScaleTop,size:new _.Size(this.chartWidth,this.taskAreaHelper.headerRowHeight),position:new n.Point(this.chartLeft,this.headerTableTop),style:this.chartScaleTableStyle,baseCellSize:new _.Size(this.baseCellWidth,this.taskAreaHelper.headerRowHeight),cells:this.chartTableScaleTopMatrix}},e.prototype._createChartScaleBottomInfo=function(){var e=this.taskAreaHelper.headerRowHeight;return{name:m.PdfPageTableNames.chartScaleBottom,size:new _.Size(this.chartWidth,e),position:new n.Point(this.chartLeft,this.headerTableTop+e),style:this.chartScaleTableStyle,baseCellSize:new _.Size(this.baseCellWidth,e),cells:this.chartTableScaleBottomMatrix}},e.prototype.createChartMainTableInfo=function(){return{name:m.PdfPageTableNames.chartMain,size:new _.Size(this.chartWidth,this.mainTableHeight),position:new n.Point(this.chartLeft,this.mainTableTop),style:this.chartMainTableStyle,baseCellSize:new _.Size(this.baseCellWidth,this.baseCellHeight),cells:this.chartTableBodyMatrix,hideRowLines:!this._owner.settings.areHorizontalBordersEnabled}},e.prototype.createTreeListHeaderTableInfo=function(){return{name:m.PdfPageTableNames.treeListHeader,size:new _.Size(this.treeListWidth,this.headerTableHeight),position:new n.Point(this.treeListLeft,this.headerTableTop),style:this.treeListTableStyle,baseCellSize:new _.Size(null,this.headerTableHeight),cells:this.treeListHeaderMatrix}},e.prototype.createTreeListMainTableInfo=function(){return{name:m.PdfPageTableNames.treeListMain,size:new _.Size(this.treeListWidth,this.mainTableHeight),position:new n.Point(this.treeListLeft,this.mainTableTop),style:this.treeListTableStyle,baseCellSize:new _.Size(null,this.baseCellHeight),cells:this.treeListBodyMatrix,hideRowLines:!this._owner.settings.areHorizontalBordersEnabled}},e.prototype.calculateChartScaleMatrix=function(e){for(var t=this.taskAreaHelper,i=t.scaleRanges,n=new Array,o=i[e][0],r=i[e][1],a=o;a<=r;a++){var s=this.layoutCalculator.getScaleItemStart(a,t.scales[e]),l=new p.CellDef(this._owner.renderHelper.getScaleItemTextByStart(s,t.scales[e]));l.styles.cellPadding.assign(0),l.styles.minCellHeight=this.taskAreaHelper.headerRowHeight;var d=0===e?t.scaleTopWidths[a]:t.scaleBottomWidths[a];l.styles.cellWidth.assign(d),n.push(l)}return[n]},e.prototype.calculateChartTableBodyMatrix=function(){var e=this;this._chartTableBodyMatrix=new Array,this.visibleTaskIndices.length>0?this.visibleTaskIndices.forEach((function(t){return e._chartTableBodyMatrix.push(e.createChartTableBodyRow(t))})):this._chartTableBodyMatrix.push(this.createChartTableBodyRow(-1))},e.prototype.createChartTableBodyRow=function(e){var t=new p.CellDef;return this.rowHasChildren(e)&&t.styles.fillColor.assign(this.taskAreaHelper.parentRowBackColor),this.chartTableScaleBottomMatrix[0].map((function(e){var i=new p.CellDef(t);return i.styles.cellWidth.assign(e.styles.cellWidth),i}))},e.prototype.rowHasSelection=function(e){return this._owner.rowHasSelection(e)},e.prototype.rowHasChildren=function(e){return this._owner.rowHasChildren(e)},e.prototype.calculateTreeListTableHeaderMatrix=function(){this._treeListHeaderMatrix=new Array;for(var e=this._owner,t=e.getTreeListColCount(),i=new Array,n=0;n<t;n++){var o=new p.CellDef(e.getTreeListHeaderInfo(n));o.styles.minCellHeight=2*this.taskAreaHelper.headerRowHeight,i.push(o)}this._treeListHeaderMatrix.push(i)},e.prototype.calculateTreeListTableBodyMatrix=function(){this._treeListBodyMatrix=new Array,this.visibleTaskIndices.length>0?this.fillTreeListTableBodyMatrix(this._treeListBodyMatrix):this.fillTreeListEmptyTableBodyMatrix(this._treeListBodyMatrix)},e.prototype.fillTreeListTableBodyMatrix=function(e){for(var t,i=this.visibleTaskIndices,n=this.treeListHeaderMatrix[0].length,o=0;o<i.length;o++){for(var r=new Array,a=i[o],s=null===(t=this._owner.getTask(a))||void 0===t?void 0:t.id,l=0;l<n;l++){var d=new p.CellDef(this._owner.getTreeListCellInfo(a,l,s));d.styles.cellWidth.hasValue()||d.styles.cellWidth.assign(this.getTreeListColumnWidth(l)),this.rowHasChildren(i[o])&&d.styles.fillColor.assign(this.taskAreaHelper.parentRowBackColor),r.push(d)}e.push(r)}},e.prototype.fillTreeListEmptyTableBodyMatrix=function(e){var t=new Array,i=new p.CellDef(this._owner.getTreeListEmptyDataCellInfo());i.styles.cellWidth.assign(this.treeListWidth),i.styles.halign=x.PredefinedStyles.horizontalAlign[1],i.styles.valign=x.PredefinedStyles.verticalAlign[1],t.push(i),e.push(t)},e.prototype.getTreeListColumnWidth=function(e){var t=this.treeListHeaderMatrix[0][e],i=t&&t.styles;return i.cellWidth.getValue()||i.minCellWidth||0},e.prototype.getObjectsLeftOffset=function(e){void 0===e&&(e=!1);var t=this.dataObjectLeftDelta;return e||(t+=this.taskAreaHelper.customRangeLeftOffset),t},Object.defineProperty(e.prototype,"dataObjectLeftDelta",{get:function(){var e;return null!==(e=this._dataObjectLeftDelta)&&void 0!==e||(this._dataObjectLeftDelta=this.getDataObjectLeftDelta()),this._dataObjectLeftDelta},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataObjectTopDelta",{get:function(){var e;return null!==(e=this._dataObjectTopDelta)&&void 0!==e||(this._dataObjectTopDelta=this.getDataObjectTopDelta()),this._dataObjectTopDelta},enumerable:!1,configurable:!0}),e.prototype.getChartScaleTableStyle=function(){var e=new c.StyleDef(this.taskAreaHelper.scaleTableStyle);return this._predefinedFont&&(e.font=this._predefinedFont),e},e.prototype.getChartMainTableStyle=function(){var e=new c.StyleDef(this.taskAreaHelper.chartMainTableStyle);return this._predefinedFont&&(e.font=this._predefinedFont),e},e.prototype.calculateTreeListTableStyle=function(){this._treeListTableStyle=new c.StyleDef(this._owner.getTreeListTableStyle()),this._treeListTableStyle.fillColor.assign(this.chartMainTableStyle.fillColor),this._treeListTableStyle.lineColor.assign(this.chartMainTableStyle.lineColor),this._predefinedFont&&(this._treeListTableStyle.font=this._predefinedFont)},e.prototype.getGanttObjectsInfo=function(){return{tasks:this.tasksInfo,dependencies:this.dependenciesInfo,resources:this.resourcesInfo,timeMarkers:this.timeMarkersInfo}},Object.defineProperty(e.prototype,"tasksInfo",{get:function(){var e;return null!==(e=this._tasksInfo)&&void 0!==e||(this._tasksInfo=this.calculateTasksInfo()),this._tasksInfo},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dependenciesInfo",{get:function(){var e;return null!==(e=this._dependenciesInfo)&&void 0!==e||(this._dependenciesInfo=this.calculateDependenciesInfo()),this._dependenciesInfo},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resourcesInfo",{get:function(){var e;return null!==(e=this._resourcesInfo)&&void 0!==e||(this._resourcesInfo=this.calculateResourcesInfo()),this._resourcesInfo},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timeMarkersInfo",{get:function(){var e;return null!==(e=this._timeMarkersInfo)&&void 0!==e||(this._timeMarkersInfo=this.calculateTimeMarkersInfoInfo()),this._timeMarkersInfo},enumerable:!1,configurable:!0}),e.prototype.getDataObjectLeftDelta=function(){return this.chartLeft-this.taskAreaHelper.objectsLeftDelta},e.prototype.getDataObjectTopDelta=function(){return this.headerTableTop+this.headerTableHeight-this.taskAreaHelper.objectsTopDelta},e.prototype.calculateTasksInfo=function(){var e=this,t=new Array;return this.visibleTaskIndices.forEach((function(i){return t.push(e.calculateTaskInfo(i))})),t},e.prototype.calculateTaskInfo=function(e){var t=new d.PdfTaskInfo,i=this.layoutCalculator.getTaskElementInfo(e);return t.taskColor=this.getTaskColor(e),t.sidePoints=this.getTaskSidePoints(e),t.isMilestone=i.className.indexOf(a.GridLayoutCalculator.milestoneClassName)>0,t.isMilestone||(t.isSmallTask=i.className.indexOf(a.GridLayoutCalculator.smallTaskClassName)>0,t.isParent=i.className.indexOf(a.GridLayoutCalculator.parentTaskClassName)>0,this.appendTaskTitle(t,e),this.appendTaskProgress(t,e)),t},e.prototype.appendTaskTitle=function(e,t){var i=this._owner.settings.taskTitlePosition;e.isSmallTask&&i!==r.TaskTitlePosition.Outside||i===r.TaskTitlePosition.None||(e.text=this._owner.getTaskText(t),e.textPosition=i,e.textStyle=this.getTaskTextStyle(t))},e.prototype.appendTaskProgress=function(e,t){var i=this.layoutCalculator.getTaskProgressElementInfo(t);e.progressWidth=i.size.width,e.progressColor=this.getTaskProgressColor(t),e.progressColor.applyOpacityToBackground(e.taskColor)},e.prototype.getTaskSidePoints=function(e){var t=this,i=this.layoutCalculator.getTaskSidePoints(e);return i.forEach((function(e){e.x+=t.getObjectsLeftOffset(!0),e.y+=t.dataObjectTopDelta})),i},e.prototype.getTaskColor=function(e){var t=this.taskAreaHelper.getTaskElementBackColor(e,a.GridLayoutCalculator.taskClassName);return new u.Color(t)},e.prototype.getTaskProgressColor=function(e){return new u.Color(this.taskAreaHelper.getTaskElementBackColor(e,a.GridLayoutCalculator.taskProgressClassName))},e.prototype.getTaskTextStyle=function(e){var t=new c.StyleDef;return t.cellPadding.assign(0),t.assign(this.taskAreaHelper.getTaskElementStyle(e,a.GridLayoutCalculator.taskTitleClassName)),t},e.prototype.calculateDependenciesInfo=function(){var e=this,t=new Array,i=this.taskAreaHelper,n=new u.Color(i.dependencyColor);return i.connectorLines.forEach((function(o){return t.push(e.createLineInfo(o,n,i.arrowWidth))})),t},e.prototype.createLineInfo=function(e,t,i){var n=new s.PdfDependencyLineInfo;if(n.fillColor=t,e.className.indexOf(a.GridLayoutCalculator.arrowClassName)>-1){var o=this.layoutCalculator.getArrowPositionByClassName(e.className);n.arrowInfo={position:o,width:i},n.points=[this.getArrowTopCorner(e,o,i)]}else n.points=this.getLinePoints(e);return n},e.prototype.getArrowTopCorner=function(e,t,i){var o=e.position.x+this.getObjectsLeftOffset(),a=e.position.y+this.dataObjectTopDelta;switch(t){case r.Position.Left:o+=i;break;case r.Position.Top:a+=i}return new n.Point(o,a)},e.prototype.getLinePoints=function(e){var t=e.position.x+this.getObjectsLeftOffset(),i=e.position.y+this.dataObjectTopDelta,o=t+e.size.width,r=i+e.size.height;return[new n.Point(t,i),new n.Point(o,r)]},e.prototype.calculateResourcesInfo=function(){var e=this,t=new Array;return this.taskAreaHelper.resourcesElements.forEach((function(i){return t=t.concat(e.calculateResourcesInLine(i))})),t},e.prototype.calculateResourcesInLine=function(e){var t=new Array;if(e)for(var i=o.DomUtils.pxToInt(e.style.left)+this.getObjectsLeftOffset(),n=o.DomUtils.pxToInt(e.style.top)+this.dataObjectTopDelta,r=e.getElementsByClassName(a.GridLayoutCalculator.taskResourceClassName),s=0;s<r.length;s++){var d=r[s],u=getComputedStyle(d);i+=this.getMargin(u).left,t.push(new l.PdfTaskResourcesInfo(d.textContent,new c.StyleDef(u),i,n)),i+=o.DomUtils.pxToInt(u.width)}return t},e.prototype.calculateTimeMarkersInfoInfo=function(){var e=this,t=new Array;return this.taskAreaHelper.stripLinesElements.forEach((function(i){return t.push(e.createTimeMarkerInfo(i,!0))})),this.taskAreaHelper.noWorkingIntervalsElements.forEach((function(i){return t.push(e.createTimeMarkerInfo(i,!1))})),t},e.prototype.createTimeMarkerInfo=function(e,t){var i=getComputedStyle(e),r=o.DomUtils.pxToInt(i.left)+this.getObjectsLeftOffset(),a=o.DomUtils.pxToInt(i.top)+this.dataObjectTopDelta,s=o.DomUtils.pxToInt(i.width),l=o.DomUtils.pxToInt(i.height);return new C.PdfTimeMarkerInfo(new n.Point(r,a),new _.Size(s,l),new u.Color(i.backgroundColor),new u.Color(i.borderLeftColor),t)},e.prototype.getMargin=function(e){var t=new h.Margin(0);if(e){var i=e.margin;i||(i+=e.marginTop||"0",i+=" "+e.marginRight||0,i+=" "+e.marginBottom||0,i+=" "+e.marginLeft||0),t.assign(i)}return t},e._defaultPageMargin=10,e._autoFormatWidthAddStock=1,e}();t.GanttExportCalculator=w},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Margins=void 0;var n=i(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.empty=function(){return new t(0,0,0,0)},t.prototype.clone=function(){return new t(this.left,this.right,this.top,this.bottom)},t}(i(128).Offsets);t.Margins=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Offsets=void 0;var n=function(){function e(e,t,i,n){this.left=e,this.right=t,this.top=i,this.bottom=n}return e.empty=function(){return new e(0,0,0,0)},Object.defineProperty(e.prototype,"horizontal",{get:function(){return this.left+this.right},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"vertical",{get:function(){return this.top+this.bottom},enumerable:!1,configurable:!0}),e.fromNumber=function(t){return new e(t,t,t,t)},e.fromOffsets=function(t){return new e(t.left,t.right,t.top,t.bottom)},e.fromSide=function(t,i){return new e(t,t,i,i)},e.prototype.normalize=function(){return this.left=Math.max(0,this.left),this.right=Math.max(0,this.right),this.top=Math.max(0,this.top),this.bottom=Math.max(0,this.bottom),this},e.prototype.toString=function(){return JSON.stringify(this)},e.prototype.isEmpty=function(){return 0===this.left&&0===this.right&&0===this.top&&0===this.bottom},e.prototype.offset=function(e){return this.left+=e.left,this.right+=e.right,this.top+=e.top,this.bottom+=e.bottom,this},e.prototype.multiply=function(e,t,i,n){switch(arguments.length){case 1:return this.left*=e,this.right*=e,this.top*=e,this.bottom*=e,this;case 2:return this.left*=e,this.right*=e,this.top*=t,this.bottom*=t,this;case 4:return this.left*=e,this.right*=t,this.top*=i,this.bottom*=n,this}return this},e.prototype.clone=function(){return new e(this.left,this.right,this.top,this.bottom)},e.prototype.copyFrom=function(e){this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom},e.prototype.equals=function(e){return this.top===e.top&&this.bottom===e.bottom&&this.right===e.right&&this.left===e.left},e.prototype.applyConverter=function(e){return this.left=e(this.left),this.right=e(this.right),this.top=e(this.top),this.bottom=e(this.bottom),this},e}();t.Offsets=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScaleCalculator=t.ScaleItemInfo=void 0;var n=i(5),o=i(12),r=i(15),a=i(4),s=function(e,t,i,n){this.start=e,this.end=t,this.position=i,this.size=n};t.ScaleItemInfo=s;var l=function(){function e(){this.firstDayOfWeek=0}return e.prototype.setSettings=function(e,t,i,n){void 0===n&&(n=0),this.range=e,this.viewType=t,this.tickSize=i,this.firstDayOfWeek=n,this.reset()},e.prototype.setViewType=function(e){this.viewType=e,this.reset()},e.prototype.reset=function(){delete this._bottomScaleItems,delete this._topScaleItems,delete this._scaleWidth},e.prototype.getScaleIndexByPos=function(e,t){null!=t||(t=this.viewType);var i=t===this.viewType?this.bottomScaleItems:this.topScaleItems,n=-1;if(i.findIndex)n=i.findIndex((function(t){return e>=t.position.x&&e<=t.position.x+t.size.width}));else{var o=i.filter((function(t){return e>=t.position.x&&e<=t.position.x+t.size.width}))[0];o&&(n=i.indexOf(o))}return n},e.prototype.getScaleBorderPosition=function(e,t){var i=this.getScaleItems(t)[e];if(i)return i.position.x+i.size.width},e.prototype.getScaleItems=function(e){return e===this.viewType?this.bottomScaleItems:e===r.DateUtils.ViewTypeToScaleMap[this.viewType]?this.topScaleItems:null},e.prototype.getScaleItem=function(e,t){return this.getScaleItems(t)[e]},e.prototype.getScaleItemAdjustedStart=function(e,t){var i=this.getScaleItems(t)[e];if(e>0)return i.start;var n=t!==this.viewType,o=n?r.DateUtils.adjustStartDateByViewType(this.range.start,this.viewType,this.firstDayOfWeek):this.getAdjustedBottomScaleItemStart(i.start,t,this.firstDayOfWeek);if(n&&t===a.ViewType.Months){var s=this.range.start;o=new Date(s.getFullYear(),s.getMonth(),1)}if(n&&t===a.ViewType.FiveYears){var l=5*Math.trunc(o.getFullYear()/5);o=new Date(l,o.getMonth(),o.getDate())}return o},Object.defineProperty(e.prototype,"topScaleItems",{get:function(){var e;return null!==(e=this._topScaleItems)&&void 0!==e||(this._topScaleItems=this.calculateTopScale(r.DateUtils.ViewTypeToScaleMap[this.viewType])),this._topScaleItems},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottomScaleItems",{get:function(){var e;return null!==(e=this._bottomScaleItems)&&void 0!==e||(this._bottomScaleItems=this.calculateBottomScale(this.viewType)),this._bottomScaleItems},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleWidth",{get:function(){var e;return null!==(e=this._scaleWidth)&&void 0!==e||(this._scaleWidth=this.calculateScaleWidth()),this._scaleWidth},enumerable:!1,configurable:!0}),e.prototype.getFirstScaleIndexForRender=function(e){var t=this.getScaleIndexByPos(e);return Math.max(t-10,0)},e.prototype.getLastScaleIndexForRender=function(e){var t=this.getScaleIndexByPos(e);return-1===t?this.bottomScaleItems.length-1:Math.min(t+10,this.bottomScaleItems.length-1)},e.prototype.getTopScaleIndexByBottomIndex=function(e){var t=this.bottomScaleItems[e];return t?this.getScaleIndexByPos(t.position.x,r.DateUtils.ViewTypeToScaleMap[this.viewType]):-1},e.prototype.calculateBottomScale=function(e){for(var t=new Array,i=this.tickSize.width,r=this.range.start,a=0;r.getTime()<this.range.end.getTime();){var l=this.getNextScaleDate(r,e),d=r.getTime()===this.range.start.getTime(),u=l.getTime()>=this.range.end.getTime(),c=d||u?this.getRangeTickCount(r,l)*i:i;t.push(new s(r,l,new n.Point(a,void 0),new o.Size(c,0))),r=l,a+=c}return t},e.prototype.calculateTopScale=function(e){for(var t=new Array,i=this.range.end.getTime(),r=this.range.start,a=0,l=0;r.getTime()<i;)for(var d=this.getNextScaleDate(r,e),u=d.getTime(),c=l;c<this.bottomScaleItems.length;c++){var h=this.bottomScaleItems[c],p=h.start.getTime(),f=h.end.getTime();if(u>=p&&u<=f){var g=(u-p)/(f-p)*h.size.width+h.position.x;t.push(new s(r,d,new n.Point(a,void 0),new o.Size(g-a,0))),l=c,a=g,r=d;break}}return t},e.prototype.getDateInScale=function(e){for(var t=0;t<this.bottomScaleItems.length;t++){var i=this.bottomScaleItems[t],n=i.size.width,o=i.position.x;if(e>=o&&e<=o+n){var r=i.start.getTime(),a=(e-o)/n*(i.end.getTime()-r);return new Date(i.start.getTime()+a)}}return new Date(this.range.end)},e.prototype.getNextScaleDate=function(e,t){var i;switch(t){case a.ViewType.TenMinutes:i=this.getNextDateInTenMinutesScale(e);break;case a.ViewType.Hours:i=this.getNextDateInHoursScale(e);break;case a.ViewType.SixHours:i=this.getNextDateInSixHoursScale(e);break;case a.ViewType.Days:i=this.getNextDateInDaysScale(e);break;case a.ViewType.Weeks:i=this.getNextDateInWeeksScale(e,this.firstDayOfWeek);break;case a.ViewType.Months:i=this.getNextDateInMonthsScale(e);break;case a.ViewType.Quarter:i=this.getNextDateInQuartersScale(e);break;case a.ViewType.Years:i=this.getNextDateInYearsScale(e);break;case a.ViewType.FiveYears:i=this.getNextDateInFiveYearsScale(e)}return i.getTime()>this.range.end.getTime()&&(i=this.range.end),i},e.prototype.getNextTimeBySpan=function(e,t){return(Math.trunc(e/t)+1)*t},e.prototype.getNextDateInTenMinutesScale=function(e){var t=this.getNextTimeBySpan(e.getMinutes(),10);return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),t)},e.prototype.getNextDateInHoursScale=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours()+1)},e.prototype.getNextDateInSixHoursScale=function(e){var t=this.getNextTimeBySpan(e.getHours(),6);return new Date(e.getFullYear(),e.getMonth(),e.getDate(),t)},e.prototype.getNextDateInDaysScale=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+1)},e.prototype.getNextDateInWeeksScale=function(e,t){return void 0===t&&(t=0),new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay()+t+7)},e.prototype.getNextDateInMonthsScale=function(e){return new Date(e.getFullYear(),e.getMonth()+1,1)},e.prototype.getNextDateInQuartersScale=function(e){var t=this.getNextTimeBySpan(e.getMonth(),3);return new Date(e.getFullYear(),t,1)},e.prototype.getNextDateInYearsScale=function(e){return new Date(e.getFullYear()+1,0,1)},e.prototype.getNextDateInFiveYearsScale=function(e){var t=this.getNextTimeBySpan(e.getFullYear(),5);return new Date(t,0,1)},e.prototype.getAdjustedBottomScaleItemStart=function(e,t,i){switch(void 0===i&&(i=0),t){case a.ViewType.TenMinutes:return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),10*Math.floor(e.getMinutes()/10));case a.ViewType.SixHours:return new Date(e.getFullYear(),e.getMonth(),e.getDate(),6*Math.floor(e.getHours()/6));case a.ViewType.Hours:return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours());case a.ViewType.Days:return new Date(e.getFullYear(),e.getMonth(),e.getDate());case a.ViewType.Weeks:return new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay()+i);case a.ViewType.Months:return new Date(e.getFullYear(),e.getMonth(),1);case a.ViewType.Quarter:return new Date(e.getFullYear(),3*Math.floor(e.getMonth()/3),1);case a.ViewType.Years:return new Date(e.getFullYear(),0,1);default:return new Date}},e.prototype.calculateScaleWidth=function(){return this.bottomScaleItems.reduce((function(e,t){return e+t.size.width}),0)},e.prototype.getScaleItemColSpan=function(e){return e.valueOf()===this.viewType.valueOf()?1:this.viewType===a.ViewType.TenMinutes?6:this.viewType===a.ViewType.Hours?24:this.viewType===a.ViewType.SixHours?4:this.viewType===a.ViewType.Days?7:this.viewType===a.ViewType.Weeks?4.29:this.viewType===a.ViewType.Months?12:this.viewType===a.ViewType.Quarter?4:this.viewType===a.ViewType.Years?5:1},e.prototype.getRangeTickCount=function(e,t){return r.DateUtils.getRangeTickCount(e,t,this.viewType)},e}();t.ScaleCalculator=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaExportHelper=void 0;var n=i(3),o=i(19),r=i(25),a=i(15),s=i(17),l=i(37),d=function(){function e(e,t){this._owner=e,this._props=t}return Object.defineProperty(e.prototype,"customRangeLeftOffset",{get:function(){var e;return null!==(e=this._customRangeLeftOffset)&&void 0!==e||(this._customRangeLeftOffset=this.layoutCalculator.getWidthByDateRange(this.startDate,this.ownerStartDate)),this._customRangeLeftOffset},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseCellSize",{get:function(){return this._owner.tickSize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"objectsLeftDelta",{get:function(){return this.renderedScaleLeft},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"objectsTopDelta",{get:function(){if(!this.hasTasks)return 0;var e=this.visibleTaskIndices[0];return this.getCellTop(e)+this.getTaskCellOffsetTop(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offsetLeft",{get:function(){var e;return null!==(e=this._offsetLeft)&&void 0!==e||(this._offsetLeft=Math.max(this.visibleLeft-this.renderedScaleLeft,0)),this._offsetLeft},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offsetTop",{get:function(){var e;return null!==(e=this._offsetTop)&&void 0!==e||(this._offsetTop=this.getOffsetTop()),this._offsetTop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scales",{get:function(){var e=this.settings.viewType;return[a.DateUtils.ViewTypeToScaleMap[e],e]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleRanges",{get:function(){var e;return null!==(e=this._scaleRanges)&&void 0!==e||(this._scaleRanges=this.layoutCalculator.getScaleRangesInArea(this.scaleLeft,this.scaleRight)),this._scaleRanges},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleBottomStartIndex",{get:function(){return this.scaleRanges[1][0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleBottomEndIndex",{get:function(){return this.scaleRanges[1][1]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleTopStartIndex",{get:function(){return this.scaleRanges[0][0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleTopEndIndex",{get:function(){return this.scaleRanges[0][1]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleTopWidths",{get:function(){var e;return null!==(e=this._scaleTopWidths)&&void 0!==e||(this._scaleTopWidths=this.getScaleTopWidths()),this._scaleTopWidths},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleBottomWidths",{get:function(){var e;return null!==(e=this._scaleBottomWidths)&&void 0!==e||(this._scaleBottomWidths=this.getScaleBottomWidths()),this._scaleBottomWidths},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headerRowHeight",{get:function(){if(!this._headerRowHeight){var e=this.scaleElements[0].filter((function(e){return!!e}))[0];this._headerRowHeight=null==e?void 0:e.offsetHeight}return this._headerRowHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visibleTaskIndices",{get:function(){var e;return null!==(e=this._visibleTaskIndices)&&void 0!==e||(this._visibleTaskIndices=this.getTaskIndices()),this._visibleTaskIndices},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseCellHeight",{get:function(){return this.hasTasks?this.baseCellSize.height:this.taskAreaHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaHeight",{get:function(){return this.hasTasks?this.visibleTaskIndices.length*this.baseCellHeight:this._owner.renderHelper.taskArea.offsetHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleTableStyle",{get:function(){var e;return null!==(e=this._scaleTableStyle)&&void 0!==e||(this._scaleTableStyle=this.getScaleTableStyle()),this._scaleTableStyle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"chartMainTableStyle",{get:function(){var e;return null!==(e=this._chartMainTableStyle)&&void 0!==e||(this._chartMainTableStyle=this.getChartMainTableStyle()),this._chartMainTableStyle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentRowBackColor",{get:function(){var e;return null!==(e=this._parentRowBackColor)&&void 0!==e||(this._parentRowBackColor=this.getParentBackColor()),this._parentRowBackColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arrowWidth",{get:function(){var e;return null!==(e=this._arrowWidth)&&void 0!==e||(this._arrowWidth=this.getArrowWidth()),this._arrowWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dependencyColor",{get:function(){var e;return null!==(e=this._dependencyColor)&&void 0!==e||(this._dependencyColor=this.getDependencyColor()),this._dependencyColor},enumerable:!1,configurable:!0}),e.prototype.getTaskElementBackColor=function(e,t){var i=this.getTaskElementStyle(e,t);return null==i?void 0:i.backgroundColor},e.prototype.getTaskElementStyle=function(e,t){var i=this.getTaskWrapper(e);return this.getElementStyle(i.getElementsByClassName(t)[0])},Object.defineProperty(e.prototype,"hasTasks",{get:function(){return this.visibleTaskIndices.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visibleLeft",{get:function(){var e;return null!==(e=this._visibleLeft)&&void 0!==e||(this._visibleLeft=this.isVisibleMode?this.container.scrollLeft:0),this._visibleLeft},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visibleTop",{get:function(){var e;return null!==(e=this._visibleTop)&&void 0!==e||(this._visibleTop=this.isVisibleMode?this.container.scrollTop:0),this._visibleTop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visibleRight",{get:function(){var e;return null!==(e=this._visibleRight)&&void 0!==e||(this._visibleRight=this.getVisibleRight()),this._visibleRight},enumerable:!1,configurable:!0}),e.prototype.getVisibleRight=function(){var e=this.container.getElement().offsetWidth;return this.visibleLeft+e},Object.defineProperty(e.prototype,"visibleBottom",{get:function(){var e;return null!==(e=this._visibleBottom)&&void 0!==e||(this._visibleBottom=this.getVisibleBottom()),this._visibleBottom},enumerable:!1,configurable:!0}),e.prototype.getVisibleBottom=function(){return this.isVisibleMode?this.visibleTop+this.container.getHeight():this.visibleTaskIndices.length*this.baseCellSize.height},Object.defineProperty(e.prototype,"scaleLeft",{get:function(){var e;return null!==(e=this._scaleLeft)&&void 0!==e||(this._scaleLeft=this.isVisibleMode?this.visibleLeft:this.getPosByDate(this.startDate)),this._scaleLeft},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleRight",{get:function(){var e;return null!==(e=this._scaleRight)&&void 0!==e||(this._scaleRight=this.isVisibleMode?this.visibleRight:this.getPosByDate(this.endDate)-1),this._scaleRight},enumerable:!1,configurable:!0}),e.prototype.getScaleTopWidths=function(){var e=this.getScaleWidths(this.scaleTopStartIndex,this.scaleTopEndIndex,this.scales[0]),t=this.layoutCalculator,i=t.getScaleItemInfo(this.scaleBottomStartIndex,this.scales[1]),n=t.getScaleItemInfo(this.scaleTopStartIndex,this.scales[0]),o=Math.max(i.position.x-n.position.x,0);e[this.scaleTopStartIndex]-=o;var r=t.getScaleItemInfo(this.scaleTopEndIndex,this.scales[0]),a=t.getScaleItemInfo(this.scaleBottomEndIndex,this.scales[1]);return o=Math.max(r.position.x+r.size.width-a.position.x-a.size.width,0),e[this.scaleTopEndIndex]-=o,e},e.prototype.getScaleBottomWidths=function(){return this.getScaleWidths(this.scaleBottomStartIndex,this.scaleBottomEndIndex,this.scales[1])},e.prototype.getScaleWidths=function(e,t,i){for(var n=new Array,o=e;o<=t;o++)n[o]=this.layoutCalculator.getScaleItemInfo(o,i).size.width;return n},e.prototype.getOffsetTop=function(){return this.isVisibleMode&&this.hasTasks?this.getTaskCellOffsetTop(this.visibleTaskIndices[0]):0},Object.defineProperty(e.prototype,"renderedScaleLeft",{get:function(){return this.getCellLeft(this.scaleBottomStartIndex)},enumerable:!1,configurable:!0}),e.prototype.getTaskCellOffsetTop=function(e){var t=this.getCellTop(e);return Math.max(this.visibleTop-t,0)},e.prototype.getCellTop=function(e){return this.layoutCalculator.getGridBorderPosition(e-1,!1).y},e.prototype.getCellLeft=function(e){return this.layoutCalculator.getScaleItemInfo(e,this.scales[1]).position.x},e.prototype.getTaskIndices=function(){var e,t;return this.dataMode===l.DataExportMode.all||this.exportRange?this._owner.getAllVisibleTaskIndices(null===(e=this.exportRange)||void 0===e?void 0:e.startIndex,null===(t=this.exportRange)||void 0===t?void 0:t.endIndex):this.getVisibleTaskIndices()},e.prototype.getVisibleTaskIndices=function(){var e=this,t=[];return this.taskElements.forEach((function(i,o){if(i){var r=n.DomUtils.pxToInt(i.style.top),a=r+i.offsetHeight,s=r>=e.visibleTop&&r<=e.visibleBottom,l=a>=e.visibleTop&&a<=e.visibleBottom;(s||l)&&t.push(o)}})),t},Object.defineProperty(e.prototype,"scaleElements",{get:function(){return this._owner.renderHelper.scaleElements.slice()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleBorders",{get:function(){return this._owner.renderHelper.scaleBorders.slice()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hlRowElements",{get:function(){return this._owner.renderHelper.hlRowElements.filter((function(e){return!!e}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectionElements",{get:function(){return this._owner.renderHelper.selectionElements.filter((function(e){return!!e}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskElements",{get:function(){return this._owner.renderHelper.taskElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"connectorLines",{get:function(){var e,t=this;return null!==(e=this._connectorLines)&&void 0!==e||(this._connectorLines=this._owner.renderHelper.allConnectorLines.filter((function(e){return t.isLineVisible(e)}))),this._connectorLines},enumerable:!1,configurable:!0}),e.prototype.isLineVisible=function(e){if(this.dataMode===l.DataExportMode.all)return!0;var t=e.attr["dependency-id"];return this.visibleDependencyKeys.indexOf(t)>-1},Object.defineProperty(e.prototype,"visibleDependencyKeys",{get:function(){var e;return null!==(e=this._visibleDependencyKeys)&&void 0!==e||(this._visibleDependencyKeys=this._owner.getVisibleDependencyKeysByTaskRange(this.visibleTaskIndices)),this._visibleDependencyKeys},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resourcesElements",{get:function(){var e,t=this;return null!==(e=this._resourcesElements)&&void 0!==e||(this._resourcesElements=this.visibleTaskIndices.map((function(e){return t._owner.renderHelper.resourcesElements[e]})).filter((function(e){return e&&e.parentElement}))),this._resourcesElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stripLinesElements",{get:function(){if(!this._stripLinesElements){var e=this._owner.renderHelper.stripLinesMap.filter((function(e){return!!e})).map((function(e){return e}));this._stripLinesElements=e.map((function(e){return e}))}return this._stripLinesElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"noWorkingIntervalsElements",{get:function(){if(!this._noWorkingIntervalsElements){this._noWorkingIntervalsElements=[];var e=this._owner.renderHelper.noWorkingIntervalsToElementsMap;for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&this._noWorkingIntervalsElements.push(e[t])}return this._noWorkingIntervalsElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskArea",{get:function(){return this._owner.renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"settings",{get:function(){return this._owner.settings},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataMode",{get:function(){var e;return null===(e=this._props)||void 0===e?void 0:e.exportDataMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"exportRange",{get:function(){var e;return null===(e=this._props)||void 0===e?void 0:e.dateRange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isVisibleMode",{get:function(){return this.dataMode===l.DataExportMode.visible&&!this.exportRange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownerStartDate",{get:function(){return this._owner.range.start},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownerEndDate",{get:function(){return this._owner.range.end},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startDate",{get:function(){var e,t,i,n;if((null===(e=this.exportRange)||void 0===e?void 0:e.startDate)&&(null===(t=this.exportRange)||void 0===t?void 0:t.endDate)){var o=Math.min(null===(i=this.exportRange)||void 0===i?void 0:i.startDate.getTime(),null===(n=this.exportRange)||void 0===n?void 0:n.endDate.getTime());return new Date(o)}return this.ownerStartDate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endDate",{get:function(){var e,t,i,n;if((null===(e=this.exportRange)||void 0===e?void 0:e.startDate)&&(null===(t=this.exportRange)||void 0===t?void 0:t.endDate)){var o=Math.max(null===(i=this.exportRange)||void 0===i?void 0:i.startDate.getTime(),null===(n=this.exportRange)||void 0===n?void 0:n.endDate.getTime());return new Date(o)}return this.ownerEndDate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasCustomRangeOutOfRender",{get:function(){return this.startDate.getTime()!==this.ownerStartDate.getTime()||this.endDate.getTime()!==this.ownerEndDate.getTime()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layoutCalculator",{get:function(){if(!this._layoutCalculator){var e=this._owner.renderHelper.gridLayoutCalculator;this.hasCustomRangeOutOfRender?(this._layoutCalculator=new r.GridLayoutCalculator,this._layoutCalculator.setSettings(e.visibleTaskAreaSize,e.tickSize,e.elementSizeValues,new o.DateRange(this.startDate,this.endDate),e.viewModel,e.viewType,e.scrollBarHeight,this._owner.settings.firstDayOfWeek)):this._layoutCalculator=e}return this._layoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"container",{get:function(){return this._owner.renderHelper.taskAreaContainer},enumerable:!1,configurable:!0}),e.prototype.getPosByDate=function(e){return this.layoutCalculator.getPosByDate(e)},e.prototype.getScaleTableStyle=function(){var e={},t=this.scaleElements[0].filter((function(e){return!!e}))[0],i=this.getElementStyle(t);return e.backgroundColor=this.findElementBackColor(t),e.borderColor=this.getChartTableBorderColor(),e.verticalAlign="middle",e.textAlign="center",e.fontSize=i.fontSize,e.fontFamily=i.fontFamily,e.fontWeight=i.fontWeight,e.fontStyle=i.fontStyle,e.color=i.color,e},e.prototype.getChartMainTableStyle=function(){var e={};return e.backgroundColor=this.findElementBackColor(this.taskArea),e.borderColor=this.getChartTableBorderColor(),e},e.prototype.findElementBackColor=function(e){if(!e)return null;for(var t=e,i=new s.Color("transparent");0===i.opacity&&t;){var n=this.getElementStyle(t);i.assign(n.backgroundColor),t=t.parentElement}return i},e.prototype.getChartTableBorderColor=function(){var e=this.getElementStyle(this.scaleBorders[0].filter((function(e){return!!e}))[0]);return null==e?void 0:e.borderColor},e.prototype.getParentBackColor=function(){var e=this.getElementStyle(this.hlRowElements[0]);return null==e?void 0:e.backgroundColor},e.prototype.getArrowWidth=function(){var e=this.getDependencyLineStyle(r.GridLayoutCalculator.arrowClassName),t=e.borderWidth||e.borderLeftWidth||e.borderRightWidth||e.borderTopWidth||e.borderBottomWidth;return e&&n.DomUtils.pxToInt(t)},e.prototype.getDependencyColor=function(){var e=this.getDependencyLineStyle(r.GridLayoutCalculator.CLASSNAMES.CONNECTOR_HORIZONTAL);return null==e?void 0:e.borderColor},e.prototype.getDependencyLineStyle=function(e){return this.getElementStyle(this.taskArea.getElementsByClassName(e)[0])},e.prototype.getElementStyle=function(e){return e&&getComputedStyle(e)},e.prototype.getTaskWrapper=function(e){return this.isTaskTemplateMode?this._owner.renderHelper.fakeTaskWrapper:(this.taskElements[e]||this._owner.renderHelper.createDefaultTaskElement(e),this.taskElements[e])},Object.defineProperty(e.prototype,"isTaskTemplateMode",{get:function(){return!!this._owner.settings.taskContentTemplate},enumerable:!1,configurable:!0}),e}();t.TaskAreaExportHelper=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GanttPdfExportProps=void 0;var n=i(12),o=i(1),r=i(36),a=i(132),s=i(133),l=i(37),d=function(){function e(e){this.landscape=!1,this.margins=null,this.exportMode=l.ExportMode.all,this.exportDataMode=l.DataExportMode.visible,e&&this.assign(e)}return e.prototype.assign=function(e){if(e){if((0,o.isDefined)(e.pdfDocument)&&(this.pdfDoc=e.pdfDocument),(0,o.isDefined)(e.pdfDoc)&&(this.pdfDoc=e.pdfDoc),this.docCreateMethod=e.docCreateMethod,(0,o.isDefined)(e.fileName)&&(this.fileName=e.fileName),this.landscape=!!e.landscape,(0,o.isDefined)(e.margins)&&(this.margins=new r.Margin(e.margins)),(0,o.isDefined)(e.format)){var t=e.format;if("string"==typeof t)this.format=t;else{var i=parseInt(t.width),d=parseInt(t.height);this.pageSize=new n.Size(i,d)}}else if((0,o.isDefined)(e.pageSize)){var u=e.pageSize;this.pageSize=u instanceof n.Size?u.clone():new n.Size(u.width,u.height)}if((0,o.isDefined)(e.exportMode)&&(this.exportMode=this.getEnumValue(l.ExportMode,e.exportMode)),(0,o.isDefined)(e.dateRange)){var c=e.dateRange;"number"==typeof c||"string"==typeof c?this.exportDataMode=this.getEnumValue(l.DataExportMode,c):this.dateRange=new a.PdfDataRange(c)}(0,o.isDefined)(e.font)&&(this.font=new s.PdfCustomFontSettings(e.font))}},e.prototype.getEnumValue=function(e,t){if(!(0,o.isDefined)(e[t]))return null;var i=parseInt(t);return isNaN(i)?e[t]:i},e.autoFormatKey="auto",e}();t.GanttPdfExportProps=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PdfDataRange=void 0;var n=i(1),o=function(){function e(e,t,i,n){var o=!e||e instanceof Date?{startDate:e,endDate:t,startIndex:i,endIndex:n}:e;o&&this.assign(o)}return e.prototype.assign=function(e){(0,n.isDefined)(e.startDate)&&(this.startDate=e.startDate instanceof Date?e.startDate:new Date(e.startDate)),(0,n.isDefined)(e.endDate)&&(this.endDate=e.endDate instanceof Date?e.endDate:new Date(e.endDate)),(0,n.isDefined)(e.startIndex)&&(this.startIndex=parseInt(e.startIndex)),(0,n.isDefined)(e.endIndex)&&(this.endIndex=parseInt(e.endIndex))},e}();t.PdfDataRange=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PdfCustomFontSettings=void 0;var n=i(1),o=function(){function e(e){this.style="normal",e&&this.assign(e)}return e.prototype.assign=function(e){(0,n.isDefined)(e.fontObject)&&(this.fontObject=e.fontObject),(0,n.isDefined)(e.name)&&(this.name=e.name),(0,n.isDefined)(e.style)&&(this.style=e.style),(0,n.isDefined)(e.weight)&&(this.weight=e.weight)},e.prototype.applyToDoc=function(e){try{if(e&&this.fontObject&&this.name){var t=this.name+"-"+this.style+".ttf";e.addFileToVFS(t,this.fontObject),e.addFont(t,this.name,this.style,this.weight),e.setFont(this.name)}}catch(e){}},e}();t.PdfCustomFontSettings=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PdfGanttPaginator=void 0;var n=i(5),o=i(12),r=i(60),a=i(44),s=i(61),l=i(63),d=i(27),u=i(45),c=i(135),h=function(e,t,i,n,o){this.pageVerIndex=t,this.pageHorIndex=e,this.cellRowIndexOnPage=i,this.cellColIndexOnPage=n,this.cell=o},p=function(){function e(e,t,i,n){this.pageIndex=e,this.globalCellIndex=t,this.pageOffset=i,this.cutSize=n}return Object.defineProperty(e.prototype,"isCutted",{get:function(){return this.cutSize>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cellIndexOnPage",{get:function(){return this.globalCellIndex-this.pageOffset},enumerable:!1,configurable:!0}),e}(),f=function(){function e(e,t,i){this._pdfDoc=e,this._props=t,this._globalInfo=i}return e.prototype.getPages=function(){return delete this._pages,this._paginateTables(),this._paginateObjects(),this.pageMatrixToArray},e.prototype._paginateTables=function(){this._paginateTable(d.PdfPageTableNames.treeListHeader),this._paginateTable(d.PdfPageTableNames.treeListMain),this._paginateTable(d.PdfPageTableNames.chartScaleBottom),this._paginateTable(d.PdfPageTableNames.chartScaleTop),this._paginateTable(d.PdfPageTableNames.chartMain)},e.prototype._paginateObjects=function(){this._paginateTasks(),this._paginateDependencies(),this._paginateResources(),this._paginateTimeMarkers()},Object.defineProperty(e.prototype,"pageMatrixToArray",{get:function(){var e,t=new Array;return null===(e=this._pages)||void 0===e||e.forEach((function(e){t=t.concat(e)})),t},enumerable:!1,configurable:!0}),e.prototype._paginateTasks=function(){var e,t,i=this;null===(t=null===(e=this._globalInfo.objects)||void 0===e?void 0:e.tasks)||void 0===t||t.forEach((function(e){return i._paginateTask(e)}))},e.prototype._paginateDependencies=function(){var e,t,i=this;null===(t=null===(e=this._globalInfo.objects)||void 0===e?void 0:e.dependencies)||void 0===t||t.forEach((function(e){e.arrowInfo?i._paginateArrow(e):i._paginateDependencyLine(e)}))},e.prototype._paginateResources=function(){var e,t,i=this;null===(t=null===(e=this._globalInfo.objects)||void 0===e?void 0:e.resources)||void 0===t||t.forEach((function(e){return i._paginateResource(e)}))},e.prototype._paginateTimeMarkers=function(){var e,t,i=this;null===(t=null===(e=this._globalInfo.objects)||void 0===e?void 0:e.timeMarkers)||void 0===t||t.forEach((function(e){return i._paginateTimeMarker(e)}))},e.prototype._paginateTable=function(e){var t,i=null===(t=this._globalInfo)||void 0===t?void 0:t.tables[e];if(i){for(var n=this._getTableStart(i),o=this._preparePagesNavigationMatrixForTable(n,i),r=o.length,a=0;a<r;a++)for(var s=o[a].length,l=0;l<s;l++){var d=o[a][l],u=this._getPage(d.pageVerIndex,d.pageHorIndex,!0),c=d.pageHorIndex===n.hIndex?n.pageX:this.pageLeft,h=d.pageVerIndex===n.vIndex?n.pageY:this.pageTop;this._setTablePositionOnPage(u,e,c,h),this._addCellToPage(u,e,d)}this._updateTableSizeOnPages(e)}},e.prototype._paginateTask=function(e){for(var t=this._getTaskPagination(e),i=this._getTaskPagination(e,!0),n=0;n<i.length;n++)for(var o=0;o<t.length;o++){var r=new a.PdfTaskInfo;r.assign(e),this._offsetPoints(r.sidePoints,t[o].offset,i[n].offset),this._addTaskToPage(i[n].pageIndex,t[o].pageIndex,r)}},e.prototype._paginateArrow=function(e){var t=this._getPointPageInfo(e.points[0]),i=new r.PdfDependencyLineInfo;i.assign(e),this._offsetPoints(i.points,t.offsetX,t.offsetY),this._addDependencyToPage(t.pageVerIndex,t.pageHorIndex,i)},e.prototype._paginateDependencyLine=function(e){for(var t=this._getDependencyLinePagination(e),i=this._getDependencyLinePagination(e,!0),n=0;n<i.length;n++)for(var o=0;o<t.length;o++){var a=new r.PdfDependencyLineInfo;a.assign(e),this._offsetPoints(a.points,t[o].offset,i[n].offset),this._addDependencyToPage(i[n].pageIndex,t[o].pageIndex,a)}},e.prototype._paginateResource=function(e){var t=this._getPointPageInfo(new n.Point(e.x,e.y)),i=new s.PdfTaskResourcesInfo;i.assign(e),i.x-=t.offsetX,i.y-=t.offsetY,this._addResourceToPage(t.pageVerIndex,t.pageHorIndex,i)},e.prototype._paginateTimeMarker=function(e){for(var t=this._getTimeMarkerPagination(e),i=this._getTimeMarkerPagination(e,!0),n=0;n<i.length;n++)for(var o=0;o<t.length;o++){var r=new l.PdfTimeMarkerInfo;r.assign(e),r.start.x-=t[o].offset,r.start.y-=i[n].offset,this._addTimeMarkerToPage(i[n].pageIndex,t[o].pageIndex,r)}},e.prototype._getTableStart=function(e){var t=new c.PageNavigation(this.pageBorders,0,0,0,0,this.correctedPageBottoms);return t.offset(e.position.x,e.position.y),t},e.prototype._getPage=function(e,t,i){return i&&this._extendPageMatrixIfRequired(e,t),this._pages[e]&&this._pages[e][t]},e.prototype._getTableOrCreate=function(e,t){var i,n;return null!==(i=(n=e.tables)[t])&&void 0!==i||(n[t]=this._createTable(t)),e.tables[t]},e.prototype._preparePagesNavigationMatrixForTable=function(e,t){for(var i=new Array,n=this._getTableNavigationVector(e,t,!0),o=n.length,r=0;r<o;r++){for(var a=new Array,s=n[r],l=this._getTableNavigationVector(e,t,!1,s.globalCellIndex),u=l.length,c=0;c<u;c++){var p=l[c],f=t.name===d.PdfPageTableNames.chartScaleTop,g=this._prepareCuttedCell(t.cells[s.globalCellIndex][p.globalCellIndex],p,s,f),m=new h(p.pageIndex,s.pageIndex,s.cellIndexOnPage,p.cellIndexOnPage,g);a.push(m)}i.push(a)}return i},e.prototype._setTablePositionOnPage=function(e,t,i,o){this._getTableOrCreate(e,t).position=new n.Point(i,o)},e.prototype._extendPageMatrixIfRequired=function(e,t){var i;null!==(i=this._pages)&&void 0!==i||(this._pages=new Array);for(var n=this._pages.length;n<=e;n++)this._pages.push(new Array);var o=this._pages[e];for(n=o.length;n<=t;n++)o.push(this._createPage())},e.prototype._getTableAndExtendIfRequired=function(e,t,i,n){for(var o=this._getTableOrCreate(e,t),r=o.cells,a=r.length;a<=i;a++)r.push(new Array);var s=r[i];for(a=s.length;a<=n;a++)s.push(new u.CellDef);return o},e.prototype._createPage=function(){return{objects:{tasks:null,dependencies:null,resources:null,timeMarkers:null},tables:{}}},e.prototype._createTable=function(e){var t,i=null===(t=this._globalInfo)||void 0===t?void 0:t.tables[e];return{name:e,size:null,position:null,style:i.style,baseCellSize:i.baseCellSize,cells:new Array,hideRowLines:i.hideRowLines}},e.prototype._addCellToPage=function(e,t,i){var n=i.cellRowIndexOnPage,o=i.cellColIndexOnPage;this._getTableAndExtendIfRequired(e,t,n,o).cells[n][o].assign(i.cell)},e.prototype._updateTableSizeOnPages=function(e){for(var t,i=null===(t=this._pages[0])||void 0===t?void 0:t.length,n=this._pages.length,o=0;o<n;o++)for(var r=0;r<i;r++)this._updateTableSizeOnPage(this._pages[o][r],e)},e.prototype._updateTableSizeOnPage=function(e,t){var i,n=this,r=null==e?void 0:e.tables[t];if(r){var a=r.cells.length*r.baseCellSize.height||0,s=(null===(i=r.cells[0])||void 0===i?void 0:i.reduce((function(e,t,i){return e+n._getCellWidth(r,0,i)}),0))||0;r.size=new o.Size(s,a)}},e.prototype._getTableNavigationVector=function(e,t,i,n){var o,r;void 0===i&&(i=!1),void 0===n&&(n=0);for(var a=new Array,s=c.PageNavigation.createFrom(e),l=i?null===(o=t.cells)||void 0===o?void 0:o.length:null===(r=t.cells[n])||void 0===r?void 0:r.length,d=0;d<l;d++){var u=i?t.baseCellSize.height:this._getCellWidth(t,n,d);this._placeCell(a,s,d,u,i)}return a},e.prototype._placeCell=function(e,t,i,n,o){var r,a,s=o?t.vIndex:t.hIndex,l=null!==(a=null===(r=e[e.length-1])||void 0===r?void 0:r.pageOffset)&&void 0!==a?a:i,d=n,u=t.getSpaceToBorder(o);t.offsetOneD(n,o);var c=o?t.vIndex:t.hIndex;if(!o)for(var h=s;h<c;h++){var f=new p(h,i,l,u);l=i,e.push(f),d-=u,u=t.getPageSize(o)}c!==s&&(l=i);var g=new p(c,i,l,d!==n?d:null);e.push(g)},e.prototype._prepareCuttedCell=function(e,t,i,n){var o=new u.CellDef(e);if(t.isCutted){var r=t.cutSize;if(!n){var a=o.content,s=e.styles,l=r-(s&&s.cellPadding.left||0)-(s&&s.cellPadding.right||0),d=this._pdfDoc.splitTextToSize(a,l);e.content=a.replace(d[0],""),o.content=d[0]}o.styles.cellWidth.assign(r)}return i.isCutted&&(o.styles.minCellHeight=i.cutSize),o},e.prototype._getCellWidth=function(e,t,i){var n,o=e.cells[t][i],r=o.styles,a=r.cellWidth.getValue(),s=null!=a?a:r.minCellWidth;return null!=s?s:e.baseCellSize.width*(null!==(n=o.colSpan)&&void 0!==n?n:1)},e.prototype._getTaskPagination=function(e,t){var i=t?e.height:e.width,n=t?e.top:e.left;return this._getLinePagination(n,i,t)},e.prototype._getDependencyLinePagination=function(e,t){var i=e.points[0],n=e.points[1],o=t?n.y-i.y:n.x-i.x,r=t?i.y:i.x;return this._getLinePagination(r,o,t)},e.prototype._getTimeMarkerPagination=function(e,t){var i=t?e.size.height:e.size.width,n=t?e.start.y:e.start.x;return this._getLinePagination(n,i,t)},e.prototype._getLinePagination=function(e,t,i){var n=new Array,o=this.pageNavigator.clone();o.offsetOneD(e,i);var r=i?o.vIndex:o.hIndex;o.offsetOneD(t,i);for(var a=i?o.vIndex:o.hIndex,s=r;s<=a;s++)n.push({offset:o.getPageGlobalOffset(s,i),pageIndex:s});return n},e.prototype._getPointPageInfo=function(e){var t=this.pageNavigator.clone();return t.offset(e.x,e.y),{offsetX:t.getPageGlobalOffset(t.hIndex),offsetY:t.getPageGlobalOffset(t.vIndex,!0),pageHorIndex:t.hIndex,pageVerIndex:t.vIndex}},Object.defineProperty(e.prototype,"pageWidth",{get:function(){var e;return null===(e=this._pdfDoc)||void 0===e?void 0:e.getPageWidth()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageHeight",{get:function(){var e;return null===(e=this._pdfDoc)||void 0===e?void 0:e.getPageHeight()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageLeftMargin",{get:function(){var e;return null===(e=this._props)||void 0===e?void 0:e.margins.left},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageTopMargin",{get:function(){var e;return null===(e=this._props)||void 0===e?void 0:e.margins.top},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageRightMargin",{get:function(){var e;return null===(e=this._props)||void 0===e?void 0:e.margins.right},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageBottomMargin",{get:function(){var e;return null===(e=this._props)||void 0===e?void 0:e.margins.bottom},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageLeft",{get:function(){var e;return null!==(e=this._pageLeft)&&void 0!==e||(this._pageLeft=this.pageLeftMargin),this._pageLeft},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageRight",{get:function(){var e;return null!==(e=this._pageRight)&&void 0!==e||(this._pageRight=this.pageWidth-this.pageRightMargin),this._pageRight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageTop",{get:function(){var e;return null!==(e=this._pageTop)&&void 0!==e||(this._pageTop=this.pageTopMargin),this._pageTop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageBottom",{get:function(){var e;return null!==(e=this._pageBottom)&&void 0!==e||(this._pageBottom=this.pageHeight-this.pageBottomMargin),this._pageBottom},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageBorders",{get:function(){return{left:this.pageLeft,top:this.pageTop,bottom:this.pageBottom,right:this.pageRight}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"correctedPageBottoms",{get:function(){var e;return null!==(e=this._correctedPageBottoms)&&void 0!==e||(this._correctedPageBottoms=this._getCorrectedPagesBottom()),this._correctedPageBottoms},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageNavigator",{get:function(){var e;return null!==(e=this._pageNavigator)&&void 0!==e||(this._pageNavigator=new c.PageNavigation(this.pageBorders,0,0,0,0,this.correctedPageBottoms)),this._pageNavigator},enumerable:!1,configurable:!0}),e.prototype._getCorrectedPagesBottom=function(){var e,t,i,n,o=new Array,r=null===(e=this._globalInfo)||void 0===e?void 0:e.tables,a=null!==(t=r[d.PdfPageTableNames.treeListMain])&&void 0!==t?t:r[d.PdfPageTableNames.chartMain],s=new c.PageNavigation(this.pageBorders);s.pageY=a.position.y;for(var l=0;l<a.cells.length;l++){var u=null!==(n=null===(i=a.cells[l][0].styles)||void 0===i?void 0:i.minCellHeight)&&void 0!==n?n:a.baseCellSize.height,h=s.vIndex,p=s.pageY;s.offsetOneD(u,!0),h!==s.vIndex&&(o.push(p),s.pageY=s.getPageStart(!0)+u)}return o},e.prototype._addTaskToPage=function(e,t,i){var n,o,r=this._getPage(e,t);r&&(null!==(n=(o=r.objects).tasks)&&void 0!==n||(o.tasks=new Array),r.objects.tasks.push(i))},e.prototype._addDependencyToPage=function(e,t,i){var n,o,r=this._getPage(e,t);r&&(null!==(n=(o=r.objects).dependencies)&&void 0!==n||(o.dependencies=new Array),r.objects.dependencies.push(i))},e.prototype._addResourceToPage=function(e,t,i){var n,o,r=this._getPage(e,t);r&&(null!==(n=(o=r.objects).resources)&&void 0!==n||(o.resources=new Array),r.objects.resources.push(i))},e.prototype._addTimeMarkerToPage=function(e,t,i){var n,o,r=this._getPage(e,t);r&&(null!==(n=(o=r.objects).timeMarkers)&&void 0!==n||(o.timeMarkers=new Array),r.objects.timeMarkers.push(i))},e.prototype._offsetPoints=function(e,t,i){e.forEach((function(e){e.x-=t,e.y-=i}))},e}();t.PdfGanttPaginator=f},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PageNavigation=void 0;var n=function(){function e(e,t,i,n,o,r){this._correctedBottoms=new Array,this.vIndex=0,this.hIndex=0,this.pageX=0,this.pageY=0,this._top=null==e?void 0:e.top,this._left=null==e?void 0:e.left,this._bottom=null==e?void 0:e.bottom,this._right=null==e?void 0:e.right,this.vIndex=null!=t?t:this.vIndex,this.hIndex=null!=i?i:this.hIndex,this.pageX=null!=n?n:this.pageX,this.pageY=null!=o?o:this.pageY,r&&(this._correctedBottoms=r)}return e.prototype.offset=function(e,t){e&&this.offsetOneD(e),t&&this.offsetOneD(t,!0)},e.prototype.offsetOneD=function(e,t){for(var i=e,n=this.getSpaceToBorder(t);n<i;)t?(this.vIndex++,this.pageY=this._top):(this.hIndex++,this.pageX=this._left),i-=n,n=this.getSpaceToBorder(t);t?this.pageY+=i:this.pageX+=i},Object.defineProperty(e.prototype,"defaultPageHeight",{get:function(){return this.getCurrentPageBottom()-this._top},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"defaultPageWidth",{get:function(){return this._right-this._left},enumerable:!1,configurable:!0}),e.prototype.getPageEnd=function(e){return e?this.getCurrentPageBottom():this._right},e.prototype.getPageStart=function(e){return e?this._top:this._left},e.prototype.getPageSize=function(e,t){return e?this.getPageHeight(t):this.defaultPageWidth},e.prototype.getSpaceToBorder=function(e){return e?this.getCurrentPageBottom()-this.pageY:this._right-this.pageX},e.prototype.getPageGlobalOffset=function(e,t){if(!t)return e*this.defaultPageWidth;for(var i=0,n=1;n<=e;n++)i+=this.getPageHeight(n-1);return i},e.prototype.assign=function(e){this._top=e._top,this._left=e._left,this._bottom=e._bottom,this._right=e._right,this._correctedBottoms=e._correctedBottoms,this.vIndex=e.vIndex,this.hIndex=e.hIndex,this.pageX=e.pageX,this.pageY=e.pageY},e.createFrom=function(t){var i=new e;return i.assign(t),i},e.prototype.clone=function(){var t=new e;return t.assign(this),t},e.prototype.getCurrentPageBottom=function(){return this.getPageBottom(this.vIndex)},e.prototype.getPageBottom=function(e){var t;return null!==(t=this._correctedBottoms[e])&&void 0!==t?t:this._bottom},e.prototype.getPageHeight=function(e){return this.getPageBottom(e)-this._top},e}();t.PageNavigation=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScalingHelper=void 0;var n=i(27),o=function(){function e(e){this._doc=e}return Object.defineProperty(e.prototype,"_docScaleFactor",{get:function(){var e,t;return null===(t=null===(e=this._doc)||void 0===e?void 0:e.internal)||void 0===t?void 0:t.scaleFactor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_correctScaleNeeded",{get:function(){return this._docScaleFactor&&Math.abs(this._docScaleFactor-e._defaultScaleFactor)>Number.EPSILON},enumerable:!1,configurable:!0}),e.prototype.getScaledSize=function(t){return t*e._defaultScaleFactor/this._docScaleFactor},e.prototype.scalePageMargins=function(e){var t,i,n,o;this._correctScaleNeeded&&((null===(t=null==e?void 0:e.margins)||void 0===t?void 0:t.left)&&(e.margins.left=this.getScaledSize(e.margins.left)),(null===(i=null==e?void 0:e.margins)||void 0===i?void 0:i.right)&&(e.margins.right=this.getScaledSize(e.margins.right)),(null===(n=null==e?void 0:e.margins)||void 0===n?void 0:n.top)&&(e.margins.top=this.getScaledSize(e.margins.top)),(null===(o=null==e?void 0:e.margins)||void 0===o?void 0:o.bottom)&&(e.margins.bottom=this.getScaledSize(e.margins.bottom)))},e.prototype.scaleSizes=function(e){this._correctScaleNeeded&&(this.scaleTables(e),this.scaleObjects(e.objects))},e.prototype.scaleTables=function(e){(null==e?void 0:e.tables)&&(this.scaleTable(e.tables[n.PdfPageTableNames.treeListHeader]),this.scaleTable(e.tables[n.PdfPageTableNames.treeListMain]),this.scaleTable(e.tables[n.PdfPageTableNames.chartMain]),this.scaleTable(e.tables[n.PdfPageTableNames.chartScaleTop]),this.scaleTable(e.tables[n.PdfPageTableNames.chartScaleBottom]))},e.prototype.scaleTable=function(e){var t,i,n,o,r,a;if(e&&((null===(t=e.size)||void 0===t?void 0:t.width)&&(e.size.width=this.getScaledSize(e.size.width)),(null===(i=e.size)||void 0===i?void 0:i.height)&&(e.size.height=this.getScaledSize(e.size.height)),(null===(n=e.position)||void 0===n?void 0:n.x)&&(e.position.x=this.getScaledSize(e.position.x)),(null===(o=e.position)||void 0===o?void 0:o.y)&&(e.position.y=this.getScaledSize(e.position.y)),(null===(r=e.baseCellSize)||void 0===r?void 0:r.width)&&(e.baseCellSize.width=this.getScaledSize(e.baseCellSize.width)),(null===(a=e.baseCellSize)||void 0===a?void 0:a.height)&&(e.baseCellSize.height=this.getScaledSize(e.baseCellSize.height)),e.cells))for(var s=0;s<e.cells.length;s++)for(var l=e.cells[s],d=0;d<l.length;d++){var u=l[d];this.scaleStyle(u.styles)}},e.prototype.scaleObjects=function(e){this.scaleTasks(null==e?void 0:e.tasks),this.scaleDependencies(null==e?void 0:e.dependencies),this.scaleResources(null==e?void 0:e.resources),this.scaleTimeMarkers(null==e?void 0:e.timeMarkers)},e.prototype.scaleTasks=function(e){var t=this;null==e||e.forEach((function(e){t.scalePoints(e.sidePoints),e.progressWidth=t.getScaledSize(e.progressWidth),t.scaleStyle(e.textStyle)}))},e.prototype.scaleDependencies=function(e){var t=this;null==e||e.forEach((function(e){var i;t.scalePoints(e.points),(null===(i=e.arrowInfo)||void 0===i?void 0:i.width)&&(e.arrowInfo.width=t.getScaledSize(e.arrowInfo.width))}))},e.prototype.scaleResources=function(e){var t=this;null==e||e.forEach((function(e){e.x=t.getScaledSize(e.x),e.y=t.getScaledSize(e.y),t.scaleStyle(e.style)}))},e.prototype.scaleTimeMarkers=function(e){var t=this;null==e||e.forEach((function(e){e.start.x=t.getScaledSize(e.start.x),e.start.y=t.getScaledSize(e.start.y),e.size.width=t.getScaledSize(e.size.width),e.size.height=t.getScaledSize(e.size.height)}))},e.prototype.scaleStyle=function(e){var t,i,n,o;if(e){var r=e.cellWidth;if(null==r?void 0:r.hasValue()){var a=this.getScaledSize(Number(r.getValue()));r.assign(a)}e.minCellHeight&&(e.minCellHeight=this.getScaledSize(e.minCellHeight)),e.minCellWidth&&(e.minCellWidth=this.getScaledSize(e.minCellWidth)),(null===(t=e.cellPadding)||void 0===t?void 0:t.left)&&(e.cellPadding.left=this.getScaledSize(e.cellPadding.left)),(null===(i=e.cellPadding)||void 0===i?void 0:i.right)&&(e.cellPadding.right=this.getScaledSize(e.cellPadding.right)),(null===(n=e.cellPadding)||void 0===n?void 0:n.top)&&(e.cellPadding.top=this.getScaledSize(e.cellPadding.top)),(null===(o=e.cellPadding)||void 0===o?void 0:o.bottom)&&(e.cellPadding.bottom=this.getScaledSize(e.cellPadding.bottom))}},e.prototype.scalePoints=function(e){var t=this;null==e||e.forEach((function(e){e.x=t.getScaledSize(e.x),e.y=t.getScaledSize(e.y)}))},e._defaultScaleFactor=.75,e}();t.ScalingHelper=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.History=void 0;var n=i(138),o=i(42),r=function(){function e(e){this.historyItems=[],this.currentIndex=-1,this.currentProcessingItemInfo=null,this.transaction=null,this.transactionLevel=-1,this._listener=e}return e.prototype.undo=function(){this.canUndo()&&(this.activateItem(this.historyItems[this.currentIndex],!0),this.currentIndex--)},e.prototype.redo=function(){this.canRedo()&&(this.currentIndex++,this.activateItem(this.historyItems[this.currentIndex]))},e.prototype.beginTransaction=function(){var e;this.transactionLevel++,0==this.transactionLevel&&(this.transaction=new o.CompositionHistoryItem,null===(e=this._listener)||void 0===e||e.onTransactionStart())},e.prototype.endTransaction=function(){var e;if(!(--this.transactionLevel>=0)){var t=this.transaction.historyItems.length;t>1?this.addInternal(this.transaction):1==t&&this.addInternal(this.transaction.historyItems.pop()),this.transaction=null,null===(e=this._listener)||void 0===e||e.onTransactionEnd()}},e.prototype.addAndRedo=function(e){this.add(e),this.activateItem(e)},e.prototype.add=function(e){this.transactionLevel>=0?this.transaction.add(e):this.addInternal(e)},e.prototype.canUndo=function(){return this.currentIndex>=0},e.prototype.canRedo=function(){return this.currentIndex<this.historyItems.length-1},e.prototype.addInternal=function(e){this.currentIndex<this.historyItems.length-1&&this.historyItems.splice(this.currentIndex+1),this.historyItems.push(e),this.currentIndex++,this.deleteOldItems()},e.prototype.deleteOldItems=function(){var t=this.historyItems.length-e.MAX_HISTORY_ITEM_COUNT;t>0&&this.currentIndex>t&&(this.historyItems.splice(0,t),this.currentIndex-=t)},e.prototype.clear=function(){this.currentIndex=-1,this.historyItems=[]},e.prototype.activateItem=function(e,t){void 0===t&&(t=!1),this.currentProcessingItemInfo=new n.HistoryItemInfo(e,t),t?e.undo():e.redo(),this.currentProcessingItemInfo=null},e.prototype.getCurrentProcessingItemInfo=function(){return this.currentProcessingItemInfo},e.prototype.rollBackAndRemove=function(e){var t=e.item;this.checkAndRemoveItem(t)&&(e.isUndo?t.redo():t instanceof o.CompositionHistoryItem?t.undoItemsQuery():t.undo())},e.prototype.checkAndRemoveItem=function(e){var t=this.historyItems.indexOf(e);return t>-1?(this.historyItems.splice(t,1),this.currentIndex--):this.transaction&&(t=this.transaction.historyItems.indexOf(e))>-1&&this.transaction.historyItems.splice(t,1),t>-1},e.prototype.updateObsoleteInsertedKey=function(e,t,i){this.transaction&&this.updateItemsObsoleteInsertedKey(e,t,i,[this.transaction]),this.updateItemsObsoleteInsertedKey(e,t,i,this.historyItems)},e.prototype.updateItemsObsoleteInsertedKey=function(e,t,i,n){if(n)for(var r=0;r<n.length;r++){var a=n[r];a.keyUpdaters.filter((function(t){return t.getKey()===e&&t.objectType===i})).forEach((function(e){return e.updateKey(t)})),a instanceof o.CompositionHistoryItem&&this.updateItemsObsoleteInsertedKey(e,t,i,a.historyItems)}},e.MAX_HISTORY_ITEM_COUNT=100,e}();t.History=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HistoryItemInfo=void 0;var n=function(e,t){void 0===t&&(t=!1),this.item=e,this.isUndo=t};t.HistoryItemInfo=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModelChangesDispatcher=void 0;var n=i(140),o=i(141),r=i(142),a=i(143),s=i(144),l=function(){function e(){this.onModelChanged=new s.EventDispatcher,this.isLocked=!1}return e.prototype.notifyTaskCreating=function(e){this.isLocked||this.onModelChanged.raise("NotifyTaskCreating",e)},e.prototype.notifyTaskCreated=function(e,t,i){this.isLocked||this.onModelChanged.raise("NotifyTaskCreated",e,t,i)},e.prototype.notifyTaskRemoving=function(e){this.isLocked||this.onModelChanged.raise("NotifyTaskRemoving",e)},e.prototype.notifyTaskRemoved=function(e,t,i){this.isLocked||this.onModelChanged.raise("NotifyTaskRemoved",e,t,i)},e.prototype.notifyTaskUpdating=function(e){this.isLocked||this.onModelChanged.raise("NotifyTaskUpdating",e)},e.prototype.notifyTaskMoving=function(e){this.isLocked||this.onModelChanged.raise("NotifyTaskMoving",e)},e.prototype.notifyTaskEditDialogShowing=function(e){this.isLocked||this.onModelChanged.raise("NotifyTaskEditDialogShowing",e)},e.prototype.notifyResourceManagerDialogShowing=function(e){this.isLocked||this.onModelChanged.raise("NotifyResourceManagerDialogShowing",e)},e.prototype.notifyTaskUpdated=function(e,t,i){this.isLocked||this.onModelChanged.raise("NotifyTaskUpdated",e,t,i)},e.prototype.notifyParentTaskUpdated=function(e,t){this.isLocked||this.onModelChanged.raise("NotifyParentTaskUpdated",e,t)},e.prototype.notifyDependencyInserting=function(e){this.isLocked||this.onModelChanged.raise("NotifyDependencyInserting",e)},e.prototype.notifyDependencyInserted=function(e,t,i){this.isLocked||this.onModelChanged.raise("NotifyDependencyInserted",e,t,i)},e.prototype.notifyDependencyRemoving=function(e){this.isLocked||this.onModelChanged.raise("NotifyDependencyRemoving",e)},e.prototype.notifyDependencyRemoved=function(e,t,i){this.isLocked||this.onModelChanged.raise("NotifyDependencyRemoved",e,t,i)},e.prototype.notifyResourceCreating=function(e){this.isLocked||this.onModelChanged.raise("NotifyResourceCreating",e)},e.prototype.notifyResourceCreated=function(e,t,i){this.isLocked||this.onModelChanged.raise("NotifyResourceCreated",e,t,i)},e.prototype.notifyResourceRemoving=function(e){this.isLocked||this.onModelChanged.raise("NotifyResourceRemoving",e)},e.prototype.notifyResourceRemoved=function(e,t,i){this.isLocked||this.onModelChanged.raise("NotifyResourceRemoved",e,t,i)},e.prototype.notifyResourceColorChanged=function(e,t,i){this.isLocked||this.onModelChanged.raise("NotifyResourceColorChanged",e,t,i)},e.prototype.notifyResourceAssigning=function(e){this.isLocked||this.onModelChanged.raise("NotifyResourceAssigning",e)},e.prototype.notifyResourceAssigned=function(e,t,i){this.isLocked||this.onModelChanged.raise("NotifyResourceAssigned",e,t,i)},e.prototype.notifyResourceUnassigning=function(e){this.isLocked||this.onModelChanged.raise("NotifyResourceUnassigning",e)},e.prototype.notifyResourceUnassigned=function(e,t,i){this.isLocked||this.onModelChanged.raise("NotifyResourceUnassigned",e,t,i)},e.prototype.notifyParentDataRecalculated=function(e){this.onModelChanged.raise("NotifyParentDataRecalculated",e)},e.prototype.notifyScaleCellPrepared=function(e){this.onModelChanged.raise("NotifyScaleCellPrepared",e)},e.prototype.fireResourceUnassigning=function(e){var t=new r.ResourceUnassigningArguments(e);return this.notifyResourceUnassigning(t),!t.cancel},e.prototype.raiseTaskUpdating=function(e,t,i){var n=new a.TaskUpdatingArguments(e,t);return this.notifyTaskUpdating(n),!n.cancel&&(i(n.newValues),!0)},e.prototype.raiseTaskMoving=function(e,t,i,n){var o=new a.TaskUpdatingArguments(e,{start:t,end:i});return this.notifyTaskMoving(o),!o.cancel&&(n(o.start,o.end),!0)},e.prototype.raiseTaskTaskEditDialogShowing=function(e,t){var i=new o.TaskEditDialogShowingArguments(e);return this.notifyTaskEditDialogShowing(i),!i.cancel&&(t(i),!0)},e.prototype.raiseResourceManagerDialogShowing=function(e,t){var i=new n.ResourceManagerDialogShowingArguments(e);return this.notifyResourceManagerDialogShowing(i),!i.cancel&&(t(i),!0)},e.prototype.lock=function(){this.isLocked=!0},e.prototype.unlock=function(){this.isLocked=!1},e}();t.ModelChangesDispatcher=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceManagerDialogShowingArguments=void 0;var n=i(0),o=function(e){function t(t){var i=e.call(this,void 0)||this;return i.values.resources=t.resources,i}return n.__extends(t,e),t}(i(11).BaseArguments);t.ResourceManagerDialogShowingArguments=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskEditDialogShowingArguments=void 0;var n=i(0),o=function(e){function t(t){var i=e.call(this,t.id)||this;return i.values={start:t.start,end:t.end,title:t.title,progress:t.progress},i.hiddenFields=t.hiddenFields,i.readOnlyFields=t.readOnlyFields,i}return n.__extends(t,e),t}(i(11).BaseArguments);t.TaskEditDialogShowingArguments=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceUnassigningArguments=void 0;var n=i(0),o=function(e){function t(t){var i=e.call(this,t.internalId)||this;return i.values=t,i}return n.__extends(t,e),t}(i(11).BaseArguments);t.ResourceUnassigningArguments=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskUpdatingArguments=void 0;var n=i(0),o=function(e){function t(t,i){var n=e.call(this,t.id)||this;return n.values=t,n.createNewValues(i),n}return n.__extends(t,e),t.prototype.createNewValues=function(e){var t=this;this.newValues={};var i=function(i){Object.prototype.hasOwnProperty.call(e,i)&&(n.newValues[i]=e[i],Object.defineProperty(n,i,{get:function(){return t.newValues[i]}}))},n=this;for(var o in e)i(o)},t}(i(11).BaseArguments);t.TaskUpdatingArguments=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventDispatcher=void 0;var n=function(){function e(){this.listeners=[]}return e.prototype.add=function(e){if(!e)throw new Error("Error");this.hasEventListener(e)||this.listeners.push(e)},e.prototype.remove=function(e){for(var t=0,i=void 0;i=this.listeners[t];t++)if(i===e){this.listeners.splice(t,1);break}},e.prototype.raise=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];for(var n=0,o=void 0;o=this.listeners[n];n++){var r=o[e];null==r||r.apply(o,t)}},e.prototype.hasEventListener=function(e){for(var t=0,i=this.listeners.length;t<i;t++)if(this.listeners[t]===e)return!0;return!1},e}();t.EventDispatcher=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModelManipulator=void 0;var n=i(146),o=i(147),r=i(151),a=function(e,t){this.task=new r.TaskManipulator(e,t),this.dependency=new n.TaskDependencyManipulator(e,t),this.resource=new o.ResourcesManipulator(e,t),this.dispatcher=t};t.ModelManipulator=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskDependencyManipulator=void 0;var n=i(0),o=i(2),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.insertDependency=function(e,t,i,n){var r=this.viewModel;r.onBeginDataObjectCreate();var a=r.dependencies.createItem();return a.predecessorId=e,a.successorId=t,a.type=i,n&&(a.internalId=n),a.id=a.internalId,r.dependencies.add(a),r.updateVisibleItemDependencies(),this.renderHelper.recreateConnectorLineElement(a.internalId,!0),this.dispatcher.notifyDependencyInserted(this.getObjectForDataSource(a),(function(e){var t=a.internalId;a.updateId(e),r.processServerInsertedKey(t,a.internalId,o.GanttDataObjectNames.dependency)}),this.getErrorCallback()),r.onEndDataObjectCreate(),a},t.prototype.removeDependency=function(e){var t=this.viewModel.dependencies.getItemById(e);return this.viewModel.dependencies.remove(t),this.dispatcher.notifyDependencyRemoved(t.id,this.getErrorCallback(),this.viewModel.getDependencyObjectForDataSource(t)),this.viewModel.updateVisibleItemDependencies(),this.renderHelper.recreateConnectorLineElement(t.internalId),t},t.prototype.getObjectForDataSource=function(e){var t=this.viewModel.tasks.getItemById(e.predecessorId),i=this.viewModel.tasks.getItemById(e.successorId);return{id:e.id,predecessorId:t.id,successorId:i.id,type:e.type}},t}(i(28).BaseManipulator);t.TaskDependencyManipulator=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourcesManipulator=void 0;var n=i(0),o=i(2),r=i(28),a=i(148),s=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n.properties=new a.ResourcePropertiesManipulator(t,i),n}return n.__extends(t,e),t.prototype.create=function(e,t,i,n){var r=this.viewModel;r.onBeginDataObjectCreate();var a=r.resources.createItem();return a.text=e,t&&(a.color=t),i&&(a.internalId=i),a.id=a.internalId,this.viewModel.resources.add(a),this.dispatcher.notifyResourceCreated(this.getResourceObjectForDataSource(a),(function(e){var t=a.internalId;a.updateId(e),r.processServerInsertedKey(t,a.internalId,o.GanttDataObjectNames.resource),n&&n(e)}),this.getErrorCallback()),r.onEndDataObjectCreate(),a},t.prototype.remove=function(e){var t=this.viewModel.resources.getItemById(e);if(!t)throw new Error("Invalid resource id");if(this.viewModel.assignments.items.filter((function(t){return t.resourceId===e})).length)throw new Error("Can't delete assigned resource");return this.viewModel.resources.remove(t),this.dispatcher.notifyResourceRemoved(t.id,this.getErrorCallback(),this.viewModel.getResourceObjectForDataSource(t)),t},t.prototype.assign=function(e,t,i){var n=this.viewModel;n.onBeginDataObjectCreate();var r=n.assignments.createItem();return r.resourceId=e,r.taskId=t,i&&(r.internalId=i),r.id=r.internalId,this.viewModel.assignments.add(r),this.dispatcher.notifyResourceAssigned(this.getResourceAssignmentObjectForDataSource(r),(function(e){var t=r.internalId;r.updateId(e),n.processServerInsertedKey(t,r.internalId,o.GanttDataObjectNames.resourceAssignment)}),this.getErrorCallback()),this.viewModel.updateModel(),n.onEndDataObjectCreate(),this.viewModel.owner.resetAndUpdate(),r},t.prototype.deassig=function(e){var t=this.viewModel.assignments.getItemById(e);return this.viewModel.assignments.remove(t),this.dispatcher.notifyResourceUnassigned(t.id,this.getErrorCallback(),this.viewModel.getResourceAssignmentObjectForDataSource(t)),this.viewModel.updateModel(),this.viewModel.owner.resetAndUpdate(),t},t.prototype.getResourceObjectForDataSource=function(e){return{id:e.id,text:e.text}},t.prototype.getResourceAssignmentObjectForDataSource=function(e){return{id:e.id,taskId:this.viewModel.tasks.getItemById(e.taskId).id,resourceId:this.viewModel.resources.getItemById(e.resourceId).id}},t}(r.BaseManipulator);t.ResourcesManipulator=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourcePropertiesManipulator=void 0;var n=i(0),o=i(28),r=i(149),a=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n.color=new r.ResourceColorManipulator(t,i),n}return n.__extends(t,e),t}(o.BaseManipulator);t.ResourcePropertiesManipulator=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceColorManipulator=void 0;var n=i(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.getPropertyValue=function(e){return e.color},t.prototype.setPropertyValue=function(e,t){e.color=t,this.dispatcher.notifyResourceColorChanged(e.id,t,this.getErrorCallback())},t}(i(150).ResourcePropertyManipulator);t.ResourceColorManipulator=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourcePropertyManipulator=void 0;var n=i(0),o=i(54),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.setValue=function(e,t){var i=this,n=this.viewModel.resources.getItemById(e),r=new o.HistoryItemState(e,this.getPropertyValue(n));return this.setPropertyValue(n,t),this.viewModel.assignments.items.filter((function(e){return e.resourceId===n.internalId})).forEach((function(e){var t=i.viewModel.findItem(e.taskId).visibleIndex;i.renderHelper.recreateTaskElement(t)})),r},t.prototype.restoreValue=function(e){var t=this;if(e){var i=e.value,n=this.viewModel.resources.getItemById(e.id);this.setPropertyValue(n,i),this.viewModel.assignments.items.filter((function(e){return e.resourceId===n.internalId})).forEach((function(e){var i=t.viewModel.findItem(e.taskId).visibleIndex;t.renderHelper.recreateTaskElement(i)}))}},t}(i(28).BaseManipulator);t.ResourcePropertyManipulator=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskManipulator=void 0;var n=i(0),o=i(1),r=i(2),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.create=function(e,t,i){var n=this,o=this.viewModel;o.onBeginDataObjectCreate();var a=o.tasks.createItem();a.start=e.start,a.end=e.end,a.title=e.title,a.progress=e.progress,e.color&&(a.color=e.color);var s=o.tasks.getItemById(e.parentId);return s&&(s.expanded=!0),a.parentId=e.parentId,t&&(a.internalId=t),a.id=a.internalId,o.tasks.add(a),o.updateModel(),this.dispatcher.notifyTaskCreated(this.getObjectForDataSource(a),(function(e){var t=a.internalId;if(a.updateId(e),o.processServerInsertedKey(t,a.internalId,r.GanttDataObjectNames.task),i&&i(),n.viewModel.requireFirstLoadParentAutoCalc){var s=o.getCurrentTaskData().map((function(e){return""===e.parentId&&(e.parentId=null),e}));n.dispatcher.notifyParentDataRecalculated(s)}}),this.getErrorCallback()),o.onEndDataObjectCreate(),o.owner.resetAndUpdate(),a},t.prototype.remove=function(e){var t=this.viewModel.tasks.getItemById(e);if(!t)throw new Error("Invalid task id");if(this.viewModel.dependencies.items.filter((function(t){return t.predecessorId==e||t.successorId==e})).length)throw new Error("Can't delete task with dependency");if(this.viewModel.assignments.items.filter((function(t){return t.taskId==e})).length)throw new Error("Can't delete task with assigned resource");return this.viewModel.tasks.remove(t),this.dispatcher.notifyTaskRemoved(t.id,this.getErrorCallback(),this.viewModel.getTaskObjectForDataSource(t)),this.viewModel.updateModel(),this.viewModel.owner.resetAndUpdate(),t},t.prototype.update=function(e,t){var i=this.viewModel.tasks.getItemById(e),n={};Object.keys(t).forEach((function(e){(0,o.isDefined)(i[e])&&(n[e]=i[e],i[e]=t[e])}));var r=this.viewModel.findItem(e);return r&&this.renderHelper.recreateTaskElement(r.visibleIndex),this.dispatcher.notifyTaskUpdated(i.id,t,this.getErrorCallback()),n},t.prototype.getObjectForDataSource=function(e){return this.viewModel.getTaskObjectForDataSource(e)},t}(i(28).BaseManipulator);t.TaskManipulator=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PdfGanttExporter=void 0;var n=i(153),o=function(){function e(e){if(!e.settings.pdfDoc&&!e.settings.docCreateMethod)throw new Error("Cannot convert gantt to pdf without document instance!");this._info=e}return e.prototype.export=function(){var e,t,i=this.pdfDoc;this.applyCustomFont();for(var o=this._info,r=new n.PdfGanttPageDrawer(i,o.settings),a=o.getPages(i),s=a.length,l=0;l<s;l++){l>0&&i.addPage(this.getDocumentFormat(),this.getOrientation());var d=a[l];r.drawPage(d)}return(null===(e=this.props)||void 0===e?void 0:e.fileName)&&i.save(null===(t=this.props)||void 0===t?void 0:t.fileName),i},Object.defineProperty(e.prototype,"pdfDoc",{get:function(){var e,t;return null!==(e=this._pdfDoc)&&void 0!==e||(this._pdfDoc=null!==(t=this._info.settings.pdfDoc)&&void 0!==t?t:this.createDoc()),this._pdfDoc},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"props",{get:function(){return this._info.settings},enumerable:!1,configurable:!0}),e.prototype.createDoc=function(){var e=this.getJsPDFProps();return this._info.settings.docCreateMethod(e)},e.prototype.getJsPDFProps=function(){var e={putOnlyUsedFonts:!0,unit:"px",hotfixes:["px_scaling"]};return e.orientation=this.getOrientation(),e.format=this.getDocumentFormat(),e},e.prototype.getOrientation=function(){var e;return(null===(e=this.props)||void 0===e?void 0:e.landscape)?"l":"p"},e.prototype.getDocumentFormat=function(){var e,t,i,n;return(null===(e=this.props)||void 0===e?void 0:e.format)||(null===(t=this.props)||void 0===t?void 0:t.pageSize)?(null===(i=this.props)||void 0===i?void 0:i.pageSize)?[this.props.pageSize.height,this.props.pageSize.width]:null===(n=this.props)||void 0===n?void 0:n.format:"a4"},e.prototype.applyCustomFont=function(){this.props.font&&this.props.font.applyToDoc(this.pdfDoc)},e}();t.PdfGanttExporter=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PdfGanttPageDrawer=void 0;var n=i(5),o=i(154),r=i(27),a=i(37),s=i(155),l=function(){function e(e,t){this._pdfDoc=e,this._props=t}return e.prototype.drawPage=function(e){var t=this._pdfDoc,i=new s.PdfGanttTableDrawer(t);return this.needDrawChart()&&(i.drawTable(e.tables[r.PdfPageTableNames.chartMain]),new o.PdfObjectDrawer(t,e.objects).draw(),i.drawTable(e.tables[r.PdfPageTableNames.chartScaleTop]),i.drawTable(e.tables[r.PdfPageTableNames.chartScaleBottom])),this.needDrawTreeList()&&(i.drawTable(e.tables[r.PdfPageTableNames.treeListMain]),i.drawTable(e.tables[r.PdfPageTableNames.treeListHeader])),this.drawMargins(e),t},e.prototype.needDrawChart=function(){return!this._props||this._props.exportMode===a.ExportMode.all||this._props.exportMode===a.ExportMode.chart},e.prototype.needDrawTreeList=function(){return!this._props||this._props.exportMode===a.ExportMode.all||this._props.exportMode===a.ExportMode.treeList},e.prototype.getContentRightBottom=function(e){var t=new n.Point(0,0);for(var i in e.tables)if(Object.prototype.hasOwnProperty.call(e.tables,i)){var o=e.tables[i];t.x=Math.max(t.x,o.position.x+o.size.width),t.y=Math.max(t.y,o.position.y+o.size.height)}return t},e.prototype.drawMargins=function(e){var t=this._pdfDoc,i=this._props,n=t.getPageWidth(),o=t.getPageHeight(),r=this.getContentRightBottom(e);t.setFillColor(255,255,255),t.rect(0,0,i.margins.left,o,"F"),t.rect(0,0,n,i.margins.top,"F"),t.rect(r.x,0,n,o,"F"),t.rect(0,r.y,n,o,"F")},e}();t.PdfGanttPageDrawer=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PdfObjectDrawer=void 0;var n=i(4),o=i(64),r=i(44),a=function(){function e(e,t){this._FONT_ROW_RATIO=1.15,this._info=t,this._pdfDoc=e}return e.prototype.draw=function(){this.drawTimeMarkers(),this.drawDependencies(),this.drawTasks(),this.drawResources()},e.prototype.drawTasks=function(){var e,t=this,i=null===(e=this._info)||void 0===e?void 0:e.tasks;i&&i.forEach((function(e){return t.drawTask(e)}))},e.prototype.drawTask=function(e){var t=this._pdfDoc;t.setFillColor.apply(t,e.taskColor.getRBGColor()),t.setDrawColor.apply(t,e.taskColor.getRBGColor()),e.isMilestone?this.drawMilestone(e):this.drawRegularTask(e)},e.prototype.drawMilestone=function(e){var t=this._pdfDoc,i=e.sidePoints[0].x,n=e.sidePoints[0].y,o=e.sidePoints[1].x,r=e.sidePoints[1].y,a=e.sidePoints[2].x,s=e.sidePoints[2].y,l=e.sidePoints[3].x,d=e.sidePoints[3].y;t.triangle(i,n,o,r,a,s,"FD"),t.triangle(i,n,l,d,a,s,"FD")},e.prototype.drawRegularTask=function(e){var t=this._pdfDoc;t.rect(e.left,e.top,e.width,e.height,"FD"),e.isParent&&this.drawParentBorder(e),e.progressWidth&&(t.setFillColor.apply(t,e.progressColor.getRBGColor()),t.rect(e.left,e.top,e.progressWidth,e.height,"F")),e.text&&this.printTaskTitle(e)},e.prototype.drawParentBorder=function(e){var t=this._pdfDoc,i=e.sidePoints[0].x,n=e.sidePoints[1].y,o=e.sidePoints[3].y,r=e.sidePoints[2].x,a=e.sidePoints[3].y-e.sidePoints[1].y,s=e.progressWidth>a?e.progressColor.getRBGColor():e.taskColor.getRBGColor();t.setFillColor.apply(t,s),t.triangle(i,n,i,o,i+a,n,"FD"),t.setFillColor.apply(t,e.taskColor.getRBGColor()),t.triangle(r,n,r,o,r-a,n,"FD")},e.prototype.printTaskTitle=function(e){var t,i=this._pdfDoc,a=e.textStyle,s=a&&a.textColor.getRBGColor(),l=a&&a.fontSize;i.setTextColor.apply(i,s),i.setFontSize(l);var d=e.top+l*this._FONT_ROW_RATIO/i.internal.scaleFactor;e.isParent&&(d-=r.PdfTaskInfo.defaultParentHeightCorrection);var u=a&&a.cellPadding.left||0,c=a&&a.cellPadding.right||0;if(e.textPosition===n.TaskTitlePosition.Inside){var h=e.width-u-c;t=e.left+u,i.text(o.EllipsisHelper.limitPdfTextWithEllipsis(e.text,i,h),t,d)}else t=e.left-c,i.text(e.text,t,d,{align:"right"})},e.prototype.drawDependencies=function(){var e,t=this,i=null===(e=this._info)||void 0===e?void 0:e.dependencies;i&&i.forEach((function(e){return t.drawDependencyLine(e)}))},e.prototype.drawDependencyLine=function(e){var t,i;if((t=this._pdfDoc).setFillColor.apply(t,e.fillColor.getRBGColor()),(i=this._pdfDoc).setDrawColor.apply(i,e.fillColor.getRBGColor()),e.arrowInfo)this.drawArrow(e);else{var n=e.points;this._pdfDoc.line(n[0].x,n[0].y,n[1].x,n[1].y)}},e.prototype.isValidLine=function(e){var t=e.points;return!(isNaN(t[0].x)||isNaN(t[0].y)||isNaN(t[1].x)||isNaN(t[1].y))},e.prototype.drawArrow=function(e){var t=e.arrowInfo.width||0,i=e.points[0].x,o=e.points[0].y;switch(e.arrowInfo.position){case n.Position.Left:this._pdfDoc.triangle(i,o+t,i+t,o,i+t,o+2*t,"FD");break;case n.Position.Right:this._pdfDoc.triangle(i,o,i,o+2*t,i+t,o+t,"FD");break;case n.Position.Top:this._pdfDoc.triangle(i,o+t,i+t,o,i+2*t,o+t,"FD");break;case n.Position.Bottom:this._pdfDoc.triangle(i,o,i+t,o+t,i+2*t,o,"FD")}},e.prototype.drawResources=function(){var e,t=this,i=this._pdfDoc,n=null===(e=this._info)||void 0===e?void 0:e.resources;n&&n.forEach((function(e){var n,o,r;i.setFontSize(null!==(n=e.style.fontSize)&&void 0!==n?n:11);var a=e.y+e.style.fontSize*t._FONT_ROW_RATIO/i.internal.scaleFactor,s=null!==(o=e.style.cellPadding.left)&&void 0!==o?o:0,l=null!==(r=e.style.cellPadding.right)&&void 0!==r?r:1,d=Math.max(e.style.cellWidth.getValue(),s+i.getTextWidth(e.text)+l);i.setFillColor.apply(i,e.style.fillColor.getRBGColor()),i.rect(e.x,e.y,d,e.style.minCellHeight,"F"),i.setTextColor.apply(i,e.style.textColor.getRBGColor()),i.text(e.text,e.x+s,a)}))},e.prototype.drawTimeMarkers=function(){var e,t=this,i=null===(e=this._info)||void 0===e?void 0:e.timeMarkers;null==i||i.forEach((function(e){return t.drawTimeMarker(e)}))},e.prototype.drawTimeMarker=function(e){var t,i,n=this._pdfDoc,o=e.size.width>1,r=e.start.x,a=e.start.y,s=e.size.width,l=e.size.height,d=e.isStripLine;o&&(n.setFillColor.apply(n,e.color.getRBGColor()),n.saveGraphicsState(),n.setGState(new n.GState({opacity:null!==(i=e.color.opacity)&&void 0!==i?i:1})),n.rect(r,a,s,l,"F"),n.restoreGraphicsState()),d&&(this._pdfDoc.setLineDashPattern([3]),(t=this._pdfDoc).setDrawColor.apply(t,e.lineColor.getRBGColor()),o&&this._pdfDoc.line(r+s,a,r+s,a+l,"S"),this._pdfDoc.line(r,a,r,a+l,"S"),this._pdfDoc.setLineDashPattern())},e}();t.PdfObjectDrawer=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PdfGanttTableDrawer=void 0;var n=i(1),o=i(27),r=i(64),a=i(156),s=function(){function e(e){this._pdfDoc=e}return e.prototype.drawTable=function(e){var t,i;if(e){var n=this.createTableOptions(e);(null===(t=e.style)||void 0===t?void 0:t.fontSize)&&this._pdfDoc.setFontSize(null===(i=e.style)||void 0===i?void 0:i.fontSize),this._pdfDoc.autoTable(n.getValue())}},e.prototype.createTableOptions=function(e){var t=this.createDefaultTableOptions();return this.addTableCommonSettings(e,t),this.addCommonTableStyles(e,t),this.prepareBodyCells(e),t.addBody(e.cells),e.hideRowLines&&this.hideRowLines(t),t},e.prototype.createDefaultTableOptions=function(){var e=new a.TableOptions;return e.pageBreak="auto",e.margin.assign(0),e.tableWidth.assign("auto"),e.styles.cellPadding.assign(0),e.styles.halign="center",e.styles.valign="middle",e.styles.lineWidth=1,e.styles.overflow="hidden",e},e.prototype.addTableCommonSettings=function(e,t){t.startY=e.position.y,t.margin.assign({left:e.position.x}),t.tableWidth.assign(e.size.width)},e.prototype.addCommonTableStyles=function(e,t){var i=t.styles;i.assign(e.style),0===i.fillColor.opacity&&i.fillColor.assign("#FFFFFF"),i.minCellHeight=e.baseCellSize.height,t.alternateRowStyles.minCellHeight=t.styles.minCellHeight,t.alternateRowStyles.fillColor.assign(t.styles.fillColor),(0,n.isDefined)(e.baseCellSize.width)&&i.cellWidth.assign(e.baseCellSize.width)},e.prototype.prepareBodyCells=function(t){var i,n,a;if(t.name===o.PdfPageTableNames.treeListMain||t.name===o.PdfPageTableNames.chartScaleTop||t.name===o.PdfPageTableNames.chartScaleBottom)for(var s=t.cells,l=0;l<s.length;l++)for(var d=s[l],u=0;u<d.length;u++){var c=d[u],h=c.styles,p=(null===(i=null==h?void 0:h.cellWidth)||void 0===i?void 0:i.getValue())||t.baseCellSize.width||0,f=null!==(n=null==h?void 0:h.cellPadding.left)&&void 0!==n?n:0,g=null!==(a=null==h?void 0:h.cellPadding.right)&&void 0!==a?a:0,m=Math.max(p-f-g-e.cellEllipsisSpace,0);c.content=r.EllipsisHelper.limitPdfTextWithEllipsis(c.content,this._pdfDoc,m)}},e.prototype.hideRowLines=function(e){e.styles.lineWidth=0,e.onDrawCellCallback=function(e){var t=e.cell,i=e.doc,n=t.styles.lineColor,o=t.x,r=t.x+t.styles.cellWidth,a=t.y,s=t.y+e.row.height,l=e.column.index===e.table.columns.length-1,d=e.row.index===e.table.body.length-1,u=0===e.row.index;i.setDrawColor(n[0],n[1],n[2]),i.setLineWidth(1),i.line(o,s,o,a),l&&i.line(r,s,r,a),u&&i.line(o,a,r,a),d&&i.line(o,s,r,s)}},e.cellEllipsisSpace=3,e}();t.PdfGanttTableDrawer=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableOptions=void 0;var n=i(1),o=i(45),r=i(17),a=i(35),s=i(36),l=i(26),d=i(62),u=function(){function e(){this._margin=new s.Margin,this._tableLineColor=new r.Color,this._tableWidth=new d.Width,this._styles=new l.StyleDef,this._alternateRowStyles=new l.StyleDef}return Object.defineProperty(e.prototype,"pageBreak",{get:function(){return this._pageBreak},set:function(e){this._pageBreak=a.PredefinedStyles.getPredefinedStringOrUndefined(e,a.PredefinedStyles.pageBreak)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rowPageBreak",{get:function(){return this._rowPageBreak},set:function(e){this._rowPageBreak=a.PredefinedStyles.getPredefinedStringOrUndefined(e,a.PredefinedStyles.rowPageBreak)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showHead",{get:function(){return this._showHead},set:function(e){this._showHead=a.PredefinedStyles.getPredefinedStringOrUndefined(e,a.PredefinedStyles.headerFooterVisibility)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showFoot",{get:function(){return this._showFoot},set:function(e){this._showFoot=a.PredefinedStyles.getPredefinedStringOrUndefined(e,a.PredefinedStyles.headerFooterVisibility)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startY",{get:function(){return this._startY},set:function(e){this._startY=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tableLineWidth",{get:function(){return this._tableLineWidth},set:function(e){this._tableLineWidth=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"margin",{get:function(){return this._margin},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tableLineColor",{get:function(){return this._tableLineColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tableWidth",{get:function(){return this._tableWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return this._body},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"styles",{get:function(){return this._styles},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alternateRowStyles",{get:function(){return this._alternateRowStyles},enumerable:!1,configurable:!0}),e.prototype.hasValue=function(){return!0},e.prototype.getValue=function(){var e=this,t={};return t.pageBreak=this.pageBreak,t.rowPageBreak=this.rowPageBreak,t.showFoot=this.showFoot,t.showHead=this.showHead,t.startY=this.startY,t.tableLineWidth=this.tableLineWidth,this.getJsPdfProviderProps().forEach((function(i){var n=e[i];n&&n.hasValue()&&(t[i]=n.getValue())})),t.body=this.getBodyForJsPdf(),t.columnStyles=this.getColumnStylesForJsPdf(),this.onDrawCellCallback&&(t.didDrawCell=this.onDrawCellCallback),t},e.prototype.getJsPdfProviderProps=function(){return["margin","tableLineColor","tableWidth","styles","alternateRowStyles"]},e.prototype.getBodyForJsPdf=function(){for(var e=[],t=0;t<this._body.length;t++){for(var i=this._body[t],n=[],o=0;o<i.length;o++)n.push(i[o].getValue());e.push(n)}return e},e.prototype.assign=function(e){e&&((0,n.isDefined)(e.margin)&&this.margin.assign(e.margin),(0,n.isDefined)(e.pageBreak)&&(this.pageBreak=e.pageBreak),(0,n.isDefined)(e.rowPageBreak)&&(this.rowPageBreak=e.rowPageBreak),(0,n.isDefined)(e.showFoot)&&(this.showFoot=e.showFoot),(0,n.isDefined)(e.showHead)&&(this.showHead=e.showHead),(0,n.isDefined)(e.startY)&&(this.startY=e.startY),(0,n.isDefined)(e.tableLineWidth)&&(this.tableLineWidth=e.tableLineWidth),(0,n.isDefined)(e.tableLineColor)&&this.tableLineColor.assign(e.tableLineColor),(0,n.isDefined)(e.tableWidth)&&this.tableWidth.assign(e.tableWidth))},e.prototype.addBody=function(e){e&&(this._body=new Array,this.addCells(e,this._body))},e.prototype.addCells=function(e,t){for(var i=this.styles.fillColor,n=0;n<e.length;n++){for(var r=e[n],a=new Array,s=0;s<r.length;s++){var l=new o.CellDef(r[s]);i.hasValue()&&l.styles&&l.styles.fillColor.hasValue()&&l.styles.fillColor.applyOpacityToBackground(i),a.push(l)}t.push(a)}},e.prototype.applyColumnStyle=function(e,t){var i;null!==(i=this._columnStyles)&&void 0!==i||(this._columnStyles=new Array),this._columnStyles[e]=new l.StyleDef(t)},e.prototype.getColumnStylesForJsPdf=function(){if(this._columnStyles){var e={};return this._columnStyles.forEach((function(t,i){t&&(e[i]=t.getValue())})),e}return null},e}();t.TableOptions=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RenderHelper=void 0;var n=i(158),o=i(159),r=i(160),a=i(47),s=i(25),l=i(161),d=i(162),u=i(163),c=i(165),h=i(166),p=i(179),f=i(180),g=i(182),m=i(12),_=i(183),v=i(184),y=function(){function e(e){this.hlRowElements=[],this.renderedColIndices=[],this.renderedRowIndices=[],this.invalidTaskDependencies=[],this.etalonSizeValues=new r.EtalonSizeValues,this._gridLayoutCalculator=new s.GridLayoutCalculator,this._ganttView=e,this._connectorLinesRender=new n.ConnectorLinesRender(this),this._etalonsHelper=new o.EtalonsHelper(this),this._noWorkingIntervalRender=new l.NoWorkingIntervalRender(this),this._resourceRender=new d.ResourseRender(this),this._scaleRender=new u.ScaleRender(this),this._stripLinesRender=new c.StripLinesRender(this),this._taskAreaRender=new p.TaskAreaRender(this),this._taskRender=new f.TaskRender(this),this._mainElementsRender=new g.MainElementsRender}return e.prototype.reset=function(){this.invalidTaskDependencies=[],this._taskAreaRender.reset(),this._taskRender.reset(),this._taskArea.innerHTML="",this._scaleRender.reset(),this.hlRowElements=[],this.renderedRowIndices=[],this.renderedColIndices=[],this._connectorLinesRender.reset(),this._stripLinesRender.reset(),this._noWorkingIntervalRender.reset()},e.prototype.createMainElement=function(e){this.mainElement=this._mainElementsRender.createMainElement(e),e.appendChild(this.mainElement)},e.prototype.createHeader=function(){this.header=this._mainElementsRender.createHeader(),this.mainElement.appendChild(this.header)},e.prototype.init=function(e,t,i,n,o){void 0===o&&(o=0),this._elementTextHelper.setFont(this.mainElement),this.setupHelpers(e,t,i,n,o),this.setSizeForTaskArea(),this.createTimeScale(),this._taskAreaManager=new h.TaskAreaManager(this._ganttView.taskAreaEventsListener,this.taskArea,this.tickSize)},e.prototype.initMarkup=function(e){this._elementTextHelper=new v.ElementTextHelper(this.ganttViewSettings.cultureInfo),this.createMainElement(e),this.createHeader(),this._etalonsHelper.calculateEtalonSizeValues(),this._taskAreaRender.createTaskAreaContainer()},e.prototype.processScroll=function(e){this._taskAreaRender.recreateTaskAreaBordersAndTaskElements(e),e?this._connectorLinesRender.recreateConnectorLineElements():(this._noWorkingIntervalRender.recreateNoWorkingIntervalElements(),this._stripLinesRender.recreateStripLines(),this._scaleRender.recreateScalesElements())},Object.defineProperty(e.prototype,"ganttViewSettings",{get:function(){return this._ganttView.settings},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskTextHeightKey",{get:function(){return a.GanttView.taskTextHeightKey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showResources",{get:function(){return this.ganttViewSettings.showResources},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showDependencies",{get:function(){return this.ganttViewSettings.showDependencies},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewModelItems",{get:function(){return this._ganttView.viewModel.items},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stripLines",{get:function(){return this.ganttViewSettings.stripLines},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return this._ganttView.range},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewType",{get:function(){return this.ganttViewSettings.viewType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskTitlePosition",{get:function(){return this.ganttViewSettings.taskTitlePosition},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tickSize",{get:function(){return this._ganttView.tickSize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ganttViewTaskAreaContainerScrollTop",{get:function(){return this._ganttView.taskAreaContainerScrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ganttTaskAreaContainerScrollLeft",{get:function(){return this._ganttView.taskAreaContainerScrollLeft},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleCount",{get:function(){return this._ganttView.scaleCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"areHorizontalBordersEnabled",{get:function(){return this.ganttViewSettings.areHorizontalBordersEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskEditController",{get:function(){return this._ganttView.taskEditController},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dispatcher",{get:function(){return this._ganttView.dispatcher},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskArea",{get:function(){return this._taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaManager",{get:function(){var e;return null!==(e=this._taskAreaManager)&&void 0!==e||(this._taskAreaManager=new h.TaskAreaManager(this._ganttView.taskAreaEventsListener,this.taskArea,this.tickSize)),this._taskAreaManager},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaContainerScrollTop",{get:function(){return this._taskAreaRender.taskAreaContainer.scrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaContainerScrollLeft",{get:function(){return this._taskAreaRender.taskAreaContainer.scrollLeft},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaContainer",{get:function(){return this._taskAreaRender.taskAreaContainer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isExternalTaskAreaContainer",{get:function(){return this._taskAreaRender.taskAreaContainer.isExternal},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fakeTaskWrapper",{get:function(){return this._taskRender.fakeTaskWrapper},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskElements",{get:function(){return this._taskRender.taskElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectionElements",{get:function(){return this._taskRender.selectionElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleElements",{get:function(){return this._scaleRender.scaleElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleBorders",{get:function(){return this._scaleRender.scaleBorders},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timeScaleContainer",{get:function(){return this._scaleRender.timeScaleContainer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"gridLayoutCalculator",{get:function(){return this._gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"etalonScaleItemWidths",{get:function(){return this.etalonSizeValues.scaleItemWidths[this.viewType]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"elementTextHelperCultureInfo",{get:function(){return this._elementTextHelper.cultureInfo},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"noWorkingIntervalsToElementsMap",{get:function(){return this._noWorkingIntervalRender.noWorkingIntervalsToElementsMap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stripLinesMap",{get:function(){return this._stripLinesRender.stripLinesMap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedConnectorLines",{get:function(){return this._connectorLinesRender.renderedConnectorLines},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allConnectorLines",{get:function(){return this.gridLayoutCalculator.tileToDependencyMap.reduce((function(e,t){return e.concat(t)}),[])},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resourcesElements",{get:function(){return this._resourceRender.resourcesElements},enumerable:!1,configurable:!0}),e.prototype.setupHelpers=function(e,t,i,n,o){void 0===o&&(o=0);var r=new m.Size(this._taskAreaRender.taskAreaContainer.getWidth(),this._taskAreaRender.taskAreaContainer.getHeight()),a=this._taskAreaRender.taskAreaContainer.getHeight()-this._taskAreaRender.taskAreaContainer.getElement().clientHeight;this._gridLayoutCalculator.setSettings(r,e,this.etalonSizeValues,t,n,i,a,o),this._elementTextHelper.setSettings(t.start.getTime(),i,n.items)},e.prototype.resetAndUpdate=function(e,t,i,n,o){void 0===o&&(o=0);var r=this.getTaskAreaContainerScrollLeft();this.reset(),this.setupHelpers(e,t,i,n,o),this._scaleRender.createTimeScaleAreas(),this.setSizeForTaskArea(),this.setTaskAreaContainerScrollLeft(r)},e.prototype.createConnectorLines=function(){this._gridLayoutCalculator.createTileToConnectorLinesMap(),this._connectorLinesRender.recreateConnectorLineElements()},e.prototype.getTargetDateByPos=function(e){return this._gridLayoutCalculator.getDateByPos(this._taskAreaRender.taskAreaContainer.scrollLeft+e)},e.prototype.getExternalTaskAreaContainer=function(e){return this._ganttView.getExternalTaskAreaContainer(e)},e.prototype.prepareExternalTaskAreaContainer=function(e,t){return this._ganttView.prepareExternalTaskAreaContainer(e,t)},e.prototype.isAllowTaskAreaBorders=function(e){return this._ganttView.allowTaskAreaBorders(e)},e.prototype.getHeaderHeight=function(){return this._ganttView.getHeaderHeight()},e.prototype.getViewItem=function(e){return this._ganttView.getViewItem(e)},e.prototype.getTask=function(e){return this._ganttView.getTask(e)},e.prototype.hasTaskTemplate=function(){return!!this._ganttView.settings.taskContentTemplate},e.prototype.destroyTemplate=function(e){this._ganttView.destroyTemplate(e)},e.prototype.getTaskDependencies=function(e){return this._ganttView.getTaskDependencies(e)},e.prototype.getTaskResources=function(e){return this._ganttView.getTaskResources(e)},e.prototype.isHighlightRowElementAllowed=function(e){return this._ganttView.isHighlightRowElementAllowed(e)},e.prototype.updateRenderedConnectorLinesId=function(e,t){this._connectorLinesRender.updateRenderedConnectorLinesId(e,t)},e.prototype.recreateConnectorLineElement=function(e,t){void 0===t&&(t=!1),this._connectorLinesRender.recreateConnectorLineElement(e,t)},e.prototype.recreateConnectorLineElemensts=function(){this._connectorLinesRender.recreateConnectorLineElements()},e.prototype.setMainElementWidth=function(e){this.mainElement.style.width=e+"px"},e.prototype.setMainElementHeight=function(e){this.mainElement.style.height=e+"px"},e.prototype.createResources=function(e){this._resourceRender.createResourcesWrapperElement(e),this._resourceRender.createResources(e)},e.prototype.createTimeScale=function(){this._scaleRender.createTimeScaleContainer(this.header),this._scaleRender.createTimeScaleAreas()},e.prototype.setTimeScaleContainerScrollLeft=function(e){this._scaleRender.setTimeScaleContainerScrollLeft(e)},e.prototype.recreateStripLines=function(){this._stripLinesRender.recreateStripLines&&this._stripLinesRender.recreateStripLines()},e.prototype.createTaskArea=function(e){this._taskArea=this._taskAreaRender.createTaskArea(),this._taskArea.setAttribute("task-edit-enabled",this.isTaskUpdateAllowed().toString()),e.appendChild(this._taskArea)},e.prototype.isTaskUpdateAllowed=function(){var e=this.ganttViewSettings.editing;return e.enabled&&e.allowTaskUpdate},e.prototype.setSizeForTaskArea=function(){var e=this.getTaskAreaWidth(),t=this.getTaskAreaHeight();this._taskAreaRender.setSizeForTaskArea(e,t),this._ganttView.onTaskAreaSizeChanged({width:e,height:t})},e.prototype.getTaskAreaWidth=function(){return this.gridLayoutCalculator.getTotalWidth()},e.prototype.getTaskAreaHeight=function(){return this.gridLayoutCalculator.getVerticalGridLineHeight()},e.prototype.getTaskAreaContainerScrollLeft=function(){return this._taskAreaRender.taskAreaContainer.scrollLeft},e.prototype.setTaskAreaContainerScrollLeft=function(e){this._taskAreaRender.taskAreaContainer.scrollLeft=e},e.prototype.setTaskAreaContainerScrollLeftToDate=function(e,t){this._taskAreaRender.taskAreaContainer.scrollLeft=Math.round(this._gridLayoutCalculator.getPosByDate(e))+t},e.prototype.getTaskAreaContainer=function(e){return new _.TaskAreaContainer(e,this._ganttView)},e.prototype.prepareTaskAreaContainer=function(){this._taskAreaRender.prepareTaskAreaContainer()},e.prototype.getTaskAreaContainerWidth=function(){return this._taskAreaRender.taskAreaContainer.getWidth()},e.prototype.createHighlightRowElement=function(e){this._taskAreaRender.createHighlightRowElement(e)},e.prototype.getSmallTaskWidth=function(e){return this._taskRender.getSmallTaskWidth(e)},e.prototype.createTaskElement=function(e){this._taskRender.createTaskElement(e,this._ganttView.settings.taskContentTemplate)},e.prototype.removeTaskElement=function(e){this._taskRender.removeTaskElement(e)},e.prototype.recreateTaskElement=function(e){this._taskRender.recreateTaskElement(e)},e.prototype.createDefaultTaskElement=function(e){this._taskRender.createDefaultTaskElement(e)},e.prototype.getScaleItemText=function(e,t){var i=this._gridLayoutCalculator.getScaleItemStart(e,t);return this.getScaleItemTextByStart(i,t)},e.prototype.getScaleItemTextByStart=function(e,t){return this._elementTextHelper.getScaleItemText(e,t)},e.prototype.getTextWidth=function(e){return this._elementTextHelper.getTextWidth(e)},e.prototype.getTaskVisibility=function(e){return this.gridLayoutCalculator.isTaskInRenderedRange(e)&&this._elementTextHelper.getTaskVisibility(e)},e.prototype.getTaskResourcesVisibility=function(e){return this.getTaskVisibility(e)&&!this.gridLayoutCalculator.isTaskCutByRange(e)},e.prototype.getScaleItemTextTemplate=function(e){return this._elementTextHelper.getScaleItemTextTemplate(e)},e.prototype.getTaskText=function(e){return this._elementTextHelper.getTaskText(e)},e.prototype.taskAreaManagerDetachEvents=function(){this.taskAreaManager.detachEvents()},e.prototype.attachEventsOnTask=function(e){this.taskAreaManager.attachEventsOnTask(this._taskRender.taskElements[e])},e.prototype.detachEventsOnTask=function(e){this.taskAreaManager.detachEventsOnTask(this._taskRender.taskElements[e])},e}();t.RenderHelper=y},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectorLinesRender=void 0;var n=i(16),o=i(25),r=function(){function e(e){this._connectorLinesToElementsMap={},this._renderedConnectorLines=[],this._renderHelper=e}return Object.defineProperty(e.prototype,"taskEditController",{get:function(){return this._renderHelper.taskEditController},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaContainerScrollTop",{get:function(){return this._renderHelper.ganttViewTaskAreaContainerScrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"connectorLinesToElementsMap",{get:function(){return this._connectorLinesToElementsMap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"invalidTaskDependencies",{get:function(){return this._renderHelper.invalidTaskDependencies},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showDependencies",{get:function(){return this._renderHelper.showDependencies},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedConnectorLines",{get:function(){return this._renderedConnectorLines},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this._connectorLinesToElementsMap={},this._renderedConnectorLines=[]},e.prototype.createConnectorLineElement=function(e){if(this.showDependencies){var t=e.attr["dependency-id"];if(!this.invalidTaskDependencies.some((function(e){return e.id==t}))){this.taskEditController.isDependencySelected(t)&&(e.className=e.className+" active");var i=e.className.indexOf(o.GridLayoutCalculator.arrowClassName)>-1,r=n.RenderElementUtils.create(e,null,this.taskArea,this.connectorLinesToElementsMap);return i&&this.gridLayoutCalculator.checkAndCorrectArrowElementDisplayByRange(r),r}}},e.prototype.removeConnectorLineElement=function(e){n.RenderElementUtils.remove(e,null,this.taskArea,this.connectorLinesToElementsMap)},e.prototype.recreateConnectorLineElement=function(e,t){var i=this;void 0===t&&(t=!1);var n=[];this._renderedConnectorLines=this.renderedConnectorLines.filter((function(t){return t.attr["dependency-id"]!=e||(n.push(t),!1)}));var o=n.length>0;n.forEach((function(e){i.removeConnectorLineElement(e)})),n=this.gridLayoutCalculator.updateTileToConnectorLinesMap(e),(o||t)&&n.forEach((function(e){i.createConnectorLineElement(e),i.renderedConnectorLines.push(e)}))},e.prototype.recreateConnectorLineElements=function(){var e=this,t=this.gridLayoutCalculator.getRenderedConnectorLines(this.taskAreaContainerScrollTop);n.RenderElementUtils.recreate(this.renderedConnectorLines,t,(function(t){e.removeConnectorLineElement(t)}),(function(t){e.createConnectorLineElement(t)})),this._renderedConnectorLines=t},e.prototype.updateRenderedConnectorLinesId=function(e,t){for(var i in this._renderedConnectorLines.forEach((function(i){i.attr["dependency-id"]===e&&(i.attr["dependency-id"]=t)})),this.connectorLinesToElementsMap)if(Object.prototype.hasOwnProperty.call(this.connectorLinesToElementsMap,i)){var n=this.connectorLinesToElementsMap[i];n.getAttribute("dependency-id")===e&&n.setAttribute("dependency-id",t)}this.gridLayoutCalculator.updateTileToConnectorLinesMap(e),this.gridLayoutCalculator.updateTileToConnectorLinesMap(t)},e}();t.ConnectorLinesRender=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EtalonsHelper=void 0;var n=i(3),o=i(4),r=i(58),a=i(16),s=function(){function e(e){this._renderHelper=e}return Object.defineProperty(e.prototype,"mainElement",{get:function(){return this._renderHelper.mainElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"etalonSizeValues",{get:function(){return this._renderHelper.etalonSizeValues},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleCount",{get:function(){return this._renderHelper.scaleCount},enumerable:!1,configurable:!0}),e.prototype.getScaleItemTextTemplate=function(e){return this._renderHelper.getScaleItemTextTemplate(e)},e.prototype.getHeaderHeight=function(){return this._renderHelper.getHeaderHeight()},e.prototype.getSmallTaskWidth=function(e){return this._renderHelper.getSmallTaskWidth(e)},e.prototype.createEtalonElementsContainer=function(){var e=document.createElement("DIV");return e.style.visibility="hidden",e.style.position="absolute",e.style.left="-1000px",this.mainElement.appendChild(e),e},e.prototype.createEtalonElements=function(e){var t=[],i=a.RenderElementUtils.create(new r.GridElementInfo("dx-gantt-taskWrapper"),null,e),n=a.RenderElementUtils.create(new r.GridElementInfo("dx-gantt-task"),null,i);a.RenderElementUtils.create(new r.GridElementInfo("dx-gantt-taskTitle dx-gantt-titleIn"),null,n).innerText="WWW",t.push(i);var o=a.RenderElementUtils.create(new r.GridElementInfo("dx-gantt-taskWrapper"),null,e);a.RenderElementUtils.create(new r.GridElementInfo("dx-gantt-task dx-gantt-milestone"),null,o),t.push(o);for(var s=["dx-gantt-conn-h","dx-gantt-arrow","dx-gantt-si","dx-gantt-taskTitle dx-gantt-titleOut"],l=0;l<s.length;l++){var d=new r.GridElementInfo(s[l]);t.push(a.RenderElementUtils.create(d,null,e))}var u=a.RenderElementUtils.create(new r.GridElementInfo("dx-gantt-taskWrapper"),null,e),c=a.RenderElementUtils.create(new r.GridElementInfo("dx-gantt-task dx-gantt-parent"),null,u);return a.RenderElementUtils.create(new r.GridElementInfo("dx-gantt-taskTitle dx-gantt-titleIn"),null,c).innerText="WWW",t.push(u),t},e.prototype.calculateEtalonSizeValues=function(){var e=this.createEtalonElementsContainer(),t=this.createEtalonElements(e);this.calculateEtalonSizeValuesCore(t),this.mainElement.removeChild(e)},e.prototype.calculateEtalonSizeValuesCore=function(e){this.etalonSizeValues.taskHeight=e[0].firstChild.offsetHeight,this.etalonSizeValues.milestoneWidth=e[1].firstChild.offsetWidth,this.etalonSizeValues.taskWrapperTopPadding=n.DomUtils.pxToInt(n.DomUtils.getCurrentStyle(e[0]).paddingTop),this.etalonSizeValues.connectorLineThickness=n.DomUtils.getVerticalBordersWidth(e[2]),this.etalonSizeValues.connectorArrowWidth=n.DomUtils.getHorizontalBordersWidth(e[3]);for(var t=0;t<=o.ViewType.Years;t++)e[4].innerText=this.getScaleItemTextTemplate(t),this.etalonSizeValues.scaleItemWidths[t]=e[4].offsetWidth;this.etalonSizeValues.smallTaskWidth=this.getSmallTaskWidth(n.DomUtils.getCurrentStyle(e[0].firstChild.firstChild).paddingLeft),this.etalonSizeValues.outsideTaskTextDefaultWidth=n.DomUtils.pxToFloat(n.DomUtils.getCurrentStyle(e[5]).width),this.etalonSizeValues.scaleItemHeight=this.getHeaderHeight()/this.scaleCount,this.etalonSizeValues.parentTaskHeight=e[e.length-1].firstChild.offsetHeight},e}();t.EtalonsHelper=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EtalonSizeValues=void 0;var n=function(){this.scaleItemWidths={}};t.EtalonSizeValues=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoWorkingIntervalRender=void 0;var n=i(16),o=function(){function e(e){this._noWorkingIntervalsToElementsMap={},this._renderedNoWorkingIntervals=[],this._renderHelper=e}return Object.defineProperty(e.prototype,"noWorkingIntervalsToElementsMap",{get:function(){return this._noWorkingIntervalsToElementsMap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaContainerScrollLeft",{get:function(){return this._renderHelper.ganttTaskAreaContainerScrollLeft},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedNoWorkingIntervals",{get:function(){return this._renderedNoWorkingIntervals},set:function(e){this._renderedNoWorkingIntervals=e},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this._noWorkingIntervalsToElementsMap={},this._renderedNoWorkingIntervals=[]},e.prototype.createNoWorkingIntervalElement=function(e){return n.RenderElementUtils.create(e,null,this.taskArea,this.noWorkingIntervalsToElementsMap)},e.prototype.removeNoWorkingIntervalElement=function(e){n.RenderElementUtils.remove(e,null,this.taskArea,this.noWorkingIntervalsToElementsMap)},e.prototype.recreateNoWorkingIntervalElements=function(){var e=this,t=this.gridLayoutCalculator.getRenderedNoWorkingIntervals(this.taskAreaContainerScrollLeft);n.RenderElementUtils.recreate(this.renderedNoWorkingIntervals,t,(function(t){e.removeNoWorkingIntervalElement(t)}),(function(t){e.createNoWorkingIntervalElement(t)})),this.renderedNoWorkingIntervals=t},e}();t.NoWorkingIntervalRender=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourseRender=void 0;var n=i(16),o=function(){function e(e){this._resourcesElements=[],this._renderHelper=e}return Object.defineProperty(e.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resourcesElements",{get:function(){return this._resourcesElements},enumerable:!1,configurable:!0}),e.prototype.getViewItem=function(e){return this._renderHelper.getViewItem(e)},e.prototype.getTaskResourcesVisibility=function(e){return this._renderHelper.getTaskResourcesVisibility(e)},e.prototype.createResources=function(e){for(var t=this.getViewItem(e).resources.items,i=0;i<t.length;i++)this.createResourceElement(e,t[i])},e.prototype.createResourcesWrapperElement=function(e){var t=this.gridLayoutCalculator.getTaskResourcesWrapperElementInfo(e);n.RenderElementUtils.create(t,e,this.taskArea,this.resourcesElements),this.resourcesElements[e].style.display=this.getTaskResourcesVisibility(e)?"":"none"},e.prototype.createResourceElement=function(e,t){var i=this.gridLayoutCalculator.getTaskResourceElementInfo();t.color&&(i.style.backgroundColor=t.color);var o=n.RenderElementUtils.create(i,e,this.resourcesElements[e]);o.innerText=t.text,this.gridLayoutCalculator.checkAndCorrectElementDisplayByRange(o)},e}();t.ResourseRender=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScaleRender=void 0;var n=i(3),o=i(4),r=i(15),a=i(164),s=i(16),l=function(){function e(e){this._scaleBorders=[],this._scaleElements=[],this._renderedScaleItemIndices=[],this._timeScaleAreas=new Array,this._renderHelper=e}return Object.defineProperty(e.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"etalonSizeValues",{get:function(){return this._renderHelper.etalonSizeValues},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timeScaleContainer",{get:function(){return this._timeScaleContainer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleCount",{get:function(){return this._renderHelper.scaleCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return this._renderHelper.range},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewType",{get:function(){return this._renderHelper.viewType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timeScaleAreas",{get:function(){return this._timeScaleAreas},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleElements",{get:function(){return this._scaleElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleBorders",{get:function(){return this._scaleBorders},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedColIndices",{get:function(){return this._renderHelper.renderedColIndices},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedScaleItemIndices",{get:function(){return this._renderedScaleItemIndices},enumerable:!1,configurable:!0}),e.prototype.getScaleItemText=function(e,t){return this._renderHelper.getScaleItemText(e,t)},e.prototype.getTaskAreaWidth=function(){return this._renderHelper.getTaskAreaWidth()},e.prototype.reset=function(){this._scaleBorders=[],this._scaleElements=[],this._renderedScaleItemIndices=[],this._timeScaleAreas=[],this._timeScaleContainer.innerHTML=""},e.prototype.setTimeScaleContainerScrollLeft=function(e){this._timeScaleContainer.scrollLeft=e},e.prototype.createTimeScaleContainer=function(e){var t=document.createElement("DIV");t.className="dx-gantt-tsac",t.style.height=this.etalonSizeValues.scaleItemHeight*this.scaleCount+"px",this._timeScaleContainer=t,e.appendChild(this.timeScaleContainer)},e.prototype.createTimeScaleArea=function(){var e=document.createElement("DIV");return e.className="dx-gantt-tsa",e.style.width=this.getTaskAreaWidth()+"px",e.style.height=this.etalonSizeValues.scaleItemHeight+"px",this.timeScaleContainer.appendChild(e),this.timeScaleAreas.unshift(e),e},e.prototype.createTimeScaleAreas=function(){for(var e=0;e<this.scaleCount;e++)this.createTimeScaleArea()},e.prototype.createScaleElementCore=function(e,t,i,n){return n[i]||(n[i]=[]),s.RenderElementUtils.create(t,e,this.timeScaleAreas[i],n[i])},e.prototype.createScaleElement=function(e,t,i,r){var a=this._renderHelper.getTextWidth("a"),s=this.createScaleElementCore(e,r,t,this.scaleElements);if(s.style.lineHeight=this.etalonSizeValues.scaleItemHeight+"px",(null==r?void 0:r.size.width)>5*a){var l=this.getScaleItemText(e,i);s.innerText=l,i===o.ViewType.Quarter&&(s.style.padding="0");var d=getComputedStyle(s);r.size.width-n.DomUtils.pxToInt(d.paddingLeft)-n.DomUtils.pxToInt(d.paddingRight)<this._renderHelper.getTextWidth(l)&&(s.title=l)}return s},e.prototype.createScaleBorder=function(e,t,i){var n=this.gridLayoutCalculator.getScaleBorderInfo(e,i);return this.createScaleElementCore(e,n,t,this.scaleBorders)},e.prototype.createScaleElementAndBorder=function(e,t,i){var n=this.gridLayoutCalculator.getScaleElementInfo(e,i),o=this.createScaleElement(e,t,i,n),r=this.createScaleBorder(e,t,i);this.onScaleCellPrepared(i,t,o,r,n.additionalInfo.range)},e.prototype.removeScaleElementAndBorder=function(e,t){s.RenderElementUtils.remove(null,e,this.timeScaleAreas[t],this.scaleElements[t]),s.RenderElementUtils.remove(null,e,this.timeScaleAreas[t],this.scaleBorders[t])},e.prototype.recreateScalesElements=function(){this.recreateScaleElements(this.viewType,0),this.recreateScaleElements(r.DateUtils.ViewTypeToScaleMap[this.viewType],1)},e.prototype.recreateScaleElements=function(e,t){var i=this,n=this.gridLayoutCalculator.getRenderedScaleItemIndices(e,this.renderedColIndices),o=this.renderedScaleItemIndices[e-this.viewType]||[];s.RenderElementUtils.recreate(o,n,(function(e){i.removeScaleElementAndBorder(e,t)}),(function(n){i.createScaleElementAndBorder(n,t,e)})),this.renderedScaleItemIndices[e-this.viewType]=n},Object.defineProperty(e.prototype,"dispatcher",{get:function(){return this._renderHelper.dispatcher},enumerable:!1,configurable:!0}),e.prototype.onScaleCellPrepared=function(e,t,i,n,o){var r=new a.ScaleCellPreparedArguments({scaleType:e,scaleIndex:t,range:o,scaleElement:i,separatorElement:n});this.dispatcher.notifyScaleCellPrepared(r)},e}();t.ScaleRender=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScaleCellPreparedArguments=void 0;var n=function(){function e(e){this.info=e}return Object.defineProperty(e.prototype,"scaleIndex",{get:function(){var e;return null===(e=this.info)||void 0===e?void 0:e.scaleIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleType",{get:function(){var e;return null===(e=this.info)||void 0===e?void 0:e.scaleType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){var e,t;return null===(t=null===(e=this.info)||void 0===e?void 0:e.range)||void 0===t?void 0:t.start},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){var e,t;return null===(t=null===(e=this.info)||void 0===e?void 0:e.range)||void 0===t?void 0:t.end},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleElement",{get:function(){var e;return null===(e=this.info)||void 0===e?void 0:e.scaleElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"separatorElement",{get:function(){var e;return null===(e=this.info)||void 0===e?void 0:e.separatorElement},enumerable:!1,configurable:!0}),e}();t.ScaleCellPreparedArguments=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StripLinesRender=void 0;var n=i(16),o=function(){function e(e){this._stripLinesMap=[],this._renderedStripLines=[],this._renderHelper=e}return Object.defineProperty(e.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stripLinesMap",{get:function(){return this._stripLinesMap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedStripLines",{get:function(){return this._renderedStripLines},set:function(e){this._renderedStripLines=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stripLines",{get:function(){return this._renderHelper.stripLines},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this._renderedStripLines=[]},e.prototype.recreateStripLines=function(){var e=this,t=this.gridLayoutCalculator.getRenderedStripLines(this.stripLines);n.RenderElementUtils.recreate(this.renderedStripLines,t,(function(t){n.RenderElementUtils.remove(t,null,e.taskArea,e.stripLinesMap)}),(function(t){return n.RenderElementUtils.create(t,null,e.taskArea,e.stripLinesMap)})),this.renderedStripLines=t},e}();t.StripLinesRender=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaManager=t.TOUCH_ACTION_NONE=void 0;var n=i(10),o=i(3),r=i(9),a=i(168);t.TOUCH_ACTION_NONE="dx-gantt-touch-action";var s=function(){function e(e,t,i){this._eventListener=e,this._taskArea=t,this._cellSize=i,this.attachEvents()}return e.prototype.attachEvents=function(){window.PointerEvent?this.attachPointerEvents():n.Browser.TouchUI?this.attachTouchEvents():this.attachMouseEvents(),this.attachCommonEvents()},e.prototype.detachEvents=function(){window.PointerEvent?this.detachPointerEvents():n.Browser.TouchUI?this.detachTouchEvents():this.detachMouseEvents(),this.detachCommonEvents()},e.prototype.attachEventsOnTask=function(e){window.PointerEvent?null==e||e.addEventListener("pointerenter",this.onTaskPointerEnterHandler):n.Browser.TouchUI?null==e||e.addEventListener("touchstart",this.onTaskTouchStartHandler):(null==e||e.addEventListener("mouseenter",this.onTaskMouseEnterHandler),null==e||e.addEventListener("mouseleave",this.onTaskMouseLeaveHandler))},e.prototype.detachEventsOnTask=function(e){window.PointerEvent?null==e||e.removeEventListener("pointerenter",this.onTaskPointerEnterHandler):n.Browser.TouchUI?null==e||e.removeEventListener("touchstart",this.onTaskTouchStartHandler):(null==e||e.removeEventListener("mouseenter",this.onTaskMouseEnterHandler),null==e||e.removeEventListener("mouseleave",this.onTaskMouseLeaveHandler))},e.prototype.attachCommonEvents=function(){this.taskAreaAddEventListener("contextmenu",this.onContextMenuHandler),this.taskAreaAddEventListener(r.EvtUtils.getMouseWheelEventName(),this.onMouseWheelHandler),this.taskAreaAddEventListener("scroll",this.onScrollHandler),document.addEventListener("keydown",this.onKeyDownHandler)},e.prototype.detachCommonEvents=function(){this.taskAreaRemoveEventListener("contextmenu",this.onContextMenuHandler),this.taskAreaRemoveEventListener(r.EvtUtils.getMouseWheelEventName(),this.onMouseWheelHandler),this.taskAreaRemoveEventListener("scroll",this.onScrollHandler),document.removeEventListener("keydown",this.onKeyDownHandler)},e.prototype.attachPointerEvents=function(){o.DomUtils.addClassName(this.taskArea,t.TOUCH_ACTION_NONE),document.addEventListener("pointerdown",this.onDocumentPointerDownHandler),document.addEventListener("pointerup",this.onDocumentPointerUpHandler),document.addEventListener("pointermove",this.onDocumentPointerMoveHandler),document.addEventListener("pointercancel",this.onDocumentPointerCancelUpHandler),this.taskAreaAddEventListener("pointerleave",this.onTaskAreaPointerLeaveHandler)},e.prototype.detachPointerEvents=function(){document.removeEventListener("pointerdown",this.onDocumentPointerDownHandler),document.removeEventListener("pointerup",this.onDocumentPointerUpHandler),document.removeEventListener("pointermove",this.onDocumentPointerMoveHandler),document.removeEventListener("pointercancel ",this.onDocumentPointerCancelUpHandler),this.taskAreaRemoveEventListener("pointerleave",this.onTaskAreaPointerLeaveHandler),o.DomUtils.removeClassName(this.taskArea,t.TOUCH_ACTION_NONE)},e.prototype.attachTouchEvents=function(){o.DomUtils.addClassName(this.taskArea,t.TOUCH_ACTION_NONE),document.addEventListener("touchstart",this.onTouchStartHandler),document.addEventListener("touchend",this.onTouchEndHandler),document.addEventListener("touchmove",this.onTouchMoveHandler)},e.prototype.detachTouchEvents=function(){document.removeEventListener("touchstart",this.onTouchStartHandler),document.removeEventListener("touchend",this.onTouchEndHandler),document.removeEventListener("touchmove",this.onTouchMoveHandler),o.DomUtils.removeClassName(this.taskArea,t.TOUCH_ACTION_NONE)},e.prototype.attachMouseEvents=function(){this.taskAreaAddEventListener("click",this.onMouseClickHandler),this.taskAreaAddEventListener("dblclick",this.onMouseDblClickHandler),this.taskAreaAddEventListener("mousedown",this.onMouseDownHandler),this.taskAreaAddEventListener("mouseleave",this.onTaskAreaMouseLeaveHandler),document.addEventListener("mousemove",this.onMouseMoveHandler),document.addEventListener("mouseup",this.onMouseUpHandler)},e.prototype.detachMouseEvents=function(){this.taskAreaRemoveEventListener("click",this.onMouseClickHandler),this.taskAreaRemoveEventListener("dblclick",this.onMouseDblClickHandler),this.taskAreaRemoveEventListener("mouseleave",this.onTaskAreaMouseLeaveHandler),this.taskAreaRemoveEventListener("mousedown",this.onMouseDownHandler),document.removeEventListener("mousemove",this.onMouseMoveHandler),document.removeEventListener("mouseup",this.onMouseUpHandler)},Object.defineProperty(e.prototype,"stateController",{get:function(){var e;return null!==(e=this._stateController)&&void 0!==e||(this._stateController=new a.TaskAreaStateController(this._eventListener,this._taskArea,this._cellSize)),this._stateController},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskArea",{get:function(){return this._taskArea},enumerable:!1,configurable:!0}),e.prototype.taskAreaAddEventListener=function(e,t){this.taskArea.addEventListener(e,t)},e.prototype.taskAreaRemoveEventListener=function(e,t){this.taskArea.removeEventListener(e,t)},Object.defineProperty(e.prototype,"onContextMenuHandler",{get:function(){var e,t=this;return null!==(e=this._onContextMenuHandler)&&void 0!==e||(this._onContextMenuHandler=function(e){t.stateController.onContextMenu(e)}),this._onContextMenuHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onMouseWheelHandler",{get:function(){var e,t=this;return null!==(e=this._onMouseWheelHandler)&&void 0!==e||(this._onMouseWheelHandler=function(e){t.stateController.onMouseWheel(e)}),this._onMouseWheelHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onScrollHandler",{get:function(){var e,t=this;return null!==(e=this._onScrollHandler)&&void 0!==e||(this._onScrollHandler=function(e){t.stateController.onScroll(e)}),this._onScrollHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onKeyDownHandler",{get:function(){var e,t=this;return null!==(e=this._onKeyDownHandler)&&void 0!==e||(this._onKeyDownHandler=function(e){t.stateController.onKeyDown(e)}),this._onKeyDownHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTaskPointerEnterHandler",{get:function(){var e,t=this;return null!==(e=this._onTaskPointerEnterHandler)&&void 0!==e||(this._onTaskPointerEnterHandler=function(e){t.stateController.onTaskPointerEnter(e)}),this._onTaskPointerEnterHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTaskAreaPointerLeaveHandler",{get:function(){var e,t=this;return null!==(e=this._onTaskAreaPointerLeaveHandler)&&void 0!==e||(this._onTaskAreaPointerLeaveHandler=function(e){t.stateController.onTaskAreaPointerLeave(e)}),this._onTaskAreaPointerLeaveHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onDocumentPointerDownHandler",{get:function(){var e,t=this;return null!==(e=this._onDocumentPointerDownHandler)&&void 0!==e||(this._onDocumentPointerDownHandler=function(e){t.stateController.onDocumentPointerDown(e)}),this._onDocumentPointerDownHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onDocumentPointerUpHandler",{get:function(){var e,t=this;return null!==(e=this._onDocumentPointerUpHandler)&&void 0!==e||(this._onDocumentPointerUpHandler=function(e){t.stateController.onDocumentPointerUp(e)}),this._onDocumentPointerUpHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onDocumentPointerCancelUpHandler",{get:function(){var e,t=this;return null!==(e=this._onDocumentPointerCancelHandler)&&void 0!==e||(this._onDocumentPointerCancelHandler=function(e){t.stateController.onDocumentPointerCancel(e)}),this._onDocumentPointerCancelHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onDocumentPointerMoveHandler",{get:function(){var e,t=this;return null!==(e=this._onDocumentPointerMoveHandler)&&void 0!==e||(this._onDocumentPointerMoveHandler=function(e){t.stateController.onDocumentPointerMove(e)}),this._onDocumentPointerMoveHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTouchStartHandler",{get:function(){var e,t=this;return null!==(e=this._onTouchStartHandler)&&void 0!==e||(this._onTouchStartHandler=function(e){t.stateController.onTouchStart(e)}),this._onTouchStartHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTouchEndHandler",{get:function(){var e,t=this;return null!==(e=this._onTouchEndHandler)&&void 0!==e||(this._onTouchEndHandler=function(e){t.stateController.onTouchEnd(e)}),this._onTouchEndHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTouchMoveHandler",{get:function(){var e,t=this;return null!==(e=this._onTouchMoveHandler)&&void 0!==e||(this._onTouchMoveHandler=function(e){t.stateController.onTouchMove(e)}),this._onTouchMoveHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTaskTouchStartHandler",{get:function(){var e,t=this;return null!==(e=this._onTaskTouchStartHandler)&&void 0!==e||(this._onTaskTouchStartHandler=function(e){t.stateController.onTaskTouchStart(e)}),this._onTaskTouchStartHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onMouseClickHandler",{get:function(){var e,t=this;return null!==(e=this._onMouseClickHandler)&&void 0!==e||(this._onMouseClickHandler=function(e){t.stateController.onClick(e)}),this._onMouseClickHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDblClickHandler",{get:function(){var e,t=this;return null!==(e=this._onMouseDblClickHandler)&&void 0!==e||(this._onMouseDblClickHandler=function(e){t.stateController.onDblClick(e)}),this._onMouseDblClickHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDownHandler",{get:function(){var e,t=this;return null!==(e=this._onMouseDownHandler)&&void 0!==e||(this._onMouseDownHandler=function(e){t.stateController.onMouseDown(e)}),this._onMouseDownHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTaskAreaMouseLeaveHandler",{get:function(){var e,t=this;return null!==(e=this._onTaskAreaMouseLeaveHandler)&&void 0!==e||(this._onTaskAreaMouseLeaveHandler=function(e){t.stateController.onTaskAreaMouseLeave(e)}),this._onTaskAreaMouseLeaveHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onMouseMoveHandler",{get:function(){var e,t=this;return null!==(e=this._onMouseMoveHandler)&&void 0!==e||(this._onMouseMoveHandler=function(e){t.stateController.onMouseMove(e)}),this._onMouseMoveHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onMouseUpHandler",{get:function(){var e,t=this;return null!==(e=this._onMouseUpHandler)&&void 0!==e||(this._onMouseUpHandler=function(e){t.stateController.onMouseUp(e)}),this._onMouseUpHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTaskMouseEnterHandler",{get:function(){var e,t=this;return null!==(e=this._onTaskMouseEnterHandler)&&void 0!==e||(this._onTaskMouseEnterHandler=function(e){t.stateController.onTaskElementHover(e)}),this._onTaskMouseEnterHandler},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTaskMouseLeaveHandler",{get:function(){var e,t=this;return null!==(e=this._onTaskMouseLeaveHandler)&&void 0!==e||(this._onTaskMouseLeaveHandler=function(e){t.stateController.onTaskElementLeave(e)}),this._onTaskMouseLeaveHandler},enumerable:!1,configurable:!0}),e.DBLCLICK_INTERVAL=300,e.MS_POINTER_ACTIVE_CLASS="ms-pointer-active",e}();t.TaskAreaManager=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TouchUtils=void 0;var n=i(10),o=i(1),r=function(){function e(){}return e.onEventAttachingToDocument=function(t,i){return!n.Browser.MacOSMobilePlatform||!e.isTouchEventName(t)||(e.documentTouchHandlers[t]||(e.documentTouchHandlers[t]=[]),e.documentTouchHandlers[t].push(i),e.documentEventAttachingAllowed)},e.isTouchEventName=function(e){return n.Browser.WebKitTouchUI&&(e.indexOf("touch")>-1||e.indexOf("gesture")>-1)},e.isTouchEvent=function(e){return n.Browser.WebKitTouchUI&&o.isDefined(e.changedTouches)},e.getEventX=function(e){return n.Browser.IE?e.pageX:e.changedTouches[0].pageX},e.getEventY=function(e){return n.Browser.IE?e.pageY:e.changedTouches[0].pageY},e.touchMouseDownEventName=n.Browser.WebKitTouchUI?"touchstart":n.Browser.Edge&&n.Browser.MSTouchUI&&window.PointerEvent?"pointerdown":"mousedown",e.touchMouseUpEventName=n.Browser.WebKitTouchUI?"touchend":n.Browser.Edge&&n.Browser.MSTouchUI&&window.PointerEvent?"pointerup":"mouseup",e.touchMouseMoveEventName=n.Browser.WebKitTouchUI?"touchmove":n.Browser.Edge&&n.Browser.MSTouchUI&&window.PointerEvent?"pointermove":"mousemove",e.msTouchDraggableClassName="dxMSTouchDraggable",e.documentTouchHandlers={},e.documentEventAttachingAllowed=!0,e}();t.TouchUtils=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaStateController=void 0;var n=i(5),o=i(3),r=i(9),a=i(46),s=i(4),l=i(170),d=i(173),u=i(29),c=i(174),h=i(13),p=i(175),f=i(177),g=i(178),m=function(){function e(e,t,i){var o=this;this.position=new n.Point(-1,-1),this._pointers={},this._listener=e,this._listener.setHandler(h.TaskAreaStateEventNames.STATE_EXIT,(function(){o.switchToDefaultState()})),this._listener.setHandler(h.TaskAreaStateEventNames.GET_POINTERS_INFO,(function(e){return o.getPointersInfo(e.triggerEvent)})),this._taskArea=t,this._cellSize=i,this.switchToDefaultState()}return e.prototype.onKeyDown=function(e){this._state.onKeyDown(e)},e.prototype.onScroll=function(e){this._state.onScroll(e)},e.prototype.onContextMenu=function(e){this._state.onContextMenu(e)},e.prototype.onMouseWheel=function(e){e.ctrlKey&&(e.preventDefault(),e.stopPropagation(),this.switchState(p.TaskAreaZoomState)),this._state.onMouseWheel(e)},Object.defineProperty(e.prototype,"currentState",{get:function(){return this._state},enumerable:!1,configurable:!0}),e.prototype.onTaskPointerEnter=function(e){this._state.onTaskPointerEnter(e)},e.prototype.onTaskAreaPointerLeave=function(e){this._state.onTaskAreaLeave(e)},e.prototype.onDocumentPointerCancel=function(e){this._clearPointerInfo(e)},e.prototype.onDocumentPointerDown=function(e){this._updatePinterInfo(e),this.toggleStateOnPointerDown(e),this._state.onDocumentPointerDown(e)},e.prototype.onDocumentPointerMove=function(e){this._updatePinterInfo(e),this.toggleStateOnPointerMove(e),this._state.onDocumentPointerMove(e)},e.prototype.onDocumentPointerUp=function(e){this._clearPointerInfo(e),this._state.onDocumentPointerUp(e)},e.prototype.onTaskTouchStart=function(e){this._state.onTaskTouchStart(e)},e.prototype.onTouchStart=function(e){this.toggleStateOnPointerDown(e),this._state.onTouchStart(e)},e.prototype.onTouchEnd=function(e){this._state.onTouchEnd(e)},e.prototype.onTouchMove=function(e){this.toggleStateOnPointerMove(e),this._state.onTouchMove(e)},e.prototype.onClick=function(e){this._state.onClick(e)},e.prototype.onDblClick=function(e){this._state.onDblClick(e)},e.prototype.onTaskAreaMouseLeave=function(e){this._state.onTaskAreaLeave(e)},e.prototype.onTaskElementHover=function(e){this._state.onTaskHover(e)},e.prototype.onTaskElementLeave=function(e){this._state.onTaskLeave(e)},e.prototype.onMouseUp=function(e){this._state.onMouseUp(e)},e.prototype.onMouseMove=function(e){this._state.onMouseMove(e)},e.prototype.onMouseDown=function(e){switch(this.getTaskAreaEventSource(e)){case s.TaskAreaEventSource.TaskArea:this.processMouseDownOnTaskArea(e);break;case s.TaskAreaEventSource.TaskEdit_Frame:this.switchState(g.TaskMoveState);break;case s.TaskAreaEventSource.TaskEdit_Progress:case s.TaskAreaEventSource.TaskEdit_Start:case s.TaskAreaEventSource.TaskEdit_End:this.switchState(f.TaskEditState);break;case s.TaskAreaEventSource.TaskEdit_DependencyStart:case s.TaskAreaEventSource.TaskEdit_DependencyFinish:this.switchState(d.TaskAreaDependencyState)}this._state.onMouseDown(e)},Object.defineProperty(e.prototype,"taskArea",{get:function(){return this._taskArea},enumerable:!1,configurable:!0}),e.prototype.switchToDefaultState=function(){this._state=new l.TaskAreaDefaultState(this._listener,this.taskArea,this._cellSize)},e.prototype.switchState=function(e){this._state instanceof e||(this._state&&this._state.finish(),this._state=new e(this._listener,this.taskArea,this._cellSize),this._state.start())},e.prototype.processMouseDownOnTaskArea=function(e){r.EvtUtils.isLeftButtonPressed(e)&&!u.TaskAreaDomHelper.isConnectorLine(e)&&this.switchState(c.TaskAreaScrollState)},e.prototype.toggleStateOnPointerDown=function(e){var t=this.toggleStateWhenMultiOrOutsideTouch(e);if(this.position=new n.Point(r.EvtUtils.getEventX(e),r.EvtUtils.getEventY(e)),!t&&this._canStartDrag(e))switch(this.getTaskAreaEventSource(e)){case s.TaskAreaEventSource.TaskEdit_DependencyStart:case s.TaskAreaEventSource.TaskEdit_DependencyFinish:this.switchState(d.TaskAreaDependencyState);break;case s.TaskAreaEventSource.TaskEdit_Progress:case s.TaskAreaEventSource.TaskEdit_Start:case s.TaskAreaEventSource.TaskEdit_End:this.switchState(f.TaskEditState)}},e.prototype.toggleStateOnPointerMove=function(e){var t=this.toggleStateWhenMultiOrOutsideTouch(e),i=Math.abs(this.position.x-r.EvtUtils.getEventX(e))>1||Math.abs(this.position.y-r.EvtUtils.getEventY(e))>1;if(!t&&i&&this._canStartDrag(e)&&this._state instanceof l.TaskAreaDefaultState)switch(this.getTaskAreaEventSource(e)){case s.TaskAreaEventSource.TaskArea:this.checkEventInTaskEditFrameArea(e)?this.switchState(g.TaskMoveState):this.switchState(c.TaskAreaScrollState);break;case s.TaskAreaEventSource.TaskEdit_Frame:this.isTaskUpdateDisabled()?this.switchState(c.TaskAreaScrollState):this.switchState(g.TaskMoveState);break;case s.TaskAreaEventSource.TaskEdit_Progress:case s.TaskAreaEventSource.TaskEdit_Start:case s.TaskAreaEventSource.TaskEdit_End:this.switchState(f.TaskEditState)}},e.prototype.toggleStateWhenMultiOrOutsideTouch=function(e){var t=this._getActivePointersCount(e),i=!this.isInTaskArea(e),n=t>=2||i;return t>2||i?this.switchState(l.TaskAreaDefaultState):2===t&&this.switchState(p.TaskAreaZoomState),n},e.prototype.checkEventInTaskEditFrameArea=function(e){var t,i,n=this.getTaskEditFrameElement();if(this.isTaskUpdateDisabled()||!n)return!1;var o=(null==e?void 0:e.clientX)||(null===(t=null==e?void 0:e.touches[0])||void 0===t?void 0:t.clientX),r=(null==e?void 0:e.clientY)||(null===(i=null==e?void 0:e.touches[0])||void 0===i?void 0:i.clientY),a=n.getBoundingClientRect();return o>=a.left&&o<=a.left+a.width&&r>=a.top&&r<=a.top+a.height},e.prototype.isTaskUpdateDisabled=function(){return"false"===this._taskArea.getAttribute("task-edit-enabled")},e.prototype.isInTaskArea=function(e){return o.DomUtils.isItParent(this._taskArea,r.EvtUtils.getEventSource(e))},e.prototype.getTaskEditFrameElement=function(){return this._taskArea.getElementsByClassName(a.TaskEditController.CLASSNAMES.TASK_EDIT_FRAME)[0]},e.prototype._updatePinterInfo=function(e){var t=e.pointerId;this._pointers[t]={pageX:e.pageX,pageY:e.pageY,pointerType:e.pointerType}},e.prototype._clearPointerInfo=function(e){var t=e.pointerId;delete this._pointers[t]},e.prototype.isTouchEvent=function(e){return u.TaskAreaDomHelper.isTouchEvent(e)},e.prototype.isPointerEvent=function(e){return u.TaskAreaDomHelper.isPointerEvent(e)},e.prototype._getActivePointersCount=function(e){var t=this;return this.isTouchEvent(e)?e.touches.length:Object.keys(this._pointers).filter((function(i){return t._pointers[i].pointerType===e.pointerType})).length},e.prototype.getPointersInfo=function(e){var t=this,i=null==e?void 0:e.pointerType,n=Object.keys(this._pointers).map((function(e){return t._pointers[e]}));return i&&(n=n.filter((function(e){return e.pointerType===i}))),n},e.prototype._canStartDrag=function(e){return!(this._getActivePointersCount(e)>1)&&(!u.TaskAreaDomHelper.isMousePointer(e)||1===e.buttons)&&!u.TaskAreaDomHelper.isConnectorLine(e)},e.prototype.getTaskAreaEventSource=function(e){return u.TaskAreaDomHelper.getEventSource(r.EvtUtils.getEventSource(e))},e}();t.TaskAreaStateController=m},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskEditTooltip=void 0;var n=i(3),o=function(){function e(e,t,i){this.parentElement=e,this.cultureInfo=i,this.tooltipSettings=t}return Object.defineProperty(e.prototype,"baseElement",{get:function(){return this._baseElement||this.createTooltipContainer(),this._baseElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headerHeight",{get:function(){return this.tooltipSettings.getHeaderHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskTooltipContentTemplate",{get:function(){return this.tooltipSettings.getTaskTooltipContentTemplate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskProgressTooltipContentTemplate",{get:function(){return this.tooltipSettings.getTaskProgressTooltipContentTemplate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskTimeTooltipContentTemplate",{get:function(){return this.tooltipSettings.getTaskTimeTooltipContentTemplate},enumerable:!1,configurable:!0}),e.prototype.destroyTemplate=function(e){this.tooltipSettings.destroyTemplate(e)},e.prototype.formatDate=function(e){return this.tooltipSettings.formatDate(e)},e.prototype.createTooltipContainer=function(){this._baseElement=document.createElement("DIV"),this._baseElement.className=e.CLASSNAMES.TASK_EDIT_PROGRESS_STATUS,this.parentElement.appendChild(this._baseElement)},e.prototype.setDefaultTooltip=function(t){this.defaultTooltip=document.createElement("DIV"),this.defaultTooltip.className=e.CLASSNAMES.TASK_EDIT_TOOLTIP_DEFAULT;var i=document.createElement("DIV");i.className=e.CLASSNAMES.TASK_EDIT_TASK_TITLE;var n=document.createElement("SPAN");if(i.appendChild(n),this.defaultTooltip.appendChild(i),n.innerText=t.title,this.defaultTooltip.appendChild(this.getTimeContent(t.start,t.end)),!isNaN(t.progress)){var o=document.createElement("DIV");o.className=e.CLASSNAMES.TASK_EDIT_PROGRESS_STATUS_TIME;var r=document.createElement("SPAN"),a=document.createElement("SPAN");o.appendChild(r),o.appendChild(a),this.defaultTooltip.appendChild(o),r.innerText=(this.cultureInfo.progress?this.cultureInfo.progress:"Progress")+": ",a.innerText=t.progress+"%"}this.baseElement.appendChild(this.defaultTooltip)},e.prototype.setDefaultProgressTooltip=function(t){this.defaultTooltip=document.createElement("DIV"),this.defaultTooltip.className=e.CLASSNAMES.TASK_EDIT_TOOLTIP_DEFAULT,this.defaultTooltip.innerText=t+"%",this.baseElement.appendChild(this.defaultTooltip)},e.prototype.setDefaultTimeTooltip=function(t,i){this.defaultTooltip=document.createElement("DIV"),this.defaultTooltip.className=e.CLASSNAMES.TASK_EDIT_TOOLTIP_DEFAULT,this.defaultTooltip.appendChild(this.getTimeContent(t,i)),this.baseElement.appendChild(this.defaultTooltip)},e.prototype.showInfo=function(e,t,i){var n=this;void 0===i&&(i=0);var o=this.taskTooltipContentTemplate;this.destroyTemplate(this.baseElement),o?o(this.baseElement,e,(function(){n.showTooltip(t,!1,i)})):(this.setDefaultTooltip(e),this.showTooltip(t,!1,i))},e.prototype.showProgress=function(e,t){var i=this,n=this.taskProgressTooltipContentTemplate;this.destroyTemplate(this.baseElement),n?n(this.baseElement,{progress:e},(function(){i.showTooltip(t)})):(this.setDefaultProgressTooltip(e),this.show(t))},e.prototype.showTime=function(e,t,i){var n=this,o=this.taskTimeTooltipContentTemplate;this.destroyTemplate(this.baseElement),o?o(this.baseElement,{start:e,end:t},(function(){n.showTooltip(i)})):(this.setDefaultTimeTooltip(e,t),this.show(i))},e.prototype.showTooltip=function(e,t,i){var n,o=this;if(void 0===t&&(t=!0),void 0===i&&(i=0),null===(n=this.baseElement)||void 0===n?void 0:n.innerHTML){var r=function(){o.show(e,t)};i?this.timerId=setTimeout(r,i):r()}},e.prototype.show=function(t,i){var o,r,a,s,l=this;void 0===i&&(i=!0),null===(o=this.defaultTooltip)||void 0===o||o.classList.remove(e.CLASSNAMES.TASK_EDIT_TOOLTIP_ARROW_AFTER),null===(r=this.defaultTooltip)||void 0===r||r.classList.remove(e.CLASSNAMES.TASK_EDIT_TOOLTIP_ARROW_BEFORE),this.baseElement.style.display="block";var d=n.DomUtils.getAbsolutePositionY(this.parentElement),u=t-n.DomUtils.getAbsolutePositionX(this.parentElement)-10,c=d-this.headerHeight-n.DomUtils.getDocumentScrollTop()-15,h=this.baseElement.clientHeight>c||this.baseElement.clientHeight>this.parentElement.offsetTop,p=-this.baseElement.clientHeight-5;h?(p=this.parentElement.clientHeight+5,null===(a=this.defaultTooltip)||void 0===a||a.classList.add(e.CLASSNAMES.TASK_EDIT_TOOLTIP_ARROW_AFTER)):null===(s=this.defaultTooltip)||void 0===s||s.classList.add(e.CLASSNAMES.TASK_EDIT_TOOLTIP_ARROW_BEFORE),this.baseElement.style.left=u+"px",this.baseElement.style.top=p+"px",i&&(this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout((function(){l.hide()}),1500))},e.prototype.hide=function(){this.baseElement.style.display="none",this.destroyTemplate(this.baseElement),clearTimeout(this.timerId)},e.prototype.getTimeContent=function(t,i){var n=document.createElement("TABLE");n.className=e.CLASSNAMES.TASK_EDIT_PROGRESS_STATUS_TIME;var o=document.createElement("TBODY");n.appendChild(o);var r=document.createElement("TR"),a=document.createElement("TD"),s=document.createElement("TD"),l=document.createElement("TR"),d=document.createElement("TD"),u=document.createElement("TD");return r.appendChild(a),r.appendChild(s),l.appendChild(d),l.appendChild(u),o.appendChild(r),o.appendChild(l),a.innerText=(this.cultureInfo.start?this.cultureInfo.start:"Start")+": ",s.innerText=this.formatDate(t),d.innerText=(this.cultureInfo.end?this.cultureInfo.end:"End")+": ",u.innerText=this.formatDate(i),n},e.CLASSNAMES={TASK_EDIT_PROGRESS_STATUS:"dx-gantt-task-edit-tooltip",TASK_EDIT_TOOLTIP_DEFAULT:"dx-gantt-task-edit-tooltip-default",TASK_EDIT_TASK_TITLE:"dx-gantt-task-title",TASK_EDIT_PROGRESS_STATUS_TIME:"dx-gantt-status-time",TASK_EDIT_TOOLTIP_ARROW_BEFORE:"dx-gantt-task-edit-tooltip-before",TASK_EDIT_TOOLTIP_ARROW_AFTER:"dx-gantt-task-edit-tooltip-after"},e}();t.TaskEditTooltip=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaDefaultState=void 0;var n=i(0),o=i(9),r=i(29),a=i(30),s=i(13),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.finish=function(){this.clearTimers(),this.raiseEvent(s.TaskAreaStateEventNames.CONTEXTMENU_HIDE)},t.prototype.onMouseDownInternal=function(e){this.onPointerDownBase(e)},t.prototype.onDocumentPointerDownInternal=function(e){this.onPointerDownBase(e)},t.prototype.onDocumentPointerUpInternal=function(e){this.onPointerUpBase(e)},t.prototype.onDocumentPointerMoveInternal=function(e){this.clearTimers()},t.prototype.onTouchStartInternal=function(e){this.onPointerDownBase(e)},t.prototype.onTouchEndInternal=function(e){this.onPointerUpBase(e)},t.prototype.onTouchMoveInternal=function(e){this.clearTimers()},t.prototype.onPointerDownBase=function(e){var i=this;e.preventDefault(),this._lastTouchRowIndex=this.getClickedRowIndex(e),(this.isPointerEvent(e)?r.TaskAreaDomHelper.isMousePointer(e):this.isMouseEvent(e))?this.changeSelectionOnTouchDown(e):(setTimeout((function(){r.TaskAreaDomHelper.isMousePointer(e)||i.raiseEvent(s.TaskAreaStateEventNames.CONTEXTMENU_HIDE,e),i.changeSelectionOnTouchDown(e)}),0),clearTimeout(this._contextMenuTimer),this._contextMenuTimer=setTimeout((function(){return i.showContextMenuOnTouchDown(e)}),t.defaultContextMenuTimeout))},t.prototype.onPointerUpBase=function(e){var i=this;if(clearTimeout(this._contextMenuTimer),e.preventDefault(),this.canToEmulateClick(e)){var n=this.getClickedRowIndex(e),o=new Date;if(this._lastEmulatedClickTime)o.getTime()-this._lastEmulatedClickTime.getTime()<t.defaultDblClickTimeout&&(this.raiseEvent(s.TaskAreaStateEventNames.TASK_AREA_DBLCLICK,e,n),delete this._lastEmulatedClickTime);else{var a=!this.raiseEvent(s.TaskAreaStateEventNames.TASK_AREA_CLICK,e,n);clearTimeout(this._dblClickClearTimer),r.TaskAreaDomHelper.isMousePointer(e)&&this.raiseEvent(s.TaskAreaStateEventNames.CONTEXTMENU_HIDE,e),a||(this._lastEmulatedClickTime=o,this._dblClickClearTimer=setTimeout((function(){delete i._lastEmulatedClickTime}),t.defaultDblClickClearTimeout))}}},t.prototype.canToEmulateClick=function(e){var t=!r.TaskAreaDomHelper.isConnectorLine(e)&&this.getClickedRowIndex(e)===this._lastTouchRowIndex;return t&&r.TaskAreaDomHelper.isMousePointer(e)&&t&&(t=2!==e.button),t},t.prototype.changeSelectionOnTouchDown=function(e){var t=r.TaskAreaDomHelper.isConnectorLine(e);t||this.raiseTaskSelection(e,this.getClickedRowIndex(e)),this.raiseDependencySelection(e,t?o.EvtUtils.getEventSource(e).getAttribute("dependency-id"):null)},t.prototype.showContextMenuOnTouchDown=function(e){var t=r.TaskAreaDomHelper.isConnectorLine(e);this.raiseEvent(s.TaskAreaStateEventNames.CONTEXTMENU_SHOW,e,this.getClickedRowIndex(e),{type:t?"dependency":"task"})},t.prototype.clearTimers=function(){clearTimeout(this._contextMenuTimer),clearTimeout(this._dblClickClearTimer),delete this._lastEmulatedClickTime},t.defaultContextMenuTimeout=3e3,t.defaultDblClickTimeout=500,t.defaultDblClickClearTimeout=t.defaultDblClickTimeout+100,t}(a.TaskAreaStateBase);t.TaskAreaDefaultState=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EncodeUtils=void 0;var n=function(){function e(){}return e.encodeHtml=function(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},e.decodeHtml=function(e){return e.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">")},e.prepareTextForRequest=function(e){return e.replace(/%/g,"%25").replace(/&/g,"%26amp;").replace(/\+/g,"%2B").replace(/</g,"%26lt;").replace(/>/g,"%26gt;").replace(/"/g,"%26quot;")},e.prepareTextForCallBackRequest=function(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},e.decodeViaTextArea=function(e){var t=document.createElement("TEXTAREA");return t.innerHTML=e,t.value},e}();t.EncodeUtils=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaEventArgs=void 0;var n=i(1),o=function(e,t,i,o){this.rowIndex=-1,this.info={},this.eventName=e,this.triggerEvent=t,(0,n.isDefined)(i)&&(this.rowIndex=i),o&&(this.info=o)};t.TaskAreaEventArgs=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaDependencyState=t.dependencyMap=void 0;var n=i(0),o=i(5),r=i(3),a=i(9),s=i(23),l=i(4),d=i(29),u=i(30),c=i(13);t.dependencyMap=[],t.dependencyMap[l.TaskAreaEventSource.TaskEdit_DependencyStart]=[],t.dependencyMap[l.TaskAreaEventSource.TaskEdit_DependencyFinish]=[],t.dependencyMap[l.TaskAreaEventSource.TaskEdit_DependencyStart][l.TaskAreaEventSource.Successor_DependencyStart]=s.DependencyType.SS,t.dependencyMap[l.TaskAreaEventSource.TaskEdit_DependencyStart][l.TaskAreaEventSource.Successor_DependencyFinish]=s.DependencyType.SF,t.dependencyMap[l.TaskAreaEventSource.TaskEdit_DependencyFinish][l.TaskAreaEventSource.Successor_DependencyStart]=s.DependencyType.FS,t.dependencyMap[l.TaskAreaEventSource.TaskEdit_DependencyFinish][l.TaskAreaEventSource.Successor_DependencyFinish]=s.DependencyType.FF;var h=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(i,e),i.prototype.onMouseUp=function(e){this.onDependencyEndByMouse(e)},i.prototype.onMouseDownInternal=function(e){this.onDependencyStart(e)},i.prototype.onMouseMoveInternal=function(e){this.onDependencyMoveStep(e)},i.prototype.onTouchStartInternal=function(e){this.onDependencyStart(e)},i.prototype.onTouchEndInternal=function(e){this.onDependencyEndByTouch(e)},i.prototype.onTouchMoveInternal=function(e){this.onDependencyMoveStep(e)},i.prototype.onDocumentPointerDownInternal=function(e){this.onDependencyStart(e)},i.prototype.onDocumentPointerUpInternal=function(e){this.onDependencyEndByTouch(e)},i.prototype.onDocumentPointerMoveInternal=function(e){this.onDependencyMoveStep(e)},i.prototype.onDependencyStart=function(e){var t=a.EvtUtils.getEventSource(e);this.source=d.TaskAreaDomHelper.getEventSource(t);var i=this.getRelativePos(new o.Point(r.DomUtils.getAbsolutePositionX(t)+t.clientWidth/2,r.DomUtils.getAbsolutePositionY(t)+t.clientHeight/2));this.raiseEvent(c.TaskAreaStateEventNames.DEPENDENCY_START,e,null,{pos:i})},i.prototype.onDependencyMoveStep=function(e){e.preventDefault();var t=this.getRelativePos(new o.Point(a.EvtUtils.getEventX(e),a.EvtUtils.getEventY(e)));this.raiseEvent(c.TaskAreaStateEventNames.DEPENDENCY_PROCESS,e,this.getClickedRowIndex(e),{pos:t})},i.prototype.onDependencyEndByMouse=function(e){var i=d.TaskAreaDomHelper.getEventSource(a.EvtUtils.getEventSource(e)),n=i===l.TaskAreaEventSource.Successor_DependencyStart||i===l.TaskAreaEventSource.Successor_DependencyFinish?t.dependencyMap[this.source][i]:null;this.processEndDependency(e,n)},i.prototype.onDependencyEndByTouch=function(e){var i=this.raiseEvent(c.TaskAreaStateEventNames.GET_DEPENDENCY_POINTS,e),n=this.getRelativePos(i.successorStart),r=this.getRelativePos(i.successorFinish),s=this.getRelativePos(new o.Point(a.EvtUtils.getEventX(e),a.EvtUtils.getEventY(e))),d=this.isTouchNearby(s,n)?l.TaskAreaEventSource.Successor_DependencyStart:this.isTouchNearby(s,r)?l.TaskAreaEventSource.Successor_DependencyFinish:null,u=d===l.TaskAreaEventSource.Successor_DependencyStart||d===l.TaskAreaEventSource.Successor_DependencyFinish?t.dependencyMap[this.source][d]:null;this.processEndDependency(e,u)},i.prototype.onTaskAreaLeaveInternal=function(e){this.processEndDependency(e,null)},i.prototype.processEndDependency=function(e,t){this.raiseEvent(c.TaskAreaStateEventNames.DEPENDENCY_END,e,null,{type:t}),this.raiseEvent(c.TaskAreaStateEventNames.STATE_EXIT,e)},i.prototype.isTouchNearby=function(e,t){return Math.abs(t.x-e.x)<=20&&Math.abs(t.y-e.y)<=20},i}(u.TaskAreaStateBase);t.TaskAreaDependencyState=h},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaScrollState=void 0;var n=i(0),o=i(30),r=i(13),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._isStarted=!1,t}return n.__extends(t,e),t.prototype.finish=function(){this.raiseEvent(r.TaskAreaStateEventNames.TASK_AREA_END_MOVE,null)},t.prototype.onMouseUp=function(e){this.onEnd(e)},t.prototype.onMouseDownInternal=function(e){this.onBeforeStart(e)},t.prototype.onMouseMoveInternal=function(e){this.onMove(e)},t.prototype.onDocumentPointerUpInternal=function(e){this.onEnd(e)},t.prototype.onDocumentPointerMoveInternal=function(e){this.onMoveByPointer(e)},t.prototype.onTouchEndInternal=function(e){this.onEnd(e)},t.prototype.onTouchMoveInternal=function(e){this.onMoveByPointer(e)},t.prototype.onBeforeStart=function(e){e.preventDefault(),this.raiseDependencySelection(e,null),this.raiseEvent(r.TaskAreaStateEventNames.TASK_EDIT_END,e),this.raiseEvent(r.TaskAreaStateEventNames.TASK_AREA_START_MOVE,e),this._isStarted=!0},t.prototype.onMoveByPointer=function(e){this._isStarted?this.onMove(e):this.onBeforeStart(e)},t.prototype.onMove=function(e){e.preventDefault(),this.raiseEvent(r.TaskAreaStateEventNames.TASK_AREA_PROCESS_MOVE,e)},t.prototype.onEnd=function(e){e.preventDefault(),this.raiseEvent(r.TaskAreaStateEventNames.TASK_AREA_END_MOVE,e),this.raiseEvent(r.TaskAreaStateEventNames.STATE_EXIT,e),this._isStarted=!1},t}(o.TaskAreaStateBase);t.TaskAreaScrollState=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaZoomState=void 0;var n=i(0),o=i(5),r=i(9),a=i(176),s=i(30),l=i(13),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._isInZooming=!1,t}return n.__extends(t,e),t.prototype.onMouseWheel=function(e){e.ctrlKey&&(e.preventDefault(),e.stopPropagation(),this._isInZooming||this.processZoom(e,r.EvtUtils.getWheelDelta(e)>0,50))},t.prototype.onDocumentPointerUpInternal=function(e){this.onEndZoom(e)},t.prototype.onDocumentPointerMoveInternal=function(e){this.onTouchZoom(e)},t.prototype.onTouchEndInternal=function(e){this.onEndZoom(e)},t.prototype.onTouchMoveInternal=function(e){this.onTouchZoom(e)},t.prototype.onTouchZoom=function(e){var t;if(e.stopPropagation(),e.preventDefault(),!this._isInZooming){var i=this.getTouchDistance(e);null!==(t=this.prevDistance)&&void 0!==t||(this.prevDistance=i);var n=this.prevDistance-i;Math.abs(n)>3&&(this.processZoom(e,n>0,1e3),this.prevDistance=i)}},t.prototype.processZoom=function(e,t,i){var n=this;this._isInZooming=!0,setTimeout((function(){n._isInZooming=!1}),i);var o=t?l.TaskAreaStateEventNames.TASK_AREA_ZOOM_IN:l.TaskAreaStateEventNames.TASK_AREA_ZOOM_OUT;this.raiseEvent(o,e,null,{leftPos:this.getLeftPosition(e)})},t.prototype.onEndZoom=function(e){this.prevDistance=null,this.raiseEvent(l.TaskAreaStateEventNames.STATE_EXIT,e)},t.prototype.getTouchDistance=function(e){var t=this.GetTouchPoints(e);return this.getDistance(t[0],t[1])},t.prototype.GetTouchPoints=function(e){var t,i,n,r;if(this.isTouchEvent(e)){var a=e.touches;return[new o.Point(a[0].pageX,a[0].pageY),new o.Point(a[1].pageX,a[1].pageY)]}var s=this.raiseEvent(l.TaskAreaStateEventNames.GET_POINTERS_INFO,e);return[new o.Point(null===(t=s[0])||void 0===t?void 0:t.pageX,null===(i=s[0])||void 0===i?void 0:i.pageY),new o.Point(null===(n=s[1])||void 0===n?void 0:n.pageX,null===(r=s[1])||void 0===r?void 0:r.pageY)]},t.prototype.getDistance=function(e,t){return a.Metrics.euclideanDistance(e,t)},t.prototype.getLeftPosition=function(e){var t=0;return this.isTouchEvent(e)||this.isPointerEvent(e)?t=this.getZoomMiddlePoint(e).x:this.isMouseEvent(e)&&(t=this.getMouseZoomLeftPos(e)),t},t.prototype.getMouseZoomLeftPos=function(e){var t=this.raiseEvent(l.TaskAreaStateEventNames.GET_COORDINATES_REF_POINT);return r.EvtUtils.getEventX(e)-t.x},t.prototype.getZoomMiddlePoint=function(e){var t=this.raiseEvent(l.TaskAreaStateEventNames.GET_COORDINATES_REF_POINT),i=this.GetTouchPoints(e),n=this.convertScreenToChartCoordinates(i[0],t),r=this.convertScreenToChartCoordinates(i[1],t);return new o.Point((n.x+r.x)/2,(n.y+r.y)/2)},t.prototype.convertScreenToChartCoordinates=function(e,t){return new o.Point(e.x-t.x,e.y-t.y)},t}(s.TaskAreaStateBase);t.TaskAreaZoomState=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Metrics=void 0;var n=function(){function e(){}return e.euclideanDistance=function(e,t){var i=e.x-t.x,n=e.y-t.y;return Math.sqrt(i*i+n*n)},e.manhattanDistance=function(e,t){return Math.abs(e.x-t.x)+Math.abs(e.y-t.y)},e}();t.Metrics=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskEditState=void 0;var n=i(0),o=i(9),r=i(4),a=i(29),s=i(13),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.onStartInternal=function(e){var t;null!==(t=this._source)&&void 0!==t||(this._source=a.TaskAreaDomHelper.getEventSource(o.EvtUtils.getEventSource(e)))},t.prototype.onEndInternal=function(e){this.raiseEvent(this.getEventOnEndKey(),e)},t.prototype.onDragInternal=function(e){var t=this.getRelativePos(e);this.raiseEvent(this.getEventOnDragKey(),null,null,{position:t})},t.prototype.getEventOnDragKey=function(){switch(this._source){case r.TaskAreaEventSource.TaskEdit_Start:return s.TaskAreaStateEventNames.TASK_PROCESS_START;case r.TaskAreaEventSource.TaskEdit_End:return s.TaskAreaStateEventNames.TASK_PROCESS_END;case r.TaskAreaEventSource.TaskEdit_Progress:return s.TaskAreaStateEventNames.TASK_PROCESS_PROGRESS}},t.prototype.getEventOnEndKey=function(){switch(this._source){case r.TaskAreaEventSource.TaskEdit_Start:return s.TaskAreaStateEventNames.TASK_CONFIRM_START;case r.TaskAreaEventSource.TaskEdit_End:return s.TaskAreaStateEventNames.TASK_CONFIRM_END;case r.TaskAreaEventSource.TaskEdit_Progress:return s.TaskAreaStateEventNames.TASK_END_PROGRESS}},t}(i(67).TaskDragBaseState);t.TaskEditState=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskMoveState=void 0;var n=i(0),o=i(13),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.onEndInternal=function(e){this.raiseEvent(o.TaskAreaStateEventNames.TASK_END_MOVE,e)},t.prototype.onDragInternal=function(e){this.raiseEvent(o.TaskAreaStateEventNames.TASK_PROCESS_MOVE,null,null,{delta:e.x-this.currentPosition.x})||this.raiseEvent(o.TaskAreaStateEventNames.STATE_EXIT)},t}(i(67).TaskDragBaseState);t.TaskMoveState=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaRender=void 0;var n=i(3),o=i(16),r=function(){function e(e){this._vertTaskAreaBorders=[],this._horTaskAreaBorders=[],this._isExternalTaskAreaContainer=!1,this._renderHelper=e}return Object.defineProperty(e.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mainElement",{get:function(){return this._renderHelper.mainElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"etalonSizeValues",{get:function(){return this._renderHelper.etalonSizeValues},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleCount",{get:function(){return this._renderHelper.scaleCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tickSize",{get:function(){return this._renderHelper.tickSize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaContainerScrollTop",{get:function(){return this._renderHelper.ganttViewTaskAreaContainerScrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaContainerScrollLeft",{get:function(){return this._renderHelper.ganttTaskAreaContainerScrollLeft},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"areHorizontalBordersEnabled",{get:function(){return this._renderHelper.areHorizontalBordersEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedRowIndices",{get:function(){return this._renderHelper.renderedRowIndices},set:function(e){this._renderHelper.renderedRowIndices=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedColIndices",{get:function(){return this._renderHelper.renderedColIndices},set:function(e){this._renderHelper.renderedColIndices=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"vertTaskAreaBorders",{get:function(){return this._vertTaskAreaBorders},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"horTaskAreaBorders",{get:function(){return this._horTaskAreaBorders},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hlRowElements",{get:function(){return this._renderHelper.hlRowElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaContainer",{get:function(){return this._taskAreaContainer},enumerable:!1,configurable:!0}),e.prototype.getExternalTaskAreaContainer=function(e){return this._renderHelper.getExternalTaskAreaContainer(e)},e.prototype.prepareExternalTaskAreaContainer=function(e,t){return this._renderHelper.prepareExternalTaskAreaContainer(e,t)},e.prototype.isAllowTaskAreaBorders=function(e){return this._renderHelper.isAllowTaskAreaBorders(e)},e.prototype.getTaskAreaContainerElement=function(){return this._taskAreaContainer.getElement()},e.prototype.initTaskAreaContainer=function(e){this._renderHelper.createTaskArea(e),this._taskAreaContainer=this.getExternalTaskAreaContainer(e),this._isExternalTaskAreaContainer=!!this._taskAreaContainer,null==this.taskAreaContainer&&(this._taskAreaContainer=this._renderHelper.getTaskAreaContainer(e))},e.prototype.createTaskElement=function(e){this._renderHelper.createTaskElement(e)},e.prototype.removeTaskElement=function(e){this._renderHelper.removeTaskElement(e)},e.prototype.reset=function(){this._horTaskAreaBorders=[],this._vertTaskAreaBorders=[]},e.prototype.prepareTaskAreaContainer=function(){var e=this.getTaskAreaContainerElement();this.areHorizontalBordersEnabled?n.DomUtils.addClassName(e,"dx-gantt-tac-hb"):n.DomUtils.removeClassName(e,"dx-gantt-tac-hb");var t=parseInt(getComputedStyle(e).getPropertyValue("margin-top"))||0,i="calc(100% - ".concat(this.etalonSizeValues.scaleItemHeight*this.scaleCount+t,"px)");this._isExternalTaskAreaContainer?this.prepareExternalTaskAreaContainer(e,{height:i}):e.style.height=i},e.prototype.createTaskAreaContainer=function(){var e=document.createElement("DIV");e.className="dx-gantt-tac",this.mainElement.appendChild(e),this.initTaskAreaContainer(e),this.prepareTaskAreaContainer()},e.prototype.createTaskAreaBorder=function(e,t){var i=this.gridLayoutCalculator.getTaskAreaBorderInfo(e,t);o.RenderElementUtils.create(i,e,this.taskArea,this.getTaskAreaBordersDictionary(t))},e.prototype.createTaskArea=function(){var e=document.createElement("DIV");return e.id="dx-gantt-ta",e},e.prototype.removeTaskAreaBorder=function(e,t){o.RenderElementUtils.remove(null,e,this.taskArea,this.getTaskAreaBordersDictionary(t))},e.prototype.createTaskAreaBorderAndTaskElement=function(e,t){this.isAllowTaskAreaBorders(t)&&this.createTaskAreaBorder(e,!t),t&&this.createTaskElement(e)},e.prototype.removeTaskAreaBorderAndTaskElement=function(e,t){this.isAllowTaskAreaBorders(t)&&this.removeTaskAreaBorder(e,!t),t&&this.removeTaskElement(e)},e.prototype.recreateTaskAreaBordersAndTaskElements=function(e){var t=this,i=e?this.taskAreaContainerScrollTop:this.taskAreaContainerScrollLeft,n=this.gridLayoutCalculator.getRenderedRowColumnIndices(i,e),r=e?this.renderedRowIndices:this.renderedColIndices;o.RenderElementUtils.recreate(r,n,(function(i){t.removeTaskAreaBorderAndTaskElement(i,e)}),(function(i){t.createTaskAreaBorderAndTaskElement(i,e)})),e?this.renderedRowIndices=n:this.renderedColIndices=n,this.gridLayoutCalculator.createTileToConnectorLinesMap()},e.prototype.getTaskAreaBordersDictionary=function(e){return e?this.vertTaskAreaBorders:this.horTaskAreaBorders},e.prototype.setSizeForTaskArea=function(e,t){this.taskArea.style.width=e+"px",this.taskArea.style.height=t+"px"},e.prototype.createHighlightRowElement=function(e){var t=this.gridLayoutCalculator.getHighlightRowInfo(e);o.RenderElementUtils.create(t,e,this.taskArea,this.hlRowElements)},e}();t.TaskAreaRender=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskRender=void 0;var n=i(3),o=i(4),r=i(181),a=i(16),s=function(){function e(e){this._selectionElements=[],this._taskElements=[],this._renderHelper=e,this.customTaskRender=new r.CustomTaskRender(e,this)}return Object.defineProperty(e.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskElements",{get:function(){return this._taskElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectionElements",{get:function(){return this._selectionElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isExternalTaskAreaContainer",{get:function(){return this._renderHelper.isExternalTaskAreaContainer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resourcesElements",{get:function(){return this._renderHelper.resourcesElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hlRowElements",{get:function(){return this._renderHelper.hlRowElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedRowIndices",{get:function(){return this._renderHelper.renderedRowIndices},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskTitlePosition",{get:function(){return this._renderHelper.taskTitlePosition},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showResources",{get:function(){return this._renderHelper.showResources},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"areHorizontalBordersEnabled",{get:function(){return this._renderHelper.areHorizontalBordersEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskTextHeightKey",{get:function(){return this._renderHelper.taskTextHeightKey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewModelItems",{get:function(){return this._renderHelper.viewModelItems},enumerable:!1,configurable:!0}),e.prototype.isHighlightRowElementAllowed=function(e){return this._renderHelper.isHighlightRowElementAllowed(e)},e.prototype.getTaskVisibility=function(e){return this._renderHelper.getTaskVisibility(e)},e.prototype.getTaskText=function(e){return this._renderHelper.getTaskText(e)},Object.defineProperty(e.prototype,"invalidTaskDependencies",{get:function(){return this._renderHelper.invalidTaskDependencies},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fakeTaskWrapper",{get:function(){var e;return null!==(e=this._fakeTaskWrapper)&&void 0!==e||(this._fakeTaskWrapper=this.createFakeTaskWrapper()),this._fakeTaskWrapper},enumerable:!1,configurable:!0}),e.prototype.getViewItem=function(e){return this._renderHelper.getViewItem(e)},e.prototype.getTask=function(e){return this._renderHelper.getTask(e)},e.prototype.createHighlightRowElement=function(e){this._renderHelper.createHighlightRowElement(e)},e.prototype.getTaskDependencies=function(e){return this._renderHelper.getTaskDependencies(e)},e.prototype.addInvalidTaskDependencies=function(e){this._renderHelper.invalidTaskDependencies=this._renderHelper.invalidTaskDependencies.concat(e)},e.prototype.removeInvalidTaskDependencies=function(e){this._renderHelper.invalidTaskDependencies=this._renderHelper.invalidTaskDependencies.filter((function(t){return t.predecessorId!=e||t.successorId!=e}))},e.prototype.createResources=function(e){this.showResources&&this._renderHelper.createResources(e)},e.prototype.attachEventsOnTask=function(e){this._renderHelper.attachEventsOnTask(e)},e.prototype.detachEventsOnTask=function(e){this._renderHelper.detachEventsOnTask(e)},e.prototype.recreateConnectorLineElement=function(e,t){void 0===t&&(t=!1),this._renderHelper.recreateConnectorLineElement(e,t)},e.prototype.renderTaskElement=function(e){this._renderHelper.createTaskElement(e)},e.prototype.reset=function(){var e=this;this._taskElements.forEach((function(t,i){return e.removeTaskElement(i)})),this._selectionElements=[],this._taskElements=[]},e.prototype.createTaskWrapperElement=function(e){var t=this.gridLayoutCalculator.getTaskWrapperElementInfo(e);a.RenderElementUtils.create(t,e,this.taskArea,this.taskElements),this.taskElements[e].style.display=this.getTaskVisibility(e)?"":"none"},e.prototype.createTaskElement=function(e,t){var i=this.getViewItem(e);if(t&&this.customTaskRender.createCustomTaskElement(e,t),i.task.isValid()&&i.visible)i.isCustom||this.createDefaultTaskElement(e);else{var n=this.getTaskDependencies(i.task.internalId);this.addInvalidTaskDependencies(n)}},e.prototype.createTaskVisualElement=function(e){var t=this.gridLayoutCalculator.getTaskElementInfo(e,this.taskTitlePosition!==o.TaskTitlePosition.Inside),i=a.RenderElementUtils.create(t,e,this.taskElements[e]);return this.attachEventsOnTask(e),i},e.prototype.createDefaultTaskElement=function(e){var t=this.getViewItem(e);this.isHighlightRowElementAllowed(e)&&this.createHighlightRowElement(e),t.selected&&this.createTaskSelectionElement(e),this.createTaskWrapperElement(e),this.taskTitlePosition===o.TaskTitlePosition.Outside&&this.createTaskTextElement(e,this.taskElements[e]);var i=this.createTaskVisualElement(e);t.task.isMilestone()||(this.taskTitlePosition===o.TaskTitlePosition.Inside&&this.createTaskTextElement(e,i),this.createTaskProgressElement(e,i)),this.createResources(e)},e.prototype.removeTaskElement=function(e){var t=this.getTask(e);if(t&&this.removeInvalidTaskDependencies(t.id),this.detachEventsOnTask(e),this._renderHelper.hasTaskTemplate()){var i=this.taskElements[e],n=null==i?void 0:i.firstElementChild;n&&(this._renderHelper.destroyTemplate(n),i.removeChild(n))}a.RenderElementUtils.remove(null,e,this.taskArea,this.taskElements),a.RenderElementUtils.remove(null,e,this.taskArea,this.resourcesElements),a.RenderElementUtils.remove(null,e,this.taskArea,this.selectionElements),this.isHighlightRowElementAllowed(e)&&a.RenderElementUtils.remove(null,e,this.taskArea,this.hlRowElements),this.gridLayoutCalculator.resetTaskInfo(e)},e.prototype.recreateTaskElement=function(e){var t=this,i=this.renderedRowIndices.filter((function(t){return t===e})).length>0,n=this.getTask(e);if(n){i&&(this.removeTaskElement(e),this.renderTaskElement(e));var o=this.getTaskDependencies(n.internalId);o.length&&o.forEach((function(e){return t.recreateConnectorLineElement(e.internalId,!0)}))}},e.prototype.createFakeTaskWrapper=function(){var e,t,i=null!==(t=null===(e=this.viewModelItems.filter((function(e){return e.task&&!e.task.isMilestone}))[0])||void 0===e?void 0:e.visibleIndex)&&void 0!==t?t:0,n=this.gridLayoutCalculator,o=a.RenderElementUtils.create(n.getTaskWrapperElementInfo(i),null,this.taskArea),r=a.RenderElementUtils.create(n.getTaskElementInfo(i),null,o);return this.createTaskTextElement(i,r),this.createTaskProgressElement(i,r),o.style.display="none",o},e.prototype.createTaskProgressElement=function(e,t){var i=this.gridLayoutCalculator.getTaskProgressElementInfo(e);a.RenderElementUtils.create(i,e,t)},e.prototype.getTextWidth=function(e){return this._renderHelper.getTextWidth(e)},Object.defineProperty(e.prototype,"minTextWidth",{get:function(){var e;return null!==(e=this._minTextWidth)&&void 0!==e||(this._minTextWidth=5*this.getTextWidth("a")),this._minTextWidth},enumerable:!1,configurable:!0}),e.prototype.createTaskTextElement=function(t,i){var r,s,l=this.gridLayoutCalculator.getTaskTextElementInfo(t,this.taskTitlePosition===o.TaskTitlePosition.Inside);if(!l.additionalInfo.hidden){var d=a.RenderElementUtils.create(l,t,i),u=this.getTaskText(t);if(this.taskTitlePosition===o.TaskTitlePosition.Outside&&l.size.width>0){var c=getComputedStyle(d),h=l.size.width-n.DomUtils.pxToInt(c.paddingLeft);if(h>=this.minTextWidth){var p=n.DomUtils.pxToInt(c.paddingRight),f=u?this.getTextWidth(u):0;p&&f>h-p&&(p=Math.min(e.minTitleOutRightPadding,h-this.minTextWidth),d.style.paddingRight=p+"px"),f>h-p&&(d.style.overflowX="hidden",d.style.textOverflow="ellipsis")}else d.style.display="none"}u||(null!==(r=this[s=this.taskTextHeightKey])&&void 0!==r||(this[s]=this.getTaskTextHeight(d)),d.style.height=this[this.taskTextHeightKey]),d.innerText=u}},e.prototype.createTaskSelectionElement=function(e){var t=this.gridLayoutCalculator.getSelectionElementInfo(e);this.isExternalTaskAreaContainer&&!this.areHorizontalBordersEnabled&&t.size.height++,a.RenderElementUtils.create(t,e,this.taskArea,this.selectionElements)},e.prototype.getTaskTextHeight=function(e){e.innerText="WWW";var t=getComputedStyle(e).height;return e.innerText="",t},e.prototype.getSmallTaskWidth=function(e){var t=0;if(null!=e&&""!==e){var i=e.indexOf("rem");if(i>-1)try{t=parseFloat(e.substr(0,i))*parseFloat(getComputedStyle(document.documentElement).fontSize)}catch(e){}else t=n.DomUtils.pxToInt(e)}return 2*t},e.minTitleOutRightPadding=5,e}();t.TaskRender=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomTaskRender=void 0;var n=i(4),o=i(16),r=function(){function e(e,t){this._renderHelper=e,this._taskRender=t}return Object.defineProperty(e.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tickSize",{get:function(){return this._renderHelper.tickSize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskTitlePosition",{get:function(){return this._renderHelper.taskTitlePosition},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskElements",{get:function(){return this._taskRender.taskElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),e.prototype.getViewItem=function(e){return this._renderHelper.getViewItem(e)},e.prototype.getTask=function(e){return this._renderHelper.getTask(e)},e.prototype.destroyTemplate=function(e){this._renderHelper.destroyTemplate(e)},e.prototype.getTaskDependencies=function(e){return this._renderHelper.getTaskDependencies(e)},e.prototype.getTaskResources=function(e){return this._renderHelper.getTaskResources(e)},e.prototype.attachEventsOnTask=function(e){this._renderHelper.attachEventsOnTask(e)},e.prototype.recreateConnectorLineElement=function(e,t){void 0===t&&(t=!1),this._renderHelper.recreateConnectorLineElement(e,t)},e.prototype.createTaskSelectionElement=function(e){this._taskRender.createTaskSelectionElement(e)},e.prototype.createCustomTaskElement=function(e,t){var i=this,n=this.getViewItem(e);n.isCustom=!1;var o=document.createElement("DIV"),r=this.createCustomTaskInformation(e);n.isCustom=!0,t(o,r,(function(e,t){i.drawCustomTask(e,t)}),e)},e.prototype.createCustomTaskWrapperElement=function(e,t){o.RenderElementUtils.create(t,e,this.taskArea,this.taskElements)},e.prototype.createCustomTaskVisualElement=function(e,t){return o.RenderElementUtils.create(t,e,this.taskElements[e])},e.prototype.drawCustomTask=function(e,t){var i=this;if(this.taskElements[t]){var n=this.getViewItem(t);if(n.visible=!!e.innerHTML,this.taskElements[t].innerHTML=e.innerHTML,n.size.height=this.taskElements[t].offsetHeight,n.size.width=this.taskElements[t].offsetWidth,this.destroyTemplate(this.taskElements[t]),this._taskRender.removeTaskElement(t),n.visible){var o=this.gridLayoutCalculator.getTaskWrapperElementInfo(t);this.createCustomTaskWrapperElement(t,o),this.taskElements[t].appendChild(e),this.attachEventsOnTask(t)}else{var r=this.getTaskDependencies(n.task.internalId);r.length&&(this._taskRender.addInvalidTaskDependencies(r),r.forEach((function(e){return i.recreateConnectorLineElement(e.internalId,!0)})))}this._taskRender.isHighlightRowElementAllowed(t)&&this._taskRender.createHighlightRowElement(t),n.selected&&this.createTaskSelectionElement(t)}},e.prototype.createCustomTaskInformation=function(e){var t=this.getTask(e),i=this.getViewItem(e),o=this.gridLayoutCalculator.getTaskWrapperElementInfo(e),r=this.gridLayoutCalculator.getTaskElementInfo(e,this.taskTitlePosition!==n.TaskTitlePosition.Inside);this.createCustomTaskWrapperElement(e,o);var a=this.createCustomTaskVisualElement(e,r);this._taskRender.createTaskTextElement(e,a);var s=this.getTaskResources(t.id);return{cellSize:this.tickSize,isMilestone:t.isMilestone(),isParent:!!(null==i?void 0:i.children.length),taskData:t,taskHTML:a,taskPosition:o.position,taskResources:s,taskSize:r.size}},e}();t.CustomTaskRender=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MainElementsRender=void 0;var n=function(){function e(){}return e.prototype.createMainElement=function(e){var t=document.createElement("DIV");return t.style.width=e.offsetWidth+"px",t.style.height=e.offsetHeight+"px",t},e.prototype.createHeader=function(){var e=document.createElement("DIV");return e.className="dx-gantt-header",e},e}();t.MainElementsRender=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaContainer=void 0;var n=function(){function e(e,t){this.element=e,this.onScrollHandler=function(){t.updateView()},this.element.addEventListener("scroll",this.onScrollHandler)}return Object.defineProperty(e.prototype,"scrollTop",{get:function(){return this.element.scrollTop},set:function(e){this.element.scrollTop=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollLeft",{get:function(){return this.element.scrollLeft},set:function(e){this.element.scrollLeft=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollWidth",{get:function(){return this.element.scrollWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollHeight",{get:function(){return this.element.scrollHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isExternal",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.getWidth=function(){return this.element.offsetWidth},e.prototype.getHeight=function(){return this.element.offsetHeight},e.prototype.getElement=function(){return this.element},e.prototype.detachEvents=function(){this.element.removeEventListener("scroll",this.onScrollHandler)},e}();t.TaskAreaContainer=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ElementTextHelper=void 0;var n=i(3),o=i(4),r=i(15),a=function(){function e(e){this.longestAbbrMonthName=null,this.longestMonthName=null,this.longestAbbrDayName=null;var t=document.createElement("canvas");this.textMeasureContext=t.getContext("2d"),this.cultureInfo=e}return e.prototype.setFont=function(e){var t=n.DomUtils.getCurrentStyle(e),i=t.font?t.font:t.fontStyle+" "+t.fontVariant+" "+t.fontWeight+" "+t.fontSize+" / "+t.lineHeight+" "+t.fontFamily;this.textMeasureContext.font=i},e.prototype.setSettings=function(e,t,i){this.startTime=e,this.viewType=t,this.modelItems=i},e.prototype.getScaleItemText=function(e,t){var i=this.viewType.valueOf()===t.valueOf();switch(t){case o.ViewType.TenMinutes:return this.getTenMinutesScaleItemText(e);case o.ViewType.Hours:case o.ViewType.SixHours:return this.getHoursScaleItemText(e);case o.ViewType.Days:return this.getDaysScaleItemText(e,i);case o.ViewType.Weeks:return this.getWeeksScaleItemText(e,i);case o.ViewType.Months:return this.getMonthsScaleItemText(e,i);case o.ViewType.Quarter:return this.getQuarterScaleItemText(e,i);case o.ViewType.Years:return this.getYearsScaleItemText(e);case o.ViewType.FiveYears:return this.getFiveYearsScaleItemText(e)}},e.prototype.getTenMinutesScaleItemText=function(e){var t=e.getMinutes()+1;return(10*Math.ceil(t/10)).toString()},e.prototype.getThirtyMinutesScaleItemText=function(e){return e.getMinutes()<30?"30":"60"},e.prototype.getHoursScaleItemText=function(e){var t=e.getHours(),i=this.getHourDisplayText(t),n=t<12?this.getAmText():this.getPmText();return this.getHoursScaleItemTextCore(i,n)},e.prototype.getDaysScaleItemText=function(e,t){return this.getDayTotalText(e,!0,t,t,!t)},e.prototype.getWeeksScaleItemText=function(e,t){var i=r.DateUtils.getDSTCorrectedTaskEnd(e,r.DateUtils.msPerWeek-r.DateUtils.msPerDay);return this.getWeeksScaleItemTextCore(this.getDayTotalText(e,t,!0,t,!t),this.getDayTotalText(i,t,!0,t,!t))},e.prototype.getMonthsScaleItemText=function(e,t){var i=this.getMonthNames(),n=t?"":e.getFullYear().toString();return this.getMonthsScaleItemTextCore(i[e.getMonth()],n)},e.prototype.getQuarterScaleItemText=function(e,t){var i=this.getQuarterNames(),n=t?"":e.getFullYear().toString();return this.getMonthsScaleItemTextCore(i[Math.floor(e.getMonth()/3)],n)},e.prototype.getYearsScaleItemText=function(e){return e.getFullYear().toString()},e.prototype.getFiveYearsScaleItemText=function(e){return e.getFullYear().toString()+" - "+(e.getFullYear()+4).toString()},e.prototype.getHourDisplayText=function(e){return this.hasAmPm()?(0==e?12:e<=12?e:e-12).toString():e<10?"0"+e:e.toString()},e.prototype.getDayTotalText=function(e,t,i,n,o){var r=n?this.getAbbrMonthNames():this.getMonthNames(),a=i?this.getAbbrDayNames():this.getDayNames(),s=t?a[e.getDay()]:"",l=e.getDate(),d=r[e.getMonth()],u=o?e.getFullYear().toString():"";return this.getDayTotalTextCore(s,l.toString(),d,u)},e.prototype.getTaskText=function(e){var t=this.modelItems[e];return t?t.task.title:""},e.prototype.getTaskVisibility=function(e){var t=this.modelItems[e];return!!t&&t.getVisible()},e.prototype.hasAmPm=function(){return this.getAmText().length>0||this.getPmText().length>0},e.prototype.getScaleItemTextTemplate=function(e){switch(e){case o.ViewType.TenMinutes:return"00";case o.ViewType.Hours:case o.ViewType.SixHours:return this.getHoursScaleItemTextCore("00",this.getAmText());case o.ViewType.Days:return this.getDayTextTemplate();case o.ViewType.Weeks:return this.getWeekTextTemplate();case o.ViewType.Months:return this.getMonthsScaleItemTextCore(this.getLongestMonthName(),"");case o.ViewType.Quarter:return"Q4";case o.ViewType.Years:return"0000"}},e.prototype.getDayTextTemplate=function(){return this.getDayTotalTextCore(this.getLongestAbbrDayName(),"00",this.getLongestAbbrMonthName(),"")},e.prototype.getWeekTextTemplate=function(){var e=this.getDayTextTemplate();return this.getWeeksScaleItemTextCore(e,e)},e.prototype.getHoursScaleItemTextCore=function(e,t){return e+":00"+(this.hasAmPm()?" "+t:"")},e.prototype.getDayTotalTextCore=function(e,t,i,n){var o=e.length>0?e+", ":"";return o+=t+" "+i,o+(n.length>0?" "+n:"")},e.prototype.getWeeksScaleItemTextCore=function(e,t){return e+" - "+t},e.prototype.getMonthsScaleItemTextCore=function(e,t){var i=e;return t.length>0&&(i+=" "+t),i},e.prototype.getLongestAbbrMonthName=function(){return null==this.longestAbbrMonthName&&(this.longestAbbrMonthName=this.getLongestText(this.getAbbrMonthNames())),this.longestAbbrMonthName},e.prototype.getLongestMonthName=function(){return null==this.longestMonthName&&(this.longestMonthName=this.getLongestText(this.getMonthNames())),this.longestMonthName},e.prototype.getLongestAbbrDayName=function(){return null==this.longestAbbrDayName&&(this.longestAbbrDayName=this.getLongestText(this.getAbbrDayNames())),this.longestAbbrDayName},e.prototype.getLongestText=function(e){var t=this,i="",n=0;return e.forEach((function(e){var o=t.getTextWidth(e);o>n&&(n=o,i=e)})),i},e.prototype.getTextWidth=function(e){return Math.round(this.textMeasureContext.measureText(e).width)},e.prototype.getAmText=function(){return this.cultureInfo.amText},e.prototype.getPmText=function(){return this.cultureInfo.pmText},e.prototype.getQuarterNames=function(){return this.cultureInfo.quarterNames},e.prototype.getMonthNames=function(){return this.cultureInfo.monthNames},e.prototype.getDayNames=function(){return this.cultureInfo.dayNames},e.prototype.getAbbrMonthNames=function(){return this.cultureInfo.abbrMonthNames},e.prototype.getAbbrDayNames=function(){return this.cultureInfo.abbrDayNames},e}();t.ElementTextHelper=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Settings=void 0;var n=i(1),o=i(8),r=i(4),a=i(186),s=i(68),l=i(187),d=i(188),u=function(){function e(){this.viewType=void 0,this.taskTitlePosition=r.TaskTitlePosition.Inside,this.showResources=!0,this.showDependencies=!0,this.areHorizontalBordersEnabled=!0,this.areVerticalBordersEnabled=!0,this.areAlternateRowsEnabled=!0,this.allowSelectTask=!0,this.firstDayOfWeek=0,this.editing=new a.EditingSettings,this.validation=new l.ValidationSettings,this.stripLines=new s.StripLineSettings,this.viewTypeRange=new d.ViewTypeRangeSettings}return e.parse=function(t){var i=new e;return t&&((0,n.isDefined)(t.viewType)&&(i.viewType=t.viewType),(0,n.isDefined)(t.taskTitlePosition)&&(i.taskTitlePosition=t.taskTitlePosition),(0,n.isDefined)(t.showResources)&&(i.showResources=t.showResources),(0,n.isDefined)(t.showDependencies)&&(i.showDependencies=t.showDependencies),(0,n.isDefined)(t.areHorizontalBordersEnabled)&&(i.areHorizontalBordersEnabled=t.areHorizontalBordersEnabled),(0,n.isDefined)(t.areVerticalBordersEnabled)&&(i.areHorizontalBordersEnabled=t.areHorizontalBordersEnabled),(0,n.isDefined)(t.areAlternateRowsEnabled)&&(i.areAlternateRowsEnabled=t.areAlternateRowsEnabled),(0,n.isDefined)(t.allowSelectTask)&&(i.allowSelectTask=t.allowSelectTask),(0,n.isDefined)(t.firstDayOfWeek)&&(i.firstDayOfWeek=t.firstDayOfWeek),(0,n.isDefined)(t.startDateRange)&&(i.startDateRange=new Date(t.startDateRange)),(0,n.isDefined)(t.endDateRange)&&(i.endDateRange=new Date(t.endDateRange)),(0,n.isDefined)(t.editing)&&(i.editing=a.EditingSettings.parse(t.editing)),(0,n.isDefined)(t.validation)&&(i.validation=l.ValidationSettings.parse(t.validation)),(0,n.isDefined)(t.stripLines)&&(i.stripLines=s.StripLineSettings.parse(t.stripLines)),(0,n.isDefined)(t.viewTypeRange)&&(i.viewTypeRange=d.ViewTypeRangeSettings.parse(t.viewTypeRange)),(0,n.isDefined)(t.taskTooltipContentTemplate)&&(i.taskTooltipContentTemplate=t.taskTooltipContentTemplate),(0,n.isDefined)(t.taskProgressTooltipContentTemplate)&&(i.taskProgressTooltipContentTemplate=t.taskProgressTooltipContentTemplate),(0,n.isDefined)(t.taskTimeTooltipContentTemplate)&&(i.taskTimeTooltipContentTemplate=t.taskTimeTooltipContentTemplate),(0,n.isDefined)(t.taskContentTemplate)&&(i.taskContentTemplate=t.taskContentTemplate),(0,n.isDefined)(t.cultureInfo)&&(i.cultureInfo=t.cultureInfo)),i},e.prototype.equal=function(e){var t=!0;return(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t&&this.viewType===e.viewType)&&this.taskTitlePosition===e.taskTitlePosition)&&this.showResources===e.showResources)&&this.showDependencies===e.showDependencies)&&this.areHorizontalBordersEnabled===e.areHorizontalBordersEnabled)&&this.areAlternateRowsEnabled===e.areAlternateRowsEnabled)&&this.allowSelectTask===e.allowSelectTask)&&this.editing.equal(e.editing))&&this.validation.equal(e.validation))&&this.stripLines.equal(e.stripLines))&&o.DateTimeUtils.areDatesEqual(this.startDateRange,e.startDateRange))&&o.DateTimeUtils.areDatesEqual(this.endDateRange,e.endDateRange)},e}();t.Settings=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditingSettings=void 0;var n=i(1),o=function(){function e(){this.enabled=!1,this.allowDependencyDelete=!0,this.allowDependencyInsert=!0,this.allowTaskDelete=!0,this.allowTaskInsert=!0,this.allowTaskUpdate=!0,this.allowResourceDelete=!0,this.allowResourceInsert=!0,this.allowResourceUpdate=!0,this.allowTaskResourceUpdate=!0,this.taskHoverDelay=0}return e.parse=function(t){var i=new e;return t&&((0,n.isDefined)(t.enabled)&&(i.enabled=t.enabled),(0,n.isDefined)(t.allowDependencyDelete)&&(i.allowDependencyDelete=t.allowDependencyDelete),(0,n.isDefined)(t.allowDependencyInsert)&&(i.allowDependencyInsert=t.allowDependencyInsert),(0,n.isDefined)(t.allowTaskDelete)&&(i.allowTaskDelete=t.allowTaskDelete),(0,n.isDefined)(t.allowTaskInsert)&&(i.allowTaskInsert=t.allowTaskInsert),(0,n.isDefined)(t.allowTaskUpdate)&&(i.allowTaskUpdate=t.allowTaskUpdate),(0,n.isDefined)(t.allowResourceDelete)&&(i.allowResourceDelete=t.allowResourceDelete),(0,n.isDefined)(t.allowResourceInsert)&&(i.allowResourceInsert=t.allowResourceInsert),(0,n.isDefined)(t.allowResourceUpdate)&&(i.allowResourceUpdate=t.allowResourceUpdate),(0,n.isDefined)(t.allowTaskResourceUpdate)&&(i.allowTaskResourceUpdate=t.allowTaskResourceUpdate),(0,n.isDefined)(t.taskHoverDelay)&&(i.taskHoverDelay=t.taskHoverDelay)),i},e.prototype.equal=function(e){var t=!0;return(t=(t=(t=(t=(t=(t=(t=(t=(t=t&&this.enabled===e.enabled)&&this.allowDependencyDelete===e.allowDependencyDelete)&&this.allowDependencyInsert===e.allowDependencyInsert)&&this.allowTaskDelete===e.allowTaskDelete)&&this.allowTaskInsert===e.allowTaskInsert)&&this.allowTaskUpdate===e.allowTaskUpdate)&&this.allowResourceDelete===e.allowResourceDelete)&&this.allowResourceInsert===e.allowResourceInsert)&&this.allowResourceUpdate===e.allowResourceUpdate)&&this.allowTaskResourceUpdate===e.allowTaskResourceUpdate},e}();t.EditingSettings=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationSettings=void 0;var n=i(1),o=function(){function e(){this.validateDependencies=!1,this.autoUpdateParentTasks=!1,this.enablePredecessorGap=!1}return e.parse=function(t){var i=new e;return t&&((0,n.isDefined)(t.validateDependencies)&&(i.validateDependencies=t.validateDependencies),(0,n.isDefined)(t.autoUpdateParentTasks)&&(i.autoUpdateParentTasks=t.autoUpdateParentTasks),(0,n.isDefined)(t.enablePredecessorGap)&&(i.enablePredecessorGap=t.enablePredecessorGap)),i},e.prototype.equal=function(e){var t=!0;return(t=(t=t&&this.validateDependencies===e.validateDependencies)&&this.autoUpdateParentTasks===e.autoUpdateParentTasks)&&this.enablePredecessorGap===e.enablePredecessorGap},e}();t.ValidationSettings=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewTypeRangeSettings=void 0;var n=i(1),o=i(4),r=function(){function e(){this.min=o.ViewType.TenMinutes,this.max=o.ViewType.Years}return e.parse=function(t){var i=new e;return t&&((0,n.isDefined)(t.min)&&(i.min=t.min),(0,n.isDefined)(t.max)&&(i.max=t.max)),i},e.prototype.equal=function(e){var t=!0;return(t=t&&this.min===e.min)&&this.max===e.max},e}();t.ViewTypeRangeSettings=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskEditSettings=void 0;var n=i(0),o=i(1),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.parse=function(e){var i=new t;return e&&((0,o.isDefined)(e.getCommandManager)&&(i.getCommandManager=e.getCommandManager),(0,o.isDefined)(e.getViewModel)&&(i.getViewModel=e.getViewModel),(0,o.isDefined)(e.getGanttSettings)&&(i.getGanttSettings=e.getGanttSettings),(0,o.isDefined)(e.getRenderHelper)&&(i.getRenderHelper=e.getRenderHelper),(0,o.isDefined)(e.destroyTemplate)&&(i.destroyTemplate=e.destroyTemplate),(0,o.isDefined)(e.formatDate)&&(i.formatDate=e.formatDate),(0,o.isDefined)(e.getModelManipulator)&&(i.getModelManipulator=e.getModelManipulator),(0,o.isDefined)(e.getValidationController)&&(i.getValidationController=e.getValidationController)),i},t}(i(65).TooltipSettings);t.TaskEditSettings=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationController=void 0;var n=i(0),o=i(1),r=i(15),a=i(23),s=i(53),l=i(19),d=i(8),u=i(191),c=function(){function e(e){this.lockPredecessorToSuccessor=!0,this.settings=e}return Object.defineProperty(e.prototype,"viewModel",{get:function(){return this.settings.getViewModel()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"history",{get:function(){return this.settings.getHistory()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"modelManipulator",{get:function(){return this.settings.getModelManipulator()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return this.settings.getRange()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"validationSettings",{get:function(){return this.settings.getValidationSettings()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_parentAutoCalc",{get:function(){return this.viewModel.parentAutoCalc},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enablePredecessorGap",{get:function(){return this.viewModel.enablePredecessorGap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isValidateDependenciesRequired",{get:function(){return this.settings.getIsValidateDependenciesRequired()},enumerable:!1,configurable:!0}),e.prototype.updateOwnerInAutoParentMode=function(){this.settings.updateOwnerInAutoParentMode()},e.prototype.checkStartDependencies=function(e,t){var i=this,n=[],o=this.viewModel.tasks.getItemById(e);return this.viewModel.dependencies.items.filter((function(t){return t.successorId===e})).forEach((function(e){var r=i.viewModel.tasks.getItemById(e.predecessorId);(e.type===a.DependencyType.FS&&r.end>t||e.type===a.DependencyType.SS&&r.start>t)&&n.push(new u.ValidationError(e.internalId,!0)),(e.type===a.DependencyType.FS&&r.end.valueOf()===o.start.valueOf()&&t>r.end||e.type===a.DependencyType.SS&&r.start.valueOf()===o.start.valueOf()&&t>r.start)&&n.push(new u.ValidationError(e.internalId))})),n},e.prototype.checkEndDependencies=function(e,t){var i=this,n=[],o=this.viewModel.tasks.getItemById(e);return this.viewModel.dependencies.items.filter((function(t){return t.successorId===e})).forEach((function(e){var r=i.viewModel.tasks.getItemById(e.predecessorId);(e.type===a.DependencyType.SF&&r.start>t||e.type===a.DependencyType.FF&&r.end>t)&&n.push(new u.ValidationError(e.internalId,!0)),(e.type===a.DependencyType.SF&&r.start.valueOf()===o.end.valueOf()&&t>r.start||e.type===a.DependencyType.FF&&r.end.valueOf()===o.end.valueOf()&&t>r.end)&&n.push(new u.ValidationError(e.internalId))})),n},e.prototype.moveEndDependTasks=function(e,t,i){var n=this;void 0===i&&(i=!1);var o=this.viewModel.dependencies.items.filter((function(t){return t.predecessorId===e&&!t.isStartDependency})),r=this.viewModel.tasks.getItemById(e);o.forEach((function(e){var o=n.viewModel.tasks.getItemById(e.successorId);if(o&&(!i||r.parentId!==o.parentId)&&o.parentId!=r.id){var d=new l.DateRange(new Date(o.start.getTime()),new Date(o.end.getTime())),u=new l.DateRange(new Date(o.start.getTime()),new Date(o.end.getTime())),c=r.end.getTime()-t.getTime(),h=n.enablePredecessorGap?r.end:t;if(e.type===a.DependencyType.FS&&(o.start<h||n.lockPredecessorToSuccessor&&o.start.getTime()===t.getTime())?(u.start.setTime(r.end.getTime()),u.end.setTime(u.start.getTime()+(o.end.getTime()-o.start.getTime())),n.correctMoving(o.internalId,u)):e.type===a.DependencyType.FF&&(o.end<h||n.lockPredecessorToSuccessor&&o.end.getTime()===t.getTime())?(u.start.setTime(r.end.getTime()-(o.end.getTime()-o.start.getTime())),u.end.setTime(r.end.getTime()),n.correctMoving(o.internalId,u)):n.enablePredecessorGap||(u.start.setTime(o.start.getTime()+c),u.end.setTime(o.end.getTime()+c)),!d.equal(u)){var p={start:u.start,end:u.end};n.history.addAndRedo(new s.UpdateTaskHistoryItem(n.modelManipulator,e.successorId,p)),n.moveRelatedTasks(e,d,o,u)}}}))},e.prototype.moveStartDependTasks=function(e,t,i){var n=this;void 0===i&&(i=!1);var o=this.viewModel.dependencies.items.filter((function(t){return t.predecessorId===e&&t.isStartDependency})),r=this.viewModel.tasks.getItemById(e);o.forEach((function(e){var o=n.viewModel.tasks.getItemById(e.successorId);if(o&&(!i||r.parentId!==o.parentId)&&o.parentId!=r.id){var d=new l.DateRange(new Date(o.start.getTime()),new Date(o.end.getTime())),u=new l.DateRange(new Date(o.start.getTime()),new Date(o.end.getTime())),c=r.start.getTime()-t.getTime(),h=n.enablePredecessorGap?r.start:t;if(e.type===a.DependencyType.SF&&(o.end<h||n.lockPredecessorToSuccessor&&o.end.getTime()===t.getTime())?(u.start.setTime(r.start.getTime()-(o.end.getTime()-o.start.getTime())),u.end.setTime(r.start.getTime()),n.correctMoving(o.internalId,u)):e.type===a.DependencyType.SS&&(o.start<h||n.lockPredecessorToSuccessor&&o.start.getTime()===t.getTime())?(u.start.setTime(r.start.getTime()),u.end.setTime(r.start.getTime()+(o.end.getTime()-o.start.getTime())),n.correctMoving(o.internalId,u)):n.enablePredecessorGap||(u.start.setTime(o.start.getTime()+c),u.end.setTime(o.end.getTime()+c)),!d.equal(u)){var p={start:u.start,end:u.end};n.history.addAndRedo(new s.UpdateTaskHistoryItem(n.modelManipulator,e.successorId,p)),n.moveRelatedTasks(e,d,o,u)}}}))},e.prototype.moveRelatedTasks=function(e,t,i,n){var o=n.start.getTime()-t.start.getTime();this.correctParentsOnChildMoving(i.internalId,o),this.moveStartDependTasks(e.successorId,t.start),this.moveEndDependTasks(e.successorId,t.end)},e.prototype.getCorrectDateRange=function(e,t,i){var o=this,r=new l.DateRange(new Date(t),new Date(i));return n.__spreadArray(n.__spreadArray([],this.checkStartDependencies(e,r.start),!0),this.checkEndDependencies(e,r.end),!0).filter((function(e){return e.critical})).forEach((function(e){var t=o.viewModel.dependencies.getItemById(e.dependencyId),i=o.viewModel.tasks.getItemById(t.predecessorId);t.type===a.DependencyType.FS&&r.start<i.end&&r.start.setTime(i.end.getTime()),t.type===a.DependencyType.SS&&r.start<i.start&&r.start.setTime(i.start.getTime()),t.type===a.DependencyType.FF&&r.end<i.end&&r.end.setTime(i.end.getTime()),t.type===a.DependencyType.SF&&r.end<i.start&&r.end.setTime(i.start.getTime())})),r},e.prototype.correctMoving=function(e,t){var i=this,o=t.end.getTime()-t.start.getTime();return n.__spreadArray(n.__spreadArray([],this.checkStartDependencies(e,t.start),!0),this.checkEndDependencies(e,t.end),!0).filter((function(e){return e.critical})).forEach((function(e){var n=i.viewModel.dependencies.getItemById(e.dependencyId),r=i.viewModel.tasks.getItemById(n.predecessorId);n.type===a.DependencyType.FS&&t.start<r.end&&(t.start.setTime(r.end.getTime()),t.end.setTime(t.start.getTime()+o)),n.type===a.DependencyType.SS&&t.start<r.start&&(t.start.setTime(r.start.getTime()),t.end.setTime(t.start.getTime()+o)),n.type===a.DependencyType.FF&&t.end<r.end&&(t.end.setTime(r.end.getTime()),t.start.setTime(t.end.getTime()-o)),n.type===a.DependencyType.SF&&t.end<r.start&&(t.end.setTime(r.start.getTime()),t.start.setTime(t.end.getTime()-o))})),t},e.prototype.recalculateParents=function(e,t){for(var i=e&&e.parent;i&&i.task;){for(var n=i.children,o=this.range.end,r=this.range.start,a=0,s=0,l={id:i.task.internalId},u=0;u<n.length;u++){var c=n[u].task;if(c.isValid()){o=d.DateTimeUtils.getMinDate(o,c.start),r=d.DateTimeUtils.getMaxDate(r,c.end);var h=c.getDuration();a+=c.progress*h,s+=h}}d.DateTimeUtils.areDatesEqual(i.task.start,o)||(l.start=o),d.DateTimeUtils.areDatesEqual(i.task.end,r)||(l.end=r),l.oldStart=i.task.start,l.oldEnd=i.task.end,(a=s>0?Math.round(a/s):0)!==i.task.progress&&(l.progress=a),t(l),i=i.parent}},e.prototype.updateParentsRangeByChild=function(e){var t=this;this.recalculateParents(this.viewModel.findItem(e),(function(e){if((0,o.isDefined)(e.id)){var i=t.history,n=t.modelManipulator;(0,o.isDefined)(e.start)&&(i.addAndRedo(new s.UpdateTaskHistoryItem(n,e.id,{start:e.start})),t.moveStartDependTasks(e.id,e.oldStart)),(0,o.isDefined)(e.end)&&(i.addAndRedo(new s.UpdateTaskHistoryItem(n,e.id,{end:e.end})),t.moveEndDependTasks(e.id,e.oldEnd)),(0,o.isDefined)(e.progress)&&i.addAndRedo(new s.UpdateTaskHistoryItem(n,e.id,{progress:e.progress}))}}))},e.prototype.updateChildRangeByParent=function(e,t,i){var n=this.viewModel.findItem(e);if(n&&0!==n.children.length)for(var o=n.children,a=0;a<o.length;a++){var l=o[a].task,d=new Date(l.start.getTime()+t),u=r.DateUtils.getRangeMSPeriod(l.start,l.end),c=r.DateUtils.getDSTCorrectedTaskEnd(d,u);i.push({id:l.internalId,start:l.start,end:l.end}),this.history.addAndRedo(new s.UpdateTaskHistoryItem(this.modelManipulator,l.internalId,{start:d,end:c})),this.updateChildRangeByParent(l.internalId,t,i)}},e.prototype.updateParentsIfRequired=function(e){this._parentAutoCalc&&(this.updateParentsRangeByChild(e),this.updateOwnerInAutoParentMode())},e.prototype.correctParentsOnChildMoving=function(e,t){var i=this;if(this._parentAutoCalc&&0!==t){this.updateParentsRangeByChild(e);var n=[];this.updateChildRangeByParent(e,t,n),this.isValidateDependenciesRequired&&n.forEach((function(e){i.moveStartDependTasks(e.id,e.start,!0),i.moveEndDependTasks(e.id,e.end,!0)})),this.updateOwnerInAutoParentMode()}},e.prototype.canCreateDependency=function(e,t){return this.viewModel.canCreateDependency(e,t)},e}();t.ValidationController=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationError=void 0;var n=function(e,t){void 0===t&&(t=!1),this.dependencyId=e,this.critical=t};t.ValidationError=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationControllerSettings=void 0;var n=i(1),o=function(){function e(){}return e.parse=function(t){var i=new e;return t&&((0,n.isDefined)(t.getViewModel)&&(i.getViewModel=t.getViewModel),(0,n.isDefined)(t.getHistory)&&(i.getHistory=t.getHistory),(0,n.isDefined)(t.getModelManipulator)&&(i.getModelManipulator=t.getModelManipulator),(0,n.isDefined)(t.getRange)&&(i.getRange=t.getRange),(0,n.isDefined)(t.getValidationSettings)&&(i.getValidationSettings=t.getValidationSettings),(0,n.isDefined)(t.updateOwnerInAutoParentMode)&&(i.updateOwnerInAutoParentMode=t.updateOwnerInAutoParentMode),(0,n.isDefined)(t.getIsValidateDependenciesRequired)&&(i.getIsValidateDependenciesRequired=t.getIsValidateDependenciesRequired)),i},e}();t.ValidationControllerSettings=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewVisualModel=void 0;var n=i(21),o=i(194),r=i(196),a=i(197),s=i(198),l=i(199),d=i(200),u=i(1),c=i(2),h=i(69),p=i(48),f=i(70),g=function(){function e(e,t,i,s,l,u,c){this._fLockCount=0,this.lockChangesProcessing=!1,this.owner=e,this.tasks=new o.TaskCollection,this.tasks.importFromObject(t),this.dependencies=new r.DependencyCollection,this.dependencies.importFromObject(i),this.resources=new n.ResourceCollection,this.resources.importFromObject(s),this.assignments=new a.ResourceAssignmentCollection,this.assignments.importFromObject(l),this._itemList=new Array,this._viewItemList=new Array,this._workTimeCalculator=new d.WorkingTimeCalculator(u,c),this.updateModel(!0)}return Object.defineProperty(e.prototype,"renderHelper",{get:function(){return this.owner.renderHelper},enumerable:!1,configurable:!0}),e.prototype.updateModel=function(e){this._itemList.splice(0,this._itemList.length);for(var t=this.tasks.items,i=0;i<t.length;i++){var n=t[i];n&&this._itemList.push(new s.ViewVisualModelItem(n,this.getAssignedResources(n)))}this.createHierarchy(e),this.populateItemsForView(),this.owner&&this.owner.currentSelectedTaskID&&this.changeTaskSelected(this.owner.currentSelectedTaskID,!0)},e.prototype.createHierarchy=function(e){var t=this;this.root=new s.ViewVisualModelItem(null,null);for(var i=this._itemList,n=i.reduce((function(e,t){var i,n=null===(i=t.task)||void 0===i?void 0:i.internalId;return(0,u.isDefined)(n)&&(e[n]=t),e}),{}),o=this.requireFirstLoadParentAutoCalc&&e,r=0;r<i.length;r++){var a=i[r],l=n[a.task.parentId]||this.root;a.parent=l,l.addChild(a),o&&this.owner.validationController.recalculateParents(a,(function(e){if((0,u.isDefined)(e.id)){var i=t.tasks.getItemById(e.id);(0,u.isDefined)(e.start)&&(i.start=e.start),(0,u.isDefined)(e.end)&&(i.end=e.end),(0,u.isDefined)(e.progress)&&(i.progress=e.progress)}}))}o&&this.owner.dispatcher.notifyParentDataRecalculated(this.getCurrentTaskData())},e.prototype.getCurrentTaskData=function(){var e=this;return this.tasks.items.map((function(t){return e.getTaskObjectForDataSource(t)}))},e.prototype.getTaskObjectForDataSource=function(e){var t=e.parentId&&this.tasks.getItemById(e.parentId),i=this.getRootTaskId(),n=i&&e.parentId===i?e.parentId:null==t?void 0:t.id;return{id:e.id,start:e.start,end:e.end,duration:e.duration,description:e.description,parentId:n,progress:e.progress,color:e.color,taskType:e.taskType,title:e.title,customFields:e.customFields,expanded:e.expanded}},e.prototype.getDependencyObjectForDataSource=function(e){var t=e instanceof h.Dependency?e:this.getItemByPublicId("dependency",e);if(t){var i=this.convertInternalToPublicKey("task",t.predecessorId),n=this.convertInternalToPublicKey("task",t.successorId);return{id:t.id,predecessorId:(0,u.isDefined)(i)?i:t.predecessorId,successorId:(0,u.isDefined)(n)?n:t.successorId,type:t.type}}return null},e.prototype.getResourceObjectForDataSource=function(e){var t=e instanceof p.Resource?e:this.getItemByPublicId("resource",e);return t?{id:t.id,text:t.text,color:t.color}:null},e.prototype.getResourceAssignmentObjectForDataSource=function(e){var t=e instanceof f.ResourceAssignment?e:this.getItemByPublicId("assignment",e);if(t){var i=this.convertInternalToPublicKey("task",t.taskId),n=this.convertInternalToPublicKey("resource",t.resourceId);return{id:t.id,taskId:(0,u.isDefined)(i)?i:t.taskId,resourceId:(0,u.isDefined)(n)?n:t.resourceId}}return null},e.prototype.populateItemsForView=function(){this._viewItemList.splice(0,this._viewItemList.length),this.populateVisibleItems(this.root),this.updateVisibleItemDependencies()},e.prototype.populateVisibleItems=function(e){var t=this,i=e===this.root;e&&(e.task||i)&&(i||(this._viewItemList.push(e),e.visibleIndex=this._viewItemList.length-1),(e.getExpanded()||e===this.root)&&e.children.forEach((function(e){return t.populateVisibleItems(e)})))},e.prototype.updateVisibleItemDependencies=function(){for(var e=this._viewItemList,t=0;t<e.length;t++){var i=e[t],n=this.getTasVisibleDependencies(i.task);i.setDependencies(n)}},e.prototype.getAssignedResources=function(e){var t=this,i=new n.ResourceCollection;return this.assignments.items.filter((function(t){return t.taskId==e.internalId})).forEach((function(e){i.add(t.resources.getItemById(e.resourceId))})),i},e.prototype.getTasVisibleDependencies=function(e){for(var t=new Array,i=e.internalId,n=this.dependencies.items.filter((function(e){return e.successorId==i})),o=0;o<n.length;o++){var r=n[o],a=this.findItem(r.predecessorId);a&&a.getVisible()&&t.push(new l.ViewVisualModelDependencyInfo(r.internalId,a,r.type))}return t},e.prototype.changeTaskExpanded=function(e,t){var i=this.tasks.getItemById(String(e));i&&(i.expanded=t,this.changed())},e.prototype.changeTaskVisibility=function(e,t){var i=this.findItem(e);i&&(i.visible=t,this.changed())},e.prototype.changeTaskSelected=function(e,t){var i=this._itemList.filter((function(t){return t.task&&t.task.internalId===e}))[0];if(i){i.selected=t;var n=this.findItem(e),o=n&&n.visibleIndex;o>-1&&this.renderHelper.recreateTaskElement(o)}},e.prototype.beginUpdate=function(){this._fLockCount++},e.prototype.endUpdate=function(){this._fLockCount--,0==this._fLockCount&&this.changed()},e.prototype.compareTaskOrder=function(e){var t=new o.TaskCollection;t.importFromObject(e);var i=t.items,n=this.tasks.items;if(i.length!==n.length)return!1;for(var r=0;r<i.length;r++){var a=i[r],s=n[r];if(a.id!==s.id)return!1}return!0},e.prototype.refreshTaskDataIfRequires=function(e){var t=!this.lockChangesProcessing&&!this.compareTaskOrder(e);if(t){var i=this.saveTaskInternalIds();this.tasks.importFromObject(e),this.restoreTaskInternalIds(i),this.updateModel()}return t},e.prototype.saveTaskInternalIds=function(){var e={};return this.tasks.items.map((function(t){return e[t.id]=t.internalId})),e},e.prototype.restoreTaskInternalIds=function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var i=this.tasks.getItemByPublicId(t);i&&(i.internalId=e[t])}},e.prototype.canCreateDependency=function(e,t){if(!e||!t||e===t)return!1;var i=!1;if(this.enableDependencyValidation){var n=this.getDependentTasksHash();i=this.parentAutoCalc?this.checkTasksInterdependence(e,t,n)||this.checkParent(e,t)||this.checkParent(t,e):this.checkDependencyChain([e],[t],n,[])}return!i},e.prototype.checkParent=function(e,t){return this.getTaskTreeLine(e).indexOf(t)>-1},e.prototype.getTaskTreeLine=function(e){var t=[e],i=this.findItem(e);if(i)for(i=i.parent;null==i?void 0:i.task;)t.push(null==i?void 0:i.task.internalId),i=i.parent;return t},e.prototype.getDependentTasksHash=function(){var e={};return this.dependencies.items.forEach((function(t){var i,n,o=t.predecessorId,r=t.successorId;null!==(i=e[o])&&void 0!==i||(e[o]=[]),e[o].indexOf(r)<0&&e[o].push(r),null!==(n=e[r])&&void 0!==n||(e[r]=[]),e[r].indexOf(o)<0&&e[r].push(o)})),e},e.prototype.checkTasksInterdependence=function(e,t,i){for(var n,o,r=this.getTaskTreeLine(e).reverse(),a=this.getTaskTreeLine(t).reverse(),s=0;s<r.length-1;s++){var l=r[s],d=a.indexOf(l);d>-1&&(n=r[s+1],o=a[d+1])}return n||o||(n=r[0],o=a[0]),this.checkDependencyChain(this.getBranchIds(n),this.getBranchIds(o),i,[])},e.prototype.checkDependencyChain=function(e,t,i,n){if(e.some((function(e){return t.indexOf(e)>-1})))return!0;n.push.apply(n,e);for(var o=0;o<e.length;o++){var r=i[e[o]];if(r&&this.checkDependencyChain(r.filter((function(e){return-1===n.indexOf(e)})),t,i,n))return!0}return!1},e.prototype.getBranchIds=function(e){var t=this,i=[e],n=this.findItem(e),o=null==n?void 0:n.children;return o&&o.forEach((function(e){var n,o=null===(n=e.task)||void 0===n?void 0:n.internalId;o&&(i=i.concat(t.getBranchIds(o)))})),i},e.prototype.getTasksExpandedState=function(){var e=this.tasks.items,t={};return e.forEach((function(e){return t[e.id]=e.expanded})),t},e.prototype.applyTasksExpandedState=function(e){if(e){for(var t in this.beginUpdate(),e)Object.prototype.hasOwnProperty.call(e,t)&&this.changeTaskExpanded(t,e[t]);this.endUpdate()}},e.prototype.changed=function(){0===this._fLockCount&&(this.populateItemsForView(),this.owner&&this.owner.onVisualModelChanged&&this.owner.onVisualModelChanged())},e.prototype.findItem=function(e){return this._viewItemList.filter((function(t){return t.task&&t.task.internalId===e}))[0]},Object.defineProperty(e.prototype,"items",{get:function(){return this._viewItemList},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"itemCount",{get:function(){return this.items.length},enumerable:!1,configurable:!0}),e.prototype.getTaskVisibility=function(e){var t=this.findItem(e);return!!t&&t.getVisible()},e.prototype.getTaskSelected=function(e){var t=this.findItem(e);return!!t&&t.selected},Object.defineProperty(e.prototype,"noWorkingIntervals",{get:function(){return this._workTimeCalculator.noWorkingIntervals},enumerable:!1,configurable:!0}),e.prototype.updateRange=function(e){this._workTimeCalculator.updateRange(e)},e.prototype.taskHasChildrenByIndex=function(e){return this._viewItemList[e].children.length>0},e.prototype.taskHasChildren=function(e){var t=this.findItem(e);return t&&t.children.length>0},Object.defineProperty(e.prototype,"enableDependencyValidation",{get:function(){var e,t=this.owner&&this.owner.settings;return null===(e=null==t?void 0:t.validation)||void 0===e?void 0:e.validateDependencies},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentAutoCalc",{get:function(){var e=this.owner&&this.owner.settings;return e&&e.validation&&e.validation.autoUpdateParentTasks},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enablePredecessorGap",{get:function(){var e=this.owner&&this.owner.settings;return e&&e.validation&&e.validation.enablePredecessorGap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"requireFirstLoadParentAutoCalc",{get:function(){return this.parentAutoCalc&&this.owner.requireFirstLoadParentAutoCalc()},enumerable:!1,configurable:!0}),e.prototype.isTaskToCalculateByChildren=function(e){return this.parentAutoCalc&&this.taskHasChildren(e)},e.prototype.hasTasks=function(){return this.tasks.length>0},e.prototype.getDataUpdateErrorCallback=function(){return this.owner.getDataUpdateErrorCallback&&this.owner.getDataUpdateErrorCallback()},e.prototype.convertPublicToInternalKey=function(e,t){var i=this.getItemByPublicId(e,t);return i&&i.internalId},e.prototype.convertInternalToPublicKey=function(e,t){var i=this.getItemByInternalId(e,t);return i&&i.id},e.prototype.getItemByPublicId=function(e,t){var i=t.toString();switch(e){case"task":return this.tasks.getItemByPublicId(i);case"dependency":return this.dependencies.getItemByPublicId(i);case"resource":return this.resources.getItemByPublicId(i);case"assignment":return this.assignments.getItemByPublicId(i)}return null},e.prototype.getItemByInternalId=function(e,t){switch(e){case"task":return this.tasks.getItemById(t);case"dependency":return this.dependencies.getItemById(t);case"resource":return this.resources.getItemById(t);case"assignment":return this.assignments.getItemById(t)}return null},e.prototype.findAssignment=function(e,t){var i=this.convertPublicToInternalKey("resource",e),n=this.convertPublicToInternalKey("task",t);return this.assignments.items.filter((function(e){return e.resourceId===i&&e.taskId===n}))[0]},e.prototype.findAllTaskAssignments=function(e){return this.assignments.items.filter((function(t){return t.taskId===e}))},e.prototype.getAllVisibleTaskIndices=function(e,t){var i,n=[];null!=e||(e=0),null!=t||(t=this._viewItemList.length-1);for(var o=e;o<=t;o++){var r=this._viewItemList[o];(null==r?void 0:r.getVisible())&&(null===(i=null==r?void 0:r.task)||void 0===i?void 0:i.isValid)&&n.push(o)}return n},e.prototype.getVisibleTasks=function(){var e=this;return this.tasks.items.filter((function(t){return t&&e.getTaskVisibility(t.internalId)&&t.isValid()}))},e.prototype.getVisibleDependencies=function(){var e=this.getVisibleTasks().map((function(e){return e.internalId}));return this.dependencies.items.filter((function(t){return t&&e.indexOf(t.successorId)>-1&&e.indexOf(t.predecessorId)>-1}))},e.prototype.getVisibleResourceAssignments=function(){var e=this.getVisibleTasks().map((function(e){return e.internalId}));return this.assignments.items.filter((function(t){return t&&e.indexOf(t.taskId)>-1}))},e.prototype.getVisibleResources=function(){for(var e=[],t=this.getVisibleResourceAssignments(),i=0;i<t.length;i++){var n=this.getItemByInternalId("resource",t[i].resourceId);n&&-1===e.indexOf(n)&&e.push(n)}return e},e.prototype.getRootTaskId=function(){var e;return null!==(e=this.rootTaskId)&&void 0!==e||(this.rootTaskId=this.calculateRootTaskId()),this.rootTaskId},e.prototype.calculateRootTaskId=function(){var e=this.items[0];if(!e)return null;for(;e.parent&&e.task;)e=e.parent;return e.children[0].task.parentId},e.prototype.getTaskMinStart=function(){var e=this.owner.dataRange.start;return this.tasks.items.forEach((function(t){t.isValid()&&t.start.getTime()<e.getTime()&&(e=t.start)})),e},e.prototype.getTaskMaxEnd=function(){var e=this.owner.dataRange.end;return this.tasks.items.forEach((function(t){t.isValid()&&t.end.getTime()>e.getTime()&&(e=t.end)})),e},e.prototype.processServerInsertedKey=function(e,t,i){var n;i===c.GanttDataObjectNames.task&&this.tasks.invalidate(),i===c.GanttDataObjectNames.dependency&&(this.dependencies.invalidate(),this.updateVisibleItemDependencies()),i===c.GanttDataObjectNames.resource&&this.resources.invalidate(),i===c.GanttDataObjectNames.resourceAssignment&&this.assignments.invalidate(),null===(n=this.owner)||void 0===n||n.updateHistoryObsoleteInsertedKey(e,t,i)},e.prototype.onBeginDataObjectCreate=function(){var e,t;null===(t=(e=this.owner).lockUpdateWithReload)||void 0===t||t.call(e)},e.prototype.onEndDataObjectCreate=function(){var e,t;null===(t=(e=this.owner).unlockUpdateWithReload)||void 0===t||t.call(e)},e}();t.ViewVisualModel=g},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskCollection=void 0;var n=i(0),o=i(195),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.createItem=function(){return new o.Task},t}(i(22).CollectionBase);t.TaskCollection=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Task=void 0;var n=i(0),o=i(1),r=function(e){function t(){var t=e.call(this)||this;return t.start=null,t.end=null,t.duration=null,t.description="",t.parentId=null,t.title="",t.owner=null,t.progress=0,t.taskType=null,t.customFields={},t.expanded=!0,t.color="",t}return n.__extends(t,e),Object.defineProperty(t.prototype,"normalizedProgress",{get:function(){return Math.max(Math.min(this.progress,100),0)},enumerable:!1,configurable:!0}),t.prototype.assignFromObject=function(t){(0,o.isDefined)(t)&&(e.prototype.assignFromObject.call(this,t),this.owner=t.owner,this.parentId=(0,o.isDefined)(t.parentId)?String(t.parentId):null,this.description=t.description,this.title=t.title,this.start="string"==typeof t.start?new Date(t.start):t.start||new Date(0),this.end="string"==typeof t.end?new Date(t.end):t.end||new Date(0),this.duration=t.duration,this.progress=t.progress,this.taskType=t.taskType,(0,o.isDefined)(t.expanded)&&(this.expanded=!!t.expanded),(0,o.isDefined)(t.color)&&(this.color=t.color),this.assignCustomFields(t.customFields))},t.prototype.assignCustomFields=function(e){if(e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.customFields[t]=e[t])},t.prototype.isMilestone=function(){return this.start.getTime()===this.end.getTime()},t.prototype.getDuration=function(){return this.end.getTime()-this.start.getTime()},t.prototype.isValid=function(){return!!this.start.getTime()&&!!this.end.getTime()},t}(i(2).DataObject);t.Task=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DependencyCollection=void 0;var n=i(0),o=i(22),r=i(69),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.createItem=function(){return new r.Dependency},t}(o.CollectionBase);t.DependencyCollection=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceAssignmentCollection=void 0;var n=i(0),o=i(22),r=i(70),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.createItem=function(){return new r.ResourceAssignment},t}(o.CollectionBase);t.ResourceAssignmentCollection=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewVisualModelItem=void 0;var n=i(1),o=i(12),r=function(){function e(e,t){this.dependencies=new Array,this.parent=null,this.visible=!0,this.selected=!1,this.visibleIndex=-1,this.task=e,this.resources=t,this.children=new Array,this.isCustom=!1,this.size=new o.Size(0,0)}return Object.defineProperty(e.prototype,"resourceText",{get:function(){var e="";return this.resources.items.forEach((function(t){return e+=t.text+" "})),e},enumerable:!1,configurable:!0}),e.prototype.addChild=function(e){(0,n.isDefined)(e)&&this.children.indexOf(e)<0&&this.children.push(e)},e.prototype.removeChild=function(e){var t=this.children.indexOf(e);t>-1&&this.children.splice(t,1)},e.prototype.getExpanded=function(){return!!this.task&&this.task.expanded},e.prototype.getVisible=function(){if(!this.visible)return!1;for(var e=this.parent;e;){if(!e.visible)return!1;e=e.parent}return!0},e.prototype.changeVisibility=function(e){this.visible=e},e.prototype.changeSelection=function(e){this.selected=e},e.prototype.setDependencies=function(e){e&&(this.dependencies=e.slice())},e}();t.ViewVisualModelItem=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewVisualModelDependencyInfo=void 0;var n=function(e,t,i){this.id=e,this.predecessor=t,this.type=i};t.ViewVisualModelDependencyInfo=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkingTimeCalculator=void 0;var n=i(201),o=i(209),r=i(8),a=function(){function e(e,t){this._workingRules=new n.WorkingDayRuleCollection,this._workDayList=new Array,this._calculationRange=e,this._workingRules.importFromObject(t)}return e.prototype.calculateWorkDayList=function(){if(this._calculationRange){this.clearList();for(var e=this._workingRules.items,t=0;t<e.length;t++)this.processRule(e[t]);this.sortList()}},e.prototype.processRule=function(e){for(var t=e.recurrence.calculatePoints(this._calculationRange.start,this._calculationRange.end),i=function(i){var a=t[i],s=r.DateTimeUtils.getDayNumber(a),l=n._workDayList.filter((function(e){return e.dayNumber==s}))[0];l?(l.isWorkDay=l.isWorkDay&&e.isWorkDay,l.addWorkingIntervals(e.workTimeRanges)):n._workDayList.push(new o.DayWorkingTimeInfo(s,e.isWorkDay,e.workTimeRanges))},n=this,a=0;a<t.length;a++)i(a)},e.prototype.sortList=function(){this._workDayList.sort((function(e,t){return e.dayNumber-t.dayNumber}))},e.prototype.clearList=function(){this._workDayList.splice(0,this._workDayList.length)},e.prototype.calculateNoWorkTimeIntervals=function(){var e=this,t=new Array;return 0==this._workDayList.length&&this.calculateWorkDayList(),this._workDayList.forEach((function(i){return t=t.concat(e.getNoWorkTimeRangesFromDay(i))})),this.concatJointedRanges(t)},e.prototype.concatJointedRanges=function(e){for(var t=new Array,i=0;i<e.length;i++){var n=e[i];t.length>0&&r.DateTimeUtils.compareDates(t[t.length-1].end,n.start)<2?t[t.length-1].end=n.end:t.push(n)}return t},e.prototype.getNoWorkTimeRangesFromDay=function(e){return e.noWorkingIntervals.map((function(t){return r.DateTimeUtils.convertTimeRangeToDateRange(t,e.dayNumber)}))},Object.defineProperty(e.prototype,"noWorkingIntervals",{get:function(){return this._noWorkingIntervals||(this._noWorkingIntervals=this.calculateNoWorkTimeIntervals()),this._noWorkingIntervals.slice()},enumerable:!1,configurable:!0}),e.prototype.updateRange=function(e){this._calculationRange=e,this.invalidate()},e.prototype.invalidate=function(){this._noWorkingIntervals=null,this.clearList()},e}();t.WorkingTimeCalculator=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkingDayRuleCollection=void 0;var n=i(0),o=i(22),r=i(202),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.createItem=function(){return new r.WorkingTimeRule},t}(o.CollectionBase);t.WorkingDayRuleCollection=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkingTimeRule=void 0;var n=i(0),o=i(2),r=i(1),a=i(8),s=i(71),l=i(72),d=function(e){function t(t,i,n){void 0===t&&(t=null),void 0===i&&(i=!0),void 0===n&&(n=null);var o=e.call(this)||this;return o.isWorkDay=!0,o.workTimeRanges=new Array,o.recurrence=t,o.isWorkDay=i,n&&o.workTimeRanges.concat(n),o}return n.__extends(t,e),t.prototype.assignFromObject=function(t){if((0,r.isDefined)(t)){e.prototype.assignFromObject.call(this,t),this.recurrence=s.RecurrenceFactory.createRecurrenceByType(t.recurrenceType)||new l.Daily,(0,r.isDefined)(t.recurrence)&&this.recurrence.assignFromObject(t.recurrence),(0,r.isDefined)(t.isWorkDay)&&(this.isWorkDay=!!t.isWorkDay);var i=a.DateTimeUtils.convertToTimeRanges(t.workTimeRanges);i&&(this.workTimeRanges=i)}},t}(o.DataObject);t.WorkingTimeRule=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DayOfWeek=void 0,function(e){e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday"}(t.DayOfWeek||(t.DayOfWeek={}))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Month=void 0,function(e){e[e.January=0]="January",e[e.February=1]="February",e[e.March=2]="March",e[e.April=3]="April",e[e.May=4]="May",e[e.June=5]="June",e[e.July=6]="July",e[e.August=7]="August",e[e.September=8]="September",e[e.October=9]="October",e[e.November=10]="November",e[e.December=11]="December"}(t.Month||(t.Month={}))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Weekly=void 0;var n=i(0),o=i(38),r=i(8),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.checkDate=function(e){return r.DateTimeUtils.checkDayOfWeek(this.dayOfWeekInternal,e)},t.prototype.checkInterval=function(e){return r.DateTimeUtils.getWeeksBetween(this.start,e)%this.interval==0},t.prototype.calculatePointByInterval=function(e){var t=r.DateTimeUtils.getWeeksBetween(this.start,e),i=Math.floor(t/this.interval);(t%this.interval>0||e.getDay()>=this.dayOfWeekInternal)&&i++;var n=i*this.interval;return this.calcNextPointWithWeekCount(this.start,n)},t.prototype.calculateNearestPoint=function(e){var t=this.dayOfWeekInternal-e.getDay();return t>0?r.DateTimeUtils.addDays(new Date(e),t):this.calcNextPointWithWeekCount(e,1)},t.prototype.calcNextPointWithWeekCount=function(e,t){void 0===t&&(t=1);var i=7*t+this.dayOfWeekInternal-e.getDay();return r.DateTimeUtils.addDays(new Date(e),i)},Object.defineProperty(t.prototype,"dayOfWeek",{get:function(){return this.dayOfWeekInternal},set:function(e){this.dayOfWeekInternal=e},enumerable:!1,configurable:!0}),t}(o.RecurrenceBase);t.Weekly=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Monthly=void 0;var n=i(0),o=i(38),r=i(8),a=i(207),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.checkDate=function(e){return this._calculateByDayOfWeek?r.DateTimeUtils.checkDayOfWeekOccurrenceInMonth(e,this.dayOfWeekInternal,this.dayOfWeekOccurrenceInternal):r.DateTimeUtils.checkDayOfMonth(this.dayInternal,e)},t.prototype.checkInterval=function(e){return r.DateTimeUtils.getMonthsDifference(this.start,e)%this.interval==0},t.prototype.calculatePointByInterval=function(e){var t=this.start,i=r.DateTimeUtils.getMonthsDifference(t,e),n=Math.floor(i/this.interval)*this.interval,o=new a.MonthInfo(t.getMonth(),t.getFullYear());o.addMonths(n);var s=this.getSpecDayInMonth(o.year,o.month);return r.DateTimeUtils.compareDates(s,e)>=0&&(o.addMonths(this.interval),s=this.getSpecDayInMonth(o.year,o.month)),s},t.prototype.calculateNearestPoint=function(e){var t=e.getMonth(),i=e.getFullYear(),n=this.getSpecDayInMonth(i,t);if(r.DateTimeUtils.compareDates(n,e)>=0){var o=new a.MonthInfo(t,i);o.addMonths(1),n=this.getSpecDayInMonth(o.year,o.month)}return n},Object.defineProperty(t.prototype,"day",{get:function(){return this.dayInternal},set:function(e){this.dayInternal=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dayOfWeek",{get:function(){return this.dayOfWeekInternal},set:function(e){this.dayOfWeekInternal=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dayOfWeekOccurrence",{get:function(){return this.dayOfWeekOccurrenceInternal},set:function(e){this.dayOfWeekOccurrenceInternal=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculateByDayOfWeek",{get:function(){return this._calculateByDayOfWeek},set:function(e){this._calculateByDayOfWeek=e},enumerable:!1,configurable:!0}),t}(o.RecurrenceBase);t.Monthly=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MonthInfo=void 0;var n=i(8),o=function(){function e(e,t){this.month=e,this.year=t}return e.prototype.addMonths=function(e){var t=n.DateTimeUtils.getNextMonth(this.month,e),i=Math.floor(e/12);t<this.month&&++i,this.month=t,this.year+=i},e}();t.MonthInfo=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Yearly=void 0;var n=i(0),o=i(38),r=i(8),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.checkDate=function(e){return!!r.DateTimeUtils.checkMonth(this.month,e)&&(this._calculateByDayOfWeek?r.DateTimeUtils.checkDayOfWeekOccurrenceInMonth(e,this.dayOfWeekInternal,this.dayOfWeekOccurrenceInternal):r.DateTimeUtils.checkDayOfMonth(this.dayInternal,e))},t.prototype.checkInterval=function(e){return r.DateTimeUtils.getYearsDifference(this.start,e)%this.interval==0},t.prototype.calculatePointByInterval=function(e){var t=r.DateTimeUtils.getYearsDifference(this.start,e),i=Math.floor(t/this.interval)*this.interval,n=this.start.getFullYear()+i,o=this.getSpecDayInMonth(n,this.monthInternal);return r.DateTimeUtils.compareDates(o,e)>=0&&(n+=this.interval,o=this.getSpecDayInMonth(n,this.monthInternal)),o},t.prototype.calculateNearestPoint=function(e){var t=e.getFullYear(),i=this.getSpecDayInMonth(t,this.monthInternal);return r.DateTimeUtils.compareDates(i,e)>=0&&(i=this.getSpecDayInMonth(++t,this.monthInternal)),i},Object.defineProperty(t.prototype,"month",{get:function(){return this.monthInternal},set:function(e){this.monthInternal=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"day",{get:function(){return this.dayInternal},set:function(e){this.dayInternal=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dayOfWeek",{get:function(){return this.dayOfWeekInternal},set:function(e){this.dayOfWeekInternal=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dayOfWeekOccurrence",{get:function(){return this.dayOfWeekOccurrenceInternal},set:function(e){this.dayOfWeekOccurrenceInternal=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculateByDayOfWeek",{get:function(){return this._calculateByDayOfWeek},set:function(e){this._calculateByDayOfWeek=e},enumerable:!1,configurable:!0}),t}(o.RecurrenceBase);t.Yearly=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DayWorkingTimeInfo=void 0;var n=i(56),o=i(8),r=i(55),a=function(){function e(e,t,i){void 0===e&&(e=0),void 0===t&&(t=!0),void 0===i&&(i=null),this._workingIntervals=new Array,this.dayNumber=e,this.isWorkDay=t,this.addWorkingIntervals(i)}return e.prototype.addWorkingIntervals=function(e){e&&(this._workingIntervals=this._workingIntervals.concat(e.filter((function(e){return!!e}))),this.rearrangeWorkingIntervals())},e.prototype.rearrangeWorkingIntervals=function(){for(var e=0;e<this._workingIntervals.length;e++)this.concatWithIntersectedRanges(this._workingIntervals[e]);this.sortIntervals()},e.prototype.concatWithIntersectedRanges=function(e){var t=this;this.getIntersectedIntervals(e).forEach((function(i){e.concatWith(i),t.removeInterval(i)}))},e.prototype.getIntersectedIntervals=function(e){return this._workingIntervals.filter((function(t){return t.hasIntersect(e)&&t!==e}))},e.prototype.sortIntervals=function(){this._workingIntervals.sort((function(e,t){return o.DateTimeUtils.caclTimeDifference(t.start,e.start)}))},e.prototype.removeInterval=function(e){var t=this._workingIntervals.indexOf(e);t>-1&&t<this._workingIntervals.length&&this._workingIntervals.splice(t,1)},e.prototype.clearIntervals=function(){this._workingIntervals.splice(0,this._workingIntervals.length)},Object.defineProperty(e.prototype,"workingIntervals",{get:function(){return this._workingIntervals.slice()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"noWorkingIntervals",{get:function(){var e=new Array;if(this.isWorkDay&&0===this._workingIntervals.length)return e;var t=this._workingIntervals.map((function(e){return e.end}));t.splice(0,0,new r.Time);var i=this._workingIntervals.map((function(e){return e.start}));i.push(o.DateTimeUtils.getLastTimeOfDay());for(var a=0;a<t.length;a++){var s=t[a],l=i[a];o.DateTimeUtils.areTimesEqual(s,l)||e.push(new n.TimeRange(s,l))}return e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isWorkDay",{get:function(){return this._isWorkDay},set:function(e){this._isWorkDay=e,e||this.clearIntervals()},enumerable:!1,configurable:!0}),e}();t.DayWorkingTimeInfo=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GanttViewApi=void 0;var n=function(){function e(e){this.maxZoom=3,this._ganttView=e}return Object.defineProperty(e.prototype,"currentZoom",{get:function(){return this._ganttView.currentZoom},set:function(e){this._ganttView.currentZoom=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderHelper",{get:function(){return this._ganttView.renderHelper},enumerable:!1,configurable:!0}),e.prototype.getTaskAreaContainerWidth=function(){return this.renderHelper.getTaskAreaContainerWidth()},e.prototype.updateTickSizeWidth=function(){this._ganttView.updateTickSizeWidth()},Object.defineProperty(e.prototype,"settings",{get:function(){return this._ganttView.settings},enumerable:!1,configurable:!0}),e.prototype.resetAndUpdate=function(){this._ganttView.resetAndUpdate()},e.prototype.scrollToDateCore=function(e,t){this._ganttView.scrollToDateCore(e,t)},Object.defineProperty(e.prototype,"ganttOwner",{get:function(){return this._ganttView.ganttOwner},enumerable:!1,configurable:!0}),e.prototype.scrollLeftByViewType=function(){this._ganttView.scrollLeftByViewType()},Object.defineProperty(e.prototype,"dataRange",{get:function(){return this._ganttView.dataRange},enumerable:!1,configurable:!0}),e.prototype.calculateAutoViewType=function(e,t){return this._ganttView.calculateAutoViewType(e,t)},e.prototype.zoomIn=function(e){void 0===e&&(e=this.getTaskAreaContainerWidth()/2);var t=this.renderHelper.getTargetDateByPos(e),i=this.settings.viewTypeRange.min;this.currentZoom<this.maxZoom?(this.currentZoom++,this.updateTickSizeWidth(),this.resetAndUpdate()):this.settings.viewType>i&&(this.currentZoom=1,this.setViewType(this.settings.viewType-1,!1)),this.scrollToDateCore(t,-e)},e.prototype.zoomOut=function(e){void 0===e&&(e=this.renderHelper.getTaskAreaContainerWidth()/2);var t=this.renderHelper.getTargetDateByPos(e),i=this.settings.viewTypeRange.max;this.currentZoom>1?(this.currentZoom--,this.updateTickSizeWidth(),this.resetAndUpdate()):this.settings.viewType<i&&(this.currentZoom=this.maxZoom,this.setViewType(this.settings.viewType+1,!1)),this.scrollToDateCore(t,-e)},e.prototype.setViewType=function(e,t){void 0===t&&(t=!0),null==e&&(e=this.calculateAutoViewType(this.dataRange.start,this.dataRange.end)),this.settings.viewType!==e&&(this.settings.viewType=e,this.updateTickSizeWidth(),this.resetAndUpdate(),t&&this.scrollLeftByViewType(),this.ganttOwner.UpdateGanttViewType&&this.ganttOwner.UpdateGanttViewType(e))},e.prototype.setViewTypeRange=function(e,t){void 0!==e&&(this.settings.viewTypeRange.min=Math.min(e,t)),void 0!==t&&(this.settings.viewTypeRange.max=Math.max(e,t));var i=this.settings.viewTypeRange.min,n=this.settings.viewTypeRange.max,o=this.settings.viewType;i>o?this.setViewType(i):n<o&&this.setViewType(n)},e}();t.GanttViewApi=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaEventsListener=void 0;var n=i(5),o=i(1),r=i(3),a=i(9),s=i(66),l=i(212),d=i(13),u=function(){function e(e){this._owner=e}return Object.defineProperty(e.prototype,"taskEditController",{get:function(){var e;return null===(e=this._owner)||void 0===e?void 0:e.taskEditController},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderHelper",{get:function(){var e;return null===(e=this._owner)||void 0===e?void 0:e.renderHelper},enumerable:!1,configurable:!0}),e.prototype.getHandler=function(e){return this.handlers[e]},e.prototype.setHandler=function(e,t){this.handlers[e]=t},Object.defineProperty(e.prototype,"handlers",{get:function(){var e;return null!==(e=this._handlers)&&void 0!==e||(this._handlers=this.createTaskAreaEventHandlers()),this._handlers},enumerable:!1,configurable:!0}),e.prototype.createTaskAreaEventHandlers=function(){var e={};return e[d.TaskAreaStateEventNames.TASK_AREA_CLICK]=this.taskAreaClickHandler.bind(this),e[d.TaskAreaStateEventNames.TASK_AREA_DBLCLICK]=this.taskAreaDblClickHandler.bind(this),e[d.TaskAreaStateEventNames.TASK_AREA_SCROLL]=this.taskAreaScrollHandler.bind(this),e[d.TaskAreaStateEventNames.TASK_AREA_START_MOVE]=this.taskAreaStartMoveHandler.bind(this),e[d.TaskAreaStateEventNames.TASK_AREA_PROCESS_MOVE]=this.taskAreaProcessMoveHandler.bind(this),e[d.TaskAreaStateEventNames.TASK_AREA_END_MOVE]=this.taskAreaEndMoveHandler.bind(this),e[d.TaskAreaStateEventNames.TASK_AREA_ZOOM_IN]=this.taskAreaZoomInHandler.bind(this),e[d.TaskAreaStateEventNames.TASK_AREA_ZOOM_OUT]=this.taskAreaZoomOutHandler.bind(this),e[d.TaskAreaStateEventNames.CONTEXTMENU_SHOW]=this.taskAreaContextMenuShowHandler.bind(this),e[d.TaskAreaStateEventNames.CONTEXTMENU_HIDE]=this.taskAreaContextMenuHideHandler.bind(this),e[d.TaskAreaStateEventNames.TASK_SELECTION]=this.taskSelectionHandler.bind(this),e[d.TaskAreaStateEventNames.DEPENDENCY_SELECTION]=this.dependencySelectionHandler.bind(this),e[d.TaskAreaStateEventNames.TASK_EDIT_START]=this.taskEditStartHandler.bind(this),e[d.TaskAreaStateEventNames.TASK_EDIT_END]=this.taskEditEndHandler.bind(this),e[d.TaskAreaStateEventNames.TASK_LEAVE]=this.taskLeaveHandler.bind(this),e[d.TaskAreaStateEventNames.TASK_PROCESS_MOVE]=this.taskProcessMoveHandler.bind(this),e[d.TaskAreaStateEventNames.TASK_END_MOVE]=this.taskEndMoveHandler.bind(this),e[d.TaskAreaStateEventNames.TASK_PROCESS_PROGRESS]=this.taskProcessProgressHandler.bind(this),e[d.TaskAreaStateEventNames.TASK_END_PROGRESS]=this.taskEndProgressHandler.bind(this),e[d.TaskAreaStateEventNames.TASK_PROCESS_START]=this.taskProcessStartHandler.bind(this),e[d.TaskAreaStateEventNames.TASK_CONFIRM_START]=this.taskConfirmStartHandler.bind(this),e[d.TaskAreaStateEventNames.TASK_PROCESS_END]=this.taskProcessEndHandler.bind(this),e[d.TaskAreaStateEventNames.TASK_CONFIRM_END]=this.taskConfirmEndHandler.bind(this),e[d.TaskAreaStateEventNames.GET_DEPENDENCY_POINTS]=this.getDependencyPoints.bind(this),e[d.TaskAreaStateEventNames.DEPENDENCY_START]=this.dependencyStartHandler.bind(this),e[d.TaskAreaStateEventNames.DEPENDENCY_END]=this.dependencyEndHandler.bind(this),e[d.TaskAreaStateEventNames.DEPENDENCY_PROCESS]=this.dependencyProcessHandler.bind(this),e[d.TaskAreaStateEventNames.TASK_AREA_KEY_DOWN]=this.onTaskAreaKeyDown.bind(this),e[d.TaskAreaStateEventNames.GET_COORDINATES_REF_POINT]=this.getCoordinatesRefPoint.bind(this),e[d.TaskAreaStateEventNames.STATE_EXIT]=function(){},e},e.prototype.taskAreaClickHandler=function(e){return this._owner.onTaskAreaClick(e.rowIndex,e.triggerEvent)},e.prototype.taskAreaDblClickHandler=function(e){this._owner.onTaskAreaDblClick(e.rowIndex,e.triggerEvent)},e.prototype.taskSelectionHandler=function(e){this._owner.onTaskSelectionChanged(e.rowIndex,e.triggerEvent)},e.prototype.taskAreaContextMenuShowHandler=function(e){this._owner.onTaskAreaContextMenu(e.rowIndex,e.triggerEvent,e.info.type)},e.prototype.taskAreaContextMenuHideHandler=function(){this._owner.hidePopupMenu()},e.prototype.taskAreaScrollHandler=function(e){this._owner.updateView()},e.prototype.dependencySelectionHandler=function(e){var t=e.info.key,i=this.taskEditController.dependencyId;(t!==i||!t&&(0,o.isDefined)(i))&&this._owner.selectDependency(t)},Object.defineProperty(e.prototype,"ganttMovingHelper",{get:function(){var e;return null!==(e=this._ganttMovingHelper)&&void 0!==e||(this._ganttMovingHelper=new l.GanttMovingHelper(this._owner.renderHelper.taskAreaContainer)),this._ganttMovingHelper},enumerable:!1,configurable:!0}),e.prototype.taskAreaStartMoveHandler=function(e){this.ganttMovingHelper.startMoving(e.triggerEvent)},e.prototype.taskAreaProcessMoveHandler=function(e){this.ganttMovingHelper.movingInfo&&(this.ganttMovingHelper.onMouseMove(e.triggerEvent),e.triggerEvent.preventDefault())},e.prototype.taskAreaEndMoveHandler=function(e){this.ganttMovingHelper.onMouseUp(e.triggerEvent)},e.prototype.taskAreaZoomInHandler=function(e){this._owner.zoomIn(e.info.leftPos)},e.prototype.taskAreaZoomOutHandler=function(e){this._owner.zoomOut(e.info.leftPos)},e.prototype.getCoordinatesRefPoint=function(e){var t=r.DomUtils.getAbsolutePositionX(this.renderHelper.taskAreaContainer.getElement()),i=r.DomUtils.getAbsolutePositionY(this.renderHelper.taskAreaContainer.getElement());return new n.Point(t,i)},e.prototype.taskEditStartHandler=function(e){this.taskEditController.show(e.rowIndex),this.taskEditController.showTaskInfo(a.EvtUtils.getEventX(e.triggerEvent))},e.prototype.taskLeaveHandler=function(e){this.taskEditController.cancel()},e.prototype.taskEditEndHandler=function(e){this.taskEditController.endEditing()},e.prototype.taskEndMoveHandler=function(e){this.taskEditController.confirmMove()},e.prototype.taskProcessMoveHandler=function(e){var t;return this.taskEditController.processMove(null!==(t=e.info.delta)&&void 0!==t?t:0)},e.prototype.taskEndProgressHandler=function(e){this.taskEditController.confirmProgress()},e.prototype.taskProcessProgressHandler=function(e){this.taskEditController.processProgress(e.info.position)},e.prototype.taskProcessStartHandler=function(e){this.taskEditController.processStart(e.info.position)},e.prototype.taskConfirmStartHandler=function(e){this.taskEditController.confirmStart()},e.prototype.taskProcessEndHandler=function(e){this.taskEditController.processEnd(e.info.position)},e.prototype.taskConfirmEndHandler=function(e){this.taskEditController.confirmEnd()},e.prototype.getDependencyPoints=function(e){var t={};return t.successorStart=new n.Point(r.DomUtils.getAbsolutePositionX(this.taskEditController.dependencySuccessorStart)+this.taskEditController.dependencySuccessorStart.clientWidth/2,r.DomUtils.getAbsolutePositionY(this.taskEditController.dependencySuccessorStart)+this.taskEditController.dependencySuccessorStart.clientHeight/2),t.successorFinish=new n.Point(r.DomUtils.getAbsolutePositionX(this.taskEditController.dependencySuccessorFinish)+this.taskEditController.dependencySuccessorFinish.clientWidth/2,r.DomUtils.getAbsolutePositionY(this.taskEditController.dependencySuccessorFinish)+this.taskEditController.dependencySuccessorFinish.clientHeight/2),t},e.prototype.dependencyStartHandler=function(e){this.taskEditController.startDependency(e.info.pos)},e.prototype.dependencyEndHandler=function(e){this.taskEditController.endDependency(e.info.type)},e.prototype.dependencyProcessHandler=function(e){this.taskEditController.processDependency(e.info.pos),this._owner.viewModel.tasks.items[e.rowIndex]&&this.taskEditController.showDependencySuccessor(e.rowIndex)},e.prototype.onTaskAreaKeyDown=function(e){var t=e.info.code;t==(s.ModifierKey.Ctrl|s.KeyCode.Key_z)&&this._owner.history.undo(),t==(s.ModifierKey.Ctrl|s.KeyCode.Key_y)&&this._owner.history.redo(),t==s.KeyCode.Delete&&this.taskEditController.deleteSelectedDependency()},e}();t.TaskAreaEventsListener=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GanttMovingHelper=void 0;var n=i(10),o=i(9),r=function(){function e(e){this.taskAreaContainer=e,this.movingInfo=null}return e.prototype.startMoving=function(e){this.movingInfo=this.calcMovingInfo(e),this.updateGanttAreaCursor(!0)},e.prototype.cancelMoving=function(){this.movingInfo=null},e.prototype.onMouseMove=function(e){this.move(e)},e.prototype.onMouseUp=function(e){this.cancelMoving(),this.updateGanttAreaCursor(!1)},e.prototype.move=function(e){this.updateScrollPosition(e)},e.prototype.updateScrollPosition=function(e){var t=Math.round(o.EvtUtils.getEventX(e)),i=Math.round(o.EvtUtils.getEventY(e)),n=t-this.movingInfo.eventX,r=i-this.movingInfo.eventY,a=n<0?-1:1,s=r<0?-1:1,l=a<0?this.movingInfo.maxRightDelta:this.movingInfo.maxLeftDelta,d=s<0?this.movingInfo.maxBottomDelta:this.movingInfo.maxTopDelta;Math.abs(n)>l&&(n=l*a),Math.abs(r)>d&&(r=d*s);var u=this.movingInfo.scrollLeft-n,c=this.movingInfo.scrollTop-r,h=this.taskAreaContainer;h.scrollLeft!==u&&(h.scrollLeft=u),h.scrollTop!==c&&(h.scrollTop=c)},e.prototype.calcMovingInfo=function(e){var t=this.taskAreaContainer;return{eventX:o.EvtUtils.getEventX(e),eventY:o.EvtUtils.getEventY(e),scrollLeft:t.scrollLeft,scrollTop:t.scrollTop,maxLeftDelta:t.scrollLeft,maxRightDelta:t.scrollWidth-t.scrollLeft-t.getElement().offsetWidth,maxTopDelta:t.scrollTop,maxBottomDelta:t.scrollHeight-t.scrollTop-t.getElement().offsetHeight}},e.prototype.updateGanttAreaCursor=function(e){var t=n.Browser.IE?"move":"grabbing";this.taskAreaContainer.getElement().style.cursor=e?t:"default"},e}();t.GanttMovingHelper=r}])}))},45830:function(e,t,i){"use strict";
/*!
* devextreme-vue
* Version: 22.2.3
* Build date: Mon Dec 05 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-vue
*/var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.pullAllChildren=t.pullConfigComponents=t.isFragment=void 0;var o=i(68060);function r(e,t,i){e&&0!==e.length&&s(e,t,i)}function a(e){var t=e.patchFlag;return 128===t||256===t||64===t||-2===t}function s(e,t,i){e.forEach((function(e){if(a(e)&&Array.isArray(e.children)&&s(e.children,t,i),a(e)||t.push(e),e){var r=o.getComponentInfo(e);if(r&&r.$_optionName){var l=o.configurationChildren(e),d=n(n({},r.$_predefinedProps),o.getNormalizedProps(e.props||{})),u=i.createNested(r.$_optionName,d,r.$_isCollectionItem,r.$_expectedChildren);e.$_config=u,e.$_innerChanges={},l&&s(l,t,u)}}}))}t.pullAllChildren=r,t.isFragment=a,t.pullConfigComponents=s},58180:function(e,t,i){"use strict";
/*!
* devextreme-vue
* Version: 22.2.3
* Build date: Mon Dec 05 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-vue
*/var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[i]}})}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&o(t,e,i);return r(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.initBaseComponent=t.initDxComponent=void 0;var l=i(20144),d=s(i(94795)),u=i(82048),c=i(68060),h=i(45830),p=a(i(96053)),f=i(2018),g=i(56336),m=i(84117),_=i(54528),v=["id","class","style"];function y(e){var t={};return v.forEach((function(i){var n=e[i];n&&(t[i]=n)})),t}function C(){return l.defineComponent({inheritAttrs:!1,data:function(){return{eventBus:d.default()}},provide:function(){return{eventBus:this.eventBus}},render:function(){var e=this,t=[];return e.$_config.cleanNested&&e.$_config.cleanNested(),h.pullAllChildren(c.defaultSlots(this),t,e.$_config),this.$_processChildren(t),l.h("div",n({},y(this.$attrs)),t)},beforeUpdate:function(){var e=this;e.$_config.setPrevNestedOptions(e.$_config.getNestedOptionValues())},updated:function(){var e=this,t=b(this.$el);if(c.getChildren(e).forEach((function(e){var t;f.initOptionChangedFunc(e.$_config,e.type.props||{},null===(t=null===e||void 0===e?void 0:e.component)||void 0===t?void 0:t.proxy,e.$_innerChanges)})),e.$_templatesManager.discover(),e.$_instance.beginUpdate(),e.$_templatesManager.isDirty){e.$_instance.option("integrationOptions.templates",e.$_templatesManager.templates);for(var i=e.$.vnode.props,n=0,o=Object.keys(e.$_templatesManager.templates);n<o.length;n++){var r=o[n];e.$_instance.option(m.getTemplatePropName(i,r),r)}e.$_templatesManager.resetDirtyFlag()}for(var a=0,s=Object.keys(e.$_pendingOptions);a<s.length;a++){var l=s[a];e.$_instance.option(l,e.$_pendingOptions[l])}e.$_pendingOptions={},this.$_applyConfigurationChanges(),e.$_instance.endUpdate(),x(this.$el,t),this.eventBus.fire()},beforeUnmount:function(){var e=this,t=e.$_instance;t&&(u.triggerHandler(this.$el,g.DX_REMOVE_EVENT),t.dispose())},created:function(){var e=this,t=c.getComponentProps(this);e.$_config=new p.default((function(t,i){Array.isArray(i)?e.$_instance.option(t,i):e.$_pendingOptions[t===c.VMODEL_NAME?"value":t]=i}),null,t&&n({},t),e.$_expectedChildren),e.$_innerChanges={},e.$_config.init(this.$props&&Object.keys(this.$props))},methods:{$_applyConfigurationChanges:function(){var e=this;e.$_config.componentsCountChanged.forEach((function(t){var i=t.optionPath,n=t.isCollection,o=t.removed,r=e.$_config.getNestedOptionValues();!n&&o?e.$_instance.resetOption(i):e.$_instance.option(i,m.getOptionValue(r,i))})),e.$_config.cleanComponentsCountChanged()},$_createWidget:function(e){var t=this;t.$_pendingOptions={},t.$_templatesManager=new _.TemplatesManager(this);var i=t.$_config;i.initialValues.hasOwnProperty(c.VMODEL_NAME)&&(i.initialValues.value=c.getVModelValue(i.initialValues));var o=n(n(n(n({templatesRenderAsynchronously:t.$_hasAsyncTemplate},c.getComponentProps(t)),i.initialValues),i.getNestedOptionValues()),this.$_getIntegrationOptions()),r=new t.$_WidgetClass(e,o);t.$_instance=r,r.on("optionChanged",(function(e){return i.onOptionChanged(e)})),p.setEmitOptionChangedFunc(i,t,t.$_innerChanges),p.bindOptionWatchers(i,t,t.$_innerChanges),this.$_createEmitters(r)},$_getIntegrationOptions:function(){var e=this,t=n({integrationOptions:{watchMethod:this.$_getWatchMethod()}},this.$_getExtraIntegrationOptions());if(e.$_templatesManager.isDirty){var i=e.$_templatesManager.templates;t.integrationOptions.templates=i;for(var o=e.$.vnode.props,r=0,a=Object.keys(i);r<a.length;r++){var s=a[r];t[m.getTemplatePropName(o,s)]=s}e.$_templatesManager.resetDirtyFlag()}return t},$_getWatchMethod:function(){var e=this;return function(t,i,n){return n=n||{},n.skipImmediate||i(t()),e.$watch((function(){return t()}),(function(e,t){(m.toComparable(t)!==m.toComparable(e)||n.deep)&&i(e)}),{deep:n.deep})}},$_getExtraIntegrationOptions:function(){return{}},$_processChildren:function(e){},$_createEmitters:function(e){var t=this;this.$attrs&&Object.keys(this.$attrs).forEach((function(i){var n=m.camelize(i);e.on(n,(function(e){t.$emit(i,e)}))}))}}})}function b(e){var t=[];return m.forEachChildNode(e,(function(e){var i=e.parentNode,n=e.hasAttribute&&e.hasAttribute("isExtension");("#comment"===e.nodeName||n)&&i&&(t.push(e),i.removeChild(e))})),t}function x(e,t){t.forEach((function(t){e.appendChild(t)}))}function w(){return l.defineComponent({extends:C(),methods:{$_getExtraIntegrationOptions:function(){return{onInitializing:function(){this.beginUpdate()}}},$_processChildren:function(e){e.forEach((function(e){e&&"object"===typeof e&&(e.$_hasOwner=!0)}))}},mounted:function(){var e=this,t=b(this.$el),i=this;this.$_createWidget(this.$el),i.$_instance.endUpdate(),x(this.$el,t),this.$slots&&this.$slots.default&&c.getChildren(i).forEach((function(t){var i=t;i&&i.$_isExtension&&i.$_attachTo(e.$el)}))}})}t.initBaseComponent=C,t.initDxComponent=w},6033:function(e,t){"use strict";
/*!
* devextreme-vue
* Version: 22.2.3
* Build date: Mon Dec 05 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-vue
*/var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getOption=void 0;var n={deepWatch:!1};function o(e){n=i(i({},n),e)}function r(e){return n[e]}t.getOption=r,t["default"]=o},2018:function(e,t,i){"use strict";
/*!
* devextreme-vue
* Version: 22.2.3
* Build date: Mon Dec 05 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-vue
*/Object.defineProperty(t,"__esModule",{value:!0}),t.getInnerChanges=t.getConfig=t.initOptionChangedFunc=t.initDxConfiguration=void 0;var n=i(20144),o=i(68060),r=i(96053);function a(e){var t=o.getNodeOptions(e);if(t)return t.$_config||e.$_config}function s(e){var t=o.getNodeOptions(e);if(t)return t.$_innerChanges||e.$_innerChanges}function l(e,t,i,n){e&&(e.init(Object.keys(t)),i&&r.setEmitOptionChangedFunc(e,i,n))}function d(e,t){var i=e.name,n=e.isCollectionItem,o=e.ownerConfig,r=o&&o.fullPath,a=i&&r?r+"."+i:i||"";return{optionPath:a,isCollection:n,removed:t}}function u(){return n.defineComponent({beforeMount:function(){var e=this,t=a(e),i=s(e);l(t,o.getNodeTypeOfComponent(e).props,e,i),r.bindOptionWatchers(t,this,i)},mounted:function(){this.$parent.$_instance&&this.$parent.$_config.componentsCountChanged.push(d(a(this)))},beforeUnmount:function(){var e=a(this);e&&this.$parent.$_config.componentsCountChanged.push(d(e,!0))},render:function(){return null}})}t.getConfig=a,t.getInnerChanges=s,t.initOptionChangedFunc=l,t.initDxConfiguration=u},96053:function(e,t,i){"use strict";
/*!
* devextreme-vue
* Version: 22.2.3
* Build date: Mon Dec 05 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-vue
*/var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.setEmitOptionChangedFunc=t.bindOptionWatchers=void 0;var o=i(20144),r=i(6033),a=i(84117),s=i(68060),l=function(){function e(e,t,i,n,o,r,a){this._updateFunc=e,this._name=t,this._initialValues=i||{},this._nestedConfigurations=[],this._isCollectionItem=!!o,this._collectionItemIndex=r,this._expectedChildren=n||{},this._ownerConfig=a,this._componentChanges=[],this.updateValue=this.updateValue.bind(this)}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fullName",{get:function(){return this._name&&this._isCollectionItem?this._name+"["+this._collectionItemIndex+"]":this._name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"componentsCountChanged",{get:function(){return this._componentChanges},enumerable:!1,configurable:!0}),e.prototype.cleanComponentsCountChanged=function(){this._componentChanges=[]},Object.defineProperty(e.prototype,"fullPath",{get:function(){return this._ownerConfig&&this._ownerConfig.fullPath?this._ownerConfig.fullPath+"."+this.fullName:this.fullName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownerConfig",{get:function(){return this._ownerConfig},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"initialValues",{get:function(){return this._initialValues},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"expectedChildren",{get:function(){return this._expectedChildren},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nested",{get:function(){return this._nestedConfigurations},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"prevNestedOptions",{get:function(){return this._prevNestedConfigOptions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"collectionItemIndex",{get:function(){return this._collectionItemIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCollectionItem",{get:function(){return this._isCollectionItem},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"updateFunc",{get:function(){return this._updateFunc},enumerable:!1,configurable:!0}),e.prototype.init=function(e){this._options=e||[]},Object.defineProperty(e.prototype,"emitOptionChanged",{set:function(e){this._emitOptionChanged=e},enumerable:!1,configurable:!0}),e.prototype.setPrevNestedOptions=function(e){this._prevNestedConfigOptions=e},e.prototype.onOptionChanged=function(e){a.isEqual(e.value,e.previousValue)||this._onOptionChanged(e.fullName.split("."),e)},e.prototype.cleanNested=function(){this._nestedConfigurations=[]},e.prototype.createNested=function(t,i,n,o){var r=this._expectedChildren[t],a=t,s=n;r&&(s=r.isCollectionItem,r.optionName&&(a=r.optionName));var l=-1;s&&a&&(l=this._nestedConfigurations.filter((function(e){return e._name&&e._name===a})).length);var d=new e(this._updateFunc,a,i,o,s,l,this);return this._nestedConfigurations.push(d),d},e.prototype.updateValue=function(e,t){var i=[this.fullPath,e].filter((function(e){return e})).join(".");this._updateFunc(i,t)},e.prototype.getNestedOptionValues=function(){var e={};return this._nestedConfigurations.forEach((function(t){if(t._name){var i=n(n({},t.initialValues),t.getNestedOptionValues());if(i)if(t._isCollectionItem){var o=e[t._name];o&&Array.isArray(o)||(o=[],e[t._name]=o),o.push(i)}else e[t._name]=i}})),e},e.prototype.getOptionsToWatch=function(){var e={};return this._nestedConfigurations.forEach((function(t){return t._name&&(e[t._name]=!0)})),this._options.filter((function(t){return!e[t]}))},e.prototype._onOptionChanged=function(e,t){if(0!==e.length){var i=a.getOptionInfo(e[0]);if(i.isCollection||e.length>1){var n=this._getNestedConfig(i.fullName);if(n)return void n._onOptionChanged(e.slice(1),t);this._tryEmitOptionChanged(i.name,t.component.option(this.fullPath?this.fullPath+"."+i.name:i.name))}else this._tryEmitOptionChanged(i.name,t.value)}},e.prototype._getNestedConfig=function(e){for(var t=0,i=this._nestedConfigurations;t<i.length;t++){var n=i[t];if(n.fullName===e)return n}},e.prototype._tryEmitOptionChanged=function(e,t){this._emitOptionChanged&&this._emitOptionChanged(e,t)},e}();function d(e,t,i){var n=e&&e.getOptionsToWatch();n&&n.forEach((function(n){t.$watch(n,(function(t){var r=o.toRaw(t);i.hasOwnProperty(n)&&i[n]===r||e.updateValue(n,t),delete i[n]}),{deep:r.getOption("deepWatch")})}))}function u(e,t){var i=e.$options.props;return i&&i.hasOwnProperty(t)}function c(e,t,i){var n;return e.model&&t.hasOwnProperty(s.VMODEL_NAME)&&(null===(n=null===i||void 0===i?void 0:i.props)||void 0===n?void 0:n.hasOwnProperty(s.VMODEL_NAME))}function h(e,t,i){e.emitOptionChanged=function(e,n){var r,l=t.$props,d=null===(r=null===t||void 0===t?void 0:t.$)||void 0===r?void 0:r.vnode;if(u(t,e)&&!a.isEqual(n,l[e])&&t.$emit){i[e]=o.toRaw(n);var h="value"===e&&c(t.$options,l,d)?"update:"+s.VMODEL_NAME:"update:"+e;t.$emit(h,n)}}}t.bindOptionWatchers=d,t.setEmitOptionChangedFunc=h,t["default"]=l},56336:function(e,t){"use strict";
/*!
* devextreme-vue
* Version: 22.2.3
* Build date: Mon Dec 05 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-vue
*/Object.defineProperty(t,"__esModule",{value:!0}),t.DX_REMOVE_EVENT=t.DX_TEMPLATE_WRAPPER_CLASS=void 0;var i="dx-template-wrapper";t.DX_TEMPLATE_WRAPPER_CLASS=i;var n="dxremove";t.DX_REMOVE_EVENT=n},6741:function(e,t,i){"use strict";
/*!
* devextreme-vue
* Version: 22.2.3
* Build date: Mon Dec 05 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-vue
*/Object.defineProperty(t,"__esModule",{value:!0}),t.initDxExtensionComponent=void 0;var n=i(20144),o=i(58180),r=i(68060);function a(){return n.defineComponent({extends:o.initBaseComponent(),mounted:function(){this.$el.setAttribute("isExtension","true");var e=r.getNodeOptions(this);e.$_isExtension=!0,e.$_attachTo=this.attachTo.bind(this),e&&e.$_hasOwner||this.attachTo(this.$el)},methods:{attachTo:function(e){this.$_createWidget(e)}}})}t.initDxExtensionComponent=a},84117:function(e,t){"use strict";
/*!
* devextreme-vue
* Version: 22.2.3
* Build date: Mon Dec 05 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-vue
*/function i(e,t){for(var i in e)if(e[i]===t)return i;return t}function n(e){return e[0].toUpperCase()+e.substr(1)}function o(e){return e[0].toLowerCase()+e.substr(1)}function r(e){return o(e.split("-").map((function(e){return n(e)})).join(""))}function a(e){return e instanceof Date?e.getTime():e}function s(e,t){return a(e)===a(t)||!(!Array.isArray(e)||!Array.isArray(t))&&(0===e.length&&0===t.length)}function l(e,t){Array.prototype.slice.call(e.childNodes).forEach(t)}function d(e,t){var i=Object.keys(e);if(i.length!==Object.keys(t).length)return!1;for(var n=0,o=i;n<o.length;n++){var r=o[n];if(!t.hasOwnProperty(r))return!1}return!0}function u(e,t){var i=e;return t.split(".").forEach((function(e){var t=c(e);i&&(i=t.isCollection?i[t.name]&&i[t.name][t.index]:i[t.name])})),i}function c(e){var t=e.split("[");return 1===t.length?{isCollection:!1,name:e,fullName:e}:{isCollection:!0,name:t[0],fullName:e,index:Number(t[1].slice(0,-1))}}Object.defineProperty(t,"__esModule",{value:!0}),t.getOptionInfo=t.getOptionValue=t.allKeysAreEqual=t.forEachChildNode=t.isEqual=t.toComparable=t.camelize=t.lowercaseFirst=t.uppercaseFirst=t.getTemplatePropName=void 0,t.getTemplatePropName=i,t.uppercaseFirst=n,t.lowercaseFirst=o,t.camelize=r,t.toComparable=a,t.isEqual=s,t.forEachChildNode=l,t.allKeysAreEqual=d,t.getOptionValue=u,t.getOptionInfo=c},45536:function(e,t,i){"use strict";
/*!
* devextreme-vue
* Version: 22.2.3
* Build date: Mon Dec 05 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-vue
*/var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[i]}})}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.createExtensionComponent=t.createConfigurationComponent=t.createComponent=void 0;var a=r(i(67596)),s=r(i(22733)),l=i(1346),d=l.isVue3()?s:a;t.createComponent=d.createComponent,t.createConfigurationComponent=d.createConfigurationComponent,t.createExtensionComponent=d.createExtensionComponent},88254:function(e,t){"use strict";
/*!
* devextreme-vue
* Version: 22.2.3
* Build date: Mon Dec 05 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-vue
*/var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function n(e,t,i){e&&0!==e.length&&o(e,t,i)}function o(e,t,n){e.forEach((function(e){if(t.push(e),e.componentOptions){var r=e.componentOptions.Ctor;if(r.$_optionName){var a=i(i({},r.$_predefinedProps),e.componentOptions.propsData),s=n.createNested(r.$_optionName,a,r.$_isCollectionItem,r.$_expectedChildren);e.componentOptions.$_config=s,e.componentOptions.$_innerChanges={},e.componentOptions.children&&o(e.componentOptions.children,t,s)}}}))}Object.defineProperty(t,"__esModule",{value:!0}),t.pullAllChildren=void 0,t.pullAllChildren=n},90063:function(e,t,i){"use strict";
/*!
* devextreme-vue
* Version: 22.2.3
* Build date: Mon Dec 05 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-vue
*/var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[i]}})}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&o(t,e,i);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseComponent=t.DxComponent=void 0;var s=a(i(20144)),l=i(82048),d=i(88254),u=a(i(99409)),c=i(41118),h=i(43281),p=i(97853),f=i(29805),g=s.default||s,m=function(){return g.extend({inheritAttrs:!1,data:function(){return{eventBus:new g}},provide:function(){return{eventBus:this.eventBus}},render:function(e){var t=[];return this.$_config.cleanNested&&this.$_config.cleanNested(),d.pullAllChildren(this.$slots.default,t,this.$_config),this.$_processChildren(t),e("div",{attrs:{id:this.$attrs.id}},t)},beforeUpdate:function(){this.$_config.setPrevNestedOptions(this.$_config.getNestedOptionValues())},updated:function(){var e,t;if(this.$children.forEach((function(e){return c.initOptionChangedFunc(c.getConfig(e),e,c.getInnerChanges(e))})),this.$_templatesManager.discover(),this.$_instance.beginUpdate(),this.$_templatesManager.isDirty){this.$_instance.option("integrationOptions.templates",this.$_templatesManager.templates);for(var i=null===(t=null===(e=this.$vnode)||void 0===e?void 0:e.componentOptions)||void 0===t?void 0:t.propsData,n=0,o=Object.keys(this.$_templatesManager.templates);n<o.length;n++){var r=o[n];this.$_instance.option(p.getTemplatePropName(i,r),r)}this.$_templatesManager.resetDirtyFlag()}for(var a=0,s=Object.keys(this.$_pendingOptions);a<s.length;a++){var l=s[a];this.$_instance.option(l,this.$_pendingOptions[l])}this.$_pendingOptions={},this.$_applyConfigurationChanges(),this.$_instance.endUpdate(),this.eventBus.$emit("updated")},beforeDestroy:function(){var e=this.$_instance;e&&(l.triggerHandler(this.$el,h.DX_REMOVE_EVENT),e.dispose())},created:function(){var e=this;this.$_config=new u.default((function(t,i){return e.$_pendingOptions[t]=i}),null,this.$options.propsData&&n({},this.$options.propsData),this.$_expectedChildren),this.$_innerChanges={},this.$_config.init(this.$props&&Object.keys(this.$props))},methods:{$_applyConfigurationChanges:function(){var e=this;this.$_config.componentsCountChanged.forEach((function(t){var i=t.optionPath,n=t.isCollection,o=t.removed,r=e.$_config.getNestedOptionValues();!n&&o?e.$_instance.resetOption(i):e.$_instance.option(i,p.getOptionValue(r,i))})),this.$_config.cleanComponentsCountChanged()},$_createWidget:function(e){var t=this;t.$_pendingOptions={},t.$_templatesManager=new f.TemplatesManager(this);var i=this.$_config,o=n(n(n(n({},this.$options.propsData),i.initialValues),i.getNestedOptionValues()),this.$_getIntegrationOptions()),r=new this.$_WidgetClass(e,o);t.$_instance=r,r.on("optionChanged",(function(e){return i.onOptionChanged(e)})),u.setEmitOptionChangedFunc(i,this,this.$_innerChanges),u.bindOptionWatchers(i,this,this.$_innerChanges),this.$_createEmitters(r)},$_getIntegrationOptions:function(){var e,t,i=n({integrationOptions:{watchMethod:this.$_getWatchMethod()}},this.$_getExtraIntegrationOptions());if(this.$_templatesManager.isDirty){var o=this.$_templatesManager.templates;i.integrationOptions.templates=o;for(var r=null===(t=null===(e=this.$vnode)||void 0===e?void 0:e.componentOptions)||void 0===t?void 0:t.propsData,a=0,s=Object.keys(o);a<s.length;a++){var l=s[a];i[p.getTemplatePropName(r,l)]=l}this.$_templatesManager.resetDirtyFlag()}return i},$_getWatchMethod:function(){var e=this;return function(t,i,n){return n=n||{},n.skipImmediate||i(t()),e.$watch((function(){return t()}),(function(e,t){(p.toComparable(t)!==p.toComparable(e)||n.deep)&&i(e)}),{deep:n.deep})}},$_getExtraIntegrationOptions:function(){return{}},$_processChildren:function(e){},$_createEmitters:function(e){var t=this;Object.keys(this.$listeners).forEach((function(i){var n=p.camelize(i);e.on(n,(function(e){t.$emit(i,e)}))}))}}})};function _(e){var t=[];return p.forEachChildNode(e,(function(e){var i=e.parentNode,n=e.hasAttribute&&e.hasAttribute("isExtension");("#comment"===e.nodeName||n)&&i&&(t.push(e),i.removeChild(e))})),t}function v(e,t){t.forEach((function(t){e.appendChild(t)}))}t.BaseComponent=m;var y=function(){return m().extend({methods:{$_getExtraIntegrationOptions:function(){return{onInitializing:function(){this.beginUpdate()}}},$_processChildren:function(e){e.forEach((function(e){e.componentOptions&&(e.componentOptions.$_hasOwner=!0)}))}},mounted:function(){var e=this,t=_(this.$el);this.$_createWidget(this.$el),this.$_instance.endUpdate(),v(this.$el,t),this.$slots&&this.$slots.default&&this.$slots.default.forEach((function(t){var i=t.componentInstance;i&&i.$_isExtension&&i.attachTo(e.$el)}))}})};t.DxComponent=y},70205:function(e,t){"use strict";
/*!
* devextreme-vue
* Version: 22.2.3
* Build date: Mon Dec 05 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-vue
*/var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getOption=void 0;var n={useLegacyTemplateEngine:!1};function o(e){n=i(i({},n),e)}function r(e){return n[e]}t.getOption=r,t["default"]=o},41118:function(e,t,i){"use strict";
/*!
* devextreme-vue
* Version: 22.2.3
* Build date: Mon Dec 05 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-vue
*/var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[i]}})}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getInnerChanges=t.getConfig=t.initOptionChangedFunc=t.DxConfiguration=void 0;var a=r(i(20144)),s=a.default||a,l=i(99409);function d(e){if(e.$vnode){var t=e.$vnode.componentOptions;return t&&t.$_config}}function u(e){if(e.$vnode){var t=e.$vnode.componentOptions;return t&&t.$_innerChanges}}function c(e,t,i){e&&(e.init(Object.keys(t.$props)),l.setEmitOptionChangedFunc(e,t,i))}function h(e,t){var i=e.name,n=e.isCollectionItem,o=e.ownerConfig,r=o&&o.fullPath,a=i&&r?r+"."+i:i||"";return{optionPath:a,isCollection:n,removed:t}}t.getConfig=d,t.getInnerChanges=u,t.initOptionChangedFunc=c;var p=function(){return s.extend({beforeMount:function(){var e=d(this),t=u(this);c(e,this,t),l.bindOptionWatchers(e,this,t)},mounted:function(){this.$parent.$_instance&&this.$parent.$_config.componentsCountChanged.push(h(d(this)))},beforeDestroy:function(){this.$parent.$_config.componentsCountChanged.push(h(d(this),!0))},render:function(e){return e()}})};t.DxConfiguration=p},99409:function(e,t,i){"use strict";
/*!
* devextreme-vue
* Version: 22.2.3
* Build date: Mon Dec 05 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-vue
*/var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.setEmitOptionChangedFunc=t.bindOptionWatchers=void 0;var o=i(97853),r=function(){function e(e,t,i,n,o,r,a){this._updateFunc=e,this._name=t,this._initialValues=i||{},this._nestedConfigurations=[],this._isCollectionItem=!!o,this._collectionItemIndex=r,this._expectedChildren=n||{},this._ownerConfig=a,this._componentChanges=[],this.updateValue=this.updateValue.bind(this)}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fullName",{get:function(){return this._name&&this._isCollectionItem?this._name+"["+this._collectionItemIndex+"]":this._name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"componentsCountChanged",{get:function(){return this._componentChanges},enumerable:!1,configurable:!0}),e.prototype.cleanComponentsCountChanged=function(){this._componentChanges=[]},Object.defineProperty(e.prototype,"fullPath",{get:function(){return this._ownerConfig&&this._ownerConfig.fullPath?this._ownerConfig.fullPath+"."+this.fullName:this.fullName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownerConfig",{get:function(){return this._ownerConfig},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"initialValues",{get:function(){return this._initialValues},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"expectedChildren",{get:function(){return this._expectedChildren},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nested",{get:function(){return this._nestedConfigurations},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"prevNestedOptions",{get:function(){return this._prevNestedConfigOptions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"collectionItemIndex",{get:function(){return this._collectionItemIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCollectionItem",{get:function(){return this._isCollectionItem},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"updateFunc",{get:function(){return this._updateFunc},enumerable:!1,configurable:!0}),e.prototype.init=function(e){this._options=e||[]},Object.defineProperty(e.prototype,"emitOptionChanged",{set:function(e){this._emitOptionChanged=e},enumerable:!1,configurable:!0}),e.prototype.setPrevNestedOptions=function(e){this._prevNestedConfigOptions=e},e.prototype.onOptionChanged=function(e){o.isEqual(e.value,e.previousValue)||this._onOptionChanged(e.fullName.split("."),e)},e.prototype.cleanNested=function(){this._nestedConfigurations=[]},e.prototype.createNested=function(t,i,n,o){var r=this._expectedChildren[t],a=t,s=n;r&&(s=r.isCollectionItem,r.optionName&&(a=r.optionName));var l=-1;s&&a&&(l=this._nestedConfigurations.filter((function(e){return e._name&&e._name===a})).length);var d=new e(this._updateFunc,a,i,o,s,l,this);return this._nestedConfigurations.push(d),d},e.prototype.updateValue=function(e,t){var i=[this.fullPath,e].filter((function(e){return e})).join(".");this._updateFunc(i,t)},e.prototype.getNestedOptionValues=function(){var e={};return this._nestedConfigurations.forEach((function(t){if(t._name){var i=n(n({},t.initialValues),t.getNestedOptionValues());if(i)if(t._isCollectionItem){var o=e[t._name];o&&Array.isArray(o)||(o=[],e[t._name]=o),o.push(i)}else e[t._name]=i}})),e},e.prototype.getOptionsToWatch=function(){var e={};return this._nestedConfigurations.forEach((function(t){return t._name&&(e[t._name]=!0)})),this._options.filter((function(t){return!e[t]}))},e.prototype._onOptionChanged=function(e,t){if(0!==e.length){var i=o.getOptionInfo(e[0]);if(i.isCollection||e.length>1){var n=this._getNestedConfig(i.fullName);if(n)return void n._onOptionChanged(e.slice(1),t);this._tryEmitOptionChanged(i.name,t.component.option(this.fullPath?this.fullPath+"."+i.name:i.name))}else this._tryEmitOptionChanged(i.name,t.value)}},e.prototype._getNestedConfig=function(e){for(var t=0,i=this._nestedConfigurations;t<i.length;t++){var n=i[t];if(n.fullName===e)return n}},e.prototype._tryEmitOptionChanged=function(e,t){this._emitOptionChanged&&this._emitOptionChanged(e,t)},e}();function a(e,t,i){var n=e&&e.getOptionsToWatch();n&&n.forEach((function(n){t.$watch(n,(function(t){i.hasOwnProperty(n)&&i[n]===t||e.updateValue(n,t),delete i[n]}))}))}function s(e,t,i){e.emitOptionChanged=function(e,n){o.isEqual(n,t.$props[e])||(i[e]=n,t.$emit("update:"+e,n))}}t.bindOptionWatchers=a,t.setEmitOptionChangedFunc=s,t["default"]=r},43281:function(e,t){"use strict";
/*!
* devextreme-vue
* Version: 22.2.3
* Build date: Mon Dec 05 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-vue
*/Object.defineProperty(t,"__esModule",{value:!0}),t.DX_REMOVE_EVENT=t.DX_TEMPLATE_WRAPPER_CLASS=void 0;var i="dx-template-wrapper";t.DX_TEMPLATE_WRAPPER_CLASS=i;var n="dxremove";t.DX_REMOVE_EVENT=n},55228:function(e,t){"use strict";
/*!
* devextreme-vue
* Version: 22.2.3
* Build date: Mon Dec 05 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-vue
*/Object.defineProperty(t,"__esModule",{value:!0}),t.TEMPLATE_MULTIPLE_ROOTS_ERROR=void 0,t.TEMPLATE_MULTIPLE_ROOTS_ERROR="Template must have a single root node."},26917:function(e,t,i){"use strict";
/*!
* devextreme-vue
* Version: 22.2.3
* Build date: Mon Dec 05 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-vue
*/Object.defineProperty(t,"__esModule",{value:!0}),t.DxExtensionComponent=void 0;var n=i(90063),o=function(){return n.BaseComponent().extend({created:function(){this.$_isExtension=!0},mounted:function(){this.$el.setAttribute("isExtension","true"),this.$vnode&&this.$vnode.componentOptions.$_hasOwner||this.attachTo(this.$el)},methods:{attachTo:function(e){this.$_createWidget(e)}}})};t.DxExtensionComponent=o},97853:function(e,t){"use strict";
/*!
* devextreme-vue
* Version: 22.2.3
* Build date: Mon Dec 05 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-vue
*/function i(e,t){for(var i in e)if(e[i]===t)return i;return t}function n(e){return e[0].toUpperCase()+e.substr(1)}function o(e){return e[0].toLowerCase()+e.substr(1)}function r(e){return o(e.split("-").map((function(e){return n(e)})).join(""))}function a(e){return e instanceof Date?e.getTime():e}function s(e,t){return a(e)===a(t)||!(!Array.isArray(e)||!Array.isArray(t))&&(0===e.length&&0===t.length)}function l(e,t){Array.prototype.slice.call(e.childNodes).forEach(t)}function d(e,t){var i=Object.keys(e);if(i.length!==Object.keys(t).length)return!1;for(var n=0,o=i;n<o.length;n++){var r=o[n];if(!t.hasOwnProperty(r))return!1}return!0}function u(e,t){var i=e;return t.split(".").forEach((function(e){var t=c(e);i&&(i=t.isCollection?i[t.name]&&i[t.name][t.index]:i[t.name])})),i}function c(e){var t=e.split("[");return 1===t.length?{isCollection:!1,name:e,fullName:e}:{isCollection:!0,name:t[0],fullName:e,index:Number(t[1].slice(0,-1))}}Object.defineProperty(t,"__esModule",{value:!0}),t.getOptionInfo=t.getOptionValue=t.allKeysAreEqual=t.forEachChildNode=t.isEqual=t.toComparable=t.camelize=t.lowercaseFirst=t.uppercaseFirst=t.getTemplatePropName=void 0,t.getTemplatePropName=i,t.uppercaseFirst=n,t.lowercaseFirst=o,t.camelize=r,t.toComparable=a,t.isEqual=s,t.forEachChildNode=l,t.allKeysAreEqual=d,t.getOptionValue=u,t.getOptionInfo=c},67596:function(e,t,i){"use strict";
/*!
* devextreme-vue
* Version: 22.2.3
* Build date: Mon Dec 05 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-vue
*/var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[i]}})}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.createExtensionComponent=t.createConfigurationComponent=t.createComponent=void 0;var a=r(i(20144)),s=a.default||a,l=i(90063),d=i(41118),u=i(26917);function c(e){return e.extends=l.DxComponent(),s.extend(e)}function h(e){return e.extends=d.DxConfiguration(),s.extend(e)}function p(e){return e.extends=u.DxExtensionComponent(),s.extend(e)}t.createComponent=c,t.createConfigurationComponent=h,t.createExtensionComponent=p},79e3:function(e,t,i){"use strict";
/*!
* devextreme-vue
* Version: 22.2.3
* Build date: Mon Dec 05 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-vue
*/var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[i]}})}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.discover=t.mountTemplate=void 0;var a=r(i(20144)),s=i(55228),l="template",d=a.default||a;function u(e){if(e.$vnode){var t=e.$vnode.componentOptions;if(t.$_config&&t.$_config.name)return t}}function c(e){return l in e.$props&&e.$vnode.data&&e.$vnode.data.scopedSlots}function h(e){var t={};for(var i in e.$scopedSlots)if("default"!==i||!e.$slots.default){var n=e.$scopedSlots[i];n&&(t[i]=n)}for(var o=0,r=e.$children;o<r.length;o++){var a=r[o],s=u(a);if(s){var d=a.$scopedSlots.default;if(d&&c(a)){var h=s.$_config.fullPath+"."+l;t[h]=d}}}return t}function p(e,t,i,n,o){return new d({el:o,name:n,inject:["eventBus"],parent:t,created:function(){var e=this;this.eventBus.$on("updated",(function(){e.$forceUpdate()}))},render:function(t){var n=e()(i);if(!n)return t("div");if(n.length>1)throw new Error(s.TEMPLATE_MULTIPLE_ROOTS_ERROR);return n[0]},destroyed:function(){this.eventBus.$off("updated")}})}t.discover=h,t.mountTemplate=p},29805:function(e,t,i){"use strict";
/*!
* devextreme-vue
* Version: 22.2.3
* Build date: Mon Dec 05 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-vue
*/var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TemplatesManager=void 0;var r=i(70205),a=i(79e3),s=o(i(71389)),l=i(82048),d=i(43281),u=i(97853),c=function(){function e(e){this._slots={},this._templates={},this._isDirty=!1,this._component=e,this.discover()}return e.prototype.discover=function(){var e=a.discover(this._component);this._slots=n(n({},this._slots),e),u.allKeysAreEqual(this._templates,e)||this._prepareTemplates()},Object.defineProperty(e.prototype,"templates",{get:function(){return this._templates},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDirty",{get:function(){return this._isDirty},enumerable:!1,configurable:!0}),e.prototype.resetDirtyFlag=function(){this._isDirty=!1},e.prototype._prepareTemplates=function(){this._templates={};for(var e=0,t=Object.keys(this._slots);e<t.length;e++){var i=t[e];this._templates[i]=this.createDxTemplate(i)}this._isDirty=!0},e.prototype.createDxTemplate=function(e){var t=this;return{render:function(i){var n=r.getOption("useLegacyTemplateEngine")?i.model:{data:i.model,index:i.index},o=i.container.get?i.container.get(0):i.container,u=document.createElement("div");o.appendChild(u);var c=a.mountTemplate((function(){return t._slots[e]}),t._component,n,e,u),h=c.$el;if(s.default.setClass(h,d.DX_TEMPLATE_WRAPPER_CLASS,!0),h.nodeType===Node.TEXT_NODE){var p=document.createElement("TABLE"===o.nodeName?"tbody":"span");p.style.display="none",o.appendChild(p),l.one(p,d.DX_REMOVE_EVENT,c.$destroy.bind(c))}else l.one(h,d.DX_REMOVE_EVENT,c.$destroy.bind(c));return h}}},e}();t.TemplatesManager=c},22733:function(e,t,i){"use strict";
/*!
* devextreme-vue
* Version: 22.2.3
* Build date: Mon Dec 05 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-vue
*/Object.defineProperty(t,"__esModule",{value:!0}),t.createExtensionComponent=t.createConfigurationComponent=t.createComponent=void 0;var n=i(20144),o=i(58180),r=i(2018),a=i(6741),s=i(68060);function l(e){return e.extends=o.initDxComponent(),s.setCompatOptions(e),e.model&&s.setVModel(e),n.defineComponent(e)}function d(e){return e.extends=r.initDxConfiguration(),s.setCompatOptions(e),n.defineComponent(e)}function u(e){return e.extends=a.initDxExtensionComponent(),s.setCompatOptions(e),n.defineComponent(e)}t.createComponent=l,t.createConfigurationComponent=d,t.createExtensionComponent=u},18403:function(e,t,i){"use strict";
/*!
* devextreme-vue
* Version: 22.2.3
* Build date: Mon Dec 05 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-vue
*/Object.defineProperty(t,"__esModule",{value:!0}),t.discover=t.mountTemplate=void 0;var n=i(68060),o=i(20144),r="template";function a(e){var t=e;if(t&&t.$_config&&t.$_config.name)return t}function s(e){return r in e.type.props&&n.configurationTemplate(e)}function l(e){var t={},i=n.declaredTemplates(e);for(var o in i)if("default"!==o||!e.$slots.default){var l=i[o];l&&(t[o]=l)}for(var d=n.getChildren(e),u=0,c=d;u<c.length;u++){var h=c[u],p=a(h);if(p){var f=n.configurationDefaultTemplate(h);if(f&&s(h)){var g=p.$_config.fullPath+"."+r;t[g]=f}}}return t}function d(e){var t=[];return e.forEach((function(e){var i=n.getConfigurationOptions(e);i&&i.$_optionName||t.push(e)})),t}function u(e,t,i,r,a){return n.mount({name:r,inject:["eventBus"],created:function(){this.eventBus.add(this.$_updatedHandler)},mounted:function(){i.onRendered()},unmounted:function(){this.eventBus.remove(this.$_updatedHandler)},methods:{$_updatedHandler:function(){this.$forceUpdate()}},render:function(){var t=d(e()(i));return t?t.length>1?t:t[0]:o.h("div")}},t,a)}t.discover=l,t.mountTemplate=u},54528:function(e,t,i){"use strict";
/*!
* devextreme-vue
* Version: 22.2.3
* Build date: Mon Dec 05 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-vue
*/var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TemplatesManager=void 0;var r=i(18403),a=o(i(71389)),s=i(82048),l=i(56336),d=i(84117),u=function(){function e(e){this._slots={},this._templates={},this._isDirty=!1,this._component=e,this.discover()}return e.prototype.discover=function(){var e=r.discover(this._component);this._slots=n(n({},this._slots),e),d.allKeysAreEqual(this._templates,e)||this._prepareTemplates()},Object.defineProperty(e.prototype,"templates",{get:function(){return this._templates},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDirty",{get:function(){return this._isDirty},enumerable:!1,configurable:!0}),e.prototype.resetDirtyFlag=function(){this._isDirty=!1},e.prototype._prepareTemplates=function(){this._templates={};for(var e=0,t=Object.keys(this._slots);e<t.length;e++){var i=t[e];this._templates[i]=this.createDxTemplate(i)}this._isDirty=!0},e.prototype.createDxTemplate=function(e){var t=this;return{render:function(i){var n=function(e,t){return void 0===t&&(t=0),function(){1===t&&e&&e(),t++}}(i.onRendered),o={data:i.model,index:i.index,onRendered:n},d=document.createElement("div"),u=i.container.get?i.container.get(0):i.container;u.appendChild(d);var c=r.mountTemplate((function(){return t._slots[e]}),t._component,o,e,d),h=c.$el;u.removeChild(d);while(d.firstChild)u.appendChild(d.firstChild);if(a.default.setClass(h,l.DX_TEMPLATE_WRAPPER_CLASS,!0),h.nodeType===Node.TEXT_NODE){var p=document.createElement("TABLE"===u.nodeName?"tbody":"span");p.style.display="none",u.appendChild(p),s.one(p,l.DX_REMOVE_EVENT,c.$.appContext.app.unmount.bind(c))}else s.one(h,l.DX_REMOVE_EVENT,c.$.appContext.app.unmount.bind(c));return n(),h}}},e}();t.TemplatesManager=u},1346:function(e,t,i){"use strict";
/*!
* devextreme-vue
* Version: 22.2.3
* Build date: Mon Dec 05 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-vue
*/var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[i]}})}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.isVue3=t.getVueVersion=void 0;var a=r(i(20144)),s=a.default||a;function l(){var e=s.version;return Number(e.split(".")[0])}function d(){return 3===l()}t.getVueVersion=l,t.isVue3=d},68060:function(e,t,i){"use strict";
/*!
* devextreme-vue
* Version: 22.2.3
* Build date: Mon Dec 05 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-vue
*/var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getConfigurationOptions=t.setVModel=t.setCompatOptions=t.getVModelValue=t.getNodeTypeOfComponent=t.getNodeOptions=t.usedConfigurationProps=t.getComponentProps=t.mount=t.defaultSlots=t.declaredTemplates=t.configurationTemplate=t.configurationDefaultTemplate=t.configurationChildren=t.getNormalizedProps=t.getComponentInfo=t.getChildren=t.VMODEL_NAME=void 0;var o=i(20144),r=i(84117),a=i(45830);function s(e){if(!O(e)||!e.$_config)return[];var t=e.$.subTree&&e.$.subTree.children;return Array.isArray(t)?t.filter((function(e){if(!a.isFragment(e))return e})):[]}function l(e){return k(e)}function d(e){var t={};for(var i in e)e.hasOwnProperty(i)&&(t[r.camelize(i)]=e[i]);return t}function u(e){return e.children&&e.children.default?S(e.children.default()):[]}function c(e){if(e.children&&"object"!==e.children&&e.children.default)return I(e.children.default())?e.children.default:void 0}function h(e){return c(e)}function p(e){return e.$slots}function f(e){var t=p(e);return t.default?t.default():[]}function g(e,t,i){var n=o.createApp(e);return n.provide("eventBus",t.eventBus),T(n,t),n.mount(i)}function m(e){var t=e.$.vnode.props||{};return d(t)}function _(e){return e.props}function v(e){return e.$?e.$.vnode:e}function y(e){return e.$.vnode.type}function C(e){return e[t.VMODEL_NAME]}function b(e){e.compatConfig={MODE:3}}function x(e){var i,o="update:"+t.VMODEL_NAME;e.model.prop=t.VMODEL_NAME,e.model.event=o,e.props.modelValue={},e.emits=n(n({},e.emits),(i={},i[""+o]=null,i))}function w(e,t){for(var i in t)!e.hasOwnProperty(i)&&t.hasOwnProperty(i)&&(e[i]=t[i])}function T(e,t){e._context.components=Object.assign(t.$.appContext.components,e._context.components),Object.setPrototypeOf(e._context.provides,Object.getPrototypeOf(t.$.provides)),Object.assign(e._context.provides,t.$.appContext.provides),e._context.config=t.$.appContext.config,e._context.directives=t.$.appContext.directives,e._context.mixins=t.$.appContext.mixins,w(e._context.app,t.$.appContext.app)}function S(e){return e.filter((function(e){if(a.isFragment(e))return S(e.children||[]);var t=e.type;return t&&"object"===typeof t&&t.$_optionName?(delete e.$_config,delete e.$_innerChanges,e):void 0}))}function I(e){var t=!1;return e.forEach((function(e){D(e)||a.isFragment(e)||E(e)||(t=!0)})),t}function E(e){var t=e.type,i="symbol"===typeof t?t.toString():t;return"Symbol(Comment)"===i||"Symbol()"===i&&!e.children}function D(e){return e.type&&"object"===typeof e.type&&e.type.$_optionName}function k(e){return e.type}function O(e){return e.$.vnode&&e.$.vnode.children&&e.$.vnode.children.default}t.VMODEL_NAME="modelValue",t.getChildren=s,t.getComponentInfo=l,t.getNormalizedProps=d,t.configurationChildren=u,t.configurationDefaultTemplate=c,t.configurationTemplate=h,t.declaredTemplates=p,t.defaultSlots=f,t.mount=g,t.getComponentProps=m,t.usedConfigurationProps=_,t.getNodeOptions=v,t.getNodeTypeOfComponent=y,t.getVModelValue=C,t.setCompatOptions=b,t.setVModel=x,t.getConfigurationOptions=k},4646:function(e,t,i){"use strict";
/*!
* devextreme-vue
* Version: 22.2.3
* Build date: Mon Dec 05 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-vue
*/var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DxValidation=t.DxToolbarItem=t.DxToolbar=t.DxTexts=t.DxTasks=t.DxStripLine=t.DxSorting=t.DxScaleTypeRange=t.DxResources=t.DxResourceAssignments=t.DxOperationDescriptions=t.DxLookup=t.DxItem=t.DxHeaderFilter=t.DxGanttHeaderFilter=t.DxFormat=t.DxFilterRow=t.DxEditing=t.DxDependencies=t.DxContextMenuItem=t.DxContextMenu=t.DxColumnHeaderFilter=t.DxColumn=t.DxGantt=void 0;var o=n(i(93319)),r=i(45536),a=i(45536),s=r.createComponent({props:{accessKey:String,activeStateEnabled:Boolean,allowSelection:Boolean,columns:Array,contextMenu:Object,dependencies:Object,disabled:Boolean,editing:Object,elementAttr:Object,endDateRange:{},filterRow:Object,firstDayOfWeek:{type:Number,validator:function(e){return"number"!==typeof e||-1!==[0,1,2,3,4,5,6].indexOf(e)}},focusStateEnabled:Boolean,headerFilter:Object,height:[Function,Number,String],hint:String,hoverStateEnabled:Boolean,onContentReady:Function,onContextMenuPreparing:Function,onCustomCommand:Function,onDependencyDeleted:Function,onDependencyDeleting:Function,onDependencyInserted:Function,onDependencyInserting:Function,onDisposing:Function,onInitialized:Function,onOptionChanged:Function,onResourceAssigned:Function,onResourceAssigning:Function,onResourceDeleted:Function,onResourceDeleting:Function,onResourceInserted:Function,onResourceInserting:Function,onResourceManagerDialogShowing:Function,onResourceUnassigned:Function,onResourceUnassigning:Function,onScaleCellPrepared:Function,onSelectionChanged:Function,onTaskClick:Function,onTaskDblClick:Function,onTaskDeleted:Function,onTaskDeleting:Function,onTaskEditDialogShowing:Function,onTaskInserted:Function,onTaskInserting:Function,onTaskMoving:Function,onTaskUpdated:Function,onTaskUpdating:Function,resourceAssignments:Object,resources:Object,rootValue:{},scaleType:String,scaleTypeRange:Object,selectedRowKey:{},showDependencies:Boolean,showResources:Boolean,showRowLines:Boolean,sorting:Object,startDateRange:{},stripLines:Array,tabIndex:Number,taskContentTemplate:{},taskListWidth:Number,taskProgressTooltipContentTemplate:{},tasks:Object,taskTimeTooltipContentTemplate:{},taskTitlePosition:String,taskTooltipContentTemplate:{},toolbar:Object,validation:Object,visible:Boolean,width:[Function,Number,String]},emits:{"update:isActive":null,"update:hoveredElement":null,"update:accessKey":null,"update:activeStateEnabled":null,"update:allowSelection":null,"update:columns":null,"update:contextMenu":null,"update:dependencies":null,"update:disabled":null,"update:editing":null,"update:elementAttr":null,"update:endDateRange":null,"update:filterRow":null,"update:firstDayOfWeek":null,"update:focusStateEnabled":null,"update:headerFilter":null,"update:height":null,"update:hint":null,"update:hoverStateEnabled":null,"update:onContentReady":null,"update:onContextMenuPreparing":null,"update:onCustomCommand":null,"update:onDependencyDeleted":null,"update:onDependencyDeleting":null,"update:onDependencyInserted":null,"update:onDependencyInserting":null,"update:onDisposing":null,"update:onInitialized":null,"update:onOptionChanged":null,"update:onResourceAssigned":null,"update:onResourceAssigning":null,"update:onResourceDeleted":null,"update:onResourceDeleting":null,"update:onResourceInserted":null,"update:onResourceInserting":null,"update:onResourceManagerDialogShowing":null,"update:onResourceUnassigned":null,"update:onResourceUnassigning":null,"update:onScaleCellPrepared":null,"update:onSelectionChanged":null,"update:onTaskClick":null,"update:onTaskDblClick":null,"update:onTaskDeleted":null,"update:onTaskDeleting":null,"update:onTaskEditDialogShowing":null,"update:onTaskInserted":null,"update:onTaskInserting":null,"update:onTaskMoving":null,"update:onTaskUpdated":null,"update:onTaskUpdating":null,"update:resourceAssignments":null,"update:resources":null,"update:rootValue":null,"update:scaleType":null,"update:scaleTypeRange":null,"update:selectedRowKey":null,"update:showDependencies":null,"update:showResources":null,"update:showRowLines":null,"update:sorting":null,"update:startDateRange":null,"update:stripLines":null,"update:tabIndex":null,"update:taskContentTemplate":null,"update:taskListWidth":null,"update:taskProgressTooltipContentTemplate":null,"update:tasks":null,"update:taskTimeTooltipContentTemplate":null,"update:taskTitlePosition":null,"update:taskTooltipContentTemplate":null,"update:toolbar":null,"update:validation":null,"update:visible":null,"update:width":null},computed:{instance:function(){return this.$_instance}},beforeCreate:function(){this.$_WidgetClass=o.default,this.$_hasAsyncTemplate=!0,this.$_expectedChildren={column:{isCollectionItem:!0,optionName:"columns"},contextMenu:{isCollectionItem:!1,optionName:"contextMenu"},dependencies:{isCollectionItem:!1,optionName:"dependencies"},editing:{isCollectionItem:!1,optionName:"editing"},filterRow:{isCollectionItem:!1,optionName:"filterRow"},ganttHeaderFilter:{isCollectionItem:!1,optionName:"headerFilter"},headerFilter:{isCollectionItem:!1,optionName:"headerFilter"},resourceAssignments:{isCollectionItem:!1,optionName:"resourceAssignments"},resources:{isCollectionItem:!1,optionName:"resources"},scaleTypeRange:{isCollectionItem:!1,optionName:"scaleTypeRange"},sorting:{isCollectionItem:!1,optionName:"sorting"},stripLine:{isCollectionItem:!0,optionName:"stripLines"},tasks:{isCollectionItem:!1,optionName:"tasks"},toolbar:{isCollectionItem:!1,optionName:"toolbar"},validation:{isCollectionItem:!1,optionName:"validation"}}}});t.DxGantt=s;var l=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:alignment":null,"update:allowEditing":null,"update:allowFiltering":null,"update:allowFixing":null,"update:allowHeaderFiltering":null,"update:allowHiding":null,"update:allowReordering":null,"update:allowResizing":null,"update:allowSearch":null,"update:allowSorting":null,"update:buttons":null,"update:calculateCellValue":null,"update:calculateDisplayValue":null,"update:calculateFilterExpression":null,"update:calculateSortValue":null,"update:caption":null,"update:cellTemplate":null,"update:columns":null,"update:cssClass":null,"update:customizeText":null,"update:dataField":null,"update:dataType":null,"update:editCellTemplate":null,"update:editorOptions":null,"update:encodeHtml":null,"update:falseText":null,"update:filterOperations":null,"update:filterType":null,"update:filterValue":null,"update:filterValues":null,"update:fixed":null,"update:fixedPosition":null,"update:format":null,"update:formItem":null,"update:headerCellTemplate":null,"update:headerFilter":null,"update:hidingPriority":null,"update:isBand":null,"update:lookup":null,"update:minWidth":null,"update:name":null,"update:ownerBand":null,"update:renderAsync":null,"update:selectedFilterOperation":null,"update:setCellValue":null,"update:showEditorAlways":null,"update:showInColumnChooser":null,"update:sortIndex":null,"update:sortingMethod":null,"update:sortOrder":null,"update:trueText":null,"update:type":null,"update:validationRules":null,"update:visible":null,"update:visibleIndex":null,"update:width":null},props:{alignment:String,allowEditing:{},allowFiltering:Boolean,allowFixing:{},allowHeaderFiltering:Boolean,allowHiding:{},allowReordering:{},allowResizing:{},allowSearch:{},allowSorting:Boolean,buttons:{},calculateCellValue:Function,calculateDisplayValue:[Function,String],calculateFilterExpression:Function,calculateSortValue:[Function,String],caption:String,cellTemplate:{},columns:{},cssClass:String,customizeText:Function,dataField:String,dataType:String,editCellTemplate:{},editorOptions:{},encodeHtml:Boolean,falseText:String,filterOperations:Array,filterType:String,filterValue:{},filterValues:Array,fixed:{},fixedPosition:{},format:[Object,Function,String],formItem:{},headerCellTemplate:{},headerFilter:Object,hidingPriority:{},isBand:{},lookup:{},minWidth:Number,name:{},ownerBand:{},renderAsync:{},selectedFilterOperation:String,setCellValue:{},showEditorAlways:{},showInColumnChooser:{},sortIndex:Number,sortingMethod:Function,sortOrder:String,trueText:String,type:{},validationRules:{},visible:Boolean,visibleIndex:Number,width:[Number,String]}});t.DxColumn=l,l.$_optionName="columns",l.$_isCollectionItem=!0,l.$_expectedChildren={columnHeaderFilter:{isCollectionItem:!1,optionName:"headerFilter"},format:{isCollectionItem:!1,optionName:"format"},headerFilter:{isCollectionItem:!1,optionName:"headerFilter"},lookup:{isCollectionItem:!1,optionName:"lookup"}};var d=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:allowSearch":null,"update:dataSource":null,"update:groupInterval":null,"update:height":null,"update:searchMode":null,"update:width":null},props:{allowSearch:Boolean,dataSource:{},groupInterval:[Number,String],height:Number,searchMode:String,width:Number}});t.DxColumnHeaderFilter=d,d.$_optionName="headerFilter";var u=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:enabled":null,"update:items":null},props:{enabled:Boolean,items:Array}});t.DxContextMenu=u,u.$_optionName="contextMenu",u.$_expectedChildren={contextMenuItem:{isCollectionItem:!0,optionName:"items"},item:{isCollectionItem:!0,optionName:"items"}};var c=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:beginGroup":null,"update:closeMenuOnClick":null,"update:disabled":null,"update:html":null,"update:icon":null,"update:items":null,"update:name":null,"update:selectable":null,"update:selected":null,"update:template":null,"update:text":null,"update:visible":null},props:{beginGroup:Boolean,closeMenuOnClick:Boolean,disabled:Boolean,html:String,icon:String,items:Array,name:String,selectable:Boolean,selected:Boolean,template:{},text:String,visible:Boolean}});t.DxContextMenuItem=c,c.$_optionName="items",c.$_isCollectionItem=!0;var h=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:dataSource":null,"update:keyExpr":null,"update:predecessorIdExpr":null,"update:successorIdExpr":null,"update:typeExpr":null},props:{dataSource:{},keyExpr:[Function,String],predecessorIdExpr:[Function,String],successorIdExpr:[Function,String],typeExpr:[Function,String]}});t.DxDependencies=h,h.$_optionName="dependencies";var p=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:allowDependencyAdding":null,"update:allowDependencyDeleting":null,"update:allowResourceAdding":null,"update:allowResourceDeleting":null,"update:allowResourceUpdating":null,"update:allowTaskAdding":null,"update:allowTaskDeleting":null,"update:allowTaskResourceUpdating":null,"update:allowTaskUpdating":null,"update:enabled":null},props:{allowDependencyAdding:Boolean,allowDependencyDeleting:Boolean,allowResourceAdding:Boolean,allowResourceDeleting:Boolean,allowResourceUpdating:Boolean,allowTaskAdding:Boolean,allowTaskDeleting:Boolean,allowTaskResourceUpdating:Boolean,allowTaskUpdating:Boolean,enabled:Boolean}});t.DxEditing=p,p.$_optionName="editing";var f=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:betweenEndText":null,"update:betweenStartText":null,"update:operationDescriptions":null,"update:resetOperationText":null,"update:showAllText":null,"update:showOperationChooser":null,"update:visible":null},props:{betweenEndText:String,betweenStartText:String,operationDescriptions:Object,resetOperationText:String,showAllText:String,showOperationChooser:Boolean,visible:Boolean}});t.DxFilterRow=f,f.$_optionName="filterRow",f.$_expectedChildren={operationDescriptions:{isCollectionItem:!1,optionName:"operationDescriptions"}};var g=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:currency":null,"update:formatter":null,"update:parser":null,"update:precision":null,"update:type":null,"update:useCurrencyAccountingStyle":null},props:{currency:String,formatter:Function,parser:Function,precision:Number,type:String,useCurrencyAccountingStyle:Boolean}});t.DxFormat=g,g.$_optionName="format";var m=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:allowSearch":null,"update:height":null,"update:searchTimeout":null,"update:texts":null,"update:visible":null,"update:width":null},props:{allowSearch:Boolean,height:Number,searchTimeout:Number,texts:Object,visible:Boolean,width:Number}});t.DxGanttHeaderFilter=m,m.$_optionName="headerFilter",m.$_expectedChildren={texts:{isCollectionItem:!1,optionName:"texts"}};var _=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:allowSearch":null,"update:dataSource":null,"update:groupInterval":null,"update:height":null,"update:searchMode":null,"update:searchTimeout":null,"update:texts":null,"update:visible":null,"update:width":null},props:{allowSearch:Boolean,dataSource:{},groupInterval:[Number,String],height:Number,searchMode:String,searchTimeout:Number,texts:Object,visible:Boolean,width:Number}});t.DxHeaderFilter=_,_.$_optionName="headerFilter";var v=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:beginGroup":null,"update:closeMenuOnClick":null,"update:cssClass":null,"update:disabled":null,"update:html":null,"update:icon":null,"update:items":null,"update:locateInMenu":null,"update:location":null,"update:menuItemTemplate":null,"update:name":null,"update:options":null,"update:selectable":null,"update:selected":null,"update:showText":null,"update:template":null,"update:text":null,"update:visible":null,"update:widget":null},props:{beginGroup:Boolean,closeMenuOnClick:Boolean,cssClass:String,disabled:Boolean,html:String,icon:String,items:Array,locateInMenu:String,location:String,menuItemTemplate:{},name:String,options:{},selectable:Boolean,selected:Boolean,showText:String,template:{},text:String,visible:Boolean,widget:String}});t.DxItem=v,v.$_optionName="items",v.$_isCollectionItem=!0;var y=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:allowClearing":null,"update:calculateCellValue":null,"update:dataSource":null,"update:displayExpr":null,"update:valueExpr":null},props:{allowClearing:Boolean,calculateCellValue:Function,dataSource:{},displayExpr:[Function,String],valueExpr:String}});t.DxLookup=y,y.$_optionName="lookup";var C=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:between":null,"update:contains":null,"update:endsWith":null,"update:equal":null,"update:greaterThan":null,"update:greaterThanOrEqual":null,"update:lessThan":null,"update:lessThanOrEqual":null,"update:notContains":null,"update:notEqual":null,"update:startsWith":null},props:{between:String,contains:String,endsWith:String,equal:String,greaterThan:String,greaterThanOrEqual:String,lessThan:String,lessThanOrEqual:String,notContains:String,notEqual:String,startsWith:String}});t.DxOperationDescriptions=C,C.$_optionName="operationDescriptions";var b=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:dataSource":null,"update:keyExpr":null,"update:resourceIdExpr":null,"update:taskIdExpr":null},props:{dataSource:{},keyExpr:[Function,String],resourceIdExpr:[Function,String],taskIdExpr:[Function,String]}});t.DxResourceAssignments=b,b.$_optionName="resourceAssignments";var x=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:colorExpr":null,"update:dataSource":null,"update:keyExpr":null,"update:textExpr":null},props:{colorExpr:[Function,String],dataSource:{},keyExpr:[Function,String],textExpr:[Function,String]}});t.DxResources=x,x.$_optionName="resources";var w=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:max":null,"update:min":null},props:{max:String,min:String}});t.DxScaleTypeRange=w,w.$_optionName="scaleTypeRange";var T=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:ascendingText":null,"update:clearText":null,"update:descendingText":null,"update:mode":null,"update:showSortIndexes":null},props:{ascendingText:String,clearText:String,descendingText:String,mode:String,showSortIndexes:Boolean}});t.DxSorting=T,T.$_optionName="sorting";var S=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:cssClass":null,"update:end":null,"update:start":null,"update:title":null},props:{cssClass:String,end:{},start:{},title:String}});t.DxStripLine=S,S.$_optionName="stripLines",S.$_isCollectionItem=!0;var I=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:colorExpr":null,"update:dataSource":null,"update:endExpr":null,"update:keyExpr":null,"update:parentIdExpr":null,"update:progressExpr":null,"update:startExpr":null,"update:titleExpr":null},props:{colorExpr:[Function,String],dataSource:{},endExpr:[Function,String],keyExpr:[Function,String],parentIdExpr:[Function,String],progressExpr:[Function,String],startExpr:[Function,String],titleExpr:[Function,String]}});t.DxTasks=I,I.$_optionName="tasks";var E=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:cancel":null,"update:emptyValue":null,"update:ok":null},props:{cancel:String,emptyValue:String,ok:String}});t.DxTexts=E,E.$_optionName="texts";var D=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:items":null},props:{items:Array}});t.DxToolbar=D,D.$_optionName="toolbar",D.$_expectedChildren={item:{isCollectionItem:!0,optionName:"items"},toolbarItem:{isCollectionItem:!0,optionName:"items"}};var k=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:cssClass":null,"update:disabled":null,"update:html":null,"update:locateInMenu":null,"update:location":null,"update:menuItemTemplate":null,"update:name":null,"update:options":null,"update:showText":null,"update:template":null,"update:text":null,"update:visible":null,"update:widget":null},props:{cssClass:String,disabled:Boolean,html:String,locateInMenu:String,location:String,menuItemTemplate:{},name:String,options:{},showText:String,template:{},text:String,visible:Boolean,widget:String}});t.DxToolbarItem=k,k.$_optionName="items",k.$_isCollectionItem=!0;var O=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:autoUpdateParentTasks":null,"update:enablePredecessorGap":null,"update:validateDependencies":null},props:{autoUpdateParentTasks:Boolean,enablePredecessorGap:Boolean,validateDependencies:Boolean}});t.DxValidation=O,O.$_optionName="validation",t["default"]=s},10760:function(e,t,i){"use strict";i.d(t,{U:function(){return u},W:function(){return c}});var n=i(18274),o=i(48714),r=(0,n.Ym)()?(0,n.Jj)():{},a=1e3/60,s=function(e){return setTimeout(e,a)},l=function(e){clearTimeout(e)},d=(0,o.Z)((function(){var e=r.requestAnimationFrame||r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame||r.oRequestAnimationFrame||r.msRequestAnimationFrame,t=r.cancelAnimationFrame||r.webkitCancelAnimationFrame||r.mozCancelAnimationFrame||r.oCancelAnimationFrame||r.msCancelAnimationFrame;e&&t&&(s=e,l=t)}));function u(){return d(),s.apply(r,arguments)}function c(){d(),l.apply(r,arguments)}},90343:function(e,t,i){"use strict";i.d(t,{Z:function(){return s}});var n=i(57678),o=i(18274),r=i(50450),a=i(63419);class s{constructor(e,t){t=t||{},this._action=e,this._context=t.context||(0,o.Jj)(),this._beforeExecute=t.beforeExecute,this._afterExecute=t.afterExecute,this._component=t.component,this._validatingTargetName=t.validatingTargetName;var i=this._excludeValidators={};if(t.excludeValidators)for(var n=0;n<t.excludeValidators.length;n++)i[t.excludeValidators[n]]=!0}execute(){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,i=this._afterExecute,n=e.args[0]||{};if(this._validateAction(e)&&(null===t||void 0===t||t.call(this._context,e),!e.cancel)){var o=this._executeAction(e);if(!n.cancel)return null===i||void 0===i||i.call(this._context,e),o}}_validateAction(e){var t=this._excludeValidators,{executors:i}=s;for(var n in i)if(!t[n]){var o,r=i[n];if(null===(o=r.validate)||void 0===o||o.call(r,e),e.cancel)return!1}return!0}_executeAction(e){var t,{executors:i}=s;for(var n in i){var o,r=i[n];if(null===(o=r.execute)||void 0===o||o.call(r,e),e.handled){t=e.result;break}}return t}static registerExecutor(e,t){(0,r.PO)(e)?(0,a.S6)(e,s.registerExecutor):s.executors[e]=t}static unregisterExecutor(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];(0,a.S6)(t,(function(){delete s.executors[this]}))}}s.executors={};var l=e=>t=>{if(t.args.length){var i=t.args[0],o=i[t.validatingTargetName]||i.element;o&&e((0,n.Z)(o))&&(t.cancel=!0)}};s.registerExecutor({disabled:{validate:l((e=>e.is(".dx-state-disabled, .dx-state-disabled *")))},readOnly:{validate:l((e=>e.is(".dx-state-readonly, .dx-state-readonly *:not(.dx-state-independent)")))},undefined:{execute:e=>{e.action||(e.result=void 0,e.handled=!0)}},func:{execute:e=>{(0,r.mf)(e.action)&&(e.result=e.action.call(e.context,e.args[0]),e.handled=!0)}}})},49784:function(e,t,i){"use strict";var n=i(33734),o=i(50450),r=function(e,t,i){return function(){var n=this.callBase;this.callBase=e[t];try{return i.apply(this,arguments)}finally{this.callBase=n}}},a=function(e){var t=function(){};return t.prototype=e.prototype,new t},s=function(e){var t,i,n;if(!e)return this;for(i in e)n=e[i],t="function"===typeof this.prototype[i]&&"function"===typeof n,this.prototype[i]=t?r(this.parent.prototype,i,n):n;return this},l=function(){var e,t,i,n=this,o=Object.prototype.hasOwnProperty.bind(n),r=!o("_includedCtors")&&!o("_includedPostCtors");for(r&&(n._includedCtors=n._includedCtors.slice(0),n._includedPostCtors=n._includedPostCtors.slice(0)),i=0;i<arguments.length;i++)for(t in e=arguments[i],e.ctor&&n._includedCtors.push(e.ctor),e.postCtor&&n._includedPostCtors.push(e.postCtor),e)"ctor"!==t&&"postCtor"!==t&&"default"!==t&&(n.prototype[t]=e[t]);return n},d=function(e){var t=Object.prototype.hasOwnProperty.bind(this)("parent"),i=!t&&this.parent;if(i){var n=Object.getPrototypeOf(this);return n===e||n.subclassOf(e)}return this.parent===e||!(!this.parent||!this.parent.subclassOf)&&this.parent.subclassOf(e)},u=function(){throw n.Z.Error("E0001")},c=function(){var e=Object.prototype.hasOwnProperty;return function(t,i){for(var n in t){if(!e.call(t,n))return;i[n]=t[n]}}}(),h=function(){};h.inherit=function(e){var t=function(){if(!this||(0,o.FJ)(this)||"function"!==typeof this.constructor)throw n.Z.Error("E0003");var e,t=this,i=t.ctor,r=t.constructor._includedCtors,a=t.constructor._includedPostCtors;for(e=0;e<r.length;e++)r[e].call(t);for(i&&i.apply(t,arguments),e=0;e<a.length;e++)a[e].call(t)};return t.prototype=a(this),c(this,t),t.inherit=this.inherit,t.abstract=u,t.redefine=s,t.include=l,t.subclassOf=d,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},h.abstract=u,t["Z"]=h},18176:function(e,t,i){"use strict";i.d(t,{w:function(){return E}});var n=i(44432),o=i(44099),r=i(39299),a=i(50450),s=i(72264),l=i(78852),d=i(71389),u=function(e,t){return 1/e===1/t},c=function(e,t){if(e=(0,l.Ex)(e,!0),t=(0,l.Ex)(t,!0),e&&t&&(0,a.ZU)(e)&&(0,a.ZU)(t))return t.is(e);var i=e!==e,n=t!==t;return!(!i||!n)||(0===e&&0===t?u(e,t):!(null!==e&&"object"===typeof e&&!d["default"].isElementNode(e))&&e===t)},h=i(1293),p={},f={};class g{constructor(e,t){this._options=e,this._optionsByReference=t,this._changingCallback,this._changedCallback,this._namePreparedCallbacks}_setByReference(e,t){for(var i in(0,o.l)(!0,e,t),this._optionsByReference)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}_setPreparedValue(e,t,i,n){var o=this.get(this._options,e,!1);if(!c(o,t)){var r=(0,l.Zw)(e);!n&&this._changingCallback(e,o,t),f[e]=f[e]||(0,l.OM)(e),f[e](this._options,t,{functionsAsIs:!0,merge:(0,a.$K)(i)?i:!this._optionsByReference[e],unwrapObservables:r.length>1&&!!this._optionsByReference[r[0]]}),!n&&this._changedCallback(e,t,o)}}_prepareRelevantNames(e,t,i,n){if((0,a.PO)(i))for(var o in i)this._prepareRelevantNames(e,"".concat(t,".").concat(o),i[o]);this._namePreparedCallbacks(e,t,i,n)}get(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._options,t=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;return p[t]=p[t]||(0,l.vb)(t),p[t](e,{functionsAsIs:!0,unwrapObservables:i})}set(e,t,i,n){for(var o in e=(0,h.GR)(e,t),e)this._prepareRelevantNames(e,o,e[o],n);for(var r in e)this._setPreparedValue(r,e[r],i,n)}onRelevantNamesPrepared(e){this._namePreparedCallbacks=e}onChanging(e){this._changingCallback=e}onChanged(e){this._changedCallback=e}dispose(){this._changingCallback=s.ZT,this._changedCallback=s.ZT}}class m{constructor(e,t,i,n){this._deprecatedCallback,this._startChangeCallback,this._endChangeCallback,this._default=t,this._deprecated=n,this._deprecatedNames=[],this._initDeprecatedNames(),this._optionManager=new g(e,i),this._optionManager.onRelevantNamesPrepared(((e,t,i,n)=>this._setRelevantNames(e,t,i,n))),this._cachedOptions={},this._rules=[]}set _initial(e){this._initialOptions=e}get _initial(){if(!this._initialOptions){var e=this._getByRules(this.silent("defaultOptionsRules"));this._initialOptions=this._default,this._optionManager._setByReference(this._initialOptions,e)}return this._initialOptions}_initDeprecatedNames(){for(var e in this._deprecated)this._deprecatedNames.push(e)}_getByRules(e){return e=Array.isArray(e)?this._rules.concat(e):this._rules,(0,h.wt)(e)}_notifyDeprecated(e){var t=this._deprecated[e];t&&this._deprecatedCallback(e,t)}_setRelevantNames(e,t,i,n){if(t){var o=this._normalizeName(t,n);o&&o!==t&&(this._setField(e,o,i),this._clearField(e,t))}}_setField(e,t,i){var n="",o=null;do{n=n?".".concat(n):"",n=(0,h.Ts)(t)+n,t=(0,h.u5)(t),o=t?this._optionManager.get(e,t,!1):e}while(!o);o[n]=i}_clearField(e,t){delete e[t];var i=(0,h.u5)(t),n=i?this._optionManager.get(e,i,!1):e;n&&delete n[(0,h.Ts)(t)]}_normalizeName(e,t){if(this._deprecatedNames.length&&e)for(var i=0;i<this._deprecatedNames.length;i++)if(this._deprecatedNames[i]===e){var n=this._deprecated[e];if(n)return!t&&this._notifyDeprecated(e),n.alias||e}return e}addRules(e){this._rules=e.concat(this._rules)}applyRules(e){var t=this._getByRules(e);this.silent(t)}dispose(){this._deprecatedCallback=s.ZT,this._startChangeCallback=s.ZT,this._endChangeCallback=s.ZT,this._optionManager.dispose()}onChanging(e){this._optionManager.onChanging(e)}onChanged(e){this._optionManager.onChanged(e)}onDeprecated(e){this._deprecatedCallback=e}onStartChange(e){this._startChangeCallback=e}onEndChange(e){this._endChangeCallback=e}isInitial(e){var t=this.silent(e),i=this.initial(e),n=(0,a.mf)(t)&&(0,a.mf)(i);return n?t.toString()===i.toString():(0,s.bY)(t,i)}initial(e){return(0,h.vH)(this._initial,e)}option(e,t){var i=arguments.length<2&&"object"!==(0,a.dt)(e);if(i)return this._optionManager.get(void 0,this._normalizeName(e));this._startChangeCallback();try{this._optionManager.set(e,t)}finally{this._endChangeCallback()}}silent(e,t){var i=arguments.length<2&&"object"!==(0,a.dt)(e);if(i)return this._optionManager.get(void 0,e,void 0,!0);this._optionManager.set(e,t,void 0,!0)}reset(e){if(e){var t=(0,l.Zw)(e),i=t.reduce(((e,t)=>e?e[t]:this.initial(t)),null),n=(0,a.Kn)(i)?(0,r.Z)({},i):i;this._optionManager.set(e,n,!1)}}getAliasesByName(e){return Object.keys(this._deprecated).filter((t=>e===this._deprecated[t].alias))}isDeprecated(e){return Object.prototype.hasOwnProperty.call(this._deprecated,e)}cache(e,t){var i=arguments.length<2;if(i)return this._cachedOptions[e];this._cachedOptions[e]=(0,o.l)(this._cachedOptions[e],t)}}var _=i(49784),v=i(90343),y=i(33734),C=i(94795),b=i(79494),x=i(37063),w=i(79303);class T{constructor(){this._postponedOperations={}}add(e,t,i){if(e in this._postponedOperations)i&&this._postponedOperations[e].promises.push(i);else{var n=new w.BH;this._postponedOperations[e]={fn:t,completePromise:n,promises:i?[i]:[]}}return this._postponedOperations[e].completePromise.promise()}callPostponedOperations(){for(var e in this._postponedOperations){var t=this._postponedOperations[e];(0,a.$K)(t)&&(t.promises&&t.promises.length?(0,w.gx)(...t.promises).done(t.fn).then(t.completePromise.resolve):t.fn().done(t.completePromise.resolve))}this._postponedOperations={}}}var S=e=>e.charAt(2).toLowerCase()+e.substr(3),I=e=>0===e.indexOf("_",0),E=_.Z.inherit({_setDeprecatedOptions(){this._deprecatedOptions={}},_getDeprecatedOptions(){return this._deprecatedOptions},_getDefaultOptions:()=>({onInitialized:null,onOptionChanged:null,onDisposing:null,defaultOptionsRules:null}),_defaultOptionsRules:()=>[],_setOptionsByDevice(e){this._options.applyRules(e)},_convertRulesToOptions:e=>(0,h.wt)(e),_isInitialOptionValue(e){return this._options.isInitial(e)},_setOptionsByReference(){this._optionsByReference={}},_getOptionsByReference(){return this._optionsByReference},ctor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{_optionChangedCallbacks:t,_disposingCallbacks:i}=e;this.NAME=(0,x.u2)(this.constructor),this._eventsStrategy=b.m.create(this,e.eventsStrategy),this._updateLockCount=0,this._optionChangedCallbacks=t||(0,C["default"])(),this._disposingCallbacks=i||(0,C["default"])(),this.postponedOperations=new T,this._createOptions(e)},_createOptions(e){this.beginUpdate();try{this._setOptionsByReference(),this._setDeprecatedOptions(),this._options=new m(this._getDefaultOptions(),this._getDefaultOptions(),this._getOptionsByReference(),this._getDeprecatedOptions()),this._options.onChanging(((e,t,i)=>this._initialized&&this._optionChanging(e,t,i))),this._options.onDeprecated(((e,t)=>this._logDeprecatedOptionWarning(e,t))),this._options.onChanged(((e,t,i)=>this._notifyOptionChanged(e,t,i))),this._options.onStartChange((()=>this.beginUpdate())),this._options.onEndChange((()=>this.endUpdate())),this._options.addRules(this._defaultOptionsRules()),e&&e.onInitializing&&e.onInitializing.apply(this,[e]),this._setOptionsByDevice(e.defaultOptionsRules),this._initOptions(e)}finally{this.endUpdate()}},_initOptions(e){this.option(e)},_init(){this._createOptionChangedAction(),this.on("disposing",(e=>{this._disposingCallbacks.fireWith(this,[e])}))},_logDeprecatedOptionWarning(e,t){var i=t.message||"Use the '".concat(t.alias,"' option instead");y.Z.log("W0001",this.NAME,e,t.since,i)},_logDeprecatedComponentWarning(e,t){y.Z.log("W0000",this.NAME,e,"Use the '".concat(t,"' widget instead"))},_createOptionChangedAction(){this._optionChangedAction=this._createActionByOption("onOptionChanged",{excludeValidators:["disabled","readOnly"]})},_createDisposingAction(){this._disposingAction=this._createActionByOption("onDisposing",{excludeValidators:["disabled","readOnly"]})},_optionChanged(e){switch(e.name){case"onDisposing":case"onInitialized":break;case"onOptionChanged":this._createOptionChangedAction()}},_dispose(){this._optionChangedCallbacks.empty(),this._createDisposingAction(),this._disposingAction(),this._eventsStrategy.dispose(),this._options.dispose(),this._disposed=!0},_lockUpdate(){this._updateLockCount++},_unlockUpdate(){this._updateLockCount=Math.max(this._updateLockCount-1,0)},_isUpdateAllowed(){return 0===this._updateLockCount},_isInitializingRequired(){return!this._initializing&&!this._initialized},isInitialized(){return this._initialized},_commitUpdate(){this.postponedOperations.callPostponedOperations(),this._isInitializingRequired()&&this._initializeComponent()},_initializeComponent(){this._initializing=!0;try{this._init()}finally{this._initializing=!1,this._lockUpdate(),this._createActionByOption("onInitialized",{excludeValidators:["disabled","readOnly"]})(),this._unlockUpdate(),this._initialized=!0}},instance(){return this},beginUpdate:function(){this._lockUpdate()},endUpdate:function(){this._unlockUpdate(),this._isUpdateAllowed()&&this._commitUpdate()},_optionChanging:s.ZT,_notifyOptionChanged(e,t,i){if(this._initialized)for(var n=[e].concat(this._options.getAliasesByName(e)),r=0;r<n.length;r++){var a=n[r],s={name:(0,l.Zw)(a)[0],fullName:a,value:t,previousValue:i};I(a)||(this._optionChangedCallbacks.fireWith(this,[(0,o.l)(this._defaultActionArgs(),s)]),this._optionChangedAction((0,o.l)({},s))),this._disposed||this._cancelOptionChange===a||this._optionChanged(s)}},initialOption(e){return this._options.initial(e)},_defaultActionConfig(){return{context:this,component:this}},_defaultActionArgs(){return{component:this}},_createAction(e,t){var i;return n=>((0,a.$K)(n)||(n={}),(0,a.PO)(n)||(n={actionValue:n}),i=i||new v.Z(e,(0,o.l)(t,this._defaultActionConfig())),i.execute.call(i,(0,o.l)(n,this._defaultActionArgs())))},_createActionByOption(e,t){var i,o,r,a=this,l=function(){if(!o){if(t=t||{},"string"!==typeof e)throw y.Z.Error("E0008");0===e.indexOf("on")&&(o=S(e)),r=a.option(e)}if(i||r||t.beforeExecute||t.afterExecute||a._eventsStrategy.hasEvent(o)){if(!i){var l=t.beforeExecute;t.beforeExecute=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];l&&l.apply(a,t),a._eventsStrategy.fireEvent(o,t[0].args)},i=a._createAction(r,t)}for(var d=arguments.length,u=new Array(d),c=0;c<d;c++)u[c]=arguments[c];if((0,n.Z)().wrapActionsBeforeExecute){var h=a.option("beforeActionExecute")||s.ZT,p=h(a,i,t)||i;return p.apply(a,u)}return i.apply(a,u)}};if((0,n.Z)().wrapActionsBeforeExecute)return l;var d=this.option("onActionCreated")||s.ZT;return d(this,l,t)||l},on(e,t){return this._eventsStrategy.on(e,t),this},off(e,t){return this._eventsStrategy.off(e,t),this},hasActionSubscription:function(e){return!!this._options.silent(e)||this._eventsStrategy.hasEvent(S(e))},isOptionDeprecated(e){return this._options.isDeprecated(e)},_setOptionWithoutOptionChange(e,t){this._cancelOptionChange=e,this.option(e,t),this._cancelOptionChange=!1},_getOptionValue(e,t){var i=this.option(e);return(0,a.mf)(i)?i.bind(t)():i},option(){return this._options.option(...arguments)},resetOption(e){this.beginUpdate(),this._options.reset(e),this.endUpdate()}})},652:function(e,t,i){"use strict";i.d(t,{Z:function(){return u}});var n=i(57678),o=i(43815),r=new o.Z,a=i(33734),s=i(37063),l=function(e,t,i){i?t[e]=i:i=t,(0,s.u2)(i,e),r.fire(e,i)},d=function(e,t){n.Z.fn[e]=function(i){var n,o="string"===typeof i;if(o){var r=i,s=[].slice.call(arguments).slice(1);this.each((function(){var i=t.getInstance(this);if(!i)throw a.Z.Error("E0009",e);var o=i[r],l=o.apply(i,s);void 0===n&&(n=l)}))}else this.each((function(){var e=t.getInstance(this);e?e.option(i):new t(this,i)})),n=this;return n}};r.add(d);var u=l},44432:function(e,t,i){"use strict";var n=i(44099),o=i(33734),r={rtlEnabled:!1,defaultCurrency:"USD",defaultUseCurrencyAccountingStyle:!0,oDataFilterToLower:!0,serverDecimalSeparator:".",decimalSeparator:".",thousandsSeparator:",",forceIsoDateParsing:!0,wrapActionsBeforeExecute:!0,useLegacyStoreResult:!1,useJQuery:void 0,editorStylingMode:void 0,useLegacyVisibleIndex:!1,floatingActionButtonConfig:{icon:"add",closeIcon:"close",label:"",position:{at:"right bottom",my:"right bottom",offset:{x:-16,y:-16}},maxSpeedDialActionCount:5,shading:!1,direction:"auto"},optionsParser:e=>{"{"!==e.trim().charAt(0)&&(e="{"+e+"}");try{return new Function("return "+e)()}catch(t){throw o.Z.Error("E3018",t,e)}}},a=["decimalSeparator","thousandsSeparator"],s=function(){if(!arguments.length)return r;var e=arguments.length<=0?void 0:arguments[0];a.forEach((t=>{if(e[t]){var i="Now, the ".concat(t," is selected based on the specified locale.");o.Z.log("W0003","config",t,"19.2",i)}})),(0,n.l)(r,e)};"undefined"!==typeof DevExpress&&DevExpress.config&&s(DevExpress.config),t["Z"]=s},30390:function(e,t,i){"use strict";var n=i(30057),o=i(57678),r=i(18274),a=i(44099),s=i(50450),l=i(63419),d=i(33734),u=i(94795),c=i(90268),h=i(20605),p=i(79494),f=i(65012),g=i(12454),m=i(44432),_=(0,r.jW)(),v=(0,r.Jj)(),y={iPhone:"iPhone",iPhone5:"iPhone",iPhone6:"iPhone",iPhone6plus:"iPhone",iPad:"iPad",iPadMini:"iPad Mini",androidPhone:"Android Mobile",androidTablet:"Android",msSurface:"Windows ARM Tablet PC",desktop:"desktop"},C={deviceType:"desktop",platform:"generic",version:[],phone:!1,tablet:!1,android:!1,ios:!1,generic:!0,grade:"A",mac:!1},b={generic(e){var t=/windows phone/i.test(e)||e.match(/WPDesktop/),i=!t&&/Windows(.*)arm(.*)Tablet PC/i.test(e),n=!t&&!i&&/msapphost/i.test(e),o=/((intel|ppc) mac os x)/.test(e.toLowerCase());if(t||i||n||o)return{deviceType:t?"phone":i?"tablet":"desktop",platform:"generic",version:[],grade:"A",mac:o}},ios(e){if(/ip(hone|od|ad)/i.test(e)){var t=/ip(hone|od)/i.test(e),i=e.match(/os (\d+)_(\d+)_?(\d+)?/i),n=i?[parseInt(i[1],10),parseInt(i[2],10),parseInt(i[3]||0,10)]:[],o=480===v.screen.height,r=o?"B":"A";return{deviceType:t?"phone":"tablet",platform:"ios",version:n,grade:r}}},android(e){if(/android|htc_|silk/i.test(e)){var t=/mobile/i.test(e),i=e.match(/android (\d+)\.?(\d+)?\.?(\d+)?/i),n=i?[parseInt(i[1],10),parseInt(i[2]||0,10),parseInt(i[3]||0,10)]:[],o=n.length>1&&(n[0]<4||4===n[0]&&n[1]<4),r=o?"B":"A";return{deviceType:t?"phone":"tablet",platform:"android",version:n,grade:r}}}};class x{constructor(e){this._window=(null===e||void 0===e?void 0:e.window)||v,this._realDevice=this._getDevice(),this._currentDevice=void 0,this._currentOrientation=void 0,this._eventsStrategy=new p.m(this),this.changed=(0,u["default"])(),(0,r.Ym)()&&(c.Z.add(this._recalculateOrientation.bind(this)),h.Z.add(this._recalculateOrientation.bind(this)))}current(e){if(e)return this._currentDevice=this._getDevice(e),this._forced=!0,void this.changed.fire();if(!this._currentDevice){e=void 0;try{e=this._getDeviceOrNameFromWindowScope()}catch(t){e=this._getDeviceNameFromSessionStorage()}finally{e||(e=this._getDeviceNameFromSessionStorage()),e&&(this._forced=!0)}this._currentDevice=this._getDevice(e)}return this._currentDevice}real(e){return(0,a.l)({},this._realDevice)}orientation(){return this._currentOrientation}isForced(){return this._forced}isRippleEmulator(){return!!this._window.tinyHippos}_getCssClasses(e){var t=[],i=this._realDevice;return e=e||this.current(),e.deviceType&&(t.push("dx-device-".concat(e.deviceType)),"desktop"!==e.deviceType&&t.push("dx-device-mobile")),t.push("dx-device-".concat(i.platform)),i.version&&i.version.length&&t.push("dx-device-".concat(i.platform,"-").concat(i.version[0])),this.isSimulator()&&t.push("dx-simulator"),(0,m.Z)().rtlEnabled&&t.push("dx-rtl"),t}attachCssClasses(e,t){this._deviceClasses=this._getCssClasses(t).join(" "),(0,o.Z)(e).addClass(this._deviceClasses)}detachCssClasses(e){(0,o.Z)(e).removeClass(this._deviceClasses)}isSimulator(){try{return this._isSimulator||(0,r.Ym)()&&this._window.top!==this._window.self&&this._window.top["dx-force-device"]||this.isRippleEmulator()}catch(e){return!1}}forceSimulator(){this._isSimulator=!0}_getDevice(e){if("genericPhone"===e&&(e={deviceType:"phone",platform:"generic",generic:!0}),(0,s.PO)(e))return this._fromConfig(e);var t;if(e){if(t=y[e],!t)throw d.Z.Error("E0005")}else t=_.userAgent;return this._fromUA(t)}_getDeviceOrNameFromWindowScope(){var e;return(0,r.Ym)()&&(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(){var e=(0,f.y)();if(e){var t=e.getItem("dx-force-device");try{return JSON.parse(t)}catch(i){return t}}}_fromConfig(e){var t=(0,a.l)({},C,this._currentDevice,e),i={phone:"phone"===t.deviceType,tablet:"tablet"===t.deviceType,android:"android"===t.platform,ios:"ios"===t.platform,generic:"generic"===t.platform};return(0,a.l)(t,i)}_fromUA(e){var t;return(0,l.S6)(b,((i,n)=>(t=n(e),!t))),t?this._fromConfig(t):C}_changeOrientation(){var e=(0,o.Z)(this._window),t=(0,n.Cr)(e)>(0,n.dz)(e)?"portrait":"landscape";this._currentOrientation!==t&&(this._currentOrientation=t,this._eventsStrategy.fireEvent("orientationChanged",[{orientation:t}]))}_recalculateOrientation(){var e=(0,n.dz)(this._window);this._currentWidth!==e&&(this._currentWidth=e,this._changeOrientation())}on(e,t){return this._eventsStrategy.on(e,t),this}off(e,t){return this._eventsStrategy.off(e,t),this}}var w=new x,T=(0,g.S3)();T&&w.attachCssClasses(T),g.Wg.add(((e,t)=>{w.detachCssClasses(t),w.attachCssClasses(e)})),t["Z"]=w},71389:function(e,t,i){"use strict";i.r(t);var n=i(27154),o=i(72264),r=i(99163),a=1,s=3,l=9,d=11,u={querySelectorAll:(e,t)=>e.querySelectorAll(t),elementMatches(e,t){var i=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||(t=>{var i=e.document||e.ownerDocument;if(!i)return!1;for(var n=this.querySelectorAll(i,t),o=0;o<n.length;o++)if(n[o]===e)return!0});return i.call(e,t)},createElement(e,t){return t=t||this._document,t.createElement(e)},createElementNS(e,t,i){return i=i||this._document,i.createElementNS(e,t)},createTextNode(e,t){return t=t||this._document,t.createTextNode(e)},isNode:e=>e&&"object"===typeof e&&"nodeType"in e&&"nodeName"in e,isElementNode:e=>e&&e.nodeType===a,isTextNode:e=>e&&e.nodeType===s,isDocument:e=>e&&e.nodeType===l,isDocumentFragment:e=>e&&e.nodeType===d,removeElement(e){var t=e&&e.parentNode;t&&t.removeChild(e)},insertElement(e,t,i){e&&t&&e!==t&&(i?e.insertBefore(t,i):e.appendChild(t))},getAttribute:(e,t)=>e.getAttribute(t),setAttribute(e,t,i){e.setAttribute(t,i)},removeAttribute(e,t){e.removeAttribute(t)},setProperty(e,t,i){e[t]=i},setText(e,t){e&&(e.textContent=t)},setClass(e,t,i){1===e.nodeType&&t&&(i?e.classList.add(t):e.classList.remove(t))},setStyle(e,t,i){e.style[t]=i||""},_document:"undefined"===typeof document?void 0:document,getDocument(){return this._document},getActiveElement(e){var t=this.getRootNode(e);return t.activeElement},getRootNode(e){var t,i;return null!==(t=null===e||void 0===e||null===(i=e.getRootNode)||void 0===i?void 0:i.call(e))&&void 0!==t?t:this._document},getBody(){return this._document.body},createDocumentFragment(){return this._document.createDocumentFragment()},getDocumentElement(){return this._document.documentElement},getLocation(){return this._document.location},getSelection(){return this._document.selection},getReadyState(){return this._document.readyState},getHead(){return this._document.head},hasDocumentProperty(e){return e in this._document},listen(e,t,i,n){return e&&"addEventListener"in e?(e.addEventListener(t,i,n),()=>{e.removeEventListener(t,i)}):o.ZT},elementsFromPoint(e,t,i){var n=this.getRootNode(i);return n.host?(0,r.f)(e,t,n):n.elementsFromPoint(e,t)}};t["default"]=(0,n.Z)(u)},19728:function(e,t,i){"use strict";i.d(t,{Z:function(){return k}});var n=i(57678),o=i(44432),r=i(33734),a=i(20605),s=i(18176),l=i(50450),d=i(72264),u=i(44099),c=i(50191),h=i(10045),p=i(5491),f=3,g="template",m="dxTemplate",_="dx-template-wrapper",v=new c.k((e=>{var{model:t,parent:i}=e,o=t.widget;if(!o)return(0,n.Z)();var r=(0,n.Z)("<div>"),a=t.options||{};return i?i._createComponent(r,o,a):r[o](a),r}));class y{constructor(e,t){this._tempTemplates=[],this._defaultTemplates={},this._anonymousTemplateName=t||g,this._createElement=e||p.gi,this._createTemplateIfNeeded=this._createTemplateIfNeeded.bind(this)}static createDefaultOptions(){return{integrationOptions:{watchMethod:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.skipImmediate||t(e()),d.ZT},templates:{"dx-polymorph-widget":v},useDeferUpdateForTemplates:!0}}}get anonymousTemplateName(){return this._anonymousTemplateName}addDefaultTemplates(e){this._defaultTemplates=(0,u.l)({},this._defaultTemplates,e)}dispose(){this._tempTemplates.forEach((e=>{e.template.dispose&&e.template.dispose()})),this._tempTemplates=[]}extractTemplates(e){var t=this._extractTemplates(e),i=this._extractAnonymousTemplate(e);return{templates:t,anonymousTemplateMeta:i}}_extractTemplates(e){var t=(0,p.hK)(e,m),i=(0,p.ZE)(t);return t.forEach((e=>{var{element:t,options:{name:o}}=e;t===i[o]?(0,n.Z)(t).addClass(_).detach():(0,n.Z)(t).remove()})),Object.keys(i).map((e=>({name:e,template:this._createTemplate(i[e])})))}_extractAnonymousTemplate(e){var t=e.contents().detach(),i=t.filter(((e,t)=>{var i=t.nodeType===f,o=(0,n.Z)(t).text().trim().length<1;return!(i&&o)}));return i.length>0?{template:this._createTemplate(t),name:this._anonymousTemplateName}:{}}_createTemplateIfNeeded(e){var t=this._tempTemplates.filter((t=>t.source===(0,p.TM)(e)))[0];if(t)return t.template;var i=this._createTemplate(e);return this._tempTemplates.push({template:i,source:(0,p.TM)(e)}),i}_createTemplate(e){return this._createElement((0,p.v_)(e))}getTemplate(e,t,i,o){var{isAsyncTemplate:r,skipTemplates:a}=i;return(0,l.mf)(e)?new c.k((i=>{var s=e.apply(o,(0,p.Wl)(i));if(!(0,l.$K)(s))return new h.s;var d=!1,u=(0,p.t0)(s,(e=>e.nodeType||(0,l.ZU)(e)&&!(0,n.Z)(e).is("script")?new c.k((()=>e)):(d=!0,this._createTemplate(e))),t,r,a,this._defaultTemplates),f=u.render(i);return d&&u.dispose&&u.dispose(),f})):(0,p.t0)(e,this._createTemplateIfNeeded,t,r,a,this._defaultTemplates)}}var C=i(37063),b=i(99163),x=i(86403),w=i(63419),T=i(81965),S=i(18274),I=i(86859),{abstract:E}=s.w,D=s.w.inherit({_getDefaultOptions(){return(0,u.l)(this.callBase(),{width:void 0,height:void 0,rtlEnabled:(0,o.Z)().rtlEnabled,elementAttr:{},disabled:!1,integrationOptions:{}},this._useTemplates()?y.createDefaultOptions():{})},ctor(e,t){this._customClass=null,this._createElement(e),(0,C.nf)(this._$element,this,this._dispose),this.callBase(t)},_createElement(e){this._$element=(0,n.Z)(e)},_getSynchronizableOptionsForCreateComponent:()=>["rtlEnabled","disabled","templatesRenderAsynchronously"],_checkFunctionValueDeprecation:function(e){this.option("_ignoreFunctionValueDeprecation")||e.forEach((e=>{(0,l.mf)(this.option(e))&&r.Z.log("W0017",e)}))},_visibilityChanged:E,_dimensionChanged:E,_init(){this.callBase(),this._checkFunctionValueDeprecation(["width","height","maxHeight","maxWidth","minHeight","minWidth","popupHeight","popupWidth"]),this._attachWindowResizeCallback(),this._initTemplateManager()},_setOptionsByDevice(e){this.callBase([].concat(this.constructor._classCustomRules||[],e||[]))},_isInitialOptionValue(e){var t=this.constructor._classCustomRules&&Object.prototype.hasOwnProperty.call(this._convertRulesToOptions(this.constructor._classCustomRules),e);return!t&&this.callBase(e)},_attachWindowResizeCallback(){if(this._isDimensionChangeSupported()){var e=this._windowResizeCallBack=this._dimensionChanged.bind(this);a.Z.add(e)}},_isDimensionChangeSupported(){return this._dimensionChanged!==E},_renderComponent(){this._initMarkup(),(0,S.Ym)()&&this._render()},_initMarkup(){var{rtlEnabled:e}=this.option()||{};this._renderElementAttributes(),this._toggleRTLDirection(e),this._renderVisibilityChange(),this._renderDimensions()},_render(){this._attachVisibilityChangeHandlers(),(0,b.R)(this.$element())},_renderElementAttributes(){var{elementAttr:e}=this.option()||{},t=(0,u.l)({},e),i=t.class;delete t.class,this.$element().attr(t).removeClass(this._customClass).addClass(i),this._customClass=i},_renderVisibilityChange(){if(this._isDimensionChangeSupported()&&this._attachDimensionChangeHandlers(),this._isVisibilityChangeSupported()){var e=this.$element();e.addClass("dx-visibility-change-handler")}},_renderDimensions(){var e=this.$element(),t=e.get(0),i=this._getOptionValue("width",t),n=this._getOptionValue("height",t);this._isCssUpdateRequired(t,n,i)&&e.css({width:null===i?"":i,height:null===n?"":n})},_isCssUpdateRequired:(e,t,i)=>!!((0,l.$K)(i)||(0,l.$K)(t)||e.style.width||e.style.height),_attachDimensionChangeHandlers(){var e=this.$element(),t="".concat(this.NAME,"VisibilityChange");I.SI.off(e,{namespace:t}),I.SI.on(e,(()=>this._dimensionChanged()),{namespace:t})},_attachVisibilityChangeHandlers(){if(this._isVisibilityChangeSupported()){var e=this.$element(),t="".concat(this.NAME,"VisibilityChange");this._isHidden=!this._isVisible(),I.WD.off(e,{namespace:t}),I.WD.on(e,(()=>this._checkVisibilityChanged("shown")),(()=>this._checkVisibilityChanged("hiding")),{namespace:t})}},_isVisible(){var e=this.$element();return e.is(":visible")},_checkVisibilityChanged(e){var t=this._isVisible();t&&("hiding"!==e||this._isHidden?"shown"===e&&this._isHidden&&(this._isHidden=!1,this._visibilityChanged(!0)):(this._visibilityChanged(!1),this._isHidden=!0))},_isVisibilityChangeSupported(){return this._visibilityChanged!==E&&(0,S.Ym)()},_clean:d.ZT,_modelByElement(){var{modelByElement:e}=this.option(),t=this.$element();return e?e(t):void 0},_invalidate(){if(this._isUpdateAllowed())throw r.Z.Error("E0007");this._requireRefresh=!0},_refresh(){this._clean(),this._renderComponent()},_dispose(){this._templateManager&&this._templateManager.dispose(),this.callBase(),this._clean(),this._detachWindowResizeCallback()},_detachWindowResizeCallback(){this._isDimensionChangeSupported()&&a.Z.remove(this._windowResizeCallBack)},_toggleRTLDirection(e){var t=this.$element();t.toggleClass("dx-rtl",e)},_createComponent(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,d.h3)(this._getSynchronizableOptionsForCreateComponent(),(e=>!(e in i))),{integrationOptions:r}=this.option(),{nestedComponentOptions:a}=this.option();a=a||d.ZT;var s=(0,u.l)({integrationOptions:r},a(this));o.forEach((e=>s[e]=this.option(e))),this._extendConfig(i,s);var c=void 0;if((0,l.HD)(t)){var h=(0,n.Z)(e)[t](i);c=h[t]("instance")}else e&&(c=t.getInstance(e),c?c.option(i):c=new t(e,i));if(c){var p=e=>{var{name:t,value:i}=e;o.includes(t)&&c.option(t,i)};this.on("optionChanged",p),c.on("disposing",(()=>this.off("optionChanged",p)))}return c},_extendConfig(e,t){(0,w.S6)(t,((t,i)=>{!Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=i)}))},_defaultActionConfig(){var e=this.$element(),t=this._modelByElement(e);return(0,u.l)(this.callBase(),{context:t})},_defaultActionArgs(){var e=this.$element(),t=this._modelByElement(e),i=this.element();return(0,u.l)(this.callBase(),{element:i,model:t})},_optionChanged(e){switch(e.name){case"width":case"height":this._renderDimensions();break;case"rtlEnabled":this._invalidate();break;case"elementAttr":this._renderElementAttributes();break;case"disabled":case"integrationOptions":break;default:this.callBase(e)}},_removeAttributes(e){for(var t=e.attributes,i=t.length-1;i>=0;i--){var n=t[i];if(n){var{name:o}=n;o.indexOf("aria-")&&-1===o.indexOf("dx-")&&"role"!==o&&"style"!==o&&"tabindex"!==o||e.removeAttribute(o)}}},_removeClasses(e){e.className=e.className.split(" ").filter((e=>0!==e.lastIndexOf("dx-",0))).join(" ")},_updateDOMComponent(e){e?this._renderComponent():this._requireRefresh&&(this._requireRefresh=!1,this._refresh())},endUpdate(){var e=this._isInitializingRequired();this.callBase(),this._isUpdateAllowed()&&this._updateDOMComponent(e)},$element(){return this._$element},element(){var e=this.$element();return(0,T.u)(e)},dispose(){var e=this.$element().get(0);(0,x.nK)(e,!0),e.textContent="",this._removeAttributes(e),this._removeClasses(e)},resetOption(e){if(this.callBase(e),"width"===e||"height"===e){var t=this.initialOption(e);!(0,l.$K)(t)&&this.$element().css(e,"")}},_getAnonymousTemplateName(){},_initTemplateManager(){if(!this._templateManager&&this._useTemplates()){var{integrationOptions:e={}}=this.option(),{createTemplate:t}=e;this._templateManager=new y(t,this._getAnonymousTemplateName()),this._initTemplates()}},_initTemplates(){var{templates:e,anonymousTemplateMeta:t}=this._templateManager.extractTemplates(this.$element()),i=this.option("integrationOptions.templates.".concat(t.name));e.forEach((e=>{var{name:t,template:i}=e;this._options.silent("integrationOptions.templates.".concat(t),i)})),t.name&&!i&&(this._options.silent("integrationOptions.templates.".concat(t.name),t.template),this._options.silent("_hasAnonymousTemplateContent",!0))},_getTemplateByOption(e){return this._getTemplate(this.option(e))},_getTemplate(e){var t=this.option("integrationOptions.templates"),i=this.option("templatesRenderAsynchronously"),n=this.option("integrationOptions.skipTemplates");return this._templateManager.getTemplate(e,t,{isAsyncTemplate:i,skipTemplates:n},this)},_saveTemplate(e,t){this._setOptionWithoutOptionChange("integrationOptions.templates."+e,this._templateManager._createTemplate(t))},_useTemplates:()=>!0});D.getInstance=function(e){return(0,C.Bt)((0,n.Z)(e),this)},D.defaultOptions=function(e){this._classCustomRules=this._classCustomRules||[],this._classCustomRules.push(e)};var k=D},81965:function(e,t,i){"use strict";i.d(t,{u:function(){return o}});var n=function(e){return e&&e.get(0)};function o(e){return n(e)}},86403:function(e,t,i){"use strict";i.d(t,{NU:function(){return f},WD:function(){return p},aT:function(){return h},nK:function(){return g}});var n,o=i(71389),r=i(52376),a=i(43815),s=new WeakMap,l=new a.Z,d=function(){},u=function(){},c=function(e){l.fire(e),n=e;var t=n.cleanData;n.cleanData=function(e){d(e);var i=t.call(this,e);return u(e),i}};function h(){return n.data.apply(this,arguments)}function p(e){d=e}function f(e,t){return n.removeData.call(this,e,t)}function g(e,t){if(o["default"].isElementNode(e)){var i=e.getElementsByTagName("*");n.cleanData(i),t&&n.cleanData([e])}}c({data:function(){var e=arguments[0],t=arguments[1],i=arguments[2];if(e){var n=s.get(e);return n||(n={},s.set(e,n)),void 0===t?n:2===arguments.length?n[t]:(n[t]=i,i)}},removeData:function(e,t){if(e)if(void 0===t)s.delete(e);else{var i=s.get(e);i&&delete i[t]}},cleanData:function(e){for(var t=0;t<e.length;t++)r.Z.off(e[t]),s.delete(e[t])}})},33734:function(e,t,i){"use strict";var n=i(2695);t["Z"]=(0,n.Z)({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",E0025:"Unexpected argument type",E0100:"Unknown validation type is detected",E0101:"Misconfigured range validation rule is detected",E0102:"Misconfigured comparison validation rule is detected",E0103:"validationCallback of an asynchronous rule should return a jQuery or a native promise",E0110:"Unknown validation group is detected",E0120:"Adapter for a DevExpressValidator component cannot be configured",E0121:"The 'customItem' parameter of the 'onCustomItemCreating' function is empty or contains invalid data. Assign a custom object or a Promise that is resolved after the item is created.",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}",W0014:"{0} - '{1}' type is deprecated in {2}. {3}",W0015:"Instead of returning a value from the '{0}' function, write it into the '{1}' field of the function's parameter.",W0016:'The "{0}" option does not accept the "{1}" value since v{2}. {3}.',W0017:'Setting the "{0}" property with a function is deprecated since v21.2',W0018:'Setting the "position" property with a function is deprecated since v21.2'})},79494:function(e,t,i){"use strict";i.d(t,{m:function(){return a}});var n=i(94795),o=i(63419),r=i(50450);class a{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._events={},this._owner=e,this._options=t}static create(e,t){return t?(0,r.mf)(t)?t(e):t:new a(e)}hasEvent(e){var t=this._events[e];return!!t&&t.has()}fireEvent(e,t){var i=this._events[e];return i&&i.fireWith(this._owner,t),this._owner}on(e,t){if((0,r.PO)(e))(0,o.S6)(e,((e,t)=>{this.on(e,t)}));else{var i=this._events[e];i||(i=(0,n["default"])({syncStrategy:this._options.syncStrategy}),this._events[e]=i);var a=i.originalAdd||i.add;a.call(i,t)}}off(e,t){var i=this._events[e];i&&((0,r.mf)(t)?i.remove(t):i.empty())}dispose(){(0,o.S6)(this._events,((e,t)=>{t.empty()}))}}},68760:function(e,t,i){"use strict";var n=i(49784),o=n.Z.inherit({ctor:function(e){e&&(e=String(e)),this._value=this._normalize(e||this._generate())},_normalize:function(e){e=e.replace(/[^a-f0-9]/gi,"").toLowerCase();while(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}});t["Z"]=o},43815:function(e,t,i){"use strict";i.d(t,{Z:function(){return r}});var n=i(63419),o=i(94795);class r{constructor(){this.memory=[],this.callbacks=(0,o["default"])()}add(e){(0,n.S6)(this.memory,((t,i)=>e.apply(e,i))),this.callbacks.add(e)}remove(e){this.callbacks.remove(e)}fire(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];this.memory.push(t),this.callbacks.fire.apply(this.callbacks,t)}}},1293:function(e,t,i){"use strict";i.d(t,{GR:function(){return u},J3:function(){return g},Ts:function(){return h},u5:function(){return p},vH:function(){return f},wt:function(){return d}});var n=i(30390),o=i(50450),r=i(72264),a=i(44099),s=i(78852),l={},d=e=>{var t=n.Z.current();return e.reduce(((e,i)=>{var{device:n,options:r}=i,s=n||{},l=(0,o.mf)(s)?s(t):c(t,s);return l&&(0,a.l)(!0,e,r),e}),{})},u=(e,t)=>"string"!==typeof e?e:{[e]:t},c=(e,t)=>(0,o.Qr)(t)||(0,r.U3)(e,[t]).length>0,h=e=>e.substr(e.lastIndexOf(".")+1),p=e=>e.substr(0,e.lastIndexOf(".")),f=function(e,t){return l[t]=l[t]||(0,s.vb)(t),l[t](e,{functionsAsIs:!0})},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e}},57678:function(e,t,i){"use strict";i.d(t,{Z:function(){return b}});var n,o=i(86403),r=i(71389),a=i(18274),s=i(50450),l=i(19071),d=i(30057),u=i(8825),c=(0,a.Jj)(),h=function(e,t){return e?"string"===typeof e?"body"===e?(this[0]=t?t.body:r["default"].getBody(),this.length=1,this):(t=t||r["default"].getDocument(),"<"===e[0]?(this[0]=r["default"].createElement(e.slice(1,-1),t),this.length=1,this):([].push.apply(this,r["default"].querySelectorAll(t,e)),this)):r["default"].isNode(e)||(0,s.FJ)(e)?(this[0]=e,this.length=1,this):Array.isArray(e)?([].push.apply(this,e),this):n(e.toArray?e.toArray():[e]):(this.length=0,this)};n=function(e,t){return new h(e,t)},n.fn={dxRenderer:!0},h.prototype=n.fn;var p=function(e,t){for(var i=0;i<this.length;i++){var o=n(this[i]);o[e].apply(o,t)}return this},f=function(e,t,i){void 0!==i&&null!==i&&!1!==i?r["default"].setAttribute(e,t,i):r["default"].removeAttribute(e,t)};h.prototype.show=function(){return this.toggle(!0)},h.prototype.hide=function(){return this.toggle(!1)},h.prototype.toggle=function(e){return this[0]&&this.toggleClass("dx-state-invisible",!e),this},h.prototype.attr=function(e,t){if(this.length>1&&arguments.length>1)return p.call(this,"attr",arguments);if(!this[0])return(0,s.Kn)(e)||void 0!==t?this:void 0;if(!this[0].getAttribute)return this.prop(e,t);if("string"===typeof e&&1===arguments.length){var i=this[0].getAttribute(e);return null==i?void 0:i}if((0,s.PO)(e))for(var n in e)this.attr(n,e[n]);else f(this[0],e,t);return this},h.prototype.removeAttr=function(e){return this[0]&&r["default"].removeAttribute(this[0],e),this},h.prototype.prop=function(e,t){if(!this[0])return this;if("string"===typeof e&&1===arguments.length)return this[0][e];if((0,s.PO)(e))for(var i in e)this.prop(i,e[i]);else r["default"].setProperty(this[0],e,t);return this},h.prototype.addClass=function(e){return this.toggleClass(e,!0)},h.prototype.removeClass=function(e){return this.toggleClass(e,!1)},h.prototype.hasClass=function(e){if(!this[0]||void 0===this[0].className)return!1;for(var t=e.split(" "),i=0;i<t.length;i++)if(this[0].classList){if(this[0].classList.contains(t[i]))return!0}else{var n=(0,s.HD)(this[0].className)?this[0].className:r["default"].getAttribute(this[0],"class");if((n||"").split(" ").indexOf(t[i])>=0)return!0}return!1},h.prototype.toggleClass=function(e,t){if(this.length>1)return p.call(this,"toggleClass",arguments);if(!this[0]||!e)return this;t=void 0===t?!this.hasClass(e):t;for(var i=e.split(" "),n=0;n<i.length;n++)r["default"].setClass(this[0],i[n],t);return this},h.prototype.html=function(e){return arguments.length?(this.empty(),"string"===typeof e&&!(0,u.N)(e)||"number"===typeof e?(this[0].innerHTML=e,this):this.append((0,u.r)(e))):this[0].innerHTML};var g=function(e,t){if(this[0]&&e){"string"===typeof e?e=(0,u.r)(e):e.nodeType?e=[e]:(0,s.kE)(e)&&(e=[r["default"].createTextNode(e)]);for(var i=0;i<e.length;i++){var n=e[i],o=this[0],a="TABLE"===o.tagName&&"TR"===n.tagName;a&&o.tBodies&&o.tBodies.length&&(o=o.tBodies[0]),r["default"].insertElement(o,n.nodeType?n:n[0],t)}}},m=function(e,t){if(this[0]&&this[0].style&&!(null===t||"number"===typeof t&&isNaN(t))){e=(0,l.Hj)(e);for(var i=0;i<this.length;i++)this[i].style[e]=(0,l.bh)(e,t)}};h.prototype.css=function(e,t){if((0,s.HD)(e)){if(2!==arguments.length){if(!this[0])return;e=(0,l.Hj)(e);var i=c.getComputedStyle(this[0])[e]||this[0].style[e];return(0,s.kE)(i)?i.toString():i}m.call(this,e,t)}else if((0,s.PO)(e))for(var n in e)m.call(this,n,e[n]);return this},h.prototype.prepend=function(e){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.prepend(arguments[t]);return this}return g.apply(this,[e,this[0].firstChild]),this},h.prototype.append=function(e){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.append(arguments[t]);return this}return g.apply(this,[e]),this},h.prototype.prependTo=function(e){if(this.length>1){for(var t=this.length-1;t>=0;t--)n(this[t]).prependTo(e);return this}return e=n(e),e[0]&&r["default"].insertElement(e[0],this[0],e[0].firstChild),this},h.prototype.appendTo=function(e){return this.length>1?p.call(this,"appendTo",arguments):(r["default"].insertElement(n(e)[0],this[0]),this)},h.prototype.insertBefore=function(e){return e&&e[0]&&r["default"].insertElement(e[0].parentNode,this[0],e[0]),this},h.prototype.insertAfter=function(e){return e&&e[0]&&r["default"].insertElement(e[0].parentNode,this[0],e[0].nextSibling),this},h.prototype.before=function(e){return this[0]&&r["default"].insertElement(this[0].parentNode,e[0],this[0]),this},h.prototype.after=function(e){return this[0]&&r["default"].insertElement(this[0].parentNode,e[0],this[0].nextSibling),this},h.prototype.wrap=function(e){if(this[0]){var t=n(e);t.insertBefore(this),t.append(this)}return this},h.prototype.wrapInner=function(e){var t=this.contents();return t.length?t.wrap(e):this.append(e),this},h.prototype.replaceWith=function(e){if(e&&e[0])return e.is(this)?this:(e.insertBefore(this),this.remove(),e)},h.prototype.remove=function(){return this.length>1?p.call(this,"remove",arguments):((0,o.nK)(this[0],!0),r["default"].removeElement(this[0]),this)},h.prototype.detach=function(){return this.length>1?p.call(this,"detach",arguments):(r["default"].removeElement(this[0]),this)},h.prototype.empty=function(){return this.length>1?p.call(this,"empty",arguments):((0,o.nK)(this[0]),r["default"].setText(this[0],""),this)},h.prototype.clone=function(){for(var e=[],t=0;t<this.length;t++)e.push(this[t].cloneNode(!0));return n(e)},h.prototype.text=function(e){if(!arguments.length){for(var t="",i=0;i<this.length;i++)t+=this[i]&&this[i].textContent||"";return t}var n=(0,s.mf)(e)?e():e;return(0,o.nK)(this[0],!1),r["default"].setText(this[0],(0,s.$K)(n)?n:""),this},h.prototype.val=function(e){return 1===arguments.length?this.prop("value",(0,s.$K)(e)?e:""):this.prop("value")},h.prototype.contents=function(){if(!this[0])return n();var e=[];return e.push.apply(e,this[0].childNodes),n(e)},h.prototype.find=function(e){var t=n();if(!e)return t;var i,o=[];if("string"===typeof e)for(e=e.trim(),i=0;i<this.length;i++){var a=this[i];if(r["default"].isElementNode(a)){var s=a.getAttribute("id"),l=s||"dx-query-children";s||f(a,"id",l),l="[id='"+l+"'] ";var d=l+e.replace(/([^\\])(,)/g,"$1, "+l);o.push.apply(o,r["default"].querySelectorAll(a,d)),f(a,"id",s)}else(r["default"].isDocument(a)||r["default"].isDocumentFragment(a))&&o.push.apply(o,r["default"].querySelectorAll(a,e))}else for(i=0;i<this.length;i++)e=r["default"].isNode(e)?e:e[0],this[i]!==e&&this[i].contains(e)&&o.push(e);return t.add(o)};var _=function(e,t){var i;return t=null!==(i=t.host)&&void 0!==i?i:t,!t.nodeType||!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)};h.prototype.filter=function(e){if(!e)return n();if(":visible"===e)return this.filter(_);if(":hidden"===e)return this.filter((function(e,t){return!_(e,t)}));for(var t=[],i=0;i<this.length;i++){var o=this[i];if(r["default"].isElementNode(o)&&"string"===(0,s.dt)(e))r["default"].elementMatches(o,e)&&t.push(o);else if(r["default"].isNode(e)||(0,s.FJ)(e))e===o&&t.push(o);else if((0,s.mf)(e))e.call(o,i,o)&&t.push(o);else for(var a=0;a<e.length;a++)e[a]===o&&t.push(o)}return n(t)},h.prototype.not=function(e){for(var t=[],i=this.filter(e).toArray(),o=0;o<this.length;o++)-1===i.indexOf(this[o])&&t.push(this[o]);return n(t)},h.prototype.is=function(e){return!!this.filter(e).length},h.prototype.children=function(e){for(var t=[],i=0;i<this.length;i++)for(var o=this[i]?this[i].childNodes:[],a=0;a<o.length;a++)r["default"].isElementNode(o[a])&&t.push(o[a]);return t=n(t),e?t.filter(e):t},h.prototype.siblings=function(){var e=this[0];if(!e||!e.parentNode)return n();for(var t=[],i=e.parentNode.childNodes||[],o=0;o<i.length;o++){var a=i[o];r["default"].isElementNode(a)&&a!==e&&t.push(a)}return n(t)},h.prototype.each=function(e){for(var t=0;t<this.length;t++)if(!1===e.call(this[t],t,this[t]))break},h.prototype.index=function(e){return e?(e=n(e),this.toArray().indexOf(e[0])):this.parent().children().index(this)},h.prototype.get=function(e){return this[e<0?this.length+e:e]},h.prototype.eq=function(e){return e=e<0?this.length+e:e,n(this[e])},h.prototype.first=function(){return this.eq(0)},h.prototype.last=function(){return this.eq(-1)},h.prototype.parent=function(e){if(!this[0])return n();var t=n(this[0].parentNode);return!e||t.is(e)?t:n()},h.prototype.parents=function(e){var t=[],i=this.parent();while(i&&i[0]&&!r["default"].isDocument(i[0]))r["default"].isElementNode(i[0])&&(e&&!i.is(e)||t.push(i.get(0))),i=i.parent();return n(t)},h.prototype.closest=function(e){if(this.is(e))return this;var t=this.parent();while(t&&t.length){if(t.is(e))return t;t=t.parent()}return n()},h.prototype.next=function(e){if(!this[0])return n();var t=n(this[0].nextSibling);if(!arguments.length)return t;while(t&&t.length){if(t.is(e))return t;t=t.next()}return n()},h.prototype.prev=function(){return this[0]?n(this[0].previousSibling):n()},h.prototype.add=function(e){for(var t=n(e),i=this.toArray(),o=0;o<t.length;o++){var r=t[o];-1===i.indexOf(r)&&i.push(r)}return n(i)};var v=[];h.prototype.splice=function(){return n(v.splice.apply(this,arguments))},h.prototype.slice=function(){return n(v.slice.apply(this,arguments))},h.prototype.toArray=function(){return v.slice.call(this)},h.prototype.offset=function(){if(this[0])return(0,d.os)(this[0])},h.prototype.offsetParent=function(){if(!this[0])return n();var e=n(this[0].offsetParent);while(e[0]&&"static"===e.css("position"))e=n(e[0].offsetParent);return e=e[0]?e:n(r["default"].getDocumentElement()),e},h.prototype.position=function(){if(this[0]){var e,t=parseFloat(this.css("marginTop")),i=parseFloat(this.css("marginLeft"));if("fixed"===this.css("position"))return e=this[0].getBoundingClientRect(),{top:e.top-t,left:e.left-i};e=this.offset();var n=this.offsetParent(),o={top:0,left:0};return"HTML"!==n[0].nodeName&&(o=n.offset()),o={top:o.top+parseFloat(n.css("borderTopWidth")),left:o.left+parseFloat(n.css("borderLeftWidth"))},{top:e.top-o.top-t,left:e.left-o.left-i}}},[{name:"scrollLeft",offsetProp:"pageXOffset",scrollWindow:function(e,t){e.scrollTo(t,e.pageYOffset)}},{name:"scrollTop",offsetProp:"pageYOffset",scrollWindow:function(e,t){e.scrollTo(e.pageXOffset,t)}}].forEach((function(e){var t=e.name;h.prototype[t]=function(i){if(this[0]){var n=(0,d.C_)(this[0]);return void 0===i?n?n[e.offsetProp]:this[0][t]:(n?e.scrollWindow(n,i):this[0][t]=i,this)}}})),h.prototype.data=function(e,t){if(this[0])return arguments.length<2?o.aT.call(n,this[0],e):(o.aT.call(n,this[0],e,t),this)},h.prototype.removeData=function(e){return this[0]&&(0,o.NU)(this[0],e),this};var y=function(){return n.apply(this,arguments)};Object.defineProperty(y,"fn",{enumerable:!0,configurable:!0,get:function(){return n.fn},set:function(e){n.fn=e}});var C={set:function(e){n=e},get:function(){return y}},b=C.get()},67892:function(e,t,i){"use strict";var n=i(72264),o=i(18274),r=(0,o.Jj)(),a={observe:n.ZT,unobserve:n.ZT,disconnect:n.ZT};class s{constructor(){if(!(0,o.Ym)()||!r.ResizeObserver)return a;this._callbacksMap=new Map,this._observer=new r.ResizeObserver((e=>{e.forEach((e=>{var t;null===(t=this._callbacksMap.get(e.target))||void 0===t||t(e)}))}))}observe(e,t){this._callbacksMap.set(e,t),this._observer.observe(e)}unobserve(e){this._callbacksMap.delete(e),this._observer.unobserve(e)}disconnect(){this._callbacksMap.clear(),this._observer.disconnect()}}var l=new s;t["Z"]=l},20085:function(e,t,i){"use strict";i.d(t,{s:function(){return o}});var n=i(56782);class o extends n.S{constructor(e){super(),this.name=e}}},10045:function(e,t,i){"use strict";i.d(t,{s:function(){return r}});var n=i(57678),o=i(56782);class r extends o.S{_renderCore(){return(0,n.Z)()}}},50191:function(e,t,i){"use strict";i.d(t,{k:function(){return r}});var n=i(56782),o=i(25445);class r extends n.S{constructor(e){super(),this._render=e}_renderCore(e){return(0,o.H_)(this._render(e))}}},56782:function(e,t,i){"use strict";i.d(t,{S:function(){return u}});var n=i(57678),o=i(71389),r=i(94795),a=i(25445),s=i(33753),l=i(33734),d=(0,r["default"])({syncStrategy:!0});class u{render(e){e=e||{};var t,i=e.onRendered;return delete e.onRendered,t=e.renovated&&e.transclude&&this._element?(0,n.Z)("<div>").append(this._element).contents():this._renderCore(e),this._ensureResultInContainer(t,e.container),d.fire(t,e.container),i&&i(),t}_ensureResultInContainer(e,t){if(t){var i=(0,n.Z)(t),r=(0,a.r3)(i.get(0),e.get(0));if(i.append(e),!r){var l=o["default"].getBody().contains(i.get(0));l&&(0,s.Uo)(e)}}}_renderCore(){throw l.Z.Error("E0001")}}},43318:function(e,t,i){"use strict";i.d(t,{Z:function(){return F}});var n=i(79303),o=i(71389),r=i(18274),a=i(27154),s=(0,r.Jj)(),l={getXhr:function(){return new s.XMLHttpRequest}},d=(0,a.Z)(l),u=i(44099),c=i(50450),h=(0,r.Jj)(),p="success",f="error",g="timeout",m="nocontent",_="parsererror",v=function(e){return 200<=e&&e<300},y=function(e){return 204!==e},C=function(e){var t=[];for(var i in e){var n=e[i];void 0!==n&&(null===n&&(n=""),"function"===typeof n&&(n=n()),t.push(encodeURIComponent(i)+"="+encodeURIComponent(n)))}return t.join("&")},b=function(e){var t=o["default"].createElement("script");for(var i in e)t[i]=e[i];return t},x=function(e){e.parentNode.removeChild(e)},w=function(e){return o["default"].getHead().appendChild(e)},T=function(e){var t=b({text:e});w(t),x(t)},S=function(e){var t=b({src:e});return new Promise((function(e,i){var n={load:e,error:i},r=function(e){n[e.type](),x(t)};for(var a in n)o["default"].listen(t,a,r);w(t)}))},I=function(e){var t=e.dataType||"*",i="text/javascript, application/javascript, application/ecmascript, application/x-ecmascript",n={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",jsonp:i,script:i};return(0,u.x)(n,e.accepts,!0),n[t]?n[t]+("*"!==t?", */*; q=0.01":""):n["*"]},E=function(e){var t;return e.data&&!e.upload&&"GET"!==R(e)&&(t="application/x-www-form-urlencoded;charset=utf-8"),e.contentType||t},D=function(e){return e.responseType&&"text"!==e.responseType||"string"!==typeof e.responseText?e.response:e.responseText},k=function(e,t,i){var n=D(t);switch(i){case"jsonp":T(n);break;case"script":T(n),e.resolve(n,p,t);break;case"json":try{e.resolve(JSON.parse(n),p,t)}catch(o){e.reject(t,_,o)}break;default:e.resolve(n,p,t)}},O=function(e){if(!(0,r.Ym)())return!0;var t=!1,i=o["default"].createElement("a"),n=o["default"].createElement("a");i.href=h.location.href;try{n.href=e,n.href=n.href,t=i.protocol+"//"+i.host!==n.protocol+"//"+n.host}catch(a){t=!0}return t},A=function(e,t){return e&&setTimeout((function(){t.customStatus=g,t.abort()}),e)},P=function(e){if("jsonp"===e.dataType){var t=Math.random().toString().replace(/\D/g,""),i=e.jsonpCallback||"dxCallback"+Date.now()+"_"+t,n=e.jsonp||"callback";return e.data=e.data||{},e.data[n]=i,i}},M=function(e,t){var i=e.data,n="string"===typeof i,o=e.url||h.location.href;return n||e.cache||(i=i||{},i._=Date.now()),i&&!e.upload&&(n||(i=C(i)),"GET"===R(e)?(""!==i&&(o+=(o.indexOf("?")>-1?"&":"?")+i),i=null):t["Content-Type"]&&t["Content-Type"].indexOf("application/x-www-form-urlencoded")>-1&&(i=i.replace(/%20/g,"+"))),{url:o,parameters:i}};function R(e){return(e.method||"GET").toUpperCase()}var B=function(e){var t=e.headers||{};return t["Content-Type"]=t["Content-Type"]||E(e),t.Accept=t.Accept||I(e),e.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t},V=function(e){var t,i=d.getXhr(),o=new n.BH,r=o.promise(),a=!(0,c.$K)(e.async)||e.async,s=e.dataType,l=e.timeout||0;e.crossDomain=O(e.url);var u="jsonp"===s||"script"===s;void 0===e.cache&&(e.cache=!u);var g=P(e),_=B(e),C=M(e,_),b=C.url,x=C.parameters;if(g&&(h[g]=function(e){o.resolve(e,p,i)}),e.crossDomain&&u)return S(b).then((function(){"jsonp"!==s&&o.resolve(null,p,i)}),(function(){o.reject(i,f)})),r;if(e.crossDomain&&!("withCredentials"in i))return o.reject(i,f),r;if(i.open(R(e),b,a,e.username,e.password),a&&(i.timeout=l,t=A(l,i)),i.onreadystatechange=function(e){4===i.readyState&&(clearTimeout(t),v(i.status)?y(i.status)?k(o,i,s):o.resolve(null,m,i):o.reject(i,i.customStatus||f))},e.upload&&(i.upload.onprogress=e.upload.onprogress,i.upload.onloadstart=e.upload.onloadstart,i.upload.onabort=e.upload.onabort),e.xhrFields)for(var w in e.xhrFields)i[w]=e.xhrFields[w];for(var T in"arraybuffer"===e.responseType&&(i.responseType=e.responseType),_)Object.prototype.hasOwnProperty.call(_,T)&&(0,c.$K)(_[T])&&i.setRequestHeader(T,_[T]);return e.beforeSend&&e.beforeSend(i),i.send(x),r.abort=function(){i.abort()},r},F=(0,a.Z)({sendRequest:V})},37045:function(e,t,i){"use strict";i.d(t,{Ed:function(){return d},R1:function(){return u},Sq:function(){return c},rZ:function(){return l},sE:function(){return s},vM:function(){return h}});var n=i(50450),o=i(63370),r=i(44432);function a(e){return e.reduce(((e,t)=>{var i;return e[t]=(null!==(i=e[t])&&void 0!==i?i:0)+1,e}),{})}var s=function(e){return Array.isArray(e)?e:[e]},l=function(e){return[...new Set(e)]},d=function(e,t){var i=a(t);return e.filter((e=>i[e]--))},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=a(t);return e.filter((e=>!i[e]--))},c=function(e,t,i,a){var s={},{useLegacyVisibleIndex:l}=(0,r.Z)(),d=0,u=e=>!(0,n.$K)(e[t])&&(!a||a(e));e.forEach((e=>{var n=e[t];n>=0?(s[n]=s[n]||[],e===i?s[n].unshift(e):s[n].push(e)):e[t]=void 0})),l||e.forEach((e=>{if(u(e)){while(s[d])d++;s[d]=[e],d++}})),d=0,(0,o.jS)(s,(function(e,i){i.forEach((i=>{e>=0&&(i[t]=d++)}))})),l&&e.forEach((e=>{u(e)&&(e[t]=d++)}))},h=(e,t)=>e.reduce(((e,i)=>{var n,o=t(i);return e[o]=null!==(n=e[o])&&void 0!==n?n:[],e[o].push(i),e}),{})},31517:function(e,t,i){"use strict";var n=i(44099),o=i(18274),r=(0,o.jW)(),a=/(webkit)[ /]([\w.]+)/,s=/(mozilla)(?:.*? rv:([\w.]+))/,l=e=>{e=e.toLowerCase();var t={},i=a.exec(e)||e.indexOf("compatible")<0&&s.exec(e)||[],n=i[1],o=i[2];return"webkit"===n&&(t.webkit=!0,e.indexOf("chrome")>=0||e.indexOf("crios")>=0?(n="chrome",o=/(?:chrome|crios)\/(\d+\.\d+)/.exec(e),o=o&&o[1]):e.indexOf("fxios")>=0?(n="mozilla",o=/fxios\/(\d+\.\d+)/.exec(e),o=o&&o[1]):e.indexOf("safari")>=0&&/version|phantomjs/.test(e)?(n="safari",o=/(?:version|phantomjs)\/([0-9.]+)/.exec(e),o=o&&o[1]):(n="unknown",o=/applewebkit\/([0-9.]+)/.exec(e),o=o&&o[1])),n&&(t[n]=!0,t.version=o),t};t["Z"]=(0,n.l)({_fromUA:l},l(r.userAgent))},48714:function(e,t){"use strict";var i=function(e){var t,i=function(){return t=e.apply(this,arguments),i=function(){return t},t};return function(){return i.apply(this,arguments)}};t["Z"]=i},94795:function(e,t,i){"use strict";i.r(t);var n=function(e){this._options=e||{},this._list=[],this._queue=[],this._firing=!1,this._fired=!1,this._firingIndexes=[]};n.prototype._fireCore=function(e,t){var i=this._firingIndexes,n=this._list,o=this._options.stopOnFalse,r=i.length;for(i[r]=0;i[r]<n.length;i[r]++){var a=n[i[r]].apply(e,t);if(!1===a&&o)break}i.pop()},n.prototype.add=function(e){return"function"!==typeof e||this._options.unique&&this.has(e)||this._list.push(e),this},n.prototype.remove=function(e){var t=this._list,i=this._firingIndexes,n=t.indexOf(e);if(n>-1&&(t.splice(n,1),this._firing&&i.length))for(var o=0;o<i.length;o++)n<=i[o]&&i[o]--;return this},n.prototype.has=function(e){var t=this._list;return e?t.indexOf(e)>-1:!!t.length},n.prototype.empty=function(e){return this._list=[],this},n.prototype.fireWith=function(e,t){var i=this._queue;if(t=t||[],t=t.slice?t.slice():t,this._options.syncStrategy)this._firing=!0,this._fireCore(e,t);else{if(i.push([e,t]),this._firing)return;this._firing=!0;while(i.length){var n=i.shift();this._fireCore(n[0],n[1])}}return this._firing=!1,this._fired=!0,this},n.prototype.fire=function(){this.fireWith(this,arguments)},n.prototype.fired=function(){return this._fired};var o=function(e){return new n(e)};t["default"]=o},72264:function(e,t,i){"use strict";i.d(t,{C$:function(){return D},FH:function(){return I},IS:function(){return u},Rg:function(){return v},Su:function(){return _},TG:function(){return w},U3:function(){return C},Um:function(){return x},Wi:function(){return c},ZT:function(){return E},bN:function(){return y},bY:function(){return M},g0:function(){return m},h3:function(){return k},hr:function(){return S},k3:function(){return T}});var n,o=i(44432),r=i(68760),a=i(79303),s=i(78852),l=i(63419),d=i(50450),u=function(e,t){return(0,d.$K)(e)?e:t},c=function(e,t){var i=new a.BH,n=t||this,o={promise:i.promise(),abort:function(){clearTimeout(s),i.rejectWith(n)}},r=function(){var t=e.call(n);t&&t.done&&(0,d.mf)(t.done)?t.done((function(){i.resolveWith(n)})):i.resolveWith(n)},s=(arguments[2]||setTimeout)(r,"number"===typeof t?t:0);return o},h=[],p=[],f=[],g=function(e,t,i){if(n&&n!==e)return h.push(t),p.push(e),i=i||new a.BH,f.push(i),i;var o=n,r=f.length;n=e;var s=t();return s||(f.length>r?s=a.gx.apply(this,f.slice(r)):i&&i.resolve()),n=o,i&&s&&s.done&&s.done(i.resolve).fail(i.reject),!n&&h.length&&("render"===p.shift()?m:_)(h.shift(),f.shift()),s||(0,a.gx)()},m=function(e,t){return g("render",e,t)},_=function(e,t){return g("update",e,t)},v=function(e){return function(){var t=this;return g("render",(function(){return e.call(t)}))}},y=function(e){return function(){var t=this;return g("update",(function(){return e.call(t)}))}},C=function(e,t,i){var n=[],o=0;return(0,l.S6)(t,((t,r)=>{var a=0,s=i?i(r):r;(0,l.S6)(e,((e,t)=>{var i=s[e];if(void 0!==i){if(!b(i,t))return a=-1,!1;a++}})),a<o||(a>o&&(n.length=0,o=a),n.push(r))})),n},b=function(e,t){if(Array.isArray(e)&&Array.isArray(t)){var i=!1;return(0,l.S6)(e,((e,n)=>{if(n!==t[e])return i=!0,!1})),!i}return e===t},x=function(e){var t,i;switch((0,d.dt)(e)){case"string":return e.split(/\s+/,2);case"object":return[null!==(t=e.x)&&void 0!==t?t:e.h,null!==(i=e.y)&&void 0!==i?i:e.v];case"number":return[e];case"array":return e;default:return null}},w=function(e,t){var i=x(e),n=t?parseFloat(i&&i[0]):parseInt(i&&i[0],10),o=t?parseFloat(i&&i[1]):parseInt(i&&i[1],10);return isFinite(n)||(n=0),isFinite(o)||(o=n),{h:n,v:o}},T=function(e){if(e instanceof r.Z)return e.toString();if((0,d.Kn)(e)||Array.isArray(e))try{var t=JSON.stringify(e);return"{}"===t?e:t}catch(i){return e}return e},S=function(e){return e.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")},I=function(e){var t=(0,o.Z)().serverDecimalSeparator;return(0,d.$K)(e)&&(e=e.toString().replace(".",t)),e},E=function(){},D=function(){return(new a.BH).resolve().promise()},k=function(e,t,i){for(var n,o=[],r=!i,a=0;a<e.length;a++)n=!!t(e[a],a),n===r&&o.push(e[a]);return o},O=function(e,t,i){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!M(e[n],t[n],i+1))return!1;return!0},A=function(e,t,i,n){for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&!M(e[o],t[o],i+1,n))return!1;for(var r in t)if(!(r in e))return!1;return!0},P=3,M=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];e=(0,s.Ex)(e,!0),t=(0,s.Ex)(t,!0);var o=n?e===t:e==t;return!!(o||i>=P)||((0,d.Kn)(e)&&(0,d.Kn)(t)?A(e,t,i,n):!(!Array.isArray(e)||!Array.isArray(t))&&O(e,t,i))}},99915:function(e,t,i){"use strict";i.d(t,{k:function(){return a}});var n=i(50450),o=function(){},r=function(e){return"undefined"!==typeof console&&(0,n.mf)(console[e])?console[e].bind(console):o},a={info:r("info"),warn:r("warn"),error:r("error")};(function(){function e(e,t){if(!e)throw new Error(t)}})()},78852:function(e,t,i){"use strict";i.d(t,{Ex:function(){return x},OM:function(){return b},Zw:function(){return p},vb:function(){return v}});var n=i(33734),o=i(49784),r=i(63370),a=i(50450),s=i(63419),l=i(22866),d=l.Z.unwrap,u=l.Z.isWrapped,c=l.Z.assign,h=function(e){return e.replace(/\[/g,".").replace(/\]/g,"")},p=function(e){return h(e).split(".")},f=function(e,t,i){return i=i||{},_("this"===t?e:e[t],i)},g=function(e,t,i,o){if("this"===t)throw new n.Z.Error("E4016");var r=e[t];o.unwrapObservables&&u(r)?c(r,i):e[t]=i},m=function(e){return e=e||{},e.unwrapObservables=void 0===e.unwrapObservables||e.unwrapObservables,e};function _(e,t){return t.unwrapObservables?d(e):e}var v=function(e){if(arguments.length>1&&(e=[].slice.call(arguments)),!e||"this"===e)return function(e){return e};if("string"===typeof e){var t=p(e);return function(e,i){i=m(i);for(var n=i.functionsAsIs,o=("defaultValue"in i),r=_(e,i),s=0;s<t.length;s++){if(!r){if(null==r&&o)return i.defaultValue;break}var l=t[s];if(o&&(0,a.Kn)(r)&&!(l in r))return i.defaultValue;var d=_(r[l],i);!n&&(0,a.mf)(d)&&(d=d.call(r)),r=d}return r}}return Array.isArray(e)?y(e):(0,a.mf)(e)?e:void 0};function y(e){for(var t={},i=0,n=e.length;i<n;i++){var o=e[i];t[o]=v(o)}return function(e,i){var n;return(0,s.S6)(t,(function(t){var o=this(e,i);if(void 0!==o){for(var r=n||(n={}),a=t.split("."),s=a.length-1,l=0;l<s;l++){var d=a[l];d in r||(r[d]={}),r=r[d]}r[a[s]]=o}})),n}}var C=function(e,t,i,n){if((0,a.$K)(i))return i;var o={};return g(e,t,o,n),o},b=function(e){e=p(e||"this");var t=e.length-1;return function(i,n,o){o=m(o);var s=_(i,o);e.forEach((function(e,i){var l=f(s,e,o),d=!o.functionsAsIs&&(0,a.mf)(l)&&!u(l);i===t?o.merge&&(0,a.PO)(n)&&(!(0,a.$K)(l)||(0,a.PO)(l))?(l=C(s,e,l,o),(0,r.HR)(l,n,!1,!0)):d?s[e](n):g(s,e,n,o):(l=C(s,e,l,o),d&&(l=l.call(s)),s=l)}))}},x=function(e,t){return e instanceof Date?e.getTime():e&&e instanceof o.Z&&e.valueOf?e.valueOf():t||"string"!==typeof e?e:e.toLowerCase()}},14435:function(e,t,i){"use strict";i.d(t,{Z:function(){return ve}});var n=i(50450),o=i(94381),r=i(63419),a=i(38192),s={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,quarter:7776e6,year:31536e6};function l(e){return s[e]}var d=7,u=4,c=7,h=52,p=["millisecond","second","minute","hour","day","week","month","quarter","year"],f=function(e,t,i){var n=t.getTime()-e.getTime(),o=l(i)||1;return Math.floor(n/o)},g=function(e,t){var i=y(e);switch(i){case"millisecond":return"second";case"second":return"minute";case"minute":return"hour";case"hour":return"day";case"day":return t?"week":"month";case"week":return"month";case"month":return"quarter";case"quarter":case"year":return"year";default:return 0}},m=function(e){var t,i,n,o=["millisecond","second","minute","hour","day","month","year"],r={};for(t=o.length-1;t>=0;t--)n=o[t],i=Math.floor(e/l(n)),i>0&&(r[n+"s"]=i,e-=v(n,i));return r},_=function(e){var t=0;return(0,n.Kn)(e)&&(0,r.S6)(e,(function(e,i){t+=v(e.substr(0,e.length-1),i)})),(0,n.HD)(e)&&(t=v(e,1)),t};function v(e,t){return l(e)*t}function y(e){var t,i=-1;return(0,n.HD)(e)?e:(0,n.Kn)(e)?((0,r.S6)(e,(function(e,n){for(t=0;t<p.length;t++)n&&(e===p[t]+"s"||e===p[t])&&i<t&&(i=t)})),p[i]):""}var C={millisecond:"millisecond",second:"longtime",minute:"shorttime",hour:"shorttime",day:"day",week:"day",month:"month",quarter:"quarter",year:"year"};function b(e){return C[y(e)]||""}var x=function(e){return Math.floor(e/3)},w=function(e){return 3*x(e)};function T(e,t,i,n){e=new Date(e.getTime());var o,r,a=new Date(e.getTime()),s=y(t);switch(s){case"second":e=new Date(1e3*Math.floor(a.getTime()/1e3));break;case"minute":e=new Date(6e4*Math.floor(a.getTime()/6e4));break;case"hour":e=new Date(36e5*Math.floor(a.getTime()/36e5));break;case"year":e.setMonth(0);case"month":e.setDate(1);case"day":e.setHours(0,0,0,0);break;case"week":e=J(e,n||0),e.setHours(0,0,0,0);break;case"quarter":o=w(e.getMonth()),r=e.getMonth(),e.setDate(1),e.setHours(0,0,0,0),r!==o&&e.setMonth(o)}return i&&"hour"!==s&&"minute"!==s&&"second"!==s&&ce(a,e),e}function S(e){return T(e,"day")}var I=function(e){var t=S(e);return t.setDate(t.getDate()+1),new Date(t.getTime()-1)},E=function(e,t){var i=0,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()};return(0,r.S6)(n,(function(e,t){t&&i++})),0===i&&0!==pe(e,t)&&(n.hour=!0,i++),n.count=i,n};function D(e,t,i){var o=new Date(e.getTime()),r=(0,n.HD)(t)?N(t.toLowerCase()):(0,n.kE)(t)?m(t):t;return r.years&&o.setFullYear(o.getFullYear()+r.years*i),r.quarters&&o.setMonth(o.getMonth()+3*r.quarters*i),r.months&&o.setMonth(o.getMonth()+r.months*i),r.weeks&&o.setDate(o.getDate()+7*r.weeks*i),r.days&&o.setDate(o.getDate()+r.days*i),r.hours&&o.setTime(o.getTime()+36e5*r.hours*i),r.minutes&&o.setTime(o.getTime()+6e4*r.minutes*i),r.seconds&&o.setTime(o.getTime()+1e3*r.seconds*i),r.milliseconds&&o.setTime(o.getTime()+r.milliseconds*i),o}var k=function(e,t,i){var r=i?-1:1;return(0,n.J_)(e)?D(e,t,r):(0,o.zB)(e+t*r,t)},O=function(e,t,i){var o,r=[];r.push((0,n.J_)(e)?new Date(e.getTime()):e),o=e;while(o<t)o=k(o,i),r.push(o);return r},A=function(e,t){return"month"===e?me(t.getFullYear(),t.getMonth(),1):"year"===e?me(t.getFullYear(),0,t.getDate()):"decade"===e?me(G(t),t.getMonth(),t.getDate()):"century"===e?me(U(t),t.getMonth(),t.getDate()):void 0},P=function(e,t){return"month"===e?me(t.getFullYear(),t.getMonth(),B(t)):"year"===e?me(t.getFullYear(),11,t.getDate()):"decade"===e?me(G(t)+9,t.getMonth(),t.getDate()):"century"===e?me(U(t)+90,t.getMonth(),t.getDate()):void 0},M=function(e,t){var i=me(t.getFullYear(),t.getMonth(),1);return"month"===e?i:(i.setMonth(0),"year"===e||("decade"===e&&i.setFullYear(G(t)),"century"===e&&i.setFullYear(U(t))),i)},R=function(e,t){var i=new Date(t);return i.setDate(B(t)),"month"===e?i:(i.setMonth(11),i.setDate(B(i)),"year"===e||("decade"===e&&i.setFullYear(G(t)+9),"century"===e&&i.setFullYear(U(t)+99)),i)};function B(e){var t=me(e.getFullYear(),e.getMonth()+1,0);return t.getDate()}var V=function(e){switch(e){case"month":return"year";case"year":return"decade";case"decade":return"century"}},F=function(e){switch(e){case"century":return"decade";case"decade":return"year";case"year":return"month"}},H=function(e){var t=1;return"year"===e&&(t=12),"decade"===e&&(t=120),"century"===e&&(t=1200),t},L=function(e){var t=1;return"decade"===e&&(t=12),"century"===e&&(t=120),t};function N(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.weeks=1;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}function Z(e,t){return $(e,t)&&e.getDate()===t.getDate()}function $(e,t){return W(e,t)&&e.getMonth()===t.getMonth()}function W(e,t){return e&&t&&e.getFullYear()===t.getFullYear()}function K(e,t){return e&&t&&e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()}var z=function(e,t){if((0,n.$K)(e)&&(0,n.$K)(t)){var i=e.getFullYear()-e.getFullYear()%10,o=t.getFullYear()-t.getFullYear()%10;return e&&t&&i===o}},j=function(e,t){if((0,n.$K)(e)&&(0,n.$K)(t)){var i=e.getFullYear()-e.getFullYear()%100,o=t.getFullYear()-t.getFullYear()%100;return e&&t&&i===o}};function U(e){return e&&e.getFullYear()-e.getFullYear()%100}function G(e){return e&&e.getFullYear()-e.getFullYear()%10}var q=function(){return"yyyy/MM/dd"},Y=function(e){if((0,n.$K)(e))return me(e.getFullYear(),e.getMonth(),1)},X=function(e){if((0,n.$K)(e))return me(e.getFullYear(),e.getMonth()+1,0)};function J(e,t){var i=(e.getDay()-t+d)%d,n=new Date(e);return n.setDate(e.getDate()-i),n}function Q(e){return Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())}function ee(e){var t=Q(e)-Q(te(e.getFullYear()));return 1+Math.floor(t/l("day"))}function te(e){return new Date(e,0,1)}function ie(e){return new Date(e,11,31)}function ne(e,t){var i=e.getDay()-t+1;return i<=0&&(i+=d),i}function oe(e,t,i){var n=ne(te(e.getFullYear()),t),o=ne(ie(e.getFullYear()),t),r=d-n+1,a=Math.ceil((ee(e)-r)/7);switch(i){case"fullWeek":if(r===d&&a++,0===a){var s=ie(e.getFullYear()-1);return oe(s,t,i)}return a;case"firstDay":r>0&&a++;var l=n===c||o===c;return(a>h&&!l||54===a)&&(a=1),a;case"firstFourDays":r>3&&a++;var p=n===u||o===u;if(a>h&&!p&&(a=1),0===a){var f=ie(e.getFullYear()-1);return oe(f,t,i)}return a}}var re=function(e,t){var i=_e.getDatesInterval(e,t,"day"),n=new Date(e);return i>=6&&(n=new Date(n.setDate(n.getDate()+7))),n},ae=function(e,t,i,n){return"date"===n&&(t=t&&_e.correctDateWithUnitBeginning(t,"day"),i=i&&_e.correctDateWithUnitBeginning(i,"day"),e=e&&_e.correctDateWithUnitBeginning(e,"day")),ue(e,t,i)===e},se=function(e){var{firstMin:t,firstMax:i,secondMin:n,secondMax:o}=e;return t<=n&&n<=i||t>n&&t<o||t<o&&i>o},le=function(e){var t=Math.floor(e),i=e%1*60;return{hours:t,minutes:i}},de=function(e,t){var i=this.dateTimeFromDecimal(t),n=new Date(e);return(e.getHours()===i.hours&&e.getMinutes()<i.minutes||e.getHours()<i.hours)&&n.setHours(i.hours,i.minutes,0,0),n};function ue(e,t,i){var o=e;return(0,n.$K)(e)?((0,n.$K)(t)&&e<t&&(o=t),(0,n.$K)(i)&&e>i&&(o=i),o):e}function ce(e,t){if((0,n.$K)(e)){var i=t.getHours()-e.getHours();if(0!==i){var o=1===i||-23===i?-1:1,r=new Date(t.getTime()+36e5*o);(o>0||r.getDate()===t.getDate())&&t.setTime(r.getTime())}}}var he=function(e){var t=new Date(e.getTime());return t.setHours(t.getHours()+1),t.setMinutes(0),t};function pe(e,t){return 60*(t.getTimezoneOffset()-e.getTimezoneOffset())*1e3}var fe=function(e){return new Date(e)},ge=function(e,t,i){var n=[],o=new Date(e.getTime());while(o<t)n.push(new Date(o.getTime())),o=this.addInterval(o,i);return n},me=function(e){var t=new Date(...arguments);return t.setFullYear(e),t},_e={dateUnitIntervals:p,convertMillisecondsToDateUnits:m,dateToMilliseconds:_,getNextDateUnit:g,convertDateUnitToMilliseconds:v,getDateUnitInterval:y,getDateFormatByTickInterval:b,getDatesDifferences:E,correctDateWithUnitBeginning:T,trimTime:S,setToDayEnd:I,roundDateByStartDayHour:de,dateTimeFromDecimal:le,addDateInterval:D,addInterval:k,getSequenceByInterval:O,getDateIntervalByString:N,sameHoursAndMinutes:K,sameDate:Z,sameMonthAndYear:$,sameMonth:$,sameYear:W,sameDecade:z,sameCentury:j,getDifferenceInMonth:H,getDifferenceInMonthForCells:L,getFirstYearInDecade:G,getFirstDecadeInCentury:U,getShortDateFormat:q,getViewFirstCellDate:A,getViewLastCellDate:P,getViewDown:F,getViewUp:V,getLastMonthDay:B,getLastMonthDate:X,getFirstMonthDate:Y,getFirstWeekDate:J,getWeekNumber:oe,normalizeDateByWeek:re,getQuarter:x,getFirstQuarterMonth:w,dateInRange:ae,intervalsOverlap:se,roundToHour:he,normalizeDate:ue,getViewMinBoundaryDate:M,getViewMaxBoundaryDate:R,fixTimezoneGap:ce,getTimezonesDifference:pe,makeDate:fe,getDatesInterval:f,getDatesOfInterval:ge,createDateWithFullYear:me,sameView:function(e,t,i){return _e[(0,a._A)("same "+e)](t,i)}},ve=_e},22561:function(e,t,i){"use strict";var n=i(44432),o=i(5702),r=i(43589),a=i(50450),s="number",l="yyyy/MM/dd",d="yyyy/MM/dd HH:mm:ss",u=/^(\d{4,})(-)?(\d{2})(-)?(\d{2})(?:T(\d{2})(:)?(\d{2})?(:)?(\d{2}(?:\.(\d{1,3})\d*)?)?)?(Z|([+-])(\d{2})(:)?(\d{2})?)?$/,c=/^(\d{2}):(\d{2})(:(\d{2}))?$/,h=["","yyyy","","MM","","dd","THH","","mm","","ss",".SSS"],p=/^(\d{4})\/(\d{2})\/(\d{2})$/,f=3,g=function(e,t){var i;return(0,a.HD)(e)&&!t&&(i=v(e)),i||_(e)};function m(e){return+e||0}function _(e){var t=x(e)===l,i=!(0,a.J_)(e)&&Date.parse(e);if(!i&&t){var n=e.match(p);if(n){var o=new Date(m(n[1]),m(n[2]),m(n[3]));return o.setFullYear(m(n[1])),o.setMonth(m(n[2])-1),o.setDate(m(n[3])),o}}return(0,a.kE)(i)?new Date(i):e}function v(e){var t=e.match(u);if(!t)return t=e.match(c),t?new Date(0,0,0,m(t[1]),m(t[2]),m(t[4])):void 0;var i=m(t[1]),n=--t[3],o=t[5],r=0,a=0,s=e=>(i<100&&e.setFullYear(i),e);r=m(t[14]),a=m(t[16]),"-"===t[13]&&(r=-r,a=-a);var l=m(t[6])-r,d=m(t[8])-a,h=m(t[10]),p=function(e){return e=e||"",m(e)*Math.pow(10,f-e.length)}(t[11]);return t[12]?s(new Date(Date.UTC(i,n,o,l,d,h,p))):s(new Date(i,n,o,l,d,h,p))}var y=function(e,t){var i=e.match(u),n="";if(!i)return i=e.match(c),i?i[3]?"HH:mm:ss":"HH:mm":void 0;for(var o=1;o<h.length;o++)i[o]&&(n+=h[o]||i[o]);return"Z"===i[12]&&(n+="'Z'"),i[14]&&(i[15]?n+="xxx":i[16]?n+="xx":n+="x"),n},C=function(e){return"number"===typeof e?new Date(e):g(e,!(0,n.Z)().forceIsoDateParsing)},b=function(e,t){return t?(0,a.J_)(e)?t===s?e&&e.valueOf?e.valueOf():null:(0,o.P)(t,r.Z)(e):null:e},x=function(e){return"number"===typeof e?s:(0,a.HD)(e)?((0,n.Z)().forceIsoDateParsing&&(t=y(e)),t||(e.indexOf(":")>=0?d:l)):e?null:void 0;var t};t["Z"]={dateParser:g,deserializeDate:C,serializeDate:b,getDateSerializationFormat:x}},79303:function(e,t,i){"use strict";i.d(t,{BH:function(){return u},gx:function(){return c},p4:function(){return l}});var n=i(50450),o=i(44099),r=i(94795),a=[{method:"resolve",handler:"done",state:"resolved"},{method:"reject",handler:"fail",state:"rejected"},{method:"notify",handler:"progress"}],s=function(){var e=this;this._state="pending",this._promise={},a.forEach(function(t){var i=t.method;this[i+"Callbacks"]=(0,r["default"])(),this[i]=function(){return this[i+"With"](this._promise,arguments)}.bind(this),this._promise[t.handler]=function(t){if(!t)return this;var n=e[i+"Callbacks"];return n.fired()?t.apply(e[i+"Context"],e[i+"Args"]):n.add(function(e,i){t.apply(e,i)}.bind(this)),this}}.bind(this)),this._promise.always=function(e){return this.done(e).fail(e)},this._promise.catch=function(e){return this.then(null,e)},this._promise.then=function(e,t){var i=new s;return["done","fail"].forEach(function(o){var r="done"===o?e:t;this[o]((function(){if(r){var e=r&&r.apply(this,arguments);(0,n.EY)(e)?e.done(i.resolve).fail(i.reject):(0,n.tI)(e)?e.then(i.resolve,i.reject):i.resolve.apply(this,(0,n.$K)(e)?[e]:arguments)}else i["done"===o?"resolve":"reject"].apply(this,arguments)}))}.bind(this)),i.promise()},this._promise.state=function(){return e._state},this._promise.promise=function(t){return t?(0,o.l)(t,e._promise):e._promise},this._promise.promise(this)};function l(e,t){if((0,n.EY)(e))return e;if((0,n.tI)(e)){var i=new s;return e.then((function(){i.resolveWith.apply(i,[t].concat([[].slice.call(arguments)]))}),(function(){i.rejectWith.apply(i,[t].concat([[].slice.call(arguments)]))})),i}return(new s).resolveWith(t,[e])}a.forEach((function(e){var t=e.method,i=e.state;s.prototype[t+"With"]=function(e,n){var o=this[t+"Callbacks"];return"pending"===this.state()&&(this[t+"Args"]=n,this[t+"Context"]=e,i&&(this._state=i),o.fire(e,n)),this}}));var d=function(){if(1===arguments.length)return l(arguments[0]);for(var e=[].slice.call(arguments),t=[],i=0,o=new s,r=function(n){return function(r){t[n]=this,e[n]=arguments.length>1?[].slice.call(arguments):r,i++,i===e.length&&o.resolveWith(t,e)}},a=0;a<e.length;a++)(0,n.EY)(e[a])?e[a].promise().done(r(a)).fail(o.reject):i++;return i===e.length&&o.resolveWith(t,e),o.promise()};function u(){return new s}function c(){return d.apply(this,arguments)}},27154:function(e,t,i){"use strict";i.d(t,{Z:function(){return s}});var n=i(44099),o=i(50450),r=i(63419),a=i(49784);function s(e){var t=a.Z.inherit(e),i=t,s=new i(e),l={},d=function(t,i){(0,r.S6)(t,(function(t){(0,o.mf)(s[t])?!i&&e[t]||(e[t]=function(){return s[t].apply(e,arguments)}):(i&&(l[t]=e[t]),e[t]=s[t])}))};return d(e,!0),e.inject=function(e){i=i.inherit(e),s=new i,d(e)},e.resetInjection=function(){(0,n.l)(e,l),i=t,s=new t},e}},25445:function(e,t,i){"use strict";i.d(t,{H_:function(){return p},Li:function(){return h},Ls:function(){return c},M3:function(){return d},MO:function(){return u},Zx:function(){return f},al:function(){return y},dL:function(){return v},l5:function(){return m},r3:function(){return g}});var n=i(71389),o=i(57678),r=i(63419),a=i(50450),s=i(18274),l=(0,s.Jj)(),d=()=>{var e,t=n["default"].getActiveElement();t&&t!==n["default"].getBody()&&(null===(e=t.blur)||void 0===e||e.call(t))},u=()=>{var e=l.getSelection();if(e&&"Caret"!==e.type)if(e.empty)e.empty();else if(e.removeAllRanges)try{e.removeAllRanges()}catch(t){}},c=(e,t)=>{var i=(0,o.Z)(e),n=(0,o.Z)(t);if(i[0]===n[0])return i[0];for(var r=i.parents(),a=n.parents(),s=Math.min(r.length,a.length),l=-s;l<0;l++)if(r.get(l)===a.get(l))return r.get(l)},h=e=>{e=(0,o.Z)(e);var t=e.length&&e.filter((function(){var e=(0,o.Z)(this);return e.is("script[type]")&&e.attr("type").indexOf("script")<0}));return t.length?t.eq(0).html():(e=(0,o.Z)("<div>").append(e),e.html())},p=e=>{var t=(0,a.$K)(e)&&(e.nodeType||(0,a.ZU)(e))?(0,o.Z)(e):(0,o.Z)("<div>").html(e).contents();return 1===t.length&&(t.is("script")?t=p(t.html().trim()):t.is("table")&&(t=t.children("tbody").contents())),t},f=(e,t)=>{var i=e.originalEvent&&e.originalEvent.clipboardData||l.clipboardData;if(!t)return i&&i.getData("Text");i&&i.setData("Text",t)},g=(e,t)=>!!t&&(n["default"].isTextNode(t)&&(t=t.parentNode),n["default"].isDocument(e)?e.documentElement.contains(t):(0,a.FJ)(e)?g(e.document,t):e.contains?e.contains(t):!!(t.compareDocumentPosition(e)&t.DOCUMENT_POSITION_CONTAINS)),m=(e,t,i)=>{var n=l.getComputedStyle((0,o.Z)(e).get(0)),r=i&&i.includePaddings;return(0,o.Z)("<div>").text(t).css({fontStyle:n.fontStyle,fontVariant:n.fontVariant,fontWeight:n.fontWeight,fontSize:n.fontSize,fontFamily:n.fontFamily,letterSpacing:n.letterSpacing,border:n.border,paddingTop:r?n.paddingTop:"",paddingRight:r?n.paddingRight:"",paddingBottom:r?n.paddingBottom:"",paddingLeft:r?n.paddingLeft:"",visibility:"hidden",whiteSpace:"pre",position:"absolute",float:"left"})},_=(e,t)=>(t&&n["default"].insertElement(e.parentNode,t,e),e),v=(e,t)=>{if(t&&t[0])return t.is(e)?e:((0,r.S6)(t,((t,i)=>{_(e[0],i)})),e.remove(),t)},y=e=>{var t=null===e||void 0===e?void 0:e.get(0),i=null===t||void 0===t?void 0:t.getRootNode().host;return!!(0,o.Z)(i||t).closest((0,s.Jj)().document).length}},2695:function(e,t,i){"use strict";i.d(t,{Z:function(){return l}});var n=i(44099),o=i(99915),r=i(73386),a=i(54978),s="http://js.devexpress.com/error/"+a.i.split(".").slice(0,2).join("_")+"/";function l(e,t){var i={ERROR_MESSAGES:(0,n.l)(t,e),Error:function(){return u([].slice.call(arguments))},log:function(e){var t="log";/^E\d+$/.test(e)?t="error":/^W\d+$/.test(e)&&(t="warn"),o.k[t]("log"===t?e:a([].slice.call(arguments)))}};function a(e){var t=e[0];return e=e.slice(1),d(t,l(t,e))}function l(e,t){return t=[i.ERROR_MESSAGES[e]].concat(t),r.WU.apply(this,t).replace(/\.*\s*?$/,"")}function d(e,t){return r.WU.apply(this,["{0} - {1}. See:\n{2}",e,t,c(e)])}function u(e){var t=e[0];e=e.slice(1);var i=l(t,e),o=c(t),r=d(t,i);return(0,n.l)(new Error(r),{__id:t,__details:i,url:o})}function c(e){return s+e}return i}},44099:function(e,t,i){"use strict";i.d(t,{l:function(){return r},x:function(){return o}});var n=i(50450),o=function(e,t,i){for(var n in e=e||{},t)if(Object.prototype.hasOwnProperty.call(t,n)){var o=t[n];n in e&&!i||(e[n]=o)}return e},r=function e(t){t=t||{};var i=1,o=!1;for("boolean"===typeof t&&(o=t,t=arguments[1]||{},i++);i<arguments.length;i++){var r=arguments[i];if(null!=r)for(var a in r){var s=t[a],l=r[a],d=!1,u=void 0;"__proto__"!==a&&"constructor"!==a&&t!==l&&(o&&l&&((0,n.PO)(l)||(d=Array.isArray(l)))?(u=d?s&&Array.isArray(s)?s:[]:s&&(0,n.PO)(s)?s:{},t[a]=e(o,u,l)):void 0!==l&&(t[a]=l))}}return t}},8825:function(e,t,i){"use strict";i.d(t,{N:function(){return s},r:function(){return a}});var n=i(71389),o=/<([a-z][^/\0>\x20\t\r\n\f]+)/i,r={default:{tagsCount:0,startTags:"",endTags:""},thead:{tagsCount:1,startTags:"<table>",endTags:"</table>"},td:{tagsCount:3,startTags:"<table><tbody><tr>",endTags:"</tr></tbody></table>"},col:{tagsCount:2,startTags:"<table><colgroup>",endTags:"</colgroup></table>"},tr:{tagsCount:2,startTags:"<table><tbody>",endTags:"</tbody></table>"}};r.tbody=r.colgroup=r.caption=r.tfoot=r.thead,r.th=r.td;var a=function(e){if("string"!==typeof e)return null;var t=n["default"].createDocumentFragment(),i=t.appendChild(n["default"].createElement("div")),a=o.exec(e),s=a&&a[1].toLowerCase(),l=r[s]||r.default;i.innerHTML=l.startTags+e+l.endTags;for(var d=0;d<l.tagsCount;d++)i=i.lastChild;return[...i.childNodes]},s=function(e){var t=o.exec(e);return t&&t[1]in r}},38192:function(e,t,i){"use strict";i.d(t,{GK:function(){return h},H0:function(){return s},MI:function(){return u},OI:function(){return d},_A:function(){return l}});var n=i(63419),o=function(e){return void 0===e||null===e?"":String(e)},r=function(e){return o(e).charAt(0).toUpperCase()+e.substr(1)},a=function(e){return o(e).replace(/([a-z\d])([A-Z])/g,"$1 $2").split(/[\s_-]+/)},s=function(e){return(0,n.UI)(a(e),(function(e){return e.toLowerCase()})).join("-")},l=function(e,t){return(0,n.UI)(a(e),(function(e,i){return e=e.toLowerCase(),(t||i>0)&&(e=r(e)),e})).join("")},d=function(e){return r(s(e).replace(/-/g," "))},u=function(e){return(0,n.UI)(a(e),(function(e){return r(e.toLowerCase())})).join(" ")},c=["0","1","2","3","4","5","6","7","8","9"],h=function(e){var t,i,n=[],o=!1,r=!1;for(t=0;t<e.length;t++)i=e.charAt(t),r=i===i.toUpperCase()&&"-"!==i&&")"!==i&&"/"!==i||i in c,"_"===i||"."===i?(i=" ",r=!0):0===t?(i=i.toUpperCase(),r=!0):!o&&r&&n.length>0&&n.push(" "),n.push(i),o=r;return n.join("")}},63419:function(e,t,i){"use strict";i.d(t,{S6:function(){return o},UI:function(){return n},iY:function(){return r}});var n=(e,t)=>{if(Array.isArray(e))return e.map(t);var i=[];for(var n in e)i.push(t(e[n],n));return i},o=(e,t)=>{if(e){if("length"in e){for(var i=0;i<e.length;i++)if(!1===t.call(e[i],i,e[i]))break}else for(var n in e)if(!1===t.call(e[n],n,e[n]))break;return e}},r=(e,t)=>{if(e&&"length"in e&&0!==e.length)for(var i=e.length-1;i>=0;i--)if(!1===t.call(e[i],i,e[i]))break}},94381:function(e,t,i){"use strict";i.d(t,{LO:function(){return f},Ow:function(){return d},RF:function(){return g},Xx:function(){return o},Z2:function(){return a},n$:function(){return r},zB:function(){return c}});var n=i(50450),o=function(e){return 0===e?0:e/Math.abs(e)},r=function(e,t,i){var n=!t&&0!==t,o=!i&&0!==i;return n&&(t=o?e:Math.min(e,i)),o&&(i=n?e:Math.max(e,t)),Math.min(Math.max(e,t),i)},a=function(e,t,i){return e>=t&&e<=i};function s(e){return Math.abs(parseInt(e.toExponential().split("e")[1]))}function l(e){var t=e.toExponential().split("e"),i=parseFloat(t[0]),n=parseInt(t[1]);return{exponent:n,mantissa:i}}function d(e,t){var i=l(e);return parseFloat("".concat(i.mantissa,"e").concat(i.exponent+t))}function u(){return"0.000300"!==3e-4.toPrecision(3)}function c(e,t){var i,o=h(t||0)+2,r=e.toString().split("."),a=e,l=Math.abs(e),d=(0,n.Cp)(e),c=l>1?10:0;return 1===r.length?e:(d||((0,n.Cp)(t)&&(o=r[0].length+s(t)),e=l,e=e-Math.floor(e)+c),o=u()&&s(e)>6||o>7?15:7,d||(i=parseFloat(e.toPrecision(o)).toString().split("."),i[0]!==c.toString())?parseFloat(a.toPrecision(o)):parseFloat(r[0]+"."+i[1]))}function h(e){var t=e.toString();if(t.indexOf(".")<0)return 0;var i=t.split("."),n=i[1].indexOf("e");return n>=0?n:i[1].length}function p(e,t){if(e<0&&t%2!==1)return NaN;var i=Math.pow(Math.abs(e),1/t);return t%2===1&&e<0?-i:i}function f(e,t,i,n){if(Math.abs(e)<1e-8){if(e=t,t=i,i=n,Math.abs(e)<1e-8)return e=t,t=i,Math.abs(e)<1e-8?[]:[-t/e];var o=t*t-4*e*i;return Math.abs(o)<1e-8?[-t/(2*e)]:o>0?[(-t+Math.sqrt(o))/(2*e),(-t-Math.sqrt(o))/(2*e)]:[]}var r,a,s=(3*e*i-t*t)/(3*e*e),l=(2*t*t*t-9*e*t*i+27*e*e*n)/(27*e*e*e);if(Math.abs(s)<1e-8)r=[p(-l,3)];else if(Math.abs(l)<1e-8)r=[0].concat(s<0?[Math.sqrt(-s),-Math.sqrt(-s)]:[]);else{var d=l*l/4+s*s*s/27;if(Math.abs(d)<1e-8)r=[-1.5*l/s,3*l/s];else if(d>0)a=p(-l/2-Math.sqrt(d),3),r=[a-s/(3*a)];else{a=2*Math.sqrt(-s/3);var u=Math.acos(3*l/s/a)/3,c=2*Math.PI/3;r=[a*Math.cos(u),a*Math.cos(u-c),a*Math.cos(u-2*c)]}}for(var h=0;h<r.length;h++)r[h]-=t/(3*e);return r}function g(e){return Math.trunc?Math.trunc(e):e>0?Math.floor(e):Math.ceil(e)}},63370:function(e,t,i){"use strict";i.d(t,{HR:function(){return l},d9:function(){return r},jS:function(){return a}});var n=i(50450),o=i(22866),r=function(){function e(){}return function(t){return e.prototype=t,new e}}(),a=function(e,t){var i,o,r=[];for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.push(i);for(r.sort((function(e,t){var i=(0,n.kE)(e),o=(0,n.kE)(t);return i&&o?e-t:i&&!o?-1:!i&&o?1:e<t?-1:e>t?1:0})),o=0;o<r.length;o++)i=r[o],t(i,e[i])},s=function(e,t,i,n){!n&&o.Z.isWrapped(e[t])?o.Z.assign(e[t],i):e[t]=i},l=function e(t,i,o,r){var a,l;for(var d in i)if(a=t[d],l=i[d],"__proto__"!==d&&"constructor"!==d&&t!==l){if((0,n.PO)(l)){var u=o?(0,n.Kn)(a):(0,n.PO)(a);l=e(u?a:{},l,o,r)}void 0!==l&&a!==l&&s(t,d,l,r)}return t}},37063:function(e,t,i){"use strict";i.d(t,{Bt:function(){return p},nf:function(){return h},u2:function(){return c}});var n=i(86403),o=i(52376),r=i(50450),a=i(14324),s="dxComponents",l="dxPrivateComponent",d=new WeakMap,u=0,c=function(e,t){if(!(0,r.$K)(t)){if(!d.has(e)){var i=l+u++;return d.set(e,i),i}return d.get(e)}d.set(e,t)};function h(e,t,i){var r=(0,n.aT)(e.get(0)),l=c(t.constructor);r[l]=t,i&&o.Z.one(e,a.x,(function(){i.call(t)})),r[s]||(r[s]=[]),r[s].push(l)}function p(e,t){var i=c(t);return(0,n.aT)(e.get(0),i)}},90268:function(e,t,i){"use strict";var n=i(71389),o=i(27154),r=i(18274),a=i(48714),s=[],l=(0,a.Z)((()=>{var e=n["default"].listen(n["default"].getDocument(),"DOMContentLoaded",(()=>{d.fire(),e()}))})),d={add:e=>{var t=(0,r.Ym)();t&&"loading"!==n["default"].getReadyState()?e():(s.push(e),t&&l())},fire:()=>{s.forEach((e=>e())),s=[]}};t["Z"]=(0,o.Z)(d)},20605:function(e,t,i){"use strict";var n=i(18274),o=i(71389),r=i(94795),a=i(90268),s=i(48714),l=function(){var e,t=(0,r["default"])(),i=t.add,l=t.remove;if(!(0,n.Ym)())return t;var d,u=function(){var e=(0,n.Jj)();return{width:e.innerWidth,height:e.innerHeight}},c=function(){var i,n=u();n.width===e.width&&n.height===e.height||(n.width===e.width&&(i="height"),n.height===e.height&&(i="width"),e=n,t.fire(i))},h=(0,s.Z)((function(){e=u()}));return t.add=function(){var e=i.apply(t,arguments);return h(),a.Z.add((function(){!d&&t.has()&&(d=o["default"].listen((0,n.Jj)(),"resize",c))})),e},t.remove=function(){var e=l.apply(t,arguments);return!t.has()&&d&&(d(),d=void 0),e},t}();t["Z"]=l},99163:function(e,t,i){"use strict";i.d(t,{R:function(){return l},f:function(){return c}});var n="dx-",o=null;function r(e){try{return new CSSStyleSheet}catch(i){var t=e.ownerDocument.createElement("style");return e.appendChild(t),t.sheet}}function a(e,t,i){for(var n=0;n<t.length;n++){var o=t[n];try{for(var r=0;r<o.cssRules.length;r++)s(e,o.cssRules[r],i)}catch(a){}}}function s(e,t,i){var o,r,a,s,l,d,u=i||(null===(o=t.selectorText)||void 0===o?void 0:o.includes(n))||(null===(r=t.cssRules)||void 0===r||null===(a=r[0])||void 0===a||null===(s=a.selectorText)||void 0===s?void 0:s.includes(n))||(null===(l=t.name)||void 0===l?void 0:l.startsWith(n))||"DXIcons"===(null===(d=t.style)||void 0===d?void 0:d.fontFamily);u&&e.insertRule(t.cssText,e.cssRules.length)}function l(e){var t,i=e.get(0),n=null===(t=i.getRootNode)||void 0===t?void 0:t.call(i);if(null!==n&&void 0!==n&&n.host){o||(o=r(n),a(o,i.ownerDocument.styleSheets,!1));var s=r(n);a(s,n.styleSheets,!0),n.adoptedStyleSheets=[o,s]}}function d(e,t,i){var n=e.getBoundingClientRect();return n&&t>=n.left&&t<n.right&&i>=n.top&&i<n.bottom}function u(){var e=0,t=[];return{push(e){return t.push(e),this},shift(){return e++,t[e-1]},get length(){return t.length-e},get items(){return t}}}function c(e,t,i){var n=u().push(i);while(n.length)for(var o=n.shift(),r=0;r<o.childNodes.length;r++){var a=o.childNodes[r];a.nodeType===Node.ELEMENT_NODE&&d(a,e,t)&&"none"!==getComputedStyle(a).pointerEvents&&n.push(a)}var s=n.items.reverse();return s.pop(),s}},30057:function(e,t,i){"use strict";i.d(t,{$D:function(){return x},C_:function(){return V},Cr:function(){return E},Ns:function(){return O},QQ:function(){return D},Xt:function(){return M},Y_:function(){return k},cl:function(){return I},dz:function(){return S},eK:function(){return C},fA:function(){return R},n2:function(){return y},os:function(){return F},qt:function(){return P},sQ:function(){return b},zp:function(){return A}});var n=i(18274),o=i(71389),r=i(50450),a=(0,n.Jj)(),s=["auto","none","inherit","initial"],l=function(e,t){var i=0;return t.forEach((function(t){i+=parseFloat(e[t])||0})),i},d=function(e,t){var i="width"===e?"Left":"Top",n="width"===e?"Right":"Bottom";return{padding:l(t,["padding"+i,"padding"+n]),border:l(t,["border"+i+"Width","border"+n+"Width"]),margin:l(t,["margin"+i,"margin"+n])}},u=function(e){var t,i=(null===e||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView)||a;return i.getComputedStyle&&i.getComputedStyle(e)},c=function(e,t,i,n){var o;return(null===t||void 0===t?void 0:t[i])||(null===(o=e.style)||void 0===o?void 0:o[i])||n},h={content:0,padding:1,border:2,margin:3,"content-box":0,"border-box":2},p={width:["left","right"],height:["top","bottom"]};function f(e,t,i,n){var o=(e,t,i)=>parseFloat(c(e,t,i,"0"))||0,r="border"===i?"-width":"";return o(e,n,"".concat(i,"-").concat(p[t][0]).concat(r))+o(e,n,"".concat(i,"-").concat(p[t][1]).concat(r))}var g=function(e,t,i){var n="width"===t?"offsetWidth":"offsetHeight",o=u(e),r=c(e,o,t);""!==r&&"auto"!==r||(r=e[n]),r=parseFloat(r)||0;var a=c(e,o,"boxSizing","content-box"),s=i||a,l=h[s],d=h[a];if(void 0===l||void 0===d)throw new Error;if(d===l)return r;var p=Math.sign(l-d),g=!1,m=!1,_=!1,v=!1;1===p&&(l+=1,d+=1);for(var y=d;y!==l;y+=p)switch(y){case h.content:break;case h.padding:g=p*f(e,t,"padding",o);break;case h.border:m=p*f(e,t,"border",o);break;case h.margin:_=p*f(e,t,"margin",o)}if(g||m){var C=(!1===g?p*f(e,t,"padding",o):g)+(!1===m?p*f(e,t,"border",o):m);v=p*Math.max(0,Math.floor(e[n]-r-p*C))||0}return r+_+g+m+v},m=function(e){return(0,r.FJ)(e)?e.innerHeight:e.offsetHeight},_=function(e,t){return e.indexOf("px")>0?e=parseInt(e.replace("px","")):e.indexOf("%")>0?e=parseInt(e.replace("%",""))*m(t)/100:isNaN(e)?e.indexOf("vh")>0&&(e=a.innerHeight/100*parseInt(e.replace("vh",""))):e=parseInt(e),e},v=function(e,t,i){if(!e)return null;if(s.indexOf(e)>-1)return t?null:e;if((0,r.HD)(e)&&(e=_(e,i)),(0,r.kE)(e))return Math.max(0,e+t);var n=t<0?" - ":" ";return"calc("+e+n+Math.abs(t)+"px)"},y=function(e,t,i){var n=v(e,t,i);return null!==n?n:"none"},C=function(e,t,i){var n=v(e,t,i);return null!==n?n:0},b=function(e,t){if(!e)return 0;var i=d("height",a.getComputedStyle(e));return i.padding+i.border+(t?i.margin:0)},x=function(e){if(e){var t=e.getBoundingClientRect();if(t.height)return t.height}return 0},w={getWidth:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return T("width",...t)},setWidth:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return T("width",...t)},getHeight:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return T("height",...t)},setHeight:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return T("height",...t)},getOuterWidth:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return T("outerWidth",...t)},setOuterWidth:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return T("outerWidth",...t)},getOuterHeight:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return T("outerHeight",...t)},setOuterHeight:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return T("outerHeight",...t)},getInnerWidth:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return T("innerWidth",...t)},setInnerWidth:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return T("innerWidth",...t)},getInnerHeight:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return T("innerHeight",...t)},setInnerHeight:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return T("innerHeight",...t)}};function T(e,t,i){return 2===arguments.length?B(t,e):B(t,e,i)}var S=e=>w.getWidth(e),I=(e,t)=>w.setWidth(e,t),E=e=>w.getHeight(e),D=(e,t)=>w.setHeight(e,t),k=(e,t)=>w.getOuterWidth(e,t||!1),O=(e,t)=>w.setOuterWidth(e,t),A=(e,t)=>w.getOuterHeight(e,t||!1),P=(e,t)=>w.setOuterHeight(e,t),M=e=>w.getInnerWidth(e),R=e=>w.getInnerHeight(e),B=function e(t,i,n){var a=i.toLowerCase().indexOf("width")>=0?"Width":"Height",s=a.toLowerCase(),l=0===i.indexOf("outer"),c=0===i.indexOf("inner"),h=2===arguments.length||"boolean"===typeof n;if((0,r.ZU)(t)){if(t.length>1&&!h){for(var p=0;p<t.length;p++)e(t[p],i,n);return}t=t[0]}if(t){if((0,r.FJ)(t))return l?t["inner"+a]:o["default"].getDocumentElement()["client"+a];if(o["default"].isDocument(t)){var f=o["default"].getDocumentElement(),m=o["default"].getBody();return Math.max(m["scroll"+a],m["offset"+a],f["scroll"+a],f["offset"+a],f["client"+a])}if(h){var _="content";return l&&(_=n?"margin":"border"),c&&(_="padding"),g(t,s,_)}if((0,r.kE)(n)){var v=u(t),y=d(s,v),C="border-box"===v.boxSizing;n=Number(n),l?n-=C?0:y.border+y.padding:c?n+=C?y.border:-y.padding:C&&(n+=y.border+y.padding)}return n+=(0,r.kE)(n)?"px":"",o["default"].setStyle(t,s,n),null}},V=e=>(0,r.FJ)(e)?e:e.defaultView,F=e=>{if(!e.getClientRects().length)return{top:0,left:0};var t=e.getBoundingClientRect(),i=V(e.ownerDocument),n=e.ownerDocument.documentElement;return{top:t.top+i.pageYOffset-n.clientTop,left:t.left+i.pageXOffset-n.clientLeft}}},65012:function(e,t,i){"use strict";i.d(t,{y:function(){return r}});var n=i(18274),o=(0,n.Jj)(),r=function(){var e;try{e=o.sessionStorage}catch(t){}return e}},73386:function(e,t,i){"use strict";i.d(t,{$b:function(){return a},HZ:function(){return o},WU:function(){return s},xb:function(){return l}});var n=i(50450),o=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;")}}(),r=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}},a=function(e){var t=r(e),i=parseInt(t&&t[0],10),n=parseInt(t&&t[1],10),o=parseInt(t&&t[2],10),a=parseInt(t&&t[3],10);return isFinite(i)||(i=0),isFinite(n)||(n=i),isFinite(o)||(o=i),isFinite(a)||(a=n),{top:n,right:o,bottom:a,left:i}};function s(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];return(0,n.mf)(e)?e(...i):(i.forEach(((t,i)=>{(0,n.HD)(t)&&(t=t.replace(/\$/g,"$$$$"));var o=new RegExp("\\{"+i+"\\}","gm");e=e.replace(o,t)})),e)}var l=function(){var e=/\s/g;return function(t){return!t||!t.replace(e,"")}}()},19071:function(e,t,i){"use strict";i.d(t,{Hj:function(){return c},QQ:function(){return _},bh:function(){return f},cl:function(){return m},gC:function(){return h}});var n=i(38192),o=i(48714),r=i(50450),a=i(71389),s=["","Webkit","Moz","O","Ms"],l={"":"",Webkit:"-webkit-",Moz:"-moz-",O:"-o-",ms:"-ms-"},d=(0,o.Z)((function(){return a["default"].createElement("dx").style})),u=function(e,t){var i;e=(0,n._A)(e,!0);for(var o=0,r=s.length;o<r;o++){var a=s[o],l=a+e,d=(0,n._A)(l);if(i=t(d,a),void 0===i&&(i=t(l,a)),void 0!==i)break}return i||""},c=function(e){if(e in d())return e;var t=e;e=e.charAt(0).toUpperCase()+e.substr(1);for(var i=1;i<s.length;i++){var n=s[i].toLowerCase()+e;if(n in d())return n}return t},h=function(e){return u(e,(function(e,t){if(e in d())return l[t]}))},p=["fillOpacity","columnCount","flexGrow","flexShrink","fontWeight","lineHeight","opacity","zIndex","zoom"],f=function(e,t){return(0,r.kE)(t)&&-1===p.indexOf(e)&&(t+="px"),t},g=function(e,t,i){if(e){i=(0,r.kE)(i)?i+="px":i;for(var n=0;n<e.length;++n)e[n].style[t]=i}},m=function(e,t){g(e,"width",t)},_=function(e,t){g(e,"height",t)}},230:function(e,t,i){"use strict";i.r(t),i.d(t,{animation:function(){return b},inputType:function(){return h},nativeScrolling:function(){return x},pointerEvents:function(){return m},styleProp:function(){return s.Hj},stylePropPrefix:function(){return s.gC},supportProp:function(){return u},touch:function(){return v},touchEvents:function(){return g},transition:function(){return y},transitionEndEventName:function(){return C}});var n=i(71389),o=i(48714),r=i(18274),a=i(30390),s=i(19071),{maxTouchPoints:l}=(0,r.jW)(),d={webkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"},u=function(e){return!!(0,s.Hj)(e)},c=function(){var{platform:e,mac:t}=a.Z.real(),i="ios"===e||"android"===e||t;return i},h=function(e){if("text"===e)return!0;var t=n["default"].createElement("input");try{return t.setAttribute("type",e),t.value="wrongValue",!t.value}catch(i){return!1}},p=function(e,t){return(e("ontouchstart")||!!t)&&!e("callPhantom")},f=function(e){return e("PointerEvent")},g=p(r.l$,l),m=f(r.l$),_=!!l,v=g||m&&_,y=(0,o.Z)((function(){return u("transition")})),C=(0,o.Z)((function(){return d[(0,s.Hj)("transition")]})),b=(0,o.Z)((function(){return u("animation")})),x=c()},5491:function(e,t,i){"use strict";i.d(t,{t0:function(){return O},gi:function(){return D},hK:function(){return x},Wl:function(){return S},ZE:function(){return w},TM:function(){return E},v_:function(){return I}});var n,o=i(44432),r=i(30390),a=i(33734),s=i(57678),l=i(20085),d=i(10045),u=i(56782),c=i(25445),h=i(50450),p={};function f(e,t){p[e]=t}function g(e){if((0,h.HD)(e)){if(n=p[e],!n)throw a.Z.Error("E0020",e)}else n=e}function m(){return n}f("jquery-tmpl",{compile:e=>(0,c.Li)(e),render:(e,t)=>jQuery.tmpl(e,t)}),f("jsrender",{compile:e=>(jQuery||jsrender).templates((0,c.Li)(e)),render:(e,t)=>e.render(t)}),f("mustache",{compile:e=>(0,c.Li)(e),render:(e,t)=>Mustache.render(e,t)}),f("hogan",{compile:e=>Hogan.compile((0,c.Li)(e)),render:(e,t)=>e.render(t)}),f("underscore",{compile:e=>_.template((0,c.Li)(e)),render:(e,t)=>e(t)}),f("handlebars",{compile:e=>Handlebars.compile((0,c.Li)(e)),render:(e,t)=>e(t)}),f("doT",{compile:e=>doT.template((0,c.Li)(e)),render:(e,t)=>e(t)}),f("default",{compile:e=>(0,c.H_)(e),render:(e,t,i)=>e.clone()}),g("default");class v extends u.S{constructor(e){super(),this._element=e}_renderCore(e){var t=e.transclude;return t||this._compiledTemplate||(this._compiledTemplate=m().compile(this._element)),(0,s.Z)("<div>").append(t?this._element:m().render(this._compiledTemplate,e.model,e.index)).contents()}source(){return(0,s.Z)(this._element).clone()}}var y=i(37045),C=i(72264),b=i(44099),x=(e,t)=>{var i=(0,s.Z)(e).contents().filter("[".concat("data-options",'*="').concat(t,'"]'));return[].slice.call(i).map((e=>{var i=(0,s.Z)(e).attr("data-options")||"";return{element:e,options:(0,o.Z)().optionsParser(i)[t]}})).filter((e=>!!e.options))},w=e=>{var t=(0,y.vM)(e,(e=>e.options.name));if(t[void 0])throw a.Z.Error("E0023");var i={};return Object.keys(t).forEach((e=>{var n,o=null===(n=(0,C.U3)(r.Z.current(),t[e],(e=>e.options))[0])||void 0===n?void 0:n.element;o&&(i[e]=o)})),i},T=e=>{var t=e.render.bind(e);return(0,b.l)({},e,{render(e){var i=t(e);return e&&e.onRendered&&e.onRendered(),i}})},S=e=>{var t=[];return"model"in e&&t.push(e.model),"index"in e&&t.push(e.index),t.push(e.container),t},I=e=>"string"===typeof e?(0,c.H_)(e):e,E=e=>(0,h.ZU)(e)&&e[0]||e,D=e=>new v(e),k=(e,t,i,n)=>{var o=null;return n&&-1!==n.indexOf(e)||(o=t[e],!o||o instanceof u.S||i||(o=T(o))),o},O=(e,t,i,n,o,r)=>null==e?new d.s:e instanceof l.s?r[e.name]:e instanceof u.S?e:(0,h.mf)(e.render)&&!(0,h.ZU)(e)?n?e:T(e):e.nodeType||(0,h.ZU)(e)?t((0,s.Z)(e)):k(e,i,n,o)||r[e]||t(e)},50450:function(e,t,i){"use strict";i.d(t,{$K:function(){return l},Cp:function(){return a},EY:function(){return y},FJ:function(){return m},HD:function(){return u},J_:function(){return s},Kn:function(){return h},PO:function(){return f},Qr:function(){return p},ZU:function(){return _},cO:function(){return C},dt:function(){return o},jn:function(){return r},kE:function(){return c},mf:function(){return d},pt:function(){return g},tI:function(){return v}});var n={"[object Array]":"array","[object Date]":"date","[object Object]":"object","[object String]":"string","[object Null]":"null"},o=function(e){var t=Object.prototype.toString.call(e);return"object"===typeof e?n[t]||"object":typeof e},r=function(e){return"boolean"===typeof e},a=function(e){return c(e)&&-1!==e.toString().indexOf("e")},s=function(e){return"date"===o(e)},l=function(e){return null!==e&&void 0!==e},d=function(e){return"function"===typeof e},u=function(e){return"string"===typeof e},c=function(e){return"number"===typeof e&&isFinite(e)||!isNaN(e-parseFloat(e))},h=function(e){return"object"===o(e)},p=function(e){var t;for(t in e)return!1;return!0},f=function(e){if(!e||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e),i=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"===typeof i&&Object.toString.call(i)===Object.toString.call(Object)},g=function(e){return-1===["object","array","function"].indexOf(o(e))},m=function(e){return null!=e&&e===e.window},_=function(e){return!!e&&!(!e.jquery&&!e.dxRenderer)},v=function(e){return!!e&&d(e.then)},y=function(e){return!!e&&d(e.done)&&d(e.fail)},C=function(e){return!(!e||!e.preventDefault)}},22866:function(e,t,i){"use strict";var n=i(99915),o=i(27154);t["Z"]=(0,o.Z)({isWrapped:function(){return!1},isWritableWrapped:function(){return!1},wrap:function(e){return e},unwrap:function(e){return e},assign:function(){n.k.error("Method 'assign' should not be used for not wrapped variables. Use 'isWrapped' method for ensuring.")}})},12454:function(e,t,i){"use strict";i.d(t,{In:function(){return u},S3:function(){return d},Wg:function(){return s}});var n=i(57678),o=i(90268),r=i(94795),a=o.Z.add,s=(0,r["default"])(),l=(0,n.Z)(),d=function(){var e;return function(t){if(!arguments.length)return e;var i=(0,n.Z)(t);l=i;var o=!!i.length,r=d();e=o?i:(0,n.Z)("body"),s.fire(o?d():(0,n.Z)(),r)}}();function u(){return l}a((function(){d(".dx-viewport")}))},18274:function(e,t,i){"use strict";i.d(t,{$n:function(){return d},Jj:function(){return s},Wf:function(){return u},Ym:function(){return r},jW:function(){return c},l$:function(){return l}});var n=i(71389),o="undefined"!==typeof window,r=()=>o,a=r()?window:void 0;a||(a={},a.window=a);var s=()=>a,l=e=>r()&&e in a,d=e=>e<768?"xs":e<992?"sm":e<1200?"md":"lg",u=e=>{var t=e||d,i=n["default"].getDocumentElement().clientWidth;return t(i)},c=()=>r()?a.navigator:{userAgent:""}},54978:function(e,t,i){"use strict";i.d(t,{i:function(){return n}});var n="22.2.3"},69721:function(e,t,i){"use strict";var n=i(49784),o=i(79494),r=i(63419),a=i(74498),s=i(11180),l=i(78852),d=i(53518),u=i(79303),c=i(72264),h=n.Z.abstract,p=d.Z.queryByOptions,f={},g=n.Z.inherit({ctor:function(e){var t=this;e=e||{},this._eventsStrategy=new o.m(this),(0,r.S6)(["onLoaded","onLoading","onInserted","onInserting","onUpdated","onUpdating","onPush","onRemoved","onRemoving","onModified","onModifying"],(function(i,n){n in e&&t.on(n.slice(2).toLowerCase(),e[n])})),this._key=e.key,this._errorHandler=e.errorHandler,this._useDefaultSearch=!0},_clearCache:c.ZT,_customLoadOptions:function(){return null},key:function(){return this._key},keyOf:function(e){return this._keyGetter||(this._keyGetter=(0,l.vb)(this.key())),this._keyGetter(e)},_requireKey:function(){if(!this.key())throw a.R0.Error("E4005")},load:function(e){var t=this;return e=e||{},this._eventsStrategy.fireEvent("loading",[e]),this._withLock(this._loadImpl(e)).done((function(i){t._eventsStrategy.fireEvent("loaded",[i,e])}))},_loadImpl:function(e){return p(this.createQuery(e),e).enumerate()},_withLock:function(e){var t=new u.BH;return e.done((function(){var e=this,i=arguments;s.LE.promise().done((function(){t.resolveWith(e,i)}))})).fail((function(){t.rejectWith(this,arguments)})),t},createQuery:h,totalCount:function(e){return this._totalCountImpl(e)},_totalCountImpl:function(e){return p(this.createQuery(e),e,!0).count()},byKey:function(e,t){return this._addFailHandlers(this._withLock(this._byKeyImpl(e,t)))},_byKeyImpl:h,insert:function(e){var t=this;return t._eventsStrategy.fireEvent("modifying"),t._eventsStrategy.fireEvent("inserting",[e]),t._addFailHandlers(t._insertImpl(e).done((function(e,i){t._eventsStrategy.fireEvent("inserted",[e,i]),t._eventsStrategy.fireEvent("modified")})))},_insertImpl:h,update:function(e,t){var i=this;return i._eventsStrategy.fireEvent("modifying"),i._eventsStrategy.fireEvent("updating",[e,t]),i._addFailHandlers(i._updateImpl(e,t).done((function(){i._eventsStrategy.fireEvent("updated",[e,t]),i._eventsStrategy.fireEvent("modified")})))},_updateImpl:h,push:function(e){var t={changes:e,waitFor:[]};this._eventsStrategy.fireEvent("beforePush",[t]),(0,u.gx)(...t.waitFor).done((()=>{this._pushImpl(e),this._eventsStrategy.fireEvent("push",[e])}))},_pushImpl:c.ZT,remove:function(e){var t=this;return t._eventsStrategy.fireEvent("modifying"),t._eventsStrategy.fireEvent("removing",[e]),t._addFailHandlers(t._removeImpl(e).done((function(e){t._eventsStrategy.fireEvent("removed",[e]),t._eventsStrategy.fireEvent("modified")})))},_removeImpl:h,_addFailHandlers:function(e){return e.fail(this._errorHandler).fail(a.S3)},on(e,t){return this._eventsStrategy.on(e,t),this},off(e,t){return this._eventsStrategy.off(e,t),this}});g.create=function(e,t){if(!(e in f))throw a.R0.Error("E4020",e);return new f[e](t)},g.registerClass=function(e,t){return t&&(f[t]=e),e},g.inherit=function(e){return function(t,i){var n=e.apply(this,[t]);return g.registerClass(n,i),n}}(g.inherit),t["Z"]=g},7045:function(e,t,i){"use strict";var n=i(49784),o=i(50450),r=i(63419),a=i(78852),s=i(79303),l=i(74498),d=i(11180),u=n.Z.inherit({toArray:function(){var e=[];this.reset();while(this.next())e.push(this.current());return e},countable:function(){return!1}}),c=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=function(e,t){return e=(0,a.Ex)(e),t=(0,a.Ex)(t),null===e&&null!==t?-1:null!==e&&null===t||void 0===e&&void 0!==t?1:void 0!==e&&void 0===t||e<t?-1:e>t?1:0},g=u.inherit({ctor:function(e,t,i,n){e instanceof p||(e=new p(e,this._wrap)),this.iter=e,this.rules=[{getter:t,desc:i,compare:n}]},thenBy:function(e,t,i){var n=new g(this.sortedIter||this.iter,e,t,i);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||((0,r.S6)(e.rules,(function(){this.getter=(0,a.vb)(this.getter)})),e.sortedIter=new p(new c(this.iter.toArray().sort((function(t,i){return e._compare(t,i)}))),e._unwrap))},_wrap:function(e,t){return{index:t,value:e}},_unwrap:function(e){return e.value},_compare:function(e,t){var i=e.index,n=t.index;if(e=e.value,t=t.value,e===t)return i-n;for(var o=0,r=this.rules.length;o<r;o++){var a=this.rules[o],s=a.getter(e),l=a.getter(t),d=a.compare||f,u=d(s,l);if(u)return a.desc?-u:u}return i-n}}),m=function(){var e=function(e){return(0,o.$K)(e)?e.toString():""};function t(e,t,i){return function(n){n=(0,a.Ex)(e(n));var o=function(e){return""===e||0===e||!1===e}(t)?n===t:n==t;return i&&(o=!o),o}}return function(i){return(0,o.mf)(i)?i:(0,d.IN)(i)?function(e){var t=[],i=!1,n=!1;return(0,r.S6)(e,(function(){if(Array.isArray(this)||(0,o.mf)(this)){if(t.length>1&&i!==n)throw new l.R0.Error("E4019");t.push(m(this)),i=n,n=!0}else n=(0,d.Lq)(this)})),function(e){for(var n=i,o=0;o<t.length;o++)if(t[o](e)!==i){n=!i;break}return n}}(i):(0,d.hi)(i)?function(e){var t=e[0],i=m(e[1]);if("!"===t)return function(e){return!i(e)};throw l.R0.Error("E4003",t)}(i):function(i){i=(0,d.DE)(i);var n=(0,a.vb)(i[0]),o=i[1],r=i[2];r=(0,a.Ex)(r);var s=(e,t)=>(e=(0,a.Ex)(n(e)),(null!=r&&null!=e||r===e)&&t(e,r));switch(o.toLowerCase()){case"=":return t(n,r);case"<>":return t(n,r,!0);case">":return e=>s(e,((e,t)=>e>t));case"<":return e=>s(e,((e,t)=>e<t));case">=":return e=>s(e,((e,t)=>e>=t));case"<=":return e=>s(e,((e,t)=>e<=t));case"startswith":return function(t){return 0===(0,a.Ex)(e(n(t))).indexOf(r)};case"endswith":return function(t){var i=(0,a.Ex)(e(n(t))),o=e(r);if(i.length<o.length)return!1;var s=i.lastIndexOf(r);return-1!==s&&s===i.length-r.length};case"contains":return function(t){return(0,a.Ex)(e(n(t))).indexOf(r)>-1};case"notcontains":return function(t){return-1===(0,a.Ex)(e(n(t))).indexOf(r)}}throw l.R0.Error("E4003",o)}(i)}}(),_=h.inherit({ctor:function(e,t){this.callBase(e),this.criteria=m(t)},next:function(){while(this.iter.next())if(this.criteria(this.current()))return!0;return!1}}),v=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=[],i=this.iter,n=(0,a.vb)(this.getter);i.reset();while(i.next()){var o=i.current(),s=n(o);s in e?e[s].push(o):(e[s]=[o],t.push(s))}this.groupedIter=new c((0,r.UI)(t,(function(t){return{key:t,items:e[t]}})))}}}),y=h.inherit({ctor:function(e,t){this.callBase(e),this.getter=(0,a.vb)(t)},current:function(){return this.getter(this.callBase())},countable:function(){return this.iter.countable()},count:function(){return this.iter.count()}}),C=h.inherit({ctor:function(e,t,i){this.callBase(e),this.skip=Math.max(0,t),this.take=Math.max(0,i),this.pos=0},next:function(){if(this.pos>=this.skip+this.take)return!1;while(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,i){i=i||{},t instanceof u||(t=new c(t));var n=function(e){var t=i.errorHandler;t&&t(e),(0,l.S3)(e)},r=function(e){var i,o=(new s.BH).fail(n),r=e.step,a=e.finalize;try{t.reset(),i="seed"in e?e.seed:t.next()?t.current():NaN;var l=i;while(t.next())l=r(l,t.current());o.resolve(a?a(l):l)}catch(d){o.reject(d)}return o.promise()},h=function(e){return r(d.bG[e])},p=function(e){return(0,o.mf)(e)||Array.isArray(e)||(e=[].slice.call(arguments)),m(new y(t,e))},f=function(e){return p((0,a.vb)(e))};function m(t){return e(t,i)}return{toArray:function(){return t.toArray()},enumerate:function(){var e=(new s.BH).fail(n);try{e.resolve(t.toArray())}catch(i){e.reject(i)}return e.promise()},sortBy:function(e,i,n){return m(new g(t,e,i,n))},thenBy:function(e,i,n){if(t instanceof g)return m(t.thenBy(e,i,n));throw l.R0.Error("E4004")},filter:function(e){return Array.isArray(e)||(e=[].slice.call(arguments)),m(new _(t,e))},slice:function(e,i){return void 0===i&&(i=Number.MAX_VALUE),m(new C(t,e,i))},select:p,groupBy:function(e){return m(new v(t,e))},aggregate:function(e,t,i){return r(arguments.length<2?{step:arguments[0]}:{seed:e,step:t,finalize:i})},count:function(){if(t.countable()){var e=(new s.BH).fail(n);try{e.resolve(t.count())}catch(i){e.reject(i)}return e.promise()}return h("count")},sum:function(e){return e?f(e).sum():h("sum")},min:function(e){return e?f(e).min():h("min")},max:function(e){return e?f(e).max():h("max")},avg:function(e){return e?f(e).avg():h("avg")}}};t["Z"]=b},93078:function(e,t,i){"use strict";var n=i(11180),o=i(69164),r=i(74498),a=i(69721),s=i(10975),l=a.Z.inherit({ctor:function(e){e=Array.isArray(e)?{data:e}:e||{},this.callBase(e);var t=e.data;if(t&&!Array.isArray(t))throw r.R0.Error("E4006");this._array=t||[]},createQuery:function(){return(0,o.Z)(this._array,{errorHandler:this._errorHandler})},_byKeyImpl:function(e){var t=(0,s.qk)(this,this._array,e);return-1===t?(0,n.Q2)(r.R0.Error("E4009")):(0,n.F$)(this._array[t])},_insertImpl:function(e){return(0,s.$T)(this,this._array,e)},_pushImpl:function(e){(0,s.ii)({keyInfo:this,data:this._array,changes:e})},_updateImpl:function(e,t){return(0,s.Vx)(this,this._array,e,t)},_removeImpl:function(e){return(0,s.Od)(this,this._array,e)},clear:function(){this._eventsStrategy.fireEvent("modifying"),this._array=[],this._eventsStrategy.fireEvent("modified")}},"array");t["Z"]=l},10975:function(e,t,i){"use strict";i.d(t,{$T:function(){return w},FL:function(){return y},Od:function(){return T},Vx:function(){return x},ii:function(){return C},qk:function(){return S}});var n=i(39299),o=i(50450),r=i(44432),a=i(68760),s=i(44099),l=i(74498),d=i(63370),u=(i(78852),i(11180));function c(e,t){var i,n="string"===typeof t?t.split():t.slice();while(n.length)if(i=n.shift(),i in e)return!0;return!1}function h(e,t,i,n){var o,r;if(n){for(var a=0;a<t.length;a++)if(o=t[a].items||t[a].collapsedItems||[],r=h(e,o||[],i,n-1),r)return r}else if(S(e,t,i)>=0)return t}function p(e,t,i,n){return n?h(e,t,i,n)||[]:t}function f(e,t){if(e.key()&&(!t._dataByKeyMap||t._dataByKeyMapLength!==t.length)){for(var i={},n=t.length,o=0;o<n;o++)i[JSON.stringify(e.keyOf(t[o]))]=t[o];t._dataByKeyMap=i,t._dataByKeyMapLength=n}}function g(e,t){if(e._dataByKeyMap)return e._dataByKeyMap[JSON.stringify(t)]}function m(e,t){return!e._dataByKeyMap||e._dataByKeyMap[JSON.stringify(t)]}function _(e,t,i){e._dataByKeyMap&&(e._dataByKeyMap[JSON.stringify(t)]=i,e._dataByKeyMapLength+=i?1:-1)}function v(e,t,i){i=i||new WeakMap;var r=e?Object.create(Object.getPrototypeOf(e)):{};e&&i.set(e,r);var a=(0,n.Z)({},e);for(var s in(0,d.HR)(r,a,!0,!0),a){var l=a[s],u=null===t||void 0===t?void 0:t[s];(0,o.Kn)(l)&&!(0,o.PO)(l)&&(0,o.Kn)(u)&&!i.has(l)&&(r[s]=v(l,u,i))}for(var c in r){var h=r[c];(0,o.Kn)(h)&&i.has(h)&&(r[c]=i.get(h))}return r}function y(e,t){var i=v(e,t);return(0,d.HR)(i,t,!0,!0)}function C(e){var{keyInfo:t,data:i,changes:n,groupCount:r,useInsertIndex:a,immutable:s,disableCache:l,logError:d,skipCopying:u}=e,c=!0===s?[...i]:i;return n.forEach((e=>{var i="insert"===e.type?c:p(t,c,e.key,r);switch(!l&&f(t,i),e.type){case"update":x(t,i,e.key,e.data,!0,s,d);break;case"insert":w(t,i,e.data,a&&(0,o.$K)(e.index)?e.index:-1,!0,d,u);break;case"remove":T(t,i,e.key,!0,d)}})),c}function b(e,t,i){return e?t&&l.R0.log(i):(0,u.Q2)(l.R0.Error(i))}function x(e,t,i,n,a,s,l){var h,p=e.key();if(p){if(c(n,p)&&!(0,u.OI)(p,i,e.keyOf(n)))return b(a,l,"E4017");if(h=g(t,i),!h){var f=S(e,t,i);if(f<0)return b(a,l,"E4009");if(h=t[f],!0===s&&(0,o.$K)(h)){var m=y(h,n);return t[f]=m,!a&&(0,u.F$)(m,i)}}}else h=i;if((0,d.HR)(h,n,!0),!a)return(0,r.Z)().useLegacyStoreResult?(0,u.F$)(i,n):(0,u.F$)(h,i)}function w(e,t,i,n,d,c,h){var p,f=e.key(),g=(0,o.PO)(i)&&!h?(0,s.l)({},i):i;if(f){if(p=e.keyOf(g),void 0===p||"object"===typeof p&&(0,o.Qr)(p)){if(Array.isArray(f))throw l.R0.Error("E4007");p=g[f]=String(new a.Z)}else if(void 0!==t[S(e,t,p)])return b(d,c,"E4008")}else p=g;if(n>=0?t.splice(n,0,g):t.push(g),_(t,p,g),!d)return(0,u.F$)((0,r.Z)().useLegacyStoreResult?i:g,p)}function T(e,t,i,n,o){var r=S(e,t,i);return r>-1&&(t.splice(r,1),_(t,i,null)),n?r<0?b(n,o,"E4009"):void 0:(0,u.F$)(i)}function S(e,t,i){var n=e.key();if(!m(t,i))return-1;for(var o=0,r=t.length;o<r;o++)if((0,u.OI)(n,e.keyOf(t[o]),i))return o;return-1}},91029:function(e,t,i){"use strict";var n=i(57678),o=i(11180),r=i(10975),a=i(50450),s=i(44432),l=i(74498),d=i(69721),u=i(7045),c=i(53518),h=i(79303),p="totalCount",f="load",g="byKey",m="insert",_="update",v="remove";function y(e){return e&&(0,a.mf)(e.then)}function C(e){return(new h.BH).resolve(e).promise()}function b(e,t){if(!(0,a.mf)(t))throw l.R0.Error("E4011",e)}function x(e){throw l.R0.Error("E4012",e)}function w(e){function t(e){var t=e[0],i=e[1];return t&&t.getResponseHeader?(0,o.ER)(t,i):null}return function(i){var n;n=i instanceof Error?i:new Error(t(arguments)||i&&String(i)||"Unknown error"),n.message!==o.C5&&e.reject(n)}}function T(e,t){var i,n=e._loadFunc;return b(f,n),i=n.apply(e,[t]),Array.isArray(i)?i=C(i):null===i||void 0===i?i=C([]):y(i)||x(f),(0,h.p4)(i)}function S(e,t){var i,n=e._totalCountFunc;if(!(0,a.mf)(n))throw l.R0.Error("E4021");return i=n.apply(e,[t]),y(i)||(i=Number(i),isFinite(i)||x(p),i=C(i)),(0,h.p4)(i)}function I(e,t,i){var n,o=e._byKeyFunc;return b(g,o),n=o.apply(e,[t,i]),y(n)||(n=C(n)),(0,h.p4)(n)}function E(e,t,i,n){if(t.__rawData)n(t.__rawData);else{var o=t.__rawDataPromise||T(t,i);t._cacheRawData&&(t.__rawDataPromise=o),o.always((function(){delete t.__rawDataPromise})).done((function(e){t._cacheRawData&&(t.__rawData=e),n(e)})).fail(w(e))}}function D(e,t,i,o){i=i||{};var r={};"userData"in i&&(r.userData=i.userData),E(e,t,r,(function(r){var a,s,l,d,p=(0,u.Z)(r,{errorHandler:t._errorHandler}),f=[];o||(a=c.Z.queryByOptions(p,i),a===p?l=r.slice(0):f.push(a.enumerate().done((function(e){l=e})))),(i.requireTotalCount||o)&&(s=c.Z.queryByOptions(p,i,!0),s===p?d=r.length:f.push(s.count().done((function(e){d=e})))),h.gx.apply(n.Z,f).done((function(){o?e.resolve(d):i.requireTotalCount?e.resolve(l,{totalCount:d}):e.resolve(l)})).fail((function(t){e.reject(t)}))}))}function k(e,t,i){E(e,t,{},(function(n){for(var r,a=t.key(),s=0,d=n.length;s<d;s++)if(r=n[s],(0,o.OI)(a,t.keyOf(n[s]),i))return void e.resolve(r);e.reject(l.R0.Error("E4009"))}))}var O=d.Z.inherit({ctor:function(e){e=e||{},this.callBase(e),this._useDefaultSearch=!!e.useDefaultSearch||"raw"===e.loadMode,this._loadMode=e.loadMode,this._cacheRawData=!1!==e.cacheRawData,this._loadFunc=e[f],this._totalCountFunc=e[p],this._byKeyFunc=e[g],this._insertFunc=e[m],this._updateFunc=e[_],this._removeFunc=e[v]},_clearCache(){delete this.__rawData},createQuery:function(){throw l.R0.Error("E4010")},clearRawDataCache:function(){this._clearCache()},_totalCountImpl:function(e){var t=new h.BH;return"raw"!==this._loadMode||this._totalCountFunc?(S(this,e).done((function(e){t.resolve(Number(e))})).fail(w(t)),t=this._addFailHandlers(t)):D(t,this,e,!0),t.promise()},_pushImpl:function(e){this.__rawData&&(0,r.ii)({keyInfo:this,data:this.__rawData,changes:e})},_loadImpl:function(e){var t=new h.BH;return"raw"===this._loadMode?D(t,this,e,!1):(T(this,e).done((function(e,i){t.resolve(e,i)})).fail(w(t)),t=this._addFailHandlers(t)),t.promise()},_byKeyImpl:function(e,t){var i=new h.BH;return this._byKeyViaLoad()?(this._requireKey(),k(i,this,e)):I(this,e,t).done((function(e){i.resolve(e)})).fail(w(i)),i.promise()},_byKeyViaLoad:function(){return"raw"===this._loadMode&&!this._byKeyFunc},_insertImpl:function(e){var t,i=this,n=i._insertFunc,o=new h.BH;return b(m,n),t=n.apply(i,[e]),y(t)||(t=C(t)),(0,h.p4)(t).done((function(t){(0,s.Z)().useLegacyStoreResult?o.resolve(e,t):o.resolve(t||e,i.keyOf(t))})).fail(w(o)),o.promise()},_updateImpl:function(e,t){var i,n=this._updateFunc,o=new h.BH;return b(_,n),i=n.apply(this,[e,t]),y(i)||(i=C(i)),(0,h.p4)(i).done((function(i){(0,s.Z)().useLegacyStoreResult?o.resolve(e,t):o.resolve(i||t,e)})).fail(w(o)),o.promise()},_removeImpl:function(e){var t,i=this._removeFunc,n=new h.BH;return b(v,i),t=i.apply(this,[e]),y(t)||(t=C()),(0,h.p4)(t).done((function(){n.resolve(e)})).fail(w(n)),n.promise()}});t["Z"]=O},70710:function(e,t,i){"use strict";i.d(t,{o:function(){return v}});var n=i(49784),o=i(44099),r=i(72264),a=i(63419),s=i(50450),l=i(11180),d=i(10975),u=i(91029),c=i(79494),h=i(74498),p=i(33734),f=i(79303);function g(e){var t=[],i=!1;function n(){while(t.length){i=!0;var e=t.shift(),o=e();if(void 0!==o){if(o.then)return void(0,f.gx)(o).always(n);throw p.Z.Error("E0015")}}i=!1}return{add:function(o,r){e?(t[0]&&r&&r(t[0]),t=[o]):t.push(o),i||n()},busy:function(){return i}}}g().add;var m=i(73322);class _{constructor(){this._counter=-1,this._deferreds={}}add(e){return this._counter++,this._deferreds[this._counter]=e,this._counter}remove(e){return delete this._deferreds[e]}cancel(e){return e in this._deferreds&&(this._deferreds[e].reject(m.NE),!0)}cancelAll(){while(this._counter>-1)this.cancel(this._counter),this._counter--}}var v=n.Z.inherit({ctor(e){var t;e=(0,m.aN)(e),this._eventsStrategy=new c.m(this,{syncStrategy:!0}),this._store=e.store,this._changedTime=0;var i=0!==e.pushAggregationTimeout;if(i){var n,o,r=void 0===e.pushAggregationTimeout?()=>5*this._changedTime:e.pushAggregationTimeout,s=(0,l.xL)((e=>{n.resolve();var t=(0,f.gx)(...o);t.done((()=>this._onPush(e))),o=void 0,n=void 0}),r);this._onPushHandler=e=>{this._aggregationTimeoutId=s(e.changes),n||(n=new f.BH),o=e.waitFor,e.waitFor.push(n.promise())},this._store.on("beforePush",this._onPushHandler)}else this._onPushHandler=e=>this._onPush(e),this._store.on("push",this._onPushHandler);this._storeLoadOptions=this._extractLoadOptions(e),this._mapFunc=e.map,this._postProcessFunc=e.postProcess,this._pageIndex=void 0!==e.pageIndex?e.pageIndex:0,this._pageSize=void 0!==e.pageSize?e.pageSize:20,this._loadingCount=0,this._loadQueue=this._createLoadQueue(),this._searchValue="searchValue"in e?e.searchValue:null,this._searchOperation=e.searchOperation||"contains",this._searchExpr=e.searchExpr,this._paginate=e.paginate,this._reshapeOnPush=null!==(t=e.reshapeOnPush)&&void 0!==t&&t,(0,a.S6)(["onChanged","onLoadError","onLoadingChanged","onCustomizeLoadResult","onCustomizeStoreLoadOptions"],((t,i)=>{i in e&&this.on(i.substr(2,1).toLowerCase()+i.substr(3),e[i])})),this._operationManager=new _,this._init()},_init(){this._items=[],this._userData={},this._totalCount=-1,this._isLoaded=!1,(0,s.$K)(this._paginate)||(this._paginate=!this.group()),this._isLastPage=!this._paginate},dispose(){var e;this._store.off("beforePush",this._onPushHandler),this._store.off("push",this._onPushHandler),this._eventsStrategy.dispose(),clearTimeout(this._aggregationTimeoutId),null===(e=this._delayedLoadTask)||void 0===e||e.abort(),this._operationManager.cancelAll(),delete this._store,delete this._items,delete this._delayedLoadTask,this._disposed=!0},_extractLoadOptions(e){var t={},i=["sort","filter","select","group","requireTotalCount"],n=this._store._customLoadOptions();return n&&(i=i.concat(n)),(0,a.S6)(i,(function(){t[this]=e[this]})),t},loadOptions(){return this._storeLoadOptions},items(){return this._items},pageIndex(e){if(!(0,s.kE)(e))return this._pageIndex;this._pageIndex=e,this._isLastPage=!this._paginate},paginate(e){if(!(0,s.jn)(e))return this._paginate;this._paginate!==e&&(this._paginate=e,this.pageIndex(0))},pageSize(e){if(!(0,s.kE)(e))return this._pageSize;this._pageSize=e},isLastPage(){return this._isLastPage},generateStoreLoadOptionAccessor(e){return t=>{var i=(0,m.ir)(t);if(void 0===i)return this._storeLoadOptions[e];this._storeLoadOptions[e]=i}},sort(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.generateStoreLoadOptionAccessor("sort")(t)},filter(){var e=(0,m.ir)(arguments);if(void 0===e)return this._storeLoadOptions.filter;this._storeLoadOptions.filter=e,this.pageIndex(0)},group(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.generateStoreLoadOptionAccessor("group")(t)},select(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.generateStoreLoadOptionAccessor("select")(t)},requireTotalCount(e){if(!(0,s.jn)(e))return this._storeLoadOptions.requireTotalCount;this._storeLoadOptions.requireTotalCount=e},searchValue(e){if(arguments.length<1)return this._searchValue;this._searchValue=e,this.pageIndex(0)},searchOperation(e){if(!(0,s.HD)(e))return this._searchOperation;this._searchOperation=e,this.pageIndex(0)},searchExpr(e){var t=arguments.length;if(0===t)return this._searchExpr;t>1&&(e=[].slice.call(arguments)),this._searchExpr=e,this.pageIndex(0)},store(){return this._store},key(){var e;return null===(e=this._store)||void 0===e?void 0:e.key()},totalCount(){return this._totalCount},isLoaded(){return this._isLoaded},isLoading(){return this._loadingCount>0},beginLoading(){this._changeLoadingCount(1)},endLoading(){this._changeLoadingCount(-1)},_createLoadQueue:()=>g(),_changeLoadingCount(e){var t=this.isLoading();this._loadingCount+=e;var i=this.isLoading();t^i&&this._eventsStrategy.fireEvent("loadingChanged",[i])},_scheduleLoadCallbacks(e){this.beginLoading(),e.always((()=>{this.endLoading()}))},_scheduleFailCallbacks(e){var t=this;e.fail((function(){for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];i[0]!==m.NE&&t._eventsStrategy.fireEvent("loadError",i)}))},_fireChanged(e){var t=new Date;this._eventsStrategy.fireEvent("changed",e),this._changedTime=new Date-t},_scheduleChangedCallbacks(e){e.done((()=>this._fireChanged()))},loadSingle(e,t){var i=new f.BH,n=this.key(),o=this._store,r=this._createStoreLoadOptions();return this._scheduleFailCallbacks(i),arguments.length<2&&(t=e,e=n),delete r.skip,delete r.group,delete r.refresh,delete r.pageIndex,delete r.searchString,(()=>e===n||o instanceof u.Z&&!o._byKeyViaLoad()?o.byKey(t,r):(r.take=1,r.filter=r.filter?[r.filter,[e,t]]:[e,t],o.load(r)))().fail(i.reject).done((e=>{var t=Array.isArray(e)&&!e.length;!(0,s.$K)(e)||t?i.reject(new h.R0.Error("E4009")):(Array.isArray(e)||(e=[e]),i.resolve(this._applyMapFunction(e)[0]))})),i.promise()},load(){var e=new f.BH,t=()=>{if(!this._disposed&&(0,m.zR)(e))return this._loadFromStore(i,e)};this._scheduleLoadCallbacks(e),this._scheduleFailCallbacks(e),this._scheduleChangedCallbacks(e);var i=this._createLoadOperation(e);return this._eventsStrategy.fireEvent("customizeStoreLoadOptions",[i]),this._loadQueue.add((()=>("number"===typeof i.delay?this._delayedLoadTask=(0,r.Wi)(t,i.delay):t(),e.promise()))),e.promise({operationId:i.operationId})},_onPush(e){if(this._reshapeOnPush)this.load();else{var t={changes:e};this._eventsStrategy.fireEvent("changing",[t]);var i=this.group(),n=this.items(),o=0,r=this.paginate()||i?e.filter((e=>"update"===e.type)):e;i&&(o=Array.isArray(i)?i.length:1),this._mapFunc&&r.forEach((e=>{"insert"===e.type&&(e.data=this._mapFunc(e.data))})),t.postProcessChanges&&(r=t.postProcessChanges(r)),(0,d.ii)({keyInfo:this.store(),data:n,changes:r,groupCount:o,useInsertIndex:!0}),this._fireChanged([{changes:e}])}},_createLoadOperation(e){var t=this._operationManager.add(e),i=this._createStoreLoadOptions();return e.always((()=>this._operationManager.remove(t))),{operationId:t,storeLoadOptions:i}},reload(){var e=this.store();return e._clearCache(),this._init(),this.load()},cancel(e){return this._operationManager.cancel(e)},cancelAll(){return this._operationManager.cancelAll()},_addSearchOptions(e){this._disposed||(this.store()._useDefaultSearch?this._addSearchFilter(e):(e.searchOperation=this._searchOperation,e.searchValue=this._searchValue,e.searchExpr=this._searchExpr))},_createStoreLoadOptions(){var e=(0,o.l)({},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(e){var t=this._searchValue,i=this._searchOperation,n=this._searchExpr,o=[];t&&(n||(n="this"),Array.isArray(n)||(n=[n]),(0,a.S6)(n,(function(e,n){o.length&&o.push("or"),o.push([n,i,t])})),e.filter?e.filter=[o,e.filter]:e.filter=o)},_loadFromStore(e,t){var i=(i,n)=>{if(!this._disposed&&(0,m.zR)(t)){var r=(0,o.l)((0,m.r6)(i,n),e);this._eventsStrategy.fireEvent("customizeLoadResult",[r]),(0,f.gx)(r.data).done((e=>{r.data=e,this._processStoreLoadResult(r,t)})).fail(t.reject)}};return e.data?(new f.BH).resolve(e.data).done(i):this.store().load(e.storeLoadOptions).done(i).fail(t.reject)},_processStoreLoadResult(e,t){var i=e.data,n=e.extra,o=e.storeLoadOptions,r=()=>(this._isLoaded=!0,this._totalCount=isFinite(n.totalCount)?n.totalCount:-1,t.resolve(i,n));this._disposed||(i=this._applyPostProcessFunction(this._applyMapFunction(i)),(0,s.Kn)(n)||(n={}),this._items=i,(!i.length||!this._paginate||this._pageSize&&i.length<this._pageSize)&&(this._isLastPage=!0),o.requireTotalCount&&!isFinite(n.totalCount)?(()=>{this.store().totalCount(o).done((function(e){n.totalCount=e,r()})).fail(t.reject)})():r())},_applyMapFunction(e){return this._mapFunc?(0,m.YI)(e,this._mapFunc,this.group()):e},_applyPostProcessFunction(e){return this._postProcessFunc?this._postProcessFunc(e):e},on(e,t){return this._eventsStrategy.on(e,t),this},off(e,t){return this._eventsStrategy.off(e,t),this}})},73322:function(e,t,i){"use strict";i.d(t,{NE:function(){return f},YI:function(){return y},aN:function(){return T},ir:function(){return m},r6:function(){return C},zR:function(){return g}});var n=i(39299),o=i(3802),r=i(43318),a=i(69721),s=i(93078),l=i(63419),d=i(91029),u=i(44099),c=i(50450),h=i(11180),p=["items"],f="canceled",g=e=>"pending"===e.state(),m=e=>{switch(e.length){case 0:return;case 1:return e[0]}return[].slice.call(e)},_=(e,t,i)=>(0,l.UI)(e,(e=>{var r=(0,o.Z)(e,p);return(0,n.Z)({},r,{items:v(e.items,t-1,i)})})),v=(e,t,i)=>Array.isArray(e)?t?_(e,t,i):(0,l.UI)(e,i):e,y=(e,t,i)=>{var n=i?(0,h.G5)(i).length:0;return v(e,n,t)},C=(e,t)=>{var i;return null!==(i=e)&&void 0!==i&&i.data&&(t=e,e=e.data),Array.isArray(e)||(e=[e]),{data:e,extra:t}},b=e=>{var t={};return(0,l.S6)(["useDefaultSearch","key","load","loadMode","cacheRawData","byKey","lookup","totalCount","insert","update","remove"],(function(){t[this]=e[this],delete e[this]})),new d.Z(t)},x=e=>{var t=e.type;return delete e.type,a.Z.create(t,e)},w=(e,t)=>new d.Z({load:()=>r.Z.sendRequest({url:e,dataType:"json"}),loadMode:null===t||void 0===t?void 0:t.fromUrlLoadMode}),T=(e,t)=>{var i;return"string"===typeof e&&(e={paginate:!1,store:w(e,t)}),void 0===e&&(e=[]),e=Array.isArray(e)||e instanceof a.Z?{store:e}:(0,u.l)({},e),void 0===e.store&&(e.store=[]),i=e.store,"load"in e?i=b(e):Array.isArray(i)?i=new s.Z(i):(0,c.PO)(i)&&(i=x((0,u.l)({},i))),e.store=i,e}},74498:function(e,t,i){"use strict";i.d(t,{R0:function(){return r},S3:function(){return s}});var n=i(2695),o=i(33734),r=(0,n.Z)(o.Z.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 a duplicated key",E4009:"Data item cannot be found",E4010:"CustomStore does not support creating queries",E4011:"Custom Store method is not implemented or is not a function: {0}",E4012:"Custom Store method returns an invalid value: {0}",E4013:"Local Store requires the 'name' configuration option is specified",E4014:"Unknown data type is specified for ODataStore: {0}",E4015:"Unknown entity name or alias is used: {0}",E4016:"The compileSetter(expr) method is called with 'self' passed as a parameter",E4017:"Keys cannot be modified",E4018:"The server has returned a non-numeric value in a response to an item count request",E4019:"Mixing of group operators inside a single group of filter expression is not allowed",E4020:"Unknown store type is detected: {0}",E4021:"The server response does not provide the totalCount value",E4022:"The server response does not provide the groupCount value",E4023:"Could not parse the following XML: {0}",E4024:"String function {0} cannot be used with the data field {1} of type {2}.",W4000:"Data returned from the server has an incorrect structure",W4001:'The {0} field is listed in both "keyType" and "fieldTypes". The value of "fieldTypes" is used.',W4002:"Data loading has failed for some cells due to the following error: {0}"}),a=null,s=function(e){var t;null===(t=a)||void 0===t||t(e)}},69164:function(e,t,i){"use strict";i.d(t,{Z:function(){return p}});var n=i(7045),o={},r=i(74498),a=i(63419),s=i(50450),l=i(79303),d=function e(t,i,d){d=d||[],i=i||{};var u=function(e,t){return{name:e,args:t}},c=function(e){var c,h,p,f,g,m=new l.BH,_=function(e){var t=i.errorHandler;t&&t(e),(0,r.S3)(e),m.reject(e)};function v(e){switch(e.name){case"sortBy":return g=[e.args],!0;case"thenBy":if(!g)throw r.R0.Error("E4004");return g.push(e.args),!0}return!1}try{c=i.adapter,(0,s.mf)(c)||(c=o[c]),h=c(i),p=[].concat(d).concat(e);var y=h.optimize;y&&y(p);while(p.length){if(f=p[0],!v(f)){if(g){p.unshift(u("multiSort",[g])),g=null;continue}if("enumerate"!==String(f.name)&&(!h[f.name]||!1===h[f.name].apply(h,f.args)))break}p.shift()}!function(){var e=p[0],t=[];e&&"multiSort"===e.name&&(p.shift(),(0,a.S6)(e.args[0],(function(){t.push(u(t.length?"thenBy":"sortBy",this))}))),p=t.concat(p)}(),h.exec(t).done((function(e,t){if(p.length){var o=(0,n.Z)(e,{errorHandler:i.errorHandler});(0,a.S6)(p,(function(){o=o[this.name].apply(o,this.args)})),o.done(m.resolve).fail(m.reject)}else m.resolve(e,t)})).fail(_)}catch(C){_(C)}return m.promise()},h={};return(0,a.S6)(["sortBy","thenBy","filter","slice","select","groupBy"],(function(){var n=String(this);h[n]=function(){return e(t,i,d.concat(u(n,arguments)))}})),(0,a.S6)(["count","min","max","sum","avg","aggregate","enumerate"],(function(){var e=String(this);h[e]=function(){return c.call(this,u(e,arguments))}})),h},u=d,c={array:n.Z,remote:u},h=function(){var e=Array.isArray(arguments[0])?"array":"remote";return c[e].apply(this,arguments)},p=h},53518:function(e,t,i){"use strict";var n=i(72264),o=i(44099),r=i(63419),a=i(7045),s=i(11180);function l(e,t){return e=e.groupBy(t[0].selector),t.length>1&&(e=e.select((function(e){return(0,o.l)({},e,{items:l((0,a.Z)(e.items),t.slice(1)).toArray()})}))),e}function d(e,t){var i=[];return(0,r.S6)(e,(function(e,o){var r=(0,n.h3)(t,(function(e){return o.selector===e.selector}));r.length<1&&i.push(o)})),i.concat(t)}function u(e,t,i){t=t||{};var n=t.filter;if(n&&(e=e.filter(n)),i)return e;var o=t.sort,a=t.select,u=t.group,c=t.skip,h=t.take;return u&&(u=(0,s.G5)(u),u.keepInitialKeyOrder=!!t.group.keepInitialKeyOrder),(o||u)&&(o=(0,s.G5)(o||[]),u&&!u.keepInitialKeyOrder&&(o=d(u,o)),(0,r.S6)(o,(function(t){e=e[t?"thenBy":"sortBy"](this.selector,this.desc,this.compare)}))),a&&(e=e.select(a)),u&&(e=l(e,u)),(h||c)&&(e=e.slice(c||0,h)),e}t["Z"]={multiLevelGroup:l,arrangeSortingInfo:d,queryByOptions:u}},11180:function(e,t,i){"use strict";i.d(t,{C5:function(){return c},DE:function(){return h},ER:function(){return f},F$:function(){return x},G5:function(){return p},IN:function(){return b},LE:function(){return m},Lq:function(){return _},OI:function(){return v},Q2:function(){return w},bG:function(){return g},hi:function(){return y},xL:function(){return S}});var n=i(50450),o=i(71389),r=i(90268),a=i(18274),s=i(63419),l=i(79303),d=i(72264),u=r.Z.add,c="DEVEXTREME_XHR_ERROR_UNLOAD",h=function(e){return[e[0],e.length<3?"=":String(e[1]).toLowerCase(),e.length<2||e[e.length-1]]},p=function(e){return Array.isArray(e)||(e=[e]),(0,s.UI)(e,(function(e){var t={selector:(0,n.mf)(e)||"string"===typeof e?e:e.getter||e.field||e.selector,desc:!(!e.desc&&"d"!==String(e.dir).charAt(0).toLowerCase())};return e.compare&&(t.compare=e.compare),t}))},f=function(){var e,t={timeout:"Network connection timeout",error:"Unspecified network error",parsererror:"Unexpected server response"};return u((function(){var t=(0,a.Jj)();o["default"].listen(t,"beforeunload",(function(){e=!0}))})),function(i,n){return e?c:i.status<400?function(e){var i=t[e];return i||e}(n):i.statusText}}(),g={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}}},m=function(){var e,t=0;return{obtain:function(){0===t&&(e=new l.BH),t++},release:function(){t--,t<1&&e.resolve()},promise:function(){var i=0===t?(new l.BH).resolve():e;return i.promise()},reset:function(){t=0,e&&e.resolve()}}}();function _(e){return/^(and|&&|&)$/i.test(e)}var v=function(e,t,i){if(Array.isArray(e)){for(var n,o=(0,s.UI)(t,(function(e,t){return t})),r=0;r<o.length;r++)if(n=o[r],!(0,d.bY)(t[n],i[n],0,!1))return!1;return!0}return(0,d.bY)(t,i,0,!1)};var y=function(e){return"!"===e[0]&&Array.isArray(e[1])},C=function(e){return"and"===e||"or"===e},b=function(e){var t=e[0],i=e[1];return!!Array.isArray(t)||!(!(0,n.mf)(t)||!(Array.isArray(i)||(0,n.mf)(i)||C(i)))},x=function(){var e=new l.BH;return e.resolve.apply(e,arguments).promise()},w=function(){var e=new l.BH;return e.reject.apply(e,arguments).promise()};function T(e,t){var i;return function(){return i||(i=setTimeout((()=>{i=void 0,e.call(this)}),(0,n.mf)(t)?t():t)),i}}function S(e,t){var i=[],n=T((function(){e.call(this,i),i=[]}),t);return function(e){return Array.isArray(e)&&i.push(...e),n.call(this,i)}}},95060:function(e,t,i){"use strict";i.d(t,{Z:function(){return y}});var n=i(70710),o=i(44099),r=i(73322),a=i(72264),s=i(79303),l={load:()=>(0,s.BH)().reject(),loadSingle:()=>(0,s.BH)().reject(),loadFromStore:()=>(0,s.BH)().reject(),loadNextPage:()=>(0,s.BH)().reject(),loadOptions:a.ZT,userData:a.ZT,cancel:a.ZT,cancelAll:a.ZT,filter:a.ZT,addSearchFilter:a.ZT,group:a.ZT,paginate:a.ZT,pageSize:a.ZT,pageIndex:a.ZT,resetDataSourcePageIndex:a.ZT,totalCount:a.ZT,isLastPage:a.ZT,isLoading:a.ZT,isLoaded:a.ZT,searchValue:a.ZT,searchOperation:a.ZT,searchExpr:a.ZT,select:a.ZT,key:a.ZT,keyOf:a.ZT,store:a.ZT,items:a.ZT,applyMapFunction:a.ZT,getDataSource:a.ZT,reload:a.ZT,on:a.ZT,off:a.ZT};class d{constructor(e){if(!e)return l;this._dataSource=e}load(){return this._dataSource.load()}loadSingle(e,t){return arguments.length<2&&(t=e,e=this.key()),this._dataSource.loadSingle(e,t)}loadFromStore(e){return this.store().load(e)}loadNextPage(){return this.pageIndex(1+this.pageIndex()),this.load()}loadOptions(){return this._dataSource.loadOptions()}userData(){return this._dataSource._userData}cancel(e){this._dataSource.cancel(e)}cancelAll(){this._dataSource.cancelAll()}filter(e){return this._dataSource.filter(e)}addSearchFilter(e){this._dataSource._addSearchFilter(e)}group(e){return this._dataSource.group(e)}paginate(){return this._dataSource.paginate()}pageSize(){return this._dataSource._pageSize}pageIndex(e){return this._dataSource.pageIndex(e)}resetDataSourcePageIndex(){this.pageIndex()&&(this.pageIndex(0),this.load())}totalCount(){return this._dataSource.totalCount()}isLastPage(){return this._dataSource.isLastPage()||!this._dataSource._pageSize}isLoading(){return this._dataSource.isLoading()}isLoaded(){return this._dataSource.isLoaded()}searchValue(e){return arguments.length?this._dataSource.searchValue(e):this._dataSource.searchValue()}searchOperation(e){return this._dataSource.searchOperation(e)}searchExpr(e){return arguments.length?this._dataSource.searchExpr(e):this._dataSource.searchExpr()}select(){return this._dataSource.select(...arguments)}key(){return this._dataSource.key()}keyOf(e){return this.store().keyOf(e)}store(){return this._dataSource.store()}items(){return this._dataSource.items()}applyMapFunction(e){return this._dataSource._applyMapFunction(e)}getDataSource(){return this._dataSource||null}reload(){return this._dataSource.reload()}on(e,t){this._dataSource.on(e,t)}off(e,t){this._dataSource.off(e,t)}}var u=d,c="_dataSourceOptions",h="_dataSourceChangedHandler",p="_dataSourceLoadErrorHandler",f="_dataSourceLoadingChangedHandler",g="_dataSourceFromUrlLoadMode",m="_getSpecificDataSourceOption",_="_normalizeDataSource",v={postCtor:function(){this.on("disposing",function(){this._disposeDataSource()}.bind(this))},_refreshDataSource:function(){this._initDataSource(),this._loadDataSource()},_initDataSource:function(){var e,t,i=m in this?this[m]():this.option("dataSource");this._disposeDataSource(),i&&(i instanceof n.o?(this._isSharedDataSource=!0,this._dataSource=i):(e=c in this?this[c]():{},t=this._dataSourceType?this._dataSourceType():n.o,i=(0,r.aN)(i,{fromUrlLoadMode:g in this&&this[g]()}),this._dataSource=new t((0,o.l)(!0,{},e,i))),_ in this&&(this._dataSource=this[_](this._dataSource)),this._addDataSourceHandlers(),this._initDataController())},_initDataController:function(){var e,t=null===(e=this.option)||void 0===e?void 0:e.call(this,"_dataController"),i=this._dataSource;this._dataController=t||new u(i)},_addDataSourceHandlers:function(){h in this&&this._addDataSourceChangeHandler(),p in this&&this._addDataSourceLoadErrorHandler(),f 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(t){this[h](e.items(),t)}.bind(this),e.on("changed",this._proxiedDataSourceChangedHandler)},_addDataSourceLoadErrorHandler:function(){this._proxiedDataSourceLoadErrorHandler=this[p].bind(this),this._dataSource.on("loadError",this._proxiedDataSourceLoadErrorHandler)},_addDataSourceLoadingChangedHandler:function(){this._proxiedDataSourceLoadingChangedHandler=this[f].bind(this),this._dataSource.on("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)},_loadDataSource:function(){var e=this._dataSource;e&&(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}},y=v},50812:function(e,t,i){"use strict";i.d(t,{u:function(){return _}});var n=i(57678),o=i(52376),r=i(30390),a=i(71389),s=i(25445),l=i(10760),d=i(78172),u=i(14324);function c(e){return e&&[e.target,e.delegateTarget,e.relatedTarget,e.currentTarget].filter((e=>!!e))}var h=(e,t)=>{o.Z.one(c(e),u.x,t)},p=(e,t)=>{o.Z.off(c(e),u.x,t)},f=i(91866),g=i(36494),m=i(32369),_="dxclick",v=(l.U,l.W,null),y=null,C=()=>{y=null},b=function(e){var t=e.originalEvent,i=y===t||t&&t.DXCLICK_FIRED,n=!e.which||1===e.which;!n||v||i||(t&&(t.DXCLICK_FIRED=!0),p(y,C),y=t,h(y,C),(0,d.BX)({type:_,originalEvent:e}))},x=g.Z.inherit({ctor:function(e){this.callBase(e),o.Z.on(this.getElement(),"click",b)},start:function(e){v=null},cancel:function(){v=!0},dispose:function(){o.Z.off(this.getElement(),"click",b)}});!function(){var e=r.Z.real().generic;if(!e){var t=null,i=!1,l=a["default"].getDocument();o.Z.subscribeGlobal(l,(0,d.V4)(f.Z.down,"NATIVE_CLICK_FIXER"),(function(e){t=e.target,i=e.isDefaultPrevented()})),o.Z.subscribeGlobal(l,(0,d.V4)("click","NATIVE_CLICK_FIXER"),(function(e){var o,r=(0,n.Z)(e.target);i||!t||r.is(t)||(0,n.Z)(t).is("label")||(o=r,!(0,n.Z)(o).is("input, textarea, select, button ,:focus, :focus *"))||(0,s.M3)(),t=null,i=!1}))}}(),(0,m.Z)({emitter:x,bubble:!0,events:[_]})},36494:function(e,t,i){"use strict";var n=i(57678),o=i(72264),r=i(49784),a=i(94795),s=i(44099),l=i(78172),d=r.Z.inherit({ctor:function(e){this._$element=(0,n.Z)(e),this._cancelCallback=(0,a["default"])(),this._acceptCallback=(0,a["default"])()},getElement:function(){return this._$element},validate:function(e){return!(0,l.pR)(e)},validatePointers:function(e){return 1===(0,l.G7)(e)},allowInterruptionByMouseWheel:function(){return!0},configure:function(e){(0,s.l)(this,e)},addCancelCallback:function(e){this._cancelCallback.add(e)},removeCancelCallback:function(){this._cancelCallback.empty()},_cancel:function(e){this._cancelCallback.fire(this,e)},addAcceptCallback:function(e){this._acceptCallback.add(e)},removeAcceptCallback:function(){this._acceptCallback.empty()},_accept:function(e){this._acceptCallback.fire(this,e)},_requestAccept:function(e){this._acceptRequestEvent=e},_forgetAccept:function(){this._accept(this._acceptRequestEvent),this._acceptRequestEvent=null},start:o.ZT,move:o.ZT,end:o.ZT,cancel:o.ZT,reset:function(){this._acceptRequestEvent&&this._accept(this._acceptRequestEvent)},_fireEvent:function(e,t,i){var n=(0,s.l)({type:e,originalEvent:t,target:this._getEmitterTarget(t),delegateTarget:this.getElement().get(0)},i);return t=(0,l.BX)(n),t.cancel&&this._cancel(t),t},_getEmitterTarget:function(e){return(this.delegateSelector?(0,n.Z)(e.target).closest(this.delegateSelector):this.getElement()).get(0)},dispose:o.ZT});t["Z"]=d},32369:function(e,t,i){"use strict";var n=i(57678),o=i(90268),r=i(71389),a=i(52376),s=i(86403),l=i(49784),d=i(44099),u=i(63419),c=i(51709),h=i(78172),p=i(91866),f=i(78361),g="dxEventManager",m="dxEmitter",_=l.Z.inherit({ctor:function(){this._attachHandlers(),this.reset(),this._proxiedCancelHandler=this._cancelHandler.bind(this),this._proxiedAcceptHandler=this._acceptHandler.bind(this)},_attachHandlers:function(){o.Z.add(function(){var e=r["default"].getDocument();a.Z.subscribeGlobal(e,(0,h.V4)(p.Z.down,g),this._pointerDownHandler.bind(this)),a.Z.subscribeGlobal(e,(0,h.V4)(p.Z.move,g),this._pointerMoveHandler.bind(this)),a.Z.subscribeGlobal(e,(0,h.V4)([p.Z.up,p.Z.cancel].join(" "),g),this._pointerUpHandler.bind(this)),a.Z.subscribeGlobal(e,(0,h.V4)(f.u,g),this._mouseWheelHandler.bind(this))}.bind(this))},_eachEmitter:function(e){var t=this._activeEmitters||[],i=0;while(t.length>i){var n=t[i];if(!1===e(n))break;t[i]===n&&i++}},_applyToEmitters:function(e,t){this._eachEmitter((function(i){i[e].call(i,t)}))},reset:function(){this._eachEmitter(this._proxiedCancelHandler),this._activeEmitters=[]},resetEmitter:function(e){this._proxiedCancelHandler(e)},_pointerDownHandler:function(e){(0,h.N5)(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),i=this._emittersSet||[],n=t.length!==i.length;return(0,u.S6)(t,(function(e,t){return n=n||i[e]!==t,!n})),this._emittersSet=t,n},_closestEmitter:function(e){var t=this,i=[],o=(0,n.Z)(e.target);function r(n,o){o&&o.validatePointers(e)&&o.validate(e)&&(o.addCancelCallback(t._proxiedCancelHandler),o.addAcceptCallback(t._proxiedAcceptHandler),i.push(o))}while(o.length){var a=(0,s.aT)(o.get(0),m)||[];(0,u.S6)(a,r),o=o.parent()}return i},_acceptHandler:function(e,t){var i=this;this._eachEmitter((function(n){n!==e&&i._cancelEmitter(n,t)}))},_cancelHandler:function(e,t){this._cancelEmitter(e,t)},_cancelEmitter:function(e,t){var i=this._activeEmitters;t?e.cancel(t):e.reset(),e.removeCancelCallback(),e.removeAcceptCallback();var n=i.indexOf(e);n>-1&&i.splice(n,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})),e},_adjustWheelEvent:function(e){var t=null;if(this._eachEmitter((function(i){if(i.gesture){var n=i.getDirection(e);return"horizontal"!==n&&!e.shiftKey||"vertical"!==n&&e.shiftKey?(t=i,!1):void 0}})),t){var i=t.getDirection(e),n="both"===i&&!e.shiftKey||"vertical"===i,o=n?"pageY":"pageX";e[o]+=e.delta}},isActive:function(e){var t=!1;return this._eachEmitter((function(i){t=t||i.getElement().is(e)})),t}}),v=new _,y="dxEmitterSubscription",C=function(e){var t=e.emitter,i=e.events[0],n=e.events;(0,u.S6)(n,(function(o,r){(0,c.Z)(r,{noBubble:!e.bubble,setup:function(e){var n=(0,s.aT)(e,y)||{},o=(0,s.aT)(e,m)||{},a=o[i]||new t(e);n[r]=!0,o[i]=a,(0,s.aT)(e,m,o),(0,s.aT)(e,y,n)},add:function(e,t){var n=(0,s.aT)(e,m),o=n[i];o.configure((0,d.l)({delegateSelector:t.selector},t.data),t.type)},teardown:function(e){var t=(0,s.aT)(e,y),o=(0,s.aT)(e,m),a=o[i];delete t[r];var l=!0;(0,u.S6)(n,(function(e,i){return l=l&&!t[i],l})),l&&(v.isActive(e)&&v.resetEmitter(a),a&&a.dispose(),delete o[i])}})}))};t["Z"]=C},51709:function(e,t,i){"use strict";var n=i(63419),o=i(968),r=function(e,t){var i={};"noBubble"in t&&(i.noBubble=t.noBubble),"bindType"in t&&(i.bindType=t.bindType),"delegateType"in t&&(i.delegateType=t.delegateType),(0,n.S6)(["setup","teardown","add","remove","trigger","handle","_default","dispose"],(function(e,n){t[n]&&(i[n]=function(){var e=[].slice.call(arguments);return e.unshift(this),t[n].apply(t,e)})})),o.Z.fire(e,i)};r.callbacks=o.Z,t["Z"]=r},968:function(e,t,i){"use strict";var n=i(43815);t["Z"]=new n.Z},52376:function(e,t,i){"use strict";i.d(t,{Z:function(){return G}});var n=i(39299),o=i(968),r=i(44099),a=i(71389),s=i(18274),l=i(27154),d=i(50450),u=i(94795),c=i(33734),h=["pageX","pageY","screenX","screenY","clientX","clientY"],p=function(e,t){if(t[e]&&!t.touches||!t.touches)return t[e];var i=t.touches.length?t.touches:t.changedTouches;return i.length?i[0][e]:void 0};function f(e){h.forEach((function(t){e(t,(function(e){return p(t,e)}))}),this)}var g=i(48714),m=(0,s.Jj)(),_="dxEmptyEventType",v={mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},y={focusin:"focus",focusout:"blur"},C=["blur","focus","load"],b=["touchmove","wheel","mousewheel","touchstart"],x=["target","relatedTarget","delegateTarget","altKey","bubbles","cancelable","changedTouches","ctrlKey","detail","eventPhase","metaKey","shiftKey","view","char","code","charCode","key","keyCode","button","buttons","offsetX","offsetY","pointerId","pointerType","targetTouches","toElement","touches"];function w(e,t){return!(0,d.FJ)(e)&&"#document"!==e.nodeName&&a["default"].elementMatches(e,t)}var T,S=new WeakMap,I=0,E=function(){var e={};return o.Z.add((function(t,i){e[t]=i})),{getField:function(t,i){return e[t]&&e[t][i]},callMethod:function(t,i,n,o){return e[t]&&e[t][i]&&e[t][i].apply(n,o)}}}(),D=(0,l.Z)({on:O(F(Z((function(e,t,i,n,o){var r=R(e,t);r.addHandler(o,i,n)})))),one:O(F((function(e,t,i,n,o){D.on(e,t,i,n,(function n(){D.off(e,t,i,n),o.apply(this,arguments)}))}))),off:O(H(Z((function(e,t,i,n){var o=R(e,t);o.removeHandler(n,i)})))),trigger:O(L((function(e,t,i){var n=t.type,o=R(e,t.type);E.callMethod(n,"trigger",e,[t,i]),o.callHandlers(t,i);var a=E.getField(n,"noBubble")||t.isPropagationStopped()||-1!==C.indexOf(n);if(!a){var s=[];!function e(t){var i,n=null!==(i=t.parentNode)&&void 0!==i?i:t.host;n&&(s.push(n),e(n))}(e),s.push(m);var l=0;while(s[l]&&!t.isPropagationStopped()){var u=R(s[l],t.type);u.callHandlers((0,r.l)(t,{currentTarget:s[l]}),i),l++}}(e.nodeType||(0,d.FJ)(e))&&(E.callMethod(n,"_default",e,[t,i]),$(n,e))}))),triggerHandler:O(L((function(e,t,i){var n=R(e,t.type);n.callHandlers(t,i)})))});function k(e,t){var i=e[0];if(i)if(a["default"].isNode(i)||(0,d.FJ)(i))t.apply(D,e);else{if((0,d.HD)(i)||!("length"in i))throw c.Z.Error("E0025");var n=Array.prototype.slice.call(e,0);Array.prototype.forEach.call(i,(function(e){n[0]=e,k(n,t)}))}}function O(e){return function(){k(arguments,e)}}function A(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0,!0}});m.addEventListener("test",null,t)}catch(i){}return e}var P=(0,g.Z)(A),M=(e,t)=>(0,d.FJ)(e)?M(e.document,t):e.contains?e.contains(t):!!(t.compareDocumentPosition(e)&t.DOCUMENT_POSITION_CONTAINS);function R(e,t){var i=S.get(e);t=t||"";var n=t.split("."),o=n.slice(1),r=!!n[0];t=n[0]||_,i||(i={},S.set(e,i)),i[t]||(i[t]={handleObjects:[],nativeHandler:null});var s=i[t];return{addHandler:function(i,n,l){var d=function(n,o){var r,a,s=[n],d=n.currentTarget,u=n.relatedTarget;t in v&&(r=u&&d&&(u===d||M(d,u))),void 0!==o&&s.push(o),E.callMethod(t,"handle",e,[n,l]),r||(a=i.apply(d,s)),!1===a&&(n.preventDefault(),n.stopPropagation())},u={handler:i,wrappedHandler:function(t,i){if(!T||t.type!==T)if(t.data=l,t.delegateTarget=e,n){var o=t.target;while(o&&o!==e)w(o,n)&&(t.currentTarget=o,d(t,i)),o=o.parentNode}else t.currentTarget=t.delegateTarget||t.target,d(t,i)},selector:n,type:t,data:l,namespace:o.join("."),namespaces:o,guid:++I};s.handleObjects.push(u);var c,h=1===s.handleObjects.length,p=h&&r;p&&(p=!E.callMethod(t,"setup",e,[l,o,i])),p&&(s.nativeHandler=B(t),P()&&b.indexOf(t)>-1&&(c={passive:!1}),s.removeListener=a["default"].listen(e,v[t]||t,s.nativeHandler,c)),E.callMethod(t,"add",e,[u])},removeHandler:function(n,a){var s=function(t){var r=i[t];if(r.handleObjects.length){var s;r.handleObjects=r.handleObjects.filter((function(i){var r=o.length&&!V(i.namespaces,o)||n&&i.handler!==n||a&&i.selector!==a;return r||(s=i.handler,E.callMethod(t,"remove",e,[i])),r}));var l=!r.handleObjects.length,d=l&&t!==_;d&&(E.callMethod(t,"teardown",e,[o,s]),r.nativeHandler&&r.removeListener(),delete i[t])}else delete i[t]};if(r)s(t);else for(var l in i)s(l);var d=0===Object.keys(i).length;d&&S.delete(e)},callHandlers:function(e,t){var n=!1,r=function(i){n||o.length&&!V(i.namespaces,o)||(i.wrappedHandler(e,t),n=e.isImmediatePropagationStopped())};s.handleObjects.forEach(r),o.length&&i[_]&&i[_].handleObjects.forEach(r)}}}function B(e){return function(t,i){var n=R(this,e);t=D.Event(t),n.callHandlers(t,i)}}function V(e,t){for(var i=0;i<t.length;i++)if(e.indexOf(t[i])<0)return!1;return!0}function F(e){return function(t,i,n,o,r){r||(r=o,o=void 0),"string"!==typeof n&&(o=n,n=void 0),r||"string"!==typeof i||(r=o||n,n=void 0,o=void 0),e(t,i,n,o,r)}}function H(e){return function(t,i,n,o){"function"===typeof n&&(o=n,n=void 0),e(t,i,n,o)}}function L(e){return function(t,i,n){"string"===typeof i&&(i={type:i}),i.target||(i.target=t),i.currentTarget=t,i.delegateTarget||(i.delegateTarget=t),!i.type&&i.originalEvent&&(i.type=i.originalEvent.type),e(t,i instanceof D.Event?i:D.Event(i),n)}}function N(e){return D.Event=function(t,i){if(!(this instanceof D.Event))return new D.Event(t,i);t||(t={}),"string"===typeof t&&(t={type:t}),i||(i={}),e.call(this,t,i)},(0,n.Z)(D.Event.prototype,{_propagationStopped:!1,_immediatePropagationStopped:!1,_defaultPrevented:!1,isPropagationStopped:function(){return!!(this._propagationStopped||this.originalEvent&&this.originalEvent.propagationStopped)},stopPropagation:function(){this._propagationStopped=!0,this.originalEvent&&this.originalEvent.stopPropagation()},isImmediatePropagationStopped:function(){return this._immediatePropagationStopped},stopImmediatePropagation:function(){this.stopPropagation(),this._immediatePropagationStopped=!0,this.originalEvent&&this.originalEvent.stopImmediatePropagation()},isDefaultPrevented:function(){return!!(this._defaultPrevented||this.originalEvent&&this.originalEvent.defaultPrevented)},preventDefault:function(){this._defaultPrevented=!0,this.originalEvent&&this.originalEvent.preventDefault()}}),D.Event}function Z(e){var t=function(t,i){if(i&&i.indexOf(" ")>-1){var n=Array.prototype.slice.call(arguments,0);i.split(" ").forEach((function(t){n[1]=t,e.apply(this,n)}))}else e.apply(this,arguments)};return function(e,i){if("object"===typeof i){var n=Array.prototype.slice.call(arguments,0);for(var o in i)n[1]=o,n[n.length-1]=i[o],t.apply(this,n)}else t.apply(this,arguments)}}function $(e,t){var i=y[e]||e;(function(e,t){return"click"===e&&"a"===t.localName})(e,t)||(0,d.mf)(t[i])&&(T=e,t[i](),T=void 0)}function W(e){return function(e){return null==e.which&&0===e.type.indexOf("key")}(e)?null!=e.charCode?e.charCode:e.keyCode:function(e){return!e.which&&void 0!==e.button&&/^(?:mouse|pointer|contextmenu|drag|drop)|click/.test(e.type)}(e)?{1:1,2:3,3:1,4:2}[e.button]:e.which}function K(e){e&&(D.Event=e,D.Event.prototype=e.prototype)}function z(e,t,i){Object.defineProperty(i||D.Event.prototype,e,{enumerable:!0,configurable:!0,get:function(){return this.originalEvent&&t(this.originalEvent)},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})}K(N((function(e,t){var i,o=e instanceof D.Event||(0,s.Ym)()&&e instanceof m.Event||(null===(i=e.view)||void 0===i?void 0:i.Event)&&e instanceof e.view.Event;o?(this.originalEvent=e,this.type=e.type,this.currentTarget=void 0,Object.prototype.hasOwnProperty.call(e,"isTrusted")&&(this.isTrusted=e.isTrusted),this.timeStamp=e.timeStamp||Date.now()):(0,n.Z)(this,e),z("which",W,this),0===e.type.indexOf("touch")&&(delete t.pageX,delete t.pageY),(0,n.Z)(this,t),this.guid=++I}))),x.forEach((e=>z(e,(t=>t[e])))),f(z);var j=(0,u["default"])(),U=(0,u["default"])();D.set=function(e){j.fire(),D.inject(e),K(e.Event),U.fire()},D.subscribeGlobal=function(){k(arguments,F((function(){var e=arguments;D.on.apply(this,e),j.add((function(){var t=Array.prototype.slice.call(e,0);t.splice(3,1),D.off.apply(this,t)})),U.add((function(){D.on.apply(this,e)}))})))},D.forcePassiveFalseEventNames=b,D.passiveEventHandlersSupported=P;var G=D},80736:function(e,t,i){"use strict";var n=i(57678),o=i(52376),r=i(49784),a=i(78172),s="compositionstart",l="compositionend",d="keydown",u="KeyboardProcessor",c=e=>({keyName:(0,a.EV)(e),key:e.key,code:e.code,ctrl:e.ctrlKey,location:e.location,metaKey:e.metaKey,shift:e.shiftKey,alt:e.altKey,which:e.which,originalEvent:e}),h=r.Z.inherit({_keydown:(0,a.V4)(d,u),_compositionStart:(0,a.V4)(s,u),_compositionEnd:(0,a.V4)(l,u),ctor:function(e){e=e||{},e.element&&(this._element=(0,n.Z)(e.element)),e.focusTarget&&(this._focusTarget=e.focusTarget),this._handler=e.handler,this._element&&(this._processFunction=e=>{var t=(0,n.Z)(this._focusTarget).toArray(),i=this._focusTarget&&this._focusTarget!==e.target&&!t.includes(e.target),o=this._isComposingJustFinished&&229===e.which||this._isComposing||i;this._isComposingJustFinished=!1,o||this.process(e)},this._toggleProcessingWithContext=this.toggleProcessing.bind(this),o.Z.on(this._element,this._keydown,this._processFunction),o.Z.on(this._element,this._compositionStart,this._toggleProcessingWithContext),o.Z.on(this._element,this._compositionEnd,this._toggleProcessingWithContext))},dispose:function(){this._element&&(o.Z.off(this._element,this._keydown,this._processFunction),o.Z.off(this._element,this._compositionStart,this._toggleProcessingWithContext),o.Z.off(this._element,this._compositionEnd,this._toggleProcessingWithContext)),this._element=void 0,this._handler=void 0},process:function(e){this._handler(c(e))},toggleProcessing:function(e){var{type:t}=e;this._isComposing=t===s,this._isComposingJustFinished=!this._isComposing}});h.createKeyDownOptions=c,t["Z"]=h},78361:function(e,t,i){"use strict";i.d(t,{u:function(){return s}});var n=i(57678),o=i(52376),r=i(51709),a=i(78172),s="dxmousewheel",l="dxWheel",d="wheel",u=0,c=30,h={setup:function(e){var t=(0,n.Z)(e);o.Z.on(t,(0,a.V4)(d,l),h._wheelHandler.bind(h))},teardown:function(e){o.Z.off(e,".".concat(l))},_wheelHandler:function(e){var{deltaMode:t,deltaY:i,deltaX:n,deltaZ:o}=e.originalEvent;(0,a.BX)({type:s,originalEvent:e,delta:this._normalizeDelta(i,t),deltaX:n,deltaY:i,deltaZ:o,deltaMode:t,pointerType:"mouse"}),e.stopPropagation()},_normalizeDelta(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u;return t===u?-e:-c*e}};(0,r.Z)(s,h)},98267:function(e,t,i){"use strict";i.d(t,{BL:function(){return h},IO:function(){return g},Zu:function(){return m},pB:function(){return p},ut:function(){return f}});var n=i(57678),o=i(86403),r=i(37045),a=i(63419),s=i(25445),l=i(51709),d=i(78172),u=i(57553),c=i(32369),h="dxdragstart",p="dxdrag",f="dxdragend",g="dxdragenter",m="dxdragleave",_="dxdrop",v="dxDragEventsCount",y=[],C=[],b=[],x={setup:function(e,t){var i=y.includes(e);i||(y.push(e),C.push([]),b.push(t||{}))},add:function(e,t){var i=y.indexOf(e);this.updateEventsCounter(e,t.type,1);var n=t.selector;C[i].includes(n)||C[i].push(n)},updateEventsCounter:function(e,t,i){if([g,m,_].indexOf(t)>-1){var n=(0,o.aT)(e,v)||0;(0,o.aT)(e,v,Math.max(0,n+i))}},remove:function(e,t){this.updateEventsCounter(e,t.type,-1)},teardown:function(e){var t=(0,o.aT)(e,v);if(!t){var i=y.indexOf(e);y.splice(i,1),C.splice(i,1),b.splice(i,1),(0,o.NU)(e,v)}}};(0,l.Z)(g,x),(0,l.Z)(m,x),(0,l.Z)(_,x);var w=function(e){var t=y.indexOf(e.get(0)),i=C[t].filter((e=>e)),n=e.find(i.join(", "));return C[t].includes(void 0)&&(n=n.add(e)),n},T=function(e){var t=y.indexOf(e.get(0));return b[t]},S=function(e,t){return e.itemPositionFunc?e.itemPositionFunc(t):t.offset()},I=function(e,t){return e.itemSizeFunc?e.itemSizeFunc(t):{width:t.get(0).getBoundingClientRect().width,height:t.get(0).getBoundingClientRect().height}},E=u.Z.inherit({ctor:function(e){this.callBase(e),this.direction="both"},_init:function(e){this._initEvent=e},_start:function(e){if(e=this._fireEvent(h,this._initEvent),this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset,e.targetElements||null===e.targetElements){var t=(0,r.sE)(e.targetElements||[]);this._dropTargets=a.UI(t,(function(e){return(0,n.Z)(e).get(0)}))}else this._dropTargets=y},_move:function(e){var t=(0,d.a0)(e),i=this._calculateOffset(t);e=this._fireEvent(p,e,{offset:i}),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,i){return null!=t&&(e=Math.max(e,-t)),null!=i&&(e=Math.min(e,i)),e},_processDropTargets:function(e){var t=this._findDropTarget(e),i=t===this._currentDropTarget;i||(this._fireDropTargetEvent(e,m),this._currentDropTarget=t,this._fireDropTargetEvent(e,g))},_fireDropTargetEvent:function(e,t){if(this._currentDropTarget){var i={type:t,originalEvent:e,draggingElement:this._$element.get(0),target:this._currentDropTarget};(0,d.BX)(i)}},_findDropTarget:function(e){var t,i=this;return a.S6(y,(function(o,r){if(i._checkDropTargetActive(r)){var s=(0,n.Z)(r);a.S6(w(s),(function(o,r){var a=(0,n.Z)(r);i._checkDropTarget(T(s),a,(0,n.Z)(t),e)&&(t=r)}))}})),t},_checkDropTargetActive:function(e){var t=!1;return a.S6(this._dropTargets,(function(i,n){return t=t||n===e||(0,s.r3)(n,e),!t})),t},_checkDropTarget:function(e,t,i,o){var r=t.get(0)===(0,n.Z)(o.target).get(0);if(r)return!1;var a=S(e,t);if(o.pageX<a.left)return!1;if(o.pageY<a.top)return!1;var s=I(e,t);return!(o.pageX>a.left+s.width)&&(!(o.pageY>a.top+s.height)&&((!i.length||!i.closest(t).length)&&(!(e.checkDropTarget&&!e.checkDropTarget(t,o))&&t)))},_end:function(e){var t=(0,d.a0)(e);this._fireEvent(f,e,{offset:this._calculateOffset(t)}),this._fireDropTargetEvent(e,_),delete this._currentDropTarget}});(0,c.Z)({emitter:E,events:[h,p,f]})},57553:function(e,t,i){"use strict";var n=i(57678),o=i(52376),r=i(30390),a=i(19071),s=i(48714),l=i(25445),d=i(90268),u=i(94381),c=i(72264),h=i(50450),p=i(78172),f=i(36494),g=d.Z.add,m=Math.abs,_=0,v=1,y=2,C=10,b=0,x=180,w=function(){return(0,a.Hj)("pointer-events")},T=(0,s.Z)((function(){var e="desktop"===r.Z.real().deviceType;if(!w()||!e)return c.ZT;var t=(0,n.Z)("<div>").addClass("dx-gesture-cover").css("pointerEvents","none");return o.Z.subscribeGlobal(t,"dxmousewheel",(function(e){e.preventDefault()})),g((function(){t.appendTo("body")})),function(e,i){t.css("pointerEvents",e?"all":"none"),e&&t.css("cursor",i)}})),S=function(e,t){var i=T();i(e,t)},I=f.Z.inherit({gesture:!0,configure:function(e){this.getElement().css("msTouchAction",e.immediate?"pinch-zoom":""),this.callBase(e)},allowInterruptionByMouseWheel:function(){return this._stage!==y},getDirection:function(){return this.direction},_cancel:function(){this.callBase.apply(this,arguments),this._toggleGestureCover(!1),this._stage=_},start:function(e){e._needSkipEvent||(0,p.r1)(e)?this._cancel(e):(this._startEvent=(0,p.yM)(e),this._startEventData=(0,p.a0)(e),this._stage=v,this._init(e),this._setupImmediateTimer())},_setupImmediateTimer:function(){clearTimeout(this._immediateTimer),this._immediateAccepted=!1,this.immediate&&(this._immediateTimer=setTimeout(function(){this._immediateAccepted=!0}.bind(this),x))},move:function(e){if(this._stage===v&&this._directionConfirmed(e)){if(this._stage=y,this._resetActiveElement(),this._toggleGestureCover(!0),this._clearSelection(e),this._adjustStartEvent(e),this._start(this._startEvent),this._stage===_)return;this._requestAccept(e),this._move(e),this._forgetAccept()}else this._stage===y&&(this._clearSelection(e),this._move(e))},_directionConfirmed:function(e){var t=this._getTouchBoundary(e),i=(0,p.hM)(this._startEventData,(0,p.a0)(e)),n=m(i.x),o=m(i.y),r=this._validateMove(t,n,o),a=this._validateMove(t,o,n),s=this.getDirection(e),l="both"===s&&(r||a),d="horizontal"===s&&r,u="vertical"===s&&a;return l||d||u||this._immediateAccepted},_validateMove:function(e,t,i){return t&&t>=e&&(!this.immediate||t>=i)},_getTouchBoundary:function(e){return this.immediate||(0,p.pR)(e)?b:C},_adjustStartEvent:function(e){var t=this._getTouchBoundary(e),i=(0,p.hM)(this._startEventData,(0,p.a0)(e));this._startEvent.pageX+=(0,u.Xx)(i.x)*t,this._startEvent.pageY+=(0,u.Xx)(i.y)*t},_resetActiveElement:function(){"ios"===r.Z.real().platform&&this.getElement().find(":focus").length&&(0,l.M3)()},_toggleGestureCover:function(e){this._toggleGestureCoverImpl(e)},_toggleGestureCoverImpl:function(e){var t=this._stage===y;t&&S(e,this.getElement().css("cursor"))},_clearSelection:function(e){(0,p.pR)(e)||(0,p.z6)(e)||(0,l.MO)()},end:function(e){this._toggleGestureCover(!1),this._stage===y?this._end(e):this._stage===v&&this._stop(e),this._stage=_},dispose:function(){clearTimeout(this._immediateTimer),this.callBase.apply(this,arguments),this._toggleGestureCover(!1)},_init:c.ZT,_start:c.ZT,_move:c.ZT,_stop:c.ZT,_end:c.ZT});I.initialTouchBoundary=C,I.touchBoundary=function(e){if(!(0,h.$K)(e))return C;C=e},t["Z"]=I},80647:function(e,t,i){"use strict";i.d(t,{B:function(){return c},u:function(){return f}});var n=i(52376),o=i(86403),r=i(49784),a=i(30390),s=i(51709),l=i(78172),d=i(91866),u="dxHoverStart",c="dxhoverstart",h=(0,l.V4)(d.Z.enter,u),p="dxHoverEnd",f="dxhoverend",g=(0,l.V4)(d.Z.leave,p),m=r.Z.inherit({noBubble:!0,ctor:function(){this._handlerArrayKeyPath=this._eventNamespace+"_HandlerStore"},setup:function(e){(0,o.aT)(e,this._handlerArrayKeyPath,{})},add:function(e,t){var i=this,r=function(e){i._handler(e)};n.Z.on(e,this._originalEventName,t.selector,r),(0,o.aT)(e,this._handlerArrayKeyPath)[t.guid]=r},_handler:function(e){(0,l.z6)(e)||a.Z.isSimulator()||(0,l.BX)({type:this._eventName,originalEvent:e,delegateTarget:e.delegateTarget})},remove:function(e,t){var i=(0,o.aT)(e,this._handlerArrayKeyPath)[t.guid];n.Z.off(e,this._originalEventName,t.selector,i)},teardown:function(e){(0,o.NU)(e,this._handlerArrayKeyPath)}}),_=m.inherit({ctor:function(){this._eventNamespace=u,this._eventName=c,this._originalEventName=h,this.callBase()},_handler:function(e){var t=e.pointers||[];t.length||this.callBase(e)}}),v=m.inherit({ctor:function(){this._eventNamespace=p,this._eventName=f,this._originalEventName=g,this.callBase()}});(0,s.Z)(c,new _),(0,s.Z)(f,new v)},82048:function(e,t,i){"use strict";i.r(t),i.d(t,{Event:function(){return d},off:function(){return a},on:function(){return o},one:function(){return r},trigger:function(){return s},triggerHandler:function(){return l}});var n=i(52376),o=n.Z.on,r=n.Z.one,a=n.Z.off,s=n.Z.trigger,l=n.Z.triggerHandler,d=n.Z.Event},91866:function(e,t,i){"use strict";i.d(t,{Z:function(){return N}});var n=i(230),o=i(63419),r=i(30390),a=i(51709),s=i(44099),l=i(52376),d=i(31517),u=i(71389),c=i(49784),h=i(78172),p="dxPointerEvents",f=c.Z.inherit({ctor:function(e,t){this._eventName=e,this._originalEvents=(0,h.V4)(t,p),this._handlerCount=0,this.noBubble=this._isNoBubble()},_isNoBubble:function(){var e=this._eventName;return"dxpointerenter"===e||"dxpointerleave"===e},_handler:function(e){var t,i=this._getDelegateTarget(e),n={type:this._eventName,pointerType:e.pointerType||(0,h.J6)(e),originalEvent:e,delegateTarget:i,timeStamp:d.Z.mozilla?(new Date).getTime():e.timeStamp},o=e.originalEvent;if(null!==o&&void 0!==o&&null!==(t=o.target)&&void 0!==t&&t.shadowRoot){var r,a,s=null!==(r=o.path)&&void 0!==r?r:null===(a=o.composedPath)||void 0===a?void 0:a.call(o);n.target=s[0]}return this._fireEvent(n)},_getDelegateTarget:function(e){var t;return this.noBubble&&(t=e.delegateTarget),t},_fireEvent:function(e){return(0,h.BX)(e)},_setSelector:function(e){this._selector=this.noBubble&&e?e.selector:null},_getSelector:function(){return this._selector},setup:function(){return!0},add:function(e,t){if(this._handlerCount<=0||this.noBubble){e=this.noBubble?e:u["default"].getDocument(),this._setSelector(t);var i=this;l.Z.on(e,this._originalEvents,this._getSelector(),(function(e){i._handler(e)}))}this.noBubble||this._handlerCount++},remove:function(e){this._setSelector(e),this.noBubble||this._handlerCount--},teardown:function(e){this._handlerCount&&!this.noBubble||(e=this.noBubble?e:u["default"].getDocument(),this._originalEvents!=="."+p&&l.Z.off(e,this._originalEvents,this._getSelector()))},dispose:function(e){e=this.noBubble?e:u["default"].getDocument(),l.Z.off(e,this._originalEvents)}}),g=f,m={dxpointerdown:"touchstart",dxpointermove:"touchmove",dxpointerup:"touchend",dxpointercancel:"touchcancel",dxpointerover:"",dxpointerout:"",dxpointerenter:"",dxpointerleave:""},_=function(e){var t=[];return(0,o.S6)(e.touches,(function(e,i){t.push((0,s.l)({pointerId:i.identifier},i))})),{pointers:t,pointerId:e.changedTouches[0].identifier}},v=function(e){return"ios"===r.Z.real().platform&&("dxpointerdown"===e||"dxpointerup"===e)},y=g.inherit({ctor:function(){this.callBase.apply(this,arguments),this._pointerId=0},_handler:function(e){if(v(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((0,s.l)(_(e.originalEvent),e))}});y.map=m,y.normalize=_;var C,b=y,x=i(90268),w=function(e,t){x.Z.add((function(){e.split(" ").forEach((function(e){u["default"].listen(u["default"].getDocument(),e,t,!0)}))}))},T=function(e,t,i){i=i||function(){};var n=[],r=function(e){var i=-1;return(0,o.S6)(n,(function(n,o){return!t(e,o)||(i=n,!1)})),i},a=function(e){var t=r(e);t>-1&&n.splice(t,1)};w(e.dxpointerdown,(function(e){-1===r(e)&&(i(e),n.push(e))})),w(e.dxpointermove,(function(e){n[r(e)]=e})),w(e.dxpointerup,a),w(e.dxpointercancel,a),this.pointers=function(){return n},this.reset=function(){n=[]}},S=T,I={dxpointerdown:"mousedown",dxpointermove:"mousemove",dxpointerup:"mouseup",dxpointercancel:"",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},E=function(e){return e.pointerId=1,{pointers:C.pointers(),pointerId:1}},D=!1,k=function(){D||(C=new S(I,(function(){return!0})),D=!0)},O=g.inherit({ctor:function(){this.callBase.apply(this,arguments),k()},_fireEvent:function(e){return this.callBase((0,s.l)(E(e.originalEvent),e))}});O.map=I,O.normalize=E,O.activate=k,O.resetObserver=function(){C.reset()};var A=O,P={dxpointerdown:"touchstart mousedown",dxpointermove:"touchmove mousemove",dxpointerup:"touchend mouseup",dxpointercancel:"touchcancel",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},M=!1,R=function(){M||(A.activate(),M=!0)},B=g.inherit({EVENT_LOCK_TIMEOUT:100,ctor:function(){this.callBase.apply(this,arguments),R()},_handler:function(e){var t=(0,h.N5)(e);if(t||(this._skipNextEvents=!0),!t||!this._mouseLocked){if(!t||!this._skipNextEvents)return this.callBase(e);this._skipNextEvents=!1,this._mouseLocked=!0,clearTimeout(this._unlockMouseTimer);var i=this;this._unlockMouseTimer=setTimeout((function(){i._mouseLocked=!1}),this.EVENT_LOCK_TIMEOUT)}},_fireEvent:function(e){var t=(0,h.N5)(e.originalEvent)?A.normalize:b.normalize;return this.callBase((0,s.l)(t(e.originalEvent),e))},dispose:function(){this.callBase(),this._skipNextEvents=!1,this._mouseLocked=!1,clearTimeout(this._unlockMouseTimer)}});B.map=P,B.resetObserver=A.resetObserver;var V=B,F=(e,t)=>{var{tablet:i,phone:n}=t;return!e.touch||i||n?e.touch?b:A:V},H=F(n,r.Z.real());(0,o.S6)(H.map,((e,t)=>{(0,a.Z)(e,new H(e,t))}));var L={down:"dxpointerdown",up:"dxpointerup",move:"dxpointermove",cancel:"dxpointercancel",enter:"dxpointerenter",leave:"dxpointerleave",over:"dxpointerover",out:"dxpointerout"},N=L},14324:function(e,t,i){"use strict";i.d(t,{x:function(){return s}});var n=i(57678),o=i(86403),r=i(52376),a=i(51709),s="dxremove",l="dxRemoveEvent";(0,o.WD)((function(e){e=[].slice.call(e);for(var t=0;t<e.length;t++){var i=(0,n.Z)(e[t]);i.prop(l)&&(i[0][l]=null,r.Z.triggerHandler(i,s))}})),(0,a.Z)(s,{noBubble:!0,setup:function(e){(0,n.Z)(e).prop(l,!0)}})},86859:function(e,t,i){"use strict";i.d(t,{Mr:function(){return u},SI:function(){return d},T_:function(){return h},V4:function(){return f},WD:function(){return c},bB:function(){return l},dG:function(){return v},wt:function(){return p}});var n=i(52376),o=i(80736),r=i(78172);function a(e,t){return t?(0,r.V4)(e,t):e}function s(e,t){return"function"===typeof e?e(t):e.execute(t)}var l={on:(e,t,i,o)=>{var{selector:r,showTimeout:l,hideTimeout:d,namespace:u}=o;n.Z.on(e,a("dxactive",u),r,{timeout:l},(e=>s(t,{event:e,element:e.currentTarget}))),n.Z.on(e,a("dxinactive",u),r,{timeout:d},(e=>s(i,{event:e,element:e.currentTarget})))},off:(e,t)=>{var{namespace:i,selector:o}=t;n.Z.off(e,a("dxactive",i),o),n.Z.off(e,a("dxinactive",i),o)}},d={on:function(e,t){var{namespace:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n.Z.on(e,a("dxresize",i),t)},off:function(e){var{namespace:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.Z.off(e,a("dxresize",t))}},u={on:(e,t,i,o)=>{var{selector:r,namespace:l}=o;n.Z.on(e,a("dxhoverend",l),r,(e=>i(e))),n.Z.on(e,a("dxhoverstart",l),r,(e=>s(t,{element:e.target,event:e})))},off:(e,t)=>{var{selector:i,namespace:o}=t;n.Z.off(e,a("dxhoverstart",o),i),n.Z.off(e,a("dxhoverend",o),i)}},c={on:(e,t,i,o)=>{var{namespace:r}=o;n.Z.on(e,a("dxhiding",r),i),n.Z.on(e,a("dxshown",r),t)},off:(e,t)=>{var{namespace:i}=t;n.Z.off(e,a("dxhiding",i)),n.Z.off(e,a("dxshown",i))}},h={on:(e,t,i,o)=>{var{namespace:r}=o;n.Z.on(e,a("focusin",r),t),n.Z.on(e,a("focusout",r),i)},off:(e,t)=>{var{namespace:i}=t;n.Z.off(e,a("focusin",i)),n.Z.off(e,a("focusout",i))},trigger:e=>n.Z.trigger(e,"focus")},p={on:function(e,t){var{namespace:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n.Z.on(e,a("dxclick",i),t)},off:function(e){var{namespace:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.Z.off(e,a("dxclick",t))}},f={on:function(e,t){var{namespace:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n.Z.on(e,a("click",i),t)},off:function(e){var{namespace:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.Z.off(e,a("click",t))}},g=0,m={},_=()=>"keyboardProcessorId".concat(g++),v={on:(e,t,i)=>{var n=_();return m[n]=new o.Z({element:e,focusTarget:t,handler:i}),n},off:e=>{e&&m[e]&&(m[e].dispose(),delete m[e])},_getProcessor:e=>m[e]}},78172:function(e,t,i){"use strict";i.d(t,{V4:function(){return M},yM:function(){return k},a0:function(){return T},hM:function(){return S},J6:function(){return y},BX:function(){return O},qK:function(){return P},G7:function(){return I},j1:function(){return R},pR:function(){return x},N5:function(){return b},bX:function(){return C},z6:function(){return w},r1:function(){return D},EV:function(){return A}});var n=i(57678),o=i(33734),r=(e,t)=>{if(!t)throw o.Z.Error("E0017");return Array.isArray(e)?e.map((e=>r(e,t))).join(" "):-1!==e.indexOf(" ")?r(e.split(/\s+/g),t):"".concat(e,".").concat(t)},a=r,s=i(52376),l=i(63419),d=i(44099),u=i(23191),c={backspace:"backspace",tab:"tab",enter:"enter",escape:"escape",pageup:"pageUp",pagedown:"pageDown",end:"end",home:"home",arrowleft:"leftArrow",arrowup:"upArrow",arrowright:"rightArrow",arrowdown:"downArrow",delete:"del"," ":"space",f:"F",a:"A","*":"asterisk","-":"minus",alt:"alt",control:"control",shift:"shift"},h={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",189:"minus",173:"minus",16:"shift",17:"control",18:"alt"},p={dx:/^dx/i,mouse:/(mouse|wheel)/i,touch:/^touch/i,keyboard:/^key/i,pointer:/^(ms)?pointer/i},f=e=>e,g=e=>f(s.Z.Event(e,e),e),m=e=>"dx"===y(e),_=e=>"mouse"===y(e),v=e=>"touch"===y(e),y=e=>{var{type:t}=e,i="other";return(0,l.S6)(p,(function(e){if(this.test(t))return i=e,!1})),i},C=e=>"pointer"===y(e),b=e=>_(e)||(C(e)||m(e))&&"mouse"===e.pointerType,x=e=>e&&"dxmousewheel"===e.type,w=e=>v(e)||(C(e)||m(e))&&"touch"===e.pointerType,T=e=>{var{pageX:t,pageY:i,timeStamp:n}=e;return{x:t,y:i,time:n}},S=(e,t)=>({x:t.x-e.x,y:t.y-e.y,time:t.time-e.time||1}),I=e=>{var{originalEvent:t,pointers:i}=e;return v(e)?(t.touches||[]).length:m(e)?(i||[]).length:0},E=!1,D=e=>{if(E)return!0;var{target:t}=e,i=(0,n.Z)(t),o=(null===t||void 0===t?void 0:t.isContentEditable)||(null===t||void 0===t?void 0:t.hasAttribute("contenteditable")),r=i.is("input, textarea, select")||o;if(x(e)){var a=i.is("textarea")&&i.hasClass("dx-texteditor-input");if(a||o)return!1;var s=i.is("input[type='number'], textarea, select")&&i.is(":focus");return s}return b(e)?r||e.which>1:w(e)?r&&(0,u.si)(i):void 0},k=(e,t)=>{var i=g(e);return t&&(0,d.l)(i,t),i},O=e=>{var{originalEvent:t,delegateTarget:i}=e,n=k(t,e);return s.Z.trigger(i||n.target,n),n},A=e=>{var{key:t,which:i}=e,n=c[null===t||void 0===t?void 0:t.toLowerCase()]||t,o=h[i];return o&&n===t?o:!n&&i?String.fromCharCode(i):n},P=e=>{var{key:t,which:i}=e;return t||String.fromCharCode(i)},M=a,R=e=>{var{ctrlKey:t,metaKey:i}=e;return t||i}},33753:function(e,t,i){"use strict";i.d(t,{Ly:function(){return s},U_:function(){return l},Uo:function(){return a}});var n=i(57678),o=i(52376),r=function(e){return function(t){for(var i=(0,n.Z)(t||"body"),r=i.filter(".dx-visibility-change-handler").add(i.find(".dx-visibility-change-handler")),a=0;a<r.length;a++)o.Z.triggerHandler(r[a],e)}},a=r("dxshown"),s=r("dxhiding"),l=r("dxresize")},29966:function(e,t,i){"use strict";var n=i(50450),o=i(14435),r=i(46282),a=i(66713),s=i(27154);i(52977);t["Z"]=(0,s.Z)({format:function(e,t){var i=(0,n.HD)(t)&&""!==t||(0,n.PO)(t)||(0,n.mf)(t),o=(0,n.kE)(e)||(0,n.J_)(e);return i&&o?(0,n.mf)(t)?t(e):((0,n.HD)(t)&&(t={type:t}),(0,n.kE)(e)?r.Z.format(e,t):(0,n.J_)(e)?a.Z.format(e,t):void 0):(0,n.$K)(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 a.Z.format(t,e)})).join(" ")}:e},getDateFormatByDifferences:function(e,t){var i=[],n=t&&e.millisecond&&!(e.year||e.month||e.day);return n?i.push((function(e){return e.getSeconds()+e.getMilliseconds()/1e3+"s"})):e.millisecond&&i.push("millisecond"),(e.hour||e.minute||!n&&e.second)&&i.unshift(this.getTimeFormat(e.second)),e.year&&e.month&&e.day?t&&"month"===t?"monthandyear":(i.unshift("shortdate"),this._normalizeFormat(i)):e.year&&e.month?"monthandyear":e.year&&e.quarter?"quarterandyear":e.year?"year":e.quarter?"quarter":e.month&&e.day?(t?i.unshift((function(e){return a.Z.getMonthNames("abbreviated")[e.getMonth()]+" "+a.Z.format(e,"day")})):i.unshift("monthandday"),this._normalizeFormat(i)):e.month?"month":e.day?(t?i.unshift("day"):i.unshift((function(e){return a.Z.format(e,"dayofweek")+", "+a.Z.format(e,"day")})),this._normalizeFormat(i)):this._normalizeFormat(i)},getDateFormatByTicks:function(e){var t,i,n;if(e.length>1)for(t=o.Z.getDatesDifferences(e[0],e[1]),n=1;n<e.length-1;n++)i=o.Z.getDatesDifferences(e[n],e[n+1]),t.count<i.count&&(t=i);else t={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};var r=this.getDateFormatByDifferences(t);return r},getDateFormatByTickInterval:function(e,t,i){var r,a=function(e,t,i){switch(t){case"year":case"quarter":e.month=i;case"month":e.day=i;case"week":case"day":e.hour=i;case"hour":e.minute=i;case"minute":e.second=i;case"second":e.millisecond=i}};i=(0,n.HD)(i)?i.toLowerCase():i;var s=o.Z.getDatesDifferences(e,t);e!==t&&function(e,t,i){!i.getMilliseconds()&&i.getSeconds()?i.getSeconds()-t.getSeconds()===1&&(e.millisecond=!0,e.second=!1):!i.getSeconds()&&i.getMinutes()?i.getMinutes()-t.getMinutes()===1&&(e.second=!0,e.minute=!1):!i.getMinutes()&&i.getHours()?i.getHours()-t.getHours()===1&&(e.minute=!0,e.hour=!1):!i.getHours()&&i.getDate()>1?i.getDate()-t.getDate()===1&&(e.hour=!0,e.day=!1):1===i.getDate()&&i.getMonth()?i.getMonth()-t.getMonth()===1&&(e.day=!0,e.month=!1):!i.getMonth()&&i.getFullYear()&&i.getFullYear()-t.getFullYear()===1&&(e.month=!0,e.year=!1)}(s,e>t?t:e,e>t?e:t),r=o.Z.getDateUnitInterval(s),a(s,r,!0),r=o.Z.getDateUnitInterval(i||"second"),a(s,r,!1),s[{week:"day"}[r]||r]=!0;var l=this.getDateFormatByDifferences(s);return l}})},24624:function(e,t,i){"use strict";i.d(t,{EV:function(){return l},SP:function(){return s},p6:function(){return u},uf:function(){return d}});var n=i(57495),o=i(44417),r=i(46282),a=i(66713),s=(i(52977),n.Z.locale.bind(n.Z)),l=o.Z.load.bind(o.Z),d=(o.Z.format.bind(o.Z),r.Z.format.bind(r.Z)),u=(r.Z.parse.bind(r.Z),a.Z.format.bind(a.Z));a.Z.parse.bind(a.Z)},57495:function(e,t,i){"use strict";i.d(t,{Z:function(){return l}});var n=i(27154),o={"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MV":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150","hi-Latn":"en-IN","es-AR":"es-419","es-BO":"es-419","es-BR":"es-419","es-BZ":"es-419","es-CL":"es-419","es-CO":"es-419","es-CR":"es-419","es-CU":"es-419","es-DO":"es-419","es-EC":"es-419","es-GT":"es-419","es-HN":"es-419","es-MX":"es-419","es-NI":"es-419","es-PA":"es-419","es-PE":"es-419","es-PR":"es-419","es-PY":"es-419","es-SV":"es-419","es-US":"es-419","es-UY":"es-419","es-VE":"es-419",nb:"no",nn:"no","pt-AO":"pt-PT","pt-CH":"pt-PT","pt-CV":"pt-PT","pt-FR":"pt-PT","pt-GQ":"pt-PT","pt-GW":"pt-PT","pt-LU":"pt-PT","pt-MO":"pt-PT","pt-MZ":"pt-PT","pt-ST":"pt-PT","pt-TL":"pt-PT","az-Arab":"und","az-Cyrl":"und","bal-Latn":"und","blt-Latn":"und","bm-Nkoo":"und","bs-Cyrl":"und","byn-Latn":"und","cu-Glag":"und","dje-Arab":"und","dyo-Arab":"und","en-Dsrt":"und","en-Shaw":"und","ff-Adlm":"und","ff-Arab":"und","ha-Arab":"und","iu-Latn":"und","kk-Arab":"und","ks-Deva":"und","ku-Arab":"und","ky-Arab":"und","ky-Latn":"und","ml-Arab":"und","mn-Mong":"und","mni-Mtei":"und","ms-Arab":"und","pa-Arab":"und","sat-Deva":"und","sd-Deva":"und","sd-Khoj":"und","sd-Sind":"und","shi-Latn":"und","so-Arab":"und","sr-Latn":"und","sw-Arab":"und","tg-Arab":"und","ug-Cyrl":"und","uz-Arab":"und","uz-Cyrl":"und","vai-Latn":"und","wo-Arab":"und","yo-Arab":"und","yue-Hans":"und","zh-Hant":"und","zh-Hant-MO":"zh-Hant-HK"},r="-",a=(e,t)=>{var i=e[t];return i?"root"!==i&&i:t.substr(0,t.lastIndexOf(r))},s="en",l=(0,n.Z)({locale:(()=>{var e=s;return t=>{if(!t)return e;e=t}})(),getValueByClosestLocale:function(e){var t,i=this.locale(),n=e(i);while(!n&&!t)i=a(o,i),i?n=e(i):t=!0;return void 0===n&&i!==s?e(s):n}})},52977:function(e,t,i){"use strict";var n=i(44099);t["Z"]={_formatNumberCore:function(e,t,i){if("currency"===t){i.precision=i.precision||0;var o=this.format(e,(0,n.l)({},i,{type:"fixedpoint"})),r=this.getCurrencySymbol().symbol.replace(/\$/g,"$$$$");return o=o.replace(/^(\D*)(\d.*)/,"$1"+r+"$2"),o}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(){return{symbol:"$"}},getOpenXmlCurrencyFormat:function(){return"$#,##0{0}_);\\($#,##0{0}\\)"}}},66713:function(e,t,i){"use strict";i.d(t,{Z:function(){return B}});var n=i(27154),o=i(50450),r=i(63419),a=i(33734),s=i(5702),l=i(69992),d=i(54101),u=i(43589),c={"af-NA":1,agq:1,ak:1,ar:6,"ar-EH":1,"ar-ER":1,"ar-KM":1,"ar-LB":1,"ar-MA":1,"ar-MR":1,"ar-PS":1,"ar-SO":1,"ar-SS":1,"ar-TD":1,"ar-TN":1,asa:1,ast:1,az:1,"az-Cyrl":1,bas:1,be:1,bem:1,bez:1,bg:1,bm:1,br:1,bs:1,"bs-Cyrl":1,ca:1,ce:1,cgg:1,ckb:6,cs:1,cy:1,da:1,de:1,dje:1,dsb:1,dua:1,dyo:1,ee:1,el:1,"en-001":1,"en-AE":6,"en-BI":1,"en-MP":1,"en-MV":5,"en-SD":6,eo:1,es:1,et:1,eu:1,ewo:1,fa:6,ff:1,"ff-Adlm":1,fi:1,fo:1,fr:1,"fr-DJ":6,"fr-DZ":6,"fr-SY":6,fur:1,fy:1,ga:1,gd:1,gl:1,gsw:1,gv:1,ha:1,hr:1,hsb:1,hu:1,hy:1,ia:1,ig:1,is:1,it:1,jgo:1,jmc:1,ka:1,kab:6,kde:1,kea:1,khq:1,kk:1,kkj:1,kl:1,"ko-KP":1,ksb:1,ksf:1,ksh:1,ku:1,kw:1,ky:1,lag:1,lb:1,lg:1,ln:1,lrc:6,lt:1,lu:1,lv:1,"mas-TZ":1,mfe:1,mg:1,mgo:1,mi:1,mk:1,mn:1,ms:1,mua:1,mzn:6,naq:1,nds:1,nl:1,nmg:1,nnh:1,no:1,nus:1,nyn:1,os:1,pcm:1,pl:1,ps:6,"pt-AO":1,"pt-CH":1,"pt-CV":1,"pt-GQ":1,"pt-GW":1,"pt-LU":1,"pt-ST":1,"pt-TL":1,"qu-BO":1,"qu-EC":1,rm:1,rn:1,ro:1,rof:1,ru:1,rw:1,rwk:1,sah:1,sbp:1,sc:1,se:1,ses:1,sg:1,shi:1,"shi-Latn":1,si:1,sk:1,sl:1,smn:1,so:1,"so-DJ":6,sq:1,sr:1,"sr-Latn":1,sv:1,sw:1,"ta-LK":1,"ta-MY":1,teo:1,tg:1,"ti-ER":1,tk:1,to:1,tr:1,tt:1,twq:1,tzm:1,uk:1,uz:1,"uz-Arab":6,"uz-Cyrl":1,vai:1,"vai-Latn":1,vi:1,vun:1,wae:1,wo:1,xog:1,yav:1,yi:1,yo:1,zgh:1},h=i(57495),p=i(46282),f=i(44099),g=/[\u200E\u200F]/g,m=e=>t=>{if(!e.timeZoneName){var i=t.getFullYear(),n=String(i).length<3,o=n?i+400:i,r=new Date(Date.UTC(o,t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));n&&r.setFullYear(i);var a=(0,f.l)({timeZone:"UTC"},e);return y(r,a)}return y(t,e)},_={},v=e=>{var t=h.Z.locale()+"/"+JSON.stringify(e);return _[t]||(_[t]=new Intl.DateTimeFormat(h.Z.locale(),e).format),_[t]};function y(e,t){return v(t)(e).replace(g,"")}var C=e=>new Intl.NumberFormat(h.Z.locale()).format(e),b=(()=>{var e={};return t=>{if(!(t in e)){if("0"===C(0))return e[t]=!1,!1;e[t]={};for(var i=0;i<10;++i)e[t][C(i)]=i}return e[t]}})(),x=e=>{var t=b(h.Z.locale());return t?e.split("").map((e=>e in t?String(t[e]):e)).join(""):e},w=e=>e.replace(/(\D)0+(\d)/g,"$1$2"),T=(e,t)=>w(e)===w(t),S=e=>e.replace("d’","de "),I={day:{day:"numeric"},dayofweek:{weekday:"long"},longdate:{weekday:"long",year:"numeric",month:"long",day:"numeric"},longdatelongtime:{weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},longtime:{hour:"numeric",minute:"numeric",second:"numeric"},month:{month:"long"},monthandday:{month:"long",day:"numeric"},monthandyear:{year:"numeric",month:"long"},shortdate:{},shorttime:{hour:"numeric",minute:"numeric"},shortyear:{year:"2-digit"},year:{year:"numeric"}};Object.defineProperty(I,"shortdateshorttime",{get:function(){var e=Intl.DateTimeFormat(h.Z.locale()).resolvedOptions();return{year:e.year,month:e.month,day:e.day,hour:"numeric",minute:"numeric"}}});var E=e=>"string"===typeof e&&I[e.toLowerCase()],D={standalone:function(e,t){var i=new Date(1999,e,13,1),n=m({month:t})(i);return n},format:function(e,t){var i=new Date(0,e,13,1),n=S(m({day:"numeric",month:t})(i)),o=n.split(" ").filter((e=>e.indexOf("13")<0));return 1===o.length?o[0]:2===o.length?o[0].length>o[1].length?o[0]:o[1]:D.standalone(e,t)}},k={engine:function(){return"intl"},getMonthNames:function(e,t){var i={wide:"long",abbreviated:"short",narrow:"narrow"}[e||"wide"];return t="format"===t?t:"standalone",Array.apply(null,new Array(12)).map(((e,n)=>D[t](n,i)))},getDayNames:function(e){var t=(e=>Array.apply(null,new Array(7)).map(((t,i)=>m({weekday:e})(new Date(0,0,i)))))({wide:"long",abbreviated:"short",short:"narrow",narrow:"narrow"}[e||"wide"]);return t},getPeriodNames:function(){var e=m({hour:"numeric",hour12:!0});return[1,13].map((t=>{var i=C(1),n=e(new Date(0,0,1,t)).split(i);if(2!==n.length)return"";var o=n[0].length>n[1].length?n[0]:n[1];return o.trim()}))},format:function(e,t){if(e){if(!t)return e;"function"===typeof t||t.formatter||(t=t.type||t);var i=E(t);if(i)return m(i)(e);var n=typeof t;return t.formatter||"function"===n||"string"===n?this.callBase.apply(this,arguments):m(t)(e)}},parse:function(e,t){var i;return t&&!t.parser&&"string"===typeof e&&(e=S(e),i=e=>S(this.format(e,t))),this.callBase(e,i||t)},_parseDateBySimpleFormat:function(e,t){e=x(e);var i=this.getFormatParts(t),n=e.split(/\D+/).filter((e=>e.length>0));if(i.length===n.length){var o=this._generateDateArgs(i,n),r=i=>{var n=((e,t)=>{var i=t?12:0;return new Date(e.year,e.month,e.day,(e.hours+i)%24,e.minutes,e.seconds)})(o,i);if(T(x(this.format(n,t)),e))return n};return r(!1)||r(!0)}},_generateDateArgs:function(e,t){var i=new Date,n={year:i.getFullYear(),month:i.getMonth(),day:i.getDate(),hours:0,minutes:0,seconds:0};return e.forEach(((e,i)=>{var o=t[i],r=parseInt(o,10);"month"===e&&(r-=1),n[e]=r})),n},formatUsesMonthName:function(e){return"object"!==typeof e||e.type||e.format?this.callBase.apply(this,arguments):"long"===e.month},formatUsesDayName:function(e){return"object"!==typeof e||e.type||e.format?this.callBase.apply(this,arguments):"long"===e.weekday},getTimeSeparator:function(){return x(y(new Date(2001,1,1,11,11),{hour:"numeric",minute:"numeric",hour12:!1})).replace(/\d/g,"")},getFormatParts:function(e){if("string"===typeof e)return this.callBase(e);var t=(0,f.l)({},I[e.toLowerCase()]),i=new Date(2001,2,4,5,6,7),n=m(t)(i);return n=x(n),[{name:"year",value:1},{name:"month",value:3},{name:"day",value:4},{name:"hours",value:5},{name:"minutes",value:6},{name:"seconds",value:7}].map((e=>({name:e.name,index:n.indexOf(e.value)}))).filter((e=>e.index>-1)).sort(((e,t)=>e.index-t.index)).map((e=>e.name))}},O=0,A="undefined"!==typeof Intl,P={shortdate:"M/d/y",shorttime:"h:mm a",longdate:"EEEE, MMMM d, y",longtime:"h:mm:ss a",monthandday:"MMMM d",monthandyear:"MMMM y",quarterandyear:"QQQ y",day:"d",year:"y",shortdateshorttime:"M/d/y, h:mm a",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"},M={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"]},R=(0,n.Z)({engine:function(){return"base"},_getPatternByFormat:function(e){return P[e.toLowerCase()]},_expandPattern:function(e){return this._getPatternByFormat(e)||e},formatUsesMonthName:function(e){return-1!==this._expandPattern(e).indexOf("MMMM")},formatUsesDayName:function(e){return-1!==this._expandPattern(e).indexOf("EEEE")},getFormatParts:function(e){var t=this._getPatternByFormat(e)||e,i=[];return(0,r.S6)(t.split(/\W+/),((e,t)=>{(0,r.S6)(M,((e,n)=>{n.includes(t)&&i.push(e)}))})),i},getMonthNames:function(e){return u.Z.getMonthNames(e)},getDayNames:function(e){return u.Z.getDayNames(e)},getQuarterNames:function(e){return u.Z.getQuarterNames(e)},getPeriodNames:function(e){return u.Z.getPeriodNames(e)},getTimeSeparator:function(){return":"},is24HourFormat:function(e){for(var t=new Date(2017,0,20,11,0,0,0),i=new Date(2017,0,20,23,0,0,0),n=this.format(t,e),o=this.format(i,e),r=0;r<n.length;r++)if(n[r]!==o[r])return!isNaN(parseInt(n[r]))},format:function(e,t){if(e){if(!t)return e;var i;if("function"===typeof t)i=t;else if(t.formatter)i=t.formatter;else if(t=t.type||t,(0,o.HD)(t))return t=P[t.toLowerCase()]||t,p.Z.convertDigits((0,s.P)(t,this)(e));if(i)return i(e)}},parse:function(e,t){var i,n,o=this;if(e){if(!t)return this.parse(e,"shortdate");if(t.parser)return t.parser(e);if("string"!==typeof t||P[t.toLowerCase()]){n=e=>{var i=o.format(e,t);return p.Z.convertDigits(i,!0)};try{i=(0,l.y)(n)}catch(s){}}else i=t;if(i)return e=p.Z.convertDigits(e,!0),(0,d.MT)(i,this)(e);a.Z.log("W0012");var r=new Date(e);if(r&&!isNaN(r.getTime()))return r}},firstDayOfWeekIndex:function(){var e=h.Z.getValueByClosestLocale((e=>c[e]));return void 0===e?O:e}});A&&R.inject(k);var B=R},43589:function(e,t,i){"use strict";var n=i(63419),o=["January","February","March","April","May","June","July","August","September","October","November","December"],r=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],a=["AM","PM"],s=["Q1","Q2","Q3","Q4"],l=(e,t)=>{var i={abbreviated:3,short:2,narrow:1};return(0,n.UI)(e,(e=>e.substr(0,i[t])))};t["Z"]={getMonthNames:function(e){return l(o,e)},getDayNames:function(e){return l(r,e)},getQuarterNames:function(e){return s},getPeriodNames:function(e){return a}}},69992:function(e,t,i){"use strict";i.d(t,{y:function(){return m}});var n=i(46282),o="،",r=" .,:;/\\<>()-[]"+o,a=". m.",s=function(e){var t=e&&n.Z.convertDigits(e,!1).charCodeAt(0),i=n.Z.convertDigits("0",!1).charCodeAt(0);return i<=t&&t<i+10},l=function(e,t,i,n){var o=e[i],l=e[i+1];if(!n){if("."===o||" "===o&&e.slice(i-1,i+3)===a)return!0;if("-"===o&&!s(l))return!0}var d=n&&t.some((t=>e[i]!==t[i]));return r.indexOf(o)<0&&n===s(o)&&(!n||d)},d=function(e,t){if(!s(e[t]))while(t>0&&!s(e[t-1])&&("."===e[t-1]||r.indexOf(e[t-1])<0))t--;return t},u=function(e,t,i,n){var o=0,r=[],a=function(t){return e[o]!==t[o]&&(void 0===n||s(e[o])===n)};for(Array.isArray(t)||(t=[t]),o=0;o<e.length;o++)if(i.indexOf(o)<0&&t.filter(a).length){o=d(e,o);do{if(n=s(e[o]),!r.length&&!n&&s(t[0][o]))break;r.push(o),i.unshift(o),o++}while(e[o]&&l(e,t,o,n));break}return 1!==r.length||"0"!==e[i[0]-1]&&"٠"!==e[i[0]-1]||i.unshift(i[0]-1),r},c=function(e,t,i,n){var o=t[0],r=o<n.length?n[o]:o;return t.forEach((function(t,n){e=e.substr(0,r+n)+(i.length>1?i[n]:i)+e.substr(r+n+1)})),1===t.length&&(e=e.replace("0"+i,i+i),e=e.replace("٠"+i,i+i)),e},h=function(e,t,i,n){var o,r,a;if(!s(e[t[0]]||"0")){var l=Math.max(t.length<=3?3:4,i.length);while(t.length>l){for(r=t.pop(),a=n[r],n[r]=-1,o=r+1;o<n.length;o++)n[o]--;e=e.substr(0,a)+e.substr(a+1)}r=t[t.length-1]+1,a=r<n.length?n[r]:r;while(t.length<l){for(t.push(t[t.length-1]+1),o=r;o<n.length;o++)n[o]++;e=e.substr(0,a)+" "+e.substr(a)}}return e=c(e,t,i,n),e},p=function(e,t){return Array.isArray(e)?e.map((function(e){return(t(e)||"").toString()})):(t(e)||"").toString()},f=/[a-zA-Z]/g,g=function(e,t,i,n){var o=t.split("").map((function(e,t){return i.indexOf(t)<0&&(e.match(f)||"'"===e)?n[t]:-1}));return e=e.split("").map((function(e,t){var i=e,n=o.indexOf(t)>=0,r=t>0&&o.indexOf(t-1)>=0,a=o.indexOf(t+1)>=0;return n&&(r||(i="'"+i),a||(i+="'")),i})).join(""),e},m=function(e){var t=[],i=p(new Date(2009,8,8,6,5,4),e),n=i.split("").map((function(e,t){return t})),o=i,r={},a=[{date:new Date(2009,8,8,6,5,4,111),pattern:"S"},{date:new Date(2009,8,8,6,5,2),pattern:"s"},{date:new Date(2009,8,8,6,2,4),pattern:"m"},{date:new Date(2009,8,8,18,5,4),pattern:"H",isDigit:!0},{date:new Date(2009,8,8,2,5,4),pattern:"h",isDigit:!0},{date:new Date(2009,8,8,18,5,4),pattern:"a",isDigit:!1},{date:new Date(2009,8,1,6,5,4),pattern:"d"},{date:[new Date(2009,8,2,6,5,4),new Date(2009,8,3,6,5,4),new Date(2009,8,4,6,5,4)],pattern:"E"},{date:new Date(2009,9,6,6,5,4),pattern:"M"},{date:new Date(1998,8,8,6,5,4),pattern:"y"}];if(o)return a.forEach((function(a){var s=u(i,p(a.date,e),t,a.isDigit),l="M"!==a.pattern||r.d?a.pattern:"L";o=h(o,s,l,n),r[l]=s.length})),o=g(o,i,t,n),t.length?o:void 0}},5702:function(e,t,i){"use strict";function n(e,t){while(e.length<t)e="0"+e;return e}i.d(t,{P:function(){return a}});var o={3:"abbreviated",4:"wide",5:"narrow"},r={y:function(e,t,i){var o=e[i?"getUTCFullYear":"getFullYear"]();return 2===t&&(o%=100),n(o.toString(),t)},M:function(e,t,i,r){var a=e[i?"getUTCMonth":"getMonth"](),s=o[t];return s?r.getMonthNames(s,"format")[a]:n((a+1).toString(),Math.min(t,2))},L:function(e,t,i,r){var a=e[i?"getUTCMonth":"getMonth"](),s=o[t];return s?r.getMonthNames(s,"standalone")[a]:n((a+1).toString(),Math.min(t,2))},Q:function(e,t,i,r){var a=e[i?"getUTCMonth":"getMonth"](),s=Math.floor(a/3),l=o[t];return l?r.getQuarterNames(l)[s]:n((s+1).toString(),Math.min(t,2))},E:function(e,t,i,n){var r=e[i?"getUTCDay":"getDay"](),a=o[t<3?3:t];return n.getDayNames(a)[r]},a:function(e,t,i,n){var r=e[i?"getUTCHours":"getHours"](),a=r<12?0:1,s=o[t];return n.getPeriodNames(s)[a]},d:function(e,t,i){return n(e[i?"getUTCDate":"getDate"]().toString(),Math.min(t,2))},H:function(e,t,i){return n(e[i?"getUTCHours":"getHours"]().toString(),Math.min(t,2))},h:function(e,t,i){var o=e[i?"getUTCHours":"getHours"]();return n((o%12||12).toString(),Math.min(t,2))},m:function(e,t,i){return n(e[i?"getUTCMinutes":"getMinutes"]().toString(),Math.min(t,2))},s:function(e,t,i){return n(e[i?"getUTCSeconds":"getSeconds"]().toString(),Math.min(t,2))},S:function(e,t,i){return n(e[i?"getUTCMilliseconds":"getMilliseconds"]().toString(),3).substr(0,t)},x:function(e,t,i){var o=i?0:e.getTimezoneOffset(),r=o>0?"-":"+",a=Math.abs(o),s=Math.floor(a/60),l=a%60,d=n(s.toString(),2),u=n(l.toString(),2);return r+d+(t>=3?":":"")+(t>1||l?u:"")},X:function(e,t,i){return i||!e.getTimezoneOffset()?"Z":r.x(e,t,i)},Z:function(e,t,i){return r.X(e,t>=5?3:2,i)}},a=function(e,t){return function(i){var n,o,a,s,l=0,d=!1,u="";if(!i)return null;if(!e)return i;var c="Z"===e[e.length-1]||"'Z'"===e.slice(-3);for(n=0;n<e.length;n++)a=e[n],o=r[a],s=a===e[n+1],l++,s||(o&&!d&&(u+=o(i,l,c,t)),l=0),"'"!==a||s?!d&&o||(u+=a):d=!d,"'"===a&&s&&n++;return u}}},54101:function(e,t,i){"use strict";i.d(t,{MT:function(){return S},oo:function(){return m},xe:function(){return y}});var n=i(72264),o=i(99915),r={3:"abbreviated",4:"wide",5:"narrow"},a=function(e,t){return e>2?Object.keys(r).map((function(e){return["format","standalone"].map((function(i){return t.getMonthNames(r[e],i).join("|")})).join("|")})).join("|"):2===e?"1[012]|0?[1-9]":"0??[1-9]|1[012]"},s={":":function(e,t){var i=e>1?"{".concat(e,"}"):"",o=(0,n.hr)(t.getTimeSeparator());return":"!==o&&(o="".concat(o,"|:")),"".concat(o).concat(i)},y:function(e){return 2===e?"[0-9]{".concat(e,"}"):"[0-9]+?"},M:a,L:a,Q:function(e,t){return e>2?t.getQuarterNames(r[e],"format").join("|"):"0?[1-4]"},E:function(e,t){return"\\D*"},a:function(e,t){return t.getPeriodNames(r[e<3?3:e],"format").join("|")},d:function(e){return 2===e?"3[01]|[12][0-9]|0?[1-9]":"0??[1-9]|[12][0-9]|3[01]"},H:function(e){return 2===e?"2[0-3]|1[0-9]|0?[0-9]":"0??[0-9]|1[0-9]|2[0-3]"},h:function(e){return 2===e?"1[012]|0?[1-9]":"0??[1-9]|1[012]"},m:function(e){return 2===e?"[1-5][0-9]|0?[0-9]":"0??[0-9]|[1-5][0-9]"},s:function(e){return 2===e?"[1-5][0-9]|0?[0-9]":"0??[0-9]|[1-5][0-9]"},S:function(e){return"[0-9]{1,".concat(e,"}")},w:function(e){return 2===e?"[1-5][0-9]|0?[0-9]":"0??[0-9]|[1-5][0-9]"}},l=Number,d=function(e,t){return e.map((e=>e.toLowerCase())).indexOf(t.toLowerCase())},u=function(e,t,i){return t>2?["format","standalone"].map((function(t){return Object.keys(r).map((function(n){var o=i.getMonthNames(r[n],t);return d(o,e)}))})).reduce((function(e,t){return e.concat(t)})).filter((function(e){return e>=0}))[0]:l(e)-1},c={y:function(e,t){var i=l(e);return 2===t?i<30?2e3+i:1900+i:i},M:u,L:u,Q:function(e,t,i){return t>2?i.getQuarterNames(r[t],"format").indexOf(e):l(e)-1},E:function(e,t,i){var n=i.getDayNames(r[t<3?3:t],"format");return d(n,e)},a:function(e,t,i){var n=i.getPeriodNames(r[t<3?3:t],"format");return d(n,e)},d:l,H:l,h:l,m:l,s:l,S:function(e,t){t=Math.max(t,3),e=e.slice(0,3);while(t<3)e+="0",t++;return l(e)}},h=["y","M","d","h","m","s","S"],p={y:"setFullYear",M:"setMonth",L:"setMonth",a:function(e,t,i){var n=e.getHours(),o=i.h;void 0!==o&&o!==n&&n--,t||12!==n?t&&12!==n&&(n+=12):n=0,e.setHours(n)},d:"setDate",H:"setHours",h:"setHours",m:"setMinutes",s:"setSeconds",S:"setMilliseconds"},f=function(e,t){var i=e[t];if(!i)return 0;var n=0;do{t++,n++}while(e[t]===i);return n},g=function(e,t){for(var i="",n=0;n<t;n++)i+=e;return i},m=function(e,t){for(var i,r="",a="",l=[],d=function(){a&&(l.push("'".concat(a,"'")),r+="".concat((0,n.hr)(a),")"),a="")},u=0;u<e.length;u++){var c=e[u],h="'"===c,p=s[c];if(!h||(i=!i,"'"===e[u-1]))if(p&&!i){var m=f(e,u),_=g(c,m);d(),l.push(_),r+="(".concat(p(m,t),")"),u+=m-1}else a||(r+="("),a+=c}return d(),v(l)||o.k.warn("The following format may be parsed incorrectly: ".concat(e,".")),{patterns:l,regexp:new RegExp("^".concat(r,"$"),"i")}},_=["d","H","h","m","s","w","M","L","Q"],v=function(e){var t=e=>{if(!e)return!1;var t=e[0];return["y","S"].includes(t)||_.includes(t)&&e.length<3},i=!0,n=0;return e.every(((e,o,r)=>(t(e)&&((e=>"S"!==e[0]&&2!==e.length)(e)&&(i=++n<2),t(r[o+1])||(n=0)),i)))},y=function(){return p},C=function(e,t,i,n,o){var r=t[0],a=p[r],s=c[r];if(a&&s){var l=s(i,t.length,n);o[t]=l,e[a]?e[a](l):a(e,l,o)}},b=function(e,t,i){var n=p[t],o="g"+n.substr(1),r=i[o]();e[n](r)},x=function(e){return e.map((function(e){return"'"===e[0]?"":"H"===e[0]?"h":e[0]}))},w=function(e){var t=e.map((function(e){return h.indexOf(e)}));return Math.max.apply(Math,t)},T=function(e){var t=e.filter((function(e){return h.indexOf(e)<0}));return h.concat(t)},S=function(e,t){var i=m(e,t);return function(e){var n=i.regexp.exec(e);if(n){var o=new Date,r=new Date(o.getFullYear(),0,1),a=x(i.patterns),s=w(a),l=T(a),d={};return l.forEach((function(e,l){if(e&&!(l<h.length&&l>s)){var u=a.indexOf(e);if(u>=0){var c=i.patterns[u],p=n[u+1];C(r,c,p,t,d)}else b(r,e,o)}})),r}return null}}},49683:function(e,t,i){"use strict";i.d(t,{P:function(){return C},y:function(){return T}});var n=i(94381),o=i(45075),r={thousandsSeparator:",",decimalSeparator:"."},a="'",s=15,l=2;function d(e){return e.split(",").slice(1).map((function(e){var t=0;return e.split("").filter((function(e,i){t+="'"===e;var n="#"===e||"0"===e,o=t%2;return n&&!o})).length}))}function u(e){var t=e.split(";");return 1===t.length&&t.push("-"+t[0]),t}function c(e){return e.toString().split("").reverse().join("")}function h(e){return-1!==e.indexOf("%")&&!e.match(/'[^']*%[^']*'/g)}function p(e){return e.replace(/'.+'/g,"")}function f(e){if(!e)return 0;var t=p(e);return t.length-t.replace(/[#]/g,"").length}function g(e){if(!e)return 0;var t=p(e);return t.length-t.replace(/[0]/g,"").length}function m(e,t,i){if(!e)return"";e.length>i&&(e=e.substr(0,i));while(e.length>t&&"0"===e.slice(-1))e=e.substr(0,e.length-1);while(e.length<t)e+="0";return e}function _(e,t,i){if(!t.length)return e;var n=[],o=0;while(e){var r=t[o];if(!r)break;n.push(e.slice(0,r)),e=e.slice(r),o<t.length-1&&o++}return n.join(i)}function v(e,t){return e.split(a).map((function(e,i){var n=i%2;return!e&&n?a:n?e:e.replace(/[,#0]+/,t)})).join("")}function y(e){for(var t=!1,i=0;i<e.length;i++)if("'"===e[i]&&(t=!t),"."===e[i]&&!t)return i;return e.length}function C(e,t){return t=t||r,function(i){if("number"!==typeof i||isNaN(i))return"";var r=u(e),a=1/i===1/0,p=i>0||a,C=r[p?0:1],b=y(C),x=[C.substr(0,b),C.substr(b+1)],w=g(x[1]),T=w+f(x[1]);h(C)&&(i=(0,n.Ow)(i,l)),p||(i=-i);var S=g(x[0]),I=f(x[0])||t.unlimitedIntegerDigits?void 0:S,E=Math.floor(i).toString().length,D=(0,n.n$)(T,0,s-E),k=d(x[0]).reverse(),O=(0,o.F)(i,D<0?0:D).split("."),A=m(c(O[0]),S,I),P=m(O[1],w,T);A=_(A,k,t.thousandsSeparator);var M=c(v(c(x[0]),A)),R=T?v(x[1],P):"",B=M+(R.match(/\d/)?t.decimalSeparator:"")+R;return B}}function b(e,t,i){var n=(t?.01:1)*parseFloat(e)||0;return i?-n:n}function x(e,t,i,n){var o,r,a,s=e;do{a&&(o=r.length===a.length?"0":"1",e=n?o+e:e+o),r=a||t(b(s,i)),s=n?"1"+s:s+"1",a=t(b(s,i))}while(r!==a&&(n?r.length===a.length:r.length<=a.length));if(n&&a.length>r.length){var l=-1===t(12345).indexOf("12345");do{e="1"+e}while(l&&b(e,i)<1e5)}return e}function w(e,t,i,n){var o=t(b(e,i,n)),r=e.split("."),a=r[0]+".3"+r[1].slice(1),s=b(a,i,n),l=t(s).indexOf("3")-1;return o=o.replace(/(\d)\D(\d)/g,"$1,$2"),l>=0&&(o=o.slice(0,l)+"."+o.slice(l+1)),o=o.replace(/1+/,"1").replace(/1/g,"#"),i||(o=o.replace("%","'%'")),o}function T(e){var t=".",i=e(1).indexOf("100")>=0;t=x(t,e,i,!0),t=x(t,e,i,!1);var n=w(t,e,i,!1),o=w(t,e,i,!0);return o==="-"+n?n:n+";"+o}},44417:function(e,t,i){"use strict";i.d(t,{Z:function(){return p}});var n=i(27154),o=i(44099),r=i(73386),a=i(38192),s=i(57495),l={en:{Yes:"Yes",No:"No",Cancel:"Cancel",Close:"Close",Clear:"Clear",Done:"Done",Loading:"Loading...",Select:"Select...",Search:"Search",Back:"Back",OK:"OK","dxCollectionWidget-noDataText":"No data to display","dxDropDownEditor-selectLabel":"Select","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-async":"Value is invalid","validation-async-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 a file","dxFileUploader-dropFile":"or Drop a 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-uploadAbortedMessage":"Upload cancelled","dxFileUploader-uploadFailedMessage":"Upload failed","dxFileUploader-invalidFileExtension":"File type is not allowed","dxFileUploader-invalidMaxFileSize":"File is too large","dxFileUploader-invalidMinFileSize":"File is too small","dxRangeSlider-ariaFrom":"From","dxRangeSlider-ariaTill":"Till","dxSwitch-switchedOnText":"ON","dxSwitch-switchedOffText":"OFF","dxForm-optionalMark":"optional","dxForm-requiredMessage":"{0} is required","dxNumberBox-invalidValueMessage":"Value must be a number","dxNumberBox-noDataText":"No data","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-exporting":"Exporting...","dxDataGrid-excelFormat":"Excel file","dxDataGrid-selectedRows":"Selected rows","dxDataGrid-exportSelectedRows":"Export selected rows to {0}","dxDataGrid-exportAll":"Export all data to {0}","dxDataGrid-headerFilterLabel":"Filter options","dxDataGrid-headerFilterIndicatorLabel":"Show filter options for column '{0}'","dxDataGrid-headerFilterEmptyValue":"(Blanks)","dxDataGrid-headerFilterOK":"OK","dxDataGrid-headerFilterCancel":"Cancel","dxDataGrid-ariaAdaptiveCollapse":"Hide additional data","dxDataGrid-ariaAdaptiveExpand":"Display additional data","dxDataGrid-ariaColumn":"Column","dxDataGrid-ariaValue":"Value","dxDataGrid-ariaFilterCell":"Filter cell","dxDataGrid-ariaCollapse":"Collapse","dxDataGrid-ariaExpand":"Expand","dxDataGrid-ariaDataGrid":"Data grid","dxDataGrid-ariaSearchInGrid":"Search in the data grid","dxDataGrid-ariaSelectAll":"Select all","dxDataGrid-ariaSelectRow":"Select row","dxDataGrid-ariaToolbar":"Data grid toolbar","dxDataGrid-filterBuilderPopupTitle":"Filter Builder","dxDataGrid-filterPanelCreateFilter":"Create Filter","dxDataGrid-filterPanelClearFilter":"Clear","dxDataGrid-filterPanelFilterEnabledHint":"Enable the filter","dxTreeList-ariaTreeList":"Tree list","dxTreeList-ariaSearchInGrid":"Search in the tree list","dxTreeList-ariaToolbar":"Tree list toolbar","dxTreeList-editingAddRowToNode":"Add","dxPager-infoText":"Page {0} of {1} ({2} items)","dxPager-pagesCountText":"of","dxPager-pageSize":"Items per page: {0}","dxPager-pageSizesAllText":"All","dxPager-page":"Page {0}","dxPager-prevPage":"Previous Page","dxPager-nextPage":"Next Page","dxPager-ariaLabel":"Page Navigation","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-recurrenceMinutely":"Every minute","dxScheduler-recurrenceHourly":"Hourly","dxScheduler-recurrenceDaily":"Daily","dxScheduler-recurrenceWeekly":"Weekly","dxScheduler-recurrenceMonthly":"Monthly","dxScheduler-recurrenceYearly":"Yearly","dxScheduler-recurrenceRepeatEvery":"Repeat Every","dxScheduler-recurrenceRepeatOn":"Repeat On","dxScheduler-recurrenceEnd":"End repeat","dxScheduler-recurrenceAfter":"After","dxScheduler-recurrenceOn":"On","dxScheduler-recurrenceRepeatMinutely":"minute(s)","dxScheduler-recurrenceRepeatHourly":"hour(s)","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","dxScheduler-moreAppointments":"{0} more","dxCalendar-todayButtonText":"Today","dxCalendar-ariaWidgetName":"Calendar","dxColorView-ariaRed":"Red","dxColorView-ariaGreen":"Green","dxColorView-ariaBlue":"Blue","dxColorView-ariaAlpha":"Transparency","dxColorView-ariaHex":"Color code","dxTagBox-selected":"{0} selected","dxTagBox-allSelected":"All selected ({0})","dxTagBox-moreSelected":"{0} more","vizExport-printingButtonText":"Print","vizExport-titleMenuText":"Exporting/Printing","vizExport-exportButtonText":"{0} file","dxFilterBuilder-and":"And","dxFilterBuilder-or":"Or","dxFilterBuilder-notAnd":"Not And","dxFilterBuilder-notOr":"Not Or","dxFilterBuilder-addCondition":"Add Condition","dxFilterBuilder-addGroup":"Add Group","dxFilterBuilder-enterValueText":"<enter a value>","dxFilterBuilder-filterOperationEquals":"Equals","dxFilterBuilder-filterOperationNotEquals":"Does not equal","dxFilterBuilder-filterOperationLess":"Is less than","dxFilterBuilder-filterOperationLessOrEquals":"Is less than or equal to","dxFilterBuilder-filterOperationGreater":"Is greater than","dxFilterBuilder-filterOperationGreaterOrEquals":"Is greater than or equal to","dxFilterBuilder-filterOperationStartsWith":"Starts with","dxFilterBuilder-filterOperationContains":"Contains","dxFilterBuilder-filterOperationNotContains":"Does not contain","dxFilterBuilder-filterOperationEndsWith":"Ends with","dxFilterBuilder-filterOperationIsBlank":"Is blank","dxFilterBuilder-filterOperationIsNotBlank":"Is not blank","dxFilterBuilder-filterOperationBetween":"Is between","dxFilterBuilder-filterOperationAnyOf":"Is any of","dxFilterBuilder-filterOperationNoneOf":"Is none of","dxHtmlEditor-dialogColorCaption":"Change Font Color","dxHtmlEditor-dialogBackgroundCaption":"Change Background Color","dxHtmlEditor-dialogLinkCaption":"Add Link","dxHtmlEditor-dialogLinkUrlField":"URL","dxHtmlEditor-dialogLinkTextField":"Text","dxHtmlEditor-dialogLinkTargetField":"Open link in new window","dxHtmlEditor-dialogImageCaption":"Add Image","dxHtmlEditor-dialogImageUrlField":"URL","dxHtmlEditor-dialogImageAltField":"Alternate text","dxHtmlEditor-dialogImageWidthField":"Width (px)","dxHtmlEditor-dialogImageHeightField":"Height (px)","dxHtmlEditor-dialogInsertTableRowsField":"Rows","dxHtmlEditor-dialogInsertTableColumnsField":"Columns","dxHtmlEditor-dialogInsertTableCaption":"Insert Table","dxHtmlEditor-dialogUpdateImageCaption":"Update Image","dxHtmlEditor-dialogImageUpdateButton":"Update","dxHtmlEditor-dialogImageAddButton":"Add","dxHtmlEditor-dialogImageSpecifyUrl":"From the Web","dxHtmlEditor-dialogImageSelectFile":"From This Device","dxHtmlEditor-dialogImageKeepAspectRatio":"Keep Aspect Ratio","dxHtmlEditor-dialogImageEncodeToBase64":"Encode to Base64","dxHtmlEditor-heading":"Heading","dxHtmlEditor-normalText":"Normal text","dxHtmlEditor-background":"Background Color","dxHtmlEditor-bold":"Bold","dxHtmlEditor-color":"Font Color","dxHtmlEditor-font":"Font","dxHtmlEditor-italic":"Italic","dxHtmlEditor-link":"Add Link","dxHtmlEditor-image":"Add Image","dxHtmlEditor-size":"Size","dxHtmlEditor-strike":"Strikethrough","dxHtmlEditor-subscript":"Subscript","dxHtmlEditor-superscript":"Superscript","dxHtmlEditor-underline":"Underline","dxHtmlEditor-blockquote":"Blockquote","dxHtmlEditor-header":"Header","dxHtmlEditor-increaseIndent":"Increase Indent","dxHtmlEditor-decreaseIndent":"Decrease Indent","dxHtmlEditor-orderedList":"Ordered List","dxHtmlEditor-bulletList":"Bullet List","dxHtmlEditor-alignLeft":"Align Left","dxHtmlEditor-alignCenter":"Align Center","dxHtmlEditor-alignRight":"Align Right","dxHtmlEditor-alignJustify":"Align Justify","dxHtmlEditor-codeBlock":"Code Block","dxHtmlEditor-variable":"Add Variable","dxHtmlEditor-undo":"Undo","dxHtmlEditor-redo":"Redo","dxHtmlEditor-clear":"Clear Formatting","dxHtmlEditor-insertTable":"Insert Table","dxHtmlEditor-insertHeaderRow":"Insert Header Row","dxHtmlEditor-insertRowAbove":"Insert Row Above","dxHtmlEditor-insertRowBelow":"Insert Row Below","dxHtmlEditor-insertColumnLeft":"Insert Column Left","dxHtmlEditor-insertColumnRight":"Insert Column Right","dxHtmlEditor-deleteColumn":"Delete Column","dxHtmlEditor-deleteRow":"Delete Row","dxHtmlEditor-deleteTable":"Delete Table","dxHtmlEditor-cellProperties":"Cell Properties","dxHtmlEditor-tableProperties":"Table Properties","dxHtmlEditor-insert":"Insert","dxHtmlEditor-delete":"Delete","dxHtmlEditor-border":"Border","dxHtmlEditor-style":"Style","dxHtmlEditor-width":"Width","dxHtmlEditor-height":"Height","dxHtmlEditor-borderColor":"Color","dxHtmlEditor-tableBackground":"Background","dxHtmlEditor-dimensions":"Dimensions","dxHtmlEditor-alignment":"Alignment","dxHtmlEditor-horizontal":"Horizontal","dxHtmlEditor-vertical":"Vertical","dxHtmlEditor-paddingVertical":"Vertical Padding","dxHtmlEditor-paddingHorizontal":"Horizontal Padding","dxHtmlEditor-pixels":"Pixels","dxHtmlEditor-list":"List","dxHtmlEditor-ordered":"Ordered","dxHtmlEditor-bullet":"Bullet","dxHtmlEditor-align":"Align","dxHtmlEditor-center":"Center","dxHtmlEditor-left":"Left","dxHtmlEditor-right":"Right","dxHtmlEditor-indent":"Indent","dxHtmlEditor-justify":"Justify","dxFileManager-newDirectoryName":"Untitled directory","dxFileManager-rootDirectoryName":"Files","dxFileManager-errorNoAccess":"Access Denied. Operation could not be completed.","dxFileManager-errorDirectoryExistsFormat":"Directory '{0}' already exists.","dxFileManager-errorFileExistsFormat":"File '{0}' already exists.","dxFileManager-errorFileNotFoundFormat":"File '{0}' not found.","dxFileManager-errorDirectoryNotFoundFormat":"Directory '{0}' not found.","dxFileManager-errorWrongFileExtension":"File extension is not allowed.","dxFileManager-errorMaxFileSizeExceeded":"File size exceeds the maximum allowed size.","dxFileManager-errorInvalidSymbols":"This name contains invalid characters.","dxFileManager-errorDefault":"Unspecified error.","dxFileManager-errorDirectoryOpenFailed":"The directory cannot be opened","dxFileManager-commandCreate":"New directory","dxFileManager-commandRename":"Rename","dxFileManager-commandMove":"Move to","dxFileManager-commandCopy":"Copy to","dxFileManager-commandDelete":"Delete","dxFileManager-commandDownload":"Download","dxFileManager-commandUpload":"Upload files","dxFileManager-commandRefresh":"Refresh","dxFileManager-commandThumbnails":"Thumbnails View","dxFileManager-commandDetails":"Details View","dxFileManager-commandClearSelection":"Clear selection","dxFileManager-commandShowNavPane":"Toggle navigation pane","dxFileManager-dialogDirectoryChooserMoveTitle":"Move to","dxFileManager-dialogDirectoryChooserMoveButtonText":"Move","dxFileManager-dialogDirectoryChooserCopyTitle":"Copy to","dxFileManager-dialogDirectoryChooserCopyButtonText":"Copy","dxFileManager-dialogRenameItemTitle":"Rename","dxFileManager-dialogRenameItemButtonText":"Save","dxFileManager-dialogCreateDirectoryTitle":"New directory","dxFileManager-dialogCreateDirectoryButtonText":"Create","dxFileManager-dialogDeleteItemTitle":"Delete","dxFileManager-dialogDeleteItemButtonText":"Delete","dxFileManager-dialogDeleteItemSingleItemConfirmation":"Are you sure you want to delete {0}?","dxFileManager-dialogDeleteItemMultipleItemsConfirmation":"Are you sure you want to delete {0} items?","dxFileManager-dialogButtonCancel":"Cancel","dxFileManager-editingCreateSingleItemProcessingMessage":"Creating a directory inside {0}","dxFileManager-editingCreateSingleItemSuccessMessage":"Created a directory inside {0}","dxFileManager-editingCreateSingleItemErrorMessage":"Directory was not created","dxFileManager-editingCreateCommonErrorMessage":"Directory was not created","dxFileManager-editingRenameSingleItemProcessingMessage":"Renaming an item inside {0}","dxFileManager-editingRenameSingleItemSuccessMessage":"Renamed an item inside {0}","dxFileManager-editingRenameSingleItemErrorMessage":"Item was not renamed","dxFileManager-editingRenameCommonErrorMessage":"Item was not renamed","dxFileManager-editingDeleteSingleItemProcessingMessage":"Deleting an item from {0}","dxFileManager-editingDeleteMultipleItemsProcessingMessage":"Deleting {0} items from {1}","dxFileManager-editingDeleteSingleItemSuccessMessage":"Deleted an item from {0}","dxFileManager-editingDeleteMultipleItemsSuccessMessage":"Deleted {0} items from {1}","dxFileManager-editingDeleteSingleItemErrorMessage":"Item was not deleted","dxFileManager-editingDeleteMultipleItemsErrorMessage":"{0} items were not deleted","dxFileManager-editingDeleteCommonErrorMessage":"Some items were not deleted","dxFileManager-editingMoveSingleItemProcessingMessage":"Moving an item to {0}","dxFileManager-editingMoveMultipleItemsProcessingMessage":"Moving {0} items to {1}","dxFileManager-editingMoveSingleItemSuccessMessage":"Moved an item to {0}","dxFileManager-editingMoveMultipleItemsSuccessMessage":"Moved {0} items to {1}","dxFileManager-editingMoveSingleItemErrorMessage":"Item was not moved","dxFileManager-editingMoveMultipleItemsErrorMessage":"{0} items were not moved","dxFileManager-editingMoveCommonErrorMessage":"Some items were not moved","dxFileManager-editingCopySingleItemProcessingMessage":"Copying an item to {0}","dxFileManager-editingCopyMultipleItemsProcessingMessage":"Copying {0} items to {1}","dxFileManager-editingCopySingleItemSuccessMessage":"Copied an item to {0}","dxFileManager-editingCopyMultipleItemsSuccessMessage":"Copied {0} items to {1}","dxFileManager-editingCopySingleItemErrorMessage":"Item was not copied","dxFileManager-editingCopyMultipleItemsErrorMessage":"{0} items were not copied","dxFileManager-editingCopyCommonErrorMessage":"Some items were not copied","dxFileManager-editingUploadSingleItemProcessingMessage":"Uploading an item to {0}","dxFileManager-editingUploadMultipleItemsProcessingMessage":"Uploading {0} items to {1}","dxFileManager-editingUploadSingleItemSuccessMessage":"Uploaded an item to {0}","dxFileManager-editingUploadMultipleItemsSuccessMessage":"Uploaded {0} items to {1}","dxFileManager-editingUploadSingleItemErrorMessage":"Item was not uploaded","dxFileManager-editingUploadMultipleItemsErrorMessage":"{0} items were not uploaded","dxFileManager-editingUploadCanceledMessage":"Canceled","dxFileManager-editingDownloadSingleItemErrorMessage":"Item was not downloaded","dxFileManager-editingDownloadMultipleItemsErrorMessage":"{0} items were not downloaded","dxFileManager-listDetailsColumnCaptionName":"Name","dxFileManager-listDetailsColumnCaptionDateModified":"Date Modified","dxFileManager-listDetailsColumnCaptionFileSize":"File Size","dxFileManager-listThumbnailsTooltipTextSize":"Size","dxFileManager-listThumbnailsTooltipTextDateModified":"Date Modified","dxFileManager-notificationProgressPanelTitle":"Progress","dxFileManager-notificationProgressPanelEmptyListText":"No operations","dxFileManager-notificationProgressPanelOperationCanceled":"Canceled","dxDiagram-categoryGeneral":"General","dxDiagram-categoryFlowchart":"Flowchart","dxDiagram-categoryOrgChart":"Org Chart","dxDiagram-categoryContainers":"Containers","dxDiagram-categoryCustom":"Custom","dxDiagram-commandExportToSvg":"Export to SVG","dxDiagram-commandExportToPng":"Export to PNG","dxDiagram-commandExportToJpg":"Export to JPEG","dxDiagram-commandUndo":"Undo","dxDiagram-commandRedo":"Redo","dxDiagram-commandFontName":"Font Name","dxDiagram-commandFontSize":"Font Size","dxDiagram-commandBold":"Bold","dxDiagram-commandItalic":"Italic","dxDiagram-commandUnderline":"Underline","dxDiagram-commandTextColor":"Font Color","dxDiagram-commandLineColor":"Line Color","dxDiagram-commandLineWidth":"Line Width","dxDiagram-commandLineStyle":"Line Style","dxDiagram-commandLineStyleSolid":"Solid","dxDiagram-commandLineStyleDotted":"Dotted","dxDiagram-commandLineStyleDashed":"Dashed","dxDiagram-commandFillColor":"Fill Color","dxDiagram-commandAlignLeft":"Align Left","dxDiagram-commandAlignCenter":"Align Center","dxDiagram-commandAlignRight":"Align Right","dxDiagram-commandConnectorLineType":"Connector Line Type","dxDiagram-commandConnectorLineStraight":"Straight","dxDiagram-commandConnectorLineOrthogonal":"Orthogonal","dxDiagram-commandConnectorLineStart":"Connector Line Start","dxDiagram-commandConnectorLineEnd":"Connector Line End","dxDiagram-commandConnectorLineNone":"None","dxDiagram-commandConnectorLineArrow":"Arrow","dxDiagram-commandFullscreen":"Full Screen","dxDiagram-commandUnits":"Units","dxDiagram-commandPageSize":"Page Size","dxDiagram-commandPageOrientation":"Page Orientation","dxDiagram-commandPageOrientationLandscape":"Landscape","dxDiagram-commandPageOrientationPortrait":"Portrait","dxDiagram-commandPageColor":"Page Color","dxDiagram-commandShowGrid":"Show Grid","dxDiagram-commandSnapToGrid":"Snap to Grid","dxDiagram-commandGridSize":"Grid Size","dxDiagram-commandZoomLevel":"Zoom Level","dxDiagram-commandAutoZoom":"Auto Zoom","dxDiagram-commandFitToContent":"Fit to Content","dxDiagram-commandFitToWidth":"Fit to Width","dxDiagram-commandAutoZoomByContent":"Auto Zoom by Content","dxDiagram-commandAutoZoomByWidth":"Auto Zoom by Width","dxDiagram-commandSimpleView":"Simple View","dxDiagram-commandCut":"Cut","dxDiagram-commandCopy":"Copy","dxDiagram-commandPaste":"Paste","dxDiagram-commandSelectAll":"Select All","dxDiagram-commandDelete":"Delete","dxDiagram-commandBringToFront":"Bring to Front","dxDiagram-commandSendToBack":"Send to Back","dxDiagram-commandLock":"Lock","dxDiagram-commandUnlock":"Unlock","dxDiagram-commandInsertShapeImage":"Insert Image...","dxDiagram-commandEditShapeImage":"Change Image...","dxDiagram-commandDeleteShapeImage":"Delete Image","dxDiagram-commandLayoutLeftToRight":"Left-to-right","dxDiagram-commandLayoutRightToLeft":"Right-to-left","dxDiagram-commandLayoutTopToBottom":"Top-to-bottom","dxDiagram-commandLayoutBottomToTop":"Bottom-to-top","dxDiagram-unitIn":"in","dxDiagram-unitCm":"cm","dxDiagram-unitPx":"px","dxDiagram-dialogButtonOK":"OK","dxDiagram-dialogButtonCancel":"Cancel","dxDiagram-dialogInsertShapeImageTitle":"Insert Image","dxDiagram-dialogEditShapeImageTitle":"Change Image","dxDiagram-dialogEditShapeImageSelectButton":"Select image","dxDiagram-dialogEditShapeImageLabelText":"or drop a file here","dxDiagram-uiExport":"Export","dxDiagram-uiProperties":"Properties","dxDiagram-uiSettings":"Settings","dxDiagram-uiShowToolbox":"Show Toolbox","dxDiagram-uiSearch":"Search","dxDiagram-uiStyle":"Style","dxDiagram-uiLayout":"Layout","dxDiagram-uiLayoutTree":"Tree","dxDiagram-uiLayoutLayered":"Layered","dxDiagram-uiDiagram":"Diagram","dxDiagram-uiText":"Text","dxDiagram-uiObject":"Object","dxDiagram-uiConnector":"Connector","dxDiagram-uiPage":"Page","dxDiagram-shapeText":"Text","dxDiagram-shapeRectangle":"Rectangle","dxDiagram-shapeEllipse":"Ellipse","dxDiagram-shapeCross":"Cross","dxDiagram-shapeTriangle":"Triangle","dxDiagram-shapeDiamond":"Diamond","dxDiagram-shapeHeart":"Heart","dxDiagram-shapePentagon":"Pentagon","dxDiagram-shapeHexagon":"Hexagon","dxDiagram-shapeOctagon":"Octagon","dxDiagram-shapeStar":"Star","dxDiagram-shapeArrowLeft":"Left Arrow","dxDiagram-shapeArrowUp":"Up Arrow","dxDiagram-shapeArrowRight":"Right Arrow","dxDiagram-shapeArrowDown":"Down Arrow","dxDiagram-shapeArrowUpDown":"Up Down Arrow","dxDiagram-shapeArrowLeftRight":"Left Right Arrow","dxDiagram-shapeProcess":"Process","dxDiagram-shapeDecision":"Decision","dxDiagram-shapeTerminator":"Terminator","dxDiagram-shapePredefinedProcess":"Predefined Process","dxDiagram-shapeDocument":"Document","dxDiagram-shapeMultipleDocuments":"Multiple Documents","dxDiagram-shapeManualInput":"Manual Input","dxDiagram-shapePreparation":"Preparation","dxDiagram-shapeData":"Data","dxDiagram-shapeDatabase":"Database","dxDiagram-shapeHardDisk":"Hard Disk","dxDiagram-shapeInternalStorage":"Internal Storage","dxDiagram-shapePaperTape":"Paper Tape","dxDiagram-shapeManualOperation":"Manual Operation","dxDiagram-shapeDelay":"Delay","dxDiagram-shapeStoredData":"Stored Data","dxDiagram-shapeDisplay":"Display","dxDiagram-shapeMerge":"Merge","dxDiagram-shapeConnector":"Connector","dxDiagram-shapeOr":"Or","dxDiagram-shapeSummingJunction":"Summing Junction","dxDiagram-shapeContainerDefaultText":"Container","dxDiagram-shapeVerticalContainer":"Vertical Container","dxDiagram-shapeHorizontalContainer":"Horizontal Container","dxDiagram-shapeCardDefaultText":"Person's Name","dxDiagram-shapeCardWithImageOnLeft":"Card with Image on the Left","dxDiagram-shapeCardWithImageOnTop":"Card with Image on the Top","dxDiagram-shapeCardWithImageOnRight":"Card with Image on the Right","dxGantt-dialogTitle":"Title","dxGantt-dialogStartTitle":"Start","dxGantt-dialogEndTitle":"End","dxGantt-dialogProgressTitle":"Progress","dxGantt-dialogResourcesTitle":"Resources","dxGantt-dialogResourceManagerTitle":"Resource Manager","dxGantt-dialogTaskDetailsTitle":"Task Details","dxGantt-dialogEditResourceListHint":"Edit Resource List","dxGantt-dialogEditNoResources":"No resources","dxGantt-dialogButtonAdd":"Add","dxGantt-contextMenuNewTask":"New Task","dxGantt-contextMenuNewSubtask":"New Subtask","dxGantt-contextMenuDeleteTask":"Delete Task","dxGantt-contextMenuDeleteDependency":"Delete Dependency","dxGantt-dialogTaskDeleteConfirmation":"Deleting a task also deletes all its dependencies and subtasks. Are you sure you want to delete this task?","dxGantt-dialogDependencyDeleteConfirmation":"Are you sure you want to delete the dependency from the task?","dxGantt-dialogResourcesDeleteConfirmation":"Deleting a resource also deletes it from tasks to which this resource is assigned. Are you sure you want to delete these resources? Resources: {0}","dxGantt-dialogConstraintCriticalViolationMessage":"The task you are attempting to move is linked to a second task by a dependency relation. This change would conflict with dependency rules. How would you like to proceed?","dxGantt-dialogConstraintViolationMessage":"The task you are attempting to move is linked to a second task by a dependency relation. How would you like to proceed?","dxGantt-dialogCancelOperationMessage":"Cancel the operation","dxGantt-dialogDeleteDependencyMessage":"Delete the dependency","dxGantt-dialogMoveTaskAndKeepDependencyMessage":"Move the task and keep the dependency","dxGantt-dialogConstraintCriticalViolationSeveralTasksMessage":"The task you are attempting to move is linked to another tasks by dependency relations. This change would conflict with dependency rules. How would you like to proceed?","dxGantt-dialogConstraintViolationSeveralTasksMessage":"The task you are attempting to move is linked to another tasks by dependency relations. How would you like to proceed?","dxGantt-dialogDeleteDependenciesMessage":"Delete the dependency relations","dxGantt-dialogMoveTaskAndKeepDependenciesMessage":"Move the task and keep the dependencies","dxGantt-undo":"Undo","dxGantt-redo":"Redo","dxGantt-expandAll":"Expand All","dxGantt-collapseAll":"Collapse All","dxGantt-addNewTask":"Add New Task","dxGantt-deleteSelectedTask":"Delete Selected Task","dxGantt-zoomIn":"Zoom In","dxGantt-zoomOut":"Zoom Out","dxGantt-fullScreen":"Full Screen","dxGantt-quarter":"Q{0}","dxGantt-sortingAscendingText":"Sort Ascending","dxGantt-sortingDescendingText":"Sort Descending","dxGantt-sortingClearText":"Clear Sorting","dxGantt-showResources":"Show Resources","dxGantt-showDependencies":"Show Dependencies","dxGantt-dialogStartDateValidation":"Start date must be after {0}","dxGantt-dialogEndDateValidation":"End date must be after {0}"}},d=(0,o.l)(!0,{},l),u=(e,t)=>e[t]||{},c={},h=(0,n.Z)({engine:function(){return"base"},_dictionary:d,load:function(e){(0,o.l)(!0,this._dictionary,e)},_localizablePrefix:"@",setup:function(e){this._localizablePrefix=e},localizeString:function(e){var t=this,i=new RegExp("(^|[^a-zA-Z_0-9"+t._localizablePrefix+"-]+)("+t._localizablePrefix+"{1,2})([a-zA-Z_0-9-]+)","g"),n=t._localizablePrefix+t._localizablePrefix;return e.replace(i,((e,i,o,r)=>{var s,l=t._localizablePrefix+r;return o!==n&&(s=t.format(r)),s||(c[r]=(0,a.OI)(r)),i+(s||l)}))},getMessagesByLocales:function(){return this._dictionary},getDictionary:function(e){return e?c:(0,o.l)({},c,this.getMessagesByLocales()[s.Z.locale()])},getFormatter:function(e){return this._getFormatterBase(e)||this._getFormatterBase(e,"en")},_getFormatterBase:function(e,t){var i=s.Z.getValueByClosestLocale((t=>u(this._dictionary,t)[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),r.WU.apply(this,e)}},format:function(e){var t=this.getFormatter(e),i=Array.prototype.slice.call(arguments,1);return t&&t.apply(this,i)||""}}),p=h},46282:function(e,t,i){"use strict";i.d(t,{Z:function(){return k}});var n=i(27154),o=i(72264),r=i(63419),a=i(50450),s=i(49683),l=i(44432),d=i(33734),u=i(45075),c=i(52977),h=i(57495),p=(e,t)=>{if(t){var i=e;if("string"===typeof e){i="";for(var n=0;n<e.length;n++)"$"!==e[n]&&(i+="\\"),i+=e[n]}for(var o={".00":"{0}","'":"\\'","\\(":"\\(","\\)":"\\)"," ":"\\ ",'"':"&quot;","\\¤":i},r=t.split(";"),a=0;a<r.length;a++)for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[a]=r[a].replace(new RegExp(s,"g"),o[s]));return 2===r.length?r[0]+"_);"+r[1]:r[0]}},f={af:"¤#,##0.00;(¤#,##0.00)","af-NA":"¤#,##0.00;(¤#,##0.00)",agq:"#,##0.00¤",ak:"¤#,##0.00",am:"¤#,##0.00;(¤#,##0.00)",ar:"¤#,##0.00;(¤#,##0.00)","ar-AE":"¤#,##0.00;(¤#,##0.00)","ar-BH":"¤#,##0.00;(¤#,##0.00)","ar-DJ":"¤#,##0.00;(¤#,##0.00)","ar-DZ":"¤#,##0.00;(¤#,##0.00)","ar-EG":"¤#,##0.00;(¤#,##0.00)","ar-EH":"¤#,##0.00;(¤#,##0.00)","ar-ER":"¤#,##0.00;(¤#,##0.00)","ar-IL":"¤#,##0.00;(¤#,##0.00)","ar-IQ":"¤#,##0.00;(¤#,##0.00)","ar-JO":"¤#,##0.00;(¤#,##0.00)","ar-KM":"¤#,##0.00;(¤#,##0.00)","ar-KW":"¤#,##0.00;(¤#,##0.00)","ar-LB":"¤#,##0.00;(¤#,##0.00)","ar-LY":"¤#,##0.00;(¤#,##0.00)","ar-MA":"¤#,##0.00;(¤#,##0.00)","ar-MR":"¤#,##0.00;(¤#,##0.00)","ar-OM":"¤#,##0.00;(¤#,##0.00)","ar-PS":"¤#,##0.00;(¤#,##0.00)","ar-QA":"¤#,##0.00;(¤#,##0.00)","ar-SA":"¤#,##0.00;(¤#,##0.00)","ar-SD":"¤#,##0.00;(¤#,##0.00)","ar-SO":"¤#,##0.00;(¤#,##0.00)","ar-SS":"¤#,##0.00;(¤#,##0.00)","ar-SY":"¤#,##0.00;(¤#,##0.00)","ar-TD":"¤#,##0.00;(¤#,##0.00)","ar-TN":"¤#,##0.00;(¤#,##0.00)","ar-YE":"¤#,##0.00;(¤#,##0.00)",as:"¤ #,##,##0.00",asa:"#,##0.00 ¤",ast:"#,##0.00 ¤",az:"#,##0.00 ¤","az-Cyrl":"#,##0.00 ¤","az-Latn":"#,##0.00 ¤",bas:"#,##0.00 ¤",be:"#,##0.00 ¤","be-tarask":"#,##0.00 ¤",bem:"¤#,##0.00;(¤#,##0.00)",bez:"#,##0.00¤",bg:"0.00 ¤;(0.00 ¤)",bm:"¤#,##0.00;(¤#,##0.00)",bn:"#,##,##0.00¤;(#,##,##0.00¤)","bn-IN":"#,##,##0.00¤;(#,##,##0.00¤)",bo:"¤ #,##0.00","bo-IN":"¤ #,##0.00",br:"#,##0.00 ¤",brx:"¤ #,##,##0.00",bs:"#,##0.00 ¤","bs-Cyrl":"#,##0.00 ¤","bs-Latn":"#,##0.00 ¤",ca:"#,##0.00 ¤;(#,##0.00 ¤)","ca-AD":"#,##0.00 ¤;(#,##0.00 ¤)","ca-ES-valencia":"#,##0.00 ¤;(#,##0.00 ¤)","ca-FR":"#,##0.00 ¤;(#,##0.00 ¤)","ca-IT":"#,##0.00 ¤;(#,##0.00 ¤)",ccp:"#,##,##0.00¤;(#,##,##0.00¤)","ccp-IN":"#,##,##0.00¤;(#,##,##0.00¤)",ce:"#,##0.00 ¤",ceb:"¤#,##0.00;(¤#,##0.00)",cgg:"¤#,##0.00",chr:"¤#,##0.00;(¤#,##0.00)",ckb:"¤ #,##0.00","ckb-IR":"¤ #,##0.00",cs:"#,##0.00 ¤",cy:"¤#,##0.00;(¤#,##0.00)",da:"#,##0.00 ¤","da-GL":"#,##0.00 ¤",dav:"¤#,##0.00;(¤#,##0.00)",de:"#,##0.00 ¤","de-AT":"#,##0.00 ¤","de-BE":"#,##0.00 ¤","de-CH":"#,##0.00 ¤","de-IT":"#,##0.00 ¤","de-LI":"#,##0.00 ¤","de-LU":"#,##0.00 ¤",dje:"#,##0.00¤",doi:"¤#,##0.00",dsb:"#,##0.00 ¤",dua:"#,##0.00 ¤",dyo:"#,##0.00 ¤",dz:"¤#,##,##0.00",ebu:"¤#,##0.00;(¤#,##0.00)",ee:"¤#,##0.00;(¤#,##0.00)","ee-TG":"¤#,##0.00;(¤#,##0.00)",el:"#,##0.00 ¤","el-CY":"#,##0.00 ¤",en:"¤#,##0.00;(¤#,##0.00)","en-001":"¤#,##0.00;(¤#,##0.00)","en-150":"#,##0.00 ¤","en-AE":"¤#,##0.00;(¤#,##0.00)","en-AG":"¤#,##0.00;(¤#,##0.00)","en-AI":"¤#,##0.00;(¤#,##0.00)","en-AS":"¤#,##0.00;(¤#,##0.00)","en-AT":"¤ #,##0.00","en-AU":"¤#,##0.00;(¤#,##0.00)","en-BB":"¤#,##0.00;(¤#,##0.00)","en-BE":"#,##0.00 ¤","en-BI":"¤#,##0.00;(¤#,##0.00)","en-BM":"¤#,##0.00;(¤#,##0.00)","en-BS":"¤#,##0.00;(¤#,##0.00)","en-BW":"¤#,##0.00;(¤#,##0.00)","en-BZ":"¤#,##0.00;(¤#,##0.00)","en-CA":"¤#,##0.00;(¤#,##0.00)","en-CC":"¤#,##0.00;(¤#,##0.00)","en-CH":"¤ #,##0.00;¤-#,##0.00","en-CK":"¤#,##0.00;(¤#,##0.00)","en-CM":"¤#,##0.00;(¤#,##0.00)","en-CX":"¤#,##0.00;(¤#,##0.00)","en-CY":"¤#,##0.00;(¤#,##0.00)","en-DE":"#,##0.00 ¤","en-DG":"¤#,##0.00;(¤#,##0.00)","en-DK":"#,##0.00 ¤","en-DM":"¤#,##0.00;(¤#,##0.00)","en-ER":"¤#,##0.00;(¤#,##0.00)","en-FI":"#,##0.00 ¤","en-FJ":"¤#,##0.00;(¤#,##0.00)","en-FK":"¤#,##0.00;(¤#,##0.00)","en-FM":"¤#,##0.00;(¤#,##0.00)","en-GB":"¤#,##0.00;(¤#,##0.00)","en-GD":"¤#,##0.00;(¤#,##0.00)","en-GG":"¤#,##0.00;(¤#,##0.00)","en-GH":"¤#,##0.00;(¤#,##0.00)","en-GI":"¤#,##0.00;(¤#,##0.00)","en-GM":"¤#,##0.00;(¤#,##0.00)","en-GU":"¤#,##0.00;(¤#,##0.00)","en-GY":"¤#,##0.00;(¤#,##0.00)","en-HK":"¤#,##0.00;(¤#,##0.00)","en-IE":"¤#,##0.00;(¤#,##0.00)","en-IL":"¤#,##0.00;(¤#,##0.00)","en-IM":"¤#,##0.00;(¤#,##0.00)","en-IN":"¤#,##0.00;(¤#,##0.00)","en-IO":"¤#,##0.00;(¤#,##0.00)","en-JE":"¤#,##0.00;(¤#,##0.00)","en-JM":"¤#,##0.00;(¤#,##0.00)","en-KE":"¤#,##0.00;(¤#,##0.00)","en-KI":"¤#,##0.00;(¤#,##0.00)","en-KN":"¤#,##0.00;(¤#,##0.00)","en-KY":"¤#,##0.00;(¤#,##0.00)","en-LC":"¤#,##0.00;(¤#,##0.00)","en-LR":"¤#,##0.00;(¤#,##0.00)","en-LS":"¤#,##0.00;(¤#,##0.00)","en-MG":"¤#,##0.00;(¤#,##0.00)","en-MH":"¤#,##0.00;(¤#,##0.00)","en-MO":"¤#,##0.00;(¤#,##0.00)","en-MP":"¤#,##0.00;(¤#,##0.00)","en-MS":"¤#,##0.00;(¤#,##0.00)","en-MT":"¤#,##0.00;(¤#,##0.00)","en-MU":"¤#,##0.00;(¤#,##0.00)","en-MV":"¤ #,##0.00","en-MW":"¤#,##0.00;(¤#,##0.00)","en-MY":"¤#,##0.00;(¤#,##0.00)","en-NA":"¤#,##0.00;(¤#,##0.00)","en-NF":"¤#,##0.00;(¤#,##0.00)","en-NG":"¤#,##0.00;(¤#,##0.00)","en-NL":"¤ #,##0.00;(¤ #,##0.00)","en-NR":"¤#,##0.00;(¤#,##0.00)","en-NU":"¤#,##0.00;(¤#,##0.00)","en-NZ":"¤#,##0.00;(¤#,##0.00)","en-PG":"¤#,##0.00;(¤#,##0.00)","en-PH":"¤#,##0.00;(¤#,##0.00)","en-PK":"¤#,##0.00;(¤#,##0.00)","en-PN":"¤#,##0.00;(¤#,##0.00)","en-PR":"¤#,##0.00;(¤#,##0.00)","en-PW":"¤#,##0.00;(¤#,##0.00)","en-RW":"¤#,##0.00;(¤#,##0.00)","en-SB":"¤#,##0.00;(¤#,##0.00)","en-SC":"¤#,##0.00;(¤#,##0.00)","en-SD":"¤#,##0.00;(¤#,##0.00)","en-SE":"#,##0.00 ¤","en-SG":"¤#,##0.00;(¤#,##0.00)","en-SH":"¤#,##0.00;(¤#,##0.00)","en-SI":"#,##0.00 ¤;(#,##0.00 ¤)","en-SL":"¤#,##0.00;(¤#,##0.00)","en-SS":"¤#,##0.00;(¤#,##0.00)","en-SX":"¤#,##0.00;(¤#,##0.00)","en-SZ":"¤#,##0.00;(¤#,##0.00)","en-TC":"¤#,##0.00;(¤#,##0.00)","en-TK":"¤#,##0.00;(¤#,##0.00)","en-TO":"¤#,##0.00;(¤#,##0.00)","en-TT":"¤#,##0.00;(¤#,##0.00)","en-TV":"¤#,##0.00;(¤#,##0.00)","en-TZ":"¤#,##0.00;(¤#,##0.00)","en-UG":"¤#,##0.00;(¤#,##0.00)","en-UM":"¤#,##0.00;(¤#,##0.00)","en-VC":"¤#,##0.00;(¤#,##0.00)","en-VG":"¤#,##0.00;(¤#,##0.00)","en-VI":"¤#,##0.00;(¤#,##0.00)","en-VU":"¤#,##0.00;(¤#,##0.00)","en-WS":"¤#,##0.00;(¤#,##0.00)","en-ZA":"¤#,##0.00;(¤#,##0.00)","en-ZM":"¤#,##0.00;(¤#,##0.00)","en-ZW":"¤#,##0.00;(¤#,##0.00)",eo:"¤ #,##0.00",es:"#,##0.00 ¤","es-419":"¤#,##0.00","es-AR":"¤ #,##0.00;(¤ #,##0.00)","es-BO":"¤#,##0.00","es-BR":"¤#,##0.00","es-BZ":"¤#,##0.00","es-CL":"¤#,##0.00","es-CO":"¤#,##0.00","es-CR":"¤#,##0.00","es-CU":"¤#,##0.00","es-DO":"¤#,##0.00;(¤#,##0.00)","es-EA":"#,##0.00 ¤","es-EC":"¤#,##0.00","es-GQ":"#,##0.00 ¤","es-GT":"¤#,##0.00","es-HN":"¤#,##0.00","es-IC":"#,##0.00 ¤","es-MX":"¤#,##0.00","es-NI":"¤#,##0.00","es-PA":"¤#,##0.00","es-PE":"¤#,##0.00","es-PH":"#,##0.00 ¤","es-PR":"¤#,##0.00","es-PY":"¤#,##0.00","es-SV":"¤#,##0.00","es-US":"¤#,##0.00","es-UY":"¤ #,##0.00;(¤ #,##0.00)","es-VE":"¤#,##0.00",et:"#,##0.00 ¤;(#,##0.00 ¤)",eu:"#,##0.00 ¤;(#,##0.00 ¤)",ewo:"#,##0.00 ¤",fa:"‎¤ #,##0.00;‎(¤ #,##0.00)","fa-AF":"¤ #,##0.00;‎(¤ #,##0.00)",ff:"#,##0.00 ¤","ff-Adlm":"¤ #,##0.00","ff-Adlm-BF":"¤ #,##0.00","ff-Adlm-CM":"¤ #,##0.00","ff-Adlm-GH":"¤ #,##0.00","ff-Adlm-GM":"¤ #,##0.00","ff-Adlm-GW":"¤ #,##0.00","ff-Adlm-LR":"¤ #,##0.00","ff-Adlm-MR":"¤ #,##0.00","ff-Adlm-NE":"¤ #,##0.00","ff-Adlm-NG":"¤ #,##0.00","ff-Adlm-SL":"¤ #,##0.00","ff-Adlm-SN":"¤ #,##0.00","ff-Latn":"#,##0.00 ¤","ff-Latn-BF":"#,##0.00 ¤","ff-Latn-CM":"#,##0.00 ¤","ff-Latn-GH":"#,##0.00 ¤","ff-Latn-GM":"#,##0.00 ¤","ff-Latn-GN":"#,##0.00 ¤","ff-Latn-GW":"#,##0.00 ¤","ff-Latn-LR":"#,##0.00 ¤","ff-Latn-MR":"#,##0.00 ¤","ff-Latn-NE":"#,##0.00 ¤","ff-Latn-NG":"#,##0.00 ¤","ff-Latn-SL":"#,##0.00 ¤",fi:"#,##0.00 ¤",fil:"¤#,##0.00;(¤#,##0.00)",fo:"#,##0.00 ¤;(#,##0.00 ¤)","fo-DK":"#,##0.00 ¤;(#,##0.00 ¤)",fr:"#,##0.00 ¤;(#,##0.00 ¤)","fr-BE":"#,##0.00 ¤;(#,##0.00 ¤)","fr-BF":"#,##0.00 ¤;(#,##0.00 ¤)","fr-BI":"#,##0.00 ¤;(#,##0.00 ¤)","fr-BJ":"#,##0.00 ¤;(#,##0.00 ¤)","fr-BL":"#,##0.00 ¤;(#,##0.00 ¤)","fr-CA":"#,##0.00 ¤;(#,##0.00 ¤)","fr-CD":"#,##0.00 ¤;(#,##0.00 ¤)","fr-CF":"#,##0.00 ¤;(#,##0.00 ¤)","fr-CG":"#,##0.00 ¤;(#,##0.00 ¤)","fr-CH":"#,##0.00 ¤;(#,##0.00 ¤)","fr-CI":"#,##0.00 ¤;(#,##0.00 ¤)","fr-CM":"#,##0.00 ¤;(#,##0.00 ¤)","fr-DJ":"#,##0.00 ¤;(#,##0.00 ¤)","fr-DZ":"#,##0.00 ¤;(#,##0.00 ¤)","fr-GA":"#,##0.00 ¤;(#,##0.00 ¤)","fr-GF":"#,##0.00 ¤;(#,##0.00 ¤)","fr-GN":"#,##0.00 ¤;(#,##0.00 ¤)","fr-GP":"#,##0.00 ¤;(#,##0.00 ¤)","fr-GQ":"#,##0.00 ¤;(#,##0.00 ¤)","fr-HT":"#,##0.00 ¤;(#,##0.00 ¤)","fr-KM":"#,##0.00 ¤;(#,##0.00 ¤)","fr-LU":"#,##0.00 ¤;(#,##0.00 ¤)","fr-MA":"#,##0.00 ¤;(#,##0.00 ¤)","fr-MC":"#,##0.00 ¤;(#,##0.00 ¤)","fr-MF":"#,##0.00 ¤;(#,##0.00 ¤)","fr-MG":"#,##0.00 ¤;(#,##0.00 ¤)","fr-ML":"#,##0.00 ¤;(#,##0.00 ¤)","fr-MQ":"#,##0.00 ¤;(#,##0.00 ¤)","fr-MR":"#,##0.00 ¤;(#,##0.00 ¤)","fr-MU":"#,##0.00 ¤;(#,##0.00 ¤)","fr-NC":"#,##0.00 ¤;(#,##0.00 ¤)","fr-NE":"#,##0.00 ¤;(#,##0.00 ¤)","fr-PF":"#,##0.00 ¤;(#,##0.00 ¤)","fr-PM":"#,##0.00 ¤;(#,##0.00 ¤)","fr-RE":"#,##0.00 ¤;(#,##0.00 ¤)","fr-RW":"#,##0.00 ¤;(#,##0.00 ¤)","fr-SC":"#,##0.00 ¤;(#,##0.00 ¤)","fr-SN":"#,##0.00 ¤;(#,##0.00 ¤)","fr-SY":"#,##0.00 ¤;(#,##0.00 ¤)","fr-TD":"#,##0.00 ¤;(#,##0.00 ¤)","fr-TG":"#,##0.00 ¤;(#,##0.00 ¤)","fr-TN":"#,##0.00 ¤;(#,##0.00 ¤)","fr-VU":"#,##0.00 ¤;(#,##0.00 ¤)","fr-WF":"#,##0.00 ¤;(#,##0.00 ¤)","fr-YT":"#,##0.00 ¤;(#,##0.00 ¤)",fur:"¤ #,##0.00",fy:"¤ #,##0.00;(¤ #,##0.00)",ga:"¤#,##0.00;(¤#,##0.00)","ga-GB":"¤#,##0.00;(¤#,##0.00)",gd:"¤#,##0.00;(¤#,##0.00)",gl:"#,##0.00 ¤",gsw:"#,##0.00 ¤","gsw-FR":"#,##0.00 ¤","gsw-LI":"#,##0.00 ¤",gu:"¤#,##,##0.00;(¤#,##,##0.00)",guz:"¤#,##0.00;(¤#,##0.00)",gv:"¤#,##0.00",ha:"¤ #,##0.00","ha-GH":"¤ #,##0.00","ha-NE":"¤ #,##0.00",haw:"¤#,##0.00;(¤#,##0.00)",he:"#,##0.00 ¤",hi:"¤#,##,##0.00","hi-Latn":"¤#,##,##0.00",hr:"#,##0.00 ¤","hr-BA":"#,##0.00 ¤",hsb:"#,##0.00 ¤",hu:"#,##0.00 ¤",hy:"#,##0.00 ¤",ia:"¤ #,##0.00;(¤ #,##0.00)",id:"¤#,##0.00",ig:"¤#,##0.00;(¤#,##0.00)",ii:"¤ #,##0.00",is:"#,##0.00 ¤",it:"#,##0.00 ¤","it-CH":"#,##0.00 ¤","it-SM":"#,##0.00 ¤","it-VA":"#,##0.00 ¤",ja:"¤#,##0.00;(¤#,##0.00)",jgo:"¤ #,##0.00",jmc:"¤#,##0.00",jv:"¤ #,##0.00",ka:"#,##0.00 ¤",kab:"#,##0.00¤",kam:"¤#,##0.00;(¤#,##0.00)",kde:"¤#,##0.00;(¤#,##0.00)",kea:"#,##0.00 ¤;(#,##0.00 ¤)",kgp:"¤ #,##0.00",khq:"#,##0.00¤",ki:"¤#,##0.00;(¤#,##0.00)",kk:"#,##0.00 ¤",kkj:"¤ #,##0.00",kl:"¤#,##0.00;¤-#,##0.00",kln:"¤#,##0.00;(¤#,##0.00)",km:"#,##0.00¤;(#,##0.00¤)",kn:"¤#,##0.00;(¤#,##0.00)",ko:"¤#,##0.00;(¤#,##0.00)","ko-KP":"¤#,##0.00;(¤#,##0.00)",kok:"¤#,##0.00;(¤#,##0.00)",ks:"¤#,##0.00","ks-Arab":"¤#,##0.00","ks-Deva":"¤ #,##0.00",ksb:"#,##0.00¤",ksf:"#,##0.00 ¤",ksh:"#,##0.00 ¤",ku:"#,##0.00 ¤;(#,##0.00 ¤)",kw:"¤#,##0.00",ky:"#,##0.00 ¤",lag:"¤ #,##0.00",lb:"#,##0.00 ¤",lg:"#,##0.00¤",lkt:"¤ #,##0.00",ln:"#,##0.00 ¤","ln-AO":"#,##0.00 ¤","ln-CF":"#,##0.00 ¤","ln-CG":"#,##0.00 ¤",lo:"¤#,##0.00;¤-#,##0.00",lrc:"¤ #,##0.00","lrc-IQ":"¤ #,##0.00",lt:"#,##0.00 ¤",lu:"#,##0.00¤",luo:"#,##0.00¤",luy:"¤#,##0.00;¤- #,##0.00",lv:"#,##0.00 ¤",mai:"¤ #,##0.00",mas:"¤#,##0.00;(¤#,##0.00)","mas-TZ":"¤#,##0.00;(¤#,##0.00)",mer:"¤#,##0.00;(¤#,##0.00)",mfe:"¤ #,##0.00",mg:"¤#,##0.00",mgh:"¤ #,##0.00",mgo:"¤ #,##0.00",mi:"¤ #,##0.00",mk:"#,##0.00 ¤",ml:"¤#,##0.00;(¤#,##0.00)",mn:"¤ #,##0.00",mni:"¤ #,##0.00","mni-Beng":"¤ #,##0.00",mr:"¤#,##0.00;(¤#,##0.00)",ms:"¤#,##0.00;(¤#,##0.00)","ms-BN":"¤#,##0.00;(¤#,##0.00)","ms-ID":"¤#,##0.00","ms-SG":"¤#,##0.00;(¤#,##0.00)",mt:"¤#,##0.00",mua:"¤#,##0.00;(¤#,##0.00)",my:"¤ #,##0.00",mzn:"¤ #,##0.00",naq:"¤#,##0.00",nb:"¤ #,##0.00;(¤ #,##0.00)","nb-SJ":"¤ #,##0.00;(¤ #,##0.00)",nd:"¤#,##0.00;(¤#,##0.00)",nds:"¤ #,##0.00","nds-NL":"¤ #,##0.00",ne:"¤ #,##,##0.00","ne-IN":"¤ #,##,##0.00",nl:"¤ #,##0.00;(¤ #,##0.00)","nl-AW":"¤ #,##0.00;(¤ #,##0.00)","nl-BE":"¤ #,##0.00;(¤ #,##0.00)","nl-BQ":"¤ #,##0.00;(¤ #,##0.00)","nl-CW":"¤ #,##0.00;(¤ #,##0.00)","nl-SR":"¤ #,##0.00;(¤ #,##0.00)","nl-SX":"¤ #,##0.00;(¤ #,##0.00)",nmg:"#,##0.00 ¤",nn:"#,##0.00 ¤",nnh:"¤ #,##0.00",no:"¤ #,##0.00;(¤ #,##0.00)",nus:"¤#,##0.00;(¤#,##0.00)",nyn:"¤#,##0.00",om:"¤#,##0.00","om-KE":"¤#,##0.00",or:"¤#,##0.00;(¤#,##0.00)",os:"¤ #,##0.00","os-RU":"¤ #,##0.00",pa:"¤ #,##0.00","pa-Arab":"¤ #,##0.00","pa-Guru":"¤ #,##0.00",pcm:"¤#,##0.00",pl:"#,##0.00 ¤;(#,##0.00 ¤)",ps:"¤#,##0.00;(¤#,##0.00)","ps-PK":"¤#,##0.00;(¤#,##0.00)",pt:"¤ #,##0.00","pt-AO":"#,##0.00 ¤;(#,##0.00 ¤)","pt-CH":"#,##0.00 ¤;(#,##0.00 ¤)","pt-CV":"#,##0.00 ¤;(#,##0.00 ¤)","pt-GQ":"#,##0.00 ¤;(#,##0.00 ¤)","pt-GW":"#,##0.00 ¤;(#,##0.00 ¤)","pt-LU":"#,##0.00 ¤;(#,##0.00 ¤)","pt-MO":"#,##0.00 ¤;(#,##0.00 ¤)","pt-MZ":"#,##0.00 ¤;(#,##0.00 ¤)","pt-PT":"#,##0.00 ¤;(#,##0.00 ¤)","pt-ST":"#,##0.00 ¤;(#,##0.00 ¤)","pt-TL":"#,##0.00 ¤;(#,##0.00 ¤)",qu:"¤ #,##0.00","qu-BO":"¤ #,##0.00","qu-EC":"¤ #,##0.00",rm:"#,##0.00 ¤",rn:"#,##0.00¤",ro:"#,##0.00 ¤;(#,##0.00 ¤)","ro-MD":"#,##0.00 ¤;(#,##0.00 ¤)",rof:"¤#,##0.00",ru:"#,##0.00 ¤","ru-BY":"#,##0.00 ¤","ru-KG":"#,##0.00 ¤","ru-KZ":"#,##0.00 ¤","ru-MD":"#,##0.00 ¤","ru-UA":"#,##0.00 ¤",rw:"¤ #,##0.00",rwk:"#,##0.00¤",sa:"¤ #,##0.00",sah:"#,##0.00 ¤",saq:"¤#,##0.00;(¤#,##0.00)",sat:"¤ #,##0.00","sat-Olck":"¤ #,##0.00",sbp:"#,##0.00¤",sc:"#,##0.00 ¤",sd:"¤ #,##0.00","sd-Arab":"¤ #,##0.00","sd-Deva":"¤ #,##0.00",se:"#,##0.00 ¤","se-FI":"#,##0.00 ¤","se-SE":"#,##0.00 ¤",seh:"#,##0.00¤",ses:"#,##0.00¤",sg:"¤#,##0.00;¤-#,##0.00",shi:"#,##0.00¤","shi-Latn":"#,##0.00¤","shi-Tfng":"#,##0.00¤",si:"¤#,##0.00;(¤#,##0.00)",sk:"#,##0.00 ¤;(#,##0.00 ¤)",sl:"#,##0.00 ¤;(#,##0.00 ¤)",smn:"#,##0.00 ¤",sn:"¤#,##0.00;(¤#,##0.00)",so:"¤#,##0.00;(¤#,##0.00)","so-DJ":"¤#,##0.00;(¤#,##0.00)","so-ET":"¤#,##0.00;(¤#,##0.00)","so-KE":"¤#,##0.00;(¤#,##0.00)",sq:"#,##0.00 ¤;(#,##0.00 ¤)","sq-MK":"#,##0.00 ¤;(#,##0.00 ¤)","sq-XK":"#,##0.00 ¤;(#,##0.00 ¤)",sr:"#,##0.00 ¤;(#,##0.00 ¤)","sr-Cyrl":"#,##0.00 ¤;(#,##0.00 ¤)","sr-Cyrl-BA":"#,##0.00 ¤;(#,##0.00 ¤)","sr-Cyrl-ME":"#,##0.00 ¤;(#,##0.00 ¤)","sr-Cyrl-XK":"#,##0.00 ¤;(#,##0.00 ¤)","sr-Latn":"#,##0.00 ¤;(#,##0.00 ¤)","sr-Latn-BA":"#,##0.00 ¤;(#,##0.00 ¤)","sr-Latn-ME":"#,##0.00 ¤;(#,##0.00 ¤)","sr-Latn-XK":"#,##0.00 ¤;(#,##0.00 ¤)",su:"¤#,##0.00","su-Latn":"¤#,##0.00",sv:"#,##0.00 ¤","sv-AX":"#,##0.00 ¤","sv-FI":"#,##0.00 ¤",sw:"¤ #,##0.00","sw-CD":"¤ #,##0.00","sw-KE":"¤ #,##0.00","sw-UG":"¤ #,##0.00",ta:"¤#,##0.00;(¤#,##0.00)","ta-LK":"¤#,##0.00;(¤#,##0.00)","ta-MY":"¤#,##0.00;(¤#,##0.00)","ta-SG":"¤#,##0.00;(¤#,##0.00)",te:"¤#,##0.00;(¤#,##0.00)",teo:"¤#,##0.00;(¤#,##0.00)","teo-KE":"¤#,##0.00;(¤#,##0.00)",tg:"#,##0.00 ¤",th:"¤#,##0.00;(¤#,##0.00)",ti:"¤#,##0.00","ti-ER":"¤#,##0.00",tk:"#,##0.00 ¤",to:"¤ #,##0.00",tr:"¤#,##0.00;(¤#,##0.00)","tr-CY":"¤#,##0.00;(¤#,##0.00)",tt:"#,##0.00 ¤",twq:"#,##0.00¤",tzm:"#,##0.00 ¤",ug:"¤#,##0.00;(¤#,##0.00)",uk:"#,##0.00 ¤",und:"¤ #,##0.00",ur:"¤#,##0.00;(¤#,##0.00)","ur-IN":"¤#,##0.00;(¤#,##0.00)",uz:"#,##0.00 ¤","uz-Arab":"¤ #,##0.00","uz-Cyrl":"#,##0.00 ¤","uz-Latn":"#,##0.00 ¤",vai:"¤#,##0.00;(¤#,##0.00)","vai-Latn":"¤#,##0.00;(¤#,##0.00)","vai-Vaii":"¤#,##0.00;(¤#,##0.00)",vi:"#,##0.00 ¤",vun:"¤#,##0.00",wae:"¤ #,##0.00",wo:"¤ #,##0.00",xh:"¤#,##0.00",xog:"#,##0.00 ¤",yav:"#,##0.00 ¤;(#,##0.00 ¤)",yi:"¤ #,##0.00",yo:"¤#,##0.00;(¤#,##0.00)","yo-BJ":"¤#,##0.00;(¤#,##0.00)",yrl:"¤ #,##0.00","yrl-CO":"¤ #,##0.00","yrl-VE":"¤ #,##0.00",yue:"¤#,##0.00;(¤#,##0.00)","yue-Hans":"¤#,##0.00;(¤#,##0.00)","yue-Hant":"¤#,##0.00;(¤#,##0.00)",zgh:"#,##0.00¤",zh:"¤#,##0.00;(¤#,##0.00)","zh-Hans":"¤#,##0.00;(¤#,##0.00)","zh-Hans-HK":"¤#,##0.00;(¤#,##0.00)","zh-Hans-MO":"¤#,##0.00;(¤#,##0.00)","zh-Hans-SG":"¤#,##0.00;(¤#,##0.00)","zh-Hant":"¤#,##0.00;(¤#,##0.00)","zh-Hant-HK":"¤#,##0.00;(¤#,##0.00)","zh-Hant-MO":"¤#,##0.00;(¤#,##0.00)",zu:"¤#,##0.00;(¤#,##0.00)"},g=["standard","accounting"],m=20,_=/([^\s0]+)?(\s*)0*[.,]*0*(\s*)([^\s0]+)?/,v={},y=e=>{var t=h.Z.locale()+"/"+JSON.stringify(e);return v[t]||(v[t]=new Intl.NumberFormat(h.Z.locale(),e).format),v[t]},C=e=>new Intl.NumberFormat(h.Z.locale(),{style:"currency",currency:e}),b={engine:function(){return"intl"},_formatNumberCore:function(e,t,i){return"exponential"===t?this.callBase.apply(this,arguments):y(this._normalizeFormatConfig(t,i,e))(e)},_normalizeFormatConfig:function(e,t,i){var n;if("decimal"===e){var o=String(i).split(".")[1];n={minimumIntegerDigits:t.precision||void 0,useGrouping:!1,maximumFractionDigits:o&&o.length,round:i<0?"ceil":"floor"}}else n=this._getPrecisionConfig(t.precision);if("percent"===e)n.style="percent";else if("currency"===e){var r,a=null!==(r=t.useCurrencyAccountingStyle)&&void 0!==r?r:(0,l.Z)().defaultUseCurrencyAccountingStyle;n.style="currency",n.currency=t.currency||(0,l.Z)().defaultCurrency,n.currencySign=g[+a]}return n},_getPrecisionConfig:function(e){var t;return t=null===e?{minimumFractionDigits:0,maximumFractionDigits:m}:{minimumFractionDigits:e||0,maximumFractionDigits:e||0},t},format:function(e,t){return"number"!==typeof e?e:(t=this._normalizeFormat(t),"default"===t.currency&&(t.currency=(0,l.Z)().defaultCurrency),t&&("function"===typeof t||t.type||t.formatter)?this.callBase.apply(this,arguments):y(t)(e))},_getCurrencySymbolInfo:function(e){var t=C(e);return this._extractCurrencySymbolInfo(t.format(0))},_extractCurrencySymbolInfo:function(e){var t=_.exec(e)||[],i=t[1]?"before":"after",n=t[1]||t[4]||"",o=t[2]||t[3]||"";return{position:i,symbol:n,delimiter:o}},getCurrencySymbol:function(e){e||(e=(0,l.Z)().defaultCurrency);var t=this._getCurrencySymbolInfo(e);return{symbol:t.symbol}},getOpenXmlCurrencyFormat:function(e){var t=e||(0,l.Z)().defaultCurrency,i=this._getCurrencySymbolInfo(t).symbol,n=h.Z.getValueByClosestLocale((e=>f[e]));return p(i,n)}},x="undefined"!==typeof Intl,w=4,T=10,S=["currency","fixedpoint","exponential","percent","decimal"],I={1:"K",2:"M",3:"B",4:"T"},E={largenumber:"auto",thousands:1,millions:2,billions:3,trillions:4},D=(0,n.Z)({engine:function(){return"base"},numericFormats:S,defaultLargeNumberFormatPostfixes:I,_parseNumberFormatString:function(e){var t={};if(e&&"string"===typeof e){var i=e.toLowerCase().split(" ");return(0,r.S6)(i,((e,i)=>{S.includes(i)?t.formatType=i:i in E&&(t.power=E[i])})),t.power&&!t.formatType&&(t.formatType="fixedpoint"),t.formatType?t:void 0}},_calculateNumberPower:function(e,t,i,n){var o=Math.abs(e),r=0;if(o>1)while(o&&o>=t&&(void 0===n||r<n))r++,o/=t;else if(o>0&&o<1)while(o<1&&(void 0===i||r>i))r--,o*=t;return r},_getNumberByPower:function(e,t,i){var n=e;while(t>0)n/=i,t--;while(t<0)n*=i,t++;return n},_formatNumber:function(e,t,i){"auto"===t.power&&(t.power=this._calculateNumberPower(e,1e3,0,w)),t.power&&(e=this._getNumberByPower(e,t.power,1e3));var n=this.defaultLargeNumberFormatPostfixes[t.power]||"",o=this._formatNumberCore(e,t.formatType,i);return o=o.replace(/(\d|.$)(\D*)$/,"$1"+n+"$2"),o},_formatNumberExponential:function(e,t){var i=this._calculateNumberPower(e,T),n=this._getNumberByPower(e,i,T);void 0===t.precision&&(t.precision=1),n.toFixed(t.precision||0)>=T&&(i++,n/=T);var o=(i>=0?"+":"")+i.toString();return this._formatNumberCore(n,"fixedpoint",t)+"E"+o},_addZeroes:function(e,t){var i=Math.pow(10,t),n=e<0?"-":"";e=(Math.abs(e)*i>>>0)/i;var o=e.toString();while(o.length<t)o="0"+o;return n+o},_addGroupSeparators:function(e){var t=e.toString().split(".");return t[0].replace(/\B(?=(\d{3})+(?!\d))/g,(0,l.Z)().thousandsSeparator)+(t[1]?(0,l.Z)().decimalSeparator+t[1]:"")},_formatNumberCore:function(e,t,i){return"exponential"===t?this._formatNumberExponential(e,i):("decimal"!==t&&null!==i.precision&&(i.precision=i.precision||0),"percent"===t&&(e*=100),void 0!==i.precision&&(e="decimal"===t?this._addZeroes(e,i.precision):null===i.precision?e.toPrecision():(0,u.F)(e,i.precision)),e="decimal"!==t?this._addGroupSeparators(e):e.toString().replace(".",(0,l.Z)().decimalSeparator),"percent"===t&&(e+="%"),e)},_normalizeFormat:function(e){return e?("function"===typeof e||(0,a.PO)(e)||(e={type:e}),e):{}},_getSeparators:function(){return{decimalSeparator:this.getDecimalSeparator(),thousandsSeparator:this.getThousandsSeparator()}},getThousandsSeparator:function(){return this.format(1e4,"fixedPoint")[2]},getDecimalSeparator:function(){return this.format(1.2,{type:"fixedPoint",precision:1})[1]},convertDigits:function(e,t){var i=this.format(90,"decimal");if("string"!==typeof e||"0"===i[1])return e;var n=t?i[1]:"0",o=t?"0":i[1],r=t?i[0]:"9",a=new RegExp("["+n+"-"+r+"]","g");return e.replace(a,(e=>String.fromCharCode(e.charCodeAt(0)+(o.charCodeAt(0)-n.charCodeAt(0)))))},getNegativeEtalonRegExp:function(e){var t=this._getSeparators(),i=new RegExp("[0-9"+(0,o.hr)(t.decimalSeparator+t.thousandsSeparator)+"]+","g"),n=this.format(-1,e).replace(i,"1");return["\\","(",")","[","]","*","+","$","^","?","|","{","}"].forEach((e=>{n=n.replace(new RegExp("\\".concat(e),"g"),"\\".concat(e))})),n=n.replace(/ /g,"\\s"),n=n.replace(/1/g,".*"),new RegExp(n,"g")},getSign:function(e,t){if(!t)return"-"===e.replace(/[^0-9-]/g,"").charAt(0)?-1:1;var i=this.getNegativeEtalonRegExp(t);return e.match(i)?-1:1},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 i=this._parseNumberFormatString(t.type);if(!i){var n=this._getSeparators();return n.unlimitedIntegerDigits=t.unlimitedIntegerDigits,this.convertDigits((0,s.P)(t.type,n)(e))}return this._formatNumber(e,i,t)},parse:function(e,t){if(e){if(t&&t.parser)return t.parser(e);e=this.convertDigits(e,!0),t&&"string"!==typeof t&&d.Z.log("W0011");var i=this.getDecimalSeparator(),n=new RegExp("[^0-9"+(0,o.hr)(i)+"]","g"),r=e.replace(n,"").replace(i,".").replace(/\.$/g,"");if("."===r||""===r)return null;if(this._calcSignificantDigits(r)>15)return NaN;var a=+r*this.getSign(e,t);t=this._normalizeFormat(t);var s=this._parseNumberFormatString(t.type),l=null===s||void 0===s?void 0:s.power;if(l){if("auto"===l){var u=e.match(/\d(K|M|B|T)/);u&&(l=Object.keys(I).find((e=>I[e]===u[1])))}a*=Math.pow(10,3*l)}return"percent"===(null===s||void 0===s?void 0:s.formatType)&&(a/=100),a}},_calcSignificantDigits:function(e){var[t,i]=e.split("."),n=e=>{for(var t=-1,i=0;i<e.length;i++)if("0"!==e[i]){t=i;break}return t>-1?e.length-t:0},o=0;return t&&(o+=n(t.split(""))),i&&(o+=n(i.split("").reverse())),o}});D.inject(c.Z),x&&D.inject(b);var k=D},45075:function(e,t,i){"use strict";i.d(t,{F:function(){return s}});var n=i(94381),o=10;function r(e){var t=(0,n.Xx)(e);return t*Math.round(Math.abs(e))}function a(e,t){var i=Math.pow(o,t),a=(0,n.Ow)(e,t);return r(a)/i}function s(e,t){var i=t||0,n=i>0?a(...arguments):e;return n.toFixed(i)}},93319:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return XG}});var n=i(30057),o=i(57678),r=i(78852),a=i(44099),s=i(18274),l=i(50450),d="tasks",u="dependencies",c="resources",h="resourceAssignments",p={create:e=>({NotifyTaskCreated:(t,i,n)=>{e._onRecordInserted(d,t,i)},NotifyTaskRemoved:(t,i,n)=>{e._onRecordRemoved(d,t,n)},NotifyTaskUpdated:(t,i,n)=>{e._onRecordUpdated(d,t,i)},NotifyParentTaskUpdated:(t,i)=>{e._onParentTaskUpdated(t)},NotifyDependencyInserted:(t,i,n)=>{e._onRecordInserted(u,t,i)},NotifyDependencyRemoved:(t,i,n)=>{e._onRecordRemoved(u,t,n)},NotifyResourceCreated:(t,i,n)=>{e._onRecordInserted(c,t,i)},NotifyResourceRemoved:(t,i,n)=>{e._onRecordRemoved(c,t,n)},NotifyResourceAssigned:(t,i,n)=>{e._onRecordInserted(h,t,i)},NotifyResourceUnassigned:(t,i,n)=>{e._onRecordRemoved(h,t,n)},NotifyParentDataRecalculated:t=>{e._onParentTasksRecalculated(t)},NotifyTaskCreating:t=>{e._actionsManager.raiseInsertingAction(d,t)},NotifyTaskRemoving:t=>{e._actionsManager.raiseDeletingAction(d,t)},NotifyTaskUpdating:t=>{e._actionsManager.raiseUpdatingAction(d,t)},NotifyTaskMoving:t=>{e._actionsManager.raiseUpdatingAction(d,t,e._actionsManager.getTaskMovingAction())},NotifyTaskEditDialogShowing:t=>{e._actionsManager.raiseTaskEditDialogShowingAction(t)},NotifyResourceManagerDialogShowing:t=>{e._actionsManager.raiseResourceManagerDialogShowingAction(t)},NotifyDependencyInserting:t=>{e._actionsManager.raiseInsertingAction(u,t)},NotifyDependencyRemoving:t=>{e._actionsManager.raiseDeletingAction(u,t)},NotifyResourceCreating:t=>{e._actionsManager.raiseInsertingAction(c,t)},NotifyResourceRemoving:t=>{e._actionsManager.raiseDeletingAction(c,t)},NotifyResourceAssigning:t=>{e._actionsManager.raiseInsertingAction(h,t)},NotifyResourceUnassigning:t=>{e._actionsManager.raiseDeletingAction(h,t)},NotifyScaleCellPrepared:t=>{e._actionsManager.raiseScaleCellPreparedAction(t)}})},f=i(18176),g=i(95060);class m extends f.w{constructor(e,t,i){super(),this._optionName=e,this._getLoadPanel=t,this._dataSourceChangedCallback=i}insert(e,t,i){this._showLoadPanel(),this._getStore().insert(e).done((e=>{t&&t(e),this._hideLoadPanel()})).fail((e=>{i&&i(e),this._hideLoadPanel()}))}update(e,t,i,n){this._showLoadPanel(),this._getStore().update(e,t).done(((e,t)=>{i&&i(e,t),this._hideLoadPanel()})).fail((e=>{n&&n(e),this._hideLoadPanel()}))}remove(e,t,i){this._showLoadPanel(),this._getStore().remove(e).done((e=>{t&&t(e),this._hideLoadPanel()})).fail((e=>{i&&i(e),this._hideLoadPanel()}))}_dataSourceChangedHandler(e,t){this._dataSourceChangedCallback(this._optionName,e)}_dataSourceOptions(){return{paginate:!1}}_dataSourceLoadingChangedHandler(e){e&&!this._dataSource.isLoaded()?this._showLoadPanel():this._hideLoadPanel()}_showLoadPanel(){var e;null===(e=this._getLoadPanel())||void 0===e||e.show()}_hideLoadPanel(){var e;null===(e=this._getLoadPanel())||void 0===e||e.hide()}_getStore(){return this._dataSource.store()}_getItems(){return this._getStore()._array||this._dataSource.items()}_reloadDataSource(){return this._dataSource.load()}dispose(){this._disposeDataSource()}_optionChanged(e){e.name}}m.include(g.Z);var _=m,v=i(72264),y=i(44417),C=i(652),b=i(230),x=i(53970),w=i(30390),T=i(90343),S=i(19728),I=i(86859),E=i(63419),D=i(23191);function k(e,t,i){function n(e){return"string"===typeof e?e.split("."):"number"===typeof e?[e]:e}e=n(e),t=n(t);var o=Math.max(e.length,t.length);isFinite(i)&&(o=Math.min(o,i));for(var r=0;r<o;r++){var a=parseInt(e[r]||0,10),s=parseInt(t[r]||0,10);if(a<s)return-1;if(a>s)return 1}return 0}var O,A=i(50812),P=i(49784),M=i(25445),R=i(78172),B=i(91866),V=i(36494),F=i(32369),H="dxactive",L="dxinactive",N=30,Z=400,$=P.Z.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=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}}),W=V.Z.inherit({ctor:function(){this.callBase.apply(this,arguments),this._active=new $(0,v.ZT),this._inactive=new $(0,v.ZT)},configure:function(e,t){switch(t){case H:e.activeTimeout=e.timeout;break;case L:e.inactiveTimeout=e.timeout}this.callBase(e)},start:function(e){if(O){var t=(0,M.r3)(this.getElement().get(0),O.getElement().get(0)),i=!O._active.fired();if(t&&i)return void this._cancel();O._inactive.force()}O=this,this._initEvents(e),this._active.start()},_initEvents:function(e){var t=this,i=this._getEmitterTarget(e),n=(0,R.N5)(e),o=w.Z.isSimulator(),r=o||!n,a=(0,v.IS)(this.activeTimeout,N),s=(0,v.IS)(this.inactiveTimeout,Z);this._active=new $(r?a:0,(function(){t._fireEvent(H,e,{target:i})})),this._inactive=new $(r?s:0,(function(){t._fireEvent(L,e,{target:i}),O=null}))},cancel:function(e){this.end(e)},end:function(e){var t=e.type!==B.Z.up;t?this._active.stop():this._active.force(),this._inactive.start(),t&&this._inactive.force()},dispose:function(){this._active.stop(),this._inactive.stop(),O===this&&(O=null),this.callBase()},lockInactive:function(){return this._active.force(),this._inactive.stop(),O=null,this._cancel(),this._inactive.force.bind(this._inactive)}});W.lock=function(e){var t=O?O.lockInactive():v.ZT;e.done(t)},(0,F.Z)({emitter:W,events:[H,L]});var K=W.lock,z=i(80647);function j(e,t,i){e="role"===e||"id"===e?e:"aria-".concat(e),t=(0,l.$K)(t)?t.toString():null,i.attr(e,t)}var U=S.Z.inherit({_feedbackHideTimeout:400,_feedbackShowTimeout:30,_supportedKeys:()=>({}),_getDefaultOptions(){return(0,a.l)(this.callBase(),{hoveredElement:null,isActive:!1,disabled:!1,visible:!0,hint:void 0,activeStateEnabled:!1,onContentReady:null,hoverStateEnabled:!1,focusStateEnabled:!1,tabIndex:0,accessKey:void 0,onFocusIn:null,onFocusOut:null,onKeyboardHandled:null,ignoreParentReadOnly:!1,useResizeObserver:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var e=w.Z.real(),t=e.platform,i=e.version;return"ios"===t&&k(i,"13.3")<=0},options:{useResizeObserver:!1}}])},_init(){this.callBase(),this._initContentReadyAction()},_innerWidgetOptionChanged:function(e,t){var i=U.getOptionsFromContainer(t);e&&e.option(i),this._options.cache(t.name,i)},_bindInnerWidgetOptions(e,t){var i=()=>this._options.silent(t,(0,a.l)({},e.option()));i(),e.on("optionChanged",i)},_getAriaTarget(){return this._focusTarget()},_initContentReadyAction(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initMarkup(){var{disabled:e,visible:t}=this.option();this.$element().addClass("dx-widget"),this._toggleDisabledState(e),this._toggleVisibility(t),this._renderHint(),this._isFocusable()&&this._renderFocusTarget(),this.callBase()},_render(){this.callBase(),this._renderContent(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents(),this._toggleIndependentState()},_renderHint(){var{hint:e}=this.option();this.$element().attr("title",e||null)},_renderContent(){(0,v.g0)((()=>this._disposed?void 0:this._renderContentImpl())).done((()=>this._disposed?void 0:this._fireContentReadyAction()))},_renderContentImpl:v.ZT,_fireContentReadyAction:(0,v.Rg)((function(){return this._contentReadyAction()})),_dispose(){this._contentReadyAction=null,this._detachKeyboardEvents(),this.callBase()},_resetActiveState(){this._toggleActiveState(this._eventBindingTarget(),!1)},_clean(){this._cleanFocusState(),this._resetActiveState(),this.callBase(),this.$element().empty()},_toggleVisibility(e){this.$element().toggleClass("dx-state-invisible",!e),this.setAria("hidden",!e||void 0)},_renderFocusState(){this._attachKeyboardEvents(),this._isFocusable()&&(this._renderFocusTarget(),this._attachFocusEvents(),this._renderAccessKey())},_renderAccessKey(){var e=this._focusTarget(),{accessKey:t}=this.option();e.attr("accesskey",t)},_isFocusable(){var{focusStateEnabled:e,disabled:t}=this.option();return e&&!t},_eventBindingTarget(){return this.$element()},_focusTarget(){return this._getActiveElement()},_isFocusTarget:function(e){var t=(0,o.Z)(this._focusTarget()).toArray();return t.includes(e)},_getActiveElement(){var e=this._eventBindingTarget();return this._activeStateUnit?e.find(this._activeStateUnit).not(".dx-state-disabled"):e},_renderFocusTarget(){var{tabIndex:e}=this.option();this._focusTarget().attr("tabIndex",e)},_keyboardEventBindingTarget(){return this._eventBindingTarget()},_refreshFocusEvent(){this._detachFocusEvents(),this._attachFocusEvents()},_focusEventTarget(){return this._focusTarget()},_focusInHandler(e){e.isDefaultPrevented()||this._createActionByOption("onFocusIn",{beforeExecute:()=>this._updateFocusState(e,!0),excludeValidators:["readOnly"]})({event:e})},_focusOutHandler(e){e.isDefaultPrevented()||this._createActionByOption("onFocusOut",{beforeExecute:()=>this._updateFocusState(e,!1),excludeValidators:["readOnly","disabled"]})({event:e})},_updateFocusState(e,t){var{target:i}=e;this._isFocusTarget(i)&&this._toggleFocusClass(t,(0,o.Z)(i))},_toggleFocusClass(e,t){var i=t&&t.length?t:this._focusTarget();i.toggleClass("dx-state-focused",e)},_hasFocusClass(e){var t=(0,o.Z)(e||this._focusTarget());return t.hasClass("dx-state-focused")},_isFocused(){return this._hasFocusClass()},_getKeyboardListeners:()=>[],_attachKeyboardEvents(){this._detachKeyboardEvents();var{focusStateEnabled:e,onKeyboardHandled:t}=this.option(),i=this._getKeyboardListeners().length,n=!!t,o=e||i||n;o&&(this._keyboardListenerId=I.dG.on(this._keyboardEventBindingTarget(),this._focusTarget(),(e=>this._keyboardHandler(e))))},_keyboardHandler(e,t){if(!t){var{originalEvent:i,keyName:n,which:o}=e,r=this._supportedKeys(i),a=r[n]||r[o];if(void 0!==a){var s=a.bind(this),l=s(i,e);if(!l)return!1}}var d=this._getKeyboardListeners(),{onKeyboardHandled:u}=this.option();return d.forEach((t=>t&&t._keyboardHandler(e))),u&&u(e),!0},_refreshFocusState(){this._cleanFocusState(),this._renderFocusState()},_cleanFocusState(){var e=this._focusTarget();e.removeAttr("tabIndex"),this._toggleFocusClass(!1),this._detachFocusEvents(),this._detachKeyboardEvents()},_detachKeyboardEvents(){I.dG.off(this._keyboardListenerId),this._keyboardListenerId=null},_attachHoverEvents(){var{hoverStateEnabled:e}=this.option(),t=this._activeStateUnit,i=this._eventBindingTarget();I.Mr.off(i,{selector:t,namespace:"UIFeedback"}),e&&I.Mr.on(i,new T.Z((e=>{var{event:t,element:i}=e;this._hoverStartHandler(t),this.option("hoveredElement",(0,o.Z)(i))}),{excludeValidators:["readOnly"]}),(e=>{this.option("hoveredElement",null),this._hoverEndHandler(e)}),{selector:t,namespace:"UIFeedback"})},_attachFeedbackEvents(){var{activeStateEnabled:e}=this.option(),t=this._activeStateUnit,i=this._eventBindingTarget();I.bB.off(i,{namespace:"UIFeedback",selector:t}),e&&I.bB.on(i,new T.Z((e=>{var{event:t,element:i}=e;return this._toggleActiveState((0,o.Z)(i),!0,t)})),new T.Z((e=>{var{event:t,element:i}=e;return this._toggleActiveState((0,o.Z)(i),!1,t)}),{excludeValidators:["disabled","readOnly"]}),{showTimeout:this._feedbackShowTimeout,hideTimeout:this._feedbackHideTimeout,selector:t,namespace:"UIFeedback"})},_detachFocusEvents(){var e=this._focusEventTarget();I.T_.off(e,{namespace:"".concat(this.NAME,"Focus")})},_attachFocusEvents(){var e=this._focusEventTarget();I.T_.on(e,(e=>this._focusInHandler(e)),(e=>this._focusOutHandler(e)),{namespace:"".concat(this.NAME,"Focus"),isFocusable:(e,t)=>(0,o.Z)(t).is(D.KW)})},_hoverStartHandler:v.ZT,_hoverEndHandler:v.ZT,_toggleActiveState(e,t){this.option("isActive",t),e.toggleClass("dx-state-active",t)},_updatedHover(){var e=this._options.silent("hoveredElement");this._hover(e,e)},_findHoverTarget(e){return e&&e.closest(this._activeStateUnit||this._eventBindingTarget())},_hover(e,t){var{hoverStateEnabled:i,disabled:n,isActive:o}=this.option();if(t=this._findHoverTarget(t),t&&t.toggleClass("dx-state-hover",!1),e&&i&&!n&&!o){var r=this._findHoverTarget(e);r&&r.toggleClass("dx-state-hover",!0)}},_toggleDisabledState(e){this.$element().toggleClass("dx-state-disabled",Boolean(e)),this.setAria("disabled",e||void 0)},_toggleIndependentState(){this.$element().toggleClass("dx-state-independent",this.option("ignoreParentReadOnly"))},_setWidgetOption(e,t){if(this[e])if((0,l.PO)(t[0]))(0,E.S6)(t[0],((t,i)=>this._setWidgetOption(e,[t,i])));else{var i=t[0],n=t[1];1===t.length&&(n=this.option(i));var o=this["".concat(e,"OptionMap")];this[e].option(o?o(i):i,n)}},_optionChanged(e){var{name:t,value:i,previousValue:n}=e;switch(t){case"disabled":this._toggleDisabledState(i),this._updatedHover(),this._refreshFocusState();break;case"hint":this._renderHint();break;case"ignoreParentReadOnly":this._toggleIndependentState();break;case"activeStateEnabled":this._attachFeedbackEvents();break;case"hoverStateEnabled":this._attachHoverEvents(),this._updatedHover();break;case"tabIndex":case"focusStateEnabled":this._refreshFocusState();break;case"onFocusIn":case"onFocusOut":case"useResizeObserver":break;case"accessKey":this._renderAccessKey();break;case"hoveredElement":this._hover(i,n);break;case"isActive":this._updatedHover();break;case"visible":this._toggleVisibility(i),this._isVisibilityChangeSupported()&&this._checkVisibilityChanged(i?"shown":"hiding");break;case"onKeyboardHandled":this._attachKeyboardEvents();break;case"onContentReady":this._initContentReadyAction();break;default:this.callBase(e)}},_isVisible(){var{visible:e}=this.option();return this.callBase()&&e},beginUpdate(){this._ready(!1),this.callBase()},endUpdate(){this.callBase(),this._initialized&&this._ready(!0)},_ready(e){if(0===arguments.length)return this._isReady;this._isReady=e},setAria(){if((0,l.PO)(arguments.length<=0?void 0:arguments[0])){var e=(arguments.length<=1?void 0:arguments[1])||this._getAriaTarget();(0,E.S6)(arguments.length<=0?void 0:arguments[0],((t,i)=>j(t,i,e)))}else j(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],(arguments.length<=2?void 0:arguments[2])||this._getAriaTarget())},isReady(){return this._ready()},repaint(){this._refresh()},focus(){I.T_.trigger(this._focusTarget())},registerKeyHandler(e,t){var i=this._supportedKeys();this._supportedKeys=()=>(0,a.l)(i,{[e]:t})}});U.getOptionsFromContainer=e=>{var{name:t,fullName:i,value:n}=e,o={};if(t===i)o=n;else{var r=i.split(".").pop();o[r]=n}return o};var G=U,q=(0,s.jW)(),Y="dx-loadindicator",X="dx-loadindicator-wrapper",J="dx-loadindicator-content",Q="dx-loadindicator-icon",ee="dx-loadindicator-segment",te="dx-loadindicator-segment-inner",ie="dx-loadindicator-image",ne=G.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{indicatorSrc:"",activeStateEnabled:!1,hoverStateEnabled:!1,_animatingSegmentCount:1,_animatingSegmentInner:!1})},_defaultOptionsRules:function(){var e=(0,x.Vk)();return this.callBase().concat([{device:function(){var e=w.Z.real(),t="android"===e.platform&&!/chrome/i.test(q.userAgent);return t},options:{viaImage:!0}},{device:function(){return(0,x.x2)(e)},options:{_animatingSegmentCount:2,_animatingSegmentInner:!0}},{device:function(){return(0,x.OD)(e)},options:{_animatingSegmentCount:7}}])},_useTemplates:function(){return!1},_init:function(){this.callBase(),this.$element().addClass(Y)},_initMarkup:function(){this.callBase(),this._renderWrapper(),this._renderIndicatorContent(),this._renderMarkup()},_renderWrapper:function(){this._$wrapper=(0,o.Z)("<div>").addClass(X),this.$element().append(this._$wrapper)},_renderIndicatorContent:function(){this._$content=(0,o.Z)("<div>").addClass(J),this._$wrapper.append(this._$content)},_renderMarkup:function(){!(0,b.animation)()||this.option("viaImage")||this.option("indicatorSrc")?this._renderMarkupForImage():this._renderMarkupForAnimation()},_renderMarkupForAnimation:function(){var e=this.option("_animatingSegmentInner");this._$indicator=(0,o.Z)("<div>").addClass(Q),this._$content.append(this._$indicator);for(var t=this.option("_animatingSegmentCount");t>=0;--t){var i=(0,o.Z)("<div>").addClass(ee).addClass(ee+t);e&&i.append((0,o.Z)("<div>").addClass(te)),this._$indicator.append(i)}},_renderMarkupForImage:function(){var e=this.option("indicatorSrc");this._$wrapper.addClass(ie),e&&this._$wrapper.css("backgroundImage","url("+e+")")},_renderDimensions:function(){this.callBase(),this._updateContentSizeForAnimation()},_updateContentSizeForAnimation:function(){if(this._$indicator){var e=this.option("width"),t=this.option("height");if(e||t){e=(0,n.dz)(this.$element()),t=(0,n.Cr)(this.$element());var i=Math.min(t,e);this._$wrapper.css({height:i,width:i,fontSize:i})}}},_clean:function(){this.callBase(),this._removeMarkupForAnimation(),this._removeMarkupForImage()},_removeMarkupForAnimation:function(){this._$indicator&&(this._$indicator.remove(),delete this._$indicator)},_removeMarkupForImage:function(){this._$wrapper.css("backgroundImage","none")},_optionChanged:function(e){switch(e.name){case"_animatingSegmentCount":case"_animatingSegmentInner":case"indicatorSrc":this._invalidate();break;default:this.callBase(e)}}});(0,C.Z)("dxLoadIndicator",ne);var oe=ne,re=i(52376),ae=i(33734),se=i(81965),le=i(86403),de="dxTranslator",ue=/matrix(3d)?\((.+?)\)/,ce=/translate(?:3d)?\((.+?)\)/,he=function(e){e=(0,o.Z)(e);var t=_e(e);return{left:t.x,top:t.y}};function pe(e){return"string"===(0,l.dt)(e)&&"%"===e[e.length-1]}function fe(e,t){e.length&&(0,le.aT)(e.get(0),de,t)}var ge=function(e){e.length&&(0,le.NU)(e.get(0),de)},me=function(e){e.x=e.x||0,e.y=e.y||0;var t=pe(e.x)?e.x:e.x+"px",i=pe(e.y)?e.y:e.y+"px";return"translate("+t+", "+i+")"},_e=function(e){var t=e.length?(0,le.aT)(e.get(0),de):null;if(!t){var i=e.css("transform")||me({x:0,y:0}),n=i.match(ue),o=n&&n[1];n?(n=n[2].split(","),"3d"===o?n=n.slice(12,15):(n.push(0),n=n.slice(4,7))):n=[0,0,0],t={x:parseFloat(n[0]),y:parseFloat(n[1]),z:parseFloat(n[2])},fe(e,t)}return t},ve=function(e,t){e=(0,o.Z)(e);var i,n=t.left,r=t.top;void 0===n?(i=_e(e),i.y=r||0):void 0===r?(i=_e(e),i.x=n||0):(i={x:n||0,y:r||0,z:0},fe(e,i)),e.css({transform:me(i)}),(pe(n)||pe(r))&&ge(e)},ye=function(e,t){var i;e=(0,o.Z)(e);var n={left:0,top:0,transform:"none"};t&&(i=e.css("transition"),n.transition="none"),e.css(n),ge(e),t&&(e.get(0).offsetHeight,e.css("transition",i))},Ce=function(e){var t=e.match(ce);if(t&&t[1])return t=t[1].split(","),t={x:parseFloat(t[0]),y:parseFloat(t[1]),z:parseFloat(t[2])},t},be=/cubic-bezier\((\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\)/,xe={linear:"cubic-bezier(0, 0, 1, 1)",swing:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",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)"},we=function(e,t,i,n){var o=3*e,r=3*(i-e)-o,a=1-o-r,s=3*t,l=3*(n-t)-s,d=1-s-l,u=function(e){return e*(o+e*(r+e*a))},c=function(e){return o+e*(2*r+3*e*a)};return function(e){return function(e){return e*(s+e*(l+e*d))}(function(e){var t,i=e,n=0;while(n<14){if(t=u(i)-e,Math.abs(t)<.001)break;i-=t/c(i),n++}return i}(e))}},Te={},Se=function(e){e=xe[e]||e;var t,i=e.match(be);i||(t="linear",i=xe[t].match(be)),i=i.slice(1,5);for(var n=0;n<i.length;n++)i[n]=parseFloat(i[n]);var o=t||"cubicbezier_"+i.join("_").replace(/\./g,"p");return(0,l.mf)(Te[o])||(Te[o]=function(e,t,n,o,r){return o*we(i[0],i[1],i[2],i[3])(t/r)+n}),o};function Ie(e){return Te[e]}var Ee,De=i(10760),ke=i(71389),Oe=i(44432),Ae=e=>{var t=null!==e&&void 0!==e?e:(0,Oe.Z)().rtlEnabled;return t?"right":"left"},Pe=e=>(0,l.FJ)(e)?{width:e.outerWidth,height:e.outerHeight}:e.getBoundingClientRect(),Me=i(31517),Re=(0,s.Jj)(),Be=/left|right/,Ve=/top|bottom/,Fe=/fit|flip|none/,He=/scale\(.+?\)/,Le=Me.Z.safari,Ne=function(e){var t={h:"center",v:"center"},i=(0,v.Um)(e);return i&&(0,E.S6)(i,(function(){var e=String(this).toLowerCase();Be.test(e)?t.h=e:Ve.test(e)&&(t.v=e)})),t},Ze=function(e){return(0,v.TG)(e)},$e=function(e){var t=(0,v.Um)(e),i=String(t&&t[0]).toLowerCase(),n=String(t&&t[1]).toLowerCase();return Fe.test(i)||(i="none"),Fe.test(n)||(n=i),{h:i,v:n}},We=function(e){switch(e){case"center":return.5;case"right":case"bottom":return 1;default:return 0}},Ke=function(e){switch(e){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return e}},ze=function(e,t){var i=0;return e.myLocation<t.min&&(i+=t.min-e.myLocation),e.myLocation>t.max&&(i+=e.myLocation-t.max),i},je=function(e,t,i){return t.myLocation<i.min?"h"===e?"left":"top":t.myLocation>i.max?"h"===e?"right":"bottom":"none"},Ue=function(e){e.myLocation=e.atLocation+We(e.atAlign)*e.atSize-We(e.myAlign)*e.mySize+e.offset},Ge={fit:function(e,t){var i=!1;e.myLocation>t.max&&(e.myLocation=t.max,i=!0),e.myLocation<t.min&&(e.myLocation=t.min,i=!0),e.fit=i},flip:function(e,t){if(e.flip=!1,("center"!==e.myAlign||"center"!==e.atAlign)&&(e.myLocation<t.min||e.myLocation>t.max)){var i=(0,a.l)({},e,{myAlign:Ke(e.myAlign),atAlign:Ke(e.atAlign),offset:-e.offset});Ue(i),i.oversize=ze(i,t),(i.myLocation>=t.min&&i.myLocation<=t.max||e.oversize>i.oversize)&&(e.myLocation=i.myLocation,e.oversize=i.oversize,e.flip=!0)}},flipfit:function(e,t){this.flip(e,t),this.fit(e,t)},none:function(e){e.oversize=0}},qe=function(){var e=(0,o.Z)("<div>").css({width:100,height:100,overflow:"scroll",position:"absolute",top:-9999}).appendTo((0,o.Z)("body")),t=e.get(0).offsetWidth-e.get(0).clientWidth;e.remove(),Ee=t},Ye={h:{location:0,flip:!1,fit:!1,oversize:0},v:{location:0,flip:!1,fit:!1,oversize:0}},Xe=function(e,t){var i=(0,o.Z)(e),r=i.offset(),s=(0,a.l)(!0,{},Ye,{h:{location:r.left},v:{location:r.top}});if(!t)return s;var d=Ne(t.my),u=Ne(t.at),c=(0,o.Z)(t.of).length&&t.of||Re,h=Ze(t.offset),p=$e(t.collision),f=t.boundary,g=Ze(t.boundaryOffset),m={mySize:(0,n.Y_)(i),myAlign:d.h,atAlign:u.h,offset:h.h,collision:p.h,boundaryOffset:g.h},_={mySize:(0,n.zp)(i),myAlign:d.v,atAlign:u.v,offset:h.v,collision:p.v,boundaryOffset:g.v};if(c.preventDefault)m.atLocation=c.pageX,_.atLocation=c.pageY,m.atSize=0,_.atSize=0;else if(c=(0,o.Z)(c),(0,l.FJ)(c[0]))m.atLocation=c.scrollLeft(),_.atLocation=c.scrollTop(),"phone"===w.Z.real().deviceType&&c[0].visualViewport?(m.atLocation=Math.max(m.atLocation,c[0].visualViewport.offsetLeft),_.atLocation=Math.max(_.atLocation,c[0].visualViewport.offsetTop),m.atSize=c[0].visualViewport.width,_.atSize=c[0].visualViewport.height):(m.atSize=c[0].innerWidth>c[0].outerWidth?c[0].innerWidth:(0,n.dz)(c),_.atSize=c[0].innerHeight>c[0].outerHeight||Le?c[0].innerHeight:(0,n.Cr)(c));else if(9===c[0].nodeType)m.atLocation=0,_.atLocation=0,m.atSize=(0,n.dz)(c),_.atSize=(0,n.Cr)(c);else{var v=Pe(c.get(0)),y=Qe(c);m.atLocation=y.left,_.atLocation=y.top,m.atSize=Math.max(v.width,(0,n.Y_)(c)),_.atSize=Math.max(v.height,(0,n.zp)(c))}Ue(m),Ue(_);var C=function(){var e=(0,o.Z)(Re),t=(0,n.dz)(e),i=(0,n.Cr)(e),r=e.scrollLeft(),a=e.scrollTop(),s=ke["default"].getDocumentElement(),l=b.touch?s.clientWidth/t:1,d=b.touch?s.clientHeight/i:1;void 0===Ee&&qe();var u=t,c=i;if(f){var h=(0,o.Z)(f),p=h.offset();r=p.left,a=p.top,u=(0,n.dz)(h),c=(0,n.Cr)(h)}return{h:{min:r+m.boundaryOffset,max:r+u/l-m.mySize-m.boundaryOffset},v:{min:a+_.boundaryOffset,max:a+c/d-_.mySize-_.boundaryOffset}}}();m.oversize=ze(m,C.h),_.oversize=ze(_,C.v),m.collisionSide=je("h",m,C.h),_.collisionSide=je("v",_,C.v),Ge[m.collision]&&Ge[m.collision](m,C.h),Ge[_.collision]&&Ge[_.collision](_,C.v);var x=function(e){return t.precise?e:Math.round(e)};return(0,a.l)(!0,s,{h:{location:x(m.myLocation),oversize:x(m.oversize),fit:m.fit,flip:m.flip,collisionSide:m.collisionSide},v:{location:x(_.myLocation),oversize:x(_.oversize),fit:_.fit,flip:_.flip,collisionSide:_.collisionSide},precise:t.precise}),s},Je=function(e,t,i,n,o){var r=(0,l.$K)(e.style)&&!ke["default"].isNode(e.style);r?e.style.transform=o?i.replace(t,""):i:e.setAttribute("style",o?n.replace(t,""):n)},Qe=function e(t){var i,n,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,a=r.get(0);if(!a)return t.offset();var s,l=(null===(i=a.getAttribute)||void 0===i?void 0:i.call(a,"style"))||"",d=null===(n=a.style)||void 0===n?void 0:n.transform,u=null===(o=l.match(He))||void 0===o?void 0:o[0];return u?(Je(a,u,d,l,!0),s=e(t,r.parent()),Je(a,u,d,l,!1)):s=e(t,r.parent()),s},et=function(e,t){var i=(0,o.Z)(e);if(!t)return i.offset();ye(i,!0);var n=Qe(i),r=t.h&&t.v?t:Xe(i,t),a=function(e){return t.precise?e:Math.round(e)};return ve(i,{left:r.h.location-a(n.left),top:r.v.location-a(n.top)}),r},tt=function(e){return e=(0,o.Z)(e).get(0),(0,l.FJ)(e)?null:e&&"pageY"in e&&"pageX"in e?{top:e.pageY,left:e.pageX}:(0,o.Z)(e).offset()};et.inverseAlign||(et.inverseAlign=Ke),et.normalizeAlign||(et.normalizeAlign=Ne);var it={calculateScrollbarWidth:qe,calculate:Xe,setup:et,offset:tt},nt=i(14324),ot=i(79303),rt=(0,s.Jj)(),at=(0,R.V4)(nt.x,"dxFX"),st=/^([+-])=(.*)/i,lt="dxAnimData",dt="dxAnimQueue",ut="transform",ct={initAnimation:function(e,t){e.css({transitionProperty:"none"}),"string"===typeof t.from?e.addClass(t.from):Kt(e,t.from);var i=this,n=new ot.BH,o=t.cleanupWhen;t.transitionAnimation={deferred:n,finish:function(){i._finishTransition(e),o?(0,ot.gx)(n,o).always((function(){i._cleanup(e,t)})):i._cleanup(e,t),n.resolveWith(e,[t,e])}},this._completeAnimationCallback(e,t).done((function(){t.transitionAnimation.finish()})).fail((function(){n.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 i,n=this,o=Date.now()+t.delay,r=new ot.BH,a=new ot.BH,s=new ot.BH,l=(0,b.transitionEndEventName)()+".dxFX";t.transitionAnimation.cleanup=function(){clearTimeout(i),clearTimeout(d),re.Z.off(e,l),re.Z.off(e,at)},re.Z.one(e,l,(function(){Date.now()-o>=t.duration&&a.reject()})),re.Z.off(e,at),re.Z.on(e,at,(function(){n.stop(e,t),r.reject()}));var d=setTimeout((function(){i=setTimeout((function(){s.reject()}),t.duration+t.delay+jt._simulatedTransitionEndDelay),(0,ot.gx)(a,s).fail(function(){r.resolve()}.bind(this))}));return r.promise()},_startAnimation:function(e,t){e.css({transitionProperty:"all",transitionDelay:t.delay+"ms",transitionDuration:t.duration+"ms",transitionTimingFunction:t.easing}),"string"===typeof t.to?e[0].className+=" "+t.to:t.to&&Kt(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,i){t&&(i?t.transitionAnimation.finish():((0,l.PO)(t.to)&&(0,E.S6)(t.to,(function(t){e.css(t,e.css(t))})),this._finishTransition(e),this._cleanup(e,t)))}},ht={initAnimation:function(e,t){Kt(e,t.from)},animate:function(e,t){var i=new ot.BH,n=this;return t?((0,E.S6)(t.to,(function(i){void 0===t.from[i]&&(t.from[i]=n._normalizeValue(e.css(i)))})),t.to[ut]&&(t.from[ut]=n._parseTransform(t.from[ut]),t.to[ut]=n._parseTransform(t.to[ut])),t.frameAnimation={to:t.to,from:t.from,currentValue:t.from,easing:Se(t.easing),duration:t.duration,startTime:(new Date).valueOf(),finish:function(){this.currentValue=this.to,this.draw(),(0,De.W)(t.frameAnimation.animationFrameId),i.resolve()},draw:function(){if(t.draw)t.draw(this.currentValue);else{var i=(0,a.l)({},this.currentValue);i[ut]&&(i[ut]=(0,E.UI)(i[ut],(function(e,t){return"translate"===t?me(e):"scale"===t?"scale("+e+")":"rotate"===t.substr(0,t.length-1)?t+"("+e+"deg)":void 0})).join(" ")),e.css(i)}}},t.delay?(t.frameAnimation.startTime+=t.delay,t.frameAnimation.delayTimeout=setTimeout((function(){n._startAnimation(e,t)}),t.delay)):n._startAnimation(e,t),i.promise()):i.reject().promise()},_startAnimation:function(e,t){re.Z.off(e,at),re.Z.on(e,at,(function(){t.frameAnimation&&(0,De.W)(t.frameAnimation.animationFrameId)})),this._animationStep(e,t)},_parseTransform:function(e){var t={};return(0,E.S6)(e.match(/\w+\d*\w*\([^)]*\)\s*/g),(function(e,i){var n=Ce(i),o=i.match(/scale\((.+?)\)/),r=i.match(/(rotate.)\((.+)deg\)/);n&&(t.translate=n),o&&o[1]&&(t.scale=parseFloat(o[1])),r&&r[1]&&(t[r[1]]=parseFloat(r[2]))})),t},stop:function(e,t,i){var n=t&&t.frameAnimation;n&&((0,De.W)(n.animationFrameId),clearTimeout(n.delayTimeout),i&&n.finish(),delete t.frameAnimation)},_animationStep:function(e,t){var i=t&&t.frameAnimation;if(i){var n=(new Date).valueOf();if(n>=i.startTime+i.duration)i.finish();else{i.currentValue=this._calcStepValue(i,n-i.startTime),i.draw();var o=this;i.animationFrameId=(0,De.U)((function(){o._animationStep(e,t)}))}}},_calcStepValue:function(e,t){return function i(n,o){var r=Array.isArray(o)?[]:{};return(0,E.S6)(o,(function(a,s){if("string"===typeof s&&!1===parseFloat(s))return!0;r[a]="object"===typeof s?i(n[a],s):function(i){var r=t/e.duration,a=t,s=1*n[i],l=o[i]-n[i],d=e.duration;return Ie(e.easing)(r,a,s,l,d)}(a)})),r}(e.from,e.to)},_normalizeValue:function(e){var t=parseFloat(e);return!1===t?e:t}},pt={initAnimation:function(){},animate:function(){return(new ot.BH).resolve().promise()},stop:v.ZT,isSynchronous:!0},ft=function(e){e=e||{};var t={transition:(0,b.transition)()?ct:ht,frame:ht,noAnimation:pt},i=e.strategy||"transition";return"css"!==e.type||(0,b.transition)()||(i="noAnimation"),t[i]},gt=function(e,t,i,n){(0,E.S6)(["from","to"],(function(){if(!i(e[this]))throw ae.Z.Error("E0010",t,this,n)}))},mt=function(e,t){return gt(e,t,(function(e){return(0,l.PO)(e)}),"a plain object")},_t=function(e,t){return gt(e,t,(function(e){return"string"===typeof e}),"a string")},vt={setup:function(){}},yt={validateConfig:function(e){_t(e,"css")},setup:function(){}},Ct={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"}},bt={validateConfig:function(e){mt(e,"slide")},setup:function(e,t){var i=he(e);if("slide"!==t.type){var n="slideIn"===t.type?t.from:t.to;n.position=(0,a.l)({of:rt},Ct[t.direction]),Wt(e,n)}this._setUpConfig(i,t.from),this._setUpConfig(i,t.to),ge(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 i={left:t.left,top:t.top};delete t.left,delete t.top;var n=this._getRelativeValue(i.left);void 0!==n?i.left=n+e.left:t.left=0,n=this._getRelativeValue(i.top),void 0!==n?i.top=n+e.top:t.top=0,t[ut]=me({x:i.left,y:i.top})},_getRelativeValue:function(e){var t;if("string"===typeof e&&(t=st.exec(e)))return parseInt(t[1]+"1")*t[2]}},xt={setup:function(e,t){var i,n,o=t.from,r=t.to,a="fadeOut"===t.type?1:0,s="fadeOut"===t.type?0:1,d=(0,l.PO)(o)?String(null!==(i=o.opacity)&&void 0!==i?i:a):String(o),u=(0,l.PO)(r)?String(null!==(n=r.opacity)&&void 0!==n?n:s):String(r);switch(t.skipElementInitialStyles||(d=e.css("opacity")),t.type){case"fadeIn":u=1;break;case"fadeOut":u=0}t.from={visibility:"visible",opacity:d},t.to={opacity:u}}},wt={validateConfig:function(e){mt(e,"pop")},setup:function(e,t){var i=t.from,n=t.to,o="opacity"in i?i.opacity:e.css("opacity"),r="opacity"in n?n.opacity:1,a="scale"in i?i.scale:0,s="scale"in n?n.scale:1;t.from={opacity:o};var l=_e(e);t.from[ut]=this._getCssTransform(l,a),t.to={opacity:r},t.to[ut]=this._getCssTransform(l,s)},_getCssTransform:function(e,t){return me(e)+"scale("+t+")"}},Tt={custom:vt,slide:bt,slideIn:bt,slideOut:bt,fade:xt,fadeIn:xt,fadeOut:xt,pop:wt,css:yt},St=function(e){var t=Tt[e.type];if(!t)throw ae.Z.Error("E0011",e.type);return t},It={type:"custom",from:{},to:{},duration:400,start:v.ZT,complete:v.ZT,easing:"ease",delay:0},Et={duration:400,easing:"ease",delay:0};function Dt(){var e=this.element,t=this.config;if(Wt(e,t.from),Wt(e,t.to),this.configurator.setup(e,t),e.data(lt,this),jt.off&&(t.duration=0,t.delay=0),this.strategy.initAnimation(e,t),t.start){var i=(0,se.u)(e);t.start.apply(this,[i,t])}}var kt=function(e){var t=e.element,i=e.config;if(t.removeData(lt),i.complete){var n=(0,se.u)(t);i.complete.apply(this,[n,i])}e.deferred.resolveWith(this,[t,i])},Ot=function(){var e=this,t=e.element,i=e.config;return e.isStarted=!0,e.strategy.animate(t,i).done((function(){kt(e)})).fail((function(){e.deferred.rejectWith(this,[t,i])}))},At=function(e){var t=this.element,i=this.config;clearTimeout(this.startTimeout),this.isStarted||this.start(),this.strategy.stop(t,i,e)},Pt=(0,R.V4)(nt.x,"dxFXStartAnimation"),Mt=function(e){re.Z.off(e.element,Pt),re.Z.on(e.element,Pt,(function(){jt.stop(e.element)})),e.deferred.always((function(){re.Z.off(e.element,Pt)}))},Rt=function(e,t){var i="css"===t.type?Et:It,n=(0,a.l)(!0,{},i,t),r=St(n),s=ft(n),d={element:(0,o.Z)(e),config:n,configurator:r,strategy:s,isSynchronous:s.isSynchronous,setup:Dt,start:Ot,stop:At,deferred:new ot.BH};return(0,l.mf)(r.validateConfig)&&r.validateConfig(n),Mt(d),d},Bt=function(e,t){var i=(0,o.Z)(e);if(!i.length)return(new ot.BH).resolve().promise();var n=Rt(i,t);return Vt(i,n),n.deferred.promise()};function Vt(e,t){var i=Ft(e);Ht(e,i),i.push(t),Nt(e)||Zt(e,i)}function Ft(e){return e.data(dt)||[]}function Ht(e,t){e.data(dt,t)}var Lt=function(e){e.removeData(dt)};function Nt(e){return!!e.data(lt)}function Zt(e,t){if(t=Ft(e),t.length){var i=t.shift();0===t.length&&Lt(e),$t(i).done((function(){Nt(e)||Zt(e)}))}}function $t(e){return e.setup(),jt.off||e.isSynchronous?e.start():e.startTimeout=setTimeout((function(){e.start()})),e.deferred.promise()}function Wt(e,t){if(t&&t.position){var i=(0,o.Z)(rt),n=0,r=0,s=it.calculate(e,t.position),l=e.offset(),d=e.position();d.top>l.top&&(r=i.scrollTop()),d.left>l.left&&(n=i.scrollLeft()),(0,a.l)(t,{left:s.h.location-l.left+d.left-n,top:s.v.location-l.top+d.top-r}),delete t.position}}function Kt(e,t){(0,E.S6)(t,(function(t,i){try{e.css(t,(0,l.mf)(i)?i():i)}catch(n){}}))}var zt=function(e,t){var i=(0,o.Z)(e),n=Ft(i);(0,E.S6)(n,(function(e,t){t.config.delay=0,t.config.duration=0,t.isSynchronous=!0})),Nt(i)||Zt(i,n);var r=i.data(lt);r&&r.stop(t),i.removeData(lt),Lt(i)},jt={off:!1,animationTypes:Tt,animate:Bt,createAnimation:Rt,isAnimating:Nt,stop:zt,_simulatedTransitionEndDelay:100},Ut=jt,Gt=i(10045),qt=i(90268),Yt=i(12454),Xt=i(27238),Jt=i(98267),Qt=i(33753),ei=function(){var e=[];return{add:function(t){e.includes(t)||e.push(t)},remove:function(t){var i=e.indexOf(t);-1!==i&&e.splice(i,1)},fire:function(){var t=e.pop(),i=!!t;return i&&t(),i},hasCallback:function(){return e.length>0}}}(),ti=1500,ii=[],ni=e=>(ti=(0,v.IS)(e,ti),ti),oi=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ti,t=ii.length,i=(t?ii[t-1]:e)+1;return ii.push(i),i},ri=e=>{var t=ii.indexOf(e);t>=0&&ii.splice(t,1)},ai=e=>ii.length&&ii[ii.length-1]===e,si="dx-swatch-",li=e=>{var t=(0,o.Z)(e),i=t.closest('[class^="'.concat(si,'"], [class*=" ').concat(si,'"]')),n=(0,Yt.S3)();if(!i.length)return n;var r=new RegExp("(\\s|^)(".concat(si,".*?)(\\s|$)")),a=i[0].className.match(r)[2],s=n.children("."+a);return s.length||(s=(0,o.Z)("<div>").addClass(a).appendTo(n)),s},di={getSwatchContainer:li},ui=(0,s.Jj)(),ci={top:{my:"top center",at:"top center"},bottom:{my:"bottom center",at:"bottom center"},right:{my:"right center",at:"right center"},left:{my:"left center",at:"left center"},center:{my:"center",at:"center"},"right bottom":{my:"right bottom",at:"right bottom"},"right top":{my:"right top",at:"right top"},"left bottom":{my:"left bottom",at:"left bottom"},"left top":{my:"left top",at:"left top"}},hi={h:0,v:0};class pi{constructor(e){var{position:t,container:i,visualContainer:n,$root:o,$content:r,$wrapper:a,onPositioned:s,onVisualPositionChanged:l,restorePosition:d,_fixWrapperPosition:u}=e;this._props={position:t,container:i,visualContainer:n,restorePosition:d,onPositioned:s,onVisualPositionChanged:l,_fixWrapperPosition:u},this._$root=o,this._$content=r,this._$wrapper=a,this._$markupContainer=void 0,this._$visualContainer=void 0,this._shouldRenderContentInitialPosition=!0,this._visualPosition=void 0,this._initialPosition=void 0,this._previousVisualPosition=void 0,this.updateContainer(i),this.updatePosition(t),this.updateVisualContainer(n)}get $container(){return this.updateContainer(),this._$markupContainer}get $visualContainer(){return this._$visualContainer}get position(){return this._position}set fixWrapperPosition(e){this._props._fixWrapperPosition=e,this.styleWrapperPosition()}set restorePosition(e){this._props.restorePosition=e}restorePositionOnNextRender(e){this._shouldRenderContentInitialPosition=e||!this._visualPosition}openingHandled(){var e=this._props.restorePosition;this.restorePositionOnNextRender(e)}updatePosition(e){this._props.position=e,this._position=this._normalizePosition(e),this.updateVisualContainer()}updateContainer(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._props.container;this._props.container=e,this._$markupContainer=e?(0,o.Z)(e):di.getSwatchContainer(this._$root),this.updateVisualContainer(this._props.visualContainer)}updateVisualContainer(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._props.visualContainer;this._props.visualContainer=e,this._$visualContainer=this._getVisualContainer()}detectVisualPositionChange(e){this._updateVisualPositionValue(),this._raisePositionedEvents(e)}positionContent(){this._shouldRenderContentInitialPosition?this._renderContentInitialPosition():(ve(this._$content,this._visualPosition),this.detectVisualPositionChange())}positionWrapper(){this._$visualContainer&&it.setup(this._$wrapper,{my:"top left",at:"top left",of:this._$visualContainer})}styleWrapperPosition(){var e=(0,l.FJ)(this.$visualContainer.get(0))||this._props._fixWrapperPosition,t=e?"fixed":"absolute";this._$wrapper.css("position",t)}_updateVisualPositionValue(){this._previousVisualPosition=this._visualPosition,this._visualPosition=he(this._$content)}_renderContentInitialPosition(){this._renderBoundaryOffset(),ye(this._$content);var e=this._$wrapper.css("overflow");this._$wrapper.css("overflow","hidden");var t=it.setup(this._$content,this._position);this._$wrapper.css("overflow",e),this._initialPosition=t,this.detectVisualPositionChange()}_raisePositionedEvents(e){var t=this._previousVisualPosition,i=this._visualPosition,n=(null===t||void 0===t?void 0:t.top)!==i.top||(null===t||void 0===t?void 0:t.left)!==i.left;n&&this._props.onVisualPositionChanged({previousPosition:t,position:i,event:e}),this._props.onPositioned({position:this._initialPosition})}_renderBoundaryOffset(){var e,t=null!==(e=this._position)&&void 0!==e?e:{boundaryOffset:hi};this._$content.css("margin","".concat(t.v,"px ").concat(t.h,"px"))}_getVisualContainer(){var e,t,i=this._props.container,n=this._props.visualContainer,r=(0,l.cO)(null===(e=this._props.position)||void 0===e?void 0:e.of)?this._props.position.of.target:null===(t=this._props.position)||void 0===t?void 0:t.of;return n?(0,o.Z)(n):i?(0,o.Z)(i):r?(0,o.Z)(r):(0,o.Z)(ui)}_normalizePosition(e){var t={boundaryOffset:hi};return(0,l.$K)(e)?(0,a.l)(!0,{},t,this._positionToObject(e)):t}_positionToObject(e){return(0,l.HD)(e)?(0,a.l)({},ci[e]):e}}var fi=qt.Z.add,gi=(0,s.Jj)(),mi=Yt.Wg,_i="dx-overlay",vi="dx-overlay-wrapper",yi="dx-overlay-content",Ci="dx-overlay-shader",bi="dx-inner-overlay",xi="dx-state-invisible",wi="content",Ti="dx-rtl",Si=[],Ii="dx-prevent-safari-scrolling",Ei="tab";fi((()=>{re.Z.subscribeGlobal(ke["default"].getDocument(),B.Z.down,(e=>{for(var t=Si.length-1;t>=0;t--)if(!Si[t]._proxiedDocumentDownHandler(e))return}))}));var Di=G.inherit({_supportedKeys:function(){return(0,a.l)(this.callBase(),{escape:function(){this.hide()}})},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{activeStateEnabled:!1,visible:!1,deferRendering:!0,shading:!0,shadingColor:"",wrapperAttr:{},position:(0,a.l)({},ci.center),width:"80vw",minWidth:null,maxWidth:null,height:"80vh",minHeight:null,maxHeight:null,animation:{show:{type:"pop",duration:300,from:{scale:.55}},hide:{type:"pop",duration:300,from:{opacity:1,scale:1},to:{opacity:0,scale:.55}}},closeOnOutsideClick:!1,hideOnOutsideClick:!1,copyRootClassesToWrapper:!1,_ignoreCopyRootClassesToWrapperDeprecation:!1,_ignoreElementAttrDeprecation:!1,onShowing:null,onShown:null,onHiding:null,onHidden:null,contentTemplate:"content",innerOverlay:!1,restorePosition:!0,container:void 0,visualContainer:void 0,hideTopOverlayHandler:()=>{this.hide()},hideOnParentScroll:!1,onPositioned:null,propagateOutsideClick:!1,ignoreChildEvents:!0,_checkParentVisibility:!0,_fixWrapperPosition:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return!(0,s.Ym)()},options:{width:null,height:null,animation:null,_checkParentVisibility:!1}}])},_setOptionsByReference:function(){this.callBase(),(0,a.l)(this._optionsByReference,{animation:!0})},$wrapper:function(){return this._$wrapper},_eventBindingTarget:function(){return this._$content},_setDeprecatedOptions(){this.callBase(),(0,a.l)(this._deprecatedOptions,{closeOnOutsideClick:{since:"22.1",alias:"hideOnOutsideClick"}})},ctor:function(e,t){this.callBase(e,t),t&&(t.copyRootClassesToWrapper&&!t._ignoreCopyRootClassesToWrapperDeprecation&&this._logDeprecatedOptionWarning("copyRootClassesToWrapper",{since:"21.2",message:'Use the "wrapperAttr" option instead'}),t.elementAttr&&!t._ignoreElementAttrDeprecation&&this._logDeprecatedOptionWarning("elementAttr",{since:"21.2",message:'Use the "wrapperAttr" option instead'}))},_init:function(){this.callBase(),this._initActions(),this._initHideOnOutsideClickHandler(),this._initTabTerminatorHandler(),this._customWrapperClass=null,this._$wrapper=(0,o.Z)("<div>").addClass(vi),this._$content=(0,o.Z)("<div>").addClass(yi),this._initInnerOverlayClass();var e=this.$element();this.option("copyRootClassesToWrapper")&&this._$wrapper.addClass(e.attr("class")),e.addClass(_i),this._$wrapper.attr("data-bind","dxControlsDescendantBindings: true"),this._toggleViewPortSubscription(!0),this._initHideTopOverlayHandler(this.option("hideTopOverlayHandler")),this._parentsScrollSubscriptionInfo={handler:e=>{this._hideOnParentsScrollHandler(e)}},this.warnPositionAsFunction()},warnPositionAsFunction(){(0,l.mf)(this.option("position"))&&ae.Z.log("W0018")},_initInnerOverlayClass:function(){this._$content.toggleClass(bi,this.option("innerOverlay"))},_initHideTopOverlayHandler:function(e){this._hideTopOverlayHandler=e},_getActionsList:function(){return["onShowing","onShown","onHiding","onHidden","onPositioned","onVisualPositionChanged"]},_initActions:function(){this._actions={};var e=this._getActionsList();(0,E.S6)(e,((e,t)=>{this._actions[t]=this._createActionByOption(t,{excludeValidators:["disabled","readOnly"]})||v.ZT}))},_initHideOnOutsideClickHandler:function(){var e=this;this._proxiedDocumentDownHandler=function(){return e._documentDownHandler(...arguments)}},_initMarkup(){this.callBase(),this._renderWrapperAttributes(),this._initPositionController()},_documentDownHandler:function(e){this._showAnimationProcessing&&this._stopAnimation();var t=(0,o.Z)(gi.document).is(e.target)||(0,M.r3)(gi.document,e.target)||(0,M.r3)(gi.document,e.target.getRootNode().host),i=(0,o.Z)(e.target).closest(".".concat(bi)).length,n=t&&!i&&!(this._$content.is(e.target)||(0,M.r3)(this._$content.get(0),e.target));return n&&this._shouldHideOnOutsideClick(e)&&this._outsideClickHandler(e),this.option("propagateOutsideClick")},_shouldHideOnOutsideClick:function(e){var{hideOnOutsideClick:t}=this.option();return(0,l.mf)(t)?t(e):t},_outsideClickHandler(e){this.option("shading")&&e.preventDefault(),this.hide()},_getAnonymousTemplateName:function(){return wi},_initTemplates:function(){this._templateManager.addDefaultTemplates({content:new Gt.s}),this.callBase()},_isTopOverlay:function(){for(var e=this._overlayStack(),t=e.length-1;t>=0;t--){var i=e[t]._findTabbableBounds();if(i.first||i.last)return e[t]===this}return!1},_overlayStack:function(){return Si},_zIndexInitValue:function(){return Di.baseZIndex()},_toggleViewPortSubscription:function(e){var t=this;mi.remove(this._viewPortChangeHandle),e&&(this._viewPortChangeHandle=function(){t._viewPortChangeHandler(...arguments)},mi.add(this._viewPortChangeHandle))},_viewPortChangeHandler:function(){this._positionController.updateContainer(this.option("container")),this._refresh()},_renderWrapperAttributes(){var{wrapperAttr:e}=this.option(),t=(0,a.l)({},e),i=t.class;delete t.class,this.$wrapper().attr(t).removeClass(this._customWrapperClass).addClass(i),this._customWrapperClass=i},_renderVisibilityAnimate:function(e){return this._stopAnimation(),e?this._show():this._hide()},_getAnimationConfig:function(){return this._getOptionValue("animation",this)},_animateShowing:function(){var e,t,i,n=this,o=null!==(e=this._getAnimationConfig())&&void 0!==e?e:{},r=this._normalizeAnimation(o.show,"to"),a=null!==(t=null===r||void 0===r?void 0:r.start)&&void 0!==t?t:v.ZT,s=null!==(i=null===r||void 0===r?void 0:r.complete)&&void 0!==i?i:v.ZT;this._animate(r,(function(){if(!n._isAnimationPaused){n.option("focusStateEnabled")&&re.Z.trigger(n._focusTarget(),"focus");for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];s.call(n,...t),n._showAnimationProcessing=!1,n._isHidden=!1,n._actions.onShown(),n._toggleSafariScrolling(),n._showingDeferred.resolve()}}),(function(){if(!n._isAnimationPaused){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];a.call(n,...t),n._showAnimationProcessing=!0}}))},_processShowingHidingCancel:function(e,t,i){(0,l.tI)(e)?e.then((e=>{e?i():t()})).catch((()=>t())):e?i():t()},_show:function(){if(this._showingDeferred=new ot.BH,this._parentHidden=this._isParentHidden(),this._showingDeferred.done((()=>{delete this._parentHidden})),this._parentHidden)return this._isHidden=!0,this._showingDeferred.resolve();if(this._currentVisible)return(new ot.BH).resolve().promise();if(this._currentVisible=!0,this._isHidingActionCanceled)delete this._isHidingActionCanceled,this._showingDeferred.reject();else{var e=()=>{this._stopAnimation(),this._toggleVisibility(!0),this._$content.css("visibility","hidden"),this._$content.toggleClass(xi,!1),this._updateZIndexStackPosition(!0),this._positionController.openingHandled(),this._renderContent();var e={cancel:!1};this._actions.onShowing(e),this._processShowingHidingCancel(e.cancel,(()=>{this._$content.css("visibility",""),this._renderVisibility(!0),this._animateShowing()}),(()=>{this._toggleVisibility(!1),this._$content.css("visibility",""),this._$content.toggleClass(xi,!0),this._isShowingActionCanceled=!0,this._moveFromContainer(),this.option("visible",!1),this._showingDeferred.resolve()}))};this.option("templatesRenderAsynchronously")?(this._stopShowTimer(),this._asyncShowTimeout=setTimeout(e)):e()}return this._showingDeferred.promise()},_normalizeAnimation:function(e,t){return e&&(e=(0,a.l)({type:"slide",skipElementInitialStyles:!0},e),(0,l.Kn)(e[t])&&(0,a.l)(e[t],{position:this._positionController.position})),e},_animateHiding:function(){var e,t,i,n=this,o=null!==(e=this._getAnimationConfig())&&void 0!==e?e:{},r=this._normalizeAnimation(o.hide,"from"),a=null!==(t=null===r||void 0===r?void 0:r.start)&&void 0!==t?t:v.ZT,s=null!==(i=null===r||void 0===r?void 0:r.complete)&&void 0!==i?i:v.ZT;this._animate(r,(function(){var e;n._$content.css("pointerEvents",""),n._renderVisibility(!1);for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];s.call(n,...i),n._hideAnimationProcessing=!1,null===(e=n._actions)||void 0===e||e.onHidden(),n._hidingDeferred.resolve()}),(function(){n._$content.css("pointerEvents","none");for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];a.call(n,...t),n._hideAnimationProcessing=!0}))},_hide:function(){if(!this._currentVisible)return(new ot.BH).resolve().promise();this._currentVisible=!1,this._hidingDeferred=new ot.BH;var e={cancel:!1};return this._isShowingActionCanceled?(delete this._isShowingActionCanceled,this._hidingDeferred.reject()):(this._actions.onHiding(e),this._toggleSafariScrolling(),this._processShowingHidingCancel(e.cancel,(()=>{this._forceFocusLost(),this._toggleShading(!1),this._toggleSubscriptions(!1),this._stopShowTimer(),this._animateHiding()}),(()=>{this._isHidingActionCanceled=!0,this.option("visible",!0),this._hidingDeferred.resolve()}))),this._hidingDeferred.promise()},_forceFocusLost:function(){var e=ke["default"].getActiveElement(),t=!!this._$content.find(e).length;t&&(0,M.M3)()},_animate:function(e,t,i){e?(i=i||e.start||v.ZT,Ut.animate(this._$content,(0,a.l)({},e,{start:i,complete:t}))):t()},_stopAnimation:function(){Ut.stop(this._$content,!0)},_renderVisibility:function(e){e&&this._isParentHidden()||(this._currentVisible=e,this._stopAnimation(),e||(0,Qt.Ly)(this._$content),e?(this._checkContainerExists(),this._moveToContainer(),this._renderGeometry(),(0,Qt.Uo)(this._$content),(0,Qt.U_)(this._$content)):(this._toggleVisibility(e),this._$content.toggleClass(xi,!e),this._updateZIndexStackPosition(e),this._moveFromContainer()),this._toggleShading(e),this._toggleSubscriptions(e))},_updateZIndexStackPosition:function(e){var t=this._overlayStack(),i=t.indexOf(this);e?(-1===i&&(this._zIndex=oi(this._zIndexInitValue()),t.push(this)),this._$wrapper.css("zIndex",this._zIndex),this._$content.css("zIndex",this._zIndex)):-1!==i&&(t.splice(i,1),ri(this._zIndex))},_toggleShading:function(e){this._$wrapper.toggleClass(Ci,e&&this.option("shading")),this._$wrapper.css("backgroundColor",this.option("shading")?this.option("shadingColor"):""),this._toggleTabTerminator(e&&this.option("shading"))},_initTabTerminatorHandler:function(){var e=this;this._proxiedTabTerminatorHandler=function(){e._tabKeyHandler(...arguments)}},_toggleTabTerminator:function(e){var t=(0,R.V4)("keydown",this.NAME);e?re.Z.on(ke["default"].getDocument(),t,this._proxiedTabTerminatorHandler):re.Z.off(ke["default"].getDocument(),t,this._proxiedTabTerminatorHandler)},_findTabbableBounds:function(){for(var e=this._$wrapper.find("*"),t=e.length-1,i={first:null,last:null},n=0;n<=t;n++)if(!i.first&&e.eq(n).is(D.ht)&&(i.first=e.eq(n)),!i.last&&e.eq(t-n).is(D.ht)&&(i.last=e.eq(t-n)),i.first&&i.last)break;return i},_tabKeyHandler:function(e){if((0,R.EV)(e)===Ei&&this._isTopOverlay()){var t=this._findTabbableBounds(),i=t.first,n=t.last,o=!e.shiftKey&&e.target===n.get(0),r=e.shiftKey&&e.target===i.get(0),a=0===t.length,s=!(0,M.r3)(this._$wrapper.get(0),e.target);if(o||r||a||s){e.preventDefault();var l=e.shiftKey?n:i;re.Z.trigger(l,"focusin"),re.Z.trigger(l,"focus")}}},_toggleSubscriptions:function(e){(0,s.Ym)()&&(this._toggleHideTopOverlayCallback(e),this._toggleHideOnParentsScrollSubscription(e))},_toggleHideTopOverlayCallback:function(e){this._hideTopOverlayHandler&&(e?ei.add(this._hideTopOverlayHandler):ei.remove(this._hideTopOverlayHandler))},_toggleHideOnParentsScrollSubscription:function(e){var t,i=(0,R.V4)("scroll",this.NAME),{prevTargets:n,handler:o}=null!==(t=this._parentsScrollSubscriptionInfo)&&void 0!==t?t:{};re.Z.off(n,i,o);var r=this.option("hideOnParentScroll");if(e&&r){var a=this._hideOnParentScrollTarget().parents();"desktop"===w.Z.real().deviceType&&(a=a.add(gi)),re.Z.on(a,i,o),this._parentsScrollSubscriptionInfo.prevTargets=a}},_hideOnParentsScrollHandler:function(e){var t=!1,i=this.option("hideOnParentScroll");(0,l.mf)(i)&&(t=i(e)),t||this._showAnimationProcessing||this.hide()},_hideOnParentScrollTarget:function(){return this._$wrapper},_render:function(){this.callBase(),this._appendContentToElement(),this._renderVisibilityAnimate(this.option("visible"))},_appendContentToElement:function(){this._$content.parent().is(this.$element())||this._$content.appendTo(this.$element())},_renderContent:function(){var e=!this._currentVisible&&this.option("deferRendering"),t=this.option("visible")&&this._isParentHidden();t?this._isHidden=!0:this._contentAlreadyRendered||e||(this._contentAlreadyRendered=!0,this._appendContentToElement(),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=(0,o.Z)(this);if("none"===e.css("display"))return t=!0,!1})),t||!ke["default"].getBody().contains(e.get(0))},_renderContentImpl:function(){var e=new ot.BH,t=this.option("contentTemplate"),i=this._getTemplate(t),n=this._templateManager.anonymousTemplateName===t;return i&&i.render({container:(0,se.u)(this.$content()),noModel:!0,transclude:n,onRendered:()=>{e.resolve(),this.option("templatesRenderAsynchronously")&&this._dimensionChanged()}}),this._renderScrollTerminator(),e.done((()=>{this.option("visible")&&this._moveToContainer()})),e.promise()},_getPositionControllerConfig(){var{container:e,visualContainer:t,_fixWrapperPosition:i,restorePosition:n}=this.option();return{container:e,visualContainer:t,$root:this.$element(),$content:this._$content,$wrapper:this._$wrapper,onPositioned:this._actions.onPositioned,onVisualPositionChanged:this._actions.onVisualPositionChanged,restorePosition:n,_fixWrapperPosition:i}},_initPositionController(){this._positionController=new pi(this._getPositionControllerConfig())},_renderScrollTerminator:function(){var e=this._$wrapper,t=(0,R.V4)(Jt.pB,this.NAME);re.Z.off(e,t),re.Z.on(e,t,{validate:function(){return!0},getDirection:function(){return"both"},_toggleGestureCover:function(e){e||this._toggleGestureCoverImpl(e)},_clearSelection:v.ZT,isNative:!0},(e=>{var t=e.originalEvent.originalEvent,{type:i}=t||{},n="wheel"===i,o="mousemove"===i,r=n&&!(0,R.j1)(e);e._cancelPreventDefault=!0,t&&!1!==e.cancelable&&(!o&&!n||r)&&e.preventDefault()}))},_moveFromContainer:function(){this._$content.appendTo(this.$element()),this._$wrapper.detach()},_checkContainerExists(){var e=this._positionController.$container,t=e.length>0;t||Xt.Z.log("W1021",this.NAME)},_moveToContainer:function(){var e=this._positionController.$container;this._$wrapper.appendTo(e),this._$content.appendTo(this._$wrapper)},_renderGeometry:function(e){var{visible:t}=this.option();t&&(0,s.Ym)()&&(this._stopAnimation(),this._renderGeometryImpl())},_renderGeometryImpl:function(){this._positionController.updatePosition(this._getOptionValue("position")),this._renderWrapper(),this._renderDimensions(),this._renderPosition()},_renderPosition(){this._positionController.positionContent()},_isAllWindowCovered:function(){return(0,l.FJ)(this._positionController.$visualContainer.get(0))&&this.option("shading")},_toggleSafariScrolling:function(){var e=this.option("visible"),t=(0,o.Z)(ke["default"].getBody()),i="ios"===w.Z.real().platform&&Me.Z.safari,n=this._isAllWindowCovered(),r=t.hasClass(Ii),a=!r&&e&&n,s=r&&(!e||!n||this._disposed);i&&(s?(t.removeClass(Ii),gi.scrollTo(0,this._cachedBodyScrollTop),this._cachedBodyScrollTop=void 0):a&&(this._cachedBodyScrollTop=gi.pageYOffset,t.addClass(Ii)))},_renderWrapper:function(){this._positionController.styleWrapperPosition(),this._renderWrapperDimensions(),this._positionController.positionWrapper()},_renderWrapperDimensions:function(){var e=this._positionController.$visualContainer,t=ke["default"].getDocumentElement(),i=(0,l.FJ)(e.get(0)),o=i?t.clientWidth:(0,n.Y_)(e),r=i?gi.innerHeight:(0,n.zp)(e);this._$wrapper.css({width:o,height:r})},_renderDimensions:function(){var e=this._$content.get(0);this._$content.css({minWidth:this._getOptionValue("minWidth",e),maxWidth:this._getOptionValue("maxWidth",e),minHeight:this._getOptionValue("minHeight",e),maxHeight:this._getOptionValue("maxHeight",e),width:this._getOptionValue("width",e),height:this._getOptionValue("height",e)})},_focusTarget:function(){return this._$content},_attachKeyboardEvents:function(){this._keyboardListenerId=I.dG.on(this._$content,null,(e=>this._keyboardHandler(e)))},_keyboardHandler:function(e){var t=e.originalEvent,i=(0,o.Z)(t.target);!i.is(this._$content)&&this.option("ignoreChildEvents")||this.callBase(...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(){var e=this.option();this._contentAlreadyRendered||e.isRenovated||this.$content().empty(),this._renderVisibility(!1),this._stopShowTimer(),this._cleanFocusState()},_stopShowTimer(){this._asyncShowTimeout&&clearTimeout(this._asyncShowTimeout),this._asyncShowTimeout=null},_dispose:function(){Ut.stop(this._$content,!1),clearTimeout(this._deferShowTimer),this._toggleViewPortSubscription(!1),this._toggleSubscriptions(!1),this._updateZIndexStackPosition(!1),this._toggleTabTerminator(!1),this._actions=null,this._parentsScrollSubscriptionInfo=null,this.callBase(),this._toggleSafariScrolling(),this.option("visible")&&ri(this._zIndex),this._$wrapper.remove(),this._$content.remove()},_toggleRTLDirection:function(e){this._$content.toggleClass(Ti,e)},_optionChanged:function(e){var t=e.value;if(this._getActionsList().includes(e.name))this._initActions();else switch(e.name){case"animation":break;case"shading":this._toggleShading(this.option("visible")),this._toggleSafariScrolling();break;case"shadingColor":this._toggleShading(this.option("visible"));break;case"width":case"height":this._renderGeometry();break;case"minWidth":case"maxWidth":case"minHeight":case"maxHeight":this._renderGeometry();break;case"position":this._positionController.updatePosition(this.option("position")),this._positionController.restorePositionOnNextRender(!0),this._renderGeometry(),this._toggleSafariScrolling();break;case"visible":this._renderVisibilityAnimate(t).done((()=>{var e;return null===(e=this._animateDeferred)||void 0===e?void 0:e.resolveWith(this)})).fail((()=>{var e;return null===(e=this._animateDeferred)||void 0===e?void 0:e.reject()}));break;case"container":this._positionController.updateContainer(t),this._invalidate(),this._toggleSafariScrolling();break;case"visualContainer":this._positionController.updateVisualContainer(t),this._renderWrapper(),this._toggleSafariScrolling();break;case"innerOverlay":this._initInnerOverlayClass();break;case"deferRendering":case"contentTemplate":this._contentAlreadyRendered=!1,this._clean(),this._invalidate();break;case"hideTopOverlayHandler":this._toggleHideTopOverlayCallback(!1),this._initHideTopOverlayHandler(e.value),this._toggleHideTopOverlayCallback(this.option("visible"));break;case"hideOnParentScroll":this._toggleHideOnParentsScrollSubscription(this.option("visible"));break;case"closeOnOutsideClick":case"hideOnOutsideClick":case"propagateOutsideClick":break;case"rtlEnabled":this._contentAlreadyRendered=!1,this.callBase(e);break;case"_fixWrapperPosition":this._positionController.fixWrapperPosition=t;break;case"wrapperAttr":this._renderWrapperAttributes();break;case"restorePosition":this._positionController.restorePosition=e.value;break;default:this.callBase(e)}},toggle:function(e){e=void 0===e?!this.option("visible"):e;var t=new ot.BH;if(e===this.option("visible"))return t.resolveWith(this,[e]).promise();var i=new ot.BH;return this._animateDeferred=i,this.option("visible",e),i.promise().done((()=>{delete this._animateDeferred,t.resolveWith(this,[this.option("visible")])})).fail((()=>{delete this._animateDeferred,t.reject()})),t.promise()},$content:function(){return this._$content},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},content:function(){return(0,se.u)(this._$content)},repaint:function(){this._contentAlreadyRendered?(this._positionController.restorePositionOnNextRender(!0),this._renderGeometry({forceStopAnimation:!0}),(0,Qt.U_)(this._$content)):this.callBase()}});Di.baseZIndex=e=>ni(e),(0,C.Z)("dxOverlay",Di);var ki=Di,Oi="dx-loadpanel",Ai="dx-loadpanel-wrapper",Pi="dx-loadpanel-indicator",Mi="dx-loadpanel-message",Ri="dx-loadpanel-content",Bi="dx-loadpanel-content-wrapper",Vi="dx-loadpanel-pane-hidden",Fi=ki.inherit({_supportedKeys:function(){return(0,a.l)(this.callBase(),{escape:v.ZT})},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{message:y.Z.format("Loading"),width:222,height:90,animation:null,showIndicator:!0,indicatorSrc:"",showPane:!0,delay:0,templatesRenderAsynchronously:!1,hideTopOverlayHandler:null,focusStateEnabled:!1,propagateOutsideClick:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"generic"},options:{shadingColor:"transparent"}},{device:function(){return(0,x.x2)()},options:{message:"",width:60,height:60,maxHeight:60,maxWidth:60}}])},_init:function(){this.callBase.apply(this,arguments)},_render:function(){this.callBase(),this.$element().addClass(Oi),this.$wrapper().addClass(Ai)},_renderContentImpl:function(){this.callBase(),this.$content().addClass(Ri),this._$loadPanelContentWrapper=(0,o.Z)("<div>").addClass(Bi),this._$loadPanelContentWrapper.appendTo(this.$content()),this._togglePaneVisible(),this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage()},_show:function(){var e=this.option("delay");if(!e)return this.callBase();var t=new ot.BH,i=this.callBase.bind(this);return this._clearShowTimeout(),this._showTimeout=setTimeout((function(){i().done((function(){t.resolve()}))}),e),t.promise()},_hide:function(){return this._clearShowTimeout(),this.callBase()},_clearShowTimeout:function(){clearTimeout(this._showTimeout)},_renderMessage:function(){if(this._$loadPanelContentWrapper){var e=this.option("message");if(e){var t=(0,o.Z)("<div>").addClass(Mi).text(e);this._$loadPanelContentWrapper.append(t)}}},_renderLoadIndicator:function(){this._$loadPanelContentWrapper&&this.option("showIndicator")&&(this._$indicator||(this._$indicator=(0,o.Z)("<div>").addClass(Pi).appendTo(this._$loadPanelContentWrapper)),this._createComponent(this._$indicator,oe,{indicatorSrc:this.option("indicatorSrc")}))},_cleanPreviousContent:function(){this.$content().find("."+Mi).remove(),this.$content().find("."+Pi).remove(),delete this._$indicator},_togglePaneVisible:function(){this.$content().toggleClass(Vi,!this.option("showPane"))},_optionChanged:function(e){switch(e.name){case"delay":break;case"message":case"showIndicator":this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage();break;case"showPane":this._togglePaneVisible();break;case"indicatorSrc":this._renderLoadIndicator();break;default:this.callBase(e)}},_dispose:function(){this._clearShowTimeout(),this.callBase()}});(0,C.Z)("dxLoadPanel",Fi);var Hi=Fi,Li=i(68760),Ni=(0,s.Jj)(),Zi="dx-splitter",$i="".concat(Zi,"-wrapper"),Wi="".concat(Zi,"-inactive"),Ki="".concat(Zi,"-border"),zi="".concat(Zi,"-initial"),ji="dx-state-disabled",Ui="dxSplitterResizing";class Gi extends G{_init(){super._init();var e=(new Li.Z).toString();this.SPLITTER_POINTER_DOWN_EVENT_NAME=(0,R.V4)(B.Z.down,Ui+e),this.SPLITTER_POINTER_MOVE_EVENT_NAME=(0,R.V4)(B.Z.move,Ui+e),this.SPLITTER_POINTER_UP_EVENT_NAME=(0,R.V4)(B.Z.up,Ui+e)}_initMarkup(){super._initMarkup(),this._initActions(),this._$container=this.option("container"),this._$leftElement=this.option("leftElement"),this._$rightElement=this.option("rightElement"),this.$element().addClass($i).addClass(zi),this._$splitterBorder=(0,o.Z)("<div>").addClass(Ki).appendTo(this.$element()),this._$splitter=(0,o.Z)("<div>").addClass(Zi).addClass(Wi).appendTo(this._$splitterBorder)}_initActions(){this._actions={onApplyPanelSize:this._createActionByOption("onApplyPanelSize"),onActiveStateChanged:this._createActionByOption("onActiveStateChanged")}}_render(){super._render(),this._detachEventHandlers(),this._attachEventHandlers()}_clean(){this._detachEventHandlers(),super._clean()}_attachEventHandlers(){var e=ke["default"].getDocument();re.Z.on(this._$splitterBorder,this.SPLITTER_POINTER_DOWN_EVENT_NAME,this._onMouseDownHandler.bind(this)),re.Z.on(e,this.SPLITTER_POINTER_MOVE_EVENT_NAME,this._onMouseMoveHandler.bind(this)),re.Z.on(e,this.SPLITTER_POINTER_UP_EVENT_NAME,this._onMouseUpHandler.bind(this))}_detachEventHandlers(){var e=ke["default"].getDocument();re.Z.off(this._$splitterBorder,this.SPLITTER_POINTER_DOWN_EVENT_NAME),re.Z.off(e,this.SPLITTER_POINTER_MOVE_EVENT_NAME),re.Z.off(e,this.SPLITTER_POINTER_UP_EVENT_NAME)}_dimensionChanged(e){e&&"height"===e||(this._containerWidth=this._$container.get(0).clientWidth,this._setSplitterPositionLeft({needUpdatePanels:!0,usePercentagePanelsWidth:!0}))}_onMouseDownHandler(e){e.preventDefault(),this._offsetX=e.pageX-this._$splitterBorder.offset().left<=this._getSplitterBorderWidth()?e.pageX-this._$splitterBorder.offset().left:0,this._containerWidth=this._$container.get(0).clientWidth,this.$element().removeClass(zi),this._toggleActive(!0),this._setSplitterPositionLeft({needUpdatePanels:!0})}_onMouseMoveHandler(e){this._isSplitterActive&&this._setSplitterPositionLeft({splitterPositionLeft:this._getNewSplitterPositionLeft(e),needUpdatePanels:!0})}_onMouseUpHandler(){this._isSplitterActive&&(this._leftPanelPercentageWidth=null,this._toggleActive(!1),this._setSplitterPositionLeft({needUpdatePanels:!0,usePercentagePanelsWidth:!0}))}_getNewSplitterPositionLeft(e){var t=e.pageX-this._getContainerLeftOffset()-this._offsetX;return t=Math.max(0-this._getSplitterOffset(),t),t=Math.min(this._containerWidth-this._getSplitterOffset()-this._getSplitterWidth(),t),t}_getContainerLeftOffset(){var e=this._$container.offset().left;if(Ni){var t=Ni.getComputedStyle(this._$container.get(0)),i=parseFloat(t.paddingLeft)||0,n=parseFloat(t.borderLeftWidth)||0;e+=i+n}return e}_getSplitterOffset(){return(this._getSplitterBorderWidth()-this._getSplitterWidth())/2}_getSplitterWidth(){return this._$splitter.get(0).clientWidth}_getSplitterBorderWidth(){return this._$splitterBorder.get(0).clientWidth}_getLeftPanelWidth(){return this._$leftElement.get(0).clientWidth}getSplitterBorderElement(){return this._$splitterBorder}_toggleActive(e){this.$element().toggleClass(Wi,!e),this._$splitter.toggleClass(Wi,!e),this._isSplitterActive=e,this._actions.onActiveStateChanged({isActive:e})}toggleDisabled(e){this.$element().toggleClass(ji,e),this._$splitter.toggleClass(ji,e)}isSplitterMoved(){return!this.$element().hasClass(zi)}disableSplitterCalculation(e){this._isSplitterCalculationDisabled=e}_setSplitterPositionLeft(){var{splitterPositionLeft:e=null,needUpdatePanels:t=!1,usePercentagePanelsWidth:i=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e=e||this._getLeftPanelWidth()-this._getSplitterOffset();var n=e+this._getSplitterOffset(),o=this._containerWidth-n;this._isSplitterCalculationDisabled||this.$element().css("left",e),this._leftPanelPercentageWidth=this._leftPanelPercentageWidth||this._convertToPercentage(n);var r=this._convertToPercentage(this._containerWidth-this._convertToPixels(this._leftPanelPercentageWidth));t&&this._actions.onApplyPanelSize({leftPanelWidth:i?"".concat(this._leftPanelPercentageWidth,"%"):n,rightPanelWidth:i?"".concat(r,"%"):o})}_optionChanged(e){switch(e.name){case"initialLeftPanelWidth":this._leftPanelPercentageWidth=this._convertToPercentage(e.value),this._dimensionChanged();break;case"leftElement":this.repaint();break;case"onActiveStateChanged":case"onApplyPanelSize":this._actions[e.name]=this._createActionByOption(e.name);break;default:super._optionChanged(e)}}_convertToPercentage(e){return e/this._$container.get(0).clientWidth*100}_convertToPixels(e){return e/100*this._$container.get(0).clientWidth}}var qi={onContextMenuPreparing:"onContextMenuPreparing",onCustomCommand:"onCustomCommand",onDependencyDeleted:"onDependencyDeleted",onDependencyDeleting:"onDependencyDeleting",onDependencyInserted:"onDependencyInserted",onDependencyInserting:"onDependencyInserting",onResourceAssigned:"onResourceAssigned",onResourceAssigning:"onResourceAssigning",onResourceDeleted:"onResourceDeleted",onResourceDeleting:"onResourceDeleting",onResourceInserted:"onResourceInserted",onResourceInserting:"onResourceInserting",onResourceManagerDialogShowing:"onResourceManagerDialogShowing",onResourceUnassigned:"onResourceUnassigned",onResourceUnassigning:"onResourceUnassigning",onSelectionChanged:"onSelectionChanged",onTaskClick:"onTaskClick",onTaskDblClick:"onTaskDblClick",onTaskDeleted:"onTaskDeleted",onTaskDeleting:"onTaskDeleting",onTaskEditDialogShowing:"onTaskEditDialogShowing",onTaskInserted:"onTaskInserted",onTaskInserting:"onTaskInserting",onTaskMoving:"onTaskMoving",onTaskUpdated:"onTaskUpdated",onTaskUpdating:"onTaskUpdating",onScaleCellPrepared:"onScaleCellPrepared"},Yi="tasks",Xi="dependencies",Ji="resources",Qi="resourceAssignments",en="gantt_new_task_key";class tn{constructor(e){this._gantt=e,this._mappingHelper=e._mappingHelper,this._customFieldsManager=e._customFieldsManager}_createActionByOption(e){return this._gantt._createActionByOption(e)}_getTaskData(e){return this._gantt.getTaskData(e)}_convertCoreToMappedData(e,t){return this._mappingHelper.convertCoreToMappedData(e,t)}_convertMappedToCoreData(e,t){return this._mappingHelper.convertMappedToCoreData(e,t)}_convertMappedToCoreFields(e,t){return this._mappingHelper.convertMappedToCoreFields(e,t)}_convertCoreToMappedFields(e,t){return this._mappingHelper.convertCoreToMappedFields(e,t)}_saveCustomFieldsDataToCache(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this._customFieldsManager.saveCustomFieldsDataToCache(e,t,i,n)}createTaskDblClickAction(){this._taskDblClickAction=this._createActionByOption(qi.onTaskDblClick)}taskDblClickAction(e){this._taskDblClickAction||this.createTaskDblClickAction(),this._taskDblClickAction(e)}raiseTaskDblClickAction(e,t){var i={cancel:!1,data:this._getTaskData(e),event:t,key:e};return this.taskDblClickAction(i),!i.cancel}createTaskClickAction(){this._taskClickAction=this._createActionByOption(qi.onTaskClick)}taskClickAction(e){this._taskClickAction||this.createTaskClickAction(),this._taskClickAction(e)}raiseTaskClickAction(e,t){var i={key:e,event:t,data:this._getTaskData(e)};this.taskClickAction(i)}createSelectionChangedAction(){this._selectionChangedAction=this._createActionByOption(qi.onSelectionChanged)}selectionChangedAction(e){this._selectionChangedAction||this.createSelectionChangedAction(),this._selectionChangedAction(e)}raiseSelectionChangedAction(e){this.selectionChangedAction({selectedRowKey:e})}createCustomCommandAction(){this._customCommandAction=this._createActionByOption(qi.onCustomCommand)}customCommandAction(e){this._customCommandAction||this.createCustomCommandAction(),this._customCommandAction(e)}raiseCustomCommand(e){this.customCommandAction({name:e})}createContextMenuPreparingAction(){this._contextMenuPreparingAction=this._createActionByOption(qi.onContextMenuPreparing)}contextMenuPreparingAction(e){this._contextMenuPreparingAction||this.createContextMenuPreparingAction(),this._contextMenuPreparingAction(e)}raiseContextMenuPreparing(e){this.contextMenuPreparingAction(e)}_getInsertingAction(e){switch(e){case Yi:return this._getTaskInsertingAction();case Xi:return this._getDependencyInsertingAction();case Ji:return this._getResourceInsertingAction();case Qi:return this._getResourceAssigningAction()}return()=>{}}raiseInsertingAction(e,t){var i=this._getInsertingAction(e);if(i){var n={cancel:!1,values:this._convertCoreToMappedData(e,t.values)};i(n),t.cancel=n.cancel,t.values=this._convertMappedToCoreData(e,n.values),e===Yi&&this._saveCustomFieldsDataToCache(en,n.values)}}createTaskInsertingAction(){this._taskInsertingAction=this._createActionByOption(qi.onTaskInserting)}taskInsertingAction(e){var t=this._getTaskInsertingAction();t(e)}_getTaskInsertingAction(){return this._taskInsertingAction||this.createTaskInsertingAction(),this._taskInsertingAction}createDependencyInsertingAction(){this._dependencyInsertingAction=this._createActionByOption(qi.onDependencyInserting)}dependencyInsertingAction(e){var t=this._getDependencyInsertingAction();t(e)}_getDependencyInsertingAction(){return this._dependencyInsertingAction||this.createDependencyInsertingAction(),this._dependencyInsertingAction}createResourceInsertingAction(){this._resourceInsertingAction=this._createActionByOption(qi.onResourceInserting)}resourceInsertingAction(e){var t=this._getResourceInsertingAction();t(e)}_getResourceInsertingAction(){return this._resourceInsertingAction||this.createResourceInsertingAction(),this._resourceInsertingAction}createResourceAssigningAction(){this._resourceAssigningAction=this._createActionByOption(qi.onResourceAssigning)}resourceAssigningAction(e){var t=this._getResourceAssigningAction();t(e)}_getResourceAssigningAction(){return this._resourceAssigningAction||this.createResourceAssigningAction(),this._resourceAssigningAction}_getInsertedAction(e){switch(e){case Yi:return this._getTaskInsertedAction();case Xi:return this._getDependencyInsertedAction();case Ji:return this._getResourceInsertedAction();case Qi:return this._getResourceAssignedAction()}return()=>{}}raiseInsertedAction(e,t,i){var n=this._getInsertedAction(e);if(n){var o={values:t,key:i};n(o)}}createTaskInsertedAction(){this._taskInsertedAction=this._createActionByOption(qi.onTaskInserted)}taskInsertedAction(e){var t=this._getTaskInsertedAction();t(e)}_getTaskInsertedAction(){return this._taskInsertedAction||this.createTaskInsertedAction(),this._taskInsertedAction}createDependencyInsertedAction(){this._dependencyInsertedAction=this._createActionByOption(qi.onDependencyInserted)}dependencyInsertedAction(e){var t=this._getDependencyInsertedAction();t(e)}_getDependencyInsertedAction(){return this._dependencyInsertedAction||this.createDependencyInsertedAction(),this._dependencyInsertedAction}createResourceInsertedAction(){this._resourceInsertedAction=this._createActionByOption(qi.onResourceInserted)}resourceInsertedAction(e){var t=this._getResourceInsertedAction();t(e)}_getResourceInsertedAction(){return this._resourceInsertedAction||this.createResourceInsertedAction(),this._resourceInsertedAction}createResourceAssignedAction(){this._resourceAssignedAction=this._createActionByOption(qi.onResourceAssigned)}resourceAssignedAction(e){var t=this._getResourceAssignedAction();t(e)}_getResourceAssignedAction(){return this._resourceAssignedAction||this.createResourceAssignedAction(),this._resourceAssignedAction}_getDeletingAction(e){switch(e){case Yi:return this._getTaskDeletingAction();case Xi:return this._getDependencyDeletingAction();case Ji:return this._getResourceDeletingAction();case Qi:return this._getResourceUnassigningAction()}return()=>{}}raiseDeletingAction(e,t){var i=this._getDeletingAction(e);if(i){var n={cancel:!1,key:t.key,values:this._convertCoreToMappedData(e,t.values)};i(n),t.cancel=n.cancel}}createTaskDeletingAction(){this._taskDeletingAction=this._createActionByOption(qi.onTaskDeleting)}taskDeletingAction(e){var t=this._getTaskDeletingAction();t(e)}_getTaskDeletingAction(){return this._taskDeletingAction||this.createTaskDeletingAction(),this._taskDeletingAction}createDependencyDeletingAction(){this._dependencyDeletingAction=this._createActionByOption(qi.onDependencyDeleting)}dependencyDeletingAction(e){var t=this._getDependencyDeletingAction();t(e)}_getDependencyDeletingAction(){return this._dependencyDeletingAction||this.createDependencyDeletingAction(),this._dependencyDeletingAction}createResourceDeletingAction(){this._resourceDeletingAction=this._createActionByOption(qi.onResourceDeleting)}resourceDeletingAction(e){var t=this._getResourceDeletingAction();t(e)}_getResourceDeletingAction(){return this._resourceDeletingAction||this.createResourceDeletingAction(),this._resourceDeletingAction}createResourceUnassigningAction(){this._resourceUnassigningAction=this._createActionByOption(qi.onResourceUnassigning)}resourceUnassigningAction(e){var t=this._getResourceUnassigningAction();t(e)}_getResourceUnassigningAction(){return this._resourceUnassigningAction||this.createResourceUnassigningAction(),this._resourceUnassigningAction}_getDeletedAction(e){switch(e){case Yi:return this._getTaskDeletedAction();case Xi:return this._getDependencyDeletedAction();case Ji:return this._getResourceDeletedAction();case Qi:return this._getResourceUnassignedAction()}return()=>{}}raiseDeletedAction(e,t,i){var n=this._getDeletedAction(e);if(n){var o={key:t,values:i};n(o)}}createTaskDeletedAction(){this._taskDeletedAction=this._createActionByOption(qi.onTaskDeleted)}taskDeletedAction(e){var t=this._getTaskDeletedAction();t(e)}_getTaskDeletedAction(){return this._taskDeletedAction||this.createTaskDeletedAction(),this._taskDeletedAction}createDependencyDeletedAction(){this._dependencyDeletedAction=this._createActionByOption(qi.onDependencyDeleted)}dependencyDeletedAction(e){var t=this._getDependencyDeletedAction();t(e)}_getDependencyDeletedAction(){return this._dependencyDeletedAction||this.createDependencyDeletedAction(),this._dependencyDeletedAction}createResourceDeletedAction(){this._resourceDeletedAction=this._createActionByOption(qi.onResourceDeleted)}resourceDeletedAction(e){var t=this._getResourceDeletedAction();t(e)}_getResourceDeletedAction(){return this._resourceDeletedAction||this.createResourceDeletedAction(),this._resourceDeletedAction}createResourceUnassignedAction(){this._resourceUnassignedAction=this._createActionByOption(qi.onResourceUnassigned)}resourceUnassignedAction(e){var t=this._getResourceUnassignedAction();t(e)}_getResourceUnassignedAction(){return this._resourceUnassignedAction||this.createResourceUnassignedAction(),this._resourceUnassignedAction}_getUpdatingAction(e){switch(e){case Yi:return this._getTaskUpdatingAction()}return()=>{}}raiseUpdatingAction(e,t,i){if(i=i||this._getUpdatingAction(e),i){var n=e===Yi,o={cancel:!1,key:t.key,newValues:this._convertCoreToMappedData(e,t.newValues),values:n?this._getTaskData(t.key):this._convertCoreToMappedData(e,t.values)};if(n&&this._customFieldsManager.cache.hasData(o.key)&&this._customFieldsManager.addCustomFieldsDataFromCache(o.key,o.newValues),i(o),t.cancel=o.cancel,t.newValues=this._convertMappedToCoreData(e,o.newValues),n)if(o.cancel)this._customFieldsManager.resetCustomFieldsDataCache(o.key);else{var r=!Object.keys(t.newValues).length;this._saveCustomFieldsDataToCache(o.key,o.newValues,r)}}}createTaskUpdatingAction(){this._taskUpdatingAction=this._createActionByOption(qi.onTaskUpdating)}taskUpdatingAction(e){var t=this._getTaskUpdatingAction();t(e)}_getTaskUpdatingAction(){return this._taskUpdatingAction||this.createTaskUpdatingAction(),this._taskUpdatingAction}_getUpdatedAction(e){switch(e){case Yi:return this._getTaskUpdatedAction()}return()=>{}}raiseUpdatedAction(e,t,i){var n=this._getUpdatedAction(e);if(n){var o={values:t,key:i};n(o)}}createTaskUpdatedAction(){this._taskUpdatedAction=this._createActionByOption(qi.onTaskUpdated)}taskUpdatedAction(e){var t=this._getTaskUpdatedAction();t(e)}_getTaskUpdatedAction(){return this._taskUpdatedAction||this.createTaskUpdatedAction(),this._taskUpdatedAction}createTaskEditDialogShowingAction(){this._taskEditDialogShowingAction=this._createActionByOption(qi.onTaskEditDialogShowing)}taskEditDialogShowingAction(e){var t=this._getTaskEditDialogShowingAction();t(e)}_getTaskEditDialogShowingAction(){return this._taskEditDialogShowingAction||this.createTaskEditDialogShowingAction(),this._taskEditDialogShowingAction}raiseTaskEditDialogShowingAction(e){var t=this._getTaskEditDialogShowingAction();if(t){var i={cancel:!1,key:e.key,values:this._convertCoreToMappedData(Yi,e.values),readOnlyFields:this._convertCoreToMappedFields(Yi,e.readOnlyFields),hiddenFields:this._convertCoreToMappedFields(Yi,e.hiddenFields)};t(i),e.cancel=i.cancel,e.values=this._convertMappedToCoreData(Yi,i.values),e.readOnlyFields=this._convertMappedToCoreFields(Yi,i.readOnlyFields),e.hiddenFields=this._convertMappedToCoreFields(Yi,i.hiddenFields)}}createResourceManagerDialogShowingAction(){this._resourceManagerDialogShowingAction=this._createActionByOption(qi.onResourceManagerDialogShowing)}resourceManagerDialogShowingAction(e){var t=this._getResourceManagerDialogShowingAction();t(e)}_getResourceManagerDialogShowingAction(){return this._resourceManagerDialogShowingAction||this.createResourceManagerDialogShowingAction(),this._resourceManagerDialogShowingAction}raiseResourceManagerDialogShowingAction(e){var t=this._getResourceManagerDialogShowingAction();if(t){var i=e.values.resources.items.map((e=>this._convertMappedToCoreData(Ji,e))),n={cancel:!1,values:i};t(n),e.cancel=n.cancel}}createTaskMovingAction(){this._taskMovingAction=this._createActionByOption(qi.onTaskMoving)}taskMovingAction(e){var t=this.getTaskMovingAction();t(e)}getTaskMovingAction(){return this._taskMovingAction||this.createTaskMovingAction(),this._taskMovingAction}getScaleCellPreparedAction(){return this._scaleCellPreparedAction||this.createScaleCellPreparedAction(),this._scaleCellPreparedAction}createScaleCellPreparedAction(){this._scaleCellPreparedAction=this._createActionByOption(qi.onScaleCellPrepared)}raiseScaleCellPreparedAction(e){var t=this.getScaleCellPreparedAction();if(t){var i={scaleIndex:e.scaleIndex,scaleType:this._getScaleType(e.scaleType),scaleElement:(0,se.u)((0,o.Z)(e.scaleElement)),separatorElement:(0,se.u)((0,o.Z)(e.separatorElement)),startDate:new Date(e.start),endDate:new Date(e.end)};t(i)}}_getScaleType(e){switch(e){case 0:return"minutes";case 1:return"hours";case 2:return"sixHours";case 3:return"days";case 4:return"weeks";case 5:return"months";case 6:return"quarters";case 7:return"years";case 8:return"fiveYears";default:return}}}class nn{constructor(){this._cache={},this._timers={}}saveData(e,t,i){if(t){this._clearTimer(e);var n=this._getCache(e,!0);(0,a.x)(n,t,!0),i&&this._setExpireTimer(e,i)}}pullDataFromCache(e,t){var i=this._getCache(e);i&&(0,a.x)(t,i),this._onKeyExpired(e)}hasData(e){return!!this._cache[e]}resetCache(e){this._onKeyExpired(e)}_getCache(e,t){return!this._cache[e]&&t&&(this._cache[e]={}),this._cache[e]}_setExpireTimer(e,t){this._timers[e]=setTimeout((()=>{t(e,this._getCache(e)),this._onKeyExpired(e)}),200)}_onKeyExpired(e){this._clearCache(e),this._clearTimer(e)}_clearCache(e){delete this._cache[e]}_clearTimer(e){var t=this._timers;t&&t[e]&&(clearTimeout(t[e]),delete t[e])}}var on={prepareMapHandler:e=>t=>Object.keys(e).reduce(((i,n)=>{var o="key"===n?"id":n;return i[o]=e[n](t),i}),{}),prepareSetterMapHandler:e=>t=>Object.keys(e).reduce(((i,n)=>{var o="key"===n?"id":n;return e[n](i,t[o]),i}),{}),compileGettersByOption(e){var t={};for(var i in e){var n=i.match(/(\w*)Expr/);n&&(t[n[1]]=(0,r.vb)(e[n[0]]))}return t},compileSettersByOption(e){var t={};for(var i in e){var n=i.match(/(\w*)Expr/);n&&(t[n[1]]=(0,r.OM)(e[n[0]]))}return t},getStoreObject(e,t){var i=on.compileSettersByOption(e);return Object.keys(i).reduce(((e,n)=>("key"!==n&&i[n](e,t[n]),e)),{})},getInvertedData(e,t){var i={};if(e)for(var n=0;n<e.length;n++){var o=e[n],r=t(o);i[r]=o}return i},getArrayFromOneElement:e=>void 0===e||null===e?[]:[e],getSelectionMode:e=>e?"single":"none",convertTreeToList(e,t){null!==e&&void 0!==e&&e.data&&null!==e&&void 0!==e&&e.visible&&t.push(e.data);for(var i=0;i<(null===(n=e.children)||void 0===n?void 0:n.length);i++){var n,o=e.children[i];on.convertTreeToList(o,t)}},getAllParentNodesKeys(e,t){var i;null!==e&&void 0!==e&&e.data&&t.push(e.key),null!==e&&void 0!==e&&null!==(i=e.parent)&&void 0!==i&&i.data&&on.getAllParentNodesKeys(e.parent,t)},getDefaultOptions:()=>({tasks:{dataSource:null,keyExpr:"id",parentIdExpr:"parentId",startExpr:"start",endExpr:"end",progressExpr:"progress",titleExpr:"title",colorExpr:"color"},dependencies:{dataSource:null,keyExpr:"id",predecessorIdExpr:"predecessorId",successorIdExpr:"successorId",typeExpr:"type"},resources:{dataSource:null,keyExpr:"id",textExpr:"text",colorExpr:"color"},resourceAssignments:{dataSource:null,keyExpr:"id",taskIdExpr:"taskId",resourceIdExpr:"resourceId"},columns:void 0,taskListWidth:300,showResources:!0,showDependencies:!0,taskTitlePosition:"inside",firstDayOfWeek:void 0,selectedRowKey:void 0,onSelectionChanged:null,onTaskClick:null,onTaskDblClick:null,onTaskInserting:null,onTaskInserted:null,onTaskDeleting:null,onTaskDeleted:null,onTaskUpdating:null,onTaskUpdated:null,onTaskMoving:null,onTaskEditDialogShowing:null,onDependencyInserting:null,onDependencyInserted:null,onDependencyDeleting:null,onDependencyDeleted:null,onResourceInserting:null,onResourceInserted:null,onResourceDeleting:null,onResourceDeleted:null,onResourceAssigning:null,onResourceAssigned:null,onResourceUnassigning:null,onResourceUnassigned:null,onCustomCommand:null,onContextMenuPreparing:null,allowSelection:!0,showRowLines:!0,stripLines:void 0,scaleType:"auto",scaleTypeRange:{min:"minutes",max:"years"},editing:{enabled:!1,allowTaskAdding:!0,allowTaskDeleting:!0,allowTaskUpdating:!0,allowDependencyAdding:!0,allowDependencyDeleting:!0,allowResourceAdding:!0,allowResourceDeleting:!0,allowResourceUpdating:!0,allowTaskResourceUpdating:!0},validation:{validateDependencies:!1,autoUpdateParentTasks:!1,enablePredecessorGap:!1},toolbar:null,contextMenu:{enabled:!0,items:void 0},taskTooltipContentTemplate:null,taskProgressTooltipContentTemplate:null,taskTimeTooltipContentTemplate:null,taskContentTemplate:null,rootValue:0,sorting:{ascendingText:y.Z.format("dxGantt-sortingAscendingText"),descendingText:y.Z.format("dxGantt-sortingDescendingText"),clearText:y.Z.format("dxGantt-sortingClearText"),mode:"single",showSortIndexes:!1},filterRow:void 0,headerFilter:void 0,rtlEnabled:!1})},rn="tasks";class an{constructor(e){this._gantt=e,this._mappingHelper=e._mappingHelper,this.cache=new nn}_getTaskCustomFields(){var e=this._gantt.option("columns"),t=e&&e.map((e=>e.dataField)),i=this._mappingHelper.getTaskMappedFieldNames();return t?t.filter((e=>i.indexOf(e)<0)):[]}_getCustomFieldsData(e){return this._getTaskCustomFields().reduce(((t,i)=>(e&&void 0!==e[i]&&(t[i]=e[i]),t)),{})}addCustomFieldsData(e,t){if(t){var i=this._gantt._tasksOption&&this._gantt._tasksOption._getItems(),n=(0,r.vb)(this._gantt.option("".concat(rn,".keyExpr"))),o=i&&i.filter((t=>n(t)===e))[0],a=this._getTaskCustomFields();if(o)for(var s=0;s<a.length;s++){var l=a[s];Object.prototype.hasOwnProperty.call(o,l)&&(t[l]=o[l])}}}appendCustomFields(e){var t=this._gantt._tasksOption&&this._gantt._tasksOption._getItems(),i=this._gantt._getTaskKeyGetter(),n=on.getInvertedData(t,i);return e.reduce(((e,t)=>{var o=i(t),r=n[o];if(r){var a={};for(var s in r)a[s]=Object.prototype.hasOwnProperty.call(t,s)?t[s]:r[s];e.push(a)}else e.push(t);return e}),[])}addCustomFieldsDataFromCache(e,t){this.cache.pullDataFromCache(e,t)}saveCustomFieldsDataToCache(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this._getCustomFieldsData(t);Object.keys(o).length>0&&this.cache.saveData(e,o,i?(e,t)=>{var i=this._gantt["_".concat(rn,"Option")];i&&t&&i.update(e,t,((e,t)=>{var o={};this.addCustomFieldsData(t,o),i._reloadDataSource().done((e=>{this._gantt._ganttTreeList.updateDataSource(null!==e&&void 0!==e?e:i._dataSource,!1,n)}));var r=this._gantt.option("selectedRowKey");this._gantt._ganttView._selectTask(r),this._gantt._actionsManager.raiseUpdatedAction(rn,o,t)}))}:null)}resetCustomFieldsDataCache(e){this.cache.resetCache(e)}}var sn=i(38192),ln=i(94381),dn=5;class un{constructor(e){this.init(e)}init(e){var{dragEnabled:t,handle:i,draggableElement:n,positionController:o}=e;this._positionController=o,this._draggableElement=n,this._handle=i,this._dragEnabled=t,this.unsubscribe(),t&&this.subscribe()}moveDown(e){this._moveTo(dn,0,e)}moveUp(e){this._moveTo(-dn,0,e)}moveLeft(e){this._moveTo(0,-dn,e)}moveRight(e){this._moveTo(0,dn,e)}subscribe(){var e=this._getEventNames();re.Z.on(this._handle,e.startEventName,(e=>{this._dragStartHandler(e)})),re.Z.on(this._handle,e.updateEventName,(e=>{this._dragUpdateHandler(e)})),re.Z.on(this._handle,e.endEventName,(e=>{this._dragEndHandler(e)}))}unsubscribe(){var e=this._getEventNames();re.Z.off(this._handle,e.startEventName),re.Z.off(this._handle,e.updateEventName),re.Z.off(this._handle,e.endEventName)}_getEventNames(){var e=(0,R.V4)(Jt.BL,"overlayDrag"),t=(0,R.V4)(Jt.pB,"overlayDrag"),i=(0,R.V4)(Jt.ut,"overlayDrag");return{startEventName:e,updateEventName:t,endEventName:i}}_dragStartHandler(e){var t=this._getAllowedOffsets();this._prevOffset={x:0,y:0},e.targetElements=[],e.maxTopOffset=t.top,e.maxBottomOffset=t.bottom,e.maxLeftOffset=t.left,e.maxRightOffset=t.right}_dragUpdateHandler(e){var t={top:e.offset.y-this._prevOffset.y,left:e.offset.x-this._prevOffset.x};this._moveByOffset(t),this._prevOffset=e.offset}_dragEndHandler(e){this._positionController.dragHandled(),this._positionController.detectVisualPositionChange(e)}_moveTo(e,t,i){if(this._dragEnabled){i.preventDefault(),i.stopPropagation();var n=this._fitOffsetIntoAllowedRange(e,t);this._moveByOffset(n),this._dragEndHandler(i)}}_fitOffsetIntoAllowedRange(e,t){var i=this._getAllowedOffsets();return{top:(0,ln.n$)(e,-i.top,i.bottom),left:(0,ln.n$)(t,-i.left,i.right)}}_getContainerDimensions(){var e=ke["default"].getDocument(),t=this._positionController.$dragResizeContainer.get(0),i=(0,n.Y_)(t),o=(0,n.zp)(t);return(0,l.FJ)(t)&&(o=Math.max(e.body.clientHeight,o),i=Math.max(e.body.clientWidth,i)),{width:i,height:o}}_getContainerPosition(){var e=this._positionController.$dragResizeContainer.get(0);return(0,l.FJ)(e)?{top:0,left:0}:(0,n.os)(e)}_getElementPosition(){return(0,n.os)(this._draggableElement)}_getInnerDelta(){var e=this._getContainerDimensions(),t=this._getElementDimensions();return{x:e.width-t.width,y:e.height-t.height}}_getOuterDelta(){var{width:e,height:t}=this._getElementDimensions(),i=this._positionController.outsideDragFactor;return{x:e*i,y:t*i}}_getFullDelta(){var e=this._getInnerDelta(),t=this._getOuterDelta();return{x:e.x+t.x,y:e.y+t.y}}_getElementDimensions(){return{width:this._draggableElement.offsetWidth,height:this._draggableElement.offsetHeight}}_getAllowedOffsets(){var e=this._getFullDelta(),t=e.y>=0&&e.x>=0;if(!t)return{top:0,bottom:0,left:0,right:0};var i=this._getElementPosition(),n=this._getContainerPosition(),o=this._getOuterDelta();return{top:i.top-n.top+o.y,bottom:-i.top+n.top+e.y,left:i.left-n.left+o.x,right:-i.left+n.left+e.x}}_moveByOffset(e){var t=he(this._draggableElement),i={left:t.left+e.left,top:t.top+e.top};ve(this._draggableElement,i)}}var cn=un,hn=i(39299),pn="dxResizable",fn="dx-resizable",gn="dx-resizable-resizing",mn="dx-resizable-handle",_n="dx-resizable-handle-top",vn="dx-resizable-handle-bottom",yn="dx-resizable-handle-left",Cn="dx-resizable-handle-right",bn="dx-resizable-handle-corner",xn=(0,R.V4)(Jt.BL,pn),wn=(0,R.V4)(Jt.pB,pn),Tn=(0,R.V4)(Jt.ut,pn),Sn={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},In=S.Z.inherit({_getDefaultOptions:function(){return(0,a.l)(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,roundStepValue:!0,keepAspectRatio:!0})},_init:function(){this.callBase(),this.$element().addClass(fn)},_initMarkup:function(){this.callBase(),this._renderHandles()},_render:function(){this.callBase(),this._renderActions()},_renderActions:function(){this._resizeStartAction=this._createActionByOption("onResizeStart"),this._resizeEndAction=this._createActionByOption("onResizeEnd"),this._resizeAction=this._createActionByOption("onResize")},_renderHandles:function(){this._handles=[];var e=this.option("handles");if("none"!==e&&e){var t="all"===e?["top","bottom","left","right"]:e.split(" "),i={};(0,E.S6)(t,((e,t)=>{i[t]=!0,this._renderHandle(t)})),i.bottom&&i.right&&this._renderHandle("corner-bottom-right"),i.bottom&&i.left&&this._renderHandle("corner-bottom-left"),i.top&&i.right&&this._renderHandle("corner-top-right"),i.top&&i.left&&this._renderHandle("corner-top-left"),this._attachEventHandlers()}},_renderHandle:function(e){var t=(0,o.Z)("<div>").addClass(mn).addClass(mn+"-"+e).appendTo(this.$element());this._handles.push(t)},_attachEventHandlers:function(){if(!this.option("disabled")){var e={};e[xn]=this._dragStartHandler.bind(this),e[wn]=this._dragHandler.bind(this),e[Tn]=this._dragEndHandler.bind(this),this._handles.forEach((t=>{re.Z.on(t,e,{direction:"both",immediate:!0})}))}},_detachEventHandlers:function(){this._handles.forEach((e=>{re.Z.off(e)}))},_toggleEventHandlers:function(e){e?this._attachEventHandlers():this._detachEventHandlers()},_getElementSize:function(){var e=this.$element();return"border-box"===e.css("boxSizing")?{width:(0,n.Y_)(e),height:(0,n.zp)(e)}:{width:(0,n.dz)(e),height:(0,n.Cr)(e)}},_dragStartHandler:function(e){var t=this.$element();t.is(".dx-state-disabled, .dx-state-disabled *")?e.cancel=!0:(this._toggleResizingClass(!0),this._movingSides=this._getMovingSides(e),this._elementLocation=he(t),this._elementSize=this._getElementSize(),this._renderDragOffsets(e),this._resizeStartAction({event:e,width:this._elementSize.width,height:this._elementSize.height,handles:this._movingSides}),e.targetElements=null)},_toggleResizingClass:function(e){this.$element().toggleClass(gn,e)},_renderDragOffsets:function(e){var t=this._getArea();if(t){var i=(0,o.Z)(e.target).closest("."+mn),r=(0,n.Y_)(i),a=(0,n.zp)(i),s=i.offset(),l=t.offset,d=this._getAreaScrollOffset();e.maxLeftOffset=this._leftMaxOffset=s.left-l.left-d.scrollX,e.maxRightOffset=this._rightMaxOffset=l.left+t.width-s.left-r+d.scrollX,e.maxTopOffset=this._topMaxOffset=s.top-l.top-d.scrollY,e.maxBottomOffset=this._bottomMaxOffset=l.top+t.height-s.top-a+d.scrollY}},_getBorderWidth:function(e,t){if((0,l.FJ)(e.get(0)))return 0;var i=e.css(Sn[t]);return parseInt(i)||0},_proportionate:function(e,t){var i=this._elementSize,n="x"===e?i.width/i.height:i.height/i.width;return t*n},_getProportionalDelta:function(e){var{x:t,y:i}=e,n=this._proportionate("y",t);if(n>=i)return{x:t,y:n};var o=this._proportionate("x",i);return o>=t?{x:o,y:i}:{x:0,y:0}},_getDirectionName:function(e){var t=this._movingSides;return"x"===e?t.left?"left":"right":t.top?"top":"bottom"},_fitIntoArea:function(e,t){var i,n=this._getDirectionName(e);return Math.min(t,null!==(i=this["_".concat(n,"MaxOffset")])&&void 0!==i?i:1/0)},_fitDeltaProportionally:function(e){var t=(0,hn.Z)({},e),i=this._elementSize,{minWidth:n,minHeight:o,maxWidth:r,maxHeight:a}=this.option(),s=()=>i.width+t.x,l=()=>i.height+t.y,d=e=>t[e]===this._fitIntoArea(e,t[e]),u=()=>(0,ln.Z2)(s(),n,r)&&d("x"),c=()=>(0,ln.Z2)(l(),o,a)&&d("y");if(!u()){var h=this._fitIntoArea("x",(0,ln.n$)(s(),n,r)-i.width);t={x:h,y:this._proportionate("y",h)}}if(!c()){var p=this._fitIntoArea("y",(0,ln.n$)(l(),o,a)-i.height);t={x:this._proportionate("x",p),y:p}}return u()&&c()?t:{x:0,y:0}},_fitDelta:function(e){var{x:t,y:i}=e,n=this._elementSize,{minWidth:o,minHeight:r,maxWidth:a,maxHeight:s}=this.option();return{x:(0,ln.n$)(n.width+t,o,a)-n.width,y:(0,ln.n$)(n.height+i,r,s)-n.height}},_getDeltaByOffset:function(e){var t=this._movingSides,i=this._isCornerHandler(t)&&this.option("keepAspectRatio"),n={x:e.x*(t.left?-1:1),y:e.y*(t.top?-1:1)};if(i){var o=this._getProportionalDelta(n),r=this._fitDeltaProportionally(o);n=r}else{var a=this._fitDelta(n),s=this._roundByStep(a);n=s}return n},_updatePosition:function(e,t){var{width:i,height:n}=t,o=this._elementLocation,r=this._movingSides,a=this.$element(),s=this._getElementSize(),l=e.y*(r.top?-1:1)-((s.height||n)-n),d=e.x*(r.left?-1:1)-((s.width||i)-i);ve(a,{top:o.top+(r.top?l:0),left:o.left+(r.left?d:0)})},_dragHandler:function(e){var t=this._getOffset(e),i=this._getDeltaByOffset(t),n=this._updateDimensions(i);this._updatePosition(i,n),this._triggerResizeAction(e,n)},_updateDimensions:function(e){var t=e=>"px"===e.substring(e.length-2),i="strict"===this.option("stepPrecision"),n=this._elementSize,o=n.width+e.x,r=n.height+e.y,a=this.$element().get(0).style,s=e.x||i||t(a.width),l=e.y||i||t(a.height);return s&&this.option({width:o}),l&&this.option({height:r}),{width:s?o:n.width,height:l?r:n.height}},_triggerResizeAction:function(e,t){var{width:i,height:n}=t;this._resizeAction({event:e,width:this.option("width")||i,height:this.option("height")||n,handles:this._movingSides}),(0,Qt.U_)(this.$element())},_isCornerHandler:e=>0===Object.values(e).reduce(((e,t)=>e^t),0),_getOffset:function(e){var t=e.offset,i=this._movingSides;return i.left||i.right||(t.x=0),i.top||i.bottom||(t.y=0),t},_roundByStep:function(e){return"strict"===this.option("stepPrecision")?this._roundStrict(e):this._roundNotStrict(e)},_getSteps:function(){return(0,v.TG)(this.option("step"),!this.option("roundStepValue"))},_roundNotStrict:function(e){var t=this._getSteps();return{x:e.x-e.x%t.h,y:e.y-e.y%t.v}},_roundStrict:function(e){var t=this._movingSides,i={x:e.x*(t.left?-1:1),y:e.y*(t.top?-1:1)},n=this._getSteps(),o=this._elementLocation,r=this._elementSize,a=t.left?o.left:o.left+r.width,s=t.top?o.top:o.top+r.height,l=(a+i.x)%n.h,d=(s+i.y)%n.v,u=Math.sign||(e=>(e=+e,0===e||isNaN(e)?e:e>0?1:-1)),c=(e,t)=>(1+.2*u(t))%1*e,h=(e,t)=>Math.abs(e)<.2*t,p=i.x-l,f=i.y-d;l>c(n.h,i.x)&&(p+=n.h),d>c(n.v,i.y)&&(f+=n.v);var g=!t.left&&!t.right||h(i.x,n.h)?0:p,m=!t.top&&!t.bottom||h(i.y,n.v)?0:f;return{x:g*(t.left?-1:1),y:m*(t.top?-1:1)}},_getMovingSides:function(e){var t=(0,o.Z)(e.target),i=t.hasClass(bn+"-top-left"),n=t.hasClass(bn+"-top-right"),r=t.hasClass(bn+"-bottom-left"),a=t.hasClass(bn+"-bottom-right");return{top:t.hasClass(_n)||i||n,left:t.hasClass(yn)||i||r,bottom:t.hasClass(vn)||r||a,right:t.hasClass(Cn)||n||a}},_getArea:function(){var e=this.option("area");return(0,l.mf)(e)&&(e=e.call(this)),(0,l.PO)(e)?this._getAreaFromObject(e):this._getAreaFromElement(e)},_getAreaScrollOffset:function(){var e=this.option("area"),t=!(0,l.mf)(e)&&!(0,l.PO)(e),i={scrollY:0,scrollX:0};if(t){var n=(0,o.Z)(e)[0];(0,l.FJ)(n)&&(i.scrollX=n.pageXOffset,i.scrollY=n.pageYOffset)}return i},_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,i=(0,o.Z)(e);return i.length&&(t={width:(0,n.Xt)(i),height:(0,n.fA)(i),offset:(0,a.l)({top:0,left:0},(0,l.FJ)(i[0])?{}:i.offset())},this._correctAreaGeometry(t,i)),t},_correctAreaGeometry:function(e,t){var i=t?this._getBorderWidth(t,"left"):0,o=t?this._getBorderWidth(t,"top"):0;e.offset.left+=i+this._getBorderWidth(this.$element(),"left"),e.offset.top+=o+this._getBorderWidth(this.$element(),"top"),e.width-=(0,n.Y_)(this.$element())-(0,n.Xt)(this.$element()),e.height-=(0,n.zp)(this.$element())-(0,n.fA)(this.$element())},_dragEndHandler:function(e){var t=this.$element();this._resizeEndAction({event:e,width:(0,n.Y_)(t),height:(0,n.zp)(t),handles:this._movingSides}),this._toggleResizingClass(!1)},_renderWidth:function(e){this.option("width",(0,ln.n$)(e,this.option("minWidth"),this.option("maxWidth")))},_renderHeight:function(e){this.option("height",(0,ln.n$)(e,this.option("minHeight"),this.option("maxHeight")))},_optionChanged:function(e){switch(e.name){case"disabled":this._toggleEventHandlers(!e.value),this.callBase(e);break;case"handles":this._invalidate();break;case"minWidth":case"maxWidth":(0,s.Ym)()&&this._renderWidth((0,n.Y_)(this.$element()));break;case"minHeight":case"maxHeight":(0,s.Ym)()&&this._renderHeight((0,n.zp)(this.$element()));break;case"onResize":case"onResizeStart":case"onResizeEnd":this._renderActions();break;case"area":case"stepPrecision":case"step":case"roundStepValue":case"keepAspectRatio":break;default:this.callBase(e)}},_clean:function(){this.$element().find("."+mn).remove()},_useTemplates:function(){return!1}});(0,C.Z)(pn,In);var En=In,Dn=i(79494),kn=i(46282),On={valid:"valid",invalid:"invalid",pending:"pending"};class An{constructor(){this.NAME="base"}defaultMessage(e){return y.Z.getFormatter("validation-".concat(this.NAME))(e)}defaultFormattedMessage(e){return y.Z.getFormatter("validation-".concat(this.NAME,"-formatted"))(e)}_isValueEmpty(e){return!Zn.required.validate(e,{})}validate(e,t){var i=Array.isArray(e)?e:[e],n=!0;return i.length?i.every((e=>(n=this._validate(e,t),n))):n=this._validate(null,t),n}}class Pn extends An{constructor(){super(),this.NAME="required"}_validate(e,t){return!!(0,l.$K)(e)&&(!1!==e&&(e=String(e),!t.trim&&(0,l.$K)(t.trim)||(e=e.trim()),""!==e))}}class Mn extends An{constructor(){super(),this.NAME="numeric"}_validate(e,t){return!(!1===t.ignoreEmptyValue||!this._isValueEmpty(e))||(t.useCultureSettings&&(0,l.HD)(e)?!isNaN(kn.Z.parse(e)):(0,l.kE)(e))}}class Rn extends An{constructor(){super(),this.NAME="range"}_validate(e,t){if(!1!==t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;var i=Zn.numeric.validate(e,t),n=(0,l.$K)(e)&&""!==e,o=i?parseFloat(e):n&&e.valueOf(),r=t.min,a=t.max;if(!i&&!(0,l.J_)(e)&&!n)return!1;if((0,l.$K)(r))return(0,l.$K)(a)?o>=r&&o<=a:o>=r;if((0,l.$K)(a))return o<=a;throw ae.Z.Error("E0101")}}class Bn extends An{constructor(){super(),this.NAME="stringLength"}_validate(e,t){var i;return e=String(null!==(i=e)&&void 0!==i?i:""),!t.trim&&(0,l.$K)(t.trim)||(e=e.trim()),!(!t.ignoreEmptyValue||!this._isValueEmpty(e))||Zn.range.validate(e.length,(0,a.l)({},t))}}class Vn extends An{constructor(){super(),this.NAME="custom"}validate(e,t){if(t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;var i=t.validator,n=i&&(0,l.mf)(i.option)&&i.option("dataGetter"),o=(0,l.mf)(n)&&n(),r={value:e,validator:i,rule:t};return o&&(0,a.l)(r,o),t.validationCallback(r)}}class Fn extends Vn{constructor(){super(),this.NAME="async"}validate(e,t){if((0,l.$K)(t.reevaluate)||(0,a.l)(t,{reevaluate:!0}),t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;var i=t.validator,n=i&&(0,l.mf)(i.option)&&i.option("dataGetter"),o=(0,l.mf)(n)&&n(),r={value:e,validator:i,rule:t};o&&(0,a.l)(r,o);var s=t.validationCallback(r);if(!(0,l.tI)(s))throw ae.Z.Error("E0103");return this._getWrappedPromise((0,ot.p4)(s).promise())}_getWrappedPromise(e){var t=new ot.BH;return e.then((function(e){t.resolve(e)}),(function(e){var i={isValid:!1};(0,l.$K)(e)&&((0,l.HD)(e)?i.message=e:(0,l.Kn)(e)&&(0,l.$K)(e.message)&&(0,l.HD)(e.message)&&(i.message=e.message)),t.resolve(i)})),t.promise()}}class Hn extends An{constructor(){super(),this.NAME="compare"}_validate(e,t){if(!t.comparisonTarget)throw ae.Z.Error("E0102");if(t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;(0,a.l)(t,{reevaluate:!0});var i=t.comparisonTarget(),n=t.comparisonType||"==";switch(n){case"==":return e==i;case"!=":return e!=i;case"===":return e===i;case"!==":return e!==i;case">":return e>i;case">=":return e>=i;case"<":return e<i;case"<=":return e<=i}}}class Ln extends An{constructor(){super(),this.NAME="pattern"}_validate(e,t){if(!1!==t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;var i=t.pattern;return(0,l.HD)(i)&&(i=new RegExp(i)),i.test(e)}}class Nn extends An{constructor(){super(),this.NAME="email"}_validate(e,t){return!(!1===t.ignoreEmptyValue||!this._isValueEmpty(e))||Zn.pattern.validate(e,(0,a.l)({},t,{pattern:/^[\d\w._-]+@[\d\w._-]+\.[\w]+$/i}))}}var Zn={required:new Pn,numeric:new Mn,range:new Rn,stringLength:new Bn,custom:new Vn,async:new Fn,compare:new Hn,pattern:new Ln,email:new Nn},$n=P.Z.inherit({ctor(e){this.group=e,this.validators=[],this._pendingValidators=[],this._onValidatorStatusChanged=this._onValidatorStatusChanged.bind(this),this._resetValidationInfo(),this._eventsStrategy=new Dn.m(this)},validate(){var e={isValid:!0,brokenRules:[],validators:[],status:On.valid,complete:null};return this._unsubscribeFromAllChangeEvents(),this._pendingValidators=[],this._resetValidationInfo(),(0,E.S6)(this.validators,((t,i)=>{var n=i.validate();e.isValid=e.isValid&&n.isValid,n.brokenRules&&(e.brokenRules=e.brokenRules.concat(n.brokenRules)),e.validators.push(i),n.status===On.pending&&this._addPendingValidator(i),this._subscribeToChangeEvents(i)})),this._pendingValidators.length?e.status=On.pending:(e.status=e.isValid?On.valid:On.invalid,this._unsubscribeFromAllChangeEvents(),this._raiseValidatedEvent(e)),this._updateValidationInfo(e),(0,a.l)({},this._validationInfo.result)},_subscribeToChangeEvents(e){e.on("validating",this._onValidatorStatusChanged),e.on("validated",this._onValidatorStatusChanged)},_unsubscribeFromChangeEvents(e){e.off("validating",this._onValidatorStatusChanged),e.off("validated",this._onValidatorStatusChanged)},_unsubscribeFromAllChangeEvents(){(0,E.S6)(this.validators,((e,t)=>{this._unsubscribeFromChangeEvents(t)}))},_updateValidationInfo(e){this._validationInfo.result=e,e.status===On.pending&&(this._validationInfo.deferred||(this._validationInfo.deferred=new ot.BH,this._validationInfo.result.complete=this._validationInfo.deferred.promise()))},_addPendingValidator(e){var t=(0,v.h3)(this._pendingValidators,(function(t){return t===e}))[0];t||this._pendingValidators.push(e)},_removePendingValidator(e){var t=this._pendingValidators.indexOf(e);t>=0&&this._pendingValidators.splice(t,1)},_orderBrokenRules(e){var t=[];return(0,E.S6)(this.validators,(function(i,n){var o=(0,v.h3)(e,(function(e){return e.validator===n}));o.length&&(t=t.concat(o))})),t},_updateBrokenRules(e){if(this._validationInfo.result){var t=this._validationInfo.result.brokenRules,i=(0,v.h3)(t,(function(t){return t.validator!==e.validator}));e.brokenRules&&(t=i.concat(e.brokenRules)),this._validationInfo.result.brokenRules=this._orderBrokenRules(t)}},_onValidatorStatusChanged(e){e.status!==On.pending?this._resolveIfComplete(e):this._addPendingValidator(e.validator)},_resolveIfComplete(e){if(this._removePendingValidator(e.validator),this._updateBrokenRules(e),!this._pendingValidators.length){if(this._unsubscribeFromAllChangeEvents(),!this._validationInfo.result)return;this._validationInfo.result.status=0===this._validationInfo.result.brokenRules.length?On.valid:On.invalid,this._validationInfo.result.isValid=this._validationInfo.result.status===On.valid;var t=(0,a.l)({},this._validationInfo.result,{complete:null}),i=this._validationInfo.deferred;this._validationInfo.deferred=null,this._raiseValidatedEvent(t),i&&setTimeout((()=>{i.resolve(t)}))}},_raiseValidatedEvent(e){this._eventsStrategy.fireEvent("validated",[e])},_resetValidationInfo(){this._validationInfo={result:null,deferred:null}},_synchronizeValidationInfo(){this._validationInfo.result&&(this._validationInfo.result.validators=this.validators)},removeRegisteredValidator(e){var t=this.validators.indexOf(e);t>-1&&(this.validators.splice(t,1),this._synchronizeValidationInfo(),this._resolveIfComplete({validator:e}))},registerValidator(e){this.validators.includes(e)||(this.validators.push(e),this._synchronizeValidationInfo())},reset(){(0,E.S6)(this.validators,(function(e,t){t.reset()})),this._pendingValidators=[],this._resetValidationInfo()},on(e,t){return this._eventsStrategy.on(e,t),this},off(e,t){return this._eventsStrategy.off(e,t),this}}),Wn={groups:[],getGroupConfig(e){var t=(0,v.h3)(this.groups,(function(t){return t.group===e}));if(t.length)return t[0]},findGroup(e,t){var i,n,o=null===(i=e.data())||void 0===i||null===(n=i.dxComponents)||void 0===n?void 0:n.includes("dxValidationGroup"),r=o&&e.dxValidationGroup("instance");if(r)return r;var a=e.parents(".dx-validationgroup").first();return a.length?a.dxValidationGroup("instance"):t},initGroups(){this.groups=[],this.addGroup()},addGroup(e){var t=this.getGroupConfig(e);return t||(t=new $n(e),this.groups.push(t)),t},removeGroup(e){var t=this.getGroupConfig(e),i=this.groups.indexOf(t);return i>-1&&this.groups.splice(i,1),t},_setDefaultMessage(e){var{rule:t,validator:i,name:n}=e;(0,l.$K)(t.message)||(i.defaultFormattedMessage&&(0,l.$K)(n)?t.message=i.defaultFormattedMessage(n):t.message=i.defaultMessage())},_addBrokenRule(e){var{result:t,rule:i}=e;t.brokenRule||(t.brokenRule=i),t.brokenRules||(t.brokenRules=[]),t.brokenRules.push(i)},validate(e,t,i){var n,o={name:i,value:e,brokenRule:null,brokenRules:null,isValid:!0,validationRules:t,pendingRules:null,status:On.valid,complete:null},r=null===t||void 0===t||null===(n=t[0])||void 0===n?void 0:n.validator,a=[];return(0,E.S6)(t||[],((t,n)=>{var r,s=Zn[n.type];if(!s)throw ae.Z.Error("E0100");return(0,l.$K)(n.isValid)&&n.value===e&&!n.reevaluate?!!n.isValid||(o.isValid=!1,this._addBrokenRule({result:o,rule:n}),!1):(n.value=e,"async"===n.type?(a.push({rule:n,ruleValidator:s}),!0):(r=s.validate(e,n),n.isValid=r,r||(o.isValid=!1,this._setDefaultMessage({rule:n,validator:s,name:i}),this._addBrokenRule({result:o,rule:n})),!!n.isValid&&void 0))})),o.isValid&&!o.brokenRules&&a.length&&(o=this._validateAsyncRules({value:e,items:a,result:o,name:i})),this._synchronizeGroupValidationInfo(r,o),o.status=o.pendingRules?On.pending:o.isValid?On.valid:On.invalid,o},_synchronizeGroupValidationInfo(e,t){var i;if(e){var n=Wn.getGroupConfig(e._validationGroup);n._updateBrokenRules.call(n,{validator:e,brokenRules:null!==(i=t.brokenRules)&&void 0!==i?i:[]})}},_validateAsyncRules(e){var{result:t,value:i,items:n,name:o}=e,r=[];return(0,E.S6)(n,((e,n)=>{var a=n.ruleValidator.validate(i,n.rule);if((0,l.tI)(a)){t.pendingRules||(t.pendingRules=[]),t.pendingRules.push(n.rule);var s=a.then((e=>{var t=this._getPatchedRuleResult(e);return this._updateRuleConfig({rule:n.rule,ruleResult:t,validator:n.ruleValidator,name:o}),t}));r.push(s)}else this._updateRuleConfig({rule:n.rule,ruleResult:this._getPatchedRuleResult(a),validator:n.ruleValidator,name:o})})),r.length&&(t.complete=Promise.all(r).then((e=>this._getAsyncRulesResult({result:t,values:e})))),t},_updateRuleConfig(e){var{rule:t,ruleResult:i,validator:n,name:o}=e;t.isValid=i.isValid,i.isValid||((0,l.$K)(i.message)&&(0,l.HD)(i.message)&&i.message.length?t.message=i.message:this._setDefaultMessage({rule:t,validator:n,name:o}))},_getPatchedRuleResult(e){var t;return(0,l.Kn)(e)?(t=(0,a.l)({},e),(0,l.$K)(t.isValid)||(t.isValid=!0)):t={isValid:!(0,l.jn)(e)||e},t},_getAsyncRulesResult(e){var{values:t,result:i}=e;return(0,E.S6)(t,((e,t)=>{if(!1===t.isValid){i.isValid=t.isValid;var n=i.pendingRules[e];this._addBrokenRule({result:i,rule:n})}})),i.pendingRules=null,i.complete=null,i.status=i.isValid?On.valid:On.invalid,i},registerValidatorInGroup(e,t){var i=Wn.addGroup(e);i.registerValidator.call(i,t)},_shouldRemoveGroup(e,t){var i=void 0===e,n=e&&"dxValidationGroup"===e.NAME;return!i&&!n&&!t.length},removeRegisteredValidator(e,t){var i=Wn.getGroupConfig(e);if(i){i.removeRegisteredValidator.call(i,t);var n=i.validators;this._shouldRemoveGroup(e,n)&&this.removeGroup(e)}},initValidationOptions(e){var t={};return e&&["isValid","validationStatus","validationError","validationErrors"].forEach((i=>{i in e&&(0,a.l)(t,this.synchronizeValidationOptions({name:i,value:e[i]},e))})),t},synchronizeValidationOptions(e,t){var{name:i,value:n}=e;switch(i){case"validationStatus":var o=n===On.valid||n===On.pending;return t.isValid!==o?{isValid:o}:{};case"isValid":var{validationStatus:r}=t,a=r;return n&&r===On.invalid?a=On.valid:n||r===On.invalid||(a=On.invalid),a!==r?{validationStatus:a}:{};case"validationErrors":var s=n&&n.length?n[0]:null;return t.validationError!==s?{validationError:s}:{};case"validationError":var{validationErrors:l}=t;if(!n&&l)return{validationErrors:null};if(n&&!l)return{validationErrors:[n]};if(n&&l&&n!==l[0])return l[0]=n,{validationErrors:l.slice()}}return{}},validateGroup(e){var t=Wn.getGroupConfig(e);if(!t)throw ae.Z.Error("E0110");return t.validate()},resetGroup(e){var t=Wn.getGroupConfig(e);if(!t)throw ae.Z.Error("E0110");return t.reset()}};Wn.initGroups();var Kn=Wn,zn=Array.isArray;function jn(e){var t=typeof e;return"string"===t||"number"===t}function Un(e){return void 0===e||null===e}function Gn(e){return null===e||!1===e||!0===e||void 0===e}function qn(e){return"function"===typeof e}function Yn(e){return"string"===typeof e}function Xn(e){return"number"===typeof e}function Jn(e){return null===e}function Qn(e){return void 0===e}function eo(e,t){var i={};if(e)for(var n in e)i[n]=e[n];if(t)for(var o in t)i[o]=t[o];return i}function to(e){return!Jn(e)&&"object"===typeof e}var io={},no="$F";function oo(e){return e.substr(2).toLowerCase()}function ro(e,t){e.appendChild(t)}function ao(e,t,i){Jn(i)?ro(e,t):e.insertBefore(t,i)}function so(e,t){return t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}function lo(e,t,i){e.replaceChild(t,i)}function uo(e,t){e.removeChild(t)}function co(e){for(var t=0;t<e.length;t++)e[t]()}function ho(e,t,i){var n=e.children;return 4&i?n.$LI:8192&i?2===e.childFlags?n:n[t?0:n.length-1]:n}function po(e,t){var i;while(e){if(i=e.flags,2033&i)return e.dom;e=ho(e,t,i)}return null}function fo(e,t){do{var i=e.flags;if(2033&i)return void uo(t,e.dom);var n=e.children;if(4&i&&(e=n.$LI),8&i&&(e=n),8192&i){if(2!==e.childFlags){for(var o=0,r=n.length;o<r;++o)fo(n[o],t);return}e=n}}while(e)}function go(e,t,i){do{var n=e.flags;if(2033&n)return void ao(t,e.dom,i);var o=e.children;if(4&n&&(e=o.$LI),8&n&&(e=o),8192&n){if(2!==e.childFlags){for(var r=0,a=o.length;r<a;++r)go(o[r],t,i);return}e=o}}while(e)}function mo(e,t,i){return e.constructor.getDerivedStateFromProps?eo(i,e.constructor.getDerivedStateFromProps(t,i)):i}var _o={v:!1},vo={componentComparator:null,createVNode:null,renderComplete:null};function yo(e,t){e.textContent=t}function Co(e,t){return to(e)&&e.event===t.event&&e.data===t.data}function bo(e,t){for(var i in t)Qn(e[i])&&(e[i]=t[i]);return e}function xo(e,t){return!!qn(e)&&(e(t),!0)}var wo="$";function To(e,t,i,n,o,r,a,s){this.childFlags=e,this.children=t,this.className=i,this.dom=null,this.flags=n,this.key=void 0===o?null:o,this.props=void 0===r?null:r,this.ref=void 0===a?null:a,this.type=s}function So(e,t,i,n,o,r,a,s){var l=void 0===o?1:o,d=new To(l,n,i,e,a,r,s,t);return vo.createVNode&&vo.createVNode(d),0===l&&Ho(d,d.children),d}function Io(e,t,i){if(4&e)return i;var n=(32768&e?t.render:t).defaultHooks;return Un(n)?i:Un(i)?n:bo(i,n)}function Eo(e,t,i){var n=(32768&e?t.render:t).defaultProps;return Un(n)?i:Un(i)?eo(n,null):bo(i,n)}function Do(e,t){return 12&e?e:t.prototype&&t.prototype.render?4:t.render?32776:8}function ko(e,t,i,n,o){e=Do(e,t);var r=new To(1,null,null,e,n,Eo(e,t,i),Io(e,t,o),t);return vo.createVNode&&vo.createVNode(r),r}function Oo(e,t){return new To(1,Un(e)||!0===e||!1===e?"":e,null,16,t,null,null,null)}function Ao(e,t,i){var n=So(8192,8192,null,e,t,null,i,null);switch(n.childFlags){case 1:n.children=Bo(),n.childFlags=2;break;case 16:n.children=[Oo(e)],n.childFlags=4;break}return n}function Po(e){var t=e.props;if(t){var i=e.flags;481&i&&(void 0!==t.children&&Un(e.children)&&Ho(e,t.children),void 0!==t.className&&(Un(e.className)&&(e.className=t.className||null),t.className=void 0)),void 0!==t.key&&(e.key=t.key,t.key=void 0),void 0!==t.ref&&(e.ref=8&i?eo(e.ref,t.ref):t.ref,t.ref=void 0)}return e}function Mo(e){var t=e.children,i=e.childFlags;return Ao(2===i?Ro(t):t.map(Ro),i,e.key)}function Ro(e){var t=-16385&e.flags,i=e.props;if(14&t&&!Jn(i)){var n=i;for(var o in i={},n)i[o]=n[o]}return 0===(8192&t)?new To(e.childFlags,e.children,e.className,t,e.key,i,e.ref,e.type):Mo(e)}function Bo(){return Oo("",null)}function Vo(e,t,i,n){for(var o=e.length;i<o;i++){var r=e[i];if(!Gn(r)){var a=n+wo+i;if(zn(r))Vo(r,t,0,a);else{if(jn(r))r=Oo(r,a);else{var s=r.key,l=Yn(s)&&s[0]===wo;(81920&r.flags||l)&&(r=Ro(r)),r.flags|=65536,l?s.substring(0,n.length)!==n&&(r.key=n+s):Jn(s)?r.key=a:r.key=n+s}t.push(r)}}}}function Fo(e){switch(e){case"svg":return 32;case"input":return 64;case"select":return 256;case"textarea":return 128;case no:return 8192;default:return 1}}function Ho(e,t){var i,n=1;if(Gn(t))i=t;else if(jn(t))n=16,i=t;else if(zn(t)){for(var o=t.length,r=0;r<o;++r){var a=t[r];if(Gn(a)||zn(a)){i=i||t.slice(0,r),Vo(t,i,r,"");break}if(jn(a))i=i||t.slice(0,r),i.push(Oo(a,wo+r));else{var s=a.key,l=(81920&a.flags)>0,d=Jn(s),u=Yn(s)&&s[0]===wo;l||d||u?(i=i||t.slice(0,r),(l||u)&&(a=Ro(a)),(d||u)&&(a.key=wo+r),i.push(a)):i&&i.push(a),a.flags|=65536}}i=i||t,n=0===i.length?1:8}else i=t,i.flags|=65536,81920&t.flags&&(i=Ro(t)),n=2;return e.children=i,e.childFlags=n,e}function Lo(e){return Gn(e)||jn(e)?Oo(e,null):zn(e)?Ao(e,0,null):16384&e.flags?Ro(e):e}var No="http://www.w3.org/1999/xlink",Zo="http://www.w3.org/XML/1998/namespace",$o={"xlink:actuate":No,"xlink:arcrole":No,"xlink:href":No,"xlink:role":No,"xlink:show":No,"xlink:title":No,"xlink:type":No,"xml:base":Zo,"xml:lang":Zo,"xml:space":Zo};function Wo(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var Ko=Wo(0),zo=Wo(null),jo=Wo(!0);function Uo(e,t){var i=t.$EV;return i||(i=t.$EV=Wo(null)),i[e]||1===++Ko[e]&&(zo[e]=or(e)),i}function Go(e,t){var i=t.$EV;i&&i[e]&&(0===--Ko[e]&&(document.removeEventListener(oo(e),zo[e]),zo[e]=null),i[e]=null)}function qo(e,t,i,n){if(qn(i))Uo(e,n)[e]=i;else if(to(i)){if(Co(t,i))return;Uo(e,n)[e]=i}else Go(e,n)}function Yo(e){return qn(e.composedPath)?e.composedPath()[0]:e.target}function Xo(e,t,i,n){var o=Yo(e);do{if(t&&o.disabled)return;var r=o.$EV;if(r){var a=r[i];if(a&&(n.dom=o,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}o=o.parentNode}while(!Jn(o))}function Jo(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function Qo(){return this.defaultPrevented}function er(){return this.cancelBubble}function tr(e){var t={dom:document};return e.isDefaultPrevented=Qo,e.isPropagationStopped=er,e.stopPropagation=Jo,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return t.dom}}),t}function ir(e){return function(t){0===t.button?Xo(t,!0,e,tr(t)):t.stopPropagation()}}function nr(e){return function(t){Xo(t,!1,e,tr(t))}}function or(e){var t="onClick"===e||"onDblClick"===e?ir(e):nr(e);return document.addEventListener(oo(e),t),t}function rr(e,t){var i=document.createElement("i");return i.innerHTML=t,i.innerHTML===e.innerHTML}function ar(e,t,i){if(e[t]){var n=e[t];n.event?n.event(n.data,i):n(i)}else{var o=t.toLowerCase();e[o]&&e[o](i)}}function sr(e,t){var i=function(i){var n=this.$V;if(n){var o=n.props||io,r=n.dom;if(Yn(e))ar(o,e,i);else for(var a=0;a<e.length;++a)ar(o,e[a],i);if(qn(t)){var s=this.$V,l=s.props||io;t(l,r,!1,s)}}};return Object.defineProperty(i,"wrapped",{configurable:!1,enumerable:!1,value:!0,writable:!1}),i}function lr(e,t,i){var n="$"+t,o=e[n];if(o){if(o[1].wrapped)return;e.removeEventListener(o[0],o[1]),e[n]=null}qn(i)&&(e.addEventListener(t,i),e[n]=[t,i])}function dr(e){return"checkbox"===e||"radio"===e}var ur=sr("onInput",fr),cr=sr(["onClick","onChange"],fr);function hr(e){e.stopPropagation()}function pr(e,t){dr(t.type)?(lr(e,"change",cr),lr(e,"click",hr)):lr(e,"input",ur)}function fr(e,t){var i=e.type,n=e.value,o=e.checked,r=e.multiple,a=e.defaultValue,s=!Un(n);i&&i!==t.type&&t.setAttribute("type",i),Un(r)||r===t.multiple||(t.multiple=r),Un(a)||s||(t.defaultValue=a+""),dr(i)?(s&&(t.value=n),Un(o)||(t.checked=o)):s&&t.value!==n?(t.defaultValue=n,t.value=n):Un(o)||(t.checked=o)}function gr(e,t){if("option"===e.type)mr(e,t);else{var i=e.children,n=e.flags;if(4&n)gr(i.$LI,t);else if(8&n)gr(i,t);else if(2===e.childFlags)gr(i,t);else if(12&e.childFlags)for(var o=0,r=i.length;o<r;++o)gr(i[o],t)}}function mr(e,t){var i=e.props||io,n=e.dom;n.value=i.value,i.value===t||zn(t)&&-1!==t.indexOf(i.value)?n.selected=!0:Un(t)&&Un(i.selected)||(n.selected=i.selected||!1)}hr.wrapped=!0;var _r=sr("onChange",yr);function vr(e){lr(e,"change",_r)}function yr(e,t,i,n){var o=Boolean(e.multiple);Un(e.multiple)||o===t.multiple||(t.multiple=o);var r=e.selectedIndex;-1===r&&(t.selectedIndex=-1);var a=n.childFlags;if(1!==a){var s=e.value;Xn(r)&&r>-1&&t.options[r]&&(s=t.options[r].value),i&&Un(s)&&(s=e.defaultValue),gr(n,s)}}var Cr,br,xr=sr("onInput",Sr),wr=sr("onChange");function Tr(e,t){lr(e,"input",xr),t.onChange&&lr(e,"change",wr)}function Sr(e,t,i){var n=e.value,o=t.value;if(Un(n)){if(i){var r=e.defaultValue;Un(r)||r===o||(t.defaultValue=r,t.value=r)}}else o!==n&&(t.defaultValue=n,t.value=n)}function Ir(e,t,i,n,o,r){64&e?fr(n,i):256&e?yr(n,i,o,t):128&e&&Sr(n,i,o),r&&(i.$V=t)}function Er(e,t,i){64&e?pr(t,i):256&e?vr(t):128&e&&Tr(t,i)}function Dr(e){return e.type&&dr(e.type)?!Un(e.checked):!Un(e.value)}function kr(){return{current:null}}function Or(e){e&&!xo(e,null)&&e.current&&(e.current=null)}function Ar(e,t,i){e&&(qn(e)||void 0!==e.current)&&i.push((function(){xo(e,t)||void 0===e.current||(e.current=t)}))}function Pr(e,t){Mr(e),fo(e,t)}function Mr(e){var t,i=e.flags,n=e.children;if(481&i){t=e.ref;var o=e.props;Or(t);var r=e.childFlags;if(!Jn(o))for(var a=Object.keys(o),s=0,l=a.length;s<l;s++){var d=a[s];jo[d]&&Go(d,e.dom)}12&r?Rr(n):2===r&&Mr(n)}else n&&(4&i?(qn(n.componentWillUnmount)&&n.componentWillUnmount(),Or(e.ref),n.$UN=!0,Mr(n.$LI)):8&i?(t=e.ref,!Un(t)&&qn(t.onComponentWillUnmount)&&t.onComponentWillUnmount(po(e,!0),e.props||io),Mr(n)):1024&i?Pr(n,e.ref):8192&i&&12&e.childFlags&&Rr(n))}function Rr(e){for(var t=0,i=e.length;t<i;++t)Mr(e[t])}function Br(e){e.textContent=""}function Vr(e,t,i){Rr(i),8192&t.flags?fo(t,e):Br(e)}function Fr(e){var t=e.event;return function(i){t(e.data,i)}}function Hr(e,t,i,n){if(to(i)){if(Co(t,i))return;i=Fr(i)}lr(n,oo(e),i)}function Lr(e,t,i){if(Un(t))i.removeAttribute("style");else{var n,o,r=i.style;if(Yn(t))r.cssText=t;else if(Un(e)||Yn(e))for(n in t)o=t[n],r.setProperty(n,o);else{for(n in t)o=t[n],o!==e[n]&&r.setProperty(n,o);for(n in e)Un(t[n])&&r.removeProperty(n)}}}function Nr(e,t,i,n){var o=e&&e.__html||"",r=t&&t.__html||"";o!==r&&(Un(r)||rr(n,r)||(Jn(i)||(12&i.childFlags?Rr(i.children):2===i.childFlags&&Mr(i.children),i.children=null,i.childFlags=1),n.innerHTML=r))}function Zr(e,t,i,n,o,r,a){switch(e){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":n.autofocus=!!i;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":n[e]=!!i;break;case"defaultChecked":case"value":case"volume":if(r&&"value"===e)break;var s=Un(i)?"":i;n[e]!==s&&(n[e]=s);break;case"style":Lr(t,i,n);break;case"dangerouslySetInnerHTML":Nr(t,i,a,n);break;default:jo[e]?qo(e,t,i,n):111===e.charCodeAt(0)&&110===e.charCodeAt(1)?Hr(e,t,i,n):Un(i)?n.removeAttribute(e):o&&$o[e]?n.setAttributeNS($o[e],e,i):n.setAttribute(e,i);break}}function $r(e,t,i,n,o){var r=!1,a=(448&t)>0;for(var s in a&&(r=Dr(i),r&&Er(t,n,i)),i)Zr(s,null,i[s],n,o,r,null);a&&Ir(t,e,n,i,!0,r)}function Wr(e,t,i){var n=Lo(e.render(t,e.state,i)),o=i;return qn(e.getChildContext)&&(o=eo(i,e.getChildContext())),e.$CX=o,n}function Kr(e,t,i,n,o,r){var a=new t(i,n),s=a.$N=Boolean(t.getDerivedStateFromProps||a.getSnapshotBeforeUpdate);if(a.$SVG=o,a.$L=r,e.children=a,a.$BS=!1,a.context=n,a.props===io&&(a.props=i),s)a.state=mo(a,i,a.state);else if(qn(a.componentWillMount)){a.$BR=!0,a.componentWillMount();var l=a.$PS;if(!Jn(l)){var d=a.state;if(Jn(d))a.state=l;else for(var u in l)d[u]=l[u];a.$PS=null}a.$BR=!1}return a.$LI=Wr(a,i,n),a}function zr(e,t){var i=e.props||io;return 32768&e.flags?e.type.render(i,e.ref,t):e.type(i,t)}function jr(e,t,i,n,o,r){var a=e.flags|=16384;481&a?Yr(e,t,i,n,o,r):4&a?Jr(e,t,i,n,o,r):8&a?(Qr(e,t,i,n,o,r),na(e,r)):512&a||16&a?qr(e,t,o):8192&a?Gr(e,i,t,n,o,r):1024&a&&Ur(e,i,t,o,r)}function Ur(e,t,i,n,o){jr(e.children,e.ref,t,!1,null,o);var r=Bo();qr(r,i,n),e.dom=r.dom}function Gr(e,t,i,n,o,r){var a=e.children,s=e.childFlags;12&s&&0===a.length&&(s=e.childFlags=2,a=e.children=Bo()),2===s?jr(a,i,t,n,o,r):Xr(a,i,t,n,o,r)}function qr(e,t,i){var n=e.dom=document.createTextNode(e.children);Jn(t)||ao(t,n,i)}function Yr(e,t,i,n,o,r){var a=e.flags,s=e.props,l=e.className,d=e.childFlags,u=e.dom=so(e.type,n=n||(32&a)>0),c=e.children;if(Un(l)||""===l||(n?u.setAttribute("class",l):u.className=l),16===d)yo(u,c);else if(1!==d){var h=n&&"foreignObject"!==e.type;2===d?(16384&c.flags&&(e.children=c=Ro(c)),jr(c,u,i,h,null,r)):8!==d&&4!==d||Xr(c,u,i,h,null,r)}Jn(t)||ao(t,u,o),Jn(s)||$r(e,a,s,u,n),Ar(e.ref,u,r)}function Xr(e,t,i,n,o,r){for(var a=0;a<e.length;++a){var s=e[a];16384&s.flags&&(e[a]=s=Ro(s)),jr(s,t,i,n,o,r)}}function Jr(e,t,i,n,o,r){var a=Kr(e,e.type,e.props||io,i,n,r);jr(a.$LI,t,a.$CX,n,o,r),ta(e.ref,a,r)}function Qr(e,t,i,n,o,r){jr(e.children=Lo(zr(e,i)),t,i,n,o,r)}function ea(e){return function(){e.componentDidMount()}}function ta(e,t,i){Ar(e,t,i),qn(t.componentDidMount)&&i.push(ea(t))}function ia(e,t){return function(){e.onComponentDidMount(po(t,!0),t.props||io)}}function na(e,t){var i=e.ref;Un(i)||(xo(i.onComponentWillMount,e.props||io),qn(i.onComponentDidMount)&&t.push(ia(i,e)))}function oa(e,t,i,n,o,r){Mr(e),0!==(t.flags&e.flags&2033)?(jr(t,null,n,o,null,r),lo(i,t.dom,e.dom)):(jr(t,i,n,o,po(e,!0),r),fo(e,i))}function ra(e,t,i,n,o,r,a){var s=t.flags|=16384;e.flags!==s||e.type!==t.type||e.key!==t.key||2048&s?16384&e.flags?oa(e,t,i,n,o,a):jr(t,i,n,o,r,a):481&s?ua(e,t,n,o,s,a):4&s?ga(e,t,i,n,o,r,a):8&s?ma(e,t,i,n,o,r,a):16&s?_a(e,t):512&s?t.dom=e.dom:8192&s?la(e,t,i,n,o,a):da(e,t,n,a)}function aa(e,t,i){e!==t&&(""!==e?i.firstChild.nodeValue=t:yo(i,t))}function sa(e,t){e.textContent!==t&&(e.textContent=t)}function la(e,t,i,n,o,r){var a=e.children,s=t.children,l=e.childFlags,d=t.childFlags,u=null;12&d&&0===s.length&&(d=t.childFlags=2,s=t.children=Bo());var c=0!==(2&d);if(12&l){var h=a.length;(8&l&&8&d||c||!c&&s.length>h)&&(u=po(a[h-1],!1).nextSibling)}ha(l,d,a,s,i,n,o,u,e,r)}function da(e,t,i,n){var o=e.ref,r=t.ref,a=t.children;if(ha(e.childFlags,t.childFlags,e.children,a,o,i,!1,null,e,n),t.dom=e.dom,o!==r&&!Gn(a)){var s=a.dom;uo(o,s),ro(r,s)}}function ua(e,t,i,n,o,r){var a,s=t.dom=e.dom,l=e.props,d=t.props,u=!1,c=!1;if(n=n||(32&o)>0,l!==d){var h=l||io;if(a=d||io,a!==io)for(var p in u=(448&o)>0,u&&(c=Dr(a)),a){var f=h[p],g=a[p];f!==g&&Zr(p,f,g,s,n,c,e)}if(h!==io)for(var m in h)Un(a[m])&&!Un(h[m])&&Zr(m,h[m],null,s,n,c,e)}var _=t.children,v=t.className;e.className!==v&&(Un(v)?s.removeAttribute("class"):n?s.setAttribute("class",v):s.className=v),4096&o?sa(s,_):ha(e.childFlags,t.childFlags,e.children,_,s,i,n&&"foreignObject"!==t.type,null,e,r),u&&Ir(o,t,s,a,!1,c);var y=t.ref,C=e.ref;C!==y&&(Or(C),Ar(y,s,r))}function ca(e,t,i,n,o,r){Mr(e),Xr(t,i,n,o,po(e,!0),r),fo(e,i)}function ha(e,t,i,n,o,r,a,s,l,d){switch(e){case 2:switch(t){case 2:ra(i,n,o,r,a,s,d);break;case 1:Pr(i,o);break;case 16:Mr(i),yo(o,n);break;default:ca(i,n,o,r,a,d);break}break;case 1:switch(t){case 2:jr(n,o,r,a,s,d);break;case 1:break;case 16:yo(o,n);break;default:Xr(n,o,r,a,s,d);break}break;case 16:switch(t){case 16:aa(i,n,o);break;case 2:Br(o),jr(n,o,r,a,s,d);break;case 1:Br(o);break;default:Br(o),Xr(n,o,r,a,s,d);break}break;default:switch(t){case 16:Rr(i),yo(o,n);break;case 2:Vr(o,l,i),jr(n,o,r,a,s,d);break;case 1:Vr(o,l,i);break;default:var u=0|i.length,c=0|n.length;0===u?c>0&&Xr(n,o,r,a,s,d):0===c?Vr(o,l,i):8===t&&8===e?ya(i,n,o,r,a,u,c,s,l,d):va(i,n,o,r,a,u,c,s,d);break}break}}function pa(e,t,i,n,o){o.push((function(){e.componentDidUpdate(t,i,n)}))}function fa(e,t,i,n,o,r,a,s,l){var d=e.state,u=e.props,c=Boolean(e.$N),h=qn(e.shouldComponentUpdate);if(c&&(t=mo(e,i,t!==d?eo(d,t):t)),a||!h||h&&e.shouldComponentUpdate(i,t,o)){!c&&qn(e.componentWillUpdate)&&e.componentWillUpdate(i,t,o),e.props=i,e.state=t,e.context=o;var p=null,f=Wr(e,i,o);c&&qn(e.getSnapshotBeforeUpdate)&&(p=e.getSnapshotBeforeUpdate(u,d)),ra(e.$LI,f,n,e.$CX,r,s,l),e.$LI=f,qn(e.componentDidUpdate)&&pa(e,u,d,p,l)}else e.props=i,e.state=t,e.context=o}function ga(e,t,i,n,o,r,a){var s=t.children=e.children;if(!Jn(s)){s.$L=a;var l=t.props||io,d=t.ref,u=e.ref,c=s.state;if(!s.$N){if(qn(s.componentWillReceiveProps)){if(s.$BR=!0,s.componentWillReceiveProps(l,n),s.$UN)return;s.$BR=!1}Jn(s.$PS)||(c=eo(c,s.$PS),s.$PS=null)}fa(s,c,l,i,n,o,!1,r,a),u!==d&&(Or(u),Ar(d,s,a))}}function ma(e,t,i,n,o,r,a){var s=!0,l=t.props||io,d=t.ref,u=e.props,c=!Un(d),h=e.children;if(c&&qn(d.onComponentShouldUpdate)&&(s=d.onComponentShouldUpdate(u,l)),!1!==s){c&&qn(d.onComponentWillUpdate)&&d.onComponentWillUpdate(u,l);var p=Lo(zr(t,n));ra(h,p,i,n,o,r,a),t.children=p,c&&qn(d.onComponentDidUpdate)&&d.onComponentDidUpdate(u,l)}else t.children=h}function _a(e,t){var i=t.children,n=t.dom=e.dom;i!==e.children&&(n.nodeValue=i)}function va(e,t,i,n,o,r,a,s,l){for(var d,u,c=r>a?a:r,h=0;h<c;++h)d=t[h],u=e[h],16384&d.flags&&(d=t[h]=Ro(d)),ra(u,d,i,n,o,s,l),e[h]=d;if(r<a)for(h=c;h<a;++h)d=t[h],16384&d.flags&&(d=t[h]=Ro(d)),jr(d,i,n,o,s,l);else if(r>a)for(h=c;h<r;++h)Pr(e[h],i)}function ya(e,t,i,n,o,r,a,s,l,d){var u,c,h=r-1,p=a-1,f=0,g=e[f],m=t[f];e:{while(g.key===m.key){if(16384&m.flags&&(t[f]=m=Ro(m)),ra(g,m,i,n,o,s,d),e[f]=m,++f,f>h||f>p)break e;g=e[f],m=t[f]}g=e[h],m=t[p];while(g.key===m.key){if(16384&m.flags&&(t[p]=m=Ro(m)),ra(g,m,i,n,o,s,d),e[h]=m,h--,p--,f>h||f>p)break e;g=e[h],m=t[p]}}if(f>h){if(f<=p){u=p+1,c=u<a?po(t[u],!0):s;while(f<=p)m=t[f],16384&m.flags&&(t[f]=m=Ro(m)),++f,jr(m,i,n,o,c,d)}}else if(f>p)while(f<=h)Pr(e[f++],i);else Ca(e,t,n,r,a,h,p,f,i,o,s,l,d)}function Ca(e,t,i,n,o,r,a,s,l,d,u,c,h){var p,f,g,m=0,_=s,v=s,y=r-s+1,C=a-s+1,b=new Int32Array(C+1),x=y===n,w=!1,T=0,S=0;if(o<4||(y|C)<32)for(m=_;m<=r;++m)if(p=e[m],S<C){for(s=v;s<=a;s++)if(f=t[s],p.key===f.key){if(b[s-v]=m+1,x){x=!1;while(_<m)Pr(e[_++],l)}T>s?w=!0:T=s,16384&f.flags&&(t[s]=f=Ro(f)),ra(p,f,l,i,d,u,h),++S;break}!x&&s>a&&Pr(p,l)}else x||Pr(p,l);else{var I={};for(m=v;m<=a;++m)I[t[m].key]=m;for(m=_;m<=r;++m)if(p=e[m],S<C)if(s=I[p.key],void 0!==s){if(x){x=!1;while(m>_)Pr(e[_++],l)}b[s-v]=m+1,T>s?w=!0:T=s,f=t[s],16384&f.flags&&(t[s]=f=Ro(f)),ra(p,f,l,i,d,u,h),++S}else x||Pr(p,l);else x||Pr(p,l)}if(x)Vr(l,c,e),Xr(t,l,i,d,u,h);else if(w){var E=xa(b);for(s=E.length-1,m=C-1;m>=0;m--)0===b[m]?(T=m+v,f=t[T],16384&f.flags&&(t[T]=f=Ro(f)),g=T+1,jr(f,l,i,d,g<o?po(t[g],!0):u,h)):s<0||m!==E[s]?(T=m+v,f=t[T],g=T+1,go(f,l,g<o?po(t[g],!0):u)):s--}else if(S!==C)for(m=C-1;m>=0;m--)0===b[m]&&(T=m+v,f=t[T],16384&f.flags&&(t[T]=f=Ro(f)),g=T+1,jr(f,l,i,d,g<o?po(t[g],!0):u,h))}var ba=0;function xa(e){var t=0,i=0,n=0,o=0,r=0,a=0,s=0,l=e.length;for(l>ba&&(ba=l,Cr=new Int32Array(l),br=new Int32Array(l));i<l;++i)if(t=e[i],0!==t){if(n=Cr[o],e[n]<t){br[i]=n,Cr[++o]=i;continue}r=0,a=o;while(r<a)s=r+a>>1,e[Cr[s]]<t?r=s+1:a=s;t<e[Cr[r]]&&(r>0&&(br[i]=Cr[r-1]),Cr[r]=i)}r=o+1;var d=new Int32Array(r);a=Cr[r-1];while(r-- >0)d[r]=a,a=br[a],Cr[r]=0;return d}var wa="undefined"!==typeof document;function Ta(e,t,i,n){var o=[],r=t.$V;_o.v=!0,Un(r)?Un(e)||(16384&e.flags&&(e=Ro(e)),jr(e,t,n,!1,null,o),t.$V=e,r=e):Un(e)?(Pr(r,t),t.$V=null):(16384&e.flags&&(e=Ro(e)),ra(r,e,t,n,!1,null,o),r=t.$V=e),co(o),_o.v=!1,qn(i)&&i(),qn(vo.renderComplete)&&vo.renderComplete(r,t)}function Sa(e,t,i,n){void 0===i&&(i=null),void 0===n&&(n=io),Ta(e,t,i,n)}wa&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var Ia=[],Ea="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},Da=!1;function ka(e,t,i,n){var o=e.$PS;if(qn(t)&&(t=t(o?eo(e.state,o):e.state,e.props,e.context)),Un(o))e.$PS=t;else for(var r in t)o[r]=t[r];if(e.$BR)qn(i)&&e.$L.push(i.bind(e));else{if(!_o.v&&0===Ia.length)return Pa(e,n),void(qn(i)&&i.call(e));if(-1===Ia.indexOf(e)&&Ia.push(e),n&&(e.$F=!0),Da||(Da=!0,Ea(Aa)),qn(i)){var a=e.$QU;a||(a=e.$QU=[]),a.push(i)}}}function Oa(e){for(var t=e.$QU,i=0;i<t.length;++i)t[i].call(e);e.$QU=null}function Aa(){var e;Da=!1;while(e=Ia.shift())if(!e.$UN){var t=e.$F;e.$F=!1,Pa(e,t),e.$QU&&Oa(e)}}function Pa(e,t){if(t||!e.$BR){var i=e.$PS;e.$PS=null;var n=[];_o.v=!0,fa(e,eo(e.state,i),e.props,po(e.$LI,!0).parentNode,e.context,e.$SVG,t,null,n),co(n),_o.v=!1}else e.state=e.$PS,e.$PS=null}var Ma=function(e,t){this.state=null,this.$BR=!1,this.$BS=!0,this.$PS=null,this.$LI=null,this.$UN=!1,this.$CX=null,this.$QU=null,this.$N=!1,this.$L=null,this.$SVG=!1,this.$F=!1,this.props=e||io,this.context=t||io};Ma.prototype.forceUpdate=function(e){this.$UN||ka(this,{},e,!0)},Ma.prototype.setState=function(e,t){this.$UN||this.$BS||ka(this,e,t,!1)},Ma.prototype.render=function(e,t,i){return null};var Ra=i(80736);const Ba={lockCount:0,lock(){this.lockCount++},callbacks:[],callEffects(){if(this.lockCount--,this.lockCount<0)throw new Error("Unexpected Effect Call");if(0===this.lockCount){const e=this.callbacks;this.callbacks=[],e.forEach((e=>e()))}}},Va=(e,t)=>{const i=e instanceof Object&&t instanceof Object;if(!i)return e===t;const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;const r=n.some((i=>e[i]!==t[i]));return!r};class Fa extends Ma{constructor(){super(...arguments),this._pendingContext=this.context}componentWillReceiveProps(e,t){this._pendingContext=null!==t&&void 0!==t?t:{}}shouldComponentUpdate(e,t){return!Va(this.props,e)||!Va(this.state,t)||!Va(this.context,this._pendingContext)}}class Ha extends Fa{constructor(){super(...arguments),this._effects=[]}createEffects(){return[]}updateEffects(){}componentWillMount(){Ba.lock()}componentWillUpdate(e,t,i){Ba.lock()}componentDidMount(){Ba.callbacks.push((()=>{this._effects=this.createEffects()})),Ba.callEffects()}componentDidUpdate(){Ba.callbacks.push((()=>this.updateEffects())),Ba.callEffects()}destroyEffects(){this._effects.forEach((e=>e.dispose()))}componentWillUnmount(){this.destroyEffects()}}class La extends Ha{constructor(){super(...arguments),this.vDomElement=null}vDomUpdateClasses(){const e=this.vDomElement,t=e.className.length?e.className.split(" "):[],i=t.filter((t=>e.dxClasses.previous.indexOf(t)<0)),n=e.dxClasses.previous.filter((e=>t.indexOf(e)<0));i.forEach((t=>{const i=e.dxClasses.removed.indexOf(t);i>-1?e.dxClasses.removed.splice(i,1):e.dxClasses.added.push(t)})),n.forEach((t=>{const i=e.dxClasses.added.indexOf(t);i>-1?e.dxClasses.added.splice(i,1):e.dxClasses.removed.push(t)}))}componentDidMount(){const e=po(this.$LI,!0);this.vDomElement=e,super.componentDidMount(),e.dxClasses=e.dxClasses||{removed:[],added:[],previous:[]},e.dxClasses.previous=(null===e||void 0===e?void 0:e.className.length)?e.className.split(" "):[]}componentDidUpdate(){super.componentDidUpdate();const e=this.vDomElement;null!==e&&(e.dxClasses.added.forEach((t=>e.classList.add(t))),e.dxClasses.removed.forEach((t=>e.classList.remove(t))),e.dxClasses.previous=e.className.length?e.className.split(" "):[])}shouldComponentUpdate(e,t){const i=super.shouldComponentUpdate(e,t);return i&&this.vDomUpdateClasses(),i}}let Na=0;const Za=function(e){const t=Na++;return{id:t,defaultValue:e,Provider:class extends Ma{getChildContext(){return Object.assign(Object.assign({},this.context),{[t]:this.props.value||e})}render(){return this.props.children}}}};class $a{constructor(e,t){this.dependency=t,this.effect=e,this.destroy=e()}update(e){const t=this.dependency;e&&(this.dependency=e),e&&!e.some(((e,i)=>t[i]!==e))||(this.dispose(),this.destroy=this.effect())}dispose(){this.destroy&&this.destroy()}}const Wa=()=>new $a((()=>{Aa()}),[]),Ka="a runtime error occured! Use Inferno in development environment to find the error.";function za(e){return void 0===e||null===e}function ja(e){return null===e||!1===e||!0===e||void 0===e}function Ua(e){return"function"===typeof e}function Ga(e){return null===e}function qa(e){throw e||(e=Ka),new Error(`Inferno Error: ${e}`)}function Ya(e,t){const i=document.createElement("i");return i.innerHTML=t,i.innerHTML===e.innerHTML}function Xa(e){let t,i;while(e){if(t=e.flags,2033&t)return e.dom;i=e.children,e=8192&t?2===e.childFlags?i:i[i.length-1]:4&t?i.$LI:i}return null}function Ja(e,t){return Boolean(t&&t.dangerouslySetInnerHTML&&t.dangerouslySetInnerHTML.__html&&Ya(e,t.dangerouslySetInnerHTML.__html))}function Qa(e,t,i,n,o,r,a){const s=e.type,l=e.ref,d=e.props||io;let u;if(r){const r=Kr(e,s,d,n,o,a),c=r.$LI;u=os(c,t,i,r.$CX,o,a),ta(l,r,a)}else{const r=Lo(zr(e,n));u=os(r,t,i,n,o,a),e.children=r,na(e,a)}return u}function es(e,t,i,n,o,r){const a=e.childFlags,s=e.children,l=e.props,d=e.flags;if(1!==a){if(2===a)Ga(i)?jr(s,t,n,o,null,r):(i=os(s,t,i,n,o,r),i=i?i.nextSibling:null);else if(16===a)Ga(i)?t.appendChild(document.createTextNode(s)):1!==t.childNodes.length||3!==i.nodeType?t.textContent=s:i.nodeValue!==s&&(i.nodeValue=s),i=null;else if(12&a){let e=!1;for(let a=0,l=s.length;a<l;++a){const l=s[a];Ga(i)||e&&(16&l.flags)>0?jr(l,t,n,o,i,r):(i=os(l,t,i,n,o,r),i=i?i.nextSibling:null),e=(16&l.flags)>0}}if(0===(8192&d)){let e=null;while(i)e=i.nextSibling,t.removeChild(i),i=e}}else Ga(t.firstChild)||Ja(t,l)||(t.textContent="",448&d&&(t.defaultValue=""))}function ts(e,t,i,n,o,r){const a=e.props,s=e.className,l=e.flags,d=e.ref;return o=o||(32&l)>0,1!==i.nodeType?(Yr(e,null,n,o,null,r),t.replaceChild(e.dom,i)):(e.dom=i,es(e,i,i.firstChild,n,o,r),Ga(a)||$r(e,l,a,i,o),za(s)?""!==i.className&&i.removeAttribute("class"):o?i.setAttribute("class",s):i.className=s,Ar(d,i,r)),e.dom}function is(e,t,i){if(3!==i.nodeType)t.replaceChild(e.dom=document.createTextNode(e.children),i);else{const t=e.children;i.nodeValue!==t&&(i.nodeValue=t),e.dom=i}return e.dom}function ns(e,t,i,n,o,r){const a=e.children;return 2===e.childFlags?(is(a,t,i),a.dom):(es(e,t,i,n,o,r),Xa(a[a.length-1]))}function os(e,t,i,n,o,r){const a=e.flags|=16384;return 14&a?Qa(e,t,i,n,o,(4&a)>0,r):481&a?ts(e,t,i,n,o,r):16&a?is(e,t,i):512&a?e.dom=i:8192&a?ns(e,t,i,n,o,r):(qa(),null)}function rs(e,t,i){let n=t.firstChild;if(Ga(n))Sa(e,t,i);else{const i=[];ja(e)||(n=os(e,t,n,{},!1,i));while(n&&(n=n.nextSibling))t.removeChild(n);if(i.length>0){let e;while(void 0!==(e=i.shift()))e()}}t.$V=e,Ua(i)&&i()}function as(e){return void 0===e||null===e}function ss(e){return"string"===typeof e}function ls(e){return void 0===e}var ds={onComponentDidMount:1,onComponentDidUpdate:1,onComponentShouldUpdate:1,onComponentWillMount:1,onComponentWillUnmount:1,onComponentWillUpdate:1};function us(e,t,i){var n,o,r=arguments,a=null,s=null,l=null,d=0,u=arguments.length-2;if(1===u)n=i;else if(u>1){n=[];while(u-- >0)n[u]=r[u+2]}if(!ss(e)){if(d=2,ls(n)||(t||(t={}),t.children=n),!as(t))for(var c in o={},t)"key"===c?s=t.key:"ref"===c?a=t.ref:1===ds[c]?(a||(a={}),a[c]=t[c]):o[c]=t[c];return ko(d,e,o,s,a)}if(d=Fo(e),!as(t))for(var h in o={},t)"className"===h||"class"===h?l=t[h]:"key"===h?s=t.key:"children"===h&&ls(n)?n=t.children:"ref"===h?a=t.ref:("contenteditable"===h&&(d|=4096),o[h]=t[h]);return 8192&d?Ao(1===u?[n]:n,0,s):So(d,e,l,n,0,o,s,a)}const cs=e=>{var t,i;return(null===(t=e.container)||void 0===t?void 0:t.get(0))||(null===(i=e.item)||void 0===i?void 0:i.get(0))};function hs(e,t,i){setTimeout((()=>{Sa(us(e,t),cs(t))}),0)}const ps=(e,t,i)=>{const n=t[e];return!!n&&"string"!==typeof n},fs=new Set(["animationIterationCount","borderImageOutset","borderImageSlice","border-imageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","fillOpacity","flex","flexGrow","flexNegative","flexOrder","flexPositive","flexShrink","floodOpacity","fontWeight","gridColumn","gridRow","lineClamp","lineHeight","opacity","order","orphans","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","zIndex","zoom"]),gs=e=>"number"===typeof e||!Number.isNaN(Number(e)),ms=(e,t)=>fs.has(e)?t:`${t}px`,_s=/[A-Z]/g,vs=e=>e.replace(_s,"-$&").toLowerCase();function ys(e){if(e instanceof Object)return Object.entries(e).reduce(((e,[t,i])=>(e[vs(t)]=gs(i)?ms(t,i):i,e)),{})}var Cs=i(27154),bs=e=>{var{parentNode:t}=e;t&&((0,le.nK)(e),t.$V=e.$V,Sa(null,t),t.appendChild(e),e.innerHTML="",delete t.$V),delete e.$V},xs=(0,Cs.Z)({createElement:(e,t)=>us(e,t),remove:bs,onAfterRender:()=>{Ba.callEffects()},onPreRender:()=>{Ba.lock()},render:(e,t,i,n)=>{if(n)Sa(us(e,t),i);else{var{parentNode:o}=i,r=null===i||void 0===i?void 0:i.nextSibling,a=ke["default"].createElement("div");a.appendChild(i);var s=ke["default"].createDocumentFragment().appendChild(a),l=!!i.$V;l&&bs(i),rs(us(e,t),s),i.$V=s.$V,o&&o.insertBefore(i,r)}}}),ws=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every((i=>e[i]===t[i])),Ts=(e,t)=>{(0,E.S6)(t,((t,i)=>{var n=!1;(0,E.S6)(e,((e,t)=>{i===t&&(n=!0)})),!n&&i.parentNode&&i.parentNode.removeChild(i)}))};class Ss extends Ha{constructor(e){super(e),this.renderTemplate=this.renderTemplate.bind(this)}renderTemplate(){var e,t=po(this.$LI,!0),i=t.parentNode,n=(0,o.Z)(i),r=n.contents(),{data:a,index:s}=null!==(e=this.props.model)&&void 0!==e?e:{data:{}};a&&Object.keys(a).forEach((e=>{a[e]&&ke["default"].isNode(a[e])&&(a[e]=(0,se.u)((0,o.Z)(a[e])))}));var l=(0,o.Z)(this.props.template.render((0,hn.Z)({container:(0,se.u)(n),transclude:this.props.transclude},{renovated:this.props.renovated},this.props.transclude?{}:{model:a},!this.props.transclude&&Number.isFinite(s)?{index:s}:{})));return(0,M.dL)((0,o.Z)(t),l),()=>{Ts(r,n.contents()),i.appendChild(t)}}shouldComponentUpdate(e){var{model:t,template:i}=this.props,{model:n,template:o}=e,r=i===o;if(!r)return!0;if((0,l.$K)(t)&&(0,l.$K)(n)){var{data:a,index:s}=t,{data:d,index:u}=n;return s!==u||!ws(a,d)}var c=t===n;return!c}createEffects(){return[new $a(this.renderTemplate,[this.props.template,this.props.model])]}updateEffects(){this._effects[0].update([this.props.template,this.props.model])}componentWillUnmount(){}render(){return null}}function Is(e){return Array.isArray(e)?[...e]:(0,hn.Z)({},e)}function Es(e,t,i){var n=i.length>0&&t&&e!==t?Is(t):Is(e),o=i[0];return i.length>1?n[o]=Es(e[o],null===t||void 0===t?void 0:t[o],i.slice(1)):o&&((0,l.PO)(e[o])?n[o]=Is(e[o]):n[o]=e[o]),n}function Ds(e,t,i,n){var o=t[i],a=e[i],s=e;(0,l.PO)(o)||i!==n&&Array.isArray(o)?s[i]=Es(o,a,(0,r.Zw)(n).slice(1)):s[i]=o}var ks=(e,t)=>i=>{Object.prototype.hasOwnProperty.call(e,i)&&void 0===e[i]&&(e[i]=t(i))};class Os extends S.Z{constructor(e,t){super(e,t),this._shouldRaiseContentReady=!1,this.validateKeyDownHandler()}get _propsInfo(){return{allowNull:[],twoWay:[],elements:[],templates:[],props:[]}}validateKeyDownHandler(){var e=this.getSupportedKeyNames(),t=e.length>0,i="function"===typeof this._viewComponent.prototype.keyDown;if(t&&!i)throw Error("Component's declaration must have 'keyDown' method.")}get viewRef(){var e;return null===(e=this._viewRef)||void 0===e?void 0:e.current}_checkContentReadyOption(e){var t=this._getContentReadyOptions().reduce(((e,t)=>(e[t]=!0,e)),{});return this._checkContentReadyOption=e=>!!t[e],this._checkContentReadyOption(e)}_getContentReadyOptions(){return["rtlEnabled"]}_fireContentReady(){this._actionsMap.onContentReady({})}_getDefaultOptions(){return(0,a.l)(!0,super._getDefaultOptions(),this._viewComponent.defaultProps,this._propsInfo.twoWay.reduce(((e,t)=>{var[i,n,o]=t;return(0,hn.Z)({},e,{[i]:this._viewComponent.defaultProps[n],[o]:e=>this.option(i,e)})}),{}),this._propsInfo.templates.reduce(((e,t)=>(0,hn.Z)({},e,{[t]:null})),{}))}_getUnwrappedOption(){var e={};return Object.keys(this.option()).forEach((t=>{e[t]=this.option(t)})),e}_initializeComponent(){var e;super._initializeComponent(),null===(e=this._templateManager)||void 0===e||e.addDefaultTemplates(this.getDefaultTemplates());var t=this._getUnwrappedOption();this._props=this._optionsWithDefaultTemplates(t),this._propsInfo.templates.forEach((e=>{this._componentTemplates[e]=this._createTemplateComponent(this._props[e])})),Object.keys(this._getActionConfigsFull()).forEach((e=>this._addAction(e))),this._viewRef=kr(),this.defaultKeyHandlers=this._createDefaultKeyHandlers()}_initMarkup(){var e=this.getProps();this._renderWrapper(e)}_renderWrapper(e){var t=this.$element()[0];this._isNodeReplaced||xs.onPreRender(),xs.render(this._viewComponent,e,t,this._isNodeReplaced),this._isNodeReplaced||(this._isNodeReplaced=!0,xs.onAfterRender(),this._shouldRaiseContentReady=!0),this._shouldRaiseContentReady&&(this._fireContentReady(),this._shouldRaiseContentReady=!1)}_silent(e,t){this._options.silent(e,t)}_render(){}_removeWidget(){xs.remove(this.$element()[0])}_dispose(){this._removeWidget(),super._dispose()}get elementAttr(){var e=this.$element()[0];if(!this._elementAttr){var{attributes:t}=e,i=Array.from(t).filter((e=>{var i;return!this._propsInfo.templates.includes(e.name)&&(null===(i=t[e.name])||void 0===i?void 0:i.specified)})).reduce(((t,i)=>{var{name:n,value:o}=i,r=t,a=n in e;return r[n]=""===o&&a?e[n]:o,r}),{});this._elementAttr=i,this._storedClasses=e.getAttribute("class")||""}for(var n=e.style,o={},r=0;r<n.length;r+=1)o[n[r]]=n.getPropertyValue(n[r]);return this._elementAttr.style=o,this._elementAttr.class=this._storedClasses,this._elementAttr}_getAdditionalActionConfigs(){return{onContentReady:{excludeValidators:["disabled","readOnly"]}}}_getAdditionalProps(){return[]}_patchOptionValues(e){var{allowNull:t,elements:i,props:n,twoWay:o}=this._propsInfo,r=Object.keys(this._viewComponent.defaultProps),a=this._getDefaultOptions(),{children:s,onKeyboardHandled:d,ref:u}=e,c=d?(e,t)=>{d(t)}:void 0,h={ref:u,children:s,onKeyDown:c};return[...n,...this._getAdditionalProps()].forEach((t=>{Object.prototype.hasOwnProperty.call(e,t)&&(h[t]=e[t])})),t.forEach(ks(h,(()=>null))),r.forEach(ks(h,(e=>a[e]))),o.forEach((e=>{var[t,i]=e;ks(h,(()=>a[i]))(t)})),i.forEach((e=>{if(e in h){var t=h[e];(0,l.ZU)(t)&&(h[e]=this._patchElementParam(t))}})),h}getSupportedKeyNames(){return[]}prepareStyleProp(e){return"string"===typeof e.style?(0,hn.Z)({},e,{style:{},cssText:e.style}):e}getProps(){var e,t,{elementAttr:i}=this.option(),n=this._patchOptionValues((0,hn.Z)({},this._props,{ref:this._viewRef,children:this._extractDefaultSlot(),aria:this._aria}));return this._propsInfo.templates.forEach((e=>{n[e]=this._componentTemplates[e]})),this.prepareStyleProp((0,hn.Z)({},n,this.elementAttr,i,{className:[...(null!==(e=this.elementAttr.class)&&void 0!==e?e:"").split(" "),...(null!==(t=null===i||void 0===i?void 0:i.class)&&void 0!==t?t:"").split(" ")].filter(((e,t,i)=>e&&i.indexOf(e)===t)).join(" ").trim(),class:""},this._actionsMap))}_getActionConfigs(){return{}}_getActionConfigsFull(){return(0,hn.Z)({},this._getActionConfigs(),this._getAdditionalActionConfigs())}getDefaultTemplates(){var e=Object.values(this._templatesInfo),t={};return e.forEach((e=>{t[e]="dx-renovation-template-mock"})),t}get _templatesInfo(){return{}}_optionsWithDefaultTemplates(e){var t=Object.entries(this._templatesInfo).reduce(((t,i)=>{var n,[o,r]=i;return(0,hn.Z)({},t,{[o]:null!==(n=e[o])&&void 0!==n?n:r})}),{});return(0,hn.Z)({},e,t)}_init(){super._init(),this.customKeyHandlers={},this._actionsMap={},this._aria={},this._componentTemplates={}}_createDefaultKeyHandlers(){var e={},t=this.getSupportedKeyNames();return t.forEach((t=>{e[t]=e=>this.viewRef.keyDown(Ra.Z.createKeyDownOptions(e))})),e}_addAction(e,t){var i=t;if(!i){var n=this._createActionByOption(e,this._getActionConfigsFull()[e]);i=e=>(Object.keys(e).forEach((t=>{(0,l.$K)(e[t])&&ke["default"].isNode(e[t])&&(e[t]=(0,se.u)((0,o.Z)(e[t])))})),n(e))}this._actionsMap[e]=i}_optionChanged(e){var{fullName:t,name:i,previousValue:n,value:o}=e;Ds(this._props,this.option(),i,t),this._propsInfo.templates.includes(i)&&o!==n&&(this._componentTemplates[i]=this._createTemplateComponent(o)),i&&this._getActionConfigsFull()[i]&&this._addAction(i),this._shouldRaiseContentReady=this._shouldRaiseContentReady||this._checkContentReadyOption(t),super._optionChanged(e),this._invalidate()}_extractDefaultSlot(){return this.option("_hasAnonymousTemplateContent")?xs.createElement(Ss,{template:this._getTemplate(this._templateManager.anonymousTemplateName),transclude:!0,renovated:!0}):null}_createTemplateComponent(e){if(e){var t=this._getTemplate(e);if(!(0,l.HD)(t)||"dx-renovation-template-mock"!==t)return e=>xs.createElement(Ss,{template:t,model:e})}}_wrapKeyDownHandler(e){return t=>{var{keyName:i,originalEvent:n,which:o}=t,r=this.customKeyHandlers,a=r[i]||r[o];if(void 0!==a){var s=a.bind(this),l=s(n,t);if(!l)return n.cancel=!0,n}return null===e||void 0===e?void 0:e(n,t)}}_toPublicElement(e){return(0,se.u)((0,o.Z)(e))}_patchElementParam(e){try{var t=(0,o.Z)(e),i=null===t||void 0===t?void 0:t.get(0);return null!==i&&void 0!==i&&i.nodeType?i:e}catch(n){return e}}repaint(){this._isNodeReplaced=!1,this._shouldRaiseContentReady=!0,this._removeWidget(),this._refresh()}_supportedKeys(){return(0,hn.Z)({},this.defaultKeyHandlers,this.customKeyHandlers)}registerKeyHandler(e,t){this.customKeyHandlers[e]=t}setAria(e,t){this._aria[e]=t,this._initMarkup()}}Os.IS_RENOVATED_WIDGET=!1,Os.IS_RENOVATED_WIDGET=!0;var As="dx-icon",Ps="dx-svg-icon",Ms=e=>!(!e||"string"!==typeof e)&&(/^\s*<svg[^>]*>(.|\r?\n)*?<\/svg>\s*$/i.test(e)?"svg":/data:.*base64|\.|[^<\s]\/{1,1}/.test(e)?"image":/^[\w-_]+$/.test(e)?"dxIcon":!!/^\s?([\w-_]\s?)+$/.test(e)&&"fontIcon"),Rs=e=>{switch(Ms(e)){case"image":return(0,o.Z)("<img>").attr("src",e).addClass(As);case"fontIcon":return(0,o.Z)("<i>").addClass("".concat(As," ").concat(e));case"dxIcon":return(0,o.Z)("<i>").addClass("".concat(As," ").concat(As,"-").concat(e));case"svg":return(0,o.Z)("<i>").addClass("".concat(As," ").concat(Ps)).append(e);default:return null}};class Bs extends Os{get _validationGroupConfig(){return Kn.getGroupConfig(this._findGroup())}getDefaultTemplateNames(){return["content"]}getSupportedKeyNames(){return["space","enter"]}getProps(){var e=super.getProps();e.onClick=e=>{var{event:t}=e;this._clickAction({event:t,validationGroup:this._validationGroupConfig})};var t=Ms(e.icon);return"svg"===t&&(e.iconTemplate=this._createTemplateComponent((()=>e.icon))),e}get _templatesInfo(){return{template:"content"}}_toggleActiveState(e,t){var i=this.viewRef;t?i.activate():i.deactivate()}_getSubmitAction(){var e=!0,t="valid";return this._createAction((i=>{var{event:n,submitInput:o}=i;if(e){var r=this._validationGroupConfig;if(void 0!==r&&""!==r){var a=r.validate();t=a.status,"pending"===a.status&&(e=!1,this.option("disabled",!0),a.complete.then((i=>{var{status:n}=i;this.option("disabled",!1),t=n,"valid"===t&&o.click(),e=!0})))}}"valid"!==t&&n.preventDefault(),n.stopPropagation()}))}_initializeComponent(){super._initializeComponent(),this._addAction("onSubmit",this._getSubmitAction()),this._clickAction=this._createClickAction()}_initMarkup(){super._initMarkup();var e=this.$element().find(".dx-button-content"),t=e.children().filter(".dx-template-wrapper"),i=e.children().filter(".dx-button-submit-input");t.length&&(t.addClass("dx-button-content"),t.append(i),e.replaceWith(t))}_patchOptionValues(e){return super._patchOptionValues((0,hn.Z)({},e,{templateData:e._templateData}))}_findGroup(){var e=this.$element(),t=this.option("validationGroup");return void 0!==t&&""!==t?t:Kn.findGroup(e,this._modelByElement(e))}_createClickAction(){return this._createActionByOption("onClick",{excludeValidators:["readOnly"]})}_optionChanged(e){switch(e.name){case"onClick":this._clickAction=this._createClickAction()}super._optionChanged(e)}}var Vs=i(3802),Fs=i(1293);function Hs(e){return Object.keys(e).filter((t=>e[t])).join(" ")}var Ls=["iconTemplate","position","source"],Ns=e=>{var{iconClassName:t,props:{iconTemplate:i,source:n},sourceType:o}=e;return Ao(["dxIcon"===o&&So(1,"i",t),"fontIcon"===o&&So(1,"i",t),"image"===o&&So(1,"img",t,null,1,{alt:"",src:n}),i&&So(1,"i",t,i({}),0)],0)},Zs={position:"left",source:""},$s=e=>e&&(e.defaultProps?t=>Po(ko(2,e,(0,hn.Z)({},t))):e);class Ws extends Fa{constructor(e){super(e),this.state={}}get sourceType(){return Ms(this.props.source)}get cssClass(){return"left"!==this.props.position?"dx-icon-right":""}get iconClassName(){var e={"dx-icon":!0,[this.cssClass]:!!this.cssClass},{source:t}=this.props;return"dxIcon"===this.sourceType?Hs((0,hn.Z)({},e,{["dx-icon-".concat(t)]:!0})):"fontIcon"===this.sourceType?Hs((0,hn.Z)({},e,{[String(t)]:!!t})):"image"===this.sourceType?Hs(e):"svg"===this.sourceType?Hs((0,hn.Z)({},e,{"dx-svg-icon":!0})):""}get restAttributes(){var e=this.props,t=(0,Vs.Z)(e,Ls);return t}render(){var e=this.props;return Ns({props:(0,hn.Z)({},e,{iconTemplate:$s(e.iconTemplate)}),sourceType:this.sourceType,cssClass:this.cssClass,iconClassName:this.iconClassName,restAttributes:this.restAttributes})}}Ws.defaultProps=Zs;var Ks="dx-inkripple",zs="dx-inkripple-wave",js="dx-inkripple-showing",Us="dx-inkripple-hiding",Gs=2,qs=4e3,Ys=300,Xs=1e3,Js=0,Qs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{useHoldAnimation:t,waveSizeCoefficient:i,isCentered:n,wavesNumber:o}=e;return{waveSizeCoefficient:i||Gs,isCentered:n||!1,wavesNumber:o||1,durations:al(null===t||void 0===t||t)}},el=function(e){var t=Qs(e);return{showWave:ol.bind(this,t),hideWave:ll.bind(this,t)}},tl=function(e){var t=e.children("."+Ks);return 0===t.length&&(t=(0,o.Z)("<div>").addClass(Ks).appendTo(e)),t},il=function(e,t){for(var i=tl((0,o.Z)(e)),n=i.children("."+zs).toArray(),r=n.length;r<t;r++){var a=(0,o.Z)("<div>").appendTo(i).addClass(zs);n.push(a[0])}return(0,o.Z)(n)},nl=function(e,t){var i,r,a=(0,o.Z)(t.element),s=(0,n.Y_)(a),l=(0,n.zp)(a),d=parseInt(Math.sqrt(s*s+l*l)),u=Math.min(qs,parseInt(d*e.waveSizeCoefficient));if(e.isCentered)i=(s-u)/2,r=(l-u)/2;else{var c=t.event,h=a.offset(),p=c.pageX-h.left,f=c.pageY-h.top;i=p-u/2,r=f-u/2}return{left:i,top:r,height:u,width:u}};function ol(e,t){var i=il(t.element,e.wavesNumber).eq(t.wave||Js);e.hidingTimeout&&clearTimeout(e.hidingTimeout),sl(i),i.css(nl(e,t)),e.showingTimeout=setTimeout(rl.bind(this,e,i),0)}function rl(e,t){var i=e.durations.showingScale+"ms";t.addClass(js).css("transitionDuration",i)}function al(e){return{showingScale:e?Xs:Ys,hidingScale:Ys,hidingOpacity:Ys}}function sl(e){e.removeClass(Us).css("transitionDuration","")}function ll(e,t){e.showingTimeout&&clearTimeout(e.showingTimeout);var i=il(t.element,t.wavesNumber).eq(t.wave||Js),n=e.durations,o=n.hidingScale+"ms, "+n.hidingOpacity+"ms";i.addClass(Us).removeClass(js).css("transitionDuration",o);var r=Math.max(n.hidingScale,n.hidingOpacity);e.hidingTimeout=setTimeout(sl.bind(this,i),r)}var dl=["config"],ul=e=>Po(So(1,"div","dx-inkripple",null,1,(0,hn.Z)({},e.restAttributes))),cl={config:Object.freeze({})};class hl extends Fa{constructor(e){super(e),this.state={},this.__getterCache={},this.hideWave=this.hideWave.bind(this),this.showWave=this.showWave.bind(this)}get getConfig(){return void 0!==this.__getterCache.getConfig?this.__getterCache.getConfig:this.__getterCache.getConfig=(()=>{var{config:e}=this.props;return Qs(e)})()}get restAttributes(){var e=this.props,t=(0,Vs.Z)(e,dl);return t}hideWave(e){ll(this.getConfig,e)}showWave(e){ol(this.getConfig,e)}componentWillUpdate(e,t,i){this.props.config!==e.config&&(this.__getterCache.getConfig=void 0)}render(){var e=this.props;return ul({props:(0,hn.Z)({},e),getConfig:this.getConfig,restAttributes:this.restAttributes})}}hl.defaultProps=cl;var pl=i(57553),fl=P.Z.abstract,gl=w.Z.real(),ml="scroll",_l="dxscrollinit",vl="dxscrollstart",yl="dxscroll",Cl="dxscrollend",bl="dxscrollstop",xl="dxscrollcancel",wl=P.Z.inherit(function(){var e=(0,R.V4)(ml,"dxScrollEmitter");return{ctor:function(t){this._element=t,this._locked=!1,this._proxiedScroll=e=>{this._disposed||this._scroll(e)},re.Z.on(this._element,e,this._proxiedScroll)},_scroll:fl,check:function(e,t){this._locked&&t()},dispose:function(){this._disposed=!0,re.Z.off(this._element,e,this._proxiedScroll)}}}()),Tl=wl.inherit({ctor:function(e,t){this.callBase(e),this._timeout=t},_scroll:function(){this._prepare(),this._forget()},_prepare:function(){this._timer&&this._clearTimer(),this._locked=!0},_clearTimer:function(){clearTimeout(this._timer),this._locked=!1,this._timer=null},_forget:function(){var e=this;this._timer=setTimeout((function(){e._clearTimer()}),this._timeout)},dispose:function(){this.callBase(),this._clearTimer()}}),Sl=Tl.inherit({ctor:function(e){this.callBase(e,400),this._lastWheelDirection=null},check:function(e,t){this._checkDirectionChanged(e),this.callBase(e,t)},_checkDirectionChanged:function(e){if((0,R.pR)(e)){var t=e.shiftKey||!1,i=null!==this._lastWheelDirection&&t!==this._lastWheelDirection;this._lastWheelDirection=t,this._locked=this._locked&&!i}else this._lastWheelDirection=null}}),Il=Tl.inherit({ctor:function(e){this.callBase(e,400)}});!function(){var{ios:e,android:t}=gl;(e||t)&&(Il=wl.inherit({_scroll:function(){this._locked=!0;var e=this;(0,De.W)(this._scrollFrame),this._scrollFrame=(0,De.U)((function(){e._locked=!1}))},check:function(e,t){(0,De.W)(this._scrollFrame),(0,De.W)(this._checkFrame);var i=this,n=this.callBase;this._checkFrame=(0,De.U)((function(){n.call(i,e,t),i._locked=!1}))},dispose:function(){this.callBase(),(0,De.W)(this._scrollFrame),(0,De.W)(this._checkFrame)}}))}();var El=pl.Z.inherit(function(){var e=Math.round(1e3/60);return{ctor:function(e){this.callBase.apply(this,arguments),this.direction="both",this._pointerLocker=new Il(e),this._wheelLocker=new Sl(e)},validate:function(){return!0},configure:function(e){e.scrollTarget&&(this._pointerLocker.dispose(),this._wheelLocker.dispose(),this._pointerLocker=new Il(e.scrollTarget),this._wheelLocker=new Sl(e.scrollTarget)),this.callBase(e)},_init:function(e){this._wheelLocker.check(e,function(){(0,R.pR)(e)&&this._accept(e)}.bind(this)),this._pointerLocker.check(e,function(){var t=this.isNative&&(0,R.N5)(e);(0,R.pR)(e)||t||this._accept(e)}.bind(this)),this._fireEvent(_l,e),this._prevEventData=(0,R.a0)(e)},move:function(e){this.callBase.apply(this,arguments),e.isScrollingEvent=this.isNative||e.isScrollingEvent},_start:function(e){this._savedEventData=(0,R.a0)(e),this._fireEvent(vl,e),this._prevEventData=(0,R.a0)(e)},_move:function(e){var t=(0,R.a0)(e);this._fireEvent(yl,e,{delta:(0,R.hM)(this._prevEventData,t)});var i=(0,R.hM)(this._savedEventData,t);i.time>200&&(this._savedEventData=this._prevEventData),this._prevEventData=(0,R.a0)(e)},_end:function(t){var i=(0,R.hM)(this._prevEventData,(0,R.a0)(t)),n={x:0,y:0};if(!(0,R.pR)(t)&&i.time<100){var o=(0,R.hM)(this._savedEventData,this._prevEventData),r=e/o.time;n={x:o.x*r,y:o.y*r}}this._fireEvent(Cl,t,{velocity:n})},_stop:function(e){this._fireEvent(bl,e)},cancel:function(e){this.callBase.apply(this,arguments),this._fireEvent(xl,e)},dispose:function(){this.callBase.apply(this,arguments),this._pointerLocker.dispose(),this._wheelLocker.dispose()},_clearSelection:function(){if(!this.isNative)return this.callBase.apply(this,arguments)},_toggleGestureCover:function(){if(!this.isNative)return this.callBase.apply(this,arguments)}}}());(0,F.Z)({emitter:El,events:[_l,vl,yl,Cl,bl,xl]});var Dl={init:_l,start:vl,move:yl,end:Cl,stop:bl,cancel:xl,scroll:ml};function kl(e){return(t,i,n,o)=>{var r=o?(0,R.V4)(e,o):e;if(i)return re.Z.on(t,r,n,i),()=>{re.Z.off(t,r,i)}}}var Ol=kl(A.u),Al=(kl(Dl.scroll),kl(Dl.init),kl(Dl.start),kl(Dl.move),kl(Dl.end),kl(Dl.stop),kl(Dl.cancel),kl(B.Z.down),kl(B.Z.up),kl(B.Z.move),kl("mouseenter"),kl("mouseleave"),kl("keydown"),kl("dxactive")),Pl=kl("dxinactive"),Ml=kl("dxhoverstart"),Rl=kl("dxhoverend"),Bl=kl("focusin"),Vl=kl("focusout"),Fl=i(19071),Hl={className:"",activeStateEnabled:!1,disabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,tabIndex:0,visible:!0},Ll=Za(void 0),Nl=["children","rtlEnabled"],Zl=e=>e.props.children,$l={};class Wl extends Fa{constructor(e){super(e),this.state={},this.__getterCache={}}getChildContext(){return(0,hn.Z)({},this.context,{ConfigContext:this.config})}get config(){return void 0!==this.__getterCache.config?this.__getterCache.config:this.__getterCache.config=(()=>({rtlEnabled:this.props.rtlEnabled}))()}get restAttributes(){var e=this.props,t=(0,Vs.Z)(e,Nl);return t}componentWillUpdate(e,t,i){this.props.rtlEnabled!==e.rtlEnabled&&(this.__getterCache.config=void 0)}render(){var e=this.props;return Zl({props:(0,hn.Z)({},e),config:this.config,restAttributes:this.restAttributes})}}function Kl(e,t){return void 0!==e?e:void 0!==(null===t||void 0===t?void 0:t.rtlEnabled)?t.rtlEnabled:(0,Oe.Z)().rtlEnabled}function zl(e,t){var i=(0,l.$K)(e),n=(0,l.$K)((0,Oe.Z)().rtlEnabled)&&!i&&!(0,l.$K)(null===t||void 0===t?void 0:t.rtlEnabled);return i&&e!==(null===t||void 0===t?void 0:t.rtlEnabled)||n}Wl.defaultProps=$l;var jl=i(20605),Ul=["_feedbackHideTimeout","_feedbackShowTimeout","accessKey","activeStateEnabled","activeStateUnit","addWidgetClass","aria","children","className","classes","cssText","disabled","focusStateEnabled","height","hint","hoverStateEnabled","name","onActive","onClick","onDimensionChanged","onFocusIn","onFocusOut","onHoverEnd","onHoverStart","onInactive","onKeyDown","onRootElementRendered","onVisibilityChange","rootElementRef","rtlEnabled","tabIndex","visible","width"],Gl=400,ql=30,Yl=e=>Object.keys(e).reduce(((t,i)=>e[i]?(0,hn.Z)({},t,{["role"===i||"id"===i?i:"aria-".concat(i)]:String(e[i])}):t),{}),Xl=e=>{var t=Po(So(1,"div",e.cssClasses,e.props.children,0,(0,hn.Z)({},e.attributes,{tabIndex:e.tabIndex,title:e.props.hint,style:ys(e.styles)}),null,e.widgetElementRef));return e.shouldRenderConfigProvider?ko(2,Wl,{rtlEnabled:e.rtlEnabled,children:t}):t},Jl=Object.create(Object.prototype,(0,hn.Z)(Object.getOwnPropertyDescriptors(Hl),Object.getOwnPropertyDescriptors({_feedbackHideTimeout:Gl,_feedbackShowTimeout:ql,cssText:"",aria:Object.freeze({}),classes:"",name:"",addWidgetClass:!0})));class Ql extends La{constructor(e){super(e),this.widgetElementRef=kr(),this.state={active:!1,focused:!1,hovered:!1},this.setRootElementRef=this.setRootElementRef.bind(this),this.activeEffect=this.activeEffect.bind(this),this.inactiveEffect=this.inactiveEffect.bind(this),this.clickEffect=this.clickEffect.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.activate=this.activate.bind(this),this.deactivate=this.deactivate.bind(this),this.focusInEffect=this.focusInEffect.bind(this),this.focusOutEffect=this.focusOutEffect.bind(this),this.hoverStartEffect=this.hoverStartEffect.bind(this),this.hoverEndEffect=this.hoverEndEffect.bind(this),this.keyboardEffect=this.keyboardEffect.bind(this),this.resizeEffect=this.resizeEffect.bind(this),this.windowResizeEffect=this.windowResizeEffect.bind(this),this.visibilityEffect=this.visibilityEffect.bind(this),this.checkDeprecation=this.checkDeprecation.bind(this),this.applyCssTextEffect=this.applyCssTextEffect.bind(this)}get config(){return"ConfigContext"in this.context?this.context.ConfigContext:Ll}createEffects(){return[new $a(this.setRootElementRef,[]),new $a(this.activeEffect,[this.props._feedbackShowTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.disabled,this.props.onActive]),new $a(this.inactiveEffect,[this.props._feedbackHideTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.onInactive,this.state.active]),new $a(this.clickEffect,[this.props.disabled,this.props.name,this.props.onClick]),new $a(this.focusInEffect,[this.props.disabled,this.props.focusStateEnabled,this.props.name,this.props.onFocusIn]),new $a(this.focusOutEffect,[this.props.focusStateEnabled,this.props.name,this.props.onFocusOut,this.state.focused]),new $a(this.hoverStartEffect,[this.props.activeStateUnit,this.props.disabled,this.props.hoverStateEnabled,this.props.onHoverStart,this.state.active]),new $a(this.hoverEndEffect,[this.props.activeStateUnit,this.props.hoverStateEnabled,this.props.onHoverEnd,this.state.hovered]),new $a(this.keyboardEffect,[this.props.focusStateEnabled,this.props.onKeyDown]),new $a(this.resizeEffect,[this.props.name,this.props.onDimensionChanged]),new $a(this.windowResizeEffect,[this.props.onDimensionChanged]),new $a(this.visibilityEffect,[this.props.name,this.props.onVisibilityChange]),new $a(this.checkDeprecation,[this.props.height,this.props.width]),new $a(this.applyCssTextEffect,[this.props.cssText]),Wa()]}updateEffects(){var e,t,i,n,o,r,a,s,l,d,u,c,h;null===(e=this._effects[1])||void 0===e||e.update([this.props._feedbackShowTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.disabled,this.props.onActive]),null===(t=this._effects[2])||void 0===t||t.update([this.props._feedbackHideTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.onInactive,this.state.active]),null===(i=this._effects[3])||void 0===i||i.update([this.props.disabled,this.props.name,this.props.onClick]),null===(n=this._effects[4])||void 0===n||n.update([this.props.disabled,this.props.focusStateEnabled,this.props.name,this.props.onFocusIn]),null===(o=this._effects[5])||void 0===o||o.update([this.props.focusStateEnabled,this.props.name,this.props.onFocusOut,this.state.focused]),null===(r=this._effects[6])||void 0===r||r.update([this.props.activeStateUnit,this.props.disabled,this.props.hoverStateEnabled,this.props.onHoverStart,this.state.active]),null===(a=this._effects[7])||void 0===a||a.update([this.props.activeStateUnit,this.props.hoverStateEnabled,this.props.onHoverEnd,this.state.hovered]),null===(s=this._effects[8])||void 0===s||s.update([this.props.focusStateEnabled,this.props.onKeyDown]),null===(l=this._effects[9])||void 0===l||l.update([this.props.name,this.props.onDimensionChanged]),null===(d=this._effects[10])||void 0===d||d.update([this.props.onDimensionChanged]),null===(u=this._effects[11])||void 0===u||u.update([this.props.name,this.props.onVisibilityChange]),null===(c=this._effects[12])||void 0===c||c.update([this.props.height,this.props.width]),null===(h=this._effects[13])||void 0===h||h.update([this.props.cssText])}setRootElementRef(){var{onRootElementRendered:e,rootElementRef:t}=this.props;t&&(t.current=this.widgetElementRef.current),null===e||void 0===e||e(this.widgetElementRef.current)}activeEffect(){var{_feedbackShowTimeout:e,activeStateEnabled:t,activeStateUnit:i,disabled:n,onActive:o}=this.props,r=i;if(t&&!n)return Al(this.widgetElementRef.current,(e=>{this.setState((e=>({active:!0}))),null===o||void 0===o||o(e)}),{timeout:e,selector:r},"UIFeedback")}inactiveEffect(){var{_feedbackHideTimeout:e,activeStateEnabled:t,activeStateUnit:i,onInactive:n}=this.props,o=i;if(t)return Pl(this.widgetElementRef.current,(e=>{this.state.active&&(this.setState((e=>({active:!1}))),null===n||void 0===n||n(e))}),{timeout:e,selector:o},"UIFeedback")}clickEffect(){var{disabled:e,name:t,onClick:i}=this.props,n=t;if(i&&!e)return I.wt.on(this.widgetElementRef.current,i,{namespace:n}),()=>I.wt.off(this.widgetElementRef.current,{namespace:n})}focusInEffect(){var{disabled:e,focusStateEnabled:t,name:i,onFocusIn:n}=this.props,o="".concat(i,"Focus");if(t&&!e)return Bl(this.widgetElementRef.current,(e=>{e.isDefaultPrevented()||(this.setState((e=>({focused:!0}))),null===n||void 0===n||n(e))}),null,o)}focusOutEffect(){var{focusStateEnabled:e,name:t,onFocusOut:i}=this.props,n="".concat(t,"Focus");if(e)return Vl(this.widgetElementRef.current,(e=>{!e.isDefaultPrevented()&&this.state.focused&&(this.setState((e=>({focused:!1}))),null===i||void 0===i||i(e))}),null,n)}hoverStartEffect(){var{activeStateUnit:e,disabled:t,hoverStateEnabled:i,onHoverStart:n}=this.props,o=e;if(i&&!t)return Ml(this.widgetElementRef.current,(e=>{!this.state.active&&this.setState((e=>({hovered:!0}))),null===n||void 0===n||n(e)}),{selector:o},"UIFeedback")}hoverEndEffect(){var{activeStateUnit:e,hoverStateEnabled:t,onHoverEnd:i}=this.props,n=e;if(t)return Rl(this.widgetElementRef.current,(e=>{this.state.hovered&&(this.setState((e=>({hovered:!1}))),null===i||void 0===i||i(e))}),{selector:n},"UIFeedback")}keyboardEffect(){var{focusStateEnabled:e,onKeyDown:t}=this.props;if(e&&t){var i=I.dG.on(this.widgetElementRef.current,this.widgetElementRef.current,(e=>t(e)));return()=>I.dG.off(i)}}resizeEffect(){var e="".concat(this.props.name,"VisibilityChange"),{onDimensionChanged:t}=this.props;if(t)return I.SI.on(this.widgetElementRef.current,t,{namespace:e}),()=>I.SI.off(this.widgetElementRef.current,{namespace:e})}windowResizeEffect(){var{onDimensionChanged:e}=this.props;if(e)return jl.Z.add(e),()=>{jl.Z.remove(e)}}visibilityEffect(){var{name:e,onVisibilityChange:t}=this.props,i="".concat(e,"VisibilityChange");if(t)return I.WD.on(this.widgetElementRef.current,(()=>t(!0)),(()=>t(!1)),{namespace:i}),()=>I.WD.off(this.widgetElementRef.current,{namespace:i})}checkDeprecation(){var{height:e,width:t}=this.props;(0,l.mf)(t)&&ae.Z.log("W0017","width"),(0,l.mf)(e)&&ae.Z.log("W0017","height")}applyCssTextEffect(){var{cssText:e}=this.props;""!==e&&(this.widgetElementRef.current.style.cssText=e)}get shouldRenderConfigProvider(){var{rtlEnabled:e}=this.props;return zl(e,this.config)}get rtlEnabled(){var{rtlEnabled:e}=this.props;return Kl(e,this.config)}get attributes(){var{aria:e,disabled:t,focusStateEnabled:i,visible:n}=this.props,o=i&&!t&&this.props.accessKey;return(0,hn.Z)({},(0,a.l)({},o&&{accessKey:o}),Yl((0,hn.Z)({},e,{disabled:t,hidden:!n})),(0,a.l)({},this.restAttributes))}get styles(){var{height:e,width:t}=this.props,i=this.restAttributes.style||{},n=(0,Fl.bh)("width",(0,l.mf)(t)?t():t),o=(0,Fl.bh)("height",(0,l.mf)(e)?e():e);return(0,hn.Z)({},i,{height:null!==o&&void 0!==o?o:i.height,width:null!==n&&void 0!==n?n:i.width})}get cssClasses(){var{activeStateEnabled:e,addWidgetClass:t,className:i,classes:n,disabled:o,focusStateEnabled:r,hoverStateEnabled:a,onVisibilityChange:s,visible:l}=this.props,d=!!r&&!o,u=!!a&&!o,c=!!e&&!o,h={"dx-widget":!!t,[String(n)]:!!n,[String(i)]:!!i,"dx-state-disabled":!!o,"dx-state-invisible":!l,"dx-state-focused":!!this.state.focused&&d,"dx-state-active":!!this.state.active&&c,"dx-state-hover":!!this.state.hovered&&u&&!this.state.active,"dx-rtl":!!this.rtlEnabled,"dx-visibility-change-handler":!!s};return Hs(h)}get tabIndex(){var{disabled:e,focusStateEnabled:t,tabIndex:i}=this.props,n=t&&!e;return n?i:void 0}get restAttributes(){var e=this.props,t=(0,Vs.Z)(e,Ul);return t}focus(){I.T_.trigger(this.widgetElementRef.current)}blur(){var e=ke["default"].getActiveElement(this.widgetElementRef.current);this.widgetElementRef.current===e&&e.blur()}activate(){this.setState((e=>({active:!0})))}deactivate(){this.setState((e=>({active:!1})))}render(){var e=this.props;return Xl({props:(0,hn.Z)({},e),active:this.state.active,focused:this.state.focused,hovered:this.state.hovered,widgetElementRef:this.widgetElementRef,config:this.config,shouldRenderConfigProvider:this.shouldRenderConfigProvider,rtlEnabled:this.rtlEnabled,attributes:this.attributes,styles:this.styles,cssClasses:this.cssClasses,tabIndex:this.tabIndex,restAttributes:this.restAttributes})}}Ql.defaultProps=Jl;var ed=["accessKey","activeStateEnabled","children","className","disabled","focusStateEnabled","height","hint","hoverStateEnabled","icon","iconPosition","iconTemplate","onClick","onKeyDown","onSubmit","pressed","rtlEnabled","stylingMode","tabIndex","template","templateData","text","type","useInkRipple","useSubmitBehavior","visible","width"],td=["outlined","text","contained"],id=e=>{var{icon:t,iconPosition:i,stylingMode:n,text:o,type:r}=e,a=n&&td.includes(n),s={"dx-button":!0,["dx-button-mode-".concat(a?n:"contained")]:!0,["dx-button-".concat(null!==r&&void 0!==r?r:"normal")]:!0,"dx-button-has-text":!!o,"dx-button-has-icon":!!t,"dx-button-icon-right":"left"!==i};return Hs(s)},nd=e=>{var{children:t,iconPosition:i,iconTemplate:n,template:o,text:r}=e.props,a=!e.props.template&&!t&&""!==r,s="left"===i,l=!e.props.template&&!t&&(e.iconSource||e.props.iconTemplate)&&ko(2,Ws,{source:e.iconSource,position:i,iconTemplate:n});return Po(ko(2,Ql,(0,hn.Z)({accessKey:e.props.accessKey,activeStateEnabled:e.props.activeStateEnabled,aria:e.aria,className:e.props.className,classes:e.cssClasses,disabled:e.props.disabled,focusStateEnabled:e.props.focusStateEnabled,height:e.props.height,hint:e.props.hint,hoverStateEnabled:e.props.hoverStateEnabled,onActive:e.onActive,onClick:e.onWidgetClick,onInactive:e.onInactive,onKeyDown:e.keyDown,rtlEnabled:e.props.rtlEnabled,tabIndex:e.props.tabIndex,visible:e.props.visible,width:e.props.width},e.restAttributes,{children:So(1,"div","dx-button-content",[e.props.template&&o({data:e.buttonTemplateData}),!e.props.template&&t,s&&l,a&&So(1,"span","dx-button-text",r,0),!s&&l,e.props.useSubmitBehavior&&So(64,"input","dx-button-submit-input",null,1,{type:"submit",tabIndex:-1},null,e.submitInputRef),e.props.useInkRipple&&ko(2,hl,{config:e.inkRippleConfig},null,e.inkRippleRef)],0,null,null,e.contentRef)}),null,e.widgetRef))},od=Object.create(Object.prototype,(0,hn.Z)(Object.getOwnPropertyDescriptors(Hl),Object.getOwnPropertyDescriptors({activeStateEnabled:!0,hoverStateEnabled:!0,icon:"",iconPosition:"left",stylingMode:"contained",text:"",type:"normal",useInkRipple:!1,useSubmitBehavior:!1,templateData:Object.freeze({})}))),rd=(0,Fs.J3)([{device:()=>"desktop"===w.Z.real().deviceType&&!w.Z.isSimulator(),options:{focusStateEnabled:!0}},{device:()=>(0,x.x2)((0,x.Vk)()),options:{useInkRipple:!0}}]),ad=e=>e&&(e.defaultProps?t=>Po(ko(2,e,(0,hn.Z)({},t))):e);class sd extends La{constructor(e){super(e),this.state={},this.contentRef=kr(),this.inkRippleRef=kr(),this.submitInputRef=kr(),this.widgetRef=kr(),this.__getterCache={},this.focus=this.focus.bind(this),this.activate=this.activate.bind(this),this.deactivate=this.deactivate.bind(this),this.submitEffect=this.submitEffect.bind(this),this.checkDeprecation=this.checkDeprecation.bind(this),this.onActive=this.onActive.bind(this),this.onInactive=this.onInactive.bind(this),this.onWidgetClick=this.onWidgetClick.bind(this),this.keyDown=this.keyDown.bind(this)}createEffects(){return[new $a(this.submitEffect,[this.props.onSubmit,this.props.useSubmitBehavior]),new $a(this.checkDeprecation,[this.props.type]),Wa()]}updateEffects(){var e,t;null===(e=this._effects[0])||void 0===e||e.update([this.props.onSubmit,this.props.useSubmitBehavior]),null===(t=this._effects[1])||void 0===t||t.update([this.props.type])}submitEffect(){var{onSubmit:e,useSubmitBehavior:t}=this.props;if(t&&e)return I.V4.on(this.submitInputRef.current,(t=>e({event:t,submitInput:this.submitInputRef.current})),{namespace:"UIFeedback"}),()=>I.V4.off(this.submitInputRef.current,{namespace:"UIFeedback"})}checkDeprecation(){var{type:e}=this.props;"back"===e&&ae.Z.log("W0016","type","back","22.2","Use the 'back' icon instead")}onActive(e){var{useInkRipple:t}=this.props;t&&this.inkRippleRef.current.showWave({element:this.contentRef.current,event:e})}onInactive(e){var{useInkRipple:t}=this.props;t&&this.inkRippleRef.current.hideWave({element:this.contentRef.current,event:e})}onWidgetClick(e){var{onClick:t,useSubmitBehavior:i}=this.props;null===t||void 0===t||t({event:e}),i&&this.submitInputRef.current.click()}keyDown(e){var{onKeyDown:t}=this.props,{keyName:i,originalEvent:n,which:o}=e,r=null===t||void 0===t?void 0:t(e);if(null!==r&&void 0!==r&&r.cancel)return r;"space"!==i&&"space"!==o&&"enter"!==i&&"enter"!==o||(n.preventDefault(),this.onWidgetClick(n))}get aria(){var{icon:e,text:t}=this.props,i=(null!==t&&void 0!==t?t:"")||y.Z.format((0,sn._A)(e,!0))||e;return!t&&e&&"image"===Ms(e)&&(i=e.includes("base64")?"Base64":e.replace(/.+\/([^.]+)\..+$/,"$1")),(0,hn.Z)({role:"button"},i?{label:i}:{})}get cssClasses(){return id(this.props)}get iconSource(){var{icon:e,type:t}=this.props;return e||"back"===t?(null!==e&&void 0!==e?e:"")||"back":""}get inkRippleConfig(){return void 0!==this.__getterCache.inkRippleConfig?this.__getterCache.inkRippleConfig:this.__getterCache.inkRippleConfig=(()=>{var{icon:e,text:t,type:i}=this.props;return!t&&e||"back"===i?{isCentered:!0,useHoldAnimation:!1,waveSizeCoefficient:1}:{}})()}get buttonTemplateData(){var{icon:e,templateData:t,text:i}=this.props;return(0,hn.Z)({icon:e,text:i},t)}get restAttributes(){var e=this.props,t=(0,Vs.Z)(e,ed);return t}focus(){this.widgetRef.current.focus()}activate(){this.widgetRef.current.activate()}deactivate(){this.widgetRef.current.deactivate()}componentWillUpdate(e,t,i){super.componentWillUpdate(),this.props.icon===e.icon&&this.props.text===e.text&&this.props.type===e.type||(this.__getterCache.inkRippleConfig=void 0)}render(){var e=this.props;return nd({props:(0,hn.Z)({},e,{template:ad(e.template),iconTemplate:ad(e.iconTemplate)}),contentRef:this.contentRef,submitInputRef:this.submitInputRef,inkRippleRef:this.inkRippleRef,widgetRef:this.widgetRef,onActive:this.onActive,onInactive:this.onInactive,onWidgetClick:this.onWidgetClick,keyDown:this.keyDown,aria:this.aria,cssClasses:this.cssClasses,iconSource:this.iconSource,inkRippleConfig:this.inkRippleConfig,buttonTemplateData:this.buttonTemplateData,restAttributes:this.restAttributes})}}sd.defaultProps=Object.create(Object.prototype,(0,hn.Z)(Object.getOwnPropertyDescriptors(od),Object.getOwnPropertyDescriptors((0,hn.Z)({},(0,Fs.wt)(rd)))));var ld=[];function dd(e){ld.push(e),sd.defaultProps=Object.create(Object.prototype,(0,hn.Z)(Object.getOwnPropertyDescriptors(sd.defaultProps),Object.getOwnPropertyDescriptors((0,Fs.wt)(rd)),Object.getOwnPropertyDescriptors((0,Fs.wt)(ld))))}class ud extends Bs{getProps(){var e=super.getProps();return e.onKeyDown=this._wrapKeyDownHandler(e.onKeyDown),e}focus(){var e;return null===(e=this.viewRef)||void 0===e?void 0:e.focus(...arguments)}activate(){var e;return null===(e=this.viewRef)||void 0===e?void 0:e.activate(...arguments)}deactivate(){var e;return null===(e=this.viewRef)||void 0===e?void 0:e.deactivate(...arguments)}_getActionConfigs(){return{onClick:{excludeValidators:["readOnly"]},onSubmit:{}}}get _propsInfo(){return{twoWay:[],allowNull:[],elements:["onSubmit"],templates:["template","iconTemplate"],props:["activeStateEnabled","hoverStateEnabled","icon","iconPosition","onClick","onSubmit","pressed","stylingMode","template","iconTemplate","text","type","useInkRipple","useSubmitBehavior","templateData","className","accessKey","disabled","focusStateEnabled","height","hint","onKeyDown","rtlEnabled","tabIndex","visible","width"]}}get _viewComponent(){return sd}}(0,C.Z)("dxButton",ud),ud.defaultOptions=dd;var cd=ud,hd=i(5491),pd=i(37063),fd="dx-state-invisible",gd="dx-state-disabled",md="dx-item-content-placeholder",_d=function(e,t,i){var n,o=function(e){n!==e&&(i(e,n),n=e)};return{dispose:e(t,o),force:function(){o(t())}}},vd=P.Z.inherit({ctor:function(e,t,i){this._$element=e,this._options=t,this._rawData=i,(0,pd.nf)(e,this,this._dispose),this._render()},_render:function(){var e=(0,o.Z)("<div>").addClass(md);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 i=this._rawData,n=this._options.fieldGetter(e),o=_d(this._options.watchMethod(),(function(){return n(i)}),function(e,i){this._dirty=!0,t(e,i)}.bind(this));this._watchers.push(o)},setDataField:function(){if(this._dirty=!1,(0,E.S6)(this._watchers,(function(e,t){t.force()})),this._dirty)return!0},_renderDisabled:function(e,t){this._$element.toggleClass(gd,!!e),this._updateOwnerFocus(e)},_updateOwnerFocus:function(e){var t=this._options.owner;t&&e&&t._resetItemFocus(this._$element)},_renderVisible:function(e,t){this._$element.toggleClass(fd,void 0!==e&&!e)},_dispose:function(){(0,E.S6)(this._watchers,(function(e,t){t.dispose()}))}});vd.getInstance=function(e){return(0,pd.Bt)(e,this)};var yd=vd,Cd=Math.abs,bd="dxhold",xd=750,wd=5,Td=V.Z.inherit({start:function(e){this._startEventData=(0,R.a0)(e),this._startTimer(e)},_startTimer:function(e){var t="timeout"in this?this.timeout:xd;this._holdTimer=setTimeout(function(){this._requestAccept(e),this._fireEvent(bd,e,{target:e.target}),this._forgetAccept()}.bind(this),t)},move:function(e){this._touchWasMoved(e)&&this._cancel(e)},_touchWasMoved:function(e){var t=(0,R.hM)(this._startEventData,(0,R.a0)(e));return Cd(t.x)>wd||Cd(t.y)>wd},end:function(){this._stopTimer()},_stopTimer:function(){clearTimeout(this._holdTimer)},cancel:function(){this._stopTimer()},dispose:function(){this._stopTimer()}});(0,F.Z)({emitter:Td,bubble:!0,events:[bd]});var Sd={name:bd},Id=i(51709),Ed="dxContexMenu",Dd=(0,R.V4)("contextmenu",Ed),kd=(0,R.V4)(Sd.name,Ed),Od="dxcontextmenu",Ad=P.Z.inherit({setup:function(e){var t=(0,o.Z)(e);re.Z.on(t,Dd,this._contextMenuHandler.bind(this)),(b.touch||w.Z.isSimulator())&&re.Z.on(t,kd,this._holdHandler.bind(this))},_holdHandler:function(e){(0,R.N5)(e)&&!w.Z.isSimulator()||this._fireContextMenu(e)},_contextMenuHandler:function(e){this._fireContextMenu(e)},_fireContextMenu:function(e){return(0,R.BX)({type:Od,originalEvent:e})},teardown:function(e){re.Z.off(e,"."+Ed)}});(0,Id.Z)(Od,new Ad);var Pd=Od,Md=i(56782),Rd=function(e,t,i,n,o){var r,a=((e,t,i)=>t((()=>e),i))(e,t,(function(e){r&&r(),(0,l.pt)(e)?o(e):r=function(e,t,i,n,o){var r={},a=i.slice(),s=i.map((function(i){var s=n[i];return t(s?()=>s(e):()=>e[i],(function(e){if(r[i]=e,a.length){var t=a.indexOf(i);t>=0&&a.splice(t,1)}a.length||o(r)}))}));return function(){s.forEach((e=>e()))}}(e,t,i,n,o)}));return function(){r&&r(),a&&a()}};class Bd extends Md.S{constructor(e,t,i,n){super(),this._render=e,this._fields=t,this._fieldsMap=n||{},this._watchMethod=i}_renderCore(e){var t=(0,o.Z)(e.container),i=Rd(e.model,this._watchMethod,this._fields,this._fieldsMap,(i=>{t.empty(),this._render(t,i,e.model)}));return re.Z.on(t,nt.x,i),t.contents()}}var Vd="dx-collection",Fd="dx-item",Hd="-content",Ld="dx-item-content-placeholder",Nd="dxItemData",Zd="dxItemIndex",$d="tmpl-",Wd="dxItem",Kd="dx-item-selected",zd="dx-item-response-wait",jd="dx-empty-collection",Ud="dx-template-wrapper",Gd=/^([^.]+\[\d+\]\.)+([\w.]+)$/,qd="item",Yd="up",Xd="down",Jd="left",Qd="right",eu="pageup",tu="pagedown",iu="last",nu="first",ou=G.inherit({_activeStateUnit:"."+Fd,_supportedKeys:function(){var e=function(e){var t=(0,o.Z)(this.option("focusedElement"));t.length&&this._itemClickHandler((0,a.l)({},e,{target:t.get(0),currentTarget:t.get(0)}))},t=function(e,t){(0,R.j1)(t)||(t.preventDefault(),t.stopPropagation(),this._moveFocus(e,t))};return(0,a.l)(this.callBase(),{space:function(t){t.preventDefault(),e.call(this,t)},enter:e,leftArrow:t.bind(this,Jd),rightArrow:t.bind(this,Qd),upArrow:t.bind(this,Yd),downArrow:t.bind(this,Xd),pageUp:t.bind(this,Yd),pageDown:t.bind(this,Xd),home:t.bind(this,nu),end:t.bind(this,iu)})},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{selectOnFocus:!1,loopItemFocus:!0,items:[],itemTemplate:"item",onItemRendered:null,onItemClick:null,onItemHold:null,itemHoldTimeout:750,onItemContextMenu:null,onFocusedItemChanged:null,noDataText:y.Z.format("dxCollectionWidget-noDataText"),encodeNoDataText:!1,dataSource:null,_dataController:null,_itemAttributes:{},itemTemplateProperty:"template",focusOnSelectedItem:!0,focusedElement:null,displayExpr:void 0,disabledExpr:function(e){return e?e.disabled:void 0},visibleExpr:function(e){return e?e.visible:void 0}})},_init:function(){this._compileDisplayGetter(),this._initDataController(),this.callBase(),this._cleanRenderedItems(),this._refreshDataSource()},_compileDisplayGetter:function(){var e=this.option("displayExpr");this._displayGetter=e?(0,r.vb)(this.option("displayExpr")):void 0},_initTemplates:function(){this._initItemsFromMarkup(),this._initDefaultItemTemplate(),this.callBase()},_getAnonymousTemplateName:function(){return qd},_initDefaultItemTemplate:function(){var e=this._getFieldsMap();this._templateManager.addDefaultTemplates({item:new Bd(function(t,i){(0,l.PO)(i)?this._prepareDefaultItemTemplate(i,t):(e&&(0,l.mf)(e.text)&&(i=e.text(i)),t.text(String((0,v.IS)(i,""))))}.bind(this),this._getBindableFields(),this.option("integrationOptions.watchMethod"),e)})},_getBindableFields:function(){return["text","html"]},_getFieldsMap:function(){if(this._displayGetter)return{text:this._displayGetter}},_prepareDefaultItemTemplate:function(e,t){(0,l.$K)(e.text)&&t.text(e.text),(0,l.$K)(e.html)&&t.html(e.html)},_initItemsFromMarkup:function(){var e=(0,hd.hK)(this.$element(),Wd);if(e.length&&!this.option("items").length){var t=e.map((e=>{var{element:t,options:i}=e,n=/\S/.test(t.innerHTML)&&!i.template;return n?i.template=this._prepareItemTemplate(t):(0,o.Z)(t).remove(),i}));this.option("items",t)}},_prepareItemTemplate:function(e){var t=$d+new Li.Z,i=(0,o.Z)(e).detach().clone().removeAttr("data-options").addClass(Ud);return this._saveTemplate(t,i),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),this._isFocusTarget(e.target)){var t=(0,o.Z)(this.option("focusedElement"));if(t.length)this._setFocusedItem(t);else{var i=this._getActiveItem();i.length&&this.option("focusedElement",(0,se.u)(i))}}},_focusOutHandler:function(){this.callBase.apply(this,arguments);var e=(0,o.Z)(this.option("focusedElement"));this._updateFocusedItemState(e,!1)},_getActiveItem:function(e){var t=(0,o.Z)(this.option("focusedElement"));if(t.length)return t;var i=this.option("focusOnSelectedItem")?this.option("selectedIndex"):0,n=this._getActiveElement(),r=n.length-1;return i<0&&(i=e?r:0),n.eq(i)},_moveFocus:function(e){var t,i=this._getAvailableItems();switch(e){case eu:case Yd:t=this._prevItem(i);break;case tu:case Xd:t=this._nextItem(i);break;case Qd:t=this.option("rtlEnabled")?this._prevItem(i):this._nextItem(i);break;case Jd:t=this.option("rtlEnabled")?this._nextItem(i):this._prevItem(i);break;case nu:t=i.first();break;case iu:t=i.last();break;default:return!1}0!==t.length&&this.option("focusedElement",(0,se.u)(t))},_getVisibleItems:function(e){return e=e||this._itemElements(),e.filter(":visible")},_getAvailableItems:function(e){return this._getVisibleItems(e).not(".dx-state-disabled")},_prevItem:function(e){var t=this._getActiveItem(),i=e.index(t),n=e.last(),r=(0,o.Z)(e[i-1]),a=this.option("loopItemFocus");return 0===r.length&&a&&(r=n),r},_nextItem:function(e){var t=this._getActiveItem(!0),i=e.index(t),n=e.first(),r=(0,o.Z)(e[i+1]),a=this.option("loopItemFocus");return 0===r.length&&a&&(r=n),r},_selectFocusedItem:function(e){this.selectItem(e)},_updateFocusedItemState:function(e,t,i){var n=(0,o.Z)(e);n.length&&(this._refreshActiveDescendant(),this._refreshItemId(n,i),this._toggleFocusClass(t,n)),this._updateParentActiveDescendant()},_refreshActiveDescendant:function(e){this.setAria("activedescendant",(0,l.$K)(this.option("focusedElement"))?this.getFocusedItemId():null,e)},_refreshItemId:function(e,t){!t&&this.option("focusedElement")?this.setAria("id",this.getFocusedItemId(),e):this.setAria("id",null,e)},_setFocusedItem:function(e){e&&e.length&&(this._updateFocusedItemState(e,!0),this.onFocusedItemChanged(this.getFocusedItemId()),this.option("selectOnFocus")&&this._selectFocusedItem(e))},_findItemElementByItem:function(e){var t=(0,o.Z)(),i=this;return this.itemElements().each((function(){var n=(0,o.Z)(this);if(n.data(i._itemDataKey())===e)return t=n,!1})),t},_getIndexByItem:function(e){return this.option("items").indexOf(e)},_itemOptionChanged:function(e,t,i,n){var o=this._findItemElementByItem(e);if(o.length){this.constructor.ItemClass.getInstance(o).setDataField(t,i)||this._refreshItem(o,e);var r="disabled"===t&&i;r&&this._resetItemFocus(o)}},_resetItemFocus(e){e.is(this.option("focusedElement"))&&this.option("focusedElement",null)},_refreshItem:function(e){var t=this._getItemData(e),i=e.data(this._itemIndexKey());this._renderItem(this._renderedItemsCount+i,t,null,e)},_updateParentActiveDescendant:v.ZT,_optionChanged:function(e){if("items"===e.name){var t=e.fullName.match(Gd);if(t&&t.length){var i=t[t.length-1],n=e.fullName.replace("."+i,""),r=this.option(n);return void this._itemOptionChanged(r,i,e.value,e.previousValue)}}switch(e.name){case"items":case"_itemAttributes":case"itemTemplateProperty":case"useItemTextAsTitle":this._cleanRenderedItems(),this._invalidate();break;case"dataSource":this._refreshDataSource(),this._renderEmptyMessage();break;case"noDataText":case"encodeNoDataText":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._updateFocusedItemState(e.previousValue,!1,!0),this._setFocusedItem((0,o.Z)(e.value));break;case"displayExpr":this._compileDisplayGetter(),this._initDefaultItemTemplate(),this._invalidate();break;case"visibleExpr":case"disabledExpr":this._invalidate();break;default:this.callBase(e)}},_invalidate:function(){return this.option("focusedElement",null),this.callBase.apply(this,arguments)},_loadNextPage:function(){return this._expectNextPageLoading(),this._dataController.loadNextPage()},_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()&&-1===this._startIndexForAppendedItems||(this.option().items=t.concat(e.slice(this._startIndexForAppendedItems))),this._forgetNextPageLoading(),this._refreshContent()):this.option("items",e.slice())},_refreshContent:function(){this._prepareContent(),this._renderContent()},_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(),this._inkRipple&&delete this._inkRipple,this._resetActiveState()},_cleanItemContainer:function(){(0,o.Z)(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 Fd},_itemContentClass:function(){return this._itemClass()+Hd},_selectedItemClass:function(){return Kd},_itemResponseWaitClass:function(){return zd},_itemSelector:function(){return"."+this._itemClass()},_itemDataKey:function(){return Nd},_itemIndexKey:function(){return Zd},_itemElements:function(){return this._itemContainer().find(this._itemSelector())},_initMarkup:function(){this.callBase(),this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged"),this.$element().addClass(Vd),this._prepareContent()},_prepareContent:(0,v.Rg)((function(){this._renderContentImpl()})),_renderContent:function(){this._fireContentReadyAction()},_render:function(){this.callBase(),this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent()},_attachClickEvent:function(){var e=this._itemSelector(),t=(0,R.V4)(A.u,this.NAME),i=(0,R.V4)(B.Z.down,this.NAME),n=this,r=new T.Z((function(e){var t=e.event;n._itemPointerDownHandler(t)}));re.Z.off(this._itemContainer(),t,e),re.Z.off(this._itemContainer(),i,e),re.Z.on(this._itemContainer(),t,e,function(e){this._itemClickHandler(e)}.bind(this)),re.Z.on(this._itemContainer(),i,e,(function(e){r.execute({element:(0,o.Z)(e.target),event:e})}))},_itemClickHandler:function(e,t,i){this._itemDXEventHandler(e,"onItemClick",t,i)},_itemPointerDownHandler:function(e){this.option("focusStateEnabled")&&(this._itemFocusHandler=function(){if(clearTimeout(this._itemFocusTimeout),this._itemFocusHandler=null,!e.isDefaultPrevented()){var t=(0,o.Z)(e.target),i=t.closest(this._itemElements()),n=this._closestFocusable(t);i.length&&this._isFocusTarget(null===n||void 0===n?void 0:n.get(0))&&this.option("focusedElement",(0,se.u)(i))}}.bind(this),this._itemFocusTimeout=setTimeout(this._forcePointerDownFocus.bind(this)))},_closestFocusable:function(e){if(e.is(D.KW))return e;e=e.parent();while(e.length&&!ke["default"].isDocument(e.get(0))&&!ke["default"].isDocumentFragment(e.get(0))){if(e.is(D.KW))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(),i=(0,R.V4)(Sd.name,this.NAME);re.Z.off(e,i,t),re.Z.on(e,i,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._itemDXEventHandler(e,"onItemHold"):e.cancel=!0},_attachContextMenuEvent:function(){var e=this._itemContainer(),t=this._itemSelector(),i=(0,R.V4)(Pd,this.NAME);re.Z.off(e,i,t),re.Z.on(e,i,t,this._itemContextMenuHandler.bind(this))},_shouldFireContextMenuEvent:function(){return this.hasActionSubscription("onItemContextMenu")},_itemContextMenuHandler:function(e){this._shouldFireContextMenuEvent()?this._itemDXEventHandler(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&&(0,E.S6)(e,function(e,t){this._renderItem(this._renderedItemsCount+e,t)}.bind(this)),this._renderEmptyMessage()},_renderItem:function(e,t,i,n){var o,r=null!==(o=null===e||void 0===e?void 0:e.item)&&void 0!==o?o:e;i=i||this._itemContainer();var a=this._renderItemFrame(r,t,i,n);this._setElementData(a,t,r),a.attr(this.option("_itemAttributes")),this._attachItemClickEvent(t,a);var s=this._getItemContent(a),l=this._renderItemContent({index:r,itemData:t,container:(0,se.u)(s),contentClass:this._itemContentClass(),defaultTemplateName:this.option("itemTemplate")}),d=this;return(0,ot.gx)(l).done((function(i){d._postprocessRenderItem({itemElement:a,itemContent:i,itemData:t,itemIndex:r}),d._executeItemRenderAction(e,t,(0,se.u)(a))})),a},_getItemContent:function(e){var t=e.find("."+Ld);return t.removeClass(Ld),t},_attachItemClickEvent:function(e,t){e&&e.onClick&&re.Z.on(t,A.u,function(i){this._itemEventHandlerByHandler(t,e.onClick,{event:i})}.bind(this))},_renderItemContent:function(e){var t=this._getItemTemplateName(e),i=this._getTemplate(t);this._addItemContentClasses(e);var n=(0,o.Z)(this._createItemByTemplate(i,e));return n.hasClass(Ud)?this._renderItemContentByNode(e,n):e.container},_renderItemContentByNode:function(e,t){return(0,o.Z)(e.container).replaceWith(t),e.container=(0,se.u)(t),this._addItemContentClasses(e),t},_addItemContentClasses:function(e){var t=[Fd+Hd,e.contentClass];(0,o.Z)(e.container).addClass(t.join(" "))},_appendItemToContainer:function(e,t,i){t.appendTo(e)},_renderItemFrame:function(e,t,i,n){var r=(0,o.Z)("<div>");if(new this.constructor.ItemClass(r,this._itemOptions(),t||{}),n&&n.length?n.replaceWith(r):this._appendItemToContainer.call(this,i,r,e),this.option("useItemTextAsTitle")){var a=this._displayGetter?this._displayGetter(t):t;r.attr("title",a)}return r},_itemOptions:function(){var e=this;return{watchMethod:function(){return e.option("integrationOptions.watchMethod")},owner:e,fieldGetter:function(t){var i=e.option(t+"Expr"),n=(0,r.vb)(i);return n}}},_postprocessRenderItem:v.ZT,_executeItemRenderAction:function(e,t,i){this._getItemRenderAction()({itemElement:i,itemIndex:e,itemData:t})},_setElementData:function(e,t,i){e.addClass([Fd,this._itemClass()].join(" ")).data(this._itemDataKey(),t).data(this._itemIndexKey(),i)},_createItemRenderAction:function(){return this._itemRenderAction=this._createActionByOption("onItemRendered",{element:this.element(),excludeValidators:["disabled","readOnly"],category:"rendering"})},_getItemRenderAction:function(){return this._itemRenderAction||this._createItemRenderAction()},_getItemTemplateName:function(e){var t=e.itemData,i=e.templateProperty||this.option("itemTemplateProperty"),n=t&&t[i];return n||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(e){e=e||this.option("items");var t=this.option("noDataText"),i=!t||e&&e.length||this._dataController.isLoading();i&&this._$noData&&(this._$noData.remove(),this._$noData=null,this.setAria("label",void 0)),i||(this._$noData=this._$noData||(0,o.Z)("<div>").addClass("dx-empty-message"),this._$noData.appendTo(this._emptyMessageContainer()),this.option("encodeNoDataText")?this._$noData.text(t):this._$noData.html(t),this.setAria("label",t)),this.$element().toggleClass(jd,!i)},_itemDXEventHandler:function(e,t,i,n){this._itemEventHandler(e.target,t,(0,a.l)(i,{event:e}),n)},_itemEventHandler:function(e,t,i,n){var o=this._createActionByOption(t,(0,a.l)({validatingTargetName:"itemElement"},n));return this._itemEventHandlerImpl(e,o,i)},_itemEventHandlerByHandler:function(e,t,i,n){var o=this._createAction(t,(0,a.l)({validatingTargetName:"itemElement"},n));return this._itemEventHandlerImpl(e,o,i)},_itemEventHandlerImpl:function(e,t,i){var n=this._closestItemElement((0,o.Z)(e)),r=(0,a.l)({},i);return t((0,a.l)(i,this._extendActionArgs(n),r))},_extendActionArgs:function(e){return{itemElement:(0,se.u)(e),itemIndex:this._itemElements().index(e),itemData:this._getItemData(e)}},_closestItemElement:function(e){return(0,o.Z)(e).closest(this._itemSelector())},_getItemData:function(e){return(0,o.Z)(e).data(this._itemDataKey())},_getSummaryItemsWidth:function(e,t){var i=0;return e&&(0,E.S6)(e,(function(e,o){i+=(0,n.Y_)(o,t||!1)})),i},getFocusedItemId:function(){return this._focusedItemId||(this._focusedItemId="dx-"+new Li.Z),this._focusedItemId},itemElements:function(){return this._itemElements()},itemsContainer:function(){return this._itemContainer()}}).include(g.Z);ou.ItemClass=yd;var ru=ou,au=P.Z.abstract,su=P.Z.inherit({ctor:function(e){this._collectionWidget=e},getIndexByItemData:au,getItemDataByIndex:au,getKeysByItems:au,getItemsByKeys:au,itemsGetter:au,getKeyByIndex:function(e){var t=this._denormalizeItemIndex(e);return this.getKeysByItems([this.getItemDataByIndex(t)])[0]},_equalKeys:function(e,t){return this._collectionWidget._isKeySpecified()?(0,v.bY)(e,t):e===t},beginCache:function(){this._cache={}},endCache:function(){this._cache=null},getIndexByKey:au,getNormalizedIndex:function(e){return this._isNormalizedItemIndex(e)?e:this._isItemIndex(e)?this._normalizeItemIndex(e):this._isNode(e)?this._getNormalizedItemIndex(e):this._normalizeItemIndex(this.getIndexByItemData(e))},getIndex:function(e){return this._isNormalizedItemIndex(e)?this._denormalizeItemIndex(e):this._isItemIndex(e)?e:this._isNode(e)?this._denormalizeItemIndex(this._getNormalizedItemIndex(e)):this.getIndexByItemData(e)},getItemElement:function(e){if(this._isNormalizedItemIndex(e))return this._getItemByNormalizedIndex(e);if(this._isItemIndex(e))return this._getItemByNormalizedIndex(this._normalizeItemIndex(e));if(this._isNode(e))return(0,o.Z)(e);var t=this._normalizeItemIndex(this.getIndexByItemData(e));return this._getItemByNormalizedIndex(t)},_isNode:e=>ke["default"].isNode(e&&(0,l.ZU)(e)?e.get(0):e),deleteItemAtIndex:au,itemPlacementFunc:function(e,t){return this._itemsFromSameParent(e,t)&&e<t?"after":"before"},moveItemAtIndexToIndex:au,_isNormalizedItemIndex:function(e){return"number"===typeof e&&Math.round(e)===e},_isItemIndex:au,_getNormalizedItemIndex:au,_normalizeItemIndex:au,_denormalizeItemIndex:au,_getItemByNormalizedIndex:au,_itemsFromSameParent:au}),lu=su,du=lu.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)):this._getPlainItems().indexOf(e)},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),i=e;if(t){i=[];for(var n=0;n<e.length;n++)i.push(t(e[n]))}return i},getIndexByKey:function(e){var t=this._cache,i=t&&t.keys||this.getKeysByItems(this._getPlainItems());if(t&&!t.keys&&(t.keys=i),"object"!==typeof e)return i.indexOf(e);for(var n=0,o=i.length;n<o;n++)if(this._equalKeys(e,i[n]))return n;return-1},getItemsByKeys:function(e,t){return(t||e).slice()},moveItemAtIndexToIndex:function(e,t){var i=this._getPlainItems(),n=i[e];i.splice(e,1),i.splice(t,0,n)},_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}}),uu=du,cu=i(70710),hu=i(73322),pu=i(69164),fu=P.Z.inherit({ctor:function(e){this.options=e,this._setOption("disabledItemKeys",[]),this._clearItemKeys()},_clearItemKeys:function(){this._setOption("addedItemKeys",[]),this._setOption("removedItemKeys",[]),this._setOption("removedItems",[]),this._setOption("addedItems",[])},validate:v.ZT,_setOption:function(e,t){this.options[e]=t},onSelectionChanged:function(){var e=this.options.addedItemKeys,t=this.options.removedItemKeys,i=this.options.addedItems,n=this.options.removedItems,o=this.options.selectedItems,r=this.options.selectedItemKeys,a=this.options.onSelectionChanged||v.ZT;this._clearItemKeys(),a({selectedItems:o,selectedItemKeys:r,addedItemKeys:e,removedItemKeys:t,addedItems:i,removedItems:n})},equalKeys:function(e,t){return this.options.equalByReference&&(0,l.Kn)(e)&&(0,l.Kn)(t)?e===t:(0,v.bY)(e,t)},getSelectableItems:function(e){return e.filter((function(e){return!(null!==e&&void 0!==e&&e.disabled)}))},_clearSelection:function(e,t,i,n){return e=e||[],e=Array.isArray(e)?e:[e],this.validate(),this.selectedItemKeys(e,t,i,n)},_removeTemplateProperty:function(e){return Array.isArray(e)?e.map((e=>this._removeTemplateProperty(e))):((0,l.Kn)(e)&&delete e.template,e)},_loadFilteredData:function(e,t,i,n){var o=encodeURI(JSON.stringify(this._removeTemplateProperty(e))).length,r=this.options.maxFilterLengthInRequest&&o>this.options.maxFilterLengthInRequest,a=new ot.BH,s={filter:r?void 0:e,select:r?this.options.dataFields():i||this.options.dataFields()};return e&&0===e.length?a.resolve([]):this.options.load(s).done((function(i){var o=(0,l.PO)(i)?i.data:i;t&&!n?o=o.filter(t):r&&(o=(0,pu.Z)(o).filter(e).toArray()),a.resolve(o)})).fail(a.reject.bind(a)),a},updateSelectedItemKeyHash:function(e){for(var t=0;t<e.length;t++){var i=(0,v.k3)(e[t]);if(!(0,l.Kn)(i)){this.options.keyHashIndices[i]=this.options.keyHashIndices[i]||[];var n=this.options.keyHashIndices[i];n.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(),i=this.options.ignoreDisabledItems?this.options.selectedItems:this.options.selectedItems.filter((e=>!(null!==e&&void 0!==e&&e.disabled)));t&&(i=(0,pu.Z)(i).filter(t).toArray());var n=i.length,o=e.length-this.getSelectableItems(e).length;return n?n>=this.options.totalCount()-o||void 0:this._isAnyItemSelected(e)},_getVisibleSelectAllState:function(){for(var e=this.getSelectableItems(this.options.plainItems()),t=!1,i=!1,n=0;n<e.length;n++){var o=e[n],r=this.options.getItemData(o),a=this.options.keyOf(r);this.options.isSelectableItem(o)&&(this.isItemKeySelected(a)?t=!0:i=!0)}return!!t&&(!i||void 0)}}),gu=fu.inherit({getSelectedItems:function(){return this._loadFilteredData(this.options.selectionFilter)},getSelectedItemKeys:function(){var e=new ot.BH,t=this,i=this.options.key(),n=(0,l.HD)(i)?[i]:i;return this._loadFilteredData(this.options.selectionFilter,null,n).done((function(i){var n=i.map((function(e){return t.options.keyOf(e)}));e.resolve(n)})).fail(e.reject),e.promise()},selectedItemKeys:function(e,t,i,n){if(n){var o=this.options.filter(),r=!o||JSON.stringify(o)===JSON.stringify(this.options.selectionFilter)&&i;r?this._setOption("selectionFilter",i?[]:null):this._addSelectionFilter(i,o,n)}else{t||this._setOption("selectionFilter",[]);for(var a=0;a<e.length;a++)i?this.removeSelectedItem(e[a]):this.addSelectedItem(e[a])}return this.onSelectionChanged(),(new ot.BH).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||!!(0,pu.Z)([e]).filter(t).toArray().length},_getKeyExpr:function(){var e=this.options.key();return Array.isArray(e)&&1===e.length?e[0]:e},_normalizeKey:function(e){var t=this.options.key();return Array.isArray(t)&&1===t.length?e[t[0]]:e},_getFilterByKey:function(e){var t=this._getKeyExpr(),i=[t,"=",this._normalizeKey(e)];if(Array.isArray(t)){i=[];for(var n=0;n<t.length;n++)i.push([t[n],"=",e[t[n]]]),n!==t.length-1&&i.push("and")}return i},addSelectedItem:function(e){var t=this._getFilterByKey(e);this._addSelectionFilter(!1,t)},removeSelectedItem:function(e){var t=this._getFilterByKey(e);this._addSelectionFilter(!0,t)},validate:function(){var e=this.options.key;if(e&&void 0===e())throw Xt.Z.Error("E1042","Deferred selection")},_findSubFilter:function(e,t){if(!e)return-1;for(var i=JSON.stringify(t),n=0;n<e.length;n++){var o=e[n];if(o&&JSON.stringify(o)===i)return n}return-1},_isLastSubFilter:function(e,t){return!(!e||!t)&&(this._findSubFilter(e,t)===e.length-1||0===this._findSubFilter([e],t))},_addFilterOperator:function(e,t){return e.length>1&&(0,l.HD)(e[1])&&e[1]!==t&&(e=[e]),e.length&&e.push(t),e},_denormalizeFilter:function(e){return e&&(0,l.HD)(e[0])&&(e=[e]),e},_isOnlyNegativeFiltersLeft:function(e){return e.every(((e,t)=>t%2===0?Array.isArray(e)&&"!"===e[0]:"and"===e))},_addSelectionFilter:function(e,t,i){var n=e?["!",t]:t,o=e?"and":"or",r=!0,a=this.options.selectionFilter||[];if(a=this._denormalizeFilter(a),a&&a.length){var s=this._removeSameFilter(a,t,e,i),l=this._removeSameFilter(a,t,!e),d=e&&(-1!==s||-1!==l)&&this._isOnlyNegativeFiltersLeft(a);d&&(a=[]);var u=this._isKeyFilter(t)&&this._hasKeyFiltersOnlyStartingFromIndex(a,l);r=t.length&&!u,r&&(a=this._addFilterOperator(a,o))}r&&a.push(n),a=this._normalizeFilter(a),this._setOption("selectionFilter",e||a.length?a:null)},_normalizeFilter:function(e){return e&&1===e.length&&(e=e[0]),e},_removeFilterByIndex:function(e,t,i){var n=e[1];t>0?e.splice(t-1,2):e.splice(t,2),i&&"and"===n&&e.splice(0,e.length)},_isSimpleKeyFilter:function(e,t){return 3===e.length&&e[0]===t&&"="===e[1]},_isKeyFilter:function(e){if(2===e.length&&"!"===e[0])return this._isKeyFilter(e[1]);var t=this._getKeyExpr();if(Array.isArray(t)){if(e.length!==2*t.length-1)return!1;for(var i=0;i<t.length;i++){if(i>0&&"and"!==e[2*i-1])return!1;if(!this._isSimpleKeyFilter(e[2*i],t[i]))return!1}return!0}return this._isSimpleKeyFilter(e,t)},_hasKeyFiltersOnlyStartingFromIndex:function(e,t){if(t>=0){for(var i=t;i<e.length;i++)if("string"!==typeof e[i]&&!this._isKeyFilter(e[i]))return!1;return!0}return!1},_removeSameFilter:function(e,t,i,n){if(t=i?["!",t]:t,JSON.stringify(t)===JSON.stringify(e))return e.splice(0,e.length),0;var o=this._findSubFilter(e,t);if(o>=0)return this._removeFilterByIndex(e,o,n),o;for(var r=0;r<e.length;r++)if(Array.isArray(e[r])&&e[r].length>2){var a=this._removeSameFilter(e[r],t,!1,n);if(a>=0)return e[r].length?1===e[r].length&&(e[r]=e[r][0]):this._removeFilterByIndex(e,r,n),a}return-1},getSelectAllState:function(){var e=this.options.filter(),t=this.options.selectionFilter;return!t||!!t.length&&(e&&e.length?(t=this._denormalizeFilter(t),!!this._isLastSubFilter(t,e)||!this._isLastSubFilter(t,["!",e])&&void 0):void 0)}}),mu=i(37045),_u=function(e,t){var i=t(e);if((0,l.Kn)(i))try{return JSON.stringify(i)}catch(n){return i}return i},vu=function(e,t,i,n){var o=_u(e,n);return t[i[o]]},yu=function(e,t){if(e.length!==t.length)return!1;for(var i=0;i<t.length;i++)if(e[i]!==t[i])return!1;return!0},Cu=function(e,t,i,n){var o={},r={},a=0,s=0,l=[];e.forEach((function(e,t){var n=_u(e,i);o[n]=t})),t.forEach((function(e,t){var n=_u(e,i);r[n]=t}));for(var d=Math.max(e.length,t.length),u=0;u<d+a;u++){var c=t[u],h=u-a+s,p=e[h],f=!c||p&&!vu(p,t,r,i);if(f)p&&(l.push({type:"remove",key:i(p),index:u,oldItem:p}),s++,u--);else{var g=_u(c,i),m=o[g],_=e[m];if(_){if(m!==h)return;n(_,c)||l.push({type:"update",data:c,key:i(c),index:u,oldItem:_})}else a++,l.push({type:"insert",data:c,index:u})}}return l},bu=function(e,t){var i;this.getLocalFilter=function(e,t,i,n){return t=void 0===t?v.bY:t,o.bind(this,t,e,i,n)},this.getExpr=function(i){var n;if(i)return e.forEach((function(e,o){var a;n=n||[],o>0&&n.push(t?"and":"or"),a=(0,l.HD)(i)?r(i,e):function(e,i){for(var n=[],o=0,a=e.length;o<a;o++){var s=e[o],l=i&&i[s],d=r(s,l);if(!d)break;o>0&&n.push(t?"or":"and"),n.push(d)}return n}(i,e),n.push(a)})),n&&1===n.length&&(n=n[0]),n},this.getCombinedFilter=function(e,i){var n=this.getExpr(e),o=n;return t&&i&&(n?(o=[],o.push(n),o.push(i)):o=i),o};var n=function(e,t,i){return Array.isArray(i)?e.map((e=>t(e))):e};function o(o,r,a,s,d){var u,c,h=r(d);if(!a&&(u=(0,v.k3)(h),!(0,l.Kn)(u))){var p=function(t,o){if(!i){i={};for(var r=n(e,t,o),a=0;a<r.length;a++)i[(0,v.k3)(r[a])]=!0}return i}(r,s);return p[u]?!t:!!t}for(c=0;c<e.length;c++)if(o(e[c],h))return!t;return!!t}function r(e,i){if(void 0!==i)return[e,t?"<>":"=",i]}},xu=fu.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 i,n,o,r=this.options.keyOf;if(r){var a=t&&e.length>1&&!this.options.equalByReference;for(a&&(i={}),o=0;o<e.length;o++){var s=e[o],l=r(s);t?(n=this.removeSelectedItem(l,i,null===s||void 0===s?void 0:s.disabled),i&&n>=0&&(i[n]=!0)):this.addSelectedItem(l,s)}a&&this._batchRemoveSelectedItems(i)}},_batchRemoveSelectedItems:function(e){var t=this.options.selectedItemKeys.slice(0),i=this.options.selectedItems.slice(0);this.options.selectedItemKeys.length=0,this.options.selectedItems.length=0;for(var n=0;n<t.length;n++)e[n]||(this.options.selectedItemKeys.push(t[n]),this.options.selectedItems.push(i[n]));this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_loadSelectedItemsCore:function(e,t,i,n){var o=new ot.BH,r=this.options.key();if(!e.length&&!i)return o.resolve([]),o;if(i&&t&&!n)return o.resolve(this.getSelectedItems()),o;var a=new bu(e,i),s=a.getCombinedFilter(r,n),l=[];if(t){var d=this.options.selectedItems;l=s&&e.length!==d.length?(0,pu.Z)(d).filter(s).toArray():d.slice(0)}var u=l.length?l:this.options.plainItems(!0).filter(this.options.isSelectableItem).map(this.options.getItemData),c=a.getLocalFilter(this.options.keyOf,this.equalKeys.bind(this),this.options.equalByReference,r);return u=u.filter(c),l.length||!i&&u.length===e.length?o.resolve(u):o=this._loadFilteredData(s,c,null,i),o},_replaceSelectionUpdate:function(e){var t=[],i=this.options.keyOf;if(i){for(var n=0;n<e.length;n++){var o=e[n],r=i(o);t.push(r)}this.setSelectedItems(t,e)}},_warnOnIncorrectKeys:function(e){for(var t=this.options.allowNullValue,i=0;i<e.length;i++){var n=e[i];t&&null===n||this.isItemKeySelected(n)||Xt.Z.log("W1002",n)}},_isMultiSelectEnabled:function(){var e=this.options.mode;return"all"===e||"multiple"===e},_requestInProgress:function(){var e;return"pending"===(null===(e=this._lastLoadDeferred)||void 0===e?void 0:e.state())},_concatRequestsItems:function(e,t,i,n){var o,r=t?e:[];return o=n||(0,mu.R1)(e,this.options.selectedItemKeys),{addedItems:i.added.concat(o),removedItems:i.removed.concat(r),keys:e}},_collectLastRequestData:function(e,t,i,n){var o=t&&i,r={added:[],removed:[]},a=this._isMultiSelectEnabled(),s=a?this._lastRequestData:{};return a&&(this._shouldMergeWithLastRequest&&(o?(this._lastLoadDeferred.reject(),s={}):yu(e,this.options.selectedItemKeys)||(r.added=s.addedItems,r.removed=s.removedItems,t||this._lastLoadDeferred.reject())),s=this._concatRequestsItems(e,t,r,this._shouldMergeWithLastRequest?void 0:n)),s},_updateKeysByLastRequestData:function(e,t,i){var n,o,r=e;this._isMultiSelectEnabled()&&this._shouldMergeWithLastRequest&&!t&&!i&&(r=(0,mu.R1)(e.concat(null===(n=this._lastRequestData)||void 0===n?void 0:n.addedItems),null===(o=this._lastRequestData)||void 0===o?void 0:o.removedItems),r=(0,mu.rZ)(r));return r},_loadSelectedItems:function(e,t,i,n){var o=this,r=new ot.BH,a=o.options.filter();return this._shouldMergeWithLastRequest=this._requestInProgress(),this._lastRequestData=this._collectLastRequestData(e,t,i,n),(0,ot.gx)(o._lastLoadDeferred).always((function(){var n=o._updateKeysByLastRequestData(e,t,i);o._shouldMergeWithLastRequest=!1,o._loadSelectedItemsCore(n,t,i,a).done(r.resolve).fail(r.reject)})),o._lastLoadDeferred=r,r},selectedItemKeys:function(e,t,i,n,o){var r=this,a=r._loadSelectedItems(e,i,n,o);return a.done((function(e){t?r._preserveSelectionUpdate(e,i):r._replaceSelectionUpdate(e),r.onSelectionChanged()})),a},addSelectedItem:function(e,t){if((0,l.$K)(t)&&!this.options.ignoreDisabledItems&&t.disabled)-1===this.options.disabledItemKeys.indexOf(e)&&this.options.disabledItemKeys.push(e);else{var i=this._getKeyHash(e);-1===this._indexOfSelectedItemKey(i)&&(!(0,l.Kn)(i)&&this.options.keyHashIndices&&(this.options.keyHashIndices[i]=[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 i=this.options.selectedItemKeys,n=0;n<i.length;n++)if((!t||!t[n])&&this.equalKeys(i[n],e))return n;return-1},_getSelectedIndexByHash:function(e,t){var i=this.options.keyHashIndices[e];return i&&i.length>1&&t&&(i=i.filter((function(e){return!t[e]}))),i&&i[0]>=0?i[0]:-1},_indexOfSelectedItemKey:function(e,t){var i;return i=this.options.equalByReference?this.options.selectedItemKeys.indexOf(e):(0,l.Kn)(e)?this._getSelectedIndexByKey(e,t):this._getSelectedIndexByHash(e,t),i},_shiftSelectedKeyIndices:function(e){for(var t=e;t<this.options.selectedItemKeys.length;t++){var i=this.options.selectedItemKeys[t],n=(0,v.k3)(i),o=this.options.keyHashIndices[n];if(o)for(var r=0;r<o.length;r++)o[r]>e&&o[r]--}},removeSelectedItem:function(e,t,i){if(this.options.ignoreDisabledItems||!i){var n=this._getKeyHash(e),o=!!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]),o)return r;if(this.options.selectedItemKeys.splice(r,1),this.options.selectedItems.splice(r,1),(0,l.Kn)(n)||!this.options.keyHashIndices)return r;var a=this.options.keyHashIndices[n];return a?(a.shift(),a.length||delete this.options.keyHashIndices[n],this._shiftSelectedKeyIndices(r),r):r}},_updateAddedItemKeys:function(e,t){for(var i=0;i<e.length;i++)this.isItemKeySelected(e[i])||(this.options.addedItemKeys.push(e[i]),this.options.addedItems.push(t[i]))},_updateRemovedItemKeys:function(e,t,i){for(var n=0;n<t.length;n++)this.isItemKeySelected(t[n])||(this.options.removedItemKeys.push(t[n]),this.options.removedItems.push(i[n]))},_isItemSelectionInProgress:function(e,t){var i=t&&this._lastRequestData&&this._requestInProgress();if(i){var n,o=null!==(n=this._lastRequestData.addedItems)&&void 0!==n?n:[];return o.includes(e)}return!1},_getKeyHash:function(e){return this.options.equalByReference?e:(0,v.k3)(e)},setSelectedItems:function(e,t){this._updateAddedItemKeys(e,t);var i=this.options.selectedItemKeys,n=this.options.selectedItems;this.options.equalByReference||(this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(e)),this._setOption("selectedItemKeys",e),this._setOption("selectedItems",t),this._updateRemovedItemKeys(e,i,n)},isItemDataSelected:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.options.keyOf(e);return this.isItemKeySelected(i,t)},isItemKeySelected:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this._isItemSelectionInProgress(e,t.checkPending);if(!i){var n=this._getKeyHash(e),o=this._indexOfSelectedItemKey(n);i=-1!==o}return i},getSelectAllState:function(e){return e?this._getVisibleSelectAllState():this._getFullSelectAllState()}}),wu=P.Z.inherit({ctor:function(e){this.options=(0,a.l)(this._getDefaultOptions(),e,{selectedItemKeys:e.selectedKeys||[]}),this._selectionStrategy=this.options.deferred?new gu(this.options):new xu(this.options),this._focusedItemIndex=-1,this.options.equalByReference||this._selectionStrategy.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_getDefaultOptions:function(){return{allowNullValue:!1,deferred:!1,equalByReference:!1,mode:"multiple",selectedItems:[],selectionFilter:[],maxFilterLengthInRequest:0,onSelectionChanged:v.ZT,key:v.ZT,keyOf:function(e){return e},load:function(){return(new ot.BH).resolve([])},totalCount:function(){return-1},isSelectableItem:function(){return!0},isItemSelected:function(){return!1},getItemData:function(e){return e},dataFields:v.ZT,filter:v.ZT}},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,t){return this.selectedItemKeys(e,!1,!1,!1,t)},select:function(e){return this.selectedItemKeys(e,!0)},deselect:function(e){return this.selectedItemKeys(e,!0,!0)},selectedItemKeys:function(e,t,i,n,o){var r;return e=null!==(r=e)&&void 0!==r?r:[],e=Array.isArray(e)?e:[e],this.validate(),this._selectionStrategy.selectedItemKeys(e,t,i,n,o)},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,i){var n,o,r,a,s,d=this.options.plainItems(),u=d[e],c=null===(n=(o=this.options).allowLoadByRange)||void 0===n?void 0:n.call(o),h=!1,p=!1,f=e=>e>=0&&!d.filter((t=>t.loadIndex===e)).length;if(c&&(s=u.loadIndex-e,e=u.loadIndex,h=f(this._focusedItemIndex),(0,l.$K)(this._shiftFocusedItemIndex)&&(p=f(this._shiftFocusedItemIndex))),!this.isSelectable()||!this.isDataItem(u))return!1;var g=this.options.getItemData(u),m=this.options.keyOf(g);if(t=t||{},t.shift&&"multiple"===this.options.mode&&this._focusedItemIndex>=0)h||p?(r=e!==this._shiftFocusedItemIndex||this._focusedItemIndex!==this._shiftFocusedItemIndex,r&&(a=this.changeItemSelectionWhenShiftKeyInVirtualPaging(e))):r=this.changeItemSelectionWhenShiftKeyPressed(e,d,s);else if(t.control){if(this._resetItemSelectionWhenShiftKeyPressed(),!i){var _=this._selectionStrategy.isItemDataSelected(g);"single"===this.options.mode&&this.clearSelectedItems(),_?this._removeSelectedItem(m):this._addSelectedItem(g,m)}r=!0}else{this._resetItemSelectionWhenShiftKeyPressed();var v=this._selectionStrategy.equalKeys(this.options.selectedItemKeys[0],m);1===this.options.selectedItemKeys.length&&v||(this._setSelectedItems([m],[g]),r=!0)}return r?((0,ot.gx)(a).done((()=>{this._focusedItemIndex=e,!i&&this.onSelectionChanged()})),!0):void 0},isDataItem:function(e){return this.options.isSelectableItem(e)},isSelectable:function(){return"single"===this.options.mode||"multiple"===this.options.mode},isItemDataSelected:function(e){return this._selectionStrategy.isItemDataSelected(e,{checkPending:!0})},isItemSelected:function(e,t){return this._selectionStrategy.isItemKeySelected(e,t)},_resetItemSelectionWhenShiftKeyPressed:function(){delete this._shiftFocusedItemIndex},_resetFocusedItemIndex:function(){this._focusedItemIndex=-1},changeItemSelectionWhenShiftKeyInVirtualPaging:function(e){var t=this.options.getLoadOptions(e,this._focusedItemIndex,this._shiftFocusedItemIndex),i=new ot.BH,n=t.skip;return this.options.load(t).done((t=>{this.changeItemSelectionWhenShiftKeyPressed(e,t,n),i.resolve()})),i.promise()},changeItemSelectionWhenShiftKeyPressed:function(e,t,i){var n,o,r,a,s,d=!1,u=(0,l.$K)(i),c=u?this._focusedItemIndex-i:this._focusedItemIndex,h=this.options.keyOf,p=t[c],f=this.options.getItemData(p),g=h(f),m=p&&this.isItemDataSelected(f);if((0,l.$K)(this._shiftFocusedItemIndex)||(this._shiftFocusedItemIndex=this._focusedItemIndex),this._shiftFocusedItemIndex!==this._focusedItemIndex)for(n=this._focusedItemIndex<this._shiftFocusedItemIndex?1:-1,a=u?this._focusedItemIndex-i:this._focusedItemIndex,s=u?this._shiftFocusedItemIndex-i:this._shiftFocusedItemIndex,c=a;c!==s;c+=n)(u||this.isDataItem(t[c]))&&(r=h(this.options.getItemData(t[c])),this._removeSelectedItem(r),d=!0);if(e!==this._shiftFocusedItemIndex)for(n=e<this._shiftFocusedItemIndex?1:-1,a=u?e-i:e,s=u?this._shiftFocusedItemIndex-i:this._shiftFocusedItemIndex,c=a;c!==s;c+=n)(u||this.isDataItem(t[c]))&&(o=this.options.getItemData(t[c]),r=h(o),this._addSelectedItem(o,r),d=!0);return!u&&!this.isDataItem(p)||m||(this._addSelectedItem(f,g),d=!0),d},clearSelectedItems:function(){this._setSelectedItems([],[])},selectAll:function(e){return this._resetFocusedItemIndex(),e?this._onePageSelectAll(!1):this.selectedItemKeys([],!0,!1,!0)},deselectAll:function(e){return this._resetFocusedItemIndex(),e?this._onePageSelectAll(!0):this.selectedItemKeys([],!0,!0,!0)},_onePageSelectAll:function(e){for(var t=this._selectionStrategy.getSelectableItems(this.options.plainItems()),i=0;i<t.length;i++){var n=t[i];if(this.isDataItem(n)){var o=this.options.getItemData(n),r=this.options.keyOf(o),a=this.isItemSelected(r);a||e||this._addSelectedItem(o,r),a&&e&&this._removeSelectedItem(r)}}return this.onSelectionChanged(),(new ot.BH).resolve()},getSelectAllState:function(e){return this._selectionStrategy.getSelectAllState(e)}}),Tu="dxItemDeleting",Su=-1,Iu=function(e){return e!==Su},Eu=ru.inherit({_setOptionsByReference:function(){this.callBase(),(0,a.l)(this._optionsByReference,{selectedItem:!0})},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{selectionMode:"none",selectionRequired:!1,selectionByClick:!0,selectedItems:[],selectedItemKeys:[],maxFilterLengthInRequest:1500,keyExpr:null,selectedIndex:Su,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()},_initKeyGetter:function(){this._keyGetter=(0,r.vb)(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._dataController.key()},_getCombinedFilter:function(){return this._dataController.filter()},key:function(){return this.option("keyExpr")?this.option("keyExpr"):this._dataController.key()},keyOf:function(e){var t=e;return this.option("keyExpr")?t=this._keyGetter(e):this._dataController.store()&&(t=this._dataController.keyOf(e)),t},_nullValueSelectionSupported:function(){return!1},_initSelectionModule:function(){var e=this,t=e._editStrategy.itemsGetter;this._selection=new wu({allowNullValue:this._nullValueSelectionSupported(),mode:this.option("selectionMode"),maxFilterLengthInRequest:this.option("maxFilterLengthInRequest"),equalByReference:!this._isKeySpecified(),onSelectionChanged:function(t){(t.addedItemKeys.length||t.removedItemKeys.length)&&(e.option("selectedItems",e._getItemsByKeys(t.selectedItemKeys,t.selectedItems)),e._updateSelectedItems(t))},filter:e._getCombinedFilter.bind(e),totalCount:function(){var t=e.option("items"),i=e._dataController.totalCount();return i>=0?i:e._getItemsCount(t)},key:e.key.bind(e),keyOf:e.keyOf.bind(e),load:function(t){var i,n=e._dataController;return t.customQueryParams=null===(i=n.loadOptions())||void 0===i?void 0:i.customQueryParams,t.userData=n.userData(),n.store()?n.loadFromStore(t).done((function(t){if(!e._disposed){var i=(0,hu.r6)(t).data;n.applyMapFunction(i)}})):(new ot.BH).resolve(this.plainItems())},dataFields:function(){return e._dataController.select()},plainItems:t.bind(e._editStrategy)})},_getItemsCount:function(e){return e.reduce(((e,t)=>e+(t.items?this._getItemsCount(t.items):1)),0)},_initEditStrategy:function(){var e=uu;this._editStrategy=new e(this)},_getSelectedItemIndices:function(e){var t=this,i=[];return e=e||this._selection.getSelectedItemKeys(),t._editStrategy.beginCache(),(0,E.S6)(e,(function(e,n){var o=t._getIndexByKey(n);Iu(o)&&i.push(o)})),t._editStrategy.endCache(),i},_initMarkup:function(){this._rendering=!0,this._dataController.isLoading()||this._syncSelectionOptions().done((()=>this._normalizeSelectedItems())),this.callBase()},_render:function(){this.callBase(),this._rendering=!1},_fireContentReadyAction:function(){this._rendering=!1,this._rendered=!0,this.callBase.apply(this,arguments)},_syncSelectionOptions:function(e){var t,i,n,o;switch(e=e||this._chooseSelectOption(),e){case"selectedIndex":t=this._editStrategy.getItemDataByIndex(this.option("selectedIndex")),(0,l.$K)(t)?(this._setOptionWithoutOptionChange("selectedItems",[t]),this._setOptionWithoutOptionChange("selectedItem",t),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems([t]))):(this._setOptionWithoutOptionChange("selectedItems",[]),this._setOptionWithoutOptionChange("selectedItemKeys",[]),this._setOptionWithoutOptionChange("selectedItem",null));break;case"selectedItems":if(o=this.option("selectedItems")||[],i=o.length?this._editStrategy.getIndexByItemData(o[0]):Su,this.option("selectionRequired")&&!Iu(i))return this._syncSelectionOptions("selectedIndex");this._setOptionWithoutOptionChange("selectedItem",o[0]),this._setOptionWithoutOptionChange("selectedIndex",i),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems(o));break;case"selectedItem":if(t=this.option("selectedItem"),i=this._editStrategy.getIndexByItemData(t),this.option("selectionRequired")&&!Iu(i))return this._syncSelectionOptions("selectedIndex");(0,l.$K)(t)?(this._setOptionWithoutOptionChange("selectedItems",[t]),this._setOptionWithoutOptionChange("selectedIndex",i),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems([t]))):(this._setOptionWithoutOptionChange("selectedItems",[]),this._setOptionWithoutOptionChange("selectedItemKeys",[]),this._setOptionWithoutOptionChange("selectedIndex",Su));break;case"selectedItemKeys":if(n=this.option("selectedItemKeys"),this.option("selectionRequired")){var r=this._getIndexByKey(n[0]);if(!Iu(r))return this._syncSelectionOptions("selectedIndex")}return this._selection.setSelection(n)}return(new ot.BH).resolve().promise()},_chooseSelectOption:function(){var e="selectedIndex",t=function(e){var t=this.option(e),i=(0,l.$K)(t)&&t.length;return i||e in this._userOptions}.bind(this);return t("selectedItems")?e="selectedItems":t("selectedItem")?e="selectedItem":t("selectedItemKeys")&&(e="selectedItemKeys"),e},_compareKeys:function(e,t){if(e.length!==t.length)return!1;for(var i=0;i<t.length;i++)if(e[i]!==t[i])return!1;return!0},_normalizeSelectedItems:function(){if("none"===this.option("selectionMode"))this._setOptionWithoutOptionChange("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(),i=void 0===e[0]?t[0]:e[0];return void 0===i&&(i=this._editStrategy.itemsGetter()[0]),this.option("grouped")&&i&&i.items&&(i.items=[i.items[0]]),this._selection.setSelection(this._getKeysByItems([i])),this._setOptionWithoutOptionChange("selectedItems",[i]),this._syncSelectionOptions("selectedItems")}this._selection.setSelection(this._getKeysByItems(e))}else{var n=this._getKeysByItems(this.option("selectedItems")),o=this._selection.getSelectedItemKeys();this._compareKeys(o,n)||this._selection.setSelection(n)}return(new ot.BH).resolve().promise()},_itemClickHandler:function(e){var t=(new ot.BH).resolve(),i=this.callBase;this._createAction(function(e){var i;t=null!==(i=this._itemSelectHandler(e.event))&&void 0!==i?i:t}.bind(this),{validatingTargetName:"itemElement"})({itemElement:(0,o.Z)(e.currentTarget),event:e}),t.always((()=>{i.apply(this,arguments)}))},_itemSelectHandler:function(e){var t,i;if(this.option("selectionByClick")){var n=e.currentTarget;return this.isItemSelected(n)?this.unselectItem(e.currentTarget):i=this.selectItem(e.currentTarget),null===(t=i)||void 0===t?void 0:t.promise()}},_selectedItemElement:function(e){return this._itemElements().eq(e)},_postprocessRenderItem:function(e){if("none"!==this.option("selectionMode")){var t=(0,o.Z)(e.itemElement),i=this._editStrategy.getNormalizedIndex(t),n=this._isItemSelected(i);this._processSelectableItem(t,n)}},_processSelectableItem:function(e,t){e.toggleClass(this._selectedItemClass(),t),this._setAriaSelected(e,String(t))},_updateSelectedItems:function(e){var t=this,i=e.addedItemKeys,n=e.removedItemKeys;if(t._rendered&&(i.length||n.length)){var o=t._selectionChangePromise;if(!t._rendering){var r,a=[],s=[];t._editStrategy.beginCache();for(var l=0;l<i.length;l++)r=t._getIndexByKey(i[l]),a.push(r),t._addSelection(r);for(var d=0;d<n.length;d++)r=t._getIndexByKey(n[d]),s.push(r),t._removeSelection(r);t._editStrategy.endCache(),t._updateSelection(a,s)}(0,ot.gx)(o).done((function(){t._fireSelectionChangeEvent(e.addedItems,e.removedItems)}))}},_fireSelectionChangeEvent:function(e,t){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:e,removedItems:t})},_updateSelection:v.ZT,_setAriaSelected:function(e,t){this.setAria("selected",t,e)},_removeSelection:function(e){var t=this._editStrategy.getItemElement(e);Iu(e)&&(this._processSelectableItem(t,!1),re.Z.triggerHandler(t,"stateChanged",!1))},_addSelection:function(e){var t=this._editStrategy.getItemElement(e);Iu(e)&&(this._processSelectableItem(t,!0),re.Z.triggerHandler(t,"stateChanged",!0))},_isItemSelected:function(e){var t=this._getKeyByIndex(e);return this._selection.isItemSelected(t,{checkPending:!0})},_optionChanged:function(e){switch(e.name){case"selectionMode":this._invalidate();break;case"dataSource":(!e.value||Array.isArray(e.value)&&!e.value.length)&&this.option("selectedItemKeys",[]),this.callBase(e);break;case"selectedIndex":case"selectedItem":case"selectedItems":case"selectedItemKeys":this._syncSelectionOptions(e.name).done((()=>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._setOptionWithoutOptionChange("selectedItems",[]),this._syncSelectionOptions("selectedItems")},_waitDeletingPrepare:function(e){if(e.data(Tu))return(new ot.BH).resolve().promise();e.data(Tu,!0);var t=new ot.BH,i={cancel:!1},n=this._itemEventHandler(e,"onItemDeleting",i,{excludeValidators:["disabled","readOnly"]});return(0,ot.gx)(n).always(function(o){var r=!n,a=!r&&"resolved"===n.state(),s=!!arguments.length,l=r||a&&!s||a&&o;(0,ot.gx)((0,ot.p4)(i.cancel)).always((function(){e.data(Tu,!1)})).done((function(e){l&&!e?t.resolve():t.reject()})).fail(t.reject)}.bind(this)),t.promise()},_deleteItemFromDS:function(e){var t=this._dataController,i=new ot.BH,n=this.option("disabled"),o=t.store();if(!o)return(new ot.BH).resolve().promise();if(!o.remove)throw Xt.Z.Error("E1011");return this.option("disabled",!0),o.remove(t.keyOf(this._getItemData(e))).done((function(e){void 0!==e?i.resolve():i.reject()})).fail((function(){i.reject()})),i.always(function(){this.option("disabled",n)}.bind(this)),i},_tryRefreshLastPage:function(){var e=new ot.BH;return this._isLastPage()||this.option("grouped")?e.resolve():this._refreshLastPage().done((function(){e.resolve()})),e.promise()},_refreshLastPage:function(){return this._expectLastItemLoading(),this._dataController.load()},_updateSelectionAfterDelete:function(e){var t=this._getKeyByIndex(e);this._selection.deselect([t])},_updateIndicesAfterIndex:function(e){for(var t=this._itemElements(),i=e+1;i<t.length;i++)(0,o.Z)(t[i]).data(this._itemIndexKey(),i-1)},_simulateOptionChange:function(e){var t=this.option(e);t instanceof cu.o||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(Iu(t)){var i=this._getKeyByIndex(t);if(!this._selection.isItemSelected(i)){if("single"===this.option("selectionMode"))return this._selection.setSelection([i]);var n=this.option("selectedItemKeys")||[];return this._selection.setSelection([...n,i],[i])}}}},unselectItem:function(e){var t=this._editStrategy.getNormalizedIndex(e);if(Iu(t)){var i=this._selection.getSelectedItemKeys();if(!(this.option("selectionRequired")&&i.length<=1)){var n=this._getKeyByIndex(t);this._selection.isItemSelected(n,{checkPending:!0})&&this._selection.deselect([n])}}},_deleteItemElementByIndex:function(e){this._updateSelectionAfterDelete(e),this._updateIndicesAfterIndex(e),this._editStrategy.deleteItemAtIndex(e)},_afterItemElementDeleted:function(e,t){var i=this._dataController.getDataSource()?"dataSource":"items";this._simulateOptionChange(i),this._itemEventHandler(e,"onItemDeleted",t,{beforeExecute:function(){e.remove()},excludeValidators:["disabled","readOnly"]}),this._renderEmptyMessage()},deleteItem:function(e){var t=this,i=new ot.BH,n=this._editStrategy.getItemElement(e),o=this._editStrategy.getNormalizedIndex(e),r=this._itemResponseWaitClass();return Iu(o)?this._waitDeletingPrepare(n).done((function(){n.addClass(r);var e=t._extendActionArgs(n);t._deleteItemFromDS(n).done((function(){t._deleteItemElementByIndex(o),t._afterItemElementDeleted(n,e),t._tryRefreshLastPage().done((function(){i.resolveWith(t)}))})).fail((function(){n.removeClass(r),i.rejectWith(t)}))})).fail((function(){i.rejectWith(t)})):i.rejectWith(t),i.promise()},reorderItem:function(e,t){var i=new ot.BH,n=this,o=this._editStrategy,r=o.getItemElement(e),a=o.getItemElement(t),s=o.getNormalizedIndex(e),l=o.getNormalizedIndex(t),d=this._dataController.getDataSource()?"dataSource":"items",u=Iu(s)&&Iu(l)&&s!==l;return u?i.resolveWith(this):i.rejectWith(this),i.promise().done((function(){a[o.itemPlacementFunc(s,l)](r),o.moveItemAtIndexToIndex(s,l),this._updateIndicesAfterIndex(s),n.option("selectedItems",n._getItemsByKeys(n._selection.getSelectedItemKeys(),n._selection.getSelectedItems())),"items"===d&&n._simulateOptionChange(d),n._itemEventHandler(r,"onItemReordered",{fromIndex:o.getIndex(s),toIndex:o.getIndex(l)},{excludeValidators:["disabled","readOnly"]})}))}}),Du=Eu,ku=Du.inherit({_initMarkup(){this._deferredItems=[],this.callBase()},_renderItemContent(e){var t=new ot.BH,i=new ot.BH;this._deferredItems[e.index]=i;var n=this.callBase.call(this,e);return i.done((()=>{t.resolve(n)})),t.promise()},_createItemByTemplate(e,t){return e.render({model:t.itemData,container:t.container,index:t.index,onRendered:()=>{this._deferredItems[t.index].resolve()}})},_postProcessRenderItems:v.ZT,_renderItemsAsync(){var e=new ot.BH;return ot.gx.apply(this,this._deferredItems).done((()=>{this._postProcessRenderItems(),e.resolve()})),e.promise()},_clean(){this.callBase(),this._deferredItems=[]}}),Ou=ku,Au="dx-toolbar",Pu="dx-toolbar-before",Mu="dx-toolbar-center",Ru="dx-toolbar-after",Bu="dx-toolbar-mini",Vu="dx-toolbar-item",Fu="dx-toolbar-label",Hu="dx-toolbar-button",Lu="dx-toolbar-items-container",Nu="dx-toolbar-group",Zu="dx-toolbar-compact",$u="text",Wu="default",Ku="contained",zu="dxToolbarItemDataKey",ju=15;class Uu extends Ou{_getSynchronizableOptionsForCreateComponent(){return super._getSynchronizableOptionsForCreateComponent().filter((e=>"disabled"!==e))}_initTemplates(){super._initTemplates();var e=new Bd(function(e,t,i){if((0,l.PO)(t)){var n,{text:o,html:r,widget:a}=t;if(o&&e.text(o).wrapInner("<div>"),r&&e.html(r),"dxDropDownButton"===a)t.options=null!==(n=t.options)&&void 0!==n?n:{},(0,l.$K)(t.options.stylingMode)||(t.options.stylingMode=this.option("useFlatButtons")?$u:Ku);if("dxButton"===a){var s,d,u,c;if(this.option("useFlatButtons"))t.options=null!==(s=t.options)&&void 0!==s?s:{},t.options.stylingMode=null!==(d=t.options.stylingMode)&&void 0!==d?d:$u;if(this.option("useDefaultButtons"))t.options=null!==(u=t.options)&&void 0!==u?u:{},t.options.type=null!==(c=t.options.type)&&void 0!==c?c:Wu}}else e.text(String(t));this._getTemplate("dx-polymorph-widget").render({container:e,model:i,parent:this})}.bind(this),["text","html","widget","options"],this.option("integrationOptions.watchMethod"));this._templateManager.addDefaultTemplates({item:e,menuItem:e})}_getDefaultOptions(){return(0,a.l)(super._getDefaultOptions(),{renderAs:"topToolbar",grouped:!1,useFlatButtons:!1,useDefaultButtons:!1})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:function(){return(0,x.x2)()},options:{useFlatButtons:!0}}])}_itemContainer(){return this._$toolbarItemsContainer.find([".".concat(Pu),".".concat(Mu),".".concat(Ru)].join(","))}_itemClass(){return Vu}_itemDataKey(){return zu}_dimensionChanged(){this._arrangeItems(),this._applyCompactMode()}_initMarkup(){this._renderToolbar(),this._renderSections(),super._initMarkup()}_render(){super._render(),this._renderItemsAsync(),this._updateDimensionsInMaterial()}_postProcessRenderItems(){this._arrangeItems()}_renderToolbar(){this.$element().addClass(Au),this._$toolbarItemsContainer=(0,o.Z)("<div>").addClass(Lu).appendTo(this.$element()),this.setAria("role","toolbar")}_renderSections(){var e=this._$toolbarItemsContainer;(0,E.S6)(["before","center","after"],((t,i)=>{var n="dx-toolbar-".concat(i),r=e.find(".".concat(n));r.length||(this["_$".concat(i,"Section")]=(0,o.Z)("<div>").addClass(n).appendTo(e))}))}_arrangeItems(e){var t;e=null!==(t=e)&&void 0!==t?t:(0,n.dz)(this.$element()),this._$centerSection.css({margin:"0 auto",float:"none"});var i=Pe(this._$beforeSection.get(0)),o=Pe(this._$afterSection.get(0));this._alignCenterSection(i,o,e);var r=this._$toolbarItemsContainer.find(".".concat(Fu)).eq(0),a=r.parent();if(r.length){var s=i.width?i.width:r.position().left,l=a.hasClass(Pu)?0:s,d=a.hasClass(Ru)?0:o.width,u=0;a.children().not(".".concat(Fu)).each((function(){u+=(0,n.Y_)(this)}));var c=e-u,h=Math.max(c-l-d,0);if(a.hasClass(Pu))this._alignSection(this._$beforeSection,h);else{var p=(0,n.Y_)(r)-(0,n.dz)(r);r.css("maxWidth",h-p)}}}_alignCenterSection(e,t,i){this._alignSection(this._$centerSection,i-e.width-t.width);var n=this.option("rtlEnabled"),o=n?t:e,r=n?e:t,a=Pe(this._$centerSection.get(0));(o.right>a.left||a.right>r.left)&&this._$centerSection.css({marginLeft:o.width,marginRight:r.width,float:o.width>r.width?"none":"right"})}_alignSection(e,t){var i=e.find(".".concat(Fu)),n=i.toArray();t-=this._getCurrentLabelsPaddings(n);var o=this._getCurrentLabelsWidth(n),r=Math.abs(o-t);t<o?(n=n.reverse(),this._alignSectionLabels(n,r,!1)):this._alignSectionLabels(n,r,!0)}_alignSectionLabels(e,t,i){for(var n=function(e){return Pe(e).width},r=0;r<e.length;r++){var a=(0,o.Z)(e[r]),s=Math.ceil(n(e[r])),l=void 0;i&&a.css("maxWidth","inherit");var d=Math.ceil(i?n(e[r]):s);if(!(d<t)){l=i?s+t:s-t,a.css("maxWidth",l);break}l=i?d:0,t-=d,a.css("maxWidth",l)}}_applyCompactMode(){var e=this.$element();e.removeClass(Zu),this.option("compactMode")&&this._getSummaryItemsWidth(this.itemElements(),!0)>(0,n.dz)(e)&&e.addClass(Zu)}_getCurrentLabelsWidth(e){var t=0;return e.forEach((function(e,i){t+=(0,n.Y_)(e)})),t}_getCurrentLabelsPaddings(e){var t=0;return e.forEach((function(e,i){t+=(0,n.Y_)(e)-(0,n.dz)(e)})),t}_renderItem(e,t,i,n){var o,r,a=null!==(o=t.location)&&void 0!==o?o:"center",s=null!==i&&void 0!==i?i:this["_$".concat(a,"Section")],l=!!(null!==(r=t.text)&&void 0!==r?r:t.html),d=super._renderItem(e,t,s,n);return d.toggleClass(Hu,!l).toggleClass(Fu,l).addClass(t.cssClass),d}_renderGroupedItems(){(0,E.S6)(this.option("items"),((e,t)=>{var i,n=t.items,r=(0,o.Z)("<div>").addClass(Nu),a=null!==(i=t.location)&&void 0!==i?i:"center";n&&n.length&&((0,E.S6)(n,((e,t)=>{this._renderItem(e,t,r,null)})),this._$toolbarItemsContainer.find(".dx-toolbar-".concat(a)).append(r))}))}_renderItems(e){var t=this.option("grouped")&&e.length&&e[0].items;t?this._renderGroupedItems():super._renderItems(e)}_getToolbarItems(){var e;return null!==(e=this.option("items"))&&void 0!==e?e:[]}_renderContentImpl(){var e=this._getToolbarItems();this.$element().toggleClass(Bu,0===e.length),this._renderedItemsCount?this._renderItems(e.slice(this._renderedItemsCount)):this._renderItems(e),this._applyCompactMode()}_renderEmptyMessage(){}_clean(){this._$toolbarItemsContainer.children().empty(),this.$element().empty(),delete this._$beforeSection,delete this._$centerSection,delete this._$afterSection}_visibilityChanged(e){e&&this._arrangeItems()}_isVisible(){return(0,n.dz)(this.$element())>0&&(0,n.Cr)(this.$element())>0}_getIndexByItem(e){return this._getToolbarItems().indexOf(e)}_itemOptionChanged(e,t,i){super._itemOptionChanged.apply(this,[e,t,i]),this._arrangeItems()}_optionChanged(e){var{name:t,value:i}=e;switch(t){case"width":super._optionChanged.apply(this,arguments),this._dimensionChanged();break;case"renderAs":case"useFlatButtons":case"useDefaultButtons":this._invalidate();break;case"compactMode":this._applyCompactMode();break;case"grouped":break;default:super._optionChanged.apply(this,arguments)}}_dispose(){super._dispose(),clearTimeout(this._waitParentAnimationTimeout)}_updateDimensionsInMaterial(){(0,x.x2)()&&Promise.all([(()=>new Promise((e=>{var t=()=>{var t=!0;return this.$element().parents().each(((e,i)=>{if(Ut.isAnimating((0,o.Z)(i)))return t=!1,!1})),t&&e(),t},i=()=>{clearTimeout(this._waitParentAnimationTimeout),this._waitParentAnimationTimeout=setTimeout((()=>t()||i()),ju)};i()})))(),(()=>{var e=this.$element().find(".".concat(Fu)),t=[];return e.each(((e,i)=>{var n=(0,o.Z)(i).text(),r=(0,o.Z)(i).css("fontWeight");t.push((0,x.Ih)(n,r))})),Promise.all(t)})()]).then((()=>{this._dimensionChanged()}))}}(0,C.Z)("dxToolbarBase",Uu);var Gu=Uu,qu=i(67892),Yu=["fullScreen","forceApplyBindings","dragOutsideBoundary","dragAndResizeArea","outsideDragFactor"],Xu=(0,s.Jj)();class Ju extends pi{constructor(e){var{fullScreen:t,forceApplyBindings:i,dragOutsideBoundary:n,dragAndResizeArea:o,outsideDragFactor:r}=e,a=(0,Vs.Z)(e,Yu);super(a),this._props=(0,hn.Z)({},this._props,{fullScreen:t,forceApplyBindings:i,dragOutsideBoundary:n,dragAndResizeArea:o,outsideDragFactor:r}),this._$dragResizeContainer=void 0,this._outsideDragFactor=void 0,this._lastPositionBeforeFullScreen=void 0,this._updateDragResizeContainer(),this._updateOutsideDragFactor()}set fullScreen(e){this._props.fullScreen=e,e?this._fullScreenEnabled():this._fullScreenDisabled()}get $dragResizeContainer(){return this._$dragResizeContainer}get outsideDragFactor(){return this._outsideDragFactor}set dragAndResizeArea(e){this._props.dragAndResizeArea=e,this._updateDragResizeContainer()}set dragOutsideBoundary(e){this._props.dragOutsideBoundary=e,this._updateDragResizeContainer(),this._updateOutsideDragFactor()}set outsideDragFactor(e){this._props.outsideDragFactor=e,this._updateOutsideDragFactor()}updateContainer(e){super.updateContainer(e),this._updateDragResizeContainer()}dragHandled(){this.restorePositionOnNextRender(!1)}resizeHandled(){this.restorePositionOnNextRender(!1)}positionContent(){var e,t;this._props.fullScreen?(ve(this._$content,{top:0,left:0}),this.detectVisualPositionChange()):(null===(e=(t=this._props).forceApplyBindings)||void 0===e||e.call(t),!this._shouldRenderContentInitialPosition&&this._lastPositionBeforeFullScreen?(ve(this._$content,this._lastPositionBeforeFullScreen),this._lastPositionBeforeFullScreen=void 0,this.detectVisualPositionChange()):super.positionContent())}_updateOutsideDragFactor(){this._outsideDragFactor=this._getOutsideDragFactor()}_getOutsideDragFactor(){return this._props.dragOutsideBoundary?1:this._props.outsideDragFactor}_updateDragResizeContainer(){this._$dragResizeContainer=this._getDragResizeContainer()}_getDragResizeContainer(){if(this._props.dragOutsideBoundary)return(0,o.Z)(Xu);if(this._props.dragAndResizeArea)return(0,o.Z)(this._props.dragAndResizeArea);var e=(0,Yt.In)().get(0)||this._props.container;return e?this._$markupContainer:(0,o.Z)(Xu)}_getVisualContainer(){return this._props.fullScreen?(0,o.Z)(Xu):super._getVisualContainer()}_fullScreenEnabled(){this.restorePositionOnNextRender(!1),this._lastPositionBeforeFullScreen=this._visualPosition}_fullScreenDisabled(){this.restorePositionOnNextRender(!1)}}var Qu=(0,s.Jj)(),ec="dx-popup",tc="dx-popup-wrapper",ic="dx-popup-fullscreen",nc="dx-popup-fullscreen-width",oc="dx-popup-normal",rc="dx-popup-content",ac="dx-state-disabled",sc="dx-popup-draggable",lc="dx-popup-title",dc="dx-closebutton",uc="dx-popup-bottom",cc="dx-has-close-button",hc="dx-template-wrapper",pc="dx-popup-flex-height",fc="dx-popup-inherit-height",gc=["cancel","clear","done"],mc="default",_c="normal",vc="text",yc="contained",Cc=Me.Z.safari&&k(Me.Z.version,[11])<0,bc={static:"",inherit:fc,flex:pc},xc=e=>{var t=w.Z.current(),i=t.platform,n="bottom",o="before";if("ios"===i)switch(e){case"cancel":n="top";break;case"clear":n="top",o="after";break;case"done":o="after"}else if("android"===i)switch(e){case"cancel":case"done":o="after"}return{toolbar:n,location:o}},wc=ki.inherit({_supportedKeys:function(){return(0,a.l)(this.callBase(),{upArrow:e=>{var t;null===(t=this._drag)||void 0===t||t.moveUp(e)},downArrow:e=>{var t;null===(t=this._drag)||void 0===t||t.moveDown(e)},leftArrow:e=>{var t;null===(t=this._drag)||void 0===t||t.moveLeft(e)},rightArrow:e=>{var t;null===(t=this._drag)||void 0===t||t.moveRight(e)}})},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{fullScreen:!1,title:"",showTitle:!0,titleTemplate:"title",onTitleRendered:null,dragOutsideBoundary:!1,dragEnabled:!1,dragAndResizeArea:void 0,outsideDragFactor:0,onResizeStart:null,onResize:null,onResizeEnd:null,resizeEnabled:!1,toolbarItems:[],showCloseButton:!1,bottomTemplate:"bottom",useDefaultToolbarButtons:!1,useFlatToolbarButtons:!1,autoResizeEnabled:!0})},_defaultOptionsRules:function(){var e=(0,x.Vk)();return this.callBase().concat([{device:{platform:"ios"},options:{animation:this._iosAnimation}},{device:{platform:"android"},options:{animation:this._androidAnimation}},{device:{platform:"generic"},options:{showCloseButton:!0}},{device:function(e){return"desktop"===w.Z.real().deviceType&&"generic"===e.platform},options:{dragEnabled:!0}},{device:function(){return"desktop"===w.Z.real().deviceType&&!w.Z.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,x.x2)(e)},options:{useDefaultToolbarButtons:!0,useFlatToolbarButtons:!0,showCloseButton:!1}}])},_iosAnimation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom"}},to:{position:{my:"center",at:"center"}}},hide:{type:"slide",duration:400,from:{opacity:1,position:{my:"center",at:"center"}},to:{opacity:1,position:{my:"top",at:"bottom"}}}},_androidAnimation:function(){return this.option("fullScreen")?{show:{type:"slide",duration:300,from:{top:"30%",opacity:0},to:{top:0,opacity:1}},hide:{type:"slide",duration:300,from:{top:0,opacity:1},to:{top:"30%",opacity:0}}}:{show:{type:"fade",duration:400,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}}},_init:function(){var e=this.option("_wrapperClassExternal"),t=e?"".concat(tc," ").concat(e):tc;this.callBase(),this._updateResizeCallbackSkipCondition(),this.$element().addClass(ec),this.$wrapper().addClass(t),this._$popupContent=this._$content.wrapInner((0,o.Z)("<div>").addClass(rc)).children().eq(0)},_render:function(){var e=this.option("fullScreen");this._toggleFullScreenClass(e),this.callBase()},_toggleFullScreenClass:function(e){this.$overlayContent().toggleClass(ic,e).toggleClass(oc,!e)},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({title:new Gt.s,bottom:new Gt.s})},_getActionsList:function(){return this.callBase().concat(["onResizeStart","onResize","onResizeEnd"])},_contentResizeHandler:function(e){this._shouldSkipContentResize(e)||this._renderGeometry({shouldOnlyReposition:!0})},_doesShowAnimationChangeDimensions:function(){var e=this.option("animation");return["to","from"].some((t=>{var i,n=null===e||void 0===e||null===(i=e.show)||void 0===i?void 0:i[t];return(0,l.Kn)(n)&&("width"in n||"height"in n)}))},_updateResizeCallbackSkipCondition(){var e=this._doesShowAnimationChangeDimensions();this._shouldSkipContentResize=t=>e&&this._showAnimationProcessing||this._areContentDimensionsRendered(t)},_observeContentResize:function(e){if(this.option("useResizeObserver")){var t=this._$content.get(0);e?qu.Z.observe(t,(e=>{this._contentResizeHandler(e)})):qu.Z.unobserve(t)}},_areContentDimensionsRendered:function(e){var t,i,n,o,r,a=null===(t=e.contentBoxSize)||void 0===t?void 0:t[0];if(a)return parseInt(a.inlineSize,10)===(null===(o=this._renderedDimensions)||void 0===o?void 0:o.width)&&parseInt(a.blockSize,10)===(null===(r=this._renderedDimensions)||void 0===r?void 0:r.height);var s=e.contentRect;return parseInt(s.width,10)===(null===(i=this._renderedDimensions)||void 0===i?void 0:i.width)&&parseInt(s.height,10)===(null===(n=this._renderedDimensions)||void 0===n?void 0:n.height)},_renderContentImpl:function(){this._renderTitle(),this.callBase(),this._renderResize(),this._renderBottom()},_renderTitle:function(){var e=this._getToolbarItems("top"),t=this.option("title"),i=this.option("showTitle");if(i&&t&&e.unshift({location:w.Z.current().ios?"center":"before",text:t}),i||e.length>0){this._$title&&this._$title.remove();var n=(0,o.Z)("<div>").addClass(lc).insertBefore(this.$content());this._$title=this._renderTemplateByType("titleTemplate",e,n).addClass(lc),this._renderDrag(),this._executeTitleRenderAction(this._$title),this._$title.toggleClass(cc,this._hasCloseButton())}else this._$title&&this._$title.detach()},_renderTemplateByType:function(e,t,i,n){var{rtlEnabled:r,useDefaultToolbarButtons:s,useFlatToolbarButtons:l,disabled:d}=this.option(),u=this._getTemplateByOption(e),c=u instanceof Gt.s;if(c){var h=(0,a.l)({},this.option("integrationOptions"),{skipTemplates:["content","title"]}),p=(0,a.l)(n,{items:t,rtlEnabled:r,useDefaultButtons:s,useFlatButtons:l,disabled:d,integrationOptions:h});this._getTemplate("dx-polymorph-widget").render({container:i,model:{widget:this._getToolbarName(),options:p}});var f=i.children("div");return i.replaceWith(f),f}var g=(0,o.Z)(u.render({container:(0,se.u)(i)}));return g.hasClass(hc)&&(i.replaceWith(g),i=g),i},_getToolbarName:function(){return"dxToolbarBase"},_renderVisibilityAnimate:function(e){return this._observeContentResize(e),this.callBase(e)},_executeTitleRenderAction:function(e){this._getTitleRenderAction()({titleElement:(0,se.u)(e)})},_getTitleRenderAction:function(){return this._titleRenderAction||this._createTitleRenderAction()},_createTitleRenderAction:function(){return this._titleRenderAction=this._createActionByOption("onTitleRendered",{element:this.element(),excludeValidators:["disabled","readOnly"]})},_getCloseButton:function(){return{toolbar:"top",location:"after",template:this._getCloseButtonRenderer()}},_getCloseButtonRenderer:function(){return(e,t,i)=>{var n=(0,o.Z)("<div>").addClass(dc);this._createComponent(n,cd,{icon:"close",onClick:this._createToolbarItemAction(void 0),stylingMode:"text",integrationOptions:{}}),(0,o.Z)(i).append(n)}},_getToolbarItems:function(e){var t=this.option("toolbarItems"),i=[];this._toolbarItemClasses=[];var n=w.Z.current().platform,o=0;return(0,E.S6)(t,((t,r)=>{var s=(0,l.$K)(r.shortcut),d=s?xc(r.shortcut):r;if(s&&"ios"===n&&o<2&&(d.toolbar="top",o++),d.toolbar=r.toolbar||d.toolbar||"top",d&&d.toolbar===e){s&&(0,a.l)(d,{location:r.location},this._getToolbarItemByAlias(r));var u="generic"===n;"done"===r.shortcut&&u||"cancel"===r.shortcut&&!u?i.unshift(d):i.push(d)}})),"top"===e&&this._hasCloseButton()&&i.push(this._getCloseButton()),i},_hasCloseButton(){return this.option("showCloseButton")&&this.option("showTitle")},_getLocalizationKey:e=>"done"===e.toLowerCase()?"OK":(0,sn._A)(e,!0),_getToolbarItemByAlias:function(e){var t=this,i=e.shortcut;if(!gc.includes(i))return!1;var n=(0,a.l)({text:y.Z.format(this._getLocalizationKey(i)),onClick:this._createToolbarItemAction(e.onClick),integrationOptions:{},type:t.option("useDefaultToolbarButtons")?mc:_c,stylingMode:t.option("useFlatToolbarButtons")?vc:yc},e.options||{}),r=ec+"-"+i;return this._toolbarItemClasses.push(r),{template:function(e,i,a){var s=(0,o.Z)("<div>").addClass(r).appendTo(a);t._createComponent(s,cd,n)}}},_createToolbarItemAction:function(e){return this._createAction(e,{afterExecute:function(e){e.component.hide()}})},_renderBottom:function(){var e=this._getToolbarItems("bottom");if(e.length){this._$bottom&&this._$bottom.remove();var t=(0,o.Z)("<div>").addClass(uc).insertAfter(this.$content());this._$bottom=this._renderTemplateByType("bottomTemplate",e,t,{compactMode:!0}).addClass(uc),this._toggleClasses()}else this._$bottom&&this._$bottom.detach()},_toggleDisabledState:function(e){this.callBase(...arguments),this.$content().toggleClass(ac,Boolean(e))},_toggleClasses:function(){var e=gc;(0,E.S6)(e,((e,t)=>{var i=ec+"-"+t;this._toolbarItemClasses.includes(i)?(this.$wrapper().addClass(i+"-visible"),this._$bottom.addClass(i)):(this.$wrapper().removeClass(i+"-visible"),this._$bottom.removeClass(i))}))},_toggleFocusClass(e,t){if(this.callBase(e,t),e&&!ai(this._zIndex)){var i=oi(this._zIndexInitValue());ri(this._zIndex),this._zIndex=i,this._$wrapper.css("zIndex",i),this._$content.css("zIndex",i)}},_getPositionControllerConfig(){var{fullScreen:e,forceApplyBindings:t,dragOutsideBoundary:i,dragAndResizeArea:n,outsideDragFactor:o}=this.option();return(0,a.l)({},this.callBase(),{fullScreen:e,forceApplyBindings:t,dragOutsideBoundary:i,dragAndResizeArea:n,outsideDragFactor:o})},_initPositionController(){this._positionController=new Ju(this._getPositionControllerConfig())},_getDragTarget:function(){return this.topToolbar()},_renderGeometry:function(e){var{visible:t,useResizeObserver:i}=this.option();if(t&&(0,s.Ym)()){var n=this._showAnimationProcessing,o=n&&!(null!==e&&void 0!==e&&e.forceStopAnimation)&&i;this._isAnimationPaused=o||void 0,this._stopAnimation(),null!==e&&void 0!==e&&e.shouldOnlyReposition?this._renderPosition(!1):this._renderGeometryImpl(null===e||void 0===e?void 0:e.isDimensionChange),o&&(this._animateShowing(),this._isAnimationPaused=void 0)}},_cacheDimensions:function(){this.option("useResizeObserver")&&(this._renderedDimensions={width:parseInt((0,n.dz)(this._$content),10),height:parseInt((0,n.Cr)(this._$content),10)})},_renderGeometryImpl:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e||this._resetContentHeight(),this.callBase(),this._cacheDimensions(),this._setContentHeight()},_resetContentHeight:function(){var e=this._getOptionValue("height");"auto"===e&&this.$content().css({height:"auto",maxHeight:"none"})},_renderDrag:function(){var e=this._getDragTarget(),t=this.option("dragEnabled");if(e){var i={dragEnabled:t,handle:e.get(0),draggableElement:this._$content.get(0),positionController:this._positionController};this._drag?this._drag.init(i):this._drag=new cn(i),this.$overlayContent().toggleClass(sc,t)}},_renderResize:function(){this._resizable=this._createComponent(this._$content,En,{handles:this.option("resizeEnabled")?"all":"none",onResizeEnd:e=>{this._resizeEndHandler(e),this._observeContentResize(!0)},onResize:e=>{this._setContentHeight(),this._actions.onResize(e)},onResizeStart:e=>{this._observeContentResize(!1),this._actions.onResizeStart(e)},minHeight:100,minWidth:100,area:this._positionController.$dragResizeContainer,keepAspectRatio:!1})},_resizeEndHandler:function(e){var t=this._resizable.option("width"),i=this._resizable.option("height");t&&this._setOptionWithoutOptionChange("width",t),i&&this._setOptionWithoutOptionChange("height",i),this._cacheDimensions(),this._positionController.resizeHandled(),this._positionController.detectVisualPositionChange(e.event),this._actions.onResizeEnd(e)},_setContentHeight:function(){(this.option("forceApplyBindings")||v.ZT)();var e=this.$overlayContent().get(0),t=this._chooseHeightStrategy(e);this.$content().css(this._getHeightCssStyles(t,e)),this._setHeightClasses(this.$overlayContent(),t)},_heightStrategyChangeOffset:function(e,t){return e===bc.flex?-t:0},_chooseHeightStrategy:function(e){var t="auto"===e.style.width||""===e.style.width,i=bc.static;return this._isAutoHeight()&&this.option("autoResizeEnabled")&&(i=t||Cc?bc.inherit:bc.flex),i},_getHeightCssStyles:function(e,t){var i={},r=this._getOptionValue("maxHeight",t),a=this._getOptionValue("minHeight",t),l=this._splitPopupHeight(),d=l.header+l.footer+l.contentVerticalOffsets+l.popupVerticalOffsets+this._heightStrategyChangeOffset(e,l.popupVerticalPaddings);if(e===bc.static){if(!this._isAutoHeight()||r||a){var u=this.option("fullScreen")?Math.min(Pe(t).height,(0,s.Jj)().innerHeight):Pe(t).height,c=u-d;i={height:Math.max(0,c),minHeight:"auto",maxHeight:"auto"}}}else{var h=(0,o.Z)(this._positionController.$visualContainer).get(0),p=(0,n.n2)(r,-d,h),f=(0,n.eK)(a,-d,h);i={height:"auto",minHeight:f,maxHeight:p}}return i},_setHeightClasses:function(e,t){var i="";for(var n in bc)bc[n]!==t&&(i+=" "+bc[n]);e.removeClass(i).addClass(t)},_isAutoHeight:function(){return"auto"===this.$overlayContent().get(0).style.height},_splitPopupHeight:function(){var e=this.topToolbar(),t=this.bottomToolbar();return{header:(0,n.$D)(e&&e.get(0)),footer:(0,n.$D)(t&&t.get(0)),contentVerticalOffsets:(0,n.sQ)(this.$overlayContent().get(0),!0),popupVerticalOffsets:(0,n.sQ)(this.$content().get(0),!0),popupVerticalPaddings:(0,n.sQ)(this.$content().get(0),!1)}},_isAllWindowCovered:function(){return this.callBase()||this.option("fullScreen")},_renderDimensions:function(){this.option("fullScreen")?this.$overlayContent().css({width:"100%",height:"100%",minWidth:"",maxWidth:"",minHeight:"",maxHeight:""}):this.callBase(),(0,s.Ym)()&&this._renderFullscreenWidthClass()},_dimensionChanged:function(){this._renderGeometry({isDimensionChange:!0})},_clean:function(){this.callBase(),this._observeContentResize(!1)},_renderFullscreenWidthClass:function(){this.$overlayContent().toggleClass(nc,(0,n.Y_)(this.$overlayContent())===(0,n.dz)(Qu))},refreshPosition:function(){this._renderPosition()},_optionChanged:function(e){var t,i=e.value;switch(e.name){case"disabled":this.callBase(e),this._renderTitle(),this._renderBottom();break;case"animation":this._updateResizeCallbackSkipCondition();break;case"showTitle":case"title":case"titleTemplate":this._renderTitle(),this._renderGeometry(),(0,Qt.U_)(this.$overlayContent());break;case"bottomTemplate":this._renderBottom(),this._renderGeometry(),(0,Qt.U_)(this.$overlayContent());break;case"container":var n;if(this.callBase(e),this.option("resizeEnabled"))null===(n=this._resizable)||void 0===n||n.option("area",this._positionController.$dragResizeContainer);break;case"width":case"height":this.callBase(e),null===(t=this._resizable)||void 0===t||t.option(e.name,e.value);break;case"onTitleRendered":this._createTitleRenderAction(e.value);break;case"toolbarItems":case"useDefaultToolbarButtons":case"useFlatToolbarButtons":var o=!e.fullName.match(/^toolbarItems((\[\d+\])(\.(options|visible).*)?)?$/);this._renderTitle(),this._renderBottom(),o&&(this._renderGeometry(),(0,Qt.U_)(this.$overlayContent()));break;case"dragEnabled":this._renderDrag();break;case"dragAndResizeArea":this._positionController.dragAndResizeArea=i,this.option("resizeEnabled")&&this._resizable.option("area",this._positionController.$dragResizeContainer),this._positionController.positionContent();break;case"dragOutsideBoundary":this._positionController.dragOutsideBoundary=i,this.option("resizeEnabled")&&this._resizable.option("area",this._positionController.$dragResizeContainer);break;case"outsideDragFactor":this._positionController.outsideDragFactor=i;break;case"resizeEnabled":this._renderResize(),this._renderGeometry();break;case"autoResizeEnabled":this._renderGeometry(),(0,Qt.U_)(this.$overlayContent());break;case"fullScreen":this._positionController.fullScreen=e.value,this._toggleFullScreenClass(e.value),this._toggleSafariScrolling(),this._renderGeometry(),(0,Qt.U_)(this.$overlayContent());break;case"showCloseButton":this._renderTitle();break;default:this.callBase(e)}},bottomToolbar:function(){return this._$bottom},topToolbar:function(){return this._$title},$content:function(){return this._$popupContent},content:function(){return(0,se.u)(this.$content())},$overlayContent:function(){return this._$content}});(0,C.Z)("dxPopup",wc);var Tc=wc,Sc=i(94795),Ic=i(73386),Ec="dx-invalid-message",Dc="dx-invalid-message-auto",kc="dx-invalid-message-always",Oc="dx-invalid-message-content",Ac=100,Pc=ki.inherit({_getDefaultOptions(){return(0,a.l)(this.callBase(),{integrationOptions:{},templatesRenderAsynchronously:!1,shading:!1,width:"auto",height:"auto",hideOnOutsideClick:!1,animation:null,visible:!0,propagateOutsideClick:!0,_checkParentVisibility:!1,rtlEnabled:!1,contentTemplate:this._renderInnerHtml,maxWidth:"100%",container:this.$element(),target:void 0,mode:"auto",validationErrors:void 0,positionSide:"top",boundary:void 0,offset:{h:0,v:0},contentId:void 0})},_init(){this.callBase(),this.updateMaxWidth(),this._updatePosition()},_initMarkup(){this.callBase(),this._ensureMessageNotEmpty(),this._updatePositionByTarget(),this._toggleModeClass(),this._updateContentId()},_updatePositionByTarget:function(){var{target:e}=this.option();this.option("position.of",e)},_ensureMessageNotEmpty:function(){this._textMarkup=this._getTextMarkup();var e=this.option("visible")&&this._textMarkup;this._toggleVisibilityClasses(e)},_toggleVisibilityClasses:function(e){e?(this.$element().addClass(Ec),this.$wrapper().addClass(Ec)):(this.$element().removeClass(Ec),this.$wrapper().removeClass(Ec))},_updateContentId(){var{container:e,contentId:t}=this.option(),i=null!==t&&void 0!==t?t:(0,o.Z)(e).attr("aria-describedby");this.$content().addClass(Oc).attr("id",i)},_renderInnerHtml(e){var t=e&&(0,o.Z)(e);null===t||void 0===t||t.html(this._textMarkup)},_getTextMarkup(){var e,t=null!==(e=this.option("validationErrors"))&&void 0!==e?e:[],i="";return t.forEach((e=>{var t,n=i?"<br />":"";i+=n+(0,Ic.HZ)(null!==(t=null===e||void 0===e?void 0:e.message)&&void 0!==t?t:"")})),i},_toggleModeClass(){var e=this.option("mode");this.$wrapper().toggleClass(Dc,"auto"===e).toggleClass(kc,"always"===e)},updateMaxWidth(){var e=this.option("target"),t=(0,n.Y_)(e),i="100%";t&&(i=Math.max(t,Ac)),this.option({maxWidth:i})},_getPositionsArray:function(e,t){switch(e){case"top":return["".concat(t," bottom"),"".concat(t," top")];case"left":return["right","left"];case"right":return["left","right"];default:return["".concat(t," top"),"".concat(t," bottom")]}},_updatePosition:function(){var{positionSide:e,rtlEnabled:t,offset:i,boundary:n}=this.option(),o=Ae(t),r=this._getPositionsArray(e,o),a=(0,hn.Z)({},i);this.$element().addClass("dx-invalid-message-".concat(e)),t&&"left"!==e&&"right"!==e&&(a.h=-a.h),"top"===e&&(a.v=-a.v),"left"===e&&(a.h=-a.h),this.option("position",{offset:a,boundary:n,my:r[0],at:r[1],collision:"none flip"})},_optionChanged(e){var{name:t,value:i,previousValue:n}=e;switch(t){case"target":this._updatePositionByTarget(),this.updateMaxWidth(),this.callBase(e);break;case"boundary":this.option("position.boundary",i);break;case"mode":this._toggleModeClass(i);break;case"rtlEnabled":case"offset":case"positionSide":this.$element().removeClass("dx-invalid-message-".concat(n)),this._updatePosition();break;case"container":this._updateContentId(),this.callBase(e);break;case"contentId":this._updateContentId();break;case"validationErrors":this._ensureMessageNotEmpty(),this._renderInnerHtml(this.$content());break;default:this.callBase(e)}}});(0,C.Z)("dxValidationMessage",Pc);var Mc=Pc,Rc="dx-invalid-message-auto",Bc="dx-state-readonly",Vc="dx-invalid",Fc="dx-show-invalid-badge",Hc="dx-validation-target",Lc="valid",Nc="invalid",Zc="editorReadOnly",$c=["outlined","filled","underlined"],Wc={validationMessageMode:"mode",validationMessagePosition:"positionSide",validationMessageOffset:"offset",validationBoundary:"boundary"},Kc=G.inherit({ctor:function(){this.showValidationMessageTimeout=null,this.validationRequest=(0,Sc["default"])(),this.callBase.apply(this,arguments)},_createElement:function(e){this.callBase(e);var t=this.$element();t&&(0,le.aT)(t[0],Hc,this)},_initOptions:function(e){this.callBase.apply(this,arguments),this.option(Kn.initValidationOptions(e))},_init:function(){this.callBase(),this._options.cache("validationTooltipOptions",this.option("validationTooltipOptions"));var e=this.$element();e.addClass(Fc)},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{value:null,name:"",onValueChanged:null,readOnly:!1,isValid:!0,validationError:null,validationErrors:null,validationStatus:Lc,validationMessageMode:"auto",validationMessagePosition:"bottom",validationBoundary:void 0,validationMessageOffset:{h:0,v:0},validationTooltipOptions:{}})},_attachKeyboardEvents:function(){this.option("readOnly")||this.callBase()},_setOptionsByReference:function(){this.callBase(),(0,a.l)(this._optionsByReference,{validationError:!0})},_createValueChangeAction:function(){this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})},_suppressValueChangeAction:function(){this._valueChangeActionSuppressed=!0},_resumeValueChangeAction:function(){this._valueChangeActionSuppressed=!1},_initMarkup:function(){var e;this._toggleReadOnlyState(),this._setSubmitElementName(this.option("name")),this.callBase(),this._renderValidationState(),null===(e=this.option("_onMarkupRendered"))||void 0===e||e()},_raiseValueChangeAction:function(e,t){this._valueChangeAction||this._createValueChangeAction(),this._valueChangeAction(this._valueChangeArgs(e,t))},_valueChangeArgs:function(e,t){return{value:e,previousValue:t,event:this._valueChangeEventInstance}},_saveValueChangeEvent:function(e){this._valueChangeEventInstance=e},_focusInHandler:function(e){var t="auto"===this.option("validationMessageMode");if(this._canValueBeChangedByClick()&&t){var i,n=null===(i=this._validationMessage)||void 0===i?void 0:i.$wrapper();null===n||void 0===n||n.removeClass(Rc),clearTimeout(this.showValidationMessageTimeout),this.showValidationMessageTimeout=setTimeout((()=>null===n||void 0===n?void 0:n.addClass(Rc)),150)}return this.callBase(e)},_canValueBeChangedByClick:function(){return!1},_getStylingModePrefix:function(){return"dx-editor-"},_renderStylingMode:function(){var e=this.option("stylingMode"),t=this._getStylingModePrefix(),i=$c.map((e=>t+e));i.forEach((e=>this.$element().removeClass(e)));var n=t+e;if(-1===i.indexOf(n)){var o=this._getDefaultOptions().stylingMode,r=this._convertRulesToOptions(this._defaultOptionsRules()).stylingMode;n=t+(r||o)}this.$element().addClass(n)},_getValidationErrors:function(){var e=this.option("validationErrors");return!e&&this.option("validationError")&&(e=[this.option("validationError")]),e},_disposeValidationMessage:function(){this._$validationMessage&&(this._$validationMessage.remove(),this.setAria("describedby",null),this._$validationMessage=void 0,this._validationMessage=void 0)},_toggleValidationClasses:function(e){this.$element().toggleClass(Vc,e),this.setAria(Nc,e||void 0)},_renderValidationState:function(){var e=this.option("isValid")&&this.option("validationStatus")!==Nc,t=this._getValidationErrors(),i=this.$element();if(this._toggleValidationClasses(!e),(0,s.Ym)()&&(this._disposeValidationMessage(),!e&&t)){var{validationMessageMode:n,validationMessagePosition:r,validationMessageOffset:l,validationBoundary:d,rtlEnabled:u}=this.option();this._$validationMessage=(0,o.Z)("<div>").appendTo(i);var c="dx-".concat(new Li.Z);this.setAria("describedby",c),this._validationMessage=new Mc(this._$validationMessage,(0,a.l)({validationErrors:t,rtlEnabled:u,target:this._getValidationMessageTarget(),visualContainer:i,mode:n,positionSide:r,offset:l,boundary:d,contentId:c},this._options.cache("validationTooltipOptions"))),this._bindInnerWidgetOptions(this._validationMessage,"validationTooltipOptions")}},_getValidationMessageTarget:function(){return this.$element()},_toggleReadOnlyState:function(){var e=this.option("readOnly");this._toggleBackspaceHandler(e),this.$element().toggleClass(Bc,!!e),this.setAria("readonly",e||void 0)},_toggleBackspaceHandler:function(e){var t=this._keyboardEventBindingTarget(),i=(0,R.V4)("keydown",Zc);re.Z.off(t,i),e&&re.Z.on(t,i,(e=>{"backspace"===(0,R.EV)(e)&&e.preventDefault()}))},_dispose:function(){var e=this.$element()[0];(0,le.aT)(e,Hc,null),clearTimeout(this.showValidationMessageTimeout),this._disposeValidationMessage(),this.callBase()},_setSubmitElementName:function(e){var t=this._getSubmitElement();t&&(e.length>0?t.attr("name",e):t.removeAttr("name"))},_getSubmitElement:function(){return null},_setValidationMessageOption:function(e){var t,{name:i,value:n}=e,o=Wc[i]?Wc[i]:i;null===(t=this._validationMessage)||void 0===t||t.option(o,n)},_hasActiveElement:v.ZT,_optionChanged:function(e){var t;switch(e.name){case"onValueChanged":this._createValueChangeAction();break;case"readOnly":this._toggleReadOnlyState(),this._refreshFocusState();break;case"value":e.value!=e.previousValue&&this.validationRequest.fire({value:e.value,editor:this}),this._valueChangeActionSuppressed||(this._raiseValueChangeAction(e.value,e.previousValue),this._saveValueChangeEvent(void 0));break;case"width":this.callBase(e),null===(t=this._validationMessage)||void 0===t||t.updateMaxWidth();break;case"name":this._setSubmitElementName(e.value);break;case"isValid":case"validationError":case"validationErrors":case"validationStatus":this.option(Kn.synchronizeValidationOptions(e,this.option())),this._renderValidationState();break;case"validationBoundary":case"validationMessageMode":case"validationMessagePosition":case"validationMessageOffset":this._setValidationMessageOption(e);break;case"rtlEnabled":this._setValidationMessageOption(e),this.callBase(e);break;case"validationTooltipOptions":this._innerWidgetOptionChanged(this._validationMessage,e);break;default:this.callBase(e)}},blur:function(){this._hasActiveElement()&&(0,M.M3)()},reset:function(){var e=this._getDefaultOptions();this.option("value",e.value)}});Kc.isEditor=e=>e instanceof Kc;var zc=Kc;class jc{constructor(){this._map={}}_findWidgetInstance(e){var t;return(0,E.S6)(this._map,(function(i,n){var{widgetInstance:o,item:r}=n;if(e(r))return t=o,!1})),t}_findFieldByCondition(e,t){var i;return(0,E.S6)(this._map,(function(n,o){if(e(o))return i="guid"===t?n:o[t],!1})),i}clear(){this._map={}}removeItemsByItems(e){(0,E.S6)(e.getItems(),(e=>this.removeItemByKey(e)))}removeItemByKey(e){delete this._map[e]}add(e){var t=e.guid||new Li.Z;return this._map[t]=e,t}addItemsOrExtendFrom(e){e.each(((e,t)=>{this._map[e]?(t.widgetInstance&&(this._map[e].widgetInstance=t.widgetInstance),this._map[e].$itemContainer=t.$itemContainer):this.add({item:t.item,widgetInstance:t.widgetInstance,guid:e,$itemContainer:t.$itemContainer})}))}extendRunTimeItemInfoByKey(e,t){this._map[e]&&(this._map[e]=(0,a.l)(this._map[e],t))}findWidgetInstanceByItem(e){return this._findWidgetInstance((t=>t===e))}findGroupOrTabLayoutManagerByPath(e){return this._findFieldByCondition((t=>{var{path:i}=t;return i===e}),"layoutManager")}findKeyByPath(e){return this._findFieldByCondition((t=>{var{path:i}=t;return i===e}),"guid")}findWidgetInstanceByName(e){return this._findWidgetInstance((t=>e===t.name))}findWidgetInstanceByDataField(e){return this._findWidgetInstance((t=>e===((0,l.HD)(t)?t:t.dataField)))}findItemContainerByItem(e){for(var t in this._map)if(this._map[t].item===e)return this._map[t].$itemContainer;return null}findItemIndexByItem(e){return this._findFieldByCondition((t=>{var{item:i}=t;return i===e}),"itemIndex")}findPreparedItemByItem(e){return this._findFieldByCondition((t=>{var{item:i}=t;return i===e}),"preparedItem")}getItems(){return this._map}each(e){(0,E.S6)(this._map,(function(t,i){e(t,i)}))}removeItemsByPathStartWith(e){var t=Object.keys(this._map),i=t.filter((t=>!!this._map[t].path&&this._map[t].path.indexOf(e,0)>-1));i.forEach((e=>this.removeItemByKey(e)))}}var Uc={move(e,t){ve(e,{left:t})}},Gc={moveTo(e,t,i,n){Ut.animate(e,{type:"slide",to:{left:t},duration:i,complete:n})},complete(e){Ut.stop(e,!0)}},qc=i(10975),Yc=i(11180),Xc="__dx_key__",Jc=Du.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{repaintChangesOnly:!1})},ctor:function(){var e;this.callBase.apply(this,arguments),this._customizeStoreLoadOptions=e=>{var t=this._dataController;t.getDataSource()&&!this._dataController.isLoaded()&&(this._correctionIndex=0),this._correctionIndex&&e.storeLoadOptions&&(e.storeLoadOptions.skip+=this._correctionIndex)},null===(e=this._dataController)||void 0===e||e.on("customizeStoreLoadOptions",this._customizeStoreLoadOptions)},reload:function(){this._correctionIndex=0},_init:function(){this.callBase(),this._refreshItemsCache(),this._correctionIndex=0},_findItemElementByKey:function(e){var t=(0,o.Z)(),i=this.key();return this.itemElements().each(((n,r)=>{var a=(0,o.Z)(r),s=this._getItemData(a);if(i?(0,Yc.OI)(i,this.keyOf(s),e):this._isItemEquals(s,e))return t=a,!1})),t},_dataSourceChangedHandler:function(e,t){null!==t&&void 0!==t&&t.changes?this._modifyByChanges(t.changes):(this.callBase(e,t),this._refreshItemsCache())},_isItemEquals:function(e,t){e&&e[Xc]&&(e=e.data);try{return JSON.stringify(e)===JSON.stringify(t)}catch(i){return e===t}},_isItemStrictEquals:function(e,t){return this._isItemEquals(e,t)},_shouldAddNewGroup:function(e,t){var i=!1;return this.option("grouped")&&(e.length||(i=!0),(0,E.S6)(e,((e,n)=>{"insert"===n.type&&(i=!0,(0,E.S6)(t,((e,t)=>{if(void 0!==n.data.key&&n.data.key===t.key)return i=!1,!1})))}))),i},_partialRefresh:function(){if(this.option("repaintChangesOnly")){var e=Cu(this._itemsCache,this._editStrategy.itemsGetter(),(e=>e&&void 0!==e[Xc]?e[Xc]:this.keyOf(e)),this._isItemStrictEquals.bind(this));if(e&&this._itemsCache.length&&!this._shouldAddNewGroup(e,this._itemsCache))return this._modifyByChanges(e,!0),this._renderEmptyMessage(),!0;this._refreshItemsCache()}return!1},_refreshItemsCache:function(){if(this.option("repaintChangesOnly")){var e=this._editStrategy.itemsGetter();try{this._itemsCache=(0,a.l)(!0,[],e),this.key()||(this._itemsCache=this._itemsCache.map(((t,i)=>({[Xc]:e[i],data:t}))))}catch(t){this._itemsCache=(0,a.l)([],e)}}},_dispose:function(){this._dataController.off("customizeStoreLoadOptions",this._customizeStoreLoadOptions),this.callBase()},_updateByChange:function(e,t,i,n){if(n)this._renderItem(i.index,i.data,null,this._findItemElementByKey(i.key));else{var o=t[(0,qc.qk)(e,t,i.key)];o&&(0,qc.Vx)(e,t,i.key,i.data).done((()=>{this._renderItem(t.indexOf(o),o,null,this._findItemElementByKey(i.key))}))}},_insertByChange:function(e,t,i,n){(0,ot.gx)(n||(0,qc.$T)(e,t,i.data,i.index)).done((()=>{var e;this._beforeItemElementInserted(i);var n=this._getItemContainer(i.data);this._renderItem(null!==(e=i.index)&&void 0!==e?e:t.length,i.data,n),this._afterItemElementInserted(),this._correctionIndex++}))},_getItemContainer:function(e){return this._itemContainer()},_updateSelectionAfterRemoveByChange:function(e){var t=this.option("selectedIndex");t>e?this.option("selectedIndex",t-1):t===e&&1===this.option("selectedItems").length?this.option("selectedItems",[]):this._normalizeSelectedItems()},_beforeItemElementInserted:function(e){var t=this.option("selectedIndex");e.index<=t&&this.option("selectedIndex",t+1)},_afterItemElementInserted:v.ZT,_removeByChange:function(e,t,i,n){var o=n?i.index:(0,qc.qk)(e,t,i.key),r=n?i.oldItem:t[o];if(r){var a=this._findItemElementByKey(i.key),s=this._extendActionArgs(a);this._waitDeletingPrepare(a).done((()=>{n?(this._updateIndicesAfterIndex(o-1),this._afterItemElementDeleted(a,s),this._updateSelectionAfterRemoveByChange(o)):(this._deleteItemElementByIndex(o),this._afterItemElementDeleted(a,s))})),this._correctionIndex--}},_modifyByChanges:function(e,t){var i=this._editStrategy.itemsGetter(),n={key:this.key.bind(this),keyOf:this.keyOf.bind(this)},o=this._dataController,r=o.paginate(),a=o.group();(r||a)&&(e=e.filter((e=>"insert"!==e.type||void 0!==e.index))),e.forEach((e=>this["_".concat(e.type,"ByChange")](n,i,e,t))),this._renderedItemsCount=i.length,this._refreshItemsCache(),this._fireContentReadyAction()},_appendItemToContainer:function(e,t,i){var n=e.children(this._itemSelector()).get(i);ke["default"].insertElement(e.get(0),t.get(0),n)},_optionChanged:function(e){switch(e.name){case"items":var t=this._partialRefresh(e.value);t||this.callBase(e);break;case"dataSource":this.option("repaintChangesOnly")&&e.value||this.option("items",[]),this.callBase(e);break;case"repaintChangesOnly":break;default:this.callBase(e)}}}),Qc="dxswipestart",eh="dxswipe",th="dxswipeend",ih={defaultItemSizeFunc:function(){return(0,n.dz)(this.getElement())},getBounds:function(){return[this._maxLeftOffset,this._maxRightOffset]},calcOffsetRatio:function(e){var t=(0,R.a0)(e);return(t.x-(this._savedEventData&&this._savedEventData.x||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=(0,R.a0)(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.x-this._tickData.x)>=t.time-this._tickData.time}},nh={defaultItemSizeFunc:function(){return(0,n.Cr)(this.getElement())},getBounds:function(){return[this._maxTopOffset,this._maxBottomOffset]},calcOffsetRatio:function(e){var t=(0,R.a0)(e);return(t.y-(this._savedEventData&&this._savedEventData.y||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=(0,R.a0)(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.y-this._tickData.y)>=t.time-this._tickData.time}},oh={horizontal:ih,vertical:nh},rh=pl.Z.inherit({TICK_INTERVAL:300,FAST_SWIPE_SPEED_LIMIT:10,ctor:function(e){this.callBase(e),this.direction="horizontal",this.elastic=!0},_getStrategy:function(){return oh[this.direction]},_defaultItemSizeFunc:function(){return this._getStrategy().defaultItemSizeFunc.call(this)},_itemSizeFunc:function(){return this.itemSizeFunc||this._defaultItemSizeFunc},_init:function(e){this._tickData=(0,R.a0)(e)},_start:function(e){this._savedEventData=(0,R.a0)(e),e=this._fireEvent(Qc,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(),i=(0,R.a0)(e),n=t.calcOffsetRatio.call(this,e);n=this._fitOffset(n,this.elastic),i.time-this._tickData.time>this.TICK_INTERVAL&&(this._tickData=i),this._fireEvent(eh,e,{offset:n}),e.preventDefault()},_end:function(e){var t=this._getStrategy(),i=t.calcOffsetRatio.call(this,e),n=t.isFastSwipe.call(this,e),o=i,r=this._calcTargetOffset(i,n);o=this._fitOffset(o,this.elastic),r=this._fitOffset(r,!1),this._fireEvent(th,e,{offset:o,targetOffset:r})},_fitOffset:function(e,t){var i=this._getStrategy(),n=i.getBounds.call(this);return e<-n[0]?t?(-2*n[0]+e)/3:-n[0]:e>n[1]?t?(2*n[1]+e)/3:n[1]:e},_calcTargetOffset:function(e,t){var i;return t?(i=Math.ceil(Math.abs(e)),e<0&&(i=-i)):i=Math.round(e),i}});(0,F.Z)({emitter:rh,events:[Qc,eh,th]});var ah="dxSwipeable",sh="dx-swipeable",lh={onStart:Qc,onUpdated:eh,onEnd:th,onCancel:"dxswipecancel"},dh=S.Z.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{elastic:!0,immediate:!1,direction:"horizontal",itemSizeFunc:null,onStart:null,onUpdated:null,onEnd:null,onCancel:null})},_render:function(){this.callBase(),this.$element().addClass(sh),this._attachEventHandlers()},_attachEventHandlers:function(){if(this._detachEventHandlers(),!this.option("disabled")){var e=this.NAME;this._createEventData(),(0,E.S6)(lh,function(t,i){var n=this._createActionByOption(t,{context:this});i=(0,R.V4)(i,e),re.Z.on(this.$element(),i,this._eventData,(function(e){return n({event:e})}))}.bind(this))}},_createEventData:function(){this._eventData={elastic:this.option("elastic"),itemSizeFunc:this.option("itemSizeFunc"),direction:this.option("direction"),immediate:this.option("immediate")}},_detachEventHandlers:function(){re.Z.off(this.$element(),"."+ah)},_optionChanged:function(e){switch(e.name){case"disabled":case"onStart":case"onUpdated":case"onEnd":case"onCancel":case"elastic":case"immediate":case"itemSizeFunc":case"direction":this._detachEventHandlers(),this._attachEventHandlers();break;case"rtlEnabled":break;default:this.callBase(e)}},_useTemplates:function(){return!1}});(0,pd.u2)(dh,ah);var uh=dh,ch="dx-multiview",hh="dx-multiview-wrapper",ph="dx-multiview-item-container",fh="dx-multiview-item",gh="dx-multiview-item-hidden",mh="dxMultiViewItemData",_h=200,vh=e=>+e,yh=e=>he(e).left,Ch=Jc.inherit({_activeStateUnit:"."+fh,_supportedKeys:function(){return(0,a.l)(this.callBase(),{pageUp:v.ZT,pageDown:v.ZT})},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{selectedIndex:0,swipeEnabled:!0,animationEnabled:!0,loop:!1,deferRendering:!0,_itemAttributes:{role:"tabpanel"},loopItemFocus:!1,selectOnFocus:!0,selectionMode:"single",selectionRequired:!0,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===w.Z.real().deviceType&&!w.Z.isSimulator()},options:{focusStateEnabled:!0}}])},_itemClass:function(){return fh},_itemDataKey:function(){return mh},_itemContainer:function(){return this._$itemContainer},_itemElements:function(){return this._itemContainer().children(this._itemSelector())},_itemWidth:function(){return this._itemWidthValue||(this._itemWidthValue=(0,n.dz)(this._$wrapper)),this._itemWidthValue},_clearItemWidthCache:function(){delete this._itemWidthValue},_itemsCount:function(){return this.option("items").length},_normalizeIndex:function(e){var t=this._itemsCount();return e<0&&(e+=t),e>=t&&(e-=t),e},_getRTLSignCorrection:function(){return this.option("rtlEnabled")?-1:1},_init:function(){this.callBase.apply(this,arguments);var e=this.$element();e.addClass(ch),this._$wrapper=(0,o.Z)("<div>").addClass(hh),this._$wrapper.appendTo(e),this._$itemContainer=(0,o.Z)("<div>").addClass(ph),this._$itemContainer.appendTo(this._$wrapper),this.option("loopItemFocus",this.option("loop")),this._initSwipeable()},_initMarkup:function(){this._deferredItems=[],this.callBase();var e=this._getSelectedItemIndices();this._updateItemsVisibility(e[0])},_afterItemElementDeleted:function(e,t){this.callBase(e,t),this._deferredItems&&this._deferredItems.splice(t.itemIndex,1)},_beforeItemElementInserted:function(e){this.callBase.apply(this,arguments),this._deferredItems&&this._deferredItems.splice(e.index,0,null)},_executeItemRenderAction:function(e,t,i){e=(this.option("items")||[]).indexOf(t),this.callBase(e,t,i)},_renderItemContent:function(e){var t=new ot.BH,i=this,n=this.callBase,o=new ot.BH;return o.done((function(){var o=n.call(i,e);t.resolve(o)})),this._deferredItems[e.index]=o,this.option("deferRendering")||o.resolve(),t.promise()},_render:function(){this.callBase(),(0,v.g0)((()=>{var e=this._getSelectedItemIndices();this._updateItems(e[0])}))},_updateItems:function(e,t){this._updateItemsPosition(e,t),this._updateItemsVisibility(e,t)},_modifyByChanges:function(){this.callBase.apply(this,arguments);var e=this._getSelectedItemIndices();this._updateItemsVisibility(e[0])},_updateItemsPosition:function(e,t){var i=this._itemElements(),n=(0,l.$K)(t)?-this._animationDirection(t,e):void 0,o=i.eq(e);Uc.move(o,0),(0,l.$K)(t)&&Uc.move(i.eq(t),100*n+"%")},_updateItemsVisibility:function(e,t){var i=this._itemElements();i.each(function(i,n){var r=(0,o.Z)(n),a=i!==e&&i!==t;a||this._renderSpecificItem(i),r.toggleClass(gh,a),this.setAria("hidden",a||void 0,r)}.bind(this))},_renderSpecificItem:function(e){var t=this._itemElements().eq(e),i=t.find(this._itemContentClass()).length>0;(0,l.$K)(e)&&!i&&(this._deferredItems[e].resolve(),(0,Qt.U_)(t))},_refreshItem:function(e,t){this.callBase(e,t),this._updateItemsVisibility(this.option("selectedIndex"))},_setAriaSelected:v.ZT,_updateSelection:function(e,t){var i=e[0],o=t[0];Gc.complete(this._$itemContainer),this._updateItems(o,i);var r=this._animationDirection(i,o);this._animateItemContainer(r*this._itemWidth(),function(){Uc.move(this._$itemContainer,0),this._updateItems(i),(0,n.dz)(this._$itemContainer)}.bind(this))},_animateItemContainer:function(e,t){var i=this.option("animationEnabled")?_h:0;Gc.moveTo(this._$itemContainer,e,i,t)},_animationDirection:function(e,t){var i=yh(this._$itemContainer),n=(t-e)*this._getRTLSignCorrection()*this._getItemFocusLoopSignCorrection(),o=0!==i,r=o?i:n;return(0,ln.Xx)(r)},_getSwipeDisabledState(){return!this.option("swipeEnabled")||this._itemsCount()<=1},_initSwipeable(){this._createComponent(this.$element(),uh,{disabled:this._getSwipeDisabledState(),elastic:!1,itemSizeFunc:this._itemWidth.bind(this),onStart:e=>this._swipeStartHandler(e.event),onUpdated:e=>this._swipeUpdateHandler(e.event),onEnd:e=>this._swipeEndHandler(e.event)})},_swipeStartHandler:function(e){Gc.complete(this._$itemContainer);var t=this.option("selectedIndex"),i=this.option("loop"),n=this._itemsCount()-1,o=this.option("rtlEnabled");e.maxLeftOffset=vh(i||(o?t>0:t<n)),e.maxRightOffset=vh(i||(o?t<n:t>0)),this._swipeDirection=null},_swipeUpdateHandler:function(e){var t=e.offset,i=(0,ln.Xx)(t)*this._getRTLSignCorrection();if(Uc.move(this._$itemContainer,t*this._itemWidth()),i!==this._swipeDirection){this._swipeDirection=i;var n=this.option("selectedIndex"),o=this._normalizeIndex(n-i);this._updateItems(n,o)}},_swipeEndHandler:function(e){var t=e.targetOffset*this._getRTLSignCorrection();if(t){this.option("selectedIndex",this._normalizeIndex(this.option("selectedIndex")-t));var i=this.itemElements().filter(".dx-item-selected");this.option("focusStateEnabled")&&this.option("focusedElement",(0,se.u)(i))}else this._animateItemContainer(0,v.ZT)},_getItemFocusLoopSignCorrection:function(){return this._itemFocusLooped?-1:1},_moveFocus:function(){this.callBase.apply(this,arguments),this._itemFocusLooped=!1},_prevItem:function(e){var t=this.callBase.apply(this,arguments);return this._itemFocusLooped=t.is(e.last()),t},_nextItem:function(e){var t=this.callBase.apply(this,arguments);return this._itemFocusLooped=t.is(e.first()),t},_dimensionChanged:function(){this._clearItemWidthCache()},_visibilityChanged:function(e){e&&this._dimensionChanged()},_updateSwipeDisabledState(){var e=this._getSwipeDisabledState();uh.getInstance(this.$element()).option("disabled",e)},_optionChanged:function(e){var t=e.value;switch(e.name){case"loop":this.option("loopItemFocus",t);break;case"animationEnabled":break;case"swipeEnabled":this._updateSwipeDisabledState();break;case"deferRendering":this._invalidate();break;case"items":this._updateSwipeDisabledState(),this.callBase(e);break;default:this.callBase(e)}}});(0,C.Z)("dxMultiView",Ch);var bh=Ch,xh="dx-tabs-item-badge",wh="dx-badge",Th=yd.inherit({_renderWatchers:function(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this))},_renderBadge:function(e){if(this._$element.children("."+wh).remove(),e){var t=(0,o.Z)("<div>").addClass(xh).addClass(wh).text(e);this._$element.append(t)}}}),Sh=Th,Ih="dx-tabs-expanded",Eh=P.Z.abstract,Dh=P.Z.inherit({ctor:function(){this._finished=!0,this._stopped=!1,this._proxiedStepCore=this._stepCore.bind(this)},start:function(){this._stopped=!1,this._finished=!1,this._stepCore()},stop:function(){this._stopped=!0,(0,De.W)(this._stepAnimationFrame)},_stepCore:function(){if(this._isStopped())this._stop();else{if(this._isFinished())return this._finished=!0,void this._complete();this._step(),this._stepAnimationFrame=(0,De.U)(this._proxiedStepCore)}},_step:Eh,_isFinished:v.ZT,_stop:v.ZT,_complete:v.ZT,_isStopped:function(){return this._stopped},inProgress:function(){return!(this._stopped||this._finished)}}),kh=Dh,Oh="dxScrollbar",Ah="dx-scrollable-scrollbar",Ph="".concat(Ah,"-active"),Mh="dx-scrollable-scroll",Rh="dx-scrollable-scroll-content",Bh="dx-scrollbar-hoverable",Vh="horizontal",Fh=15,Hh={onScroll:"onScroll",onHover:"onHover",always:"always",never:"never"},Lh=null,Nh=G.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{direction:null,visible:!1,activeStateEnabled:!1,visibilityMode:Hh.onScroll,containerSize:0,contentSize:0,expandable:!0,scaleRatio:1})},_init:function(){this.callBase(),this._isHovered=!1},_initMarkup:function(){this._renderThumb(),this.callBase()},_render:function(){this.callBase(),this._renderDirection(),this._update(),this._attachPointerDownHandler(),this.option("hoverStateEnabled",this._isHoverMode()),this.$element().toggleClass(Bh,this.option("hoverStateEnabled"))},_renderThumb:function(){this._$thumb=(0,o.Z)("<div>").addClass(Mh),(0,o.Z)("<div>").addClass(Rh).appendTo(this._$thumb),this.$element().addClass(Ah).append(this._$thumb)},isThumb:function(e){return!!this.$element().find(e).length},_isHoverMode:function(){var e=this.option("visibilityMode");return(e===Hh.onHover||e===Hh.always)&&this.option("expandable")},_renderDirection:function(){var e=this.option("direction");this.$element().addClass("dx-scrollbar-"+e),this._dimension=e===Vh?"width":"height",this._prop=e===Vh?"left":"top"},_attachPointerDownHandler:function(){re.Z.on(this._$thumb,(0,R.V4)(B.Z.down,Oh),this.feedbackOn.bind(this))},feedbackOn:function(){this.$element().addClass(Ph),Lh=this},feedbackOff:function(){this.$element().removeClass(Ph),Lh=null},cursorEnter:function(){this._isHovered=!0,this._needScrollbar()&&this.option("visible",!0)},cursorLeave:function(){this._isHovered=!1,this.option("visible",!1)},_renderDimensions:function(){this._$thumb.css({width:this.option("width"),height:this.option("height")})},_toggleVisibility:function(e){this.option("visibilityMode")===Hh.onScroll&&this._$thumb.css("opacity"),e=this._adjustVisibility(e),this.option().visible=e,this._$thumb.toggleClass("dx-state-invisible",!e)},_adjustVisibility:function(e){if(this._baseContainerToContentRatio&&!this._needScrollbar())return!1;switch(this.option("visibilityMode")){case Hh.onScroll:break;case Hh.onHover:e=e||!!this._isHovered;break;case Hh.never:e=!1;break;case Hh.always:e=!0}return e},moveTo:function(e){if(!this._isHidden()){(0,l.PO)(e)&&(e=e[this._prop]||0);var t={};t[this._prop]=this._calculateScrollBarPosition(e),ve(this._$thumb,t)}},_calculateScrollBarPosition:function(e){return-e*this._thumbRatio},_update:function(){var e=Math.round(this.option("containerSize")),t=Math.round(this.option("contentSize")),i=Math.round(this.option("baseContainerSize")),n=Math.round(this.option("baseContentSize"));isNaN(i)&&(i=e,n=t),this._baseContainerToContentRatio=n?i/n:i,this._realContainerToContentRatio=t?e/t:e;var o=Math.round(Math.max(Math.round(e*this._realContainerToContentRatio),Fh));this._thumbRatio=(e-o)/(this.option("scaleRatio")*(t-e)),this.option(this._dimension,o/this.option("scaleRatio")),this.$element().css("display",this._needScrollbar()?"":"none")},_isHidden:function(){return this.option("visibilityMode")===Hh.never},_needScrollbar:function(){return!this._isHidden()&&this._baseContainerToContentRatio<1},containerToContentRatio:function(){return this._realContainerToContentRatio},_normalizeSize:function(e){return(0,l.PO)(e)?e[this._dimension]||0:e},_clean:function(){this.callBase(),this===Lh&&(Lh=null),re.Z.off(this._$thumb,"."+Oh)},_optionChanged:function(e){if(!this._isHidden())switch(e.name){case"containerSize":case"contentSize":this.option()[e.name]=this._normalizeSize(e.value),this._update();break;case"baseContentSize":case"baseContainerSize":this._update();break;case"visibilityMode":case"direction":this._invalidate();break;case"scaleRatio":this._update();break;default:this.callBase.apply(this,arguments)}},update:(0,v.Rg)((function(){this._adjustVisibility()&&this.option("visible",!0)}))});qt.Z.add((function(){re.Z.subscribeGlobal(ke["default"].getDocument(),(0,R.V4)(B.Z.up,Oh),(function(){Lh&&Lh.feedbackOff()}))}));var Zh,$h,Wh=Nh,Kh="dxSimulatedScrollable",zh="dxScrollableStrategy",jh=Kh+"Cursor",Uh=Kh+"Keyboard",Gh="dx-scrollable-simulated",qh="dx-scrollable-scrollbars-alwaysvisible",Yh="dx-scrollable-scrollbar",Xh="vertical",Jh="horizontal",Qh=.92,ep=.5,tp=1,ip=Math.round(1e3/60),np=40,op=500,rp=tp/5,ap=400,sp=ap/ip,lp=(1-Math.pow(Qh,sp))/(1-Qh),dp={PAGE_UP:"pageUp",PAGE_DOWN:"pageDown",END:"end",HOME:"home",LEFT:"leftArrow",UP:"upArrow",RIGHT:"rightArrow",DOWN:"downArrow",TAB:"tab"},up=kh.inherit({ctor:function(e){this.callBase(),this.scroller=e},VELOCITY_LIMIT:tp,_isFinished:function(){return Math.abs(this.scroller._velocity)<=this.VELOCITY_LIMIT},_step:function(){this.scroller._scrollStep(this.scroller._velocity),this.scroller._velocity*=this._acceleration()},_acceleration:function(){return this.scroller._inBounds()?Qh:ep},_complete:function(){this.scroller._scrollComplete()}}),cp=up.inherit({VELOCITY_LIMIT:rp,_isFinished:function(){return this.scroller._crossBoundOnNextStep()||this.callBase()},_acceleration:function(){return Qh},_complete:function(){this.scroller._move(this.scroller._bounceLocation),this.callBase()}}),hp=P.Z.inherit({ctor:function(e){this._initOptions(e),this._initAnimators(),this._initScrollbar()},_initOptions:function(e){this._location=0,this._topReached=!1,this._bottomReached=!1,this._axis=e.direction===Jh?"x":"y",this._prop=e.direction===Jh?"left":"top",this._dimension=e.direction===Jh?"width":"height",this._scrollProp=e.direction===Jh?"scrollLeft":"scrollTop",(0,E.S6)(e,((e,t)=>{this["_"+e]=t}))},_initAnimators:function(){this._inertiaAnimator=new up(this),this._bounceAnimator=new cp(this)},_initScrollbar:function(){this._scrollbar=new Wh((0,o.Z)("<div>").appendTo(this._$container),{direction:this._direction,visible:this._scrollByThumb,visibilityMode:this._visibilityModeNormalize(this._scrollbarVisible),expandable:this._scrollByThumb}),this._$scrollbar=this._scrollbar.$element()},_visibilityModeNormalize:function(e){return!0===e?"onScroll":!1===e?"never":e},_scrollStep:function(e){var t=this._location;this._location+=e,this._suppressBounce(),this._move(),Math.abs(t-this._location)<1||re.Z.triggerHandler(this._$container,{type:"scroll"})},_suppressBounce:function(){this._bounceEnabled||this._inBounds(this._location)||(this._velocity=0,this._location=this._boundLocation())},_boundLocation:function(e){return e=void 0!==e?e:this._location,Math.max(Math.min(e,this._maxOffset),this._minOffset)},_move:function(e){this._location=void 0!==e?e*this._getScaleRatio():this._location,this._moveContent(),this._moveScrollbar()},_moveContent:function(){var e=this._location;this._$container[this._scrollProp](-e/this._getScaleRatio()),this._moveContentByTranslator(e)},_getScaleRatio:function(){if((0,s.Ym)()&&!this._scaleRatio){var e=this._$element.get(0),t=this._getRealDimension(e,this._dimension),i=this._getBaseDimension(e,this._dimension);this._scaleRatio=Math.round(t/i*100)/100}return this._scaleRatio||1},_getRealDimension:function(e,t){return Math.round(Pe(e)[t])},_getBaseDimension:function(e,t){var i="offset"+(0,sn.MI)(t);return e[i]},_moveContentByTranslator:function(e){var t,i=-this._maxScrollPropValue;if(t=e>0?e:e<=i?e-i:e%1,this._translateOffset!==t){var n={};n[this._prop]=t,this._translateOffset=t,0!==t?ve(this._$content,n):ye(this._$content)}},_moveScrollbar:function(){this._scrollbar.moveTo(this._location)},_scrollComplete:function(){this._inBounds()&&(this._hideScrollbar(),this._completeDeferred&&this._completeDeferred.resolve()),this._scrollToBounds()},_scrollToBounds:function(){this._inBounds()||(this._bounceAction(),this._setupBounce(),this._bounceAnimator.start())},_setupBounce:function(){var e=this._bounceLocation=this._boundLocation(),t=e-this._location;this._velocity=t/lp},_inBounds:function(e){return e=void 0!==e?e:this._location,this._boundLocation(e)===e},_crossBoundOnNextStep:function(){var e=this._location,t=e+this._velocity;return e<this._minOffset&&t>=this._minOffset||e>this._maxOffset&&t<=this._maxOffset},_initHandler:function(e){this._stopScrolling(),this._prepareThumbScrolling(e)},_stopScrolling:(0,v.Rg)((function(){this._hideScrollbar(),this._inertiaAnimator.stop(),this._bounceAnimator.stop()})),_prepareThumbScrolling:function(e){if(!(0,R.pR)(e.originalEvent)){var t=(0,o.Z)(e.originalEvent.target),i=this._isScrollbar(t);i&&this._moveToMouseLocation(e),this._thumbScrolling=i||this._isThumb(t),this._crossThumbScrolling=!this._thumbScrolling&&this._isAnyThumbScrolling(t),this._thumbScrolling&&this._scrollbar.feedbackOn()}},_isThumbScrollingHandler:function(e){return this._isThumb(e)},_moveToMouseLocation:function(e){var t=e["page"+this._axis.toUpperCase()]-this._$element.offset()[this._prop],i=this._location+t/this._containerToContentRatio()-(0,n.Cr)(this._$container)/2;this._scrollStep(-Math.round(i))},_startHandler:function(){this._showScrollbar()},_moveHandler:function(e){this._crossThumbScrolling||(this._thumbScrolling&&(e[this._axis]=-Math.round(e[this._axis]/this._containerToContentRatio())),this._scrollBy(e))},_scrollBy:function(e){e=e[this._axis],this._inBounds()||(e*=ep),this._scrollStep(e)},_scrollByHandler:function(e){this._scrollBy(e),this._scrollComplete()},_containerToContentRatio:function(){return this._scrollbar.containerToContentRatio()},_endHandler:function(e){return this._completeDeferred=new ot.BH,this._velocity=e[this._axis],this._inertiaHandler(),this._resetThumbScrolling(),this._completeDeferred.promise()},_inertiaHandler:function(){this._suppressInertia(),this._inertiaAnimator.start()},_suppressInertia:function(){this._inertiaEnabled&&!this._thumbScrolling||(this._velocity=0)},_resetThumbScrolling:function(){this._thumbScrolling=!1,this._crossThumbScrolling=!1},_stopHandler:function(){this._thumbScrolling&&this._scrollComplete(),this._resetThumbScrolling(),this._scrollToBounds()},_disposeHandler:function(){this._stopScrolling(),this._$scrollbar.remove()},_updateHandler:function(){this._update(),this._moveToBounds()},_update:function(){return this._stopScrolling(),(0,v.Su)((()=>{this._resetScaleRatio(),this._updateLocation(),this._updateBounds(),this._updateScrollbar(),(0,v.g0)((()=>{this._moveScrollbar(),this._scrollbar.update()}))}))},_resetScaleRatio:function(){this._scaleRatio=null},_updateLocation:function(){this._location=(he(this._$content)[this._prop]-this._$container[this._scrollProp]())*this._getScaleRatio()},_updateBounds:function(){this._maxOffset=this._getMaxOffset(),this._minOffset=this._getMinOffset()},_getMaxOffset:function(){return 0},_getMinOffset:function(){return this._maxScrollPropValue=Math.max(this._contentSize()-this._containerSize(),0),-this._maxScrollPropValue},_updateScrollbar:(0,v.bN)((function(){var e=this._containerSize(),t=this._contentSize(),i=this._getBaseDimension(this._$container.get(0),this._dimension),n=this._getBaseDimension(this._$content.get(0),this._dimension);(0,v.g0)((()=>{this._scrollbar.option({containerSize:e,contentSize:t,baseContainerSize:i,baseContentSize:n,scaleRatio:this._getScaleRatio()})}))})),_moveToBounds:(0,v.Rg)((0,v.bN)((0,v.Rg)((function(){var e=this._boundLocation(),t=e!==this._location;this._location=e,this._move(),t&&this._scrollAction()})))),_createActionsHandler:function(e){this._scrollAction=e.scroll,this._bounceAction=e.bounce},_showScrollbar:function(){this._scrollbar.option("visible",!0)},_hideScrollbar:function(){this._scrollbar.option("visible",!1)},_containerSize:function(){return this._getRealDimension(this._$container.get(0),this._dimension)},_contentSize:function(){var e="hidden"===this._$content.css("overflow"+this._axis.toUpperCase()),t=this._getRealDimension(this._$content.get(0),this._dimension);if(!e){var i=this._$content[0]["scroll"+(0,sn.MI)(this._dimension)]*this._getScaleRatio();t=Math.max(i,t)}return t},_validateEvent:function(e){var t=(0,o.Z)(e.originalEvent.target);return this._isThumb(t)||this._isScrollbar(t)},_isThumb:function(e){return this._scrollByThumb&&this._scrollbar.isThumb(e)},_isScrollbar:function(e){return this._scrollByThumb&&e&&e.is(this._$scrollbar)},_reachedMin:function(){return Math.round(this._location-this._minOffset)<=0},_reachedMax:function(){return Math.round(this._location-this._maxOffset)>=0},_cursorEnterHandler:function(){this._resetScaleRatio(),this._updateScrollbar(),this._scrollbar.cursorEnter()},_cursorLeaveHandler:function(){this._scrollbar.cursorLeave()},dispose:v.ZT}),pp=P.Z.inherit({ctor:function(e){this._init(e)},_init:function(e){this._component=e,this._$element=e.$element(),this._$container=(0,o.Z)(e.container()),this._$wrapper=e._$wrapper,this._$content=e.$content(),this.option=e.option.bind(e),this._createActionByOption=e._createActionByOption.bind(e),this._isLocked=e._isLocked.bind(e),this._isDirection=e._isDirection.bind(e),this._allowedDirection=e._allowedDirection.bind(e),this._getMaxOffset=e._getMaxOffset.bind(e)},render:function(){this._$element.addClass(Gh),this._createScrollers(),this.option("useKeyboard")&&this._$container.prop("tabIndex",0),this._attachKeyboardHandler(),this._attachCursorHandlers()},_createScrollers:function(){this._scrollers={},this._isDirection(Jh)&&this._createScroller(Jh),this._isDirection(Xh)&&this._createScroller(Xh),this._$element.toggleClass(qh,"always"===this.option("showScrollbar"))},_createScroller:function(e){this._scrollers[e]=new hp(this._scrollerOptions(e))},_scrollerOptions:function(e){return{direction:e,$content:this._$content,$container:this._$container,$wrapper:this._$wrapper,$element:this._$element,scrollByThumb:this.option("scrollByThumb"),scrollbarVisible:this.option("showScrollbar"),bounceEnabled:this.option("bounceEnabled"),inertiaEnabled:this.option("inertiaEnabled"),isAnyThumbScrolling:this._isAnyThumbScrolling.bind(this)}},_applyScaleRatio:function(e){for(var t in this._scrollers){var i=this._getPropByDirection(t);if((0,l.$K)(e[i])){var n=this._scrollers[t];e[i]*=n._getScaleRatio()}}return e},_isAnyThumbScrolling:function(e){var t=!1;return this._eventHandler("isThumbScrolling",e).done((function(e,i){t=e||i})),t},handleInit:function(e){this._suppressDirections(e),this._eventForUserAction=e,this._eventHandler("init",e)},_suppressDirections:function(e){(0,R.pR)(e.originalEvent)?this._prepareDirections(!0):(this._prepareDirections(),this._eachScroller((function(t,i){var n=(0,o.Z)(e.originalEvent.target),r=t._validateEvent(e)||this.option("scrollByContent")&&this._isContent(n);this._validDirections[i]=r})))},_isContent:function(e){return!!e.closest(this._$element).length},_prepareDirections:function(e){e=e||!1,this._validDirections={},this._validDirections[Jh]=e,this._validDirections[Xh]=e},_eachScroller:function(e){e=e.bind(this),(0,E.S6)(this._scrollers,(function(t,i){e(i,t)}))},handleStart:function(e){this._eventForUserAction=e,this._eventHandler("start").done(this._startAction)},_saveActive:function(){$h=this},_resetActive:function(){$h===this&&($h=null)},handleMove:function(e){if(this._isLocked())return e.cancel=!0,void this._resetActive();this._saveActive(),e.preventDefault&&e.preventDefault(),this._adjustDistance(e,e.delta),this._eventForUserAction=e,this._eventHandler("move",e.delta)},_adjustDistance:function(e,t){t.x*=this._validDirections[Jh],t.y*=this._validDirections[Xh];var i=this._tryGetDevicePixelRatio();i&&(0,R.pR)(e.originalEvent)&&(t.x=Math.round(t.x/i*100)/100,t.y=Math.round(t.y/i*100)/100)},_tryGetDevicePixelRatio:function(){if((0,s.Ym)())return(0,s.Jj)().devicePixelRatio},handleEnd:function(e){return this._resetActive(),this._refreshCursorState(e.originalEvent&&e.originalEvent.target),this._adjustDistance(e,e.velocity),this._eventForUserAction=e,this._eventHandler("end",e.velocity).done(this._endAction)},handleCancel:function(e){return this._resetActive(),this._eventForUserAction=e,this._eventHandler("end",{x:0,y:0})},handleStop:function(){this._resetActive(),this._eventHandler("stop")},handleScroll:function(){this._updateRtlConfig(),this._scrollAction()},_attachKeyboardHandler:function(){re.Z.off(this._$element,".".concat(Uh)),!this.option("disabled")&&this.option("useKeyboard")&&re.Z.on(this._$element,(0,R.V4)("keydown",Uh),this._keyDownHandler.bind(this))},_keyDownHandler:function(e){if(clearTimeout(this._updateHandlerTimeout),this._updateHandlerTimeout=setTimeout((()=>{(0,R.EV)(e)===dp.TAB&&this._eachScroller((e=>{e._updateHandler()}))})),this._$container.is(ke["default"].getActiveElement(this._$container.get(0)))){var t=!0;switch((0,R.EV)(e)){case dp.DOWN:this._scrollByLine({y:1});break;case dp.UP:this._scrollByLine({y:-1});break;case dp.RIGHT:this._scrollByLine({x:1});break;case dp.LEFT:this._scrollByLine({x:-1});break;case dp.PAGE_DOWN:this._scrollByPage(1);break;case dp.PAGE_UP:this._scrollByPage(-1);break;case dp.HOME:this._scrollToHome();break;case dp.END:this._scrollToEnd();break;default:t=!1}t&&(e.stopPropagation(),e.preventDefault())}},_scrollByLine:function(e){var t=this._tryGetDevicePixelRatio(),i=np;t&&(i=Math.abs(i/t*100)/100),this.scrollBy({top:(e.y||0)*-i,left:(e.x||0)*-i})},_scrollByPage:function(e){var t=this._wheelProp(),i=this._dimensionByProp(t),o={},r="width"===i?n.dz:n.Cr;o[t]=e*-r(this._$container),this.scrollBy(o)},_dimensionByProp:function(e){return"left"===e?"width":"height"},_getPropByDirection:function(e){return e===Jh?"left":"top"},_scrollToHome:function(){var e=this._wheelProp(),t={};t[e]=0,this._component.scrollTo(t)},_scrollToEnd:function(){var e=this._wheelProp(),t=this._dimensionByProp(e),i={},o="width"===t?n.dz:n.Cr;i[e]=o(this._$content)-o(this._$container),this._component.scrollTo(i)},createActions:function(){this._startAction=this._createActionHandler("onStart"),this._endAction=this._createActionHandler("onEnd"),this._updateAction=this._createActionHandler("onUpdated"),this._createScrollerActions()},_createScrollerActions:function(){this._scrollAction=this._createActionHandler("onScroll"),this._bounceAction=this._createActionHandler("onBounce"),this._eventHandler("createActions",{scroll:this._scrollAction,bounce:this._bounceAction})},_createActionHandler:function(e){var t=this._createActionByOption(e);return()=>{t((0,a.l)(this._createActionArgs(),arguments))}},_createActionArgs:function(){var{horizontal:e,vertical:t}=this._scrollers,i=this._getScrollOffset();return this._scrollOffset={top:t&&i.top,left:e&&i.left},{event:this._eventForUserAction,scrollOffset:this._scrollOffset,reachedLeft:e&&e._reachedMax(),reachedRight:e&&e._reachedMin(),reachedTop:t&&t._reachedMax(),reachedBottom:t&&t._reachedMin()}},_getScrollOffset(){return{top:-this.location().top,left:-this.location().left}},_eventHandler:function(e){var t=[].slice.call(arguments).slice(1),i=(0,E.UI)(this._scrollers,(i=>i["_"+e+"Handler"].apply(i,t)));return ot.gx.apply(o.Z,i).promise()},location:function(){var e=he(this._$content);return e.top-=this._$container.scrollTop(),e.left-=this._$container.scrollLeft(),e},disabledChanged:function(){this._attachCursorHandlers()},_attachCursorHandlers:function(){re.Z.off(this._$element,".".concat(jh)),!this.option("disabled")&&this._isHoverMode()&&(re.Z.on(this._$element,(0,R.V4)("mouseenter",jh),this._cursorEnterHandler.bind(this)),re.Z.on(this._$element,(0,R.V4)("mouseleave",jh),this._cursorLeaveHandler.bind(this)))},_isHoverMode:function(){return"onHover"===this.option("showScrollbar")},_cursorEnterHandler:function(e){e=e||{},e.originalEvent=e.originalEvent||{},$h||e.originalEvent._hoverHandled||(Zh&&Zh._cursorLeaveHandler(),Zh=this,this._eventHandler("cursorEnter"),e.originalEvent._hoverHandled=!0)},_cursorLeaveHandler:function(e){Zh===this&&$h!==Zh&&(this._eventHandler("cursorLeave"),Zh=null,this._refreshCursorState(e&&e.relatedTarget))},_refreshCursorState:function(e){if(this._isHoverMode()||e&&!$h){var t=(0,o.Z)(e),i=t.closest(".".concat(Gh,":not(.dx-state-disabled)")),n=i.length&&i.data(zh);Zh&&Zh!==n&&Zh._cursorLeaveHandler(),n&&n._cursorEnterHandler()}},update:function(){var e=this._eventHandler("update").done(this._updateAction);return(0,ot.gx)(e,(0,v.Su)((()=>{var e=this._allowedDirections();return(0,v.g0)((()=>{var t=e.vertical?"pan-x":"";t=e.horizontal?"pan-y":t,t=e.vertical&&e.horizontal?"none":t,this._$container.css("touchAction",t)})),(0,ot.gx)().promise()})))},_allowedDirections:function(){var e=this.option("bounceEnabled"),t=this._scrollers[Xh],i=this._scrollers[Jh];return{vertical:t&&(t._minOffset<0||e),horizontal:i&&(i._minOffset<0||e)}},_updateBounds:function(){this._scrollers[Jh]&&this._scrollers[Jh]._updateBounds()},_isHorizontalAndRtlEnabled:function(){return this.option("rtlEnabled")&&this.option("direction")!==Xh},updateRtlPosition:function(e){e&&(this._rtlConfig={scrollRight:0,clientWidth:this._$container.get(0).clientWidth,windowPixelRatio:this._getWindowDevicePixelRatio()}),this._updateBounds(),this._isHorizontalAndRtlEnabled()&&(0,v.Su)((()=>{var e=this._getMaxOffset().left-this._rtlConfig.scrollRight;e<=0&&(e=0,this._rtlConfig.scrollRight=this._getMaxOffset().left),(0,v.g0)((()=>{this._getScrollOffset().left!==e&&(this._rtlConfig.skipUpdating=!0,this._component.scrollTo({left:e}),this._rtlConfig.skipUpdating=!1)}))}))},_updateRtlConfig:function(){if(this._isHorizontalAndRtlEnabled()&&!this._rtlConfig.skipUpdating){var{clientWidth:e,scrollLeft:t}=this._$container.get(0),i=this._getWindowDevicePixelRatio();this._rtlConfig.windowPixelRatio===i&&this._rtlConfig.clientWidth===e&&(this._rtlConfig.scrollRight=this._getMaxOffset().left-t),this._rtlConfig.clientWidth=e,this._rtlConfig.windowPixelRatio=i}},_getWindowDevicePixelRatio:function(){return(0,s.Ym)()?(0,s.Jj)().devicePixelRatio:1},scrollBy:function(e){var t=this._scrollers[Xh],i=this._scrollers[Jh];t&&(e.top=t._boundLocation(e.top+t._location)-t._location),i&&(e.left=i._boundLocation(e.left+i._location)-i._location),this._prepareDirections(!0),this._startAction(),this._eventHandler("scrollBy",{x:e.left,y:e.top}),this._endAction(),this._updateRtlConfig()},validate:function(e){return(!(0,R.pR)(e)||!(0,R.j1)(e))&&(!this.option("disabled")&&(!!this.option("bounceEnabled")||((0,R.pR)(e)?this._validateWheel(e):this._validateMove(e))))},_validateWheel:function(e){var t=this._scrollers[this._wheelDirection(e)],i=t._reachedMin(),n=t._reachedMax(),o=!i||!n,r=!i&&!n,a=i&&e.delta>0,s=n&&e.delta<0,l=o&&(r||a||s);return l=l||void 0!==this._validateWheelTimer,l&&(clearTimeout(this._validateWheelTimer),this._validateWheelTimer=setTimeout((()=>{this._validateWheelTimer=void 0}),op)),l},_validateMove:function(e){return!(!this.option("scrollByContent")&&!(0,o.Z)(e.target).closest(".".concat(Yh)).length)&&this._allowedDirection()},getDirection:function(e){return(0,R.pR)(e)?this._wheelDirection(e):this._allowedDirection()},_wheelProp:function(){return this._wheelDirection()===Jh?"left":"top"},_wheelDirection:function(e){switch(this.option("direction")){case Jh:return Jh;case Xh:return Xh;default:return e&&e.shiftKey?Jh:Xh}},dispose:function(){this._resetActive(),Zh===this&&(Zh=null),this._eventHandler("dispose"),this._detachEventHandlers(),this._$element.removeClass(Gh),this._eventForUserAction=null,clearTimeout(this._validateWheelTimer),clearTimeout(this._updateHandlerTimeout)},_detachEventHandlers:function(){re.Z.off(this._$element,".".concat(jh)),re.Z.off(this._$container,".".concat(Uh))}}),fp="dxNativeScrollable",gp="dx-scrollable-native",mp="dx-scrollable-scrollbar-simulated",_p="dx-scrollable-scrollbars-hidden",vp="vertical",yp="horizontal",Cp=500,bp=P.Z.inherit({ctor:function(e){this._init(e)},_init:function(e){this._component=e,this._$element=e.$element(),this._$container=(0,o.Z)(e.container()),this._$content=e.$content(),this._direction=e.option("direction"),this._useSimulatedScrollbar=e.option("useSimulatedScrollbar"),this.option=e.option.bind(e),this._createActionByOption=e._createActionByOption.bind(e),this._isLocked=e._isLocked.bind(e),this._isDirection=e._isDirection.bind(e),this._allowedDirection=e._allowedDirection.bind(e),this._getMaxOffset=e._getMaxOffset.bind(e),this._isRtlNativeStrategy=e._isRtlNativeStrategy.bind(e)},render:function(){var e=w.Z.real(),t=e.platform;this._$element.addClass(gp).addClass(gp+"-"+t).toggleClass(_p,!this._isScrollbarVisible()),this._isScrollbarVisible()&&this._useSimulatedScrollbar&&this._renderScrollbars()},updateRtlPosition:function(e){e&&this.option("rtlEnabled")&&this._isScrollbarVisible()&&this._useSimulatedScrollbar&&this._moveScrollbars()},_renderScrollbars:function(){this._scrollbars={},this._hideScrollbarTimeout=0,this._$element.addClass(mp),this._renderScrollbar(vp),this._renderScrollbar(yp)},_renderScrollbar:function(e){this._isDirection(e)&&(this._scrollbars[e]=new Wh((0,o.Z)("<div>").appendTo(this._$element),{direction:e,expandable:this._component.option("scrollByThumb")}))},handleInit:v.ZT,handleStart:v.ZT,handleMove:function(e){this._isLocked()?e.cancel=!0:this._allowedDirection()&&(e.originalEvent.isScrollingEvent=!0)},handleEnd:v.ZT,handleCancel:v.ZT,handleStop:v.ZT,_eachScrollbar:function(e){e=e.bind(this),(0,E.S6)(this._scrollbars||{},(function(t,i){e(i,t)}))},createActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._updateAction=this._createActionByOption("onUpdated")},_createActionArgs:function(){var{left:e,top:t}=this.location();return{event:this._eventForUserAction,scrollOffset:this._getScrollOffset(),reachedLeft:this._isRtlNativeStrategy()?this._isReachedRight(-e):this._isReachedLeft(e),reachedRight:this._isRtlNativeStrategy()?this._isReachedLeft(-Math.abs(e)):this._isReachedRight(e),reachedTop:this._isDirection(vp)?Math.round(t)>=0:void 0,reachedBottom:this._isDirection(vp)?Math.round(Math.abs(t)-this._getMaxOffset().top)>=0:void 0}},_getScrollOffset:function(){var{top:e,left:t}=this.location();return{top:-e,left:this._normalizeOffsetLeft(-t)}},_normalizeOffsetLeft(e){return this._isRtlNativeStrategy()?this._getMaxOffset().left+e:e},_isReachedLeft:function(e){return this._isDirection(yp)?Math.round(e)>=0:void 0},_isReachedRight:function(e){return this._isDirection(yp)?Math.round(Math.abs(e)-this._getMaxOffset().left)>=0:void 0},_isScrollbarVisible:function(){var{showScrollbar:e}=this.option();return"never"!==e&&!1!==e},handleScroll:function(e){this._eventForUserAction=e,this._moveScrollbars(),this._scrollAction(this._createActionArgs())},_moveScrollbars:function(){var{top:e,left:t}=this._getScrollOffset();this._eachScrollbar((function(i){i.moveTo({top:-e,left:-t}),i.option("visible",!0)})),this._hideScrollbars()},_hideScrollbars:function(){clearTimeout(this._hideScrollbarTimeout),this._hideScrollbarTimeout=setTimeout(function(){this._eachScrollbar((function(e){e.option("visible",!1)}))}.bind(this),Cp)},location:function(){return{left:-this._$container.scrollLeft(),top:-this._$container.scrollTop()}},disabledChanged:v.ZT,update:function(){this._update(),this._updateAction(this._createActionArgs())},_update:function(){this._updateDimensions(),this._updateScrollbars()},_updateDimensions:function(){this._containerSize={height:(0,n.Cr)(this._$container),width:(0,n.dz)(this._$container)},this._componentContentSize={height:(0,n.Cr)(this._component.$content()),width:(0,n.dz)(this._component.$content())},this._contentSize={height:(0,n.Cr)(this._$content),width:(0,n.dz)(this._$content)}},_updateScrollbars:function(){this._eachScrollbar((function(e,t){var i=t===vp?"height":"width";e.option({containerSize:this._containerSize[i],contentSize:this._componentContentSize[i]}),e.update()}))},_allowedDirections:function(){return{vertical:this._isDirection(vp)&&this._contentSize.height>this._containerSize.height,horizontal:this._isDirection(yp)&&this._contentSize.width>this._containerSize.width}},dispose:function(){var e=this._$element.get(0).className,t=new RegExp(gp+"\\S*","g");t.test(e)&&this._$element.removeClass(e.match(t).join(" ")),re.Z.off(this._$element,"."+fp),re.Z.off(this._$container,"."+fp),this._removeScrollbars(),clearTimeout(this._hideScrollbarTimeout)},_removeScrollbars:function(){this._eachScrollbar((function(e){e.$element().remove()}))},scrollBy:function(e){var t=this.location();this._$container.scrollTop(Math.round(-t.top-e.top)),this._$container.scrollLeft(Math.round(-t.left-e.left))},validate:function(e){return!this.option("disabled")&&((!(0,R.pR)(e)||!this._isScrolledInMaxDirection(e))&&!!this._allowedDirection())},_isScrolledInMaxDirection(e){var t,i=this._$container.get(0);return t=e.delta>0?e.shiftKey?!i.scrollLeft:!i.scrollTop:e.shiftKey?i.scrollLeft>=this._getMaxOffset().left:i.scrollTop>=this._getMaxOffset().top,t},getDirection:function(){return this._allowedDirection()}}),xp=bp,wp=function(){return[{device:function(){return!b.nativeScrolling},options:{useNative:!1}},{device:function(e){return!w.Z.isSimulator()&&"desktop"===w.Z.real().deviceType&&"generic"===e.platform},options:{bounceEnabled:!1,scrollByThumb:!0,scrollByContent:b.touch,showScrollbar:"onHover"}}]};function Tp(e,t){var i={left:0,top:0},n=t;while(null!==(o=n)&&void 0!==o&&o.offsetParent&&!n.classList.contains(e)){var o,r=n.offsetParent,a=n.getBoundingClientRect(),s=r.getBoundingClientRect();i.left+=a.left-s.left,i.top+=a.top-s.top,n=n.offsetParent}return i}var Sp="vertical",Ip="horizontal",Ep="both",Dp="dx-scrollable-content";function kp(e,t,i,n,o){var r=(0,hn.Z)({top:0,left:0,right:0,bottom:0},o),a=t===Sp,s=a?"top":"left",l=a?"bottom":"right",d=a?"height":"width",u=i["offset".concat((0,sn.MI)(d))],c=i["client".concat((0,sn.MI)(d))],h=i.getBoundingClientRect()[d],p=e.getBoundingClientRect()[d],f=1;Math.abs(h-u)>1&&(f=h/u);var g=Tp(Dp,e)[s]/f,m=n[s],_=m-g+r[s],v=m-g-p/f+c-r[l];return _<=0&&v>=0?m:m-(Math.abs(_)>Math.abs(v)?v:_)}var Op="dxScrollable",Ap="dxScrollableStrategy",Pp="dx-scrollable",Mp="dx-scrollable-disabled",Rp="dx-scrollable-container",Bp="dx-scrollable-wrapper",Vp="dx-scrollable-content",Fp="vertical",Hp="horizontal",Lp="both",Np=S.Z.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{disabled:!1,onScroll:null,direction:Fp,showScrollbar:"onScroll",useNative:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,onUpdated:null,onStart:null,onEnd:null,onBounce:null,useSimulatedScrollbar:!1,useKeyboard:!0,inertiaEnabled:!0,updateManually:!1})},_defaultOptionsRules:function(){return this.callBase().concat(wp(),[{device:function(){return b.nativeScrolling&&"android"===w.Z.real().platform&&!Me.Z.mozilla},options:{useSimulatedScrollbar:!0}}])},_initOptions:function(e){this.callBase(e),"useSimulatedScrollbar"in e||this._setUseSimulatedScrollbar()},_setUseSimulatedScrollbar:function(){this.initialOption("useSimulatedScrollbar")||this.option("useSimulatedScrollbar",!this.option("useNative"))},_init:function(){this.callBase(),this._initScrollableMarkup(),this._locked=!1},_visibilityChanged:function(e){e?(this.update(),this._updateRtlPosition(),this._savedScrollOffset&&this.scrollTo(this._savedScrollOffset),delete this._savedScrollOffset):this._savedScrollOffset=this.scrollOffset()},_initScrollableMarkup:function(){var e=this.$element().addClass(Pp),t=this._$container=(0,o.Z)("<div>").addClass(Rp),i=this._$wrapper=(0,o.Z)("<div>").addClass(Bp),n=this._$content=(0,o.Z)("<div>").addClass(Vp);n.append(e.contents()).appendTo(t),t.appendTo(i),i.appendTo(e)},_dimensionChanged:function(){this.update(),this._updateRtlPosition()},_initMarkup:function(){this.callBase(),this._renderDirection()},_render:function(){this._renderStrategy(),this._attachEventHandlers(),this._renderDisabledState(),this._createActions(),this.update(),this.callBase(),this._updateRtlPosition(!0)},_updateRtlPosition:function(e){this._strategy.updateRtlPosition(e)},_getMaxOffset:function(){var{scrollWidth:e,clientWidth:t,scrollHeight:i,clientHeight:n}=(0,o.Z)(this.container()).get(0);return{left:e-t,top:i-n}},_attachEventHandlers:function(){var e=this._strategy,t={getDirection:e.getDirection.bind(e),validate:this._validate.bind(this),isNative:this.option("useNative"),scrollTarget:this._$container};re.Z.off(this._$wrapper,"."+Op),re.Z.on(this._$wrapper,(0,R.V4)(Dl.init,Op),t,this._initHandler.bind(this)),re.Z.on(this._$wrapper,(0,R.V4)(Dl.start,Op),e.handleStart.bind(e)),re.Z.on(this._$wrapper,(0,R.V4)(Dl.move,Op),e.handleMove.bind(e)),re.Z.on(this._$wrapper,(0,R.V4)(Dl.end,Op),e.handleEnd.bind(e)),re.Z.on(this._$wrapper,(0,R.V4)(Dl.cancel,Op),e.handleCancel.bind(e)),re.Z.on(this._$wrapper,(0,R.V4)(Dl.stop,Op),e.handleStop.bind(e)),re.Z.off(this._$container,"."+Op),re.Z.on(this._$container,(0,R.V4)("scroll",Op),e.handleScroll.bind(e))},_validate:function(e){return!this._isLocked()&&(this._updateIfNeed(),this._moveIsAllowed(e))},_moveIsAllowed(e){return this._strategy.validate(e)},handleMove(e){this._strategy.handleMove(e)},_prepareDirections(e){this._strategy._prepareDirections(e)},_initHandler:function(){var e=this._strategy;e.handleInit.apply(e,arguments)},_renderDisabledState:function(){this.$element().toggleClass(Mp,this.option("disabled")),this.option("disabled")?this._lock():this._unlock()},_renderDirection:function(){this.$element().removeClass("dx-scrollable-"+Hp).removeClass("dx-scrollable-"+Fp).removeClass("dx-scrollable-"+Lp).addClass("dx-scrollable-"+this.option("direction"))},_renderStrategy:function(){this._createStrategy(),this._strategy.render(),this.$element().data(Ap,this._strategy)},_createStrategy:function(){this._strategy=this.option("useNative")?new xp(this):new pp(this)},_createActions:function(){this._strategy&&this._strategy.createActions()},_clean:function(){this._strategy&&this._strategy.dispose()},_optionChanged:function(e){switch(e.name){case"onStart":case"onEnd":case"onUpdated":case"onScroll":case"onBounce":this._createActions();break;case"direction":this._resetInactiveDirection(),this._invalidate();break;case"useNative":this._setUseSimulatedScrollbar(),this._invalidate();break;case"inertiaEnabled":case"scrollByThumb":case"bounceEnabled":case"useKeyboard":case"showScrollbar":case"useSimulatedScrollbar":this._invalidate();break;case"disabled":this._renderDisabledState(),this._strategy&&this._strategy.disabledChanged();break;case"updateManually":case"scrollByContent":break;case"width":this.callBase(e),this._updateRtlPosition();break;default:this.callBase(e)}},_resetInactiveDirection:function(){var e=this._getInactiveProp();if(e&&(0,s.Ym)()){var t=this.scrollOffset();t[e]=0,this.scrollTo(t)}},_getInactiveProp:function(){var e=this.option("direction");return e===Fp?"left":e===Hp?"top":void 0},_location:function(){return this._strategy.location()},_normalizeLocation:function(e){if((0,l.PO)(e)){var t=(0,v.IS)(e.left,e.x),i=(0,v.IS)(e.top,e.y);return{left:(0,l.$K)(t)?-t:void 0,top:(0,l.$K)(i)?-i:void 0}}var n=this.option("direction");return{left:n!==Fp?-e:void 0,top:n!==Hp?-e:void 0}},_isLocked:function(){return this._locked},_lock:function(){this._locked=!0},_unlock:function(){this.option("disabled")||(this._locked=!1)},_isDirection:function(e){var t=this.option("direction");return e===Fp?t!==Hp:e===Hp?t!==Fp:t===e},_updateAllowedDirection:function(){var e=this._strategy._allowedDirections();this._isDirection(Lp)&&e.vertical&&e.horizontal?this._allowedDirectionValue=Lp:this._isDirection(Hp)&&e.horizontal?this._allowedDirectionValue=Hp:this._isDirection(Fp)&&e.vertical?this._allowedDirectionValue=Fp:this._allowedDirectionValue=null},_allowedDirection:function(){return this._allowedDirectionValue},$content:function(){return this._$content},content:function(){return(0,se.u)(this._$content)},container:function(){return(0,se.u)(this._$container)},scrollOffset:function(){return this._strategy._getScrollOffset()},_isRtlNativeStrategy:function(){var{useNative:e,rtlEnabled:t}=this.option();return e&&t},scrollTop:function(){return this.scrollOffset().top},scrollLeft:function(){return this.scrollOffset().left},clientHeight:function(){return(0,n.Cr)(this._$container)},scrollHeight:function(){return(0,n.zp)(this.$content())},clientWidth:function(){return(0,n.dz)(this._$container)},scrollWidth:function(){return(0,n.Y_)(this.$content())},update:function(){if(this._strategy)return(0,ot.gx)(this._strategy.update()).done(function(){this._updateAllowedDirection()}.bind(this))},scrollBy:function(e){e=this._normalizeLocation(e),(e.top||e.left)&&(this._updateIfNeed(),this._strategy.scrollBy(e))},scrollTo:function(e){e=this._normalizeLocation(e),this._updateIfNeed();var t=this._location();this.option("useNative")||(e=this._strategy._applyScaleRatio(e),t=this._strategy._applyScaleRatio(t)),this._isRtlNativeStrategy()&&(t.left=t.left-this._getMaxOffset().left);var i=this._normalizeLocation({left:t.left-(0,v.IS)(e.left,t.left),top:t.top-(0,v.IS)(e.top,t.top)});(i.top||i.left)&&this._strategy.scrollBy(i)},scrollToElement:function(e,t){var i=(0,o.Z)(e),n=this.$content().find(e).length,r=i.parents("."+Pp).length-i.parents("."+Vp).length===0;if(n&&r){var a={top:0,left:0},s=this.option("direction");s!==Fp&&(a.left=this.getScrollElementPosition(i,Hp,t)),s!==Hp&&(a.top=this.getScrollElementPosition(i,Fp,t)),this.scrollTo(a)}},getScrollElementPosition:function(e,t,i){var n=this.scrollOffset();return kp(e.get(0),t,(0,o.Z)(this.container()).get(0),n,i)},_updateIfNeed:function(){this.option("updateManually")||this.update()},_useTemplates:function(){return!1},isRenovated:function(){return!!Np.IS_RENOVATED_WIDGET}});(0,C.Z)(Op,Np);var Zp=Np,$p=Zp;function Wp(e){return e.scrollWidth-e.clientWidth}class Kp{constructor(e){this.DIRECTION_HORIZONTAL="horizontal",this.DIRECTION_VERTICAL="vertical",this.DIRECTION_BOTH="both",this.direction=null!==e&&void 0!==e?e:Sp}get isHorizontal(){return this.direction===Ip||this.direction===Ep}get isVertical(){return this.direction===Sp||this.direction===Ep}get isBoth(){return this.direction===Ep}}function zp(e,t){return Math.round(e)<=t}function jp(e,t,i){return Math.round(Wp(e)-t)<=i}var Up="dx-tabs",Gp="dx-tabs-wrapper",qp="dx-tabs-stretched",Yp="dx-tabs-scrollable",Xp="dx-tabs-nav-buttons",Jp="dx-overflow-hidden",Qp="dx-tab",ef="dx-tab-selected",tf="dx-tabs-nav-button",nf="dx-tabs-nav-button-left",of="dx-tabs-nav-button-right",rf="dx-tab-text",af="dxTabData",sf="chevronnext",lf="chevronprev",df=100,uf=5,cf=300,hf=30,pf=Jc.inherit({_activeStateUnit:"."+Qp,_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{hoverStateEnabled:!0,showNavButtons:!0,scrollByContent:!0,scrollingEnabled:!0,selectionMode:"single",activeStateEnabled:!0,selectionRequired:!1,selectOnFocus:!0,loopItemFocus:!1,useInkRipple:!1,badgeExpr:function(e){return e?e.badge:void 0},_itemAttributes:{role:"tab"}})},_defaultOptionsRules:function(){var e=(0,x.Vk)();return this.callBase().concat([{device:function(){return"desktop"!==w.Z.real().deviceType},options:{showNavButtons:!1}},{device:{deviceType:"desktop"},options:{scrollByContent:!1}},{device:function(){return"desktop"===w.Z.real().deviceType&&!w.Z.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,x.x2)(e)},options:{useInkRipple:!0,selectOnFocus:!1}}])},_init:function(){this.callBase(),this.setAria("role","tablist"),this.$element().addClass(Up),this._renderWrapper(),this._renderMultiple(),this._feedbackHideTimeout=df},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({item:new Bd(function(e,t){(0,l.PO)(t)?this._prepareDefaultItemTemplate(t,e):e.text(String(t));var i=Rs(t.icon);i&&i.prependTo(e),e.wrapInner((0,o.Z)("<span>").addClass(rf))}.bind(this),["text","html","icon"],this.option("integrationOptions.watchMethod"))})},_createItemByTemplate:function(e,t){var{itemData:i,container:n,index:o}=t;return this._deferredTemplates[o]=new ot.BH,e.render({model:i,container:n,index:o,onRendered:()=>this._deferredTemplates[o].resolve()})},_itemClass:function(){return Qp},_selectedItemClass:function(){return ef},_itemDataKey:function(){return af},_initMarkup:function(){this._deferredTemplates=[],this.callBase(),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().addClass(Jp)},_render:function(){this.callBase(),this._deferRenderScrolling()},_deferRenderScrolling(){ot.gx.apply(this,this._deferredTemplates).done((()=>this._renderScrolling()))},_renderScrolling:function(){var e=[qp,Ih,Jp];if(this.$element().removeClass(e.join(" ")),this.option("scrollingEnabled")&&this._isItemsWidthExceeded()){this._scrollable||(this._renderScrollable(),this._renderNavButtons());var t=this.getScrollable();if(t.update(),this.option("rtlEnabled")){var i=Wp((0,o.Z)(this.getScrollable().container()).get(0));t.scrollTo({left:i})}this._updateNavButtonsVisibility(),this._scrollToItem(this.option("selectedItem"))}this.option("scrollingEnabled")&&this._isItemsWidthExceeded()||(this._cleanScrolling(),this._needStretchItems()&&!this._isItemsWidthExceeded()&&this.$element().addClass(qp),this.$element().removeClass(Xp).addClass(Ih))},_isItemsWidthExceeded:function(){var e=this._getSummaryItemsWidth(this._getVisibleItems(),!0);return e-1>(0,n.dz)(this.$element())},_needStretchItems:function(){var e=this._getVisibleItems(),t=(0,n.dz)(this.$element()),i=[];(0,E.S6)(e,((e,t)=>{i.push((0,n.Y_)(t,!0))}));var o=Math.max.apply(null,i);return o>=t/e.length},_cleanNavButtons:function(){this._leftButton&&this._rightButton&&(this._leftButton.$element().remove(),this._rightButton.$element().remove(),this._leftButton=null,this._rightButton=null)},_cleanScrolling:function(){this._scrollable&&(this._$wrapper.appendTo(this.$element()),this._scrollable.$element().remove(),this._scrollable=null,this._cleanNavButtons())},_renderInkRipple:function(){this._inkRipple=el()},_toggleActiveState:function(e,t,i){if(this.callBase.apply(this,arguments),this._inkRipple){var n={element:e,event:i};t?this._inkRipple.showWave(n):this._inkRipple.hideWave(n)}},_renderMultiple:function(){"multiple"===this.option("selectionMode")&&this.option("selectOnFocus",!1)},_renderWrapper:function(){this._$wrapper=(0,o.Z)("<div>").addClass(Gp),this.$element().append(this._$wrapper)},_itemContainer:function(){return this._$wrapper},_renderScrollable:function(){var e=this.$element().wrapInner((0,o.Z)("<div>").addClass(Yp)).children();this._scrollable=this._createComponent(e,$p,{direction:"horizontal",showScrollbar:"never",useKeyboard:!1,useNative:!1,scrollByContent:this.option("scrollByContent"),onScroll:()=>{this._updateNavButtonsVisibility()}}),this.$element().append(this._scrollable.$element())},_scrollToItem:function(e){if(this._scrollable){var t=this._editStrategy.getItemElement(e);this._scrollable.scrollToElement(t)}},_renderNavButtons:function(){if(this.$element().toggleClass(Xp,this.option("showNavButtons")),this.option("showNavButtons")){var e=this.option("rtlEnabled");this._leftButton=this._createNavButton(-hf,e?sf:lf);var t=this._leftButton.$element();t.addClass(nf),this.$element().prepend(t),this._rightButton=this._createNavButton(hf,e?lf:sf);var i=this._rightButton.$element();i.addClass(of),this.$element().append(i)}},_updateNavButtonsVisibility:function(){var e=this.getScrollable();this._leftButton&&this._leftButton.option("disabled",zp(e.scrollLeft(),1)),this._rightButton&&this._rightButton.option("disabled",jp((0,o.Z)(e.container()).get(0),e.scrollLeft(),1))},_updateScrollPosition:function(e,t){this._scrollable.update(),this._scrollable.scrollBy(e/t)},_createNavButton:function(e,t){var i=this,n=i._createAction((function(){i._holdInterval=setInterval((function(){i._updateScrollPosition(e,uf)}),uf)})),r=(0,R.V4)(Sd.name,"dxNavButton"),a=(0,R.V4)(B.Z.up,"dxNavButton"),s=(0,R.V4)(B.Z.out,"dxNavButton"),l=this._createComponent((0,o.Z)("<div>").addClass(tf),cd,{focusStateEnabled:!1,icon:t,onClick:function(){i._updateScrollPosition(e,1)},integrationOptions:{}}),d=l.$element();return re.Z.on(d,r,{timeout:cf},function(e){n({event:e})}.bind(this)),re.Z.on(d,a,(function(){i._clearInterval()})),re.Z.on(d,s,(function(){i._clearInterval()})),l},_clearInterval:function(){this._holdInterval&&clearInterval(this._holdInterval)},_updateSelection:function(e){this._scrollable&&this._scrollable.scrollToElement(this.itemElements().eq(e[0]),{left:1,right:1})},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._renderScrolling()},_itemSelectHandler:function(e){"single"===this.option("selectionMode")&&this.isItemSelected(e.currentTarget)||this.callBase(e)},_clean:function(){this._deferredTemplates=[],this._cleanScrolling(),this.callBase()},_optionChanged:function(e){switch(e.name){case"useInkRipple":case"scrollingEnabled":case"showNavButtons":this._invalidate();break;case"scrollByContent":this._scrollable&&this._scrollable.option(e.name,e.value);break;case"width":this.callBase(e),this._dimensionChanged();break;case"selectionMode":this._renderMultiple(),this.callBase(e);break;case"badgeExpr":this._invalidate();break;default:this.callBase(e)}},_afterItemElementInserted(){this.callBase(),this._deferRenderScrolling()},_afterItemElementDeleted(e,t){this.callBase(e,t),this._renderScrolling()},getScrollable(){return this._scrollable}});pf.ItemClass=Sh,(0,C.Z)("dxTabs",pf);var ff=pf;class gf extends yd{_renderWatchers(){return this._startWatcher("badge",v.ZT),super._renderWatchers()}}var mf="dx-tabpanel",_f="dx-tabpanel-tabs",vf="dx-tabpanel-container",yf="dx-tab-text",Cf=bh.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{itemTitleTemplate:"title",hoverStateEnabled:!0,showNavButtons:!1,scrollByContent:!0,scrollingEnabled:!0,onTitleClick:null,onTitleHold:null,onTitleRendered:null,badgeExpr:function(e){return e?e.badge:void 0}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===w.Z.real().deviceType&&!w.Z.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return!b.touch},options:{swipeEnabled:!1}},{device:{platform:"generic"},options:{animationEnabled:!1}}])},_init:function(){this.callBase(),this.$element().addClass(mf),this.setAria("role","tabpanel")},_initMarkup:function(){this.callBase(),this._createTitleActions(),this._renderLayout()},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({title:new Bd((function(e,t){if((0,l.PO)(t)){var i=Rs(t.icon);i&&e.append(i),(0,l.$K)(t.title)&&!(0,l.PO)(t.title)&&e.append(ke["default"].createTextNode(t.title))}else(0,l.$K)(t)&&e.text(String(t));e.wrapInner((0,o.Z)("<span>").addClass(yf))}),["title","icon"],this.option("integrationOptions.watchMethod"))})},_createTitleActions:function(){this._createTitleClickAction(),this._createTitleHoldAction(),this._createTitleRenderedAction()},_createTitleClickAction:function(){this._titleClickAction=this._createActionByOption("onTitleClick")},_createTitleHoldAction:function(){this._titleHoldAction=this._createActionByOption("onTitleHold")},_createTitleRenderedAction:function(){this._titleRenderedAction=this._createActionByOption("onTitleRendered")},_renderContent:function(){var e=this;this.callBase(),this.option("templatesRenderAsynchronously")&&(this._resizeEventTimer=setTimeout((function(){e._updateLayout()}),0))},_renderLayout:function(){if(this._tabs)this._updateLayout();else{var e=this.$element();this._$tabContainer=(0,o.Z)("<div>").addClass(_f).appendTo(e);var t=(0,o.Z)("<div>").appendTo(this._$tabContainer);this._tabs=this._createComponent(t,ff,this._tabConfig()),this._$container=(0,o.Z)("<div>").addClass(vf).appendTo(e),this._$container.append(this._$wrapper),this._updateLayout()}},_updateLayout:function(){if((0,s.Ym)()){var e=(0,n.zp)(this._$tabContainer);this._$container.css({marginTop:-e,paddingTop:e})}},_refreshActiveDescendant:function(){if(this._tabs){var e=this._tabs,t=e.itemElements(),i=(0,o.Z)(t[e.option("selectedIndex")]),n=this.getFocusedItemId();this.setAria("controls",void 0,(0,o.Z)(t)),this.setAria("controls",n,i)}},_tabConfig:function(){return{selectOnFocus:!0,focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),repaintChangesOnly:this.option("repaintChangesOnly"),tabIndex:this.option("tabIndex"),selectedIndex:this.option("selectedIndex"),badgeExpr:this.option("badgeExpr"),onItemClick:this._titleClickAction.bind(this),onItemHold:this._titleHoldAction.bind(this),itemHoldTimeout:this.option("itemHoldTimeout"),onSelectionChanged:function(e){this.option("selectedIndex",e.component.option("selectedIndex")),this._refreshActiveDescendant()}.bind(this),onItemRendered:this._titleRenderedAction.bind(this),itemTemplate:this._getTemplateByOption("itemTitleTemplate"),items:this.option("items"),noDataText:null,scrollingEnabled:this.option("scrollingEnabled"),scrollByContent:this.option("scrollByContent"),showNavButtons:this.option("showNavButtons"),itemTemplateProperty:"tabTemplate",loopItemFocus:this.option("loop"),selectionRequired:!0,onOptionChanged:function(e){if("focusedElement"===e.name)if(e.value){var t=(0,o.Z)(e.value),i=this._itemElements().eq(t.index());this.option("focusedElement",(0,se.u)(i))}else this.option("focusedElement",e.value)}.bind(this),onFocusIn:function(e){this._focusInHandler(e.event)}.bind(this),onFocusOut:function(e){this._isFocusOutHandlerExecuting||this._focusOutHandler(e.event)}.bind(this)}},_renderFocusTarget:function(){this._focusTarget().attr("tabIndex",-1)},_updateFocusState:function(e,t){this.callBase(e,t),e.target===this._tabs._focusTarget().get(0)&&this._toggleFocusClass(t,this._focusTarget())},_focusOutHandler:function(e){this._isFocusOutHandlerExecuting=!0,this.callBase.apply(this,arguments),this._tabs._focusOutHandler(e),this._isFocusOutHandlerExecuting=!1},_setTabsOption:function(e,t){this._tabs&&this._tabs.option(e,t)},_visibilityChanged:function(e){e&&(this._tabs._dimensionChanged(),this._updateLayout())},registerKeyHandler:function(e,t){this.callBase(e,t),this._tabs&&this._tabs.registerKeyHandler(e,t)},repaint:function(){this.callBase(),this._tabs.repaint()},_optionChanged:function(e){var t=e.name,i=e.value,n=e.fullName;switch(t){case"dataSource":this.callBase(e);break;case"items":this._setTabsOption(t,this.option(t)),this._updateLayout(),this.option("repaintChangesOnly")||this._tabs.repaint(),this.callBase(e);break;case"width":this.callBase(e),this._tabs.repaint();break;case"selectedIndex":case"selectedItem":if(this._setTabsOption(n,i),this.callBase(e),!0===this.option("focusStateEnabled")){var r=this.option("selectedIndex"),a=this._itemElements().eq(r);this.option("focusedElement",(0,se.u)(a))}break;case"itemHoldTimeout":case"focusStateEnabled":case"hoverStateEnabled":this._setTabsOption(n,i),this.callBase(e);break;case"scrollingEnabled":case"scrollByContent":case"showNavButtons":this._setTabsOption(n,i);break;case"focusedElement":var s=i?(0,o.Z)(i).index():i,l=i?this._tabs._itemElements().eq(s):i;this._setTabsOption("focusedElement",(0,se.u)(l)),this.callBase(e);break;case"itemTitleTemplate":this._setTabsOption("itemTemplate",this._getTemplateByOption("itemTitleTemplate"));break;case"onTitleClick":this._createTitleClickAction(),this._setTabsOption("onItemClick",this._titleClickAction.bind(this));break;case"onTitleHold":this._createTitleHoldAction(),this._setTabsOption("onItemHold",this._titleHoldAction.bind(this));break;case"onTitleRendered":this._createTitleRenderedAction(),this._setTabsOption("onItemRendered",this._titleRenderedAction.bind(this));break;case"loop":this._setTabsOption("loopItemFocus",i);break;case"badgeExpr":this._invalidate();break;default:this.callBase(e)}},_clean:function(){clearTimeout(this._resizeEventTimer),this.callBase()}});Cf.ItemClass=gf,(0,C.Z)("dxTabPanel",Cf);var bf=Cf;class xf{constructor(e){this._options=e,this._itemsRunTimeInfo=this._options.itemsRunTimeInfo}findInstance(){return this._itemsRunTimeInfo.findWidgetInstanceByItem(this._options.item)}findItemContainer(){return this._itemsRunTimeInfo.findItemContainerByItem(this._options.item)}findPreparedItem(){return this._itemsRunTimeInfo.findPreparedItemByItem(this._options.item)}tryExecute(){P.Z.abstract()}}var wf=(e,t)=>"".concat(t?"tabs":"items","[").concat(e,"]"),Tf=(e,t)=>(0,l.$K)(e)&&(0,l.$K)(t)?"".concat(e,".").concat(t):e||t,Sf=e=>e?e.replace(/\s/g,""):void 0,If=(e,t)=>!!e&&(e.dataField===t||e.name===t||Sf(e.title)===t||"group"===e.itemType&&Sf(e.caption)===t),Ef=(e,t)=>"".concat(e,".").concat(t),Df=e=>{var t=e.split(".");return t[t.length-1].replace(/\[\d+]/,"")},kf=e=>{for(var t=e.split("."),i=[...t],n=t.length-1;n>=0;n--){if(Of(t[n]))return i.join(".");i.splice(n,1)}return""},Of=e=>e.indexOf("tabs")>-1,Af=(e,t,i)=>{var n=e.indexOf(t);if(n>-1)return wf(n,i);for(var o=0;o<e.length;o++){var r=e[o],a=r.tabs||r.items;if(a){var s=Af(a,t,r.tabs);if(s)return Tf(wf(o,i),s)}}};function Pf(e){var{form:t,$formElement:i,formOptions:n,items:o,validationGroup:r,extendedLayoutManagerOptions:s,onFieldDataChanged:l,onContentReady:d,onDisposing:u,onFieldItemRendered:c}=e,h={form:t,items:o,$formElement:i,validationGroup:r,onFieldDataChanged:l,onContentReady:d,onDisposing:u,onFieldItemRendered:c,validationBoundary:n.scrollingEnabled?i:void 0,scrollingEnabled:n.scrollingEnabled,showRequiredMark:n.showRequiredMark,showOptionalMark:n.showOptionalMark,requiredMark:n.requiredMark,optionalMark:n.optionalMark,requiredMessage:n.requiredMessage,screenByWidth:n.screenByWidth,layoutData:n.formData,labelLocation:n.labelLocation,customizeItem:n.customizeItem,minColWidth:n.minColWidth,showColonAfterLabel:n.showColonAfterLabel,onEditorEnterKey:n.onEditorEnterKey,labelMode:n.labelMode},p=(0,a.l)(h,{isRoot:s.isRoot,colCount:s.colCount,alignItemLabels:s.alignItemLabels,cssItemClass:s.cssItemClass,colCountByScreen:s.colCountByScreen,onLayoutChanged:s.onLayoutChanged,width:s.width});return p}class Mf extends xf{tryExecute(){var{value:e}=this._options,t=this.findInstance();return!!t&&(t.option(e),!0)}}class Rf extends xf{tryExecute(){var e=this.findInstance();if(e){var{optionName:t,item:i,value:n}=this._options,o=this._itemsRunTimeInfo.findItemIndexByItem(i);if(o>=0)return e.option(Ef("items[".concat(o,"]"),t),n),!0}return!1}}class Bf extends xf{tryExecute(){return!1}}class Vf extends xf{tryExecute(){var e=this.findPreparedItem();return!(null==e||!e._prepareGroupItemTemplate||!e._renderGroupContentTemplate)&&(e._prepareGroupItemTemplate(this._options.item.template),e._renderGroupContentTemplate(),!0)}}class Ff extends xf{tryExecute(){var e=this.findInstance();if(e){var{value:t}=this._options;return e.option("dataSource",t),!0}return!1}}class Hf extends xf{tryExecute(){var{item:e}=this._options,t=this.findInstance(),i=t&&(0,le.aT)(t.$element()[0],"dxValidator");if(i&&e){var n=e=>"required"===e.type,o=(i.option("validationRules")||[]).some(n),r=(e.validationRules||[]).some(n);if(!o&&!r||o&&r)return i.option("validationRules",e.validationRules),!0}return!1}}class Lf extends xf{tryExecute(){var e=this.findItemContainer(),{previousValue:t,value:i}=this._options;return!!e&&(e.removeClass(t).addClass(i),!0)}}var Nf=(e,t)=>{switch(e){case"editorOptions":case"buttonOptions":return new Mf(t);case"validationRules":return new Hf(t);case"cssClass":return new Lf(t);case"badge":case"disabled":case"icon":case"tabTemplate":case"title":return new Rf((0,a.l)(t,{optionName:e}));case"tabs":return new Ff(t);case"template":var i,n,o,r=null!==(i=null===t||void 0===t||null===(n=t.item)||void 0===n?void 0:n.itemType)&&void 0!==i?i:null===(o=t.itemsRunTimeInfo.findPreparedItemByItem(null===t||void 0===t?void 0:t.item))||void 0===o?void 0:o.itemType;return"simple"===r?new Bf(t):"group"===r?new Vf(t):new Rf((0,a.l)(t,{optionName:e}));default:return null}},Zf=Nf,$f=i(22866),Wf="dx-box",Kf="dx-box-flex",zf="dx-box-item",jf="dxBoxItemData",Uf=1,Gf={row:"minWidth",col:"minHeight"},qf={row:"maxWidth",col:"maxHeight"},Yf={start:"flex-start",end:"flex-end",center:"center","space-between":"space-between","space-around":"space-around"},Xf={start:"flex-start",end:"flex-end",center:"center",stretch:"stretch"},Jf={row:"row",col:"column"},Qf=(e,t,i)=>{if(i=(0,Fl.bh)(t,i),e.style[(0,Fl.Hj)(t)]=i,!(0,s.Ym)()){if(""===i||!(0,l.$K)(i))return;var n=(0,sn.H0)(t),o=n+": "+i+";";e.attributes.style?e.attributes.style.value.indexOf(o)<0&&(e.attributes.style.value+=" "+o):e.setAttribute("style",o)}};class eg extends yd{_renderVisible(e,t){super._renderVisible(e),(0,l.$K)(t)&&this._options.fireItemStateChangedAction({name:"visible",state:e,oldState:t})}}class tg{constructor(e,t){this._$element=e,this._option=t}renderBox(){this._$element.css({display:(0,Fl.gC)("flexDirection")+"flex"}),Qf(this._$element.get(0),"flexDirection",Jf[this._option("direction")])}renderAlign(){this._$element.css({justifyContent:this._normalizedAlign()})}_normalizedAlign(){var e=this._option("align");return e in Yf?Yf[e]:e}renderCrossAlign(){this._$element.css({alignItems:this._normalizedCrossAlign()})}_normalizedCrossAlign(){var e=this._option("crossAlign");return e in Xf?Xf[e]:e}renderItems(e){var t=(0,Fl.gC)("flexDirection"),i=this._option("direction");(0,E.S6)(e,(function(){var e=(0,o.Z)(this),n=e.data(jf);e.css({display:t+"flex"}).css(qf[i],n.maxSize||"none").css(Gf[i],n.minSize||"0"),Qf(e.get(0),"flexBasis",n.baseSize||0),Qf(e.get(0),"flexGrow",n.ratio),Qf(e.get(0),"flexShrink",(0,l.$K)(n.shrink)?n.shrink:Uf),e.children().each(((e,t)=>{(0,o.Z)(t).css({width:"auto",height:"auto",display:(0,Fl.gC)("flexDirection")+"flex",flexBasis:0}),Qf(t,"flexGrow",1),Qf(t,"flexDirection",(0,o.Z)(t)[0].style.flexDirection||"column")}))}))}}class ig extends Du{_getDefaultOptions(){return(0,a.l)(super._getDefaultOptions(),{direction:"row",align:"start",crossAlign:"stretch",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,_queue:void 0})}_itemClass(){return zf}_itemDataKey(){return jf}_itemElements(){return this._itemContainer().children(this._itemSelector())}_init(){super._init(),this.$element().addClass(Kf),this._initLayout(),this._initBoxQueue()}_initLayout(){this._layout=new tg(this.$element(),this.option.bind(this))}_initBoxQueue(){this._queue=this.option("_queue")||[]}_queueIsNotEmpty(){return!this.option("_queue")&&!!this._queue.length}_pushItemToQueue(e,t){this._queue.push({$item:e,config:t})}_shiftItemFromQueue(){return this._queue.shift()}_initMarkup(){this.$element().addClass(Wf),this._layout.renderBox(),super._initMarkup(),this._renderAlign(),this._renderActions()}_renderActions(){this._onItemStateChanged=this._createActionByOption("onItemStateChanged")}_renderAlign(){this._layout.renderAlign(),this._layout.renderCrossAlign()}_renderItems(e){super._renderItems(e);while(this._queueIsNotEmpty()){var t=this._shiftItemFromQueue();this._createComponent(t.$item,ig,(0,a.l)({itemTemplate:this.option("itemTemplate"),itemHoldTimeout:this.option("itemHoldTimeout"),onItemHold:this.option("onItemHold"),onItemClick:this.option("onItemClick"),onItemContextMenu:this.option("onItemContextMenu"),onItemRendered:this.option("onItemRendered"),_queue:this._queue},t.config))}this._layout.renderItems(this._itemElements())}_renderItemContent(e){var t=e.itemData&&e.itemData.node;return t?this._renderItemContentByNode(e,t):super._renderItemContent(e)}_postprocessRenderItem(e){var t=e.itemData.box;t&&this._pushItemToQueue(e.itemContent,t)}_createItemByTemplate(e,t){return t.itemData.box?e.source?e.source():(0,o.Z)():super._createItemByTemplate(e,t)}_itemOptionChanged(e,t,i,n){"visible"===t&&this._onItemStateChanged({name:t,state:i,oldState:!1!==n}),super._itemOptionChanged(e,t,i)}_optionChanged(e){switch(e.name){case"_queue":case"direction":this._invalidate();break;case"align":this._layout.renderAlign();break;case"crossAlign":this._layout.renderCrossAlign();break;default:super._optionChanged(e)}}_itemOptions(){var e=super._itemOptions();return e.fireItemStateChangedAction=e=>{this._onItemStateChanged(e)},e}}ig.ItemClass=eg,(0,C.Z)("dxBox",ig);var ng=ig,og="dx-responsivebox",rg=og+"-screen-",ag="dx-box-item",sg="dxBoxItemData",lg=1920,dg=Du.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{rows:[],cols:[],screenByWidth:null,singleColumnScreen:"",height:"100%",width:"100%",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,onLayoutChanged:null,currentScreenFactor:void 0})},_init:function(){this.option("screenByWidth")||this._options.silent("screenByWidth",s.$n),this.callBase(),this._initLayoutChangedAction()},_initLayoutChangedAction:function(){this._layoutChangedAction=this._createActionByOption("onLayoutChanged",{excludeValidators:["disabled","readonly"]})},_itemClass:function(){return ag},_itemDataKey:function(){return sg},_initMarkup:function(){this.callBase(),this.$element().addClass(og)},_renderItems:function(){this._setScreenSize(),this._screenItems=this._itemsByScreen(),this._prepareGrid(),this._spreadItems(),this._layoutItems(),this._linkNodeToItem()},_itemOptionChanged:function(e){var t=this._findItemElementByItem(e);t.length&&(this._refreshItem(t,e),this._clearItemNodeTemplates(),this._update(!0))},_setScreenSize:function(){var e=this._getCurrentScreen();this._removeScreenSizeClass(),this.$element().addClass(rg+e),this.option("currentScreenFactor",e)},_removeScreenSizeClass:function(){var e=this.option("currentScreenFactor");e&&this.$element().removeClass(rg+e)},_prepareGrid:function(){var e=this._grid=[];this._prepareRowsAndCols(),(0,E.S6)(this._rows,function(){var t=[];e.push(t),(0,E.S6)(this._cols,function(){t.push(this._createEmptyCell())}.bind(this))}.bind(this))},getSingleColumnRows:function(){var e=this.option("rows"),t=this._screenItems.length;if(e.length){for(var i=this._filterByScreen(e),n=[],o=0;o<t;o++){var r=this._defaultSizeConfig();o<i.length&&(0,l.$K)(i[o].shrink)&&(r.shrink=i[o].shrink),n.push(r)}return n}return this._defaultSizeConfig(t)},_prepareRowsAndCols:function(){this._isSingleColumnScreen()?(this._prepareSingleColumnScreenItems(),this._rows=this.getSingleColumnRows(),this._cols=this._defaultSizeConfig(1)):(this._rows=this._sizesByScreen(this.option("rows")),this._cols=this._sizesByScreen(this.option("cols")))},_isSingleColumnScreen:function(){return this._screenRegExp().test(this.option("singleColumnScreen"))||!this.option("rows").length||!this.option("cols").length},_prepareSingleColumnScreenItems:function(){this._screenItems.sort((function(e,t){return e.location.row-t.location.row||e.location.col-t.location.col})),(0,E.S6)(this._screenItems,(function(e,t){(0,a.l)(t.location,{row:e,col:0,rowspan:1,colspan:1})}))},_sizesByScreen:function(e){return(0,E.UI)(this._filterByScreen(e),function(e){return(0,a.l)(this._defaultSizeConfig(),e)}.bind(this))},_createDefaultSizeConfig:function(){return{ratio:1,baseSize:0,minSize:0,maxSize:0}},_defaultSizeConfig:function(e){var t=this._createDefaultSizeConfig();if(!arguments.length)return t;for(var i=[],n=0;n<e;n++)i.push(t);return i},_filterByScreen:function(e){var t=this._screenRegExp();return(0,v.h3)(e,(function(e){return!e.screen||t.test(e.screen)}))},_screenRegExp:function(){var e=this._getCurrentScreen();return new RegExp("(^|\\s)"+e+"($|\\s)","i")},_getCurrentScreen:function(){var e=this._screenWidth();return this.option("screenByWidth")(e)},_screenWidth:function(){return(0,s.Ym)()?(0,n.dz)((0,s.Jj)()):lg},_createEmptyCell:function(){return{item:{},location:{colspan:1,rowspan:1}}},_spreadItems:function(){(0,E.S6)(this._screenItems,function(e,t){var i=t.location||{},n=i.col,o=i.row,r=this._grid[o],a=r&&r[n];this._occupyCells(a,t)}.bind(this))},_itemsByScreen:function(){return this.option("items").reduce(((e,t)=>{var i=t.location||{};return i=(0,l.PO)(i)?[i]:i,this._filterByScreen(i).forEach((i=>{e.push({item:t,location:(0,a.l)({rowspan:1,colspan:1},i)})})),e}),[])},_occupyCells:function(e,t){e&&!this._isItemCellOccupied(e,t)&&((0,a.l)(e,t),this._markSpanningCell(e))},_isItemCellOccupied:function(e,t){if(!(0,l.Qr)(e.item))return!0;var i=!1;return this._loopOverSpanning(t.location,(function(e){i=i||!(0,l.Qr)(e.item)})),i},_loopOverSpanning:function(e,t){var i=e.row+e.rowspan-1,n=e.col+e.colspan-1,o=Math.min(i,this._rows.length-1),r=Math.min(n,this._cols.length-1);e.rowspan-=i-o,e.colspan-=n-r;for(var a=e.row;a<=o;a++)for(var s=e.col;s<=r;s++)a===e.row&&s===e.col||t(this._grid[a][s])},_markSpanningCell:function(e){this._loopOverSpanning(e.location,(function(t){(0,a.l)(t,{item:e.item,spanningCell:e})}))},_linkNodeToItem:function(){(0,E.S6)(this._itemElements(),(function(e,t){var i=(0,o.Z)(t),n=i.data(sg);n.box||(n.node=i.children())}))},_layoutItems:function(){var e=this._grid.length,t=e&&this._grid[0].length;if(e||t){var i=this._layoutBlock({direction:"col",row:{start:0,end:e-1},col:{start:0,end:t-1}}),n=this._prepareBoxConfig(i.box||{direction:"row",items:[(0,a.l)(i,{ratio:1})]});(0,a.l)(n,this._rootBoxConfig(n.items)),this._$root=(0,o.Z)("<div>").appendTo(this._itemContainer()),this._createComponent(this._$root,ng,n)}},_rootBoxConfig:function(e){var t=(0,E.S6)(e,function(e,t){this._needApplyAutoBaseSize(t)&&(0,a.l)(t,{baseSize:"auto"})}.bind(this));return{width:"100%",height:"100%",items:t,itemTemplate:this._getTemplateByOption("itemTemplate"),itemHoldTimeout:this.option("itemHoldTimeout"),onItemHold:this._createActionByOption("onItemHold"),onItemClick:this._createActionByOption("onItemClick"),onItemContextMenu:this._createActionByOption("onItemContextMenu"),onItemRendered:this._createActionByOption("onItemRendered")}},_needApplyAutoBaseSize:function(e){return!e.baseSize&&(!e.minSize||"auto"===e.minSize)&&(!e.maxSize||"auto"===e.maxSize)},_prepareBoxConfig:function(e){return(0,a.l)(e||{},{crossAlign:"stretch",onItemStateChanged:this.option("onItemStateChanged")})},_layoutBlock:function(e){return this._isSingleItem(e)?this._itemByCell(e.row.start,e.col.start):this._layoutDirection(e)},_isSingleItem:function(e){var t=this._grid[e.row.start][e.col.start].location,i=e.row.end-e.row.start===t.rowspan-1,n=e.col.end-e.col.start===t.colspan-1;return i&&n},_itemByCell:function(e,t){var i=this._grid[e][t];return i.spanningCell?null:i.item},_layoutDirection:function(e){var t,i=[],n=e.direction,o=this._crossDirection(n);while(t=this._nextBlock(e)){if(this._isBlockIndivisible(e.prevBlockOptions,t))throw Xt.Z.Error("E1025");var r=this._layoutBlock({direction:o,row:t.row,col:t.col,prevBlockOptions:e});r&&((0,a.l)(r,this._blockSize(t,o)),i.push(r)),e[o].start=t[o].end+1}return{box:this._prepareBoxConfig({direction:n,items:i})}},_isBlockIndivisible:function(e,t){return e&&e.col.start===t.col.start&&e.col.end===t.col.end&&e.row.start===t.row.start&&e.row.end===t.row.end},_crossDirection:function(e){return"col"===e?"row":"col"},_nextBlock:function(e){var t=e.direction,i=this._crossDirection(t),n=e[t].start,o=e[t].end,r=e[i].start;if(r>e[i].end)return null;for(var a=1,s=r;s<r+a;s++){for(var l=1,d=n;d<=o;d++){var u=this._cellByDirection(t,d,s);l=Math.max(l,u.location[i+"span"])}var c=s+l,h=r+a;c>h&&(a+=c-h)}var p={};return p[t]={start:n,end:o},p[i]={start:r,end:r+a-1},p},_cellByDirection:function(e,t,i){return"col"===e?this._grid[i][t]:this._grid[t][i]},_blockSize:function(e,t){for(var i="row"===t?"auto":0,n="row"===t?this._rows:this._cols,o=(0,a.l)(this._createDefaultSizeConfig(),{ratio:0}),r=e[t].start;r<=e[t].end;r++){var s=n[r];o.ratio+=s.ratio,o.baseSize+=s.baseSize,o.minSize+=s.minSize,o.maxSize+=s.maxSize,(0,l.$K)(s.shrink)&&(o.shrink=s.shrink)}return o.minSize=o.minSize?o.minSize:i,o.maxSize=o.maxSize?o.maxSize:"auto",this._isSingleColumnScreen()&&(o.baseSize="auto"),o},_update:function(e){var t=this._$root;this._renderItems(),t&&(e?t.remove():(t.detach(),this._saveAssistantRoot(t))),this._layoutChangedAction()},_saveAssistantRoot:function(e){this._assistantRoots=this._assistantRoots||[],this._assistantRoots.push(e)},_dispose:function(){this._clearItemNodeTemplates(),this._cleanUnusedRoots(),this.callBase.apply(this,arguments)},_cleanUnusedRoots:function(){this._assistantRoots&&(0,E.S6)(this._assistantRoots,(function(e,t){(0,o.Z)(t).remove()}))},_clearItemNodeTemplates:function(){(0,E.S6)(this.option("items"),(function(){delete this.node}))},_attachClickEvent:v.ZT,_optionChanged:function(e){switch(e.name){case"rows":case"cols":case"screenByWidth":case"singleColumnScreen":this._clearItemNodeTemplates(),this._invalidate();break;case"width":case"height":this.callBase(e),this._update();break;case"onLayoutChanged":this._initLayoutChangedAction();break;case"itemTemplate":this._clearItemNodeTemplates(),this.callBase(e);break;case"currentScreenFactor":break;default:this.callBase(e)}},_dimensionChanged:function(){this._getCurrentScreen()!==this.option("currentScreenFactor")&&this._update()},repaint:function(){this._update()}});(0,C.Z)("dxResponsiveBox",dg);var ug=dg,cg="dx-form",hg="dx-form-group",pg="dx-form-group-caption",fg="dx-col-",gg="dx-field-item",mg="dx-layout-manager-one-col",_g="dx-field-item-label-content",vg="dx-layout-manager",yg="dx-field-item-label",Cg="dx-field-item-content",bg="dx-single-column-item-content",xg="dx-root-simple-item",wg="dx-form-group-content",Tg="dx-field-item-has-group",Sg="dx-field-item-has-tabs",Ig="dx-form-group-with-caption",Eg="dx-field-item-tab",Dg="dx-group-colcount-",kg="group-col-count",Og="dx-form-validation-summary",Ag="dx-form-styling-mode-underlined",Pg="simple",{ios:Mg,mac:Rg}=w.Z.real(),Bg=Mg||Rg,Vg=function(e){var t;try{t={start:e.selectionStart,end:e.selectionEnd}}catch(i){t={start:0,end:0}}return t},Fg=function(e,t){var i=ke["default"].getBody();if(i.contains(e)||i.contains(e.getRootNode().host))try{e.selectionStart=t.start,e.selectionEnd=t.end}catch(n){}},Hg=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e=(0,o.Z)(e).get(0),!(0,l.$K)(t))return Vg(e);!i&&Bg&&ke["default"].getActiveElement(e)!==e||Fg(e,t)},Lg=Hg;function Ng(){var{android:e,version:t}=w.Z.real();return e&&t[0]>4}function Zg(){return"onbeforeinput"in ke["default"].createElement("input")&&!Me.Z.chrome||Ng()}var $g=i(78361),Wg=" ",Kg=P.Z.inherit({ctor:function(e){this._value=Wg,(0,a.l)(this,e)},next:function(e){if(!arguments.length)return this._next;this._next=e},text:v.ZT,value:v.ZT,rawValue:v.ZT,handle:v.ZT,_prepareHandlingArgs:function(e,t){var i,n,o;t=t||{};var r=Object.prototype.hasOwnProperty.call(e,"value")?"value":"text";return e[r]=null!==(i=t.str)&&void 0!==i?i:e[r],e.start=null!==(n=t.start)&&void 0!==n?n:e.start,e.length=null!==(o=t.length)&&void 0!==o?o:e.length,e.index=e.index+1,e},reset:v.ZT,clear:v.ZT,first:function(e){return e=e||0,this.next().first(e+1)},isAccepted:function(){return!1},adjustedCaret:function(e,t,i){return t?this._adjustedForward(e,0,i):this._adjustedBackward(e,0,i)},_adjustedForward:v.ZT,_adjustedBackward:v.ZT,isValid:v.ZT}),zg=Kg.inherit({next:v.ZT,handle:function(){return 0},text:function(){return""},value:function(){return""},first:function(){return 0},rawValue:function(){return""},adjustedCaret:function(){return 0},isValid:function(){return!0}}),jg=Kg.inherit({text:function(){return(this._value!==Wg?this._value:this.maskChar)+this.next().text()},value:function(){return this._value+this.next().value()},rawValue:function(){return this._value+this.next().rawValue()},handle:function(e){var t=Object.prototype.hasOwnProperty.call(e,"value")?e.value:e.text;if(!t||!t.length||!e.length)return 0;if(e.start)return this.next().handle(this._prepareHandlingArgs(e,{start:e.start-1}));var i=t[0],n=t.substring(1);return this._tryAcceptChar(i,e),this._accepted()?this.next().handle(this._prepareHandlingArgs(e,{str:n,length:e.length-1}))+1:this.handle(this._prepareHandlingArgs(e,{str:n,length:e.length-1}))},clear:function(e){this._tryAcceptChar(Wg,e),this.next().clear(this._prepareHandlingArgs(e))},reset:function(){this._accepted(!1),this.next().reset()},_tryAcceptChar:function(e,t){if(this._accepted(!1),this._isAllowed(e,t)){var i=e===Wg?this.maskChar:e;t.fullText=t.fullText.substring(0,t.index)+i+t.fullText.substring(t.index+1),this._accepted(!0),this._value=e}},_accepted:function(e){if(!arguments.length)return!!this._isAccepted;this._isAccepted=!!e},first:function(e){return this._value===Wg?e||0:this.callBase(e)},_isAllowed:function(e,t){return e===Wg||this._isValid(e,t)},_isValid:function(e,t){var i=this.allowedChars;return i instanceof RegExp?i.test(e):(0,l.mf)(i)?i(e,t.index,t.fullText):Array.isArray(i)?i.includes(e):i===e},isAccepted:function(e){return 0===e?this._accepted():this.next().isAccepted(e-1)},_adjustedForward:function(e,t,i){return t>=e?t:this.next()._adjustedForward(e,t+1,i)||t+1},_adjustedBackward:function(e,t){return t>=e-1?e:this.next()._adjustedBackward(e,t+1)||t+1},isValid:function(e){return this._isValid(this._value,e)&&this.next().isValid(this._prepareHandlingArgs(e))}}),Ug=jg.inherit({value:function(){return this.next().value()},handle:function(e){var t=Object.prototype.hasOwnProperty.call(e,"value"),i=t?e.value:e.text;if(!i.length||!e.length)return 0;if(e.start||t)return this.next().handle(this._prepareHandlingArgs(e,{start:e.start&&e.start-1}));var n=i[0],o=i.substring(1);this._tryAcceptChar(n);var r=this._isAllowed(n)?this._prepareHandlingArgs(e,{str:o,length:e.length-1}):e;return this.next().handle(r)+1},clear:function(e){this._accepted(!1),this.next().clear(this._prepareHandlingArgs(e))},_tryAcceptChar:function(e){this._accepted(this._isValid(e))},_isValid:function(e){return e===this.maskChar},first:function(e){return e=e||0,this.next().first(e+1)},_adjustedForward:function(e,t,i){return t>=e&&i===this.maskChar?t:e===t+1&&this._accepted()?e:this.next()._adjustedForward(e,t+1,i)},_adjustedBackward:function(e,t){return t>=e-1?0:this.next()._adjustedBackward(e,t+1)},isValid:function(e){return this.next().isValid(this._prepareHandlingArgs(e))}});class Gg{constructor(e,t,i){this.instance=null,this.$container=null,this.$placeMarker=null,this.editor=t,this.name=e,this.options=i||{}}_addPlaceMarker(e){this.$placeMarker=(0,o.Z)("<div>").appendTo(e)}_addToContainer(e){var{$placeMarker:t,$container:i}=this;t?t.replaceWith(e):e.appendTo(i)}_attachEvents(){throw"Not implemented"}_create(){throw"Not implemented"}_isRendered(){return!!this.instance}_isVisible(){var{editor:e,options:t}=this;return t.visible||!e.option("readOnly")}_isDisabled(){throw"Not implemented"}_shouldRender(){return this._isVisible()&&!this._isRendered()}dispose(){var{instance:e,$placeMarker:t}=this;e&&(e.dispose?e.dispose():e.remove(),this.instance=null),t&&t.remove()}render(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$container;if(this.$container=e,this._isVisible()){var{instance:t,$element:i}=this._create();this.instance=t,this._attachEvents(t,i)}else this._addPlaceMarker(e)}update(){return this._shouldRender()&&this.render(),!!this.instance}}var qg=B.Z.down,Yg="dx-state-invisible",Xg="dx-clear-button-area",Jg="dx-icon-clear",Qg="dx-icon",em="dx-show-clear-button";class tm extends Gg{_create(){var e=(0,o.Z)("<span>").addClass(Xg).append((0,o.Z)("<span>").addClass(Qg).addClass(Jg));return this._addToContainer(e),this.update(!0),{instance:e,$element:e}}_isVisible(){var{editor:e}=this;return e._isClearButtonVisible()}_attachEvents(e,t){var{editor:i}=this,n=i.NAME;re.Z.on(t,(0,R.V4)(qg,n),(e=>{e.preventDefault(),"mouse"!==e.pointerType&&i._clearValueHandler(e)})),re.Z.on(t,(0,R.V4)(A.u,n),(e=>i._clearValueHandler(e)))}_legacyRender(e,t){e.toggleClass(em,t)}update(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!e&&super.update();var{editor:t,instance:i}=this,n=t.$element(),o=this._isVisible();i&&i.toggleClass(Yg,!o),this._legacyRender(n,o)}}var im="dx-custom-button-hovered";class nm extends Gg{_attachEvents(e,t){var{editor:i}=this;re.Z.on(t,z.B,(()=>{i.$element().addClass(im)})),re.Z.on(t,z.u,(()=>{i.$element().removeClass(im)})),re.Z.on(t,A.u,(e=>{e.stopPropagation()}))}_create(){var{editor:e}=this,t=(0,o.Z)("<div>");this._addToContainer(t);var i=e._createComponent(t,cd,(0,a.l)({},this.options,{ignoreParentReadOnly:!0,disabled:this._isDisabled(),integrationOptions:this._prepareIntegrationOptions(e)}));return{$element:t,instance:i}}_prepareIntegrationOptions(e){return(0,a.l)({},e.option("integrationOptions"),{skipTemplates:["content"]})}update(){var e=super.update();return this.instance&&this.instance.option("disabled",this._isDisabled()),e}_isVisible(){var{editor:e}=this;return e.option("visible")}_isDisabled(){var e=void 0!==this.options.disabled;return e?this.instance?this.instance.option("disabled"):this.options.disabled:this.editor.option("readOnly")}}var om="dx-texteditor-buttons-container";function rm(e){(()=>{if(!e||"object"!==typeof e||Array.isArray(e))throw Xt.Z.Error("E1053")})(),(()=>{if(!("name"in e))throw Xt.Z.Error("E1054")})(),(()=>{var{name:t}=e;if("string"!==typeof t)throw Xt.Z.Error("E1055")})(),(()=>{var{location:t}=e;"location"in e&&"after"!==t&&"before"!==t&&(e.location="after")})()}function am(e,t){if(-1!==e.indexOf(t))throw Xt.Z.Error("E1055",t);e.push(t)}function sm(e,t){return!!t.find((t=>t.name===e))}class lm{constructor(e,t){this.buttons=[],this.defaultButtonsInfo=t,this.editor=e}_compileButtonInfo(e){var t=[];return e.map((e=>{var i="string"===typeof e;i||rm(e);var n=i||sm(e.name,this.defaultButtonsInfo);if(n){var o=this.defaultButtonsInfo.find((t=>{var{name:i}=t;return i===e||i===e.name}));if(!o)throw Xt.Z.Error("E1056",this.editor.NAME,e);return am(t,e),o}var{name:r}=e;return am(t,r),(0,a.l)(e,{Ctor:nm})}))}_createButton(e){var{Ctor:t,options:i,name:n}=e,o=new t(n,this.editor,i);return this.buttons.push(o),o}_renderButtons(e,t,i){var n=null,r=e?this._compileButtonInfo(e):this.defaultButtonsInfo;return r.forEach((e=>{var{location:r="after"}=e;r===i&&this._createButton(e).render((()=>(n=n||(0,o.Z)("<div>").addClass(om),"before"===i?t.prepend(n):t.append(n),n))())})),n}clean(){this.buttons.forEach((e=>e.dispose())),this.buttons=[]}getButton(e){var t=this.buttons.find((t=>{var{name:i}=t;return i===e}));return t&&t.instance}renderAfterButtons(e,t){return this._renderButtons(e,t,"after")}renderBeforeButtons(e,t){return this._renderButtons(e,t,"before")}updateButtons(e){this.buttons.forEach((t=>{e&&-1===e.indexOf(t.name)||t.update()}))}}var dm="dx-texteditor-label",um="dx-texteditor-with-label",cm="dx-texteditor-with-floating-label",hm="dx-texteditor-with-before-buttons",pm="dx-label-before",fm="dx-label",gm="dx-label-after";class mm{constructor(e){var{$editor:t,text:i,mode:n,mark:o,containsButtonsBefore:r,containerWidth:a,beforeWidth:s}=e;this._props={$editor:t,text:i,mode:n,mark:o,containsButtonsBefore:r,containerWidth:a,beforeWidth:s},this._id="".concat(dm,"-").concat(new Li.Z),this._render(),this._toggleMarkupVisibility()}_isVisible(){return!!this._props.text&&"hidden"!==this._props.mode}_render(){this._$before=(0,o.Z)("<div>").addClass(pm),this._$labelSpan=(0,o.Z)("<span>"),this._$label=(0,o.Z)("<div>").addClass(fm).append(this._$labelSpan),this._$after=(0,o.Z)("<div>").addClass(gm),this._$root=(0,o.Z)("<div>").addClass(dm).attr("id",this._id).append(this._$before).append(this._$label).append(this._$after),this._updateMark(),this._updateText(),this._updateBeforeWidth(),this._updateMaxWidth()}_toggleMarkupVisibility(){var e=this._isVisible();this._updateEditorBeforeButtonsClass(e),this._updateEditorLabelClass(e),e?this._$root.appendTo(this._props.$editor):this._$root.detach()}_updateEditorLabelClass(e){if(this._props.$editor.removeClass(cm).removeClass(um),e){var t="floating"===this._props.mode?cm:um;this._props.$editor.addClass(t)}}_updateEditorBeforeButtonsClass(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._isVisible();if(this._props.$editor.removeClass(hm),e){var t=this._props.containsButtonsBefore?hm:"";this._props.$editor.addClass(t)}}_updateMark(){this._$labelSpan.attr("data-mark",this._props.mark)}_updateText(){this._$labelSpan.text(this._props.text)}_updateBeforeWidth(){this._$before.css({width:this._props.beforeWidth})}_updateMaxWidth(){this._$label.css({maxWidth:this._props.containerWidth})}$element(){return this._$root}isVisible(){return this._isVisible()}getId(){if(this._isVisible())return this._id}updateMode(e){this._props.mode=e,this._toggleMarkupVisibility()}updateText(e){this._props.text=e,this._updateText(),this._toggleMarkupVisibility()}updateMark(e){this._props.mark=e,this._updateMark()}updateContainsButtonsBefore(e){this._props.containsButtonsBefore=e,this._updateEditorBeforeButtonsClass()}updateBeforeWidth(e){this._props.beforeWidth=e,this._updateBeforeWidth()}updateMaxWidth(e){this._props.containerWidth=e,this._updateMaxWidth()}}var _m="dx-texteditor",vm="dx-texteditor-input-container",ym="dx-texteditor-input",Cm="."+ym,bm="dx-texteditor-container",xm="dx-texteditor-buttons-container",wm="dx-placeholder",Tm="dx-texteditor-empty",Sm="dx-state-invisible",Im="dx-pending-indicator",Em="dx-validation-pending",Dm="dx-valid",km=["KeyDown","KeyPress","KeyUp","Change","Cut","Copy","Paste","Input"],Om=["tab","enter","shift","control","alt","escape","pageUp","pageDown","end","home","leftArrow","upArrow","rightArrow","downArrow"],Am=mm;function Pm(e){if((0,l.$K)(e)&&!Array.isArray(e))throw Xt.Z.Error("E1053")}var Mm=zc.inherit({ctor:function(e,t){t&&Pm(t.buttons),this._buttonCollection=new lm(this,this._getDefaultButtons()),this._$beforeButtonsContainer=null,this._$afterButtonsContainer=null,this._labelContainerElement=null,this.callBase.apply(this,arguments)},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{buttons:void 0,value:"",spellcheck:!1,showClearButton:!1,valueChangeEvent:"change",placeholder:"",inputAttr:{},onFocusIn:null,onFocusOut:null,onKeyDown:null,onKeyUp:null,onChange:null,onInput:null,onCut:null,onCopy:null,onPaste:null,onEnterKey:null,mode:"text",hoverStateEnabled:!0,focusStateEnabled:!0,text:void 0,displayValueFormatter:function(e){return(0,l.$K)(e)&&!1!==e?e:""},stylingMode:(0,Oe.Z)().editorStylingMode||"outlined",showValidationMark:!0,label:"",labelMode:"static",labelMark:""})},_defaultOptionsRules:function(){var e=(0,x.Vk)();return this.callBase().concat([{device:function(){return(0,x.x2)(e)},options:{stylingMode:(0,Oe.Z)().editorStylingMode||"filled",labelMode:"floating"}}])},_getDefaultButtons:function(){return[{name:"clear",Ctor:tm}]},_isClearButtonVisible:function(){return this.option("showClearButton")&&!this.option("readOnly")},_input:function(){return this.$element().find(Cm).first()},_isFocused:function(){return(0,D.si)(this._input())||this.callBase()},_inputWrapper:function(){return this.$element()},_buttonsContainer:function(){return this._inputWrapper().find("."+xm).eq(0)},_isControlKey:function(e){return-1!==Om.indexOf(e)},_renderStylingMode:function(){this.callBase(),this._updateButtonsStyling(this.option("stylingMode"))},_initMarkup:function(){this.$element().addClass(_m),this._renderInput(),this._renderStylingMode(),this._renderInputType(),this._renderPlaceholder(),this._renderProps(),this.callBase(),this._renderValue(),this._renderLabel()},_render:function(){this.callBase(),this._refreshValueChangeEvent(),this._renderEvents(),this._renderEnterKeyAction(),this._renderEmptinessEvent()},_renderInput:function(){this._$buttonsContainer=this._$textEditorContainer=(0,o.Z)("<div>").addClass(bm).appendTo(this.$element()),this._$textEditorInputContainer=(0,o.Z)("<div>").addClass(vm).appendTo(this._$textEditorContainer),this._$textEditorInputContainer.append(this._createInput()),this._renderButtonContainers()},_getInputContainer(){return this._$textEditorInputContainer},_renderPendingIndicator:function(){this.$element().addClass(Em);var e=this._getInputContainer(),t=(0,o.Z)("<div>").addClass(Im).appendTo(e);this._pendingIndicator=this._createComponent(t,oe)},_disposePendingIndicator:function(){this._pendingIndicator&&(this._pendingIndicator.dispose(),this._pendingIndicator.$element().remove(),this._pendingIndicator=null,this.$element().removeClass(Em))},_renderValidationState:function(){this.callBase();var e="pending"===this.option("validationStatus"),t=this.$element();e?(!this._pendingIndicator&&this._renderPendingIndicator(),this._showValidMark=!1):("invalid"===this.option("validationStatus")&&(this._showValidMark=!1),this._showValidMark||!0!==this.option("showValidationMark")||(this._showValidMark="valid"===this.option("validationStatus")&&!!this._pendingIndicator),this._disposePendingIndicator()),t.toggleClass(Dm,!!this._showValidMark)},_renderButtonContainers:function(){var e=this.option("buttons");this._$beforeButtonsContainer=this._buttonCollection.renderBeforeButtons(e,this._$buttonsContainer),this._$afterButtonsContainer=this._buttonCollection.renderAfterButtons(e,this._$buttonsContainer)},_cleanButtonContainers:function(){var e,t;null===(e=this._$beforeButtonsContainer)||void 0===e||e.remove(),null===(t=this._$afterButtonsContainer)||void 0===t||t.remove(),this._buttonCollection.clean()},_clean(){this._buttonCollection.clean(),this._disposePendingIndicator(),this._unobserveLabelContainerResize(),this._$beforeButtonsContainer=null,this._$afterButtonsContainer=null,this._$textEditorContainer=null,this._$buttonsContainer=null,this.callBase()},_createInput:function(){var e=(0,o.Z)("<input>");return this._applyInputAttributes(e,this.option("inputAttr")),e},_setSubmitElementName:function(e){var t=this.option("inputAttr.name");return this.callBase(e||t||"")},_applyInputAttributes:function(e,t){var i=(0,a.l)(this._getDefaultAttributes(),t);e.attr(i).addClass(ym).css("minHeight",this.option("height")?"0":"")},_getDefaultAttributes:function(){var e={autocomplete:"off"},{ios:t,mac:i}=w.Z.real();return(t||i)&&(e.placeholder=" "),e},_updateButtons:function(e){this._buttonCollection.updateButtons(e)},_updateButtonsStyling:function(e){(0,E.S6)(this.option("buttons"),((t,i)=>{var{options:n,name:o}=i;if(n&&!n.stylingMode&&this.option("visible")){var r=this.getButton(o);r.option&&r.option("stylingMode","underlined"===e?"text":"contained")}}))},_renderValue:function(){var e=this._renderInputValue();return e.promise()},_renderInputValue:function(e){var t;e=null!==(t=e)&&void 0!==t?t:this.option("value");var i=this.option("text"),n=this.option("displayValue"),o=this.option("displayValueFormatter");return void 0!==n&&null!==e?i=o(n):(0,l.$K)(i)||(i=o(e)),this.option("text",i),this._input().val()!==((0,l.$K)(i)?i:"")?this._renderDisplayText(i):this._toggleEmptinessEventHandler(),(new ot.BH).resolve()},_renderDisplayText:function(e){this._input().val(e),this._toggleEmptinessEventHandler()},_isValueValid:function(){if(this._input().length){var e=this._input().get(0).validity;if(e)return e.valid}return!0},_toggleEmptiness:function(e){this.$element().toggleClass(Tm,e),this._togglePlaceholder(e)},_togglePlaceholder:function(e){this.$element().find(".".concat(wm)).eq(0).toggleClass(Sm,!e)},_renderProps:function(){this._toggleReadOnlyState(),this._toggleSpellcheckState(),this._toggleTabIndex()},_toggleDisabledState:function(e){this.callBase.apply(this,arguments);var t=this._input();t.prop("disabled",e)},_toggleTabIndex:function(){var e=this._input(),t=this.option("disabled"),i=this.option("focusStateEnabled");t||!i?e.attr("tabIndex",-1):e.removeAttr("tabIndex")},_toggleReadOnlyState:function(){this._input().prop("readOnly",this._readOnlyPropValue()),this.callBase()},_readOnlyPropValue:function(){return this.option("readOnly")},_toggleSpellcheckState:function(){this._input().prop("spellcheck",this.option("spellcheck"))},_unobserveLabelContainerResize:function(){this._labelContainerElement&&(qu.Z.unobserve(this._labelContainerElement),this._labelContainerElement=null)},_getLabelContainer:function(){return this._input()},_getLabelContainerWidth:function(){return(0,n.dz)(this._getLabelContainer())},_getLabelBeforeWidth:function(){var e=this._$beforeButtonsContainer&&(0,n.dz)(this._$beforeButtonsContainer);return null!==e&&void 0!==e?e:0},_updateLabelWidth:function(){this._label.updateBeforeWidth(this._getLabelBeforeWidth()),this._label.updateMaxWidth(this._getLabelContainerWidth())},_setLabelContainerAria:function(){this.setAria("labelledby",this._label.getId(),this._getLabelContainer())},_renderLabel:function(){this._unobserveLabelContainerResize(),this._labelContainerElement=(0,o.Z)(this._getLabelContainer()).get(0);var{label:e,labelMode:t,labelMark:i}=this.option(),n={$editor:this.$element(),text:e,mark:i,mode:t,containsButtonsBefore:!!this._$beforeButtonsContainer,containerWidth:this._getLabelContainerWidth(),beforeWidth:this._getLabelBeforeWidth()};this._label=new Am(n),this._setLabelContainerAria(),this._labelContainerElement&&qu.Z.observe(this._labelContainerElement,this._updateLabelWidth.bind(this))},_renderPlaceholder:function(){this._renderPlaceholderMarkup(),this._attachPlaceholderEvents()},_renderPlaceholderMarkup:function(){this._$placeholder&&(this._$placeholder.remove(),this._$placeholder=null);var e=this._input(),t=this.option("placeholder"),i=this._$placeholder=(0,o.Z)("<div>").attr("data-dx_placeholder",t);i.insertAfter(e),i.addClass(wm)},_attachPlaceholderEvents:function(){var e=(0,R.V4)(B.Z.up,this.NAME);re.Z.on(this._$placeholder,e,(()=>{re.Z.trigger(this._input(),"focus")})),this._toggleEmptinessEventHandler()},_placeholder:function(){return this._$placeholder||(0,o.Z)()},_clearValueHandler:function(e){var t=this._input();e.stopPropagation(),this._saveValueChangeEvent(e),this._clearValue(),!this._isFocused()&&re.Z.trigger(t,"focus"),re.Z.trigger(t,"input")},_clearValue:function(){this.reset()},_renderEvents:function(){var e=this._input();(0,E.S6)(km,((t,i)=>{if(this.hasActionSubscription("on"+i)){var n=this._createActionByOption("on"+i,{excludeValidators:["readOnly"]});re.Z.on(e,(0,R.V4)(i.toLowerCase(),this.NAME),(e=>{this._disposed||n({event:e})}))}}))},_refreshEvents:function(){var e=this._input();(0,E.S6)(km,((t,i)=>{re.Z.off(e,(0,R.V4)(i.toLowerCase(),this.NAME))})),this._renderEvents()},_keyPressHandler:function(){this.option("text",this._input().val())},_keyDownHandler:function(e){var t=this._input(),i=e.ctrlKey&&"enter"===(0,R.EV)(e),n=t.val()!==this.option("value");i&&n&&re.Z.trigger(t,"change")},_getValueChangeEventOptionName:function(){return"valueChangeEvent"},_renderValueChangeEvent:function(){var e=(0,R.V4)(this._renderValueEventName(),"".concat(this.NAME,"TextChange")),t=(0,R.V4)(this.option(this._getValueChangeEventOptionName()),"".concat(this.NAME,"ValueChange")),i=(0,R.V4)("keydown","".concat(this.NAME,"TextChange")),n=this._input();re.Z.on(n,e,this._keyPressHandler.bind(this)),re.Z.on(n,t,this._valueChangeEventHandler.bind(this)),re.Z.on(n,i,this._keyDownHandler.bind(this))},_cleanValueChangeEvent:function(){var e=".".concat(this.NAME,"ValueChange"),t=".".concat(this.NAME,"TextChange");re.Z.off(this._input(),e),re.Z.off(this._input(),t)},_refreshValueChangeEvent:function(){this._cleanValueChangeEvent(),this._renderValueChangeEvent()},_renderValueEventName:function(){return"input change keypress"},_focusTarget:function(){return this._input()},_focusEventTarget:function(){return this.element()},_isInput:function(e){return e===this._input().get(0)},_preventNestedFocusEvent:function(e){if(e.isDefaultPrevented())return!0;var t=this._isNestedTarget(e.relatedTarget);return"focusin"===e.type?t=t&&this._isNestedTarget(e.target)&&!this._isInput(e.target):t||this._toggleFocusClass(!1,this.$element()),t&&e.preventDefault(),t},_isNestedTarget:function(e){return!!this.$element().find(e).length},_focusClassTarget:function(){return this.$element()},_focusInHandler:function(e){this._preventNestedFocusEvent(e),this.callBase.apply(this,arguments)},_focusOutHandler:function(e){this._preventNestedFocusEvent(e),this.callBase.apply(this,arguments)},_toggleFocusClass:function(e,t){this.callBase(e,this._focusClassTarget(t))},_hasFocusClass:function(e){return this.callBase((0,o.Z)(e||this.$element()))},_renderEmptinessEvent:function(){var e=this._input();re.Z.on(e,"input blur",this._toggleEmptinessEventHandler.bind(this))},_toggleEmptinessEventHandler:function(){var e=this._input().val(),t=(""===e||null===e)&&this._isValueValid();this._toggleEmptiness(t)},_valueChangeEventHandler:function(e,t){this.option("readOnly")||(this._saveValueChangeEvent(e),this.option("value",arguments.length>1?t:this._input().val()),this._saveValueChangeEvent(void 0))},_renderEnterKeyAction:function(){this._enterKeyAction=this._createActionByOption("onEnterKey",{excludeValidators:["readOnly"]}),re.Z.off(this._input(),"keyup.onEnterKey.dxTextEditor"),re.Z.on(this._input(),"keyup.onEnterKey.dxTextEditor",this._enterKeyHandlerUp.bind(this))},_enterKeyHandlerUp:function(e){this._disposed||"enter"===(0,R.EV)(e)&&this._enterKeyAction({event:e})},_updateValue:function(){this._options.silent("text",null),this._renderValue()},_dispose:function(){this._enterKeyAction=void 0,this.callBase()},_getSubmitElement:function(){return this._input()},_hasActiveElement:function(){return this._input().is(ke["default"].getActiveElement(this._input()[0]))},_optionChanged:function(e){var{name:t,fullName:i,value:n}=e,o=t.replace("on","");if(km.includes(o))this._refreshEvents();else switch(t){case"valueChangeEvent":this._refreshValueChangeEvent(),this._refreshFocusEvent(),this._refreshEvents();break;case"onValueChanged":this._createValueChangeAction();break;case"focusStateEnabled":this.callBase(e),this._toggleTabIndex();break;case"spellcheck":this._toggleSpellcheckState();break;case"mode":this._renderInputType();break;case"onEnterKey":this._renderEnterKeyAction();break;case"placeholder":this._renderPlaceholder();break;case"label":this._label.updateText(n),this._setLabelContainerAria();break;case"labelMark":this._label.updateMark(n);break;case"labelMode":this._label.updateMode(n),this._setLabelContainerAria();break;case"width":this.callBase(e),this._label.updateMaxWidth(this._getLabelContainerWidth());break;case"readOnly":case"disabled":this._updateButtons(),this.callBase(e);break;case"showClearButton":this._updateButtons(["clear"]);break;case"text":break;case"value":this._updateValue(),this.callBase(e);break;case"inputAttr":this._applyInputAttributes(this._input(),this.option(t));break;case"stylingMode":this._renderStylingMode(),this._updateLabelWidth();break;case"buttons":i===t&&Pm(n),this._cleanButtonContainers(),this._renderButtonContainers(),this._updateButtonsStyling(this.option("stylingMode")),this._updateLabelWidth(),this._label.updateContainsButtonsBefore(!!this._$beforeButtonsContainer);break;case"visible":this.callBase(e),n&&this.option("buttons")&&(this._cleanButtonContainers(),this._renderButtonContainers(),this._updateButtonsStyling(this.option("stylingMode")));break;case"displayValueFormatter":this._invalidate();break;case"showValidationMark":break;default:this.callBase(e)}},_renderInputType:function(){this._setInputType(this.option("mode"))},_setInputType:function(e){var t=this._input();"search"===e&&(e="text");try{t.prop("type",e)}catch(i){t.prop("type","text")}},getButton(e){return this._buttonCollection.getButton(e)},focus:function(){re.Z.trigger(this._input(),"focus")},reset:function(){this._showValidMark&&(this._showValidMark=!1,this._renderValidationState());var e=this._getDefaultOptions();this.option("value")===e.value?(this._options.silent("text",""),this._renderValue()):this.option("value",e.value)},on:function(e,t){var i=this.callBase(e,t),n=e.charAt(0).toUpperCase()+e.substr(1);return km.indexOf(n)>=0&&this._refreshEvents(),i}}),Rm=Mm,Bm="dxMask",Vm="blur beforedeactivate",Fm=" ";class Hm{constructor(e){this.editor=e,this.DIRECTION={FORWARD:"forward",BACKWARD:"backward"},this.NAME=this._getStrategyName()}_getStrategyName(){return"base"}editorOption(){return this.editor.option(...arguments)}editorInput(){return this.editor._input()}editorCaret(e){if(!e)return this.editor._caret();this.editor._caret(e)}getHandler(e){var t=this["_".concat(e,"Handler")]||function(){};return t.bind(this)}attachEvents(){var e=this.editorInput();this.getHandleEventNames().forEach((t=>{var i=(0,R.V4)(t.toLowerCase(),Bm);re.Z.on(e,i,this.getEventHandler(t))})),this._attachChangeEventHandlers()}getHandleEventNames(){return["focusIn","focusOut","keyDown","input","paste","cut","drop"]}getEventHandler(e){return this["_".concat(e,"Handler")].bind(this)}detachEvents(){re.Z.off(this.editorInput(),".".concat(Bm))}_attachChangeEventHandlers(){this.editorOption("valueChangeEvent").split(" ").includes("change")&&re.Z.on(this.editorInput(),(0,R.V4)(Vm,Bm),function(e){this._suppressCaretChanging(this._changeHandler,[e]),this._changeHandler(e)}.bind(this.editor))}_focusInHandler(){if(this.editor._showMaskPlaceholder(),this.editor._direction(this.DIRECTION.FORWARD),!this.editor._isValueEmpty()&&this.editorOption("isValid"))this.editor._adjustCaret();else{var e=this.editor._maskRulesChain.first();this._caretTimeout=setTimeout(function(){this._caret({start:e,end:e})}.bind(this.editor),0)}}_focusOutHandler(e){this.editor._changeHandler(e),"onFocus"===this.editorOption("showMaskMode")&&this.editor._isValueEmpty()&&(this.editorOption("text",""),this.editor._renderDisplayText(""))}_cutHandler(e){var t=this.editorCaret(),i=this.editorInput().val().substring(t.start,t.end);this.editor._maskKeyHandler(e,(()=>(0,M.Zx)(e,i)))}_dropHandler(){this._clearDragTimer(),this._dragTimer=setTimeout(function(){this.option("value",this._convertToValue(this._input().val()))}.bind(this.editor))}_clearDragTimer(){clearTimeout(this._dragTimer)}_keyDownHandler(){this._keyPressHandled=!1}_pasteHandler(e){var{editor:t}=this;this._keyPressHandled=!0;var i=this.editorCaret();t._maskKeyHandler(e,(()=>{var n=(0,M.Zx)(e),o=t._maskRulesChain.text().substring(i.end),r=t._handleChain({text:n,start:i.start,length:n.length}),a=i.start+r;t._handleChain({text:o,start:a,length:o.length}),t._caret({start:a,end:a})}))}_autoFillHandler(e){var{editor:t}=this,i=this.editorInput().val();this._inputHandlerTimer=setTimeout((()=>{this._keyPressHandled=!0,this._isAutoFill()&&(this._keyPressHandled=!0,t._maskKeyHandler(e,(()=>{t._handleChain({text:i,start:0,length:i.length})})),t._validateMask())}))}_isAutoFill(){var e=this.editor._input(),t=!1;if(Me.Z.webkit){var i=e.get(0);t=i&&i.matches(":-webkit-autofill")}return t}runWithoutEventProcessing(e){var t=this._keyPressHandled;this._keyPressHandled=!0,e(),this._keyPressHandled=t}_backspaceHandler(){}_delHandler(e){var{editor:t}=this;this._keyPressHandled=!0,t._maskKeyHandler(e,(()=>!t._hasSelection()&&t._handleKey(Fm)))}clean(){this._clearDragTimer(),clearTimeout(this._backspaceHandlerTimeout),clearTimeout(this._caretTimeout),clearTimeout(this._inputHandlerTimer)}}var Lm="deleteContentBackward",Nm=" ";class Zm extends Hm{_getStrategyName(){return"default"}getHandleEventNames(){return[...super.getHandleEventNames(),"keyPress"]}_keyPressHandler(e){if(!this._keyPressHandled&&(this._keyPressHandled=!0,!this.editor._isControlKeyFired(e))){var{editor:t}=this;t._maskKeyHandler(e,(()=>t._handleKey((0,R.qK)(e))))}}_inputHandler(e){if(this._backspaceInputHandled(e.originalEvent&&e.originalEvent.inputType)&&this._handleBackspaceInput(e),e.originalEvent&&this._autoFillHandler(e),!this._keyPressHandled){this._keyPressHandled=!0;var t=this.editorInput().val(),i=this.editorCaret();if(i.end){i.start=i.end-1;var n=t.substring(0,i.start)+t.substring(i.end),o=t[i.start],{editor:r}=this;this.editorInput().val(n),r._caret({start:i.start,end:i.start}),r._maskKeyHandler(e,(()=>r._handleKey(o)))}}}_backspaceHandler(e){var{editor:t}=this;this._keyPressHandled=!0;var i=(e,i)=>{e&&(t._direction(this.DIRECTION.FORWARD),t._adjustCaret());var n=this.editorCaret();return new Promise((e=>{clearTimeout(this._backspaceHandlerTimeout),this._backspaceHandlerTimeout=setTimeout((function(){i(n),e()}))}))};t._maskKeyHandler(e,(()=>t._hasSelection()?i(!0,(e=>{t._displayMask(e),t._maskRulesChain.reset()})):t._tryMoveCaretBackward()?i(!1,(e=>{this.editorCaret(e)})):(t._handleKey(Nm,this.DIRECTION.BACKWARD),i(!0,(e=>{t._displayMask(e),t._maskRulesChain.reset()})))))}_backspaceInputHandled(e){return e===Lm&&!this._keyPressHandled}_handleBackspaceInput(e){var{start:t,end:i}=this.editorCaret();this.editorCaret({start:t+1,end:i+1}),this._backspaceHandler(e)}}var $m=Zm,Wm="deleteContentBackward";class Km extends Hm{_getStrategyName(){return"inputEvents"}getHandleEventNames(){return[...super.getHandleEventNames(),"beforeInput"]}_beforeInputHandler(){this._prevCaret=this.editorCaret()}_inputHandler(e){var{originalEvent:t}=e;if(t){var{inputType:i,data:n}=t,o=this.editorCaret();if(i===Wm){var r=this._prevCaret.end-this._prevCaret.start||1;this.editor.setBackwardDirection(),this._updateEditorMask({start:o.start,length:r,text:this._getEmptyString(r)})}else{var a,s,l;if(!o.end)return;this._autoFillHandler(t),this.editorCaret(o);var d=(null===(a=this._prevCaret)||void 0===a?void 0:a.end)-(null===(s=this._prevCaret)||void 0===s?void 0:s.start),u=n+(d?this._getEmptyString(d-n.length):"");this.editor.setForwardDirection();var c=this._updateEditorMask({start:null===(l=this._prevCaret)||void 0===l?void 0:l.start,length:d||u.length,text:u});c||this.editorCaret(this._prevCaret)}}}_getEmptyString(e){return Array(e+1).join(" ")}_updateEditorMask(e){var t=e.text.length,i=this.editor._handleChain(e);if(this.editor.isForwardDirection()){var{start:n,end:o}=this.editorCaret(),r=i-t;n<=i&&i>1&&this.editorCaret({start:n+r,end:o+r}),this.editor.isForwardDirection()&&this.editor._adjustCaret()}return this.editor._displayMask(),!!i}}var zm=Km,jm=function(){return{}},Um=Lg,Gm=" ",qm="\\",Ym="dx-texteditor-masked",Xm="forward",Jm="backward",Qm={0:/[0-9]/,9:/[0-9\s]/,"#":/[-+0-9\s]/,L:function(e){return t_(e)},l:function(e){return t_(e)||i_(e)},C:/\S/,c:/./,A:function(e){return t_(e)||e_(e)},a:function(e){return t_(e)||e_(e)||i_(e)}};function e_(e){return/[0-9]/.test(e)}function t_(e){var t=e.charCodeAt();return 64<t&&t<91||96<t&&t<123||t>127}function i_(e){return" "===e}var n_=Rm.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{mask:"",maskChar:"_",maskRules:{},maskInvalidMessage:y.Z.format("validation-mask"),useMaskedValue:!1,showMaskMode:"always"})},_supportedKeys:function(){var e=this,t={backspace:e._maskStrategy.getHandler("backspace"),del:e._maskStrategy.getHandler("del"),enter:e._changeHandler},i=e.callBase();return(0,E.S6)(t,(function(t,n){var o=i[t];i[t]=function(t){e.option("mask")&&n.call(e,t),o&&o(t)}})),i},_getSubmitElement:function(){return this.option("mask")?this._$hiddenElement:this.callBase()},_init:function(){this.callBase(),this._initMaskStrategy()},_initMaskStrategy:function(){this._maskStrategy=Zg()?new zm(this):new $m(this)},_initMarkup:function(){this._renderHiddenElement(),this.callBase()},_attachMouseWheelEventHandlers:function(){var e=this._onMouseWheel!==v.ZT;if(e){var t=this._input(),i=(0,R.V4)($g.u,this.NAME),n=this._createAction(function(e){var{event:i}=e;(0,D.si)(t)&&!(0,R.j1)(i)&&(this._onMouseWheel(i),i.preventDefault(),i.stopPropagation())}.bind(this));re.Z.off(t,i),re.Z.on(t,i,(function(e){n({event:e})}))}},_onMouseWheel:v.ZT,_render:function(){this._renderMask(),this.callBase(),this._attachMouseWheelEventHandlers()},_renderHiddenElement:function(){this.option("mask")&&(this._$hiddenElement=(0,o.Z)("<input>").attr("type","hidden").appendTo(this._inputWrapper()))},_removeHiddenElement:function(){this._$hiddenElement&&this._$hiddenElement.remove()},_renderMask:function(){this.$element().removeClass(Ym),this._maskRulesChain=null,this._maskStrategy.detachEvents(),this.option("mask")&&(this.$element().addClass(Ym),this._maskStrategy.attachEvents(),this._parseMask(),this._renderMaskedValue())},_suppressCaretChanging:function(e,t){Um=jm;try{e.apply(this,t)}finally{Um=Lg}},_changeHandler:function(e){var t=this._input(),i=t.val();if(i!==this._changedValue){this._changedValue=i;var n=(0,R.yM)(e,{type:"change"});re.Z.trigger(t,n)}},_parseMask:function(){this._maskRules=(0,a.l)({},Qm,this.option("maskRules")),this._maskRulesChain=this._parseMaskRule(0)},_parseMaskRule:function(e){var t=this.option("mask");if(e>=t.length)return new zg;var i=t[e],n=i===qm,o=n?new Ug({maskChar:t[e+1]}):this._getMaskRule(i);return o.next(this._parseMaskRule(e+1+n)),o},_getMaskRule:function(e){var t;return(0,E.S6)(this._maskRules,(function(i,n){if(i===e)return t={pattern:i,allowedChars:n},!1})),(0,l.$K)(t)?new jg((0,a.l)({maskChar:this.option("maskChar")},t)):new Ug({maskChar:e})},_renderMaskedValue:function(){if(this._maskRulesChain){var e=this.option("value")||"";this._maskRulesChain.clear(this._normalizeChainArguments());var t={length:e.length};t[this._isMaskedValueMode()?"text":"value"]=e,this._handleChain(t),this._displayMask()}},_replaceSelectedText:function(e,t,i){if(void 0===i)return e;var n=e.slice(0,t.start),o=e.slice(t.end),r=n+i+o;return r},_isMaskedValueMode:function(){return this.option("useMaskedValue")},_displayMask:function(e){e=e||this._caret(),this._renderValue(),this._caret(e)},_isValueEmpty:function(){return(0,Ic.xb)(this._value)},_shouldShowMask:function(){var e=this.option("showMaskMode");return"onFocus"!==e||((0,D.si)(this._input())||!this._isValueEmpty())},_showMaskPlaceholder:function(){if(this._shouldShowMask()){var e=this._maskRulesChain.text();this.option("text",e),"onFocus"===this.option("showMaskMode")&&this._renderDisplayText(e)}},_renderValue:function(){if(this._maskRulesChain&&(this._showMaskPlaceholder(),this._$hiddenElement)){var e=this._maskRulesChain.value(),t=(0,Ic.xb)(e)?"":this._getPreparedValue();this._$hiddenElement.val(t)}return this.callBase()},_getPreparedValue:function(){return this._convertToValue().replace(/\s+$/,"")},_valueChangeEventHandler:function(e){this._maskRulesChain?(this._saveValueChangeEvent(e),this.option("value",this._getPreparedValue())):this.callBase.apply(this,arguments)},_isControlKeyFired:function(e){return this._isControlKey((0,R.EV)(e))||(0,R.j1)(e)},_handleChain:function(e){var t=this._maskRulesChain.handle(this._normalizeChainArguments(e));return this._value=this._maskRulesChain.value(),this._textValue=this._maskRulesChain.text(),t},_normalizeChainArguments:function(e){return e=e||{},e.index=0,e.fullText=this._maskRulesChain.text(),e},_convertToValue:function(e){return e=this._isMaskedValueMode()?this._replaceMaskCharWithEmpty(e||this._textValue||""):e||this._value||"",e},_replaceMaskCharWithEmpty:function(e){return e.replace(new RegExp(this.option("maskChar"),"g"),Gm)},_maskKeyHandler:function(e,t){if(!this.option("readOnly")){this.setForwardDirection(),e.preventDefault(),this._handleSelection();var i=this._input().val(),n=()=>{i!==this._input().val()&&this._maskStrategy.runWithoutEventProcessing((()=>re.Z.trigger(this._input(),"input")))},o=t();o?o.then(n):(this.setForwardDirection(),this._adjustCaret(),this._displayMask(),this._maskRulesChain.reset(),n())}},_handleKey:function(e,t){this._direction(t||Xm),this._adjustCaret(e),this._handleKeyChain(e),this._moveCaret()},_handleSelection:function(){if(this._hasSelection()){var e=this._caret(),t=new Array(e.end-e.start+1).join(Gm);this._handleKeyChain(t)}},_handleKeyChain:function(e){var t=this._caret(),i=this.isForwardDirection()?t.start:t.start-1,n=this.isForwardDirection()?t.end:t.end-1,o=i===n?1:n-i;this._handleChain({text:e,start:i,length:o})},_tryMoveCaretBackward:function(){this.setBackwardDirection();var e=this._caret().start;return this._adjustCaret(),!e||e!==this._caret().start},_adjustCaret:function(e){var t=this._caret().start,i=this.isForwardDirection(),n=this._maskRulesChain.adjustedCaret(t,i,e);this._caret({start:n,end:n})},_moveCaret:function(){var e=this._caret().start,t=e+(this.isForwardDirection()?0:-1),i=this._maskRulesChain.isAccepted(t)?e+(this.isForwardDirection()?1:-1):e;this._caret({start:i,end:i})},_caret:function(e,t){var i=this._input();if(i.length)return arguments.length?void Um(i,e,t):Um(i)},_hasSelection:function(){var e=this._caret();return e.start!==e.end},_direction:function(e){if(!arguments.length)return this._typingDirection;this._typingDirection=e},setForwardDirection:function(){this._direction(Xm)},setBackwardDirection:function(){this._direction(Jm)},isForwardDirection:function(){return this._direction()===Xm},_clean:function(){this._maskStrategy&&this._maskStrategy.clean(),this.callBase()},_validateMask:function(){if(this._maskRulesChain){var e=(0,Ic.xb)(this.option("value"))||this._maskRulesChain.isValid(this._normalizeChainArguments());this.option({isValid:e,validationError:e?null:{editorSpecific:!0,message:this.option("maskInvalidMessage")}})}},_updateHiddenElement:function(){this._removeHiddenElement(),this.option("mask")&&(this._input().removeAttr("name"),this._renderHiddenElement()),this._setSubmitElementName(this.option("name"))},_updateMaskOption:function(){this._updateHiddenElement(),this._renderMask(),this._validateMask()},_processEmptyMask:function(e){if(!e){var t=this.option("value");this.option({text:t,isValid:!0}),this.validationRequest.fire({value:t,editor:this}),this._renderValue()}},_optionChanged:function(e){switch(e.name){case"mask":this._updateMaskOption(),this._processEmptyMask(e.value);break;case"maskChar":case"maskRules":case"useMaskedValue":this._updateMaskOption();break;case"value":this._renderMaskedValue(),this._validateMask(),this.callBase(e),this._changedValue=this._input().val();break;case"maskInvalidMessage":break;case"showMaskMode":this.option("text",""),this._renderValue();break;default:this.callBase(e)}}}),o_=n_;(0,C.Z)("dxTextEditor",o_);var r_=o_,a_=(0,s.Jj)(),s_=["backspace","tab","enter","pageUp","pageDown","end","home","leftArrow","rightArrow","downArrow","upArrow","del"],l_="dx-textbox",d_="dx-searchbox",u_="dx-icon",c_="dx-icon-search",h_=r_.inherit({ctor:function(e,t){t&&(this._showClearButton=t.showClearButton),this.callBase.apply(this,arguments)},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{value:"",mode:"text",maxLength:null})},_initMarkup:function(){this.$element().addClass(l_),this.callBase(),this.setAria("role","textbox")},_renderInputType:function(){this.callBase(),this._renderSearchMode()},_useTemplates:function(){return!1},_renderProps:function(){this.callBase(),this._toggleMaxLengthProp()},_toggleMaxLengthProp:function(){var e=this._getMaxLength();e&&e>0?this._input().attr("maxLength",e):this._input().removeAttr("maxLength")},_renderSearchMode:function(){var e=this._$element;"search"===this.option("mode")?(e.addClass(d_),this._renderSearchIcon(),void 0===this._showClearButton&&(this._showClearButton=this.option("showClearButton"),this.option("showClearButton",!0))):(e.removeClass(d_),this._$searchIcon&&this._$searchIcon.remove(),this.option("showClearButton",void 0===this._showClearButton?this.option("showClearButton"):this._showClearButton),delete this._showClearButton)},_renderSearchIcon:function(){var e=(0,o.Z)("<div>").addClass(u_).addClass(c_);e.prependTo(this._input().parent()),this._$searchIcon=e},_getLabelContainerWidth:function(){if(this._$searchIcon){var e=this._input().parent();return(0,n.dz)(e)-this._getLabelBeforeWidth()}return this.callBase()},_getLabelBeforeWidth:function(){var e=this.callBase();return this._$searchIcon&&(e+=(0,n.Y_)(this._$searchIcon)),e},_optionChanged:function(e){switch(e.name){case"maxLength":this._toggleMaxLengthProp();break;case"mode":this.callBase(e),this._updateLabelWidth();break;case"mask":this.callBase(e),this._toggleMaxLengthProp();break;default:this.callBase(e)}},_onKeyDownCutOffHandler:function(e){var t=this._getMaxLength();if(!t||e.ctrlKey||this._hasSelection())return!0;var i=(0,o.Z)(e.target),n=(0,R.EV)(e);return this._cutOffExtraChar(i),i.val().length<t||s_.includes(n)||""!==a_.getSelection().toString()},_onChangeCutOffHandler:function(e){var t=(0,o.Z)(e.target);this.option("maxLength")&&this._cutOffExtraChar(t)},_cutOffExtraChar:function(e){var t=this._getMaxLength(),i=e.val();t&&i.length>t&&e.val(i.substr(0,t))},_getMaxLength:function(){var e=!!this.option("mask");return e?null:this.option("maxLength")}});(0,C.Z)("dxTextBox",h_);var p_=h_,f_=p_,g_=function(e){for(var t=0,i=0,n=0;n<e.length;++n)if("'"===e[n]&&t++,"."===e[n]&&(++i,t%2===0))return{occurrence:i,index:n};return{occurrence:1,index:-1}},m_=function(e,t,i){var n=-1;while(i--&&n++<e.length)n=e.indexOf(t,n);return n},__=function(e,t){return-1===t?[e]:[e.slice(0,t),e.slice(t+1)]},v_=function(e,t){return e&&(0,ln.zB)(e/100,t)},y_=function(e,t){if("string"===typeof t){var i=t.split(";"),n=kn.Z.getSign(e,t);i[1]=i[1]||"-"+i[0],t=i[n<0?1:0],a=t,t=a.replace(/'([^']*)'/g,(e=>e.split("").map((()=>" ")).join("").substr(2)));var o=/^[^#0.,]*/.exec(t)[0].length,r=/[^#0.,]*$/.exec(t)[0].length;return{start:o,end:e.length-r}}return{start:0,end:e.length};var a},C_=function(e,t){var i=kn.Z.getDecimalSeparator(),n=new RegExp("[^0-9"+(0,v.hr)(i)+"]","g"),o=t.slice(0,e);return o.replace(n,"").length},b_=function(e){return e.split("").reverse().join("")},x_=function(e,t){if(!e)return-1;var i=/[0-9]/g,n=1,o=null,r=i.exec(t);while(r){if(o=r.index,n>=e)return o;n++,r=i.exec(t)}return null===o?t.length:o},w_=function(e){return e.replace(/[^0-9e]+$/,"")},T_=function(e,t){return void 0===e.start&&(e={start:e,end:e}),{start:e.start+t,end:e.end+t}},S_=function(e,t,i,n){i=T_(i,0);var o=kn.Z.getDecimalSeparator(),r=I_(e),a=g_(n).occurrence,s=r?0:m_(e,o,a),l=m_(t,o,a),d=__(e,s),u=__(t,l),c=-1!==s&&i.start>s;if(c){var h=i.start-s-1,p=C_(h,d[1]),f=u[1]?l+1+x_(p,u[1])+1:t.length;return D_(f,t,n)}var g=w_(u[0]),m=d[0].length-i.start,_=C_(m,b_(d[0])),v=x_(_,b_(g)),y=g.length-(v+1);return D_(y,t,n)};function I_(e){return 1===e.length&&!!e.match(/^[,.][0-9]*$/g)}var E_=function(e,t,i){e=T_(e,0);var n=D_(e,t,i);return e.start>=n.start&&e.end<=n.end};function D_(e,t,i){e=T_(e,0);var n=y_(t,i),o={start:(0,ln.n$)(e.start,n.start,n.end),end:(0,ln.n$)(e.end,n.start,n.end)};return o}var k_=function(e,t,i){var n=y_(e,i),o=y_(t,i);return o.start-n.start},O_=i(49683),A_="dx-numberbox-spin",P_="dx-numberbox-spin-button",M_=100,R_="dxNumberBox",B_=(0,R.V4)(B.Z.up,R_),V_=(0,R.V4)(B.Z.cancel,R_),F_=G.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{direction:"up",onChange:null,activeStateEnabled:!0,hoverStateEnabled:!0})},_initMarkup:function(){this.callBase();var e=A_+"-"+this.option("direction");this.$element().addClass(P_).addClass(e),this._spinIcon=(0,o.Z)("<div>").addClass(e+"-icon").appendTo(this.$element())},_render:function(){this.callBase();var e=(0,R.V4)(B.Z.down,this.NAME),t=this.$element();re.Z.off(t,e),re.Z.on(t,e,this._spinDownHandler.bind(this)),this._spinChangeHandler=this._createActionByOption("onChange")},_spinDownHandler:function(e){e.preventDefault(),this._clearTimer(),re.Z.on(this.$element(),Sd.name,function(){this._feedBackDeferred=new ot.BH,K(this._feedBackDeferred),this._spinChangeHandler({event:e}),this._holdTimer=setInterval(this._spinChangeHandler,M_,{event:e})}.bind(this));var t=ke["default"].getDocument();re.Z.on(t,B_,this._clearTimer.bind(this)),re.Z.on(t,V_,this._clearTimer.bind(this)),this._spinChangeHandler({event:e})},_dispose:function(){this._clearTimer(),this.callBase()},_clearTimer:function(){re.Z.off(this.$element(),Sd.name);var e=ke["default"].getDocument();re.Z.off(e,B_),re.Z.off(e,V_),this._feedBackDeferred&&this._feedBackDeferred.resolve(),this._holdTimer&&clearInterval(this._holdTimer)},_optionChanged:function(e){switch(e.name){case"onChange":case"direction":this._invalidate();break;default:this.callBase(e)}}}),H_=F_,L_="dx-numberbox-spin",N_="dx-numberbox-spin-container",Z_="dx-numberbox-spin-touch-friendly";class $_ extends Gg{_attachEvents(e,t){var{editor:i}=this,n=(0,R.V4)(B.Z.down,i.NAME),o=t.children(),r=i._createAction((e=>i._spinButtonsPointerDownHandler(e)));re.Z.off(t,n),re.Z.on(t,n,(e=>r({event:e}))),H_.getInstance(o.eq(0)).option("onChange",(e=>i._spinUpChangeHandler(e))),H_.getInstance(o.eq(1)).option("onChange",(e=>i._spinDownChangeHandler(e)))}_create(){var{editor:e}=this,t=(0,o.Z)("<div>").addClass(N_),i=(0,o.Z)("<div>").appendTo(t),n=(0,o.Z)("<div>").appendTo(t),r=this._getOptions();return this._addToContainer(t),e._createComponent(i,H_,(0,a.l)({direction:"up"},r)),e._createComponent(n,H_,(0,a.l)({direction:"down"},r)),this._legacyRender(e.$element(),this._isTouchFriendly(),r.visible),{instance:t,$element:t}}_getOptions(){var{editor:e}=this,t=this._isVisible(),i=e.option("disabled");return{visible:t,disabled:i}}_isVisible(){var{editor:e}=this;return super._isVisible()&&e.option("showSpinButtons")}_isTouchFriendly(){var{editor:e}=this;return e.option("showSpinButtons")&&e.option("useLargeSpinButtons")}_legacyRender(e,t,i){e.toggleClass(Z_,t),e.toggleClass(L_,i)}update(){var e=super.update();if(e){var{editor:t,instance:i}=this,n=t.$element(),o=this._isVisible(),r=this._isTouchFriendly(),a=i.children(),s=H_.getInstance(a.eq(0)),l=H_.getInstance(a.eq(1)),d=this._getOptions();s.option(d),l.option(d),this._legacyRender(n,r,o)}}}var W_=Math,K_="dx-numberbox",z_=["tab","del","backspace","leftArrow","rightArrow","home","end","enter"],j_="NumberBoxForceValueChange",U_=r_.inherit({_supportedKeys:function(){return(0,a.l)(this.callBase(),{upArrow:function(e){(0,R.j1)(e)||(e.preventDefault(),e.stopPropagation(),this._spinUpChangeHandler(e))},downArrow:function(e){(0,R.j1)(e)||(e.preventDefault(),e.stopPropagation(),this._spinDownChangeHandler(e))},enter:function(){}})},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{value:0,min:void 0,max:void 0,step:1,showSpinButtons:!1,useLargeSpinButtons:!0,mode:"text",invalidValueMessage:y.Z.format("dxNumberBox-invalidValueMessage"),buttons:void 0})},_useTemplates:function(){return!1},_getDefaultButtons:function(){return this.callBase().concat([{name:"spins",Ctor:$_}])},_isSupportInputMode:function(){var e=parseFloat(Me.Z.version);return Me.Z.chrome&&e>=66||Me.Z.safari&&e>=12},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return w.Z.real().generic&&!w.Z.isSimulator()},options:{useLargeSpinButtons:!1}},{device:function(){return"desktop"!==w.Z.real().deviceType&&!this._isSupportInputMode()}.bind(this),options:{mode:"number"}}])},_initMarkup:function(){this._renderSubmitElement(),this.$element().addClass(K_),this.callBase()},_getDefaultAttributes:function(){var e=this.callBase();return e.inputmode="decimal",e},_renderContentImpl:function(){this.option("isValid")&&this._validateValue(this.option("value")),this.setAria("role","spinbutton")},_renderSubmitElement:function(){this._$submitElement=(0,o.Z)("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(e){this._getSubmitElement().val((0,v.FH)(e))},_getSubmitElement:function(){return this._$submitElement},_keyPressHandler:function(e){this.callBase(e);var t=(0,R.qK)(e),i=/[\d.,eE\-+]/.test(t);if(!i){var n=(0,R.EV)(e);if((0,R.j1)(e)||n&&z_.includes(n))return;return e.preventDefault(),!1}this._keyPressed=!0},_onMouseWheel:function(e){e.delta>0?this._spinValueChange(1,e):this._spinValueChange(-1,e)},_renderValue:function(){var e=this._input().val(),t=this.option("value");e.length&&Number(e)===t||(this._forceValueRender(),this._toggleEmptinessEventHandler());var i=(0,l.$K)(t)?null:y.Z.format("dxNumberBox-noDataText");return this.setAria({valuenow:(0,v.IS)(t,""),valuetext:i}),this.option("text",this._input().val()),this._updateButtons(),(new ot.BH).resolve()},_forceValueRender:function(){var e=this.option("value"),t=Number(e),i=isNaN(t)?"":this._applyDisplayValueFormatter(e);this._renderDisplayText(i)},_applyDisplayValueFormatter:function(e){return this.option("displayValueFormatter")(e)},_renderProps:function(){this._input().prop({min:this.option("min"),max:this.option("max"),step:this.option("step")}),this.setAria({valuemin:(0,v.IS)(this.option("min"),""),valuemax:(0,v.IS)(this.option("max"),"")})},_spinButtonsPointerDownHandler:function(){var e=this._input();this.option("useLargeSpinButtons")||ke["default"].getActiveElement()===e[0]||re.Z.trigger(e,"focus")},_spinUpChangeHandler:function(e){this.option("readOnly")||this._spinValueChange(1,e.event||e)},_spinDownChangeHandler:function(e){this.option("readOnly")||this._spinValueChange(-1,e.event||e)},_spinValueChange:function(e,t){var i=parseFloat(this.option("step"));if(0!==i){var n=parseFloat(this._normalizeInputValue())||0;n=this._correctRounding(n,i*e);var o=this.option("min"),r=this.option("max");(0,l.$K)(o)&&(n=Math.max(o,n)),(0,l.$K)(r)&&(n=Math.min(r,n)),this._saveValueChangeEvent(t),this.option("value",n)}},_correctRounding:function(e,t){var i=/[,.](.*)/,n=i.test(e),o=i.test(t);if(n||o){var r=n?i.exec(e)[0].length:0,a=o?i.exec(t)[0].length:0,s=W_.max(r,a);return e=this._round(e+t,s),e}return e+t},_round:function(e,t){t=t||0;var i=Math.pow(10,t);return e*=i,e=Math.round(e)/i,e},_renderValueChangeEvent:function(){this.callBase();var e=(0,R.V4)("focusout",j_);re.Z.off(this.element(),e),re.Z.on(this.element(),e,this._forceRefreshInputValue.bind(this))},_forceRefreshInputValue:function(){if("number"!==this.option("mode")){var e=this._input(),t=this._applyDisplayValueFormatter(this.option("value"));e.val(null),e.val(t)}},_valueChangeEventHandler:function(e){var t=this._input(),i=this._normalizeText(),n=this._parseValue(i),o="."!==i&&"-"!==i;!this._isValueValid()||this._validateValue(n)?(o&&this.callBase(e,isNaN(n)?null:n),this._applyValueBoundaries(i,n),this.validationRequest.fire({value:n,editor:this})):t.val(this._applyDisplayValueFormatter(n))},_applyValueBoundaries:function(e,t){var i=this._isValueIncomplete(e),n=this._isValueInRange(e);i||n||null===t||Number(e)!==t&&this._input().val(this._applyDisplayValueFormatter(t))},_replaceCommaWithPoint:function(e){return e.replace(",",".")},_inputIsInvalid:function(){var e="number"===this.option("mode"),t=this._input().get(0).validity;return e&&t&&t.badInput},_renderDisplayText:function(e){this._inputIsInvalid()||this.callBase(e)},_isValueIncomplete:function(e){return/(^-$)|(^-?\d*\.$)|(\d+e-?$)/i.test(e)},_isValueInRange:function(e){return(0,ln.Z2)(e,this.option("min"),this.option("max"))},_isNumber:function(e){return null!==this._parseValue(e)},_validateValue:function(e){var t=this._normalizeText(),i=this._isValueValid(),n=!0,o=this._isNumber(t);return isNaN(Number(e))&&(n=!1),!e&&i?n=!0:o||i||(n=!1),this.option({isValid:n,validationError:n?null:{editorSpecific:!0,message:this.option("invalidValueMessage")}}),n},_normalizeInputValue:function(){return this._parseValue(this._normalizeText())},_normalizeText:function(){var e=this._input().val().trim();return this._replaceCommaWithPoint(e)},_parseValue:function(e){var t=parseFloat(e);return isNaN(t)?null:(0,ln.n$)(t,this.option("min"),this.option("max"))},_clearValue:function(){this._inputIsInvalid()&&(this._input().val(""),this._validateValue()),this.callBase()},reset:function(){null===this.option("value")?(this.option("text",""),this._renderValue()):this.option("value",null)},_optionChanged:function(e){switch(e.name){case"value":this._validateValue(e.value),this._setSubmitValue(e.value),this.callBase(e),this._resumeValueChangeAction();break;case"step":this._renderProps();break;case"min":case"max":this._renderProps(),this.option("value",this._parseValue(this.option("value")));break;case"showSpinButtons":case"useLargeSpinButtons":this._updateButtons(["spins"]);break;case"invalidValueMessage":break;default:this.callBase(e)}}}),G_=U_,q_="dxNumberFormatter",Y_=1,X_=-1,J_="-",Q_="minus",ev="input",tv=0,iv=G_.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{useMaskBehavior:!0,format:null})},_isDeleteKey:function(e){return"del"===e},_supportedKeys:function(){return this._useMaskBehavior()?(0,a.l)(this.callBase(),{minus:this._revertSign.bind(this),del:this._removeHandler.bind(this),backspace:this._removeHandler.bind(this),leftArrow:this._arrowHandler.bind(this,X_),rightArrow:this._arrowHandler.bind(this,Y_),home:this._moveCaretToBoundaryEventHandler.bind(this,Y_),enter:this._updateFormattedValue.bind(this),end:this._moveCaretToBoundaryEventHandler.bind(this,X_)}):this.callBase()},_getTextSeparatorIndex:function(e){var t=kn.Z.getDecimalSeparator(),i=g_(this.option("format")).occurrence;return m_(e,t,i)},_focusInHandler:function(e){this._preventNestedFocusEvent(e)||(this.clearCaretTimeout(),this._caretTimeout=setTimeout(function(){this._caretTimeout=void 0;var t=this._caret();if(t.start===t.end&&this._useMaskBehavior()){var i=this._getInputVal(),n=this._getTextSeparatorIndex(i);n>=0?this._caret({start:n,end:n}):this._moveCaretToBoundaryEventHandler(X_,e)}}.bind(this),tv)),this.callBase(e)},_focusOutHandler:function(e){var t=!this._preventNestedFocusEvent(e);t&&(this._focusOutOccurs=!0,this._useMaskBehavior()&&this._updateFormattedValue()),this.callBase(e),t&&(this._focusOutOccurs=!1)},_hasValueBeenChanged(e){var t=this._getFormatPattern(),i=this.option("value"),n=this._format(i,t)||"";return n!==e},_updateFormattedValue:function(){var e=this._getInputVal();this._hasValueBeenChanged(e)&&(this._updateParsedValue(),this._adjustParsedValue(),this._setTextByParsedValue(),this._parsedValue!==this.option("value")&&re.Z.trigger(this._input(),"change"))},_arrowHandler:function(e,t){if(this._useMaskBehavior()){var i=this._getInputVal(),n=this._getFormatPattern(),o=T_(this._caret(),e);E_(o,i,n)||(o=e===Y_?o.end:o.start,t.preventDefault(),this._caret(D_(o,i,n)))}},_moveCaretToBoundary:function(e){var t=y_(this._getInputVal(),this._getFormatPattern()),i=T_(e===Y_?t.start:t.end,0);this._caret(i)},_moveCaretToBoundaryEventHandler:function(e,t){!this._useMaskBehavior()||t&&t.shiftKey||(this._moveCaretToBoundary(e),t&&t.preventDefault())},_shouldMoveCaret:function(e,t){var i=kn.Z.getDecimalSeparator(),n=e.charAt(t.end)===i,o=(this._lastKey===i||"."===this._lastKey||","===this._lastKey)&&n;return o},_getInputVal:function(){return kn.Z.convertDigits(this._input().val(),!0)},_keyboardHandler:function(e){if(this.clearCaretTimeout(),this._lastKey=kn.Z.convertDigits((0,R.qK)(e),!0),this._lastKeyName=(0,R.EV)(e),!this._shouldHandleKey(e.originalEvent))return this.callBase(e);var t=this._getInputVal(),i=this._caret(),n=this._lastKeyName===Q_?"":this._lastKey,o=this._tryParse(t,i,n);return this._shouldMoveCaret(t,i)&&(this._moveCaret(1),e.originalEvent.preventDefault()),void 0===o?this._lastKeyName!==Q_&&e.originalEvent.preventDefault():this._parsedValue=o,this.callBase(e)},_keyPressHandler:function(e){this._useMaskBehavior()||this.callBase(e)},_removeHandler:function(e){var t=this._caret(),i=this._getInputVal(),n=t.start,o=t.end;this._lastKey=(0,R.qK)(e),this._lastKeyName=(0,R.EV)(e);var r=this._isDeleteKey(this._lastKeyName),a=!r;if(n===o){var s=n,l=a&&s>0||r&&s<i.length;if(!l)return void e.preventDefault();r&&o++,a&&n--}var d=i.slice(n,o);if(this._isStub(d))return this._moveCaret(r?1:-1),(this._parsedValue<0||1/this._parsedValue===-1/0)&&(this._revertSign(e),this._setTextByParsedValue()),void e.preventDefault();var u=kn.Z.getDecimalSeparator();if(d!==u){if(o-n<i.length){var c=this._replaceSelectedText(i,{start:n,end:o},""),h=c.search(/[0-9]/)<0;if(h&&this._isValueInRange(0))return void(this._parsedValue=this._parsedValue<0||1/this._parsedValue===-1/0?-0:0)}var p=this._tryParse(i,{start:n,end:o},"");void 0===p?e.preventDefault():this._parsedValue=p}else{var f=i.indexOf(u);this._isNonStubAfter(f+1)&&(this._moveCaret(r?1:-1),e.preventDefault())}},_isPercentFormat:function(){var e=this._getFormatPattern(),t=e.replace(/'[^']+'/g,"");return-1!==t.indexOf("%")},_parse:function(e,t){var i=this.option("format"),n=(0,l.mf)(i.parser),o=n?i.parser:kn.Z.parse,r=0;if(!n){var a=g_(t).index,s=this._getTextSeparatorIndex(e),d=-1!==a?a:t.length,u=-1!==s?s:e.length;u>d&&-1===t.indexOf("#")&&(r=u-d)}return e=e.substr(r),o(e,t)},_format:function(e,t){var i=this.option("format"),n=(null===i||void 0===i?void 0:i.formatter)||i,o=(0,l.mf)(n)?n:kn.Z.format,r=null===e?"":o(e,t);return r},_getFormatPattern:function(){return this._currentFormat||this._updateFormat(),this._currentFormat},_updateFormat:function(){var e=this.option("format"),t=(0,l.mf)(null===e||void 0===e?void 0:e.parser),i=(0,l.HD)(e)&&(e.indexOf("0")>=0||e.indexOf("#")>=0),n="exponential"===e||"exponential"===(null===e||void 0===e?void 0:e.type),o=t||i||n;this._currentFormat=o?e:(0,O_.y)((t=>{var i=this._format(t,e);return kn.Z.convertDigits(i,!0)}))},_getFormatForSign:function(e){var t=this._getFormatPattern();if((0,l.HD)(t)){var i=t.split(";"),n=kn.Z.getSign(e,t);return i[1]=i[1]||"-"+i[0],n<0?i[1]:i[0]}var o=kn.Z.getSign(e);return o<0?"-":""},_removeStubs:function(e,t){var i=this._getFormatForSign(e),n=kn.Z.getThousandsSeparator(),o=this._getStubs(i),r=e;if(o.length){var a=o[0],s=new RegExp("("+(0,v.hr)(o[1]||"")+")$","g"),l=new RegExp("[-"+(0,v.hr)(t?"":n)+"]","g");r=r.replace(a,"").replace(s,"").replace(l,"")}return r},_getStubs:function(e){var t=/[^']([#0.,]+)/g.exec(e),i=t&&t[0].trim();return e.split(i).map((function(e){return e.replace(/'/g,"")}))},_truncateToPrecision:function(e,t){if((0,l.$K)(e)){var i=e.toString(),n=i.indexOf(".");if(i&&n>-1){var o=parseFloat(i.substr(0,n+t+1));return isNaN(o)?e:o}}return e},_tryParse:function(e,t,i){var n=this._replaceSelectedText(e,t,i),o=this._getFormatPattern(),r=t.start!==t.end,a=this._getParsedValue(n,o),s=!o.parser&&this._getPrecisionLimits(n).max,l=a!==this._parsedValue,d=kn.Z.getDecimalSeparator(),u=i===d&&0===s,c=!r&&!l&&i!==J_&&!this._isValueIncomplete(n)&&this._isStub(i);if(!u&&!c&&(""===this._removeStubs(n)&&(a=Math.abs(0*this._parsedValue)),!isNaN(a))){var h=null===a?this._parsedValue:a;return a=s?this._truncateToPrecision(h,s):a,!o.parser&&this._isPercentFormat()?v_(a,s):a}},_getParsedValue:function(e,t){var i=kn.Z.getSign(e,(null===t||void 0===t?void 0:t.formatter)||t),n=this._removeStubs(e,!0),o=this._parse(n,t),r=o<0?-1:1,a=(0,l.kE)(o)&&i!==r?i*o:o;return a},_isValueIncomplete:function(e){if(!this._useMaskBehavior())return this.callBase(e);var t=this._caret(),i=kn.Z.getDecimalSeparator(),n=this._getTextSeparatorIndex(e),o=n>=0&&n<t.start,r=this._removeStubs(e,!0).split(i);if(!o||2!==r.length)return!1;var a=r[1].length,s=this._getFormatPattern(),l=!!s.parser,d=!l&&this._getPrecisionLimits(this._getFormatPattern(),e),u=!!l||(0,ln.Z2)(a,d.min,d.max),c="0"===r[1].charAt(a-1);return u&&(c||!a)},_isValueInRange:function(e){var t=(0,v.IS)(this.option("min"),-1/0),i=(0,v.IS)(this.option("max"),1/0);return(0,ln.Z2)(e,t,i)},_setInputText:function(e){var t=kn.Z.convertDigits(e,!0),i=S_(this._getInputVal(),t,this._caret(),this._getFormatPattern());this._input().val(e),this._toggleEmptinessEventHandler(),this._formattedValue=e,this._focusOutOccurs||this._caret(i)},_useMaskBehavior:function(){return!!this.option("format")&&this.option("useMaskBehavior")},_renderInputType:function(){var e="number"===this.option("mode"),t="desktop"===w.Z.real().deviceType;this._useMaskBehavior()&&e?this._setInputType(t||this._isSupportInputMode()?"text":"tel"):this.callBase()},_isChar:function(e){return(0,l.HD)(e)&&1===e.length},_moveCaret:function(e){if(e){var t=T_(this._caret(),e),i=D_(t,this._getInputVal(),this._getFormatPattern());this._caret(i)}},_shouldHandleKey:function(e){var t=(0,R.EV)(e),i=(0,R.j1)(e)||e.altKey||e.shiftKey||!this._isChar(t),n=t===Q_,o=this._useMaskBehavior();return o&&!i&&!n},_renderInput:function(){this.callBase(),this._renderFormatter()},_renderFormatter:function(){this._clearCache(),this._detachFormatterEvents(),this._useMaskBehavior()&&this._attachFormatterEvents()},_detachFormatterEvents:function(){re.Z.off(this._input(),"."+q_)},_isInputFromPaste:function(e){var t=e.originalEvent&&e.originalEvent.inputType;return(0,l.$K)(t)?"insertFromPaste"===t:this._isValuePasted},_attachFormatterEvents:function(){var e=this._input();re.Z.on(e,(0,R.V4)(ev,q_),function(e){this._formatValue(e),this._isValuePasted=!1}.bind(this)),re.Z.on(e,(0,R.V4)("dxclick",q_),function(){this._caretTimeout||(this._caretTimeout=setTimeout(function(){this._caretTimeout=void 0,this._caret(D_(this._caret(),this._getInputVal(),this._getFormatPattern()))}.bind(this),tv))}.bind(this)),re.Z.on(e,"dxdblclick",function(){this.clearCaretTimeout()}.bind(this))},clearCaretTimeout:function(){clearTimeout(this._caretTimeout),this._caretTimeout=void 0},_forceRefreshInputValue:function(){if(!this._useMaskBehavior())return this.callBase()},_isNonStubAfter:function(e){var t=this._getInputVal().slice(e);return t&&!this._isStub(t,!0)},_isStub:function(e,t){var i=(0,v.hr)(kn.Z.getDecimalSeparator()),n="^[^0-9"+i+"]+$",o=new RegExp(n,"g");return o.test(e)&&(t||this._isChar(e))},_parseValue:function(e){return this._useMaskBehavior()?this._parsedValue:this.callBase(e)},_getPrecisionLimits:function(e){var t=this._getFormatForSign(e),i=g_(t).index,n=(__(t,i)[1]||"").replace(/[^#0]/g,""),o=n.replace(/^(0*)#*/,"$1").length,r=n.length;return{min:o,max:r}},_revertSign:function(e){if(this._useMaskBehavior()){var t=this._caret();if(t.start!==t.end){if((0,R.EV)(e)===Q_)return void this._applyRevertedSign(e,t,!0);this._caret(D_(0,this._getInputVal(),this._getFormatPattern()))}this._applyRevertedSign(e,t)}},_applyRevertedSign:function(e,t,i){var n=-1*(0,v.IS)(this._parsedValue,null);if((this._isValueInRange(n)||0===n)&&(this._parsedValue=n,i)){var o=this._getFormatPattern(),r=this._getInputVal();this._setTextByParsedValue(),e.preventDefault();var a=this._getInputVal(),s=k_(r,a,o);t=T_(t,s);var l=D_(t,a,o);this._caret(l)}},_removeMinusFromText:function(e,t){var i=this._lastKeyName===Q_&&e.charAt(t.start-1)===J_;return i?this._replaceSelectedText(e,{start:t.start-1,end:t.start},""):e},_setTextByParsedValue:function(){var e=this._getFormatPattern(),t=this._parseValue(),i=this._format(t,e)||"";this._setInputText(i)},_formatValue:function(e){var t=this._getInputVal(),i=this._caret(),n=this._removeMinusFromText(t,i),o=n!==t;if(t=n,!this._isInputFromPaste(e)&&this._isValueIncomplete(n))return this._formattedValue=t,void(o&&this._setTextByParsedValue());var r=kn.Z.convertDigits(this._formattedValue,!0)!==t;if(r){var a=this._tryParse(t,i,"");(0,l.$K)(a)&&(this._parsedValue=a)}this._setTextByParsedValue()},_renderDisplayText:function(){this._useMaskBehavior()?this._toggleEmptinessEventHandler():this.callBase.apply(this,arguments)},_renderValue:function(){return this._useMaskBehavior()&&(this._parsedValue=this.option("value"),this._setTextByParsedValue()),this.callBase()},_updateParsedValue:function(){var e=this._getInputVal();this._parsedValue=this._tryParse(e,this._caret())},_adjustParsedValue:function(){if(this._useMaskBehavior()){var e=this._removeStubs(this._getInputVal()),t=e?this._parseValue():null;(0,l.kE)(t)?this._parsedValue=(0,ln.n$)(t,this.option("min"),this.option("max")):this._parsedValue=t}},_valueChangeEventHandler:function(e){if(!this._useMaskBehavior())return this.callBase(e);var t=this._caret();this._saveValueChangeEvent(e),this._lastKey=null,this._lastKeyName=null,this._updateParsedValue(),this._adjustParsedValue(),this.option("value",this._parsedValue),t&&this._caret(t)},_optionChanged:function(e){switch(e.name){case"format":case"useMaskBehavior":this._renderInputType(),this._updateFormat(),this._renderFormatter(),this._renderValue(),this._refreshValueChangeEvent(),this._refreshEvents();break;case"min":case"max":this._adjustParsedValue(),this.callBase(e);break;default:this.callBase(e)}},_clearCache:function(){delete this._formattedValue,delete this._lastKey,delete this._lastKeyName,delete this._parsedValue,delete this._focusOutOccurs,clearTimeout(this._caretTimeout),delete this._caretTimeout},_clean:function(){this._clearCache(),this.callBase()}}),nv=iv;(0,C.Z)("dxNumberBox",nv);var ov=nv,rv=ov;function av(e,t){var i,n,o=null!==(i=null===(n=e.getRootNode)||void 0===n?void 0:n.call(e))&&void 0!==i?i:document;return o.querySelector(t)}var sv="dx-invalid-message-auto",lv="dx-validation-target";class dv extends Os{getProps(){var e=super.getProps();return e.onFocusIn=()=>{var e="auto"===this.option("validationMessageMode");if(e){var t=(0,o.Z)(av(this.element(),".dx-invalid-message.dx-overlay-wrapper"));null===t||void 0===t||t.removeClass(sv),this.showValidationMessageTimeout&&clearTimeout(this.showValidationMessageTimeout),this.showValidationMessageTimeout=setTimeout((()=>{null===t||void 0===t||t.addClass(sv)}),150)}},e.saveValueChangeEvent=e=>{this._valueChangeEventInstance=e},e}_createElement(e){super._createElement(e),this.showValidationMessageTimeout=void 0,this.validationRequest=(0,Sc["default"])(),(0,le.aT)(this.$element()[0],lv,this)}_render(){var e;null===(e=this.option("_onMarkupRendered"))||void 0===e||e()}_initializeComponent(){super._initializeComponent(),this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})}_initOptions(e){super._initOptions(e),this.option(Kn.initValidationOptions(e))}_getDefaultOptions(){return(0,a.l)(super._getDefaultOptions(),{validationMessageOffset:{h:0,v:0},validationTooltipOptions:{}})}_bindInnerWidgetOptions(e,t){var i=(0,a.l)({},e.option()),n=()=>this._silent(t,i);n(),e.on("optionChanged",n)}_raiseValidation(e,t){var i=!(0,l.$K)(e)&&!(0,l.$K)(t);e===t||i||this.validationRequest.fire({value:e,editor:this})}_raiseValueChangeAction(e,t){var i;null===(i=this._valueChangeAction)||void 0===i||i.call(this,{element:this.$element(),previousValue:t,value:e,event:this._valueChangeEventInstance}),this._valueChangeEventInstance=void 0}_optionChanged(e){var{name:t,previousValue:i,value:n}=e;switch(t&&void 0!==this._getActionConfigs()[t]&&this._addAction(t),t){case"value":this._raiseValidation(n,i),this._raiseValueChangeAction(n,i);break;case"onValueChanged":this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]});break;case"isValid":case"validationError":case"validationErrors":case"validationStatus":this.option(Kn.synchronizeValidationOptions(e,this.option()))}super._optionChanged(e)}reset(){var{value:e}=this._getDefaultOptions();this.option({value:e})}_dispose(){super._dispose(),(0,le.aT)(this.element(),lv,null),this.showValidationMessageTimeout&&clearTimeout(this.showValidationMessageTimeout)}}var uv=zc.isEditor,cv=e=>uv(e)||e instanceof dv;dv.isEditor=cv,zc.isEditor=cv;class hv extends dv{_useTemplates(){return!1}_isFocused(){var e=this.$element()[0];return e.classList.contains("dx-state-focused")}getSupportedKeyNames(){return["space"]}getProps(){var e=super.getProps();return null!==e.value&&(e.value=Boolean(e.value)),e}}var pv=["dataSource","selectedRowKeys"],fv={integrationOptions:!0};function gv(e,t,i){return{path:e,value:t,previousValue:i}}function mv(e,t,i,n,o,r){if(!fv[n]){var a=(0,l.dt)(t),s=(0,l.dt)(i);if(t!==i)if(a!==s)e.push(gv(n,i,t));else if("object"===a)if((0,l.PO)(i)){var d=vv(t,i,o,r);e.push(...d.map((e=>(0,hn.Z)({},e,{path:"".concat(n,".").concat(e.path)}))))}else e.push(gv(n,i,t));else if("array"===a){var u=r.some((e=>o.includes(e)));if(u&&t!==i)e.push(gv(n,i,t));else if(t.length!==i.length)e.push(gv(n,i,t));else{var c=vv(t,i,o,r);[].push.apply(e,c.map((e=>(0,hn.Z)({},e,{path:"".concat(n).concat(e.path)}))))}}else e.push(gv(n,i,t))}}var _v=e=>(t,i,n,o)=>{var r=[],a=Array.isArray(t)?e=>{mv(r,t[e],i[e],"[".concat(e,"]"),"".concat(n,".").concat(e),o)}:e=>{mv(r,t[e],i[e],e,"".concat(n,".").concat(e),o)};return e(t).forEach(a),Object.keys(i).filter((e=>!Object.prototype.hasOwnProperty.call(t,e)&&t[e]!==i[e])).forEach((e=>{r.push({path:e,value:i[e],previousValue:t[e]})})),r},vv=_v((e=>Object.keys(e))),yv={key:!0,ref:!0,children:!0,style:!0},Cv=_v((e=>Object.keys(e).filter((e=>!yv[e]))));function bv(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:pv;return Cv(e,t,"",i)}var xv=["valueChange"],wv=["componentProps","componentType","templateNames"],Tv=e=>Object.keys(e).reduce(((t,i)=>(void 0!==e[i]&&(t[i]=e[i]),t)),{}),Sv=e=>{var{props:{componentProps:{className:t}},restAttributes:i,widgetRef:n}=e;return Tv(So(1,"div",t,null,1,(0,hn.Z)({},i),null,n))},Iv={};class Ev extends Ha{constructor(e){super(e),this.state={},this.widgetRef=kr(),this.getInstance=this.getInstance.bind(this),this.setupWidget=this.setupWidget.bind(this),this.updateWidget=this.updateWidget.bind(this)}get config(){return"ConfigContext"in this.context?this.context.ConfigContext:Ll}createEffects(){return[new $a(this.setupWidget,[]),new $a(this.updateWidget,[this.props.componentProps,this.config,this.props.templateNames])]}updateEffects(){var e;null===(e=this._effects[1])||void 0===e||e.update([this.props.componentProps,this.config,this.props.templateNames])}setupWidget(){var e=new this.props.componentType(this.widgetRef.current,this.properties);return this.instance=e,()=>{e.dispose(),this.instance=null}}updateWidget(){var e=this.getInstance();if(e){var t=bv(this.prevProps||{},this.properties);t.length&&(e.beginUpdate(),t.forEach((t=>{var{path:i,value:n}=t;e.option(i,n)})),e.endUpdate()),this.prevProps=this.properties}}get properties(){var e,t=Tv(this.props.componentProps),{valueChange:i}=t,n=(0,Vs.Z)(t,xv),o=(0,hn.Z)({rtlEnabled:!(null===(e=this.config)||void 0===e||!e.rtlEnabled),isRenovated:!0},n);i&&(o.onValueChanged=e=>{var{value:t}=e;return i(t)});var r=this.props.templateNames;return r.forEach((e=>{ps(e,o,this)&&(o[e]=(t,i,n)=>{hs(this.props.componentProps[e],{item:t,index:i,container:n},this)})})),o}get restAttributes(){var e=this.props,t=(0,Vs.Z)(e,wv);return t}getInstance(){return this.instance}render(){var e=this.props;return Sv({props:(0,hn.Z)({},e),widgetRef:this.widgetRef,config:this.config,properties:this.properties,restAttributes:this.restAttributes})}}Ev.defaultProps=Iv;var Dv=["accessKey","activeStateEnabled","boundary","className","contentId","disabled","focusStateEnabled","height","hint","hoverStateEnabled","mode","offset","onClick","onKeyDown","positionSide","rtlEnabled","tabIndex","target","validationErrors","visible","visualContainer","width"],kv=e=>{var{componentProps:t,restAttributes:i}=e;return Po(ko(2,Ev,(0,hn.Z)({componentType:Mc,componentProps:t,templateNames:[]},i)))},Ov=Object.create(Object.prototype,(0,hn.Z)(Object.getOwnPropertyDescriptors(Hl),Object.getOwnPropertyDescriptors({mode:"auto",positionSide:"top",offset:Object.freeze({h:0,v:0}),isReactComponentWrapper:!0})));class Av extends Fa{constructor(e){super(e),this.state={}}get componentProps(){return this.props}get restAttributes(){var e=this.props,t=(0,Vs.Z)(e,Dv);return t}render(){var e=this.props;return kv({props:(0,hn.Z)({},e),componentProps:this.componentProps,restAttributes:this.restAttributes})}}Av.defaultProps=Ov;var Pv=["accessKey","activeStateEnabled","aria","children","className","classes","defaultValue","disabled","focusStateEnabled","height","hint","hoverStateEnabled","isValid","name","onClick","onFocusIn","onKeyDown","readOnly","rtlEnabled","tabIndex","validationError","validationErrors","validationMessageMode","validationMessagePosition","validationStatus","value","valueChange","visible","width"],Mv=e=>{var{classes:t,isValid:i,readOnly:n}=e,o={"dx-state-readonly":!!n,"dx-invalid":!i,["".concat(t)]:!!t};return Hs(o)},Rv=e=>{var{aria:t,cssClasses:i,isValidationMessageVisible:n,onFocusIn:o,props:{accessKey:r,activeStateEnabled:a,children:s,className:l,disabled:d,focusStateEnabled:u,height:c,hint:h,hoverStateEnabled:p,onClick:f,onKeyDown:g,rtlEnabled:m,tabIndex:_,validationMessageMode:v,validationMessagePosition:y,visible:C,width:b},restAttributes:x,rootElementRef:w,validationErrors:T,validationMessageGuid:S,validationMessageTarget:I,widgetRef:E}=e;return Po(ko(2,Ql,(0,hn.Z)({rootElementRef:w,aria:t,classes:i,activeStateEnabled:a,focusStateEnabled:u,hoverStateEnabled:p,accessKey:r,className:l,rtlEnabled:m,hint:h,disabled:d,height:c,width:b,onFocusIn:o,onClick:f,onKeyDown:g,tabIndex:_,visible:C},x,{children:Ao([s,n&&ko(2,Av,{validationErrors:T,mode:v,positionSide:y,rtlEnabled:m,target:I,boundary:I,visualContainer:I,contentId:S})],0)}),null,E))},Bv=Object.create(Object.prototype,(0,hn.Z)(Object.getOwnPropertyDescriptors(Hl),Object.getOwnPropertyDescriptors({readOnly:!1,name:"",validationError:null,validationErrors:null,validationMessageMode:"auto",validationMessagePosition:"bottom",validationStatus:"valid",isValid:!0,defaultValue:null,valueChange:()=>{}}))),Vv={get readOnly(){return Bv.readOnly},get name(){return Bv.name},get validationError(){return Bv.validationError},get validationErrors(){return Bv.validationErrors},get validationMessageMode(){return Bv.validationMessageMode},get validationMessagePosition(){return Bv.validationMessagePosition},get validationStatus(){return Bv.validationStatus},get isValid(){return Bv.isValid},get defaultValue(){return Bv.defaultValue},get valueChange(){return Bv.valueChange},get className(){return Bv.className},get activeStateEnabled(){return Bv.activeStateEnabled},get disabled(){return Bv.disabled},get focusStateEnabled(){return Bv.focusStateEnabled},get hoverStateEnabled(){return Bv.hoverStateEnabled},get tabIndex(){return Bv.tabIndex},get visible(){return Bv.visible},get aria(){return Jl.aria},get classes(){return Jl.classes}};class Fv extends La{constructor(e){super(e),this.widgetRef=kr(),this.rootElementRef=kr(),this.__getterCache={},this.state={validationMessageGuid:"dx-".concat(new Li.Z),isValidationMessageVisible:!1,value:void 0!==this.props.value?this.props.value:this.props.defaultValue},this.updateValidationMessageVisibility=this.updateValidationMessageVisibility.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.onFocusIn=this.onFocusIn.bind(this)}createEffects(){return[new $a(this.updateValidationMessageVisibility,[this.props.isValid,this.props.validationStatus,this.props.validationError,this.props.validationErrors]),Wa()]}updateEffects(){var e;null===(e=this._effects[0])||void 0===e||e.update([this.props.isValid,this.props.validationStatus,this.props.validationError,this.props.validationErrors])}updateValidationMessageVisibility(){this.setState((e=>({isValidationMessageVisible:this.shouldShowValidationMessage})))}onFocusIn(e){var{onFocusIn:t}=this.props;null===t||void 0===t||t(e)}get cssClasses(){return"".concat(Mv((0,hn.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value})))}get shouldShowValidationMessage(){var e,{isValid:t,validationStatus:i}=this.props,n=null!==(e=this.validationErrors)&&void 0!==e?e:[],o=t&&"invalid"!==i;return!o&&n.length>0}get aria(){var{isValid:e,readOnly:t}=this.props,i={readonly:t?"true":"false",invalid:e?"false":"true"};return this.shouldShowValidationMessage&&(i.describedBy=this.state.validationMessageGuid),(0,hn.Z)({},i,this.props.aria)}get validationErrors(){return void 0!==this.__getterCache.validationErrors?this.__getterCache.validationErrors:this.__getterCache.validationErrors=(()=>{var{validationError:e,validationErrors:t}=this.props,i=t&&[...t];return!i&&e&&(i=[(0,hn.Z)({},e)]),i})()}get validationMessageTarget(){var e;return null===(e=this.rootElementRef)||void 0===e?void 0:e.current}get restAttributes(){var e=(0,hn.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),t=(0,Vs.Z)(e,Pv);return t}focus(){this.widgetRef.current.focus()}blur(){this.widgetRef.current.blur()}componentWillUpdate(e,t,i){super.componentWillUpdate(),this.props.validationError===e.validationError&&this.props.validationErrors===e.validationErrors||(this.__getterCache.validationErrors=void 0)}render(){var e=this.props;return Rv({props:(0,hn.Z)({},e,{value:void 0!==this.props.value?this.props.value:this.state.value}),validationMessageGuid:this.state.validationMessageGuid,isValidationMessageVisible:this.state.isValidationMessageVisible,rootElementRef:this.rootElementRef,widgetRef:this.widgetRef,onFocusIn:this.onFocusIn,cssClasses:this.cssClasses,shouldShowValidationMessage:this.shouldShowValidationMessage,aria:this.aria,validationErrors:this.validationErrors,validationMessageTarget:this.validationMessageTarget,restAttributes:this.restAttributes})}}Fv.defaultProps=Vv;function Hv(e){var t,i=(0,s.Jj)();return e?null===(t=i.getComputedStyle)||void 0===t?void 0:t.call(i,e):null}var Lv=[[22,16],[18,16]],Nv=[[[12,8],[20,18]],[[16,10],[16,14]]];function Zv(){var e=(0,x.Vk)();return{isMaterialTheme:(0,x.x2)(e),isCompactTheme:(0,x.f5)(e)}}function $v(){var{isCompactTheme:e,isMaterialTheme:t}=Zv();return Lv[+t][+e]}function Wv(e){var{isCompactTheme:t,isMaterialTheme:i}=Zv();return Nv[+e][+i][+t]}function Kv(e,t){var i=Wv(t),n=$v(),o=i/n;return Math.ceil(o*e)}var zv=["isChecked","size"],jv=e=>{var{cssStyles:t,elementRef:i}=e;return So(1,"span","dx-checkbox-icon",null,1,{style:ys(t)},null,i)},Uv={isChecked:!1};class Gv extends Ha{constructor(e){super(e),this.state={},this.elementRef=kr(),this.__getterCache={},this.updateFontSize=this.updateFontSize.bind(this),this.setIconFontSize=this.setIconFontSize.bind(this),this.getIconSize=this.getIconSize.bind(this),this.getComputedIconSize=this.getComputedIconSize.bind(this)}createEffects(){return[new $a(this.updateFontSize,[this.props.isChecked,this.props.size])]}updateEffects(){var e;null===(e=this._effects[0])||void 0===e||e.update([this.props.isChecked,this.props.size])}updateFontSize(){var{isChecked:e,size:t}=this.props;if((0,s.Ym)()&&t){var i=this.getIconSize(t),n=Kv(i,e);this.setIconFontSize(n)}}setIconFontSize(e){var t=this.elementRef.current;t.style.fontSize="".concat(e,"px")}getIconSize(e){return(0,l.kE)(e)?e:e.endsWith("px")?parseInt(e,10):this.getComputedIconSize()}getComputedIconSize(){var e=this.elementRef.current,t=Hv(e),i=parseInt(null===t||void 0===t?void 0:t.width,10);return i}get cssStyles(){return void 0!==this.__getterCache.cssStyles?this.__getterCache.cssStyles:this.__getterCache.cssStyles=(()=>{var{size:e}=this.props,t=(0,Fl.bh)("width",e),i=(0,Fl.bh)("height",e);return{height:i,width:t}})()}get restAttributes(){var e=this.props,t=(0,Vs.Z)(e,zv);return t}componentWillUpdate(e,t,i){super.componentWillUpdate(),this.props.size!==e.size&&(this.__getterCache.cssStyles=void 0)}render(){var e=this.props;return jv({props:(0,hn.Z)({},e),elementRef:this.elementRef,setIconFontSize:this.setIconFontSize,getIconSize:this.getIconSize,getComputedIconSize:this.getComputedIconSize,cssStyles:this.cssStyles,restAttributes:this.restAttributes})}}Gv.defaultProps=Uv;var qv=["accessKey","activeStateEnabled","aria","className","defaultValue","disabled","enableThreeStateBehavior","focusStateEnabled","height","hint","hoverStateEnabled","iconSize","isValid","name","onClick","onFocusIn","onKeyDown","readOnly","rtlEnabled","saveValueChangeEvent","tabIndex","text","validationError","validationErrors","validationMessageMode","validationMessagePosition","validationStatus","value","valueChange","visible","width"],Yv=e=>{var{text:t,value:i}=e,n=i,o=null===n,r={"dx-checkbox":!0,"dx-checkbox-checked":!0===n,"dx-checkbox-has-text":!!t,"dx-checkbox-indeterminate":o};return Hs(r)},Xv=e=>{var{aria:t,cssClasses:i,editorRef:n,keyDown:o,onWidgetClick:r,props:{accessKey:a,activeStateEnabled:s,className:l,disabled:d,focusStateEnabled:u,height:c,hint:h,hoverStateEnabled:p,iconSize:f,isValid:g,name:m,onFocusIn:_,readOnly:v,rtlEnabled:y,tabIndex:C,text:b,validationError:x,validationErrors:w,validationMessageMode:T,validationMessagePosition:S,validationStatus:I,value:E,visible:D,width:k},restAttributes:O}=e;return Po(ko(2,Fv,(0,hn.Z)({aria:t,classes:i,onClick:r,onKeyDown:o,accessKey:a,activeStateEnabled:s,focusStateEnabled:u,hoverStateEnabled:p,className:l,disabled:d,readOnly:v,hint:h,height:c,width:k,rtlEnabled:y,tabIndex:C,visible:D,validationError:x,validationErrors:w,validationMessageMode:T,validationMessagePosition:S,validationStatus:I,isValid:g,onFocusIn:_},O,{children:Ao([Po(So(64,"input",null,null,1,(0,hn.Z)({type:"hidden",value:"".concat(E)},m&&{name:m}))),So(1,"div","dx-checkbox-container",[ko(2,Gv,{size:f,isChecked:!0===E}),b&&So(1,"span","dx-checkbox-text",b,0)],0)],4)}),null,n))},Jv=Object.create(Object.prototype,(0,hn.Z)(Object.getOwnPropertyDescriptors(Bv),Object.getOwnPropertyDescriptors({text:"",enableThreeStateBehavior:!1,activeStateEnabled:!0,hoverStateEnabled:!0,get focusStateEnabled(){return"desktop"===w.Z.real().deviceType&&!w.Z.isSimulator()},defaultValue:!1,valueChange:()=>{}}))),Qv={get text(){return Jv.text},get enableThreeStateBehavior(){return Jv.enableThreeStateBehavior},get activeStateEnabled(){return Jv.activeStateEnabled},get hoverStateEnabled(){return Jv.hoverStateEnabled},get focusStateEnabled(){return Jv.focusStateEnabled},get defaultValue(){return Jv.defaultValue},get valueChange(){return Jv.valueChange},get readOnly(){return Jv.readOnly},get name(){return Jv.name},get validationError(){return Jv.validationError},get validationErrors(){return Jv.validationErrors},get validationMessageMode(){return Jv.validationMessageMode},get validationMessagePosition(){return Jv.validationMessagePosition},get validationStatus(){return Jv.validationStatus},get isValid(){return Jv.isValid},get className(){return Jv.className},get disabled(){return Jv.disabled},get tabIndex(){return Jv.tabIndex},get visible(){return Jv.visible},get aria(){return Jl.aria}};class ey extends La{constructor(e){super(e),this.editorRef=kr(),this.state={value:void 0!==this.props.value?this.props.value:this.props.defaultValue},this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.onWidgetClick=this.onWidgetClick.bind(this),this.keyDown=this.keyDown.bind(this)}createEffects(){return[Wa()]}onWidgetClick(e){var t,i,{enableThreeStateBehavior:n,readOnly:o,saveValueChangeEvent:r}=this.props;o||(null===r||void 0===r||r(e),n?(this.setState((e=>(t=null===(void 0!==this.props.value?this.props.value:e.value)||!(void 0!==this.props.value?this.props.value:e.value)&&null,{value:t}))),this.props.valueChange(t)):(this.setState((e=>{var t;return i=!(null!==(t=void 0!==this.props.value?this.props.value:e.value)&&void 0!==t&&t),{value:i}})),this.props.valueChange(i)))}keyDown(e){var{onKeyDown:t}=this.props,{keyName:i,originalEvent:n,which:o}=e,r=null===t||void 0===t?void 0:t(e);if(null!==r&&void 0!==r&&r.cancel)return r;"space"!==i&&"space"!==o||(n.preventDefault(),this.onWidgetClick(n))}get cssClasses(){return Yv((0,hn.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}))}get aria(){var e=!0===(void 0!==this.props.value?this.props.value:this.state.value),t=null===(void 0!==this.props.value?this.props.value:this.state.value),i={role:"checkbox",checked:t?"mixed":"".concat(e)};return(0,hn.Z)({},i,this.props.aria)}get restAttributes(){var e=(0,hn.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),t=(0,Vs.Z)(e,qv);return t}focus(){this.editorRef.current.focus()}blur(){this.editorRef.current.blur()}render(){var e=this.props;return Xv({props:(0,hn.Z)({},e,{value:void 0!==this.props.value?this.props.value:this.state.value}),editorRef:this.editorRef,onWidgetClick:this.onWidgetClick,keyDown:this.keyDown,cssClasses:this.cssClasses,aria:this.aria,restAttributes:this.restAttributes})}}function ty(e){var t=["value"];return Object.keys(e).reduce(((i,n)=>{var o=e[n],r=t.some((e=>e===n))?"default"+n.charAt(0).toUpperCase()+n.slice(1):n;return i[r]=o,i}),{})}ey.defaultProps=Qv;var iy=[];function ny(e){iy.push(e),ey.defaultProps=Object.create(Object.prototype,(0,hn.Z)(Object.getOwnPropertyDescriptors(ey.defaultProps),Object.getOwnPropertyDescriptors(ty((0,Fs.wt)(iy)))))}class oy extends hv{getProps(){var e=super.getProps();return e.onKeyDown=this._wrapKeyDownHandler(e.onKeyDown),e}focus(){var e;return null===(e=this.viewRef)||void 0===e?void 0:e.focus(...arguments)}blur(){var e;return null===(e=this.viewRef)||void 0===e?void 0:e.blur(...arguments)}_getActionConfigs(){return{onFocusIn:{},onClick:{}}}get _propsInfo(){return{twoWay:[["value","defaultValue","valueChange"]],allowNull:["defaultValue","validationError","validationErrors","value"],elements:[],templates:[],props:["text","iconSize","enableThreeStateBehavior","activeStateEnabled","hoverStateEnabled","focusStateEnabled","saveValueChangeEvent","defaultValue","valueChange","readOnly","name","validationError","validationErrors","validationMessageMode","validationMessagePosition","validationStatus","isValid","onFocusIn","className","accessKey","disabled","height","hint","onClick","onKeyDown","rtlEnabled","tabIndex","visible","width","aria","value"]}}get _viewComponent(){return ey}}(0,C.Z)("dxCheckBox",oy),oy.defaultOptions=ny;var ry=oy,ay=i(54101),sy=e=>e.getMonth()+1,ly=(e,t)=>{var i=e.getDate(),n=py("M",e),o=(0,ln.n$)(parseInt(t),n.min,n.max);e.setMonth(o-1,1);var{min:r,max:a}=py("dM",e),s=(0,ln.n$)(i,r,a);e.setDate(s)},dy={a:e=>e.getHours()<12?0:1,E:"getDay",y:"getFullYear",M:sy,L:sy,d:"getDate",H:"getHours",h:"getHours",m:"getMinutes",s:"getSeconds",S:"getMilliseconds"},uy=(0,a.l)({},(0,ay.xe)(),{a:(e,t)=>{var i=e.getHours(),n=i>=12;n!==!!parseInt(t)&&e.setHours((i+12)%24)},d:(e,t)=>{var i=py("dM",e).max;t>i&&e.setMonth(e.getMonth()+1),e.setDate(t)},h:(e,t)=>{var i=e.getHours()>=12;e.setHours(+t%12+(i?12:0))},M:ly,L:ly,E:(e,t)=>{t<0||e.setDate(e.getDate()-e.getDay()+parseInt(t))},y:(e,t)=>{var i=e.getFullYear(),n=String(t).length,o=String(py("y",e).max).length,r=parseInt(String(i).substr(0,o-n)+t);e.setFullYear(r)}}),cy=e=>dy[e]||(()=>e),hy=(e,t)=>{for(var i=t.regexp.exec(e),n=0,o=0,r=[],a=function(e){n=o,o=n+i[e].length;var a=t.patterns[e-1].replace(/^'|'$/g,""),s=cy(a[0]);r.push({index:e-1,isStub:a===i[e],caret:{start:n,end:o},pattern:a,text:i[e],limits:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return py(a[0],...t)},setter:uy[a[0]]||v.ZT,getter:s})},s=1;s<i.length;s++)a(s);return r},py=(e,t,i)=>{var n={y:{min:0,max:9999},M:{min:1,max:12},L:{min:1,max:12},d:{min:1,max:31},dM:{min:1,max:new Date(t.getFullYear(),t.getMonth()+1,0).getDate()},E:{min:0,max:6},H:{min:0,max:23},h:{min:0,max:23},m:{min:0,max:59},s:{min:0,max:59},S:{min:0,max:999},a:{min:0,max:1}};return n[i||e]||n.getAmPm},fy=(e,t)=>{for(var i=0;i<e.length;i++){var n=e[i].caret.end>=t;if(!e[i].isStub&&n)return i}return null},gy=i(66713),my=i(69992),_y=i(14435),vy=i(22561),yy=["year","day","month","day"],Cy=["hours","minutes","seconds","milliseconds"],by=6e4,xy=60*by*24,wy=365*xy,Ty=function(e){var t=typeof e;return"string"===t?"format":"object"===t&&void 0!==e.type?e.type:null},Sy={SUPPORTED_FORMATS:["date","time","datetime"],ONE_MINUTE:by,ONE_DAY:xy,ONE_YEAR:wy,MIN_DATEVIEW_DEFAULT_DATE:new Date(1900,0,1),MAX_DATEVIEW_DEFAULT_DATE:function(){var e=new Date;return new Date(e.getFullYear()+50,e.getMonth(),e.getDate(),23,59,59)}(),FORMATS_INFO:{date:{getStandardPattern:function(){return"yyyy-MM-dd"},components:yy},time:{getStandardPattern:function(){return"HH:mm"},components:Cy},datetime:{getStandardPattern:function(){var e;return function(){var t=(0,o.Z)("<input>").attr("type","datetime");t.val("2000-01-01T01:01Z"),t.val()&&(e="yyyy-MM-ddTHH:mmZ")}(),e||(e="yyyy-MM-ddTHH:mm:ssZ"),Sy.FORMATS_INFO.datetime.getStandardPattern=function(){return e},e},components:[...yy,...Cy]},"datetime-local":{getStandardPattern:function(){return"yyyy-MM-ddTHH:mm:ss"},components:[...yy,"hours","minutes","seconds"]}},FORMATS_MAP:{date:"shortdate",time:"shorttime",datetime:"shortdateshorttime"},SUBMIT_FORMATS_MAP:{date:"date",time:"time",datetime:"datetime-local"},toStandardDateFormat:function(e,t){var i=Sy.FORMATS_INFO[t].getStandardPattern();return vy.Z.serializeDate(e,i)},fromStandardDateFormat:function(e){var t=vy.Z.dateParser(e);return(0,l.J_)(t)?t:void 0},getMaxMonthDay:function(e,t){return new Date(e,t+1,0).getDate()},mergeDates:function(e,t,i){if(!t)return t||null;if(!e||isNaN(e.getTime())){var n=new Date(null);e=new Date(n.getFullYear(),n.getMonth(),n.getDate())}var o=new Date(e.valueOf()),r=Sy.FORMATS_INFO[i];return(0,E.S6)(r.components,(function(){var e=Sy.DATE_COMPONENTS_INFO[this];o[e.setter](t[e.getter]())})),o},getLongestCaptionIndex:function(e){var t,i=0,n=0;for(t=0;t<e.length;++t)e[t].length>n&&(i=t,n=e[t].length);return i},formatUsesMonthName:function(e){return gy.Z.formatUsesMonthName(e)},formatUsesDayName:function(e){return gy.Z.formatUsesDayName(e)},getLongestDate:function(e,t,i){var n=Ty(e),o=9;n&&!Sy.formatUsesMonthName(n)||(o=Sy.getLongestCaptionIndex(t));var r=new Date(1888,o,21,23,59,59,999);if(!n||Sy.formatUsesDayName(n)){var a=r.getDate()-r.getDay()+Sy.getLongestCaptionIndex(i);r.setDate(a)}return r},normalizeTime:function(e){e.setSeconds(0),e.setMilliseconds(0)}};Sy.DATE_COMPONENTS_INFO={year:{getter:"getFullYear",setter:"setFullYear",formatter:function(e,t){var i=new Date(t.getTime());return i.setFullYear(e),gy.Z.format(i,"yyyy")},startValue:void 0,endValue:void 0},day:{getter:"getDate",setter:"setDate",formatter:function(e,t){var i=new Date(t.getTime());return i.setDate(e),gy.Z.format(i,"d")},startValue:1,endValue:void 0},month:{getter:"getMonth",setter:"setMonth",formatter:function(e){return gy.Z.getMonthNames()[e]},startValue:0,endValue:11},hours:{getter:"getHours",setter:"setHours",formatter:function(e){return gy.Z.format(new Date(0,0,0,e),"hour")},startValue:0,endValue:23},minutes:{getter:"getMinutes",setter:"setMinutes",formatter:function(e){return gy.Z.format(new Date(0,0,0,0,e),"minute")},startValue:0,endValue:59},seconds:{getter:"getSeconds",setter:"setSeconds",formatter:function(e){return gy.Z.format(new Date(0,0,0,0,0,e),"second")},startValue:0,endValue:59},milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",formatter:function(e){return gy.Z.format(new Date(0,0,0,0,0,0,e),"millisecond")},startValue:0,endValue:999}};var Iy=Sy,Ey="dx-dropdowneditor-button",Dy="dx-dropdowneditor-button-visible",ky="dxDropDownEditor-selectLabel";class Oy extends Gg{constructor(e,t,i){super(e,t,i),this.currentTemplate=null}_attachEvents(e){var{editor:t}=this;e.option("onClick",(e=>{!t.option("openOnFieldClick")&&t._openHandler(e)})),re.Z.on(e.$element(),"mousedown",(e=>{t.$element().is(".dx-state-focused")&&e.preventDefault()}))}_create(){var{editor:e}=this,t=(0,o.Z)("<div>"),i=this._getOptions();this._addToContainer(t);var n=e._createComponent(t,cd,(0,a.l)({},i,{elementAttr:{"aria-label":y.Z.format(ky)}}));return this._legacyRender(e.$element(),t,i.visible),{$element:t,instance:n}}_getOptions(){var{editor:e}=this,t=this._isVisible(),i=e.option("readOnly"),n={focusStateEnabled:!1,hoverStateEnabled:!1,activeStateEnabled:!1,useInkRipple:!1,disabled:i,visible:t};return this._addTemplate(n),n}_isVisible(){var{editor:e}=this;return super._isVisible()&&e.option("showDropDownButton")}_legacyRender(e,t,i){e.toggleClass(Dy,i),t&&t.removeClass("dx-button").addClass(Ey)}_isSameTemplate(){return this.editor.option("dropDownButtonTemplate")===this.currentTemplate}_addTemplate(e){this._isSameTemplate()||(e.template=this.editor._getTemplateByOption("dropDownButtonTemplate"),this.currentTemplate=this.editor.option("dropDownButtonTemplate"))}update(){var e=super.update();if(e){var{editor:t,instance:i}=this,n=t.$element(),o=this._getOptions();null===i||void 0===i||i.option(o),this._legacyRender(n,null===i||void 0===i?void 0:i.$element(),o.visible)}}}var Ay=i(50191),Py=function(e){if((0,s.Ym)())return(0,n.Y_)(e)},My=function(e){return null===e&&(e=void 0),"function"===typeof e&&(e=e()),e},Ry="dx-dropdowneditor",By="dx-dropdowneditor-input-wrapper",Vy="dx-dropdowneditor-icon",Fy="dx-dropdowneditor-overlay",Hy="dx-dropdowneditor-overlay-flipped",Ly="dx-dropdowneditor-active",Ny="dx-dropdowneditor-field-clickable",Zy="dx-dropdowneditor-field-template-wrapper",$y="ios"===w.Z.current().platform,Wy=f_.inherit({_supportedKeys:function(){return(0,a.l)({},this.callBase(),{tab:function(e){if(this.option("opened"))if("instantly"!==this.option("applyValueMode")){var t=e.shiftKey?this._getLastPopupElement():this._getFirstPopupElement();t&&re.Z.trigger(t,"focus"),e.preventDefault()}else this.close()},escape:function(e){return this.option("opened")&&e.preventDefault(),this.close(),!0},upArrow:function(e){return!(!(0,R.j1)(e)&&(e.preventDefault(),e.stopPropagation(),e.altKey))||(this.close(),!1)},downArrow:function(e){return!(!(0,R.j1)(e)&&(e.preventDefault(),e.stopPropagation(),e.altKey))||(this._validatedOpening(),!1)},enter:function(e){return this.option("opened")&&(e.preventDefault(),this._valueChangeEventHandler(e)),!0}})},_getDefaultButtons:function(){return this.callBase().concat([{name:"dropDown",Ctor:Oy}])},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{value:null,onOpened:null,onClosed:null,opened:!1,acceptCustomValue:!0,applyValueMode:"instantly",deferRendering:!0,activeStateEnabled:!0,dropDownButtonTemplate:"dropDownButton",fieldTemplate:null,openOnFieldClick:!1,showDropDownButton:!0,buttons:void 0,dropDownOptions:{showTitle:!1},popupPosition:this._getDefaultPopupPosition(),onPopupInitialized:null,applyButtonText:y.Z.format("OK"),cancelButtonText:y.Z.format("Cancel"),buttonsLocation:"default",useHiddenSubmitElement:!1,validationMessagePosition:"auto"})},_useTemplates:function(){return!0},_getDefaultPopupPosition:function(e){var t=Ae(e);return{offset:{h:0,v:-1},my:t+" top",at:t+" bottom",collision:"flip flip"}},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){var t="generic"===e.platform;return t},options:{popupPosition:{offset:{v:0}}}}])},_inputWrapper:function(){return this.$element().find("."+By).first()},_init:function(){this.callBase(),this._initVisibilityActions(),this._initPopupInitializedAction(),this._updatePopupPosition(this.option("rtlEnabled")),this._options.cache("dropDownOptions",this.option("dropDownOptions"))},_updatePopupPosition:function(e){var{my:t,at:i}=this._getDefaultPopupPosition(e),n=this.option("popupPosition");this.option("popupPosition",(0,a.l)({},n,{my:t,at:i}))},_initVisibilityActions:function(){this._openAction=this._createActionByOption("onOpened",{excludeValidators:["disabled","readOnly"]}),this._closeAction=this._createActionByOption("onClosed",{excludeValidators:["disabled","readOnly"]})},_initPopupInitializedAction:function(){this._popupInitializedAction=this._createActionByOption("onPopupInitialized",{excludeValidators:["disabled","readOnly"]})},_initMarkup:function(){this._renderSubmitElement(),this.callBase(),this.$element().addClass(Ry),this.setAria("role","combobox")},_render:function(){this.callBase(),this._renderOpenHandler(),this._attachFocusOutHandler(),this._renderOpenedState()},_renderContentImpl:function(){this.option("deferRendering")||this._createPopup()},_renderInput:function(){this.callBase(),this._wrapInput(),this._setDefaultAria()},_wrapInput:function(){this._$container=this.$element().wrapInner((0,o.Z)("<div>").addClass(By)).children().eq(0)},_setDefaultAria:function(){this.setAria({haspopup:"true",autocomplete:"list"})},_readOnlyPropValue:function(){return!this._isEditable()||this.callBase()},_cleanFocusState:function(){this.callBase(),this.option("fieldTemplate")&&this._detachFocusEvents()},_getFieldTemplate:function(){return this.option("fieldTemplate")&&this._getTemplateByOption("fieldTemplate")},_renderMask:function(){this.option("fieldTemplate")||this.callBase()},_renderField:function(){var e=this._getFieldTemplate();e&&this._renderTemplatedField(e,this._fieldRenderData())},_renderPlaceholder:function(){var e=!!this._getFieldTemplate();e||this.callBase()},_renderValue:function(){this.option("useHiddenSubmitElement")&&this._setSubmitValue();var e=this.callBase();e.always(this._renderField.bind(this))},_renderTemplatedField:function(e,t){var i;this._fieldRenderQueueLength=(null!==(i=this._fieldRenderQueueLength)&&void 0!==i?i:0)+1;var n=(0,D.si)(this._input()),r=this._$container;this._detachKeyboardEvents(),this._refreshButtonsContainer(),this._detachWrapperContent(),this._detachFocusEvents(),r.empty();var a=(0,o.Z)("<div>").addClass(Zy).appendTo(r);e.render({model:t,container:(0,se.u)(a),onRendered:()=>{if(this._fieldRenderQueueLength--,0===this._fieldRenderQueueLength){var e=this._input();if(!e.length)throw Xt.Z.Error("E1010");this._integrateInput(),n&&re.Z.trigger(e,"focus")}}}),this._attachWrapperContent(r)},_detachWrapperContent(){var e,t,i,n=this.option("useHiddenSubmitElement");n&&(null===(e=this._$submitElement)||void 0===e||e.detach());var o=null===(t=this._$beforeButtonsContainer)||void 0===t?void 0:t[0].parentNode,r=null===(i=this._$afterButtonsContainer)||void 0===i?void 0:i[0].parentNode;null===o||void 0===o||o.removeChild(this._$beforeButtonsContainer[0]),null===r||void 0===r||r.removeChild(this._$afterButtonsContainer[0])},_attachWrapperContent(e){var t,i=this.option("useHiddenSubmitElement");e.prepend(this._$beforeButtonsContainer),i&&(null===(t=this._$submitElement)||void 0===t||t.appendTo(e)),e.append(this._$afterButtonsContainer)},_refreshButtonsContainer(){this._$buttonsContainer=this.$element().children().eq(0)},_integrateInput:function(){this._renderFocusState(),this._refreshValueChangeEvent(),this._refreshEvents(),this._refreshEmptinessEvent()},_refreshEmptinessEvent:function(){re.Z.off(this._input(),"input blur",this._toggleEmptinessEventHandler),this._renderEmptinessEvent()},_fieldRenderData:function(){return this.option("value")},_initTemplates:function(){this._templateManager.addDefaultTemplates({dropDownButton:new Ay.k((function(e){var t=(0,o.Z)("<div>").addClass(Vy);(0,o.Z)(e.container).append(t)}))}),this.callBase()},_renderOpenHandler:function(){var e=this._inputWrapper(),t=(0,R.V4)(A.u,this.NAME),i=this.option("openOnFieldClick");re.Z.off(e,t),re.Z.on(e,t,this._getInputClickHandler(i)),this.$element().toggleClass(Ny,i),i&&(this._openOnFieldClickAction=this._createAction(this._openHandler.bind(this)))},_attachFocusOutHandler:function(){$y&&(this._detachFocusOutEvents(),re.Z.on(this._inputWrapper(),(0,R.V4)("focusout",this.NAME),(e=>{var t=e.relatedTarget,i=this.content?(0,o.Z)(this.content()).closest("."+Fy):this._$popup;if(t&&this.option("opened")){var n=0===(0,o.Z)(t).closest("."+Fy,i).length;n&&this.close()}})))},_detachFocusOutEvents:function(){$y&&re.Z.off(this._inputWrapper(),(0,R.V4)("focusout",this.NAME))},_getInputClickHandler:function(e){return e?e=>{this._executeOpenAction(e)}:e=>{this._focusInput()}},_openHandler:function(){this._toggleOpenState()},_executeOpenAction:function(e){this._openOnFieldClickAction({event:e})},_keyboardEventBindingTarget:function(){return this._input()},_focusInput:function(){return!this.option("disabled")&&(this.option("focusStateEnabled")&&!(0,D.si)(this._input())&&(this._resetCaretPosition(),re.Z.trigger(this._input(),"focus")),!0)},_resetCaretPosition:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._input().get(0);if(t){var{value:i}=t,n=(0,l.$K)(i)&&(e||this._isEditable())?i.length:0;this._caret({start:n,end:n},!0)}},_isEditable:function(){return this.option("acceptCustomValue")},_toggleOpenState:function(e){this._focusInput()&&(this.option("readOnly")||(e=arguments.length?e:!this.option("opened"),this.option("opened",e)))},_getControlsAria(){return this._popup&&this._popupContentId},_renderOpenedState:function(){var e=this.option("opened");e&&this._createPopup(),this.$element().toggleClass(Ly,e),this._setPopupOption("visible",e);var t={expanded:e,controls:this._getControlsAria()};this.setAria(t),this.setAria("owns",e?this._popupContentId:void 0,this.$element())},_createPopup:function(){this._$popup||(this._$popup=(0,o.Z)("<div>").addClass(Fy).appendTo(this.$element()),this._renderPopup(),this._renderPopupContent())},_renderPopupContent:v.ZT,_renderPopup:function(){var e=(0,a.l)(this._popupConfig(),this._options.cache("dropDownOptions"));this._popup=this._createComponent(this._$popup,Tc,e),this._popup.on({showing:this._popupShowingHandler.bind(this),shown:this._popupShownHandler.bind(this),hiding:this._popupHidingHandler.bind(this),hidden:this._popupHiddenHandler.bind(this),contentReady:this._contentReadyHandler.bind(this)}),this._contentReadyHandler(),this._setPopupContentId(this._popup.$content()),this._bindInnerWidgetOptions(this._popup,"dropDownOptions")},_setPopupContentId(e){this._popupContentId="dx-"+new Li.Z,this.setAria("id",this._popupContentId,e)},_contentReadyHandler:v.ZT,_popupConfig:function(){return{onInitialized:this._popupInitializedHandler(),position:(0,a.l)(this.option("popupPosition"),{of:this.$element()}),showTitle:this.option("dropDownOptions.showTitle"),_ignoreFunctionValueDeprecation:!0,width:()=>Py(this.$element()),height:"auto",shading:!1,hideOnParentScroll:!0,hideOnOutsideClick:e=>this._closeOutsideDropDownHandler(e),animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},deferRendering:!1,focusStateEnabled:!1,showCloseButton:!1,dragEnabled:!1,toolbarItems:this._getPopupToolbarItems(),onPositioned:this._popupPositionedHandler.bind(this),fullScreen:!1,contentTemplate:null,_wrapperClassExternal:Fy}},_popupInitializedHandler:function(){return this.option("onPopupInitialized")?e=>{this._popupInitializedAction({popup:e.component})}:null},_dimensionChanged:function(){var e=My(this.option("dropDownOptions.width"));void 0===e&&this._setPopupOption("width",(()=>Py(this.$element())))},_popupPositionedHandler:function(e){var{labelMode:t,stylingMode:i}=this.option(),n=this._popup.$overlayContent(),o=e.position.v.flip,r="hidden"!==t&&"outlined"===i;if(e.position&&n.toggleClass(Hy,o),o&&r&&this._label.isVisible()){var a=this._label.$element();ve(n,{top:he(n).top-parseInt(a.css("fontSize"))})}},_popupShowingHandler:v.ZT,_popupHidingHandler:function(){this.option("opened",!1)},_popupShownHandler:function(){var e;this._openAction(),null===(e=this._validationMessage)||void 0===e||e.option("positionSide",this._getValidationMessagePositionSide())},_popupHiddenHandler:function(){var e;this._closeAction(),null===(e=this._validationMessage)||void 0===e||e.option("positionSide",this._getValidationMessagePositionSide())},_getValidationMessagePositionSide:function(){var e=this.option("validationMessagePosition");if("auto"!==e)return e;var t="bottom";if(this._popup&&this._popup.option("visible")){var{top:i}=it.setup(this.$element()),{top:n}=it.setup(this._popup.$content());t=i+this.option("popupPosition").offset.v>n?"bottom":"top"}return t},_closeOutsideDropDownHandler:function(e){var{target:t}=e,i=(0,o.Z)(t),n=this.getButton("dropDown"),r=n&&n.$element(),a=!!i.closest(this.$element()).length,s=!!i.closest(r).length,l=!a&&!s;return l},_clean:function(){delete this._openOnFieldClickAction,this._$popup&&(this._$popup.remove(),delete this._$popup,delete this._popup),this.callBase()},_setPopupOption:function(e,t){this._setWidgetOption("_popup",arguments)},_validatedOpening:function(){this.option("readOnly")||this._toggleOpenState(!0)},_getPopupToolbarItems:function(){return"useButtons"===this.option("applyValueMode")?this._popupToolbarItemsConfig():[]},_getFirstPopupElement:function(){return this._popup.$wrapper().find(".dx-popup-done.dx-button")},_getLastPopupElement:function(){return this._popup.$wrapper().find(".dx-popup-cancel.dx-button")},_popupElementTabHandler:function(e){var t=(0,o.Z)(e.currentTarget);(e.shiftKey&&t.is(this._getFirstPopupElement())||!e.shiftKey&&t.is(this._getLastPopupElement()))&&(re.Z.trigger(this._input(),"focus"),e.preventDefault())},_popupElementEscHandler:function(){re.Z.trigger(this._input(),"focus"),this.close()},_popupButtonInitializedHandler:function(e){e.component.registerKeyHandler("tab",this._popupElementTabHandler.bind(this)),e.component.registerKeyHandler("escape",this._popupElementEscHandler.bind(this))},_popupToolbarItemsConfig:function(){var e=[{shortcut:"done",options:{onClick:this._applyButtonHandler.bind(this),text:this.option("applyButtonText"),onInitialized:this._popupButtonInitializedHandler.bind(this)}},{shortcut:"cancel",options:{onClick:this._cancelButtonHandler.bind(this),text:this.option("cancelButtonText"),onInitialized:this._popupButtonInitializedHandler.bind(this)}}];return this._applyButtonsLocation(e)},_applyButtonsLocation:function(e){var t=this.option("buttonsLocation"),i=e;if("default"!==t){var n=(0,v.Um)(t);(0,E.S6)(i,(function(e,t){(0,a.l)(t,{toolbar:n[0],location:n[1]})}))}return i},_applyButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_cancelButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_popupOptionChanged:function(e){var t=G.getOptionsFromContainer(e);this._setPopupOption(t);var i=Object.keys(t);-1===i.indexOf("width")&&-1===i.indexOf("height")||this._dimensionChanged()},_renderSubmitElement:function(){this.option("useHiddenSubmitElement")&&(this._$submitElement=(0,o.Z)("<input>").attr("type","hidden").appendTo(this.$element()))},_setSubmitValue:function(){this._getSubmitElement().val(this.option("value"))},_getSubmitElement:function(){return this.option("useHiddenSubmitElement")?this._$submitElement:this.callBase()},_dispose:function(){this._detachFocusOutEvents(),this.callBase()},_optionChanged:function(e){var t;switch(e.name){case"width":case"height":this.callBase(e),null===(t=this._popup)||void 0===t||t.repaint();break;case"opened":this._renderOpenedState();break;case"onOpened":case"onClosed":this._initVisibilityActions();break;case"onPopupInitialized":this._initPopupInitializedAction();break;case"fieldTemplate":(0,l.$K)(e.value)?this._renderField():this._invalidate();break;case"acceptCustomValue":case"openOnFieldClick":this._invalidate();break;case"dropDownButtonTemplate":case"showDropDownButton":this._updateButtons(["dropDown"]);break;case"dropDownOptions":this._popupOptionChanged(e),this._options.cache("dropDownOptions",this.option("dropDownOptions"));break;case"popupPosition":break;case"deferRendering":(0,s.Ym)()&&this._createPopup();break;case"applyValueMode":case"applyButtonText":case"cancelButtonText":case"buttonsLocation":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"useHiddenSubmitElement":this._$submitElement&&(this._$submitElement.remove(),this._$submitElement=void 0),this._renderSubmitElement();break;case"rtlEnabled":this._updatePopupPosition(e.value),this.callBase(e);break;default:this.callBase(e)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)},field:function(){return(0,se.u)(this._input())},content:function(){return this._popup?this._popup.content():null}});(0,C.Z)("dxDropDownEditor",Wy);var Ky=Wy,zy="dx-calendar-navigator",jy="dx-calendar-navigator-previous-month",Uy="dx-calendar-navigator-next-month",Gy="dx-calendar-navigator-previous-view",qy="dx-calendar-navigator-next-view",Yy="dx-calendar-disabled-navigator-link",Xy="dx-calendar-caption-button",Jy=G.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{onClick:null,onCaptionClick:null,text:""})},_init:function(){this.callBase(),this._initActions()},_initActions:function(){this._clickAction=this._createActionByOption("onClick"),this._captionClickAction=this._createActionByOption("onCaptionClick")},_initMarkup:function(){this.callBase(),this.$element().addClass(zy),this._renderButtons(),this._renderCaption()},_renderButtons:function(){var e=this,t=this.option("rtlEnabled")?-1:1;this._prevButton=this._createComponent((0,o.Z)("<a>"),cd,{focusStateEnabled:!1,icon:"chevronleft",onClick:function(i){e._clickAction({direction:-t,event:i})},integrationOptions:{}});var i=this._prevButton.$element().addClass(Gy).addClass(jy);this._nextButton=this._createComponent((0,o.Z)("<a>"),cd,{focusStateEnabled:!1,icon:"chevronright",onClick:function(i){e._clickAction({direction:t,event:i})},integrationOptions:{}});var n=this._nextButton.$element().addClass(qy).addClass(Uy);this._caption=this._createComponent((0,o.Z)("<a>").addClass(Xy),cd,{focusStateEnabled:!1,onClick:function(t){e._captionClickAction({event:t})},integrationOptions:{}});var r=this._caption.$element();this.$element().append(i,r,n)},_renderCaption:function(){this._caption.option("text",this.option("text"))},toggleButton:function(e,t){var i="_"+e+"Button",n=this[i];n&&(n.option("disabled",t),n.$element().toggleClass(Yy,t))},_optionChanged:function(e){switch(e.name){case"text":this._renderCaption();break;default:this.callBase(e)}}}),Qy=Jy,{abstract:eC}=G,tC="dx-calendar-other-view",iC="dx-calendar-cell",nC="dx-calendar-week-number-cell",oC="dx-calendar-empty-cell",rC="dx-calendar-today",aC="dx-calendar-selected-date",sC="dx-calendar-contoured-date",lC=(0,R.V4)(A.u,"dxCalendar"),dC="dxDateValueKey",uC=G.inherit({_getViewName:function(){return"base"},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{date:new Date,focusStateEnabled:!1,cellTemplate:null,disabledDates:null,onCellClick:null,rowCount:3,colCount:4,allowValueSelection:!0,_todayDate:()=>new Date})},_initMarkup:function(){this.callBase(),this._renderImpl()},_renderImpl:function(){this.$element().append(this._createTable()),this._createDisabledDatesHandler(),this._renderBody(),this._renderContouredDate(),this._renderValue(),this._renderEvents()},_createTable:function(){return this._$table=(0,o.Z)("<table>"),this.setAria({label:y.Z.format("dxCalendar-ariaWidgetName"),role:"grid"},this._$table),this._$table},_renderBody:function(){this.$body=(0,o.Z)("<tbody>").appendTo(this._$table);for(var e={cellDate:this._getFirstCellData(),prevCellDate:null},t=0,i=this.option("rowCount");t<i;t++){e.row=this._createRow();for(var n=0,r=this.option("colCount");n<r;n++)this._renderCell(e,n);this._renderWeekNumberCell(e)}},_createRow:function(){var e=ke["default"].createElement("tr");return this.setAria("role","row",(0,o.Z)(e)),this.$body.get(0).appendChild(e),e},_appendCell:function(e,t){this._appendMethodName||this._cacheAppendMethodName(),(0,o.Z)(e)[this._appendMethodName](t)},_cacheAppendMethodName:function(e){this._appendMethodName=(null!==e&&void 0!==e?e:this.option("rtlEnabled"))?"prepend":"append"},_createCell:function(e){var t=ke["default"].createElement("td"),i=(0,o.Z)(t);return t.className=this._getClassNameByDate(e),t.setAttribute("data-value",vy.Z.serializeDate(e,_y.Z.getShortDateFormat())),(0,le.aT)(t,dC,e),this.setAria({role:"gridcell",label:this.getCellAriaLabel(e)},i),{cell:t,$cell:i}},_renderCell:function(e,t){var{cellDate:i,prevCellDate:n,row:o}=e;n&&_y.Z.fixTimezoneGap(n,i),e.prevCellDate=i;var{cell:r,$cell:a}=this._createCell(i),s=this.option("cellTemplate");this._appendCell(o,r),s?s.render(this._prepareCellTemplateData(i,t,a)):r.innerHTML=this._getCellText(i),e.cellDate=this._getNextCellData(i)},_getClassNameByDate:function(e){var t=iC;return this._isTodayCell(e)&&(t+=" ".concat(rC)),(this._isDateOutOfRange(e)||this.isDateDisabled(e))&&(t+=" ".concat(oC)),this._isOtherView(e)&&(t+=" ".concat(tC)),t},_prepareCellTemplateData:function(e,t,i){var n=e instanceof Date,o=n?this._getCellText(e):e,r=n?e:void 0,a=this._getViewName();return{model:{text:o,date:r,view:a},container:(0,se.u)(i),index:t}},_renderEvents:function(){this._createCellClickAction(),re.Z.off(this._$table,lC),re.Z.on(this._$table,lC,"td:not(.".concat(nC,")"),(e=>{(0,o.Z)(e.currentTarget).hasClass(oC)||this._cellClickAction({event:e,value:(0,o.Z)(e.currentTarget).data(dC)})}))},_createCellClickAction:function(){this._cellClickAction=this._createActionByOption("onCellClick")},_createDisabledDatesHandler:function(){var e=this.option("disabledDates");this._disabledDatesHandler=Array.isArray(e)?this._getDefaultDisabledDatesHandler(e):e||v.ZT},_getDefaultDisabledDatesHandler:function(e){return v.ZT},_isTodayCell:eC,_isDateOutOfRange:eC,isDateDisabled:function(e){var t={date:e,view:this._getViewName()};return this._disabledDatesHandler(t)},_isOtherView:eC,_getCellText:eC,_getFirstCellData:eC,_getNextCellData:eC,_renderContouredDate:function(e){if(this.option("focusStateEnabled")){e=e||this.option("contouredDate");var t=this._getContouredCell(),i=this._getCellByDate(e);t.removeClass(sC),i.addClass(sC)}},_getContouredCell:function(){return this._$table.find(".".concat(sC))},_changeValue:function(e){if(e){var t=this.option("value"),i=t?new Date(t):new Date;i.setDate(e.getDate()),i.setMonth(e.getMonth()),i.setFullYear(e.getFullYear()),i.setDate(e.getDate()),this.option("value",i)}else this.option("value",null)},_renderValue:function(){if(this.option("allowValueSelection")){var e=this.option("value"),t=this._getCellByDate(e);this._selectedCell&&this._selectedCell.removeClass(aC),t.addClass(aC),this._selectedCell=t}},getCellAriaLabel:function(e){return this._getCellText(e)},_getFirstAvailableDate:function(){var e=this.option("date"),t=this.option("min");return e=_y.Z.getFirstDateView(this._getViewName(),e),new Date(t&&e<t?t:e)},_getCellByDate:eC,isBoundary:eC,_optionChanged:function(e){var{name:t,value:i}=e;switch(t){case"value":this._renderValue();break;case"contouredDate":this._renderContouredDate(i);break;case"onCellClick":this._createCellClickAction();break;case"disabledDates":case"cellTemplate":this._invalidate();break;case"rtlEnabled":this._cacheAppendMethodName(i),this.callBase(e);break;case"_todayDate":this._renderBody();break;default:this.callBase(e)}}}),cC=uC,hC="dx-calendar-other-month",pC="dx-calendar-other-view",fC="dx-calendar-week-number-cell",gC={month:cC.inherit({_getViewName:function(){return"month"},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{firstDayOfWeek:0,rowCount:6,colCount:7})},_renderImpl:function(){this.callBase(),this._renderHeader()},_renderBody:function(){this.callBase(),this._$table.find(".".concat(pC)).addClass(hC)},_renderFocusTarget:v.ZT,getCellAriaLabel:function(e){return gy.Z.format(e,"longdate")},_renderHeader:function(){var e=(0,o.Z)("<tr>"),t=(0,o.Z)("<thead>").append(e);this._$table.prepend(t);for(var i=0,n=this.option("colCount");i<n;i++)this._renderHeaderCell(i,e);this.option("showWeekNumbers")&&this._renderWeekHeaderCell(e)},_renderHeaderCell:function(e,t){var{firstDayOfWeek:i}=this.option(),{full:n,abbreviated:r}=this._getDayCaption(i+e),a=(0,o.Z)("<th>").attr({scope:"col",abbr:n}).text(r);this._appendCell(t,a)},_renderWeekHeaderCell:function(e){var t=(0,o.Z)("<th>").attr({scope:"col",abbr:"WeekNumber",class:"dx-week-number-header"}).text("#"),i=this.option("rtlEnabled");i?e.append(t):e.prepend(t)},_renderWeekNumberCell:function(e){var{showWeekNumbers:t,rtlEnabled:i,cellTemplate:n}=this.option();if(t){var r=this._getWeekNumber(e.prevCellDate),a=ke["default"].createElement("td"),s=(0,o.Z)(a);a.className=fC,n?n.render(this._prepareCellTemplateData(r,-1,s)):a.innerHTML=r,i?e.row.append(a):e.row.prepend(a),this.setAria({role:"gridcell",label:"Week ".concat(r)},s)}},_getWeekNumber:function(e){var{weekNumberRule:t,firstDayOfWeek:i}=this.option();return"auto"===t?_y.Z.getWeekNumber(e,i,1===i?"firstFourDays":"firstDay"):_y.Z.getWeekNumber(e,i,t)},getNavigatorCaption:function(){return gy.Z.format(this.option("date"),"monthandyear")},_isTodayCell:function(e){var t=this.option("_todayDate")();return _y.Z.sameDate(e,t)},_isDateOutOfRange:function(e){var t=this.option("min"),i=this.option("max");return!_y.Z.dateInRange(e,t,i,"date")},_isOtherView:function(e){return e.getMonth()!==this.option("date").getMonth()},_getCellText:function(e){return gy.Z.format(e,"d")},_getDayCaption:function(e){var t=this.option("colCount"),i=e%t;return{full:gy.Z.getDayNames()[i],abbreviated:gy.Z.getDayNames("abbreviated")[i]}},_getFirstCellData:function(){var{firstDayOfWeek:e}=this.option(),t=_y.Z.getFirstMonthDate(this.option("date")),i=e-t.getDay(),n=this.option("colCount");return i>=0&&(i-=n),t.setDate(t.getDate()+i),t},_getNextCellData:function(e){return e=new Date(e),e.setDate(e.getDate()+1),e},_getCellByDate:function(e){return this._$table.find("td[data-value='".concat(vy.Z.serializeDate(e,_y.Z.getShortDateFormat()),"']"))},isBoundary:function(e){return _y.Z.sameMonthAndYear(e,this.option("min"))||_y.Z.sameMonthAndYear(e,this.option("max"))},_getDefaultDisabledDatesHandler:function(e){return function(t){var i=e.some((function(e){return _y.Z.sameDate(e,t.date)}));if(i)return!0}}}),year:cC.inherit({_getViewName:function(){return"year"},_isTodayCell:function(e){var t=this.option("_todayDate")();return _y.Z.sameMonthAndYear(e,t)},_isDateOutOfRange:function(e){return!_y.Z.dateInRange(e,_y.Z.getFirstMonthDate(this.option("min")),_y.Z.getLastMonthDate(this.option("max")))},_isOtherView:function(){return!1},_getCellText:function(e){return gy.Z.getMonthNames("abbreviated")[e.getMonth()]},_getFirstCellData:function(){var e=this.option("date"),t=new Date(e);return t.setDate(1),t.setMonth(0),t},_getNextCellData:function(e){return e=new Date(e),e.setMonth(e.getMonth()+1),e},_getCellByDate:function(e){var t=new Date(e);return t.setDate(1),this._$table.find("td[data-value='".concat(vy.Z.serializeDate(t,_y.Z.getShortDateFormat()),"']"))},getCellAriaLabel:function(e){return gy.Z.format(e,"monthandyear")},getNavigatorCaption:function(){return gy.Z.format(this.option("date"),"yyyy")},isBoundary:function(e){return _y.Z.sameYear(e,this.option("min"))||_y.Z.sameYear(e,this.option("max"))},_renderWeekNumberCell:v.ZT}),decade:cC.inherit({_getViewName:function(){return"decade"},_isTodayCell:function(e){var t=this.option("_todayDate")();return _y.Z.sameYear(e,t)},_isDateOutOfRange:function(e){var t=this.option("min"),i=this.option("max");return!_y.Z.dateInRange(e.getFullYear(),t&&t.getFullYear(),i&&i.getFullYear())},_isOtherView:function(e){var t=new Date(e);return t.setMonth(1),!_y.Z.sameDecade(t,this.option("date"))},_getCellText:function(e){return gy.Z.format(e,"yyyy")},_getFirstCellData:function(){var e=_y.Z.getFirstYearInDecade(this.option("date"))-1;return _y.Z.createDateWithFullYear(e,0,1)},_getNextCellData:function(e){return e=new Date(e),e.setFullYear(e.getFullYear()+1),e},getNavigatorCaption:function(){var e=this.option("date"),t=_y.Z.getFirstYearInDecade(e),i=new Date(e),n=new Date(e);return i.setFullYear(t),n.setFullYear(t+9),gy.Z.format(i,"yyyy")+"-"+gy.Z.format(n,"yyyy")},_isValueOnCurrentView:function(e,t){return _y.Z.sameDecade(e,t)},_getCellByDate:function(e){var t=new Date(e);return t.setDate(1),t.setMonth(0),this._$table.find("td[data-value='".concat(vy.Z.serializeDate(t,_y.Z.getShortDateFormat()),"']"))},isBoundary:function(e){return _y.Z.sameDecade(e,this.option("min"))||_y.Z.sameDecade(e,this.option("max"))},_renderWeekNumberCell:v.ZT}),century:cC.inherit({_getViewName:function(){return"century"},_isTodayCell:function(e){var t=this.option("_todayDate")();return _y.Z.sameDecade(e,t)},_isDateOutOfRange:function(e){var t=_y.Z.getFirstYearInDecade(e),i=_y.Z.getFirstYearInDecade(this.option("min")),n=_y.Z.getFirstYearInDecade(this.option("max"));return!_y.Z.dateInRange(t,i,n)},_isOtherView:function(e){var t=new Date(e);return t.setMonth(1),!_y.Z.sameCentury(t,this.option("date"))},_getCellText:function(e){var t=gy.Z.format(e,"yyyy"),i=new Date(e);return i.setFullYear(i.getFullYear()+9),t+" - "+gy.Z.format(i,"yyyy")},_getFirstCellData:function(){var e=_y.Z.getFirstDecadeInCentury(this.option("date"))-10;return _y.Z.createDateWithFullYear(e,0,1)},_getNextCellData:function(e){return e=new Date(e),e.setFullYear(e.getFullYear()+10),e},_getCellByDate:function(e){var t=new Date(e);return t.setDate(1),t.setMonth(0),t.setFullYear(_y.Z.getFirstYearInDecade(t)),this._$table.find("td[data-value='".concat(vy.Z.serializeDate(t,_y.Z.getShortDateFormat()),"']"))},getNavigatorCaption:function(){var e=this.option("date"),t=_y.Z.getFirstDecadeInCentury(e),i=new Date(e),n=new Date(e);return i.setFullYear(t),n.setFullYear(t+99),gy.Z.format(i,"yyyy")+"-"+gy.Z.format(n,"yyyy")},isBoundary:function(e){return _y.Z.sameCentury(e,this.option("min"))||_y.Z.sameCentury(e,this.option("max"))},_renderWeekNumberCell:v.ZT})},mC=gC,_C="dx-calendar",vC="dx-calendar-body",yC="dx-calendar-cell",CC="dx-calendar-footer",bC="dx-calendar-today-button",xC="dx-calendar-with-footer",wC="dx-calendar-views-wrapper",TC="dx-calendar-view",SC="dx-state-focused",IC=250,EC=.6,DC=1,kC="yyyy-MM-dd",OC="dxDateValueKey",AC={month:3,year:2,decade:1,century:0},PC={MONTH:"month",YEAR:"year",DECADE:"decade",CENTURY:"century"};function MC(e){return e.hasClass(SC)}var RC=zc.inherit({_activeStateUnit:"."+yC,_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,currentDate:new Date,value:null,dateSerializationFormat:void 0,min:new Date(1e3,0),max:new Date(3e3,0),firstDayOfWeek:void 0,zoomLevel:PC.MONTH,maxZoomLevel:PC.MONTH,minZoomLevel:PC.CENTURY,showTodayButton:!1,showWeekNumbers:!1,weekNumberRule:"auto",cellTemplate:"cell",disabledDates:null,onCellClick:null,onContouredChanged:null,skipFocusCheck:!1,_todayDate:()=>new Date})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===w.Z.real().deviceType&&!w.Z.isSimulator()},options:{focusStateEnabled:!0}}])},_supportedKeys:function(){return(0,a.l)(this.callBase(),{rightArrow:function(e){e.preventDefault(),(0,R.j1)(e)?this._waitRenderView(1):this._moveCurrentDateByOffset(1*this._getRtlCorrection())},leftArrow:function(e){e.preventDefault(),(0,R.j1)(e)?this._waitRenderView(-1):this._moveCurrentDateByOffset(-1*this._getRtlCorrection())},upArrow:function(e){if(e.preventDefault(),(0,R.j1)(e))this._navigateUp();else{if(Ut.isAnimating(this._view.$element()))return;this._moveCurrentDateByOffset(-1*this._view.option("colCount"))}},downArrow:function(e){if(e.preventDefault(),(0,R.j1)(e))this._navigateDown();else{if(Ut.isAnimating(this._view.$element()))return;this._moveCurrentDateByOffset(1*this._view.option("colCount"))}},home:function(e){e.preventDefault();var t=this.option("zoomLevel"),i=this.option("currentDate"),n=this._dateOption("min");if(!this._view.isDateDisabled(i)){var o=_y.Z.sameView(t,i,n)?n:_y.Z.getViewFirstCellDate(t,i);this._moveToClosestAvailableDate(o)}},end:function(e){e.preventDefault();var t=this.option("zoomLevel"),i=this.option("currentDate"),n=this._dateOption("max");if(!this._view.isDateDisabled(i)){var o=_y.Z.sameView(t,i,n)?n:_y.Z.getViewLastCellDate(t,i);this._moveToClosestAvailableDate(o)}},pageUp:function(e){e.preventDefault(),this._waitRenderView(-1*this._getRtlCorrection())},pageDown:function(e){e.preventDefault(),this._waitRenderView(1*this._getRtlCorrection())},tab:v.ZT,enter:function(e){if(this._isMaxZoomLevel()){if(!this._view.isDateDisabled(this.option("currentDate"))){var t=this._updateTimeComponent(this.option("currentDate"));this._dateValue(t,e)}}else this._navigateDown()}})},_getSerializationFormat:function(e){var t=this.option(e||"value");return this.option("dateSerializationFormat")?this.option("dateSerializationFormat"):(0,l.kE)(t)?"number":(0,l.HD)(t)?vy.Z.getDateSerializationFormat(t):void 0},_convertToDate:function(e,t){return vy.Z.deserializeDate(e)},_dateValue:function(e,t){if(t){if("keydown"===t.type){var i=this._view._getContouredCell().get(0);t.target=i}this._saveValueChangeEvent(t)}this._dateOption("value",e)},_dateOption:function(e,t){if(1===arguments.length)return this._convertToDate(this.option(e),e);var i=this._getSerializationFormat(e);this.option(e,vy.Z.serializeDate(t,i))},_shiftDate:function(e,t,i,n){switch(e){case PC.MONTH:t.setDate(t.getDate()+i*n);break;case PC.YEAR:t.setMonth(t.getMonth()+i*n);break;case PC.DECADE:t.setFullYear(t.getFullYear()+i*n);break;case PC.CENTURY:t.setFullYear(t.getFullYear()+10*i*n)}},_moveCurrentDateByOffset:function(e){var t=this.option("currentDate"),i=new Date(t),n=this.option("zoomLevel");this._shiftDate(n,i,e,1);var o=this._getMaxDate(),r=this._getMinDate(),a=this._areDatesInNeighborView(n,i,t),s=(0,ln.Z2)(i,r,o)&&a,l=new Date(i);while(s){if(!this._view.isDateDisabled(l)){i=l;break}this._shiftDate(n,l,e,1),a=this._areDatesInNeighborView(n,l,t),s=(0,ln.Z2)(l,r,o)&&a}this._view.isDateDisabled(t)||this._view.isDateDisabled(i)?this._waitRenderView(e>0?1:-1):this.option("currentDate",i)},_areDatesInSameView(e,t,i){switch(e){case PC.MONTH:return t.getMonth()===i.getMonth();case PC.YEAR:return t.getYear()===i.getYear();case PC.DECADE:return parseInt(t.getYear()/10)===parseInt(i.getYear()/10);case PC.CENTURY:return parseInt(t.getYear()/100)===parseInt(i.getYear()/100)}},_areDatesInNeighborView(e,t,i){switch(e){case PC.MONTH:return n=t.getMonth(),o=i.getMonth(),r=Math.abs(n-o),Math.min(r,12-r)<=1;case PC.YEAR:return Math.abs(t.getYear()-i.getYear())<=1;case PC.DECADE:return Math.abs(t.getYear()-i.getYear())<=10;case PC.CENTURY:return Math.abs(t.getYear()-i.getYear())<=100}var n,o,r},_moveToClosestAvailableDate:function(){var e,t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.option("currentDate"),n=new Date(i),o=this.option("zoomLevel"),r=!this._isDateNotAvailable(n),a=r,s=r,l=new Date(n),d=new Date(n);do{if(a){n=l;break}if(s){n=d;break}this._shiftDate(o,l,1,1),this._shiftDate(o,d,1,-1),e=this._areDatesInSameView(o,l,i),t=this._areDatesInSameView(o,d,i),a=e&&!this._isDateNotAvailable(l),s=t&&!this._isDateNotAvailable(d)}while(e||t);this.option("currentDate",n)},_isDateNotAvailable:function(e){var t=this._getMaxDate(),i=this._getMinDate();return!(0,ln.Z2)(e,i,t)||this._view.isDateDisabled(e)},_init:function(){this.callBase(),this._correctZoomLevel(),this._initCurrentDate(),this._initActions()},_correctZoomLevel:function(){var e=this.option("minZoomLevel"),t=this.option("maxZoomLevel"),i=this.option("zoomLevel");AC[t]<AC[e]||(AC[i]>AC[t]?this.option("zoomLevel",t):AC[i]<AC[e]&&this.option("zoomLevel",e))},_initCurrentDate:function(){var e=this._getNormalizedDate(this._dateOption("value"))||this._getNormalizedDate(this.option("currentDate"));this.option("currentDate",e)},_getNormalizedDate:function(e){return e=_y.Z.normalizeDate(e,this._getMinDate(),this._getMaxDate()),(0,l.$K)(e)?this._getDate(e):e},_initActions:function(){this._cellClickAction=this._createActionByOption("onCellClick"),this._onContouredChanged=this._createActionByOption("onContouredChanged")},_initTemplates:function(){this._templateManager.addDefaultTemplates({cell:new Ay.k((function(e){var t=e.model;(0,o.Z)(e.container).append((0,o.Z)("<span>").text(t&&t.text||String(t)))}))}),this.callBase()},_updateCurrentDate:function(e){Ut.isAnimating(this._$viewsWrapper)&&Ut.stop(this._$viewsWrapper,!0);var t=this._getMinDate(),i=this._getMaxDate();if(t>i)this.option("currentDate",new Date);else{var n=this._getNormalizedDate(e);if(e.getTime()===n.getTime()){var o=this._getViewsOffset(this._view.option("date"),n);0!==o&&!this._isMaxZoomLevel()&&this._isOtherViewCellClicked&&(o=0),this._view&&0!==o&&!this._suppressNavigation?this._navigate(o,n):(this._renderNavigator(),this._setViewContoured(n),this._updateAriaId(n))}else this.option("currentDate",new Date(n))}},_setViewContoured:function(e){(this.option("skipFocusCheck")||MC(this._focusTarget()))&&this._view.option("contouredDate",e)},_getMinDate:function(){return this.min||(this.min=this._dateOption("min")||new Date(1e3,0)),this.min},_getMaxDate:function(){return this.max||(this.max=this._dateOption("max")||new Date(3e3,0)),this.max},_getViewsOffset:function(e,t){var i,n=this.option("zoomLevel");if(n===PC.MONTH)return this._getMonthsOffset(e,t);switch(n){case PC.CENTURY:i=100;break;case PC.DECADE:i=10;break;default:i=1}return parseInt(t.getFullYear()/i)-parseInt(e.getFullYear()/i)},_getMonthsOffset:function(e,t){var i=t.getFullYear()-e.getFullYear(),n=t.getMonth()-e.getMonth();return 12*i+n},_waitRenderView:function(e){if(!this._alreadyViewRender){this._alreadyViewRender=!0;var t=this._getDateByOffset(e*this._getRtlCorrection());this._moveToClosestAvailableDate(t),this._waitRenderViewTimeout=setTimeout((()=>{this._alreadyViewRender=!1}))}},_getRtlCorrection:function(){return this.option("rtlEnabled")?-1:1},_getDateByOffset:function(e,t){var i;t=this._getDate(null!==(i=t)&&void 0!==i?i:this.option("currentDate"));var n=t.getDate(),o=_y.Z.getDifferenceInMonth(this.option("zoomLevel"))*e;t.setDate(1),t.setMonth(t.getMonth()+o);var r=_y.Z.getLastMonthDate(t).getDate();return t.setDate(n>r?r:n),t},_focusTarget:function(){return this.$element()},_initMarkup:function(){this._renderSubmitElement(),this.callBase();var e=this.$element();e.addClass(_C),this._renderBody(),e.append(this.$body),this._renderViews(),this._renderNavigator(),e.append(this._navigator.$element()),this._renderSwipeable(),this._renderFooter(),this._updateAriaSelected(),this._updateAriaId(),this._moveToClosestAvailableDate()},_render:function(){this.callBase(),this._setViewContoured(this.option("currentDate"))},_renderBody:function(){this._$viewsWrapper||(this.$body=(0,o.Z)("<div>").addClass(vC),this._$viewsWrapper=(0,o.Z)("<div>").addClass(wC),this.$body.append(this._$viewsWrapper))},_getKeyboardListeners(){return this.callBase().concat([this._view])},_renderViews:function(){this.$element().addClass(TC+"-"+this.option("zoomLevel"));var e=this.option("currentDate");if(this._view=this._renderSpecificView(e),(0,s.Ym)()){var t=this._getDateByOffset(-1,e);this._beforeView=this._isViewAvailable(t)?this._renderSpecificView(t):null;var i=this._getDateByOffset(1,e);i.setDate(1),this._afterView=this._isViewAvailable(i)?this._renderSpecificView(i):null}this._translateViews()},_renderSpecificView:function(e){var t=mC[this.option("zoomLevel")],i=(0,o.Z)("<div>").appendTo(this._$viewsWrapper),n=this._viewConfig(e);return this._createComponent(i,t,n)},_viewConfig:function(e){var t,i=this.option("disabledDates");return i=(0,l.mf)(i)?this._injectComponent(i.bind(this)):i,{date:e,min:this._getMinDate(),max:this._getMaxDate(),firstDayOfWeek:null!==(t=this.option("firstDayOfWeek"))&&void 0!==t?t:gy.Z.firstDayOfWeekIndex(),showWeekNumbers:this.option("showWeekNumbers"),weekNumberRule:this.option("weekNumberRule"),zoomLevel:this.option("zoomLevel"),value:this._dateOption("value"),tabIndex:void 0,focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),disabledDates:i,onCellClick:this._cellClickHandler.bind(this),cellTemplate:this._getTemplateByOption("cellTemplate"),allowValueSelection:this._isMaxZoomLevel(),_todayDate:this.option("_todayDate")}},_injectComponent:function(e){var t=this;return function(i){return(0,a.l)(i,{component:t}),e(i)}},_isViewAvailable:function(e){var t=this.option("zoomLevel"),i=_y.Z.getViewMinBoundaryDate(t,this._getMinDate()),n=_y.Z.getViewMaxBoundaryDate(t,this._getMaxDate());return _y.Z.dateInRange(e,i,n)},_translateViews:function(){ve(this._view.$element(),{left:0,top:0}),this._beforeView&&ve(this._beforeView.$element(),{left:this._getViewPosition(-1),top:0}),this._afterView&&ve(this._afterView.$element(),{left:this._getViewPosition(1),top:0})},_getViewPosition:function(e){var t=this.option("rtlEnabled")?-1:1;return 100*e*t+"%"},_cellClickHandler:function(e){var t=this.option("zoomLevel"),i=_y.Z.getViewDown(t),n=this._isMaxZoomLevel();if(i&&!n)this._navigateDown(e.event.currentTarget);else{var o=this._updateTimeComponent(e.value);this._dateValue(o,e.event),this._cellClickAction(e)}},_updateTimeComponent:function(e){var t=new Date(e),i=this._dateOption("value");return i&&(t.setHours(i.getHours()),t.setMinutes(i.getMinutes()),t.setSeconds(i.getSeconds()),t.setMilliseconds(i.getMilliseconds())),t},_isMaxZoomLevel:function(){return this.option("zoomLevel")===this.option("maxZoomLevel")},_navigateDown:function(e){var t=this.option("zoomLevel");if(!this._isMaxZoomLevel()){var i=_y.Z.getViewDown(t);if(i){var n=this._view.option("contouredDate")||this._view.option("date");e&&(n=(0,o.Z)(e).data(OC)),this._isOtherViewCellClicked=!0,this.option("currentDate",n),this.option("zoomLevel",i),this._isOtherViewCellClicked=!1,this._renderNavigator(),this._animateShowView(),this._moveToClosestAvailableDate(),this._setViewContoured(this._getNormalizedDate(this.option("currentDate")))}}},_renderNavigator:function(){this._navigator||(this._navigator=new Qy((0,o.Z)("<div>"),this._navigatorConfig())),this._navigator.option("text",this._view.getNavigatorCaption()),this._updateButtonsVisibility()},_navigatorConfig:function(){return{text:this._view.getNavigatorCaption(),onClick:this._navigatorClickHandler.bind(this),onCaptionClick:this._navigateUp.bind(this),rtlEnabled:this.option("rtlEnabled")}},_navigatorClickHandler:function(e){var t=this._getDateByOffset(e.direction,this.option("currentDate"));this._moveToClosestAvailableDate(t)},_navigateUp:function(){var e=this.option("zoomLevel"),t=_y.Z.getViewUp(e);t&&!this._isMinZoomLevel(e)&&(this.option("zoomLevel",t),this._renderNavigator(),this._animateShowView(),this._moveToClosestAvailableDate(),this._setViewContoured(this._getNormalizedDate(this.option("currentDate"))))},_isMinZoomLevel:function(e){var t=this._getMinDate(),i=this._getMaxDate();return _y.Z.sameView(e,t,i)||this.option("minZoomLevel")===e},_updateButtonsVisibility:function(){this._navigator.toggleButton("next",!(0,l.$K)(this._getRequiredView("next"))),this._navigator.toggleButton("prev",!(0,l.$K)(this._getRequiredView("prev")))},_renderSwipeable:function(){this._swipeable||(this._swipeable=this._createComponent(this.$element(),uh,{onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._viewWidth.bind(this)}))},_swipeStartHandler:function(e){Ut.stop(this._$viewsWrapper,!0),e.event.maxLeftOffset=this._getRequiredView("next")?1:0,e.event.maxRightOffset=this._getRequiredView("prev")?1:0},_getRequiredView:function(e){var t,i=this.option("rtlEnabled");return"next"===e?t=i?this._beforeView:this._afterView:"prev"===e&&(t=i?this._afterView:this._beforeView),t},_swipeUpdateHandler:function(e){var t=e.event.offset;ve(this._$viewsWrapper,{left:t*this._viewWidth(),top:0}),this._updateNavigatorCaption(t)},_swipeEndHandler:function(e){var t=e.event.targetOffset,i=t?t/Math.abs(t):0;if(0!==i){var n=this._getDateByOffset(-i*this._getRtlCorrection());this._isDateInInvalidRange(n)&&(n=i>=0?new Date(this._getMinDate()):new Date(this._getMaxDate())),this.option("currentDate",n)}else this._animateWrapper(0,IC)},_viewWidth:function(){return this._viewWidthValue||(this._viewWidthValue=(0,n.dz)(this.$element())),this._viewWidthValue},_updateNavigatorCaption:function(e){e*=this._getRtlCorrection();var t=this._view;e>.5&&this._beforeView?t=this._beforeView:e<-.5&&this._afterView&&(t=this._afterView),this._navigator.option("text",t.getNavigatorCaption())},_isDateInInvalidRange:function(e){if(!this._view.isBoundary(e)){var t=this._getMinDate(),i=this._getMaxDate(),n=_y.Z.normalizeDate(e,t,i);return n===t||n===i}},_renderFooter:function(){var e=this.option("showTodayButton");if(e){var t=this._createComponent((0,o.Z)("<a>"),cd,{focusStateEnabled:!1,text:y.Z.format("dxCalendar-todayButtonText"),onClick:function(e){this._toTodayView(e)}.bind(this),integrationOptions:{}}).$element().addClass(bC);this._$footer=(0,o.Z)("<div>").addClass(CC).append(t),this.$element().append(this._$footer)}this.$element().toggleClass(xC,e)},_renderSubmitElement:function(){this._$submitElement=(0,o.Z)("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(e){var t=this._convertToDate(e);this._getSubmitElement().val(vy.Z.serializeDate(t,kC))},_getSubmitElement:function(){return this._$submitElement},_animateShowView:function(){return Ut.stop(this._view.$element(),!0),this._popAnimationView(this._view,EC,DC,IC).promise()},_popAnimationView:function(e,t,i,n){return Ut.animate(e.$element(),{type:"pop",from:{scale:t,opacity:t},to:{scale:i,opacity:i},duration:n})},_navigate:function(e,t){if(0!==e&&1!==Math.abs(e)&&this._isViewAvailable(t)){var i=this._renderSpecificView(t);e>0?(this._afterView&&this._afterView.$element().remove(),this._afterView=i):(this._beforeView&&this._beforeView.$element().remove(),this._beforeView=i),this._translateViews()}var n=this._getRtlCorrection(),o=e>0?1:e<0?-1:0,r=-n*o*this._viewWidth(),a=this._$viewsWrapper.position().left;a!==r&&(this._preventViewChangeAnimation?this._wrapperAnimationEndHandler(e,t):this._animateWrapper(r,IC).done(this._wrapperAnimationEndHandler.bind(this,e,t)))},_animateWrapper:function(e,t){return Ut.animate(this._$viewsWrapper,{type:"slide",from:{left:this._$viewsWrapper.position().left},to:{left:e},duration:t})},_getDate:e=>new Date(e),_toTodayView:function(e){this._saveValueChangeEvent(e.event);var t=new Date;this._isMaxZoomLevel()?this._dateOption("value",t):(this._preventViewChangeAnimation=!0,this.option("zoomLevel",this.option("maxZoomLevel")),this._dateOption("value",t),this._animateShowView(),this._preventViewChangeAnimation=!1)},_wrapperAnimationEndHandler:function(e,t){this._rearrangeViews(e),this._translateViews(),this._resetLocation(),this._renderNavigator(),this._setViewContoured(t),this._updateAriaId(t)},_rearrangeViews:function(e){var t,i,n;if(0!==e&&(e<0?(t=1,i="_beforeView",n="_afterView"):(t=-1,i="_afterView",n="_beforeView"),this[i])){var o=this[i].option("date");this[n]&&this[n].$element().remove(),e===t?this[n]=this._view:(this[n]=this._renderSpecificView(this._getDateByOffset(t,o)),this._view.$element().remove()),this._view=this[i];var r=this._getDateByOffset(-t,o);this[i]=this._isViewAvailable(r)?this._renderSpecificView(r):null}},_resetLocation:function(){ve(this._$viewsWrapper,{left:0,top:0})},_clean:function(){this.callBase(),this._clearViewWidthCache(),delete this._$viewsWrapper,delete this._navigator,delete this._$footer},_clearViewWidthCache:function(){delete this._viewWidthValue},_disposeViews:function(){this._view.$element().remove(),this._beforeView&&this._beforeView.$element().remove(),this._afterView&&this._afterView.$element().remove(),delete this._view,delete this._beforeView,delete this._afterView},_dispose:function(){clearTimeout(this._waitRenderViewTimeout),this.callBase()},_refreshViews:function(){this._disposeViews(),this._renderViews()},_visibilityChanged:function(){this._translateViews()},_focusInHandler:function(){this.callBase.apply(this,arguments),this._view.option("contouredDate",this.option("currentDate"))},_focusOutHandler:function(){this.callBase.apply(this,arguments),this._view.option("contouredDate",null)},_updateViewsValue:function(e){var t=e?new Date(e):null;this._view.option("value",t),this._beforeView&&this._beforeView.option("value",t),this._afterView&&this._afterView.option("value",t)},_updateAriaSelected:function(e,t){var i;e=null!==(i=e)&&void 0!==i?i:this._dateOption("value");var n=this._view._getCellByDate(t),o=this._view._getCellByDate(e);this.setAria("selected",void 0,n),this.setAria("selected",!0,o),e&&this.option("currentDate").getTime()===e.getTime()&&this._updateAriaId(e)},_updateAriaId:function(e){var t;e=null!==(t=e)&&void 0!==t?t:this.option("currentDate");var i="dx-"+new Li.Z,n=this._view._getCellByDate(e);this.setAria("id",i,n),this.setAria("activedescendant",i),this._onContouredChanged(i)},_suppressingNavigation:function(e,t){this._suppressNavigation=!0,e.apply(this,t),delete this._suppressNavigation},_optionChanged:function(e){var t=e.value,i=e.previousValue;switch(e.name){case"width":this.callBase(e),this._clearViewWidthCache();break;case"min":case"max":this.min=void 0,this.max=void 0,this._suppressingNavigation(this._updateCurrentDate,[this.option("currentDate")]),this._refreshViews(),this._renderNavigator();break;case"firstDayOfWeek":this._refreshViews(),this._updateButtonsVisibility();break;case"currentDate":this.setAria("id",void 0,this._view._getCellByDate(i)),this._updateCurrentDate(t);break;case"zoomLevel":this.$element().removeClass(TC+"-"+i),this._correctZoomLevel(),this._refreshViews(),this._renderNavigator(),this._updateAriaId();break;case"minZoomLevel":case"maxZoomLevel":this._correctZoomLevel(),this._updateButtonsVisibility();break;case"value":t=this._convertToDate(t),i=this._convertToDate(i),this._updateAriaSelected(t,i),this.option("currentDate",(0,l.$K)(t)?new Date(t):new Date),this._updateViewsValue(t),this._setSubmitValue(t),this.callBase(e);break;case"onCellClick":this._view.option("onCellClick",t);break;case"onContouredChanged":this._onContouredChanged=this._createActionByOption("onContouredChanged");break;case"disabledDates":case"dateSerializationFormat":case"cellTemplate":case"showTodayButton":this._invalidate();break;case"skipFocusCheck":break;case"_todayDate":case"showWeekNumbers":case"weekNumberRule":this._refreshViews();break;default:this.callBase(e)}},getContouredDate:function(){return this._view.option("contouredDate")}});(0,C.Z)("dxCalendar",RC);var BC=RC,VC=BC,FC=P.Z.abstract,HC=P.Z.inherit({ctor:function(e){this.dateBox=e},widgetOption:function(){return this._widget&&this._widget.option.apply(this._widget,arguments)},_renderWidget:function(e){e=e||(0,o.Z)("<div>"),this._widget=this._createWidget(e),this._widget.$element().appendTo(this._getWidgetContainer())},_createWidget:function(e){var t=this._getWidgetName(),i=this._getWidgetOptions();return this.dateBox._createComponent(e,t,i)},_getWidgetOptions:FC,_getWidgetName:FC,getDefaultOptions:function(){return{mode:"text"}},getDisplayFormat:FC,supportedKeys:v.ZT,getKeyboardListener:v.ZT,customizeButtons:v.ZT,getParsedText:function(e,t){var i=gy.Z.parse(e,t);return i||gy.Z.parse(e)},renderInputMinMax:v.ZT,renderOpenedState:function(){this._updateValue()},popupConfig:FC,_dimensionChanged:function(){var e;null===(e=this._getPopup())||void 0===e||e.repaint()},renderPopupContent:function(){var e=this._getPopup();this._renderWidget();var t=e.$content().parent();re.Z.off(t,"mousedown"),re.Z.on(t,"mousedown",this._preventFocusOnPopup.bind(this))},getFirstPopupElement:v.ZT,getLastPopupElement:v.ZT,_preventFocusOnPopup:function(e){e.preventDefault()},_getWidgetContainer:function(){return this._getPopup().$content()},_getPopup:function(){return this.dateBox._popup},popupShowingHandler:v.ZT,popupHiddenHandler:v.ZT,_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},useCurrentDateByDefault:v.ZT,getDefaultDate:function(){return new Date},textChangedHandler:v.ZT,renderValue:function(){this.dateBox.option("opened")&&this._updateValue()},getValue:function(){return this._widget.option("value")},isAdaptivityChanged:function(){return!1},dispose:function(){var e=this._getPopup();e&&e.$content().empty()},dateBoxValue:function(){return arguments.length?this.dateBox.dateValue.apply(this.dateBox,arguments):this.dateBox.dateOption.apply(this.dateBox,["value"])}}),LC=HC,NC=LC.inherit({NAME:"Calendar",getDefaultOptions:function(){return(0,a.l)(this.callBase(),{todayButtonText:y.Z.format("dxCalendar-todayButtonText")})},supportedKeys:function(){var e=function(e){return!!this.option("opened")&&(e.preventDefault(),!0)};return{rightArrow:function(){if(this.option("opened"))return!0},leftArrow:function(){if(this.option("opened"))return!0},enter:function(e){if(this.dateBox.option("opened")){if(e.preventDefault(),this._widget.option("zoomLevel")===this._widget.option("maxZoomLevel")){var t=this._getContouredValue(),i=this._lastActionElement,n=this._closeDropDownByEnter();return n&&t&&"calendar"===i&&this.dateBoxValue(t,e),n&&this.dateBox.close(),this.dateBox._valueChangeEventHandler(e),!n}return!0}this.dateBox._valueChangeEventHandler(e)}.bind(this),home:e,end:e}},getDisplayFormat:function(e){return e||"shortdate"},_closeDropDownByEnter:()=>!0,_getWidgetName:function(){return VC},_getContouredValue:function(){return this._widget._view.option("contouredDate")},getKeyboardListener(){return this._widget},_getWidgetOptions:function(){var e=this.dateBox.option("disabledDates");return(0,a.l)(this.dateBox.option("calendarOptions"),{value:this.dateBoxValue()||null,dateSerializationFormat:null,min:this.dateBox.dateOption("min"),max:this.dateBox.dateOption("max"),onValueChanged:this._valueChangedHandler.bind(this),onCellClick:this._cellClickHandler.bind(this),tabIndex:null,disabledDates:(0,l.mf)(e)?this._injectComponent(e.bind(this.dateBox)):e,onContouredChanged:this._refreshActiveDescendant.bind(this),skipFocusCheck:!0})},_injectComponent:function(e){var t=this;return function(i){return(0,a.l)(i,{component:t.dateBox}),e(i)}},_refreshActiveDescendant:function(e){this._lastActionElement="calendar",this.dateBox.setAria("activedescendant",e.actionValue)},_getTodayButtonConfig(){var e=this.dateBox.option("buttonsLocation"),t="default"===e,i=t?["bottom","center"]:(0,v.Um)(e);return{widget:"dxButton",toolbar:i[0],location:"after"===i[1]?"before":i[1],options:{onInitialized:function(e){e.component.registerKeyHandler("escape",this._escapeHandler.bind(this))}.bind(this),onClick:e=>{this._widget._toTodayView(e)},text:this.dateBox.option("todayButtonText"),type:"today"}}},_isCalendarVisible:function(){var{calendarOptions:e}=this.dateBox.option();return(0,l.Qr)(e)||!1!==e.visible},_getPopupToolbarItems(e){var t="useButtons"===this.dateBox.option("applyValueMode"),i=t&&this._isCalendarVisible();if(i){var n=this._getTodayButtonConfig();return[n,...e]}return e},popupConfig:function(e){return(0,a.l)(!0,e,{position:{collision:"flipfit flip"},width:"auto"})},_escapeHandler:function(){this.dateBox.close(),this.dateBox.focus()},_valueChangedHandler:function(e){var t=e.value,i=e.previousValue;_y.Z.sameDate(t,i)&&_y.Z.sameHoursAndMinutes(t,i)||"instantly"===this.dateBox.option("applyValueMode")&&this.dateBoxValue(this.getValue(),e.event)},_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},textChangedHandler:function(){this._lastActionElement="input",this.dateBox.option("opened")&&this._widget&&this._updateValue(!0)},_cellClickHandler:function(e){var t=this.dateBox;"instantly"===t.option("applyValueMode")&&(t.option("opened",!1),this.dateBoxValue(this.getValue(),e.event))}}),ZC=NC;function $C(e,t){if((0,l.PO)(e)){var i=(0,v.IS)(e.left,e.x),n=(0,v.IS)(e.top,e.y);return{left:(0,l.$K)(i)?i:void 0,top:(0,l.$K)(n)?n:void 0}}var{isHorizontal:o,isVertical:r}=new Kp(t);return{left:o&&(0,l.$K)(e)?e:void 0,top:r&&(0,l.$K)(e)?e:void 0}}var WC="dx-dateviewroller",KC="dx-state-active",zC="dx-dateviewroller-current",jC="dx-dateview-item",UC="dx-dateview-item-selected",GC="dx-dateview-item-selected-frame",qC="dx-dateview-item-selected-border";class YC extends Zp{_getDefaultOptions(){return(0,a.l)(super._getDefaultOptions(),{showScrollbar:"never",useNative:!1,selectedIndex:0,bounceEnabled:!1,items:[],showOnClick:!1,onClick:null,onSelectedIndexChanged:null,scrollByContent:!0})}_init(){super._init(),this.option("onVisibilityChange",this._visibilityChangedHandler.bind(this)),this.option("onEnd",this._endActionHandler.bind(this))}_render(){super._render(),this._renderSelectedItemFrame(),this.$element().addClass(WC),this._renderContainerClick(),this._renderItems(),this._renderSelectedValue(),this._renderItemsClick(),this._renderWheelEvent(),this._renderSelectedIndexChanged()}_renderSelectedIndexChanged(){this._selectedIndexChanged=this._createActionByOption("onSelectedIndexChanged")}_renderWheelEvent(){re.Z.on((0,o.Z)(this.container()),"dxmousewheel",(e=>{this._isWheelScrolled=!0}))}_renderContainerClick(){if(this.option("showOnClick")){var e=(0,R.V4)(A.u,this.NAME),t=this._createActionByOption("onClick");re.Z.off((0,o.Z)(this.container()),e),re.Z.on((0,o.Z)(this.container()),e,(function(e){t({event:e})}))}}_renderItems(){var e=this.option("items")||[],t=(0,o.Z)();(0,o.Z)(this.content()).empty(),e.forEach((function(e){t=t.add((0,o.Z)("<div>").addClass(jC).append(e))})),(0,o.Z)(this.content()).append(t),this._$items=t,this.update()}_renderSelectedItemFrame(){(0,o.Z)("<div>").addClass(GC).append((0,o.Z)("<div>").addClass(qC)).appendTo((0,o.Z)(this.container()))}_renderSelectedValue(e){var t=this._fitIndex(null!==e&&void 0!==e?e:this.option("selectedIndex"));this._moveTo({top:this._getItemPosition(t)}),this._renderActiveStateItem()}_fitIndex(e){var t=this.option("items")||[],i=t.length;return e>=i?i-1:e<0?0:e}_getItemPosition(e){return Math.round(this._itemHeight()*e)}_renderItemsClick(){var e=this._getItemSelector(),t=(0,R.V4)(A.u,this.NAME);re.Z.off(this.$element(),t,e),re.Z.on(this.$element(),t,e,this._itemClickHandler.bind(this))}_getItemSelector(){return"."+jC}_itemClickHandler(e){this.option("selectedIndex",this._itemElementIndex(e.currentTarget))}_itemElementIndex(e){return this._itemElements().index(e)}_itemElements(){return this.$element().find(this._getItemSelector())}_renderActiveStateItem(){var e=this.option("selectedIndex");(0,E.S6)(this._$items,(function(t){(0,o.Z)(this).toggleClass(UC,e===t)}))}_shouldScrollToNeighborItem(){return"desktop"===w.Z.real().deviceType&&this._isWheelScrolled}_moveTo(e){var{top:t,left:i}=$C(e),n=this.scrollOffset(),r={x:n.left-i,y:n.top-t};if(this._isVisible()&&(r.x||r.y))if(this._prepareDirections(!0),this._animation&&!this._shouldScrollToNeighborItem()){var a=this;Ut.stop((0,o.Z)(this.content())),Ut.animate((0,o.Z)(this.content()),{duration:200,type:"slide",to:{top:Math.floor(r.y)},complete(){ye((0,o.Z)(a.content())),a.handleMove({delta:r})}}),delete this._animation}else this.handleMove({delta:r})}_validate(e){return this._moveIsAllowed(e)}_fitSelectedIndexInRange(e){var t=this.option("items").length;return Math.max(Math.min(e,t-1),0)}_isInNullNeighborhood(e){return-.1<=e&&e<=.1}_getSelectedIndexAfterScroll(e){var t=this.scrollOffset().top,i=e*this._itemHeight(),n=t-i;if(this._isInNullNeighborhood(n))return e;var o=n>0?1:-1,r=this._fitSelectedIndexInRange(e+o);return r}_getNewSelectedIndex(e){if(this._shouldScrollToNeighborItem())return this._getSelectedIndexAfterScroll(e);this._animation=!0;var t=this.scrollOffset().top/this._itemHeight();return Math.round(t)}_endActionHandler(){var e=this.option("selectedIndex"),t=this._getNewSelectedIndex(e);t===e?this._renderSelectedValue(t):this.option("selectedIndex",t),this._isWheelScrolled=!1}_itemHeight(){var e=this._$items.first();return(0,n.Cr)(e)}_toggleActive(e){this.$element().toggleClass(KC,e)}_isVisible(){return(0,o.Z)(this.container()).is(":visible")}_fireSelectedIndexChanged(e,t){this._selectedIndexChanged({value:e,previousValue:t,event:void 0})}_visibilityChanged(e){super._visibilityChanged(e),this._visibilityChangedHandler(e)}_visibilityChangedHandler(e){e&&(this._visibilityTimer=setTimeout((()=>{this._renderSelectedValue(this.option("selectedIndex"))}))),this.toggleActiveState(!1)}toggleActiveState(e){this.$element().toggleClass(zC,e)}_refreshSelectedIndex(){var e=this.option("selectedIndex"),t=this._fitIndex(e);t===e?this._renderActiveStateItem():this.option("selectedIndex",t)}_optionChanged(e){switch(e.name){case"selectedIndex":this._fireSelectedIndexChanged(e.value,e.previousValue),this._renderSelectedValue(e.value);break;case"items":this._renderItems(),this._refreshSelectedIndex();break;case"onClick":case"showOnClick":this._renderContainerClick();break;case"onSelectedIndexChanged":this._renderSelectedIndexChanged();break;default:super._optionChanged(e)}}_dispose(){clearTimeout(this._visibilityTimer),super._dispose()}}(0,C.Z)("dxDateViewRoller",YC);var XC=YC,JC="dx-dateview",QC="dx-dateview-compact",eb="dx-dateview-wrapper",tb="dx-dateview-rollers",ib="dx-dateviewroller",nb={date:"date",datetime:"datetime",time:"time"},ob={year:"year",month:"month",day:"day",hours:"hours"},rb=zc.inherit({_valueOption:function(){var e=this.option("value"),t=new Date(e);return!e||isNaN(t)?this._getDefaultDate():t},_getDefaultDate:function(){var e=new Date;return this.option("type")===nb.date?new Date(e.getFullYear(),e.getMonth(),e.getDate()):e},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{minDate:Iy.MIN_DATEVIEW_DEFAULT_DATE,maxDate:Iy.MAX_DATEVIEW_DEFAULT_DATE,type:nb.date,value:new Date,applyCompactClass:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"desktop"!==e.deviceType},options:{applyCompactClass:!0}}])},_render:function(){this.callBase(),this.$element().addClass(JC),this._toggleFormatClasses(this.option("type")),this._toggleCompactClass()},_toggleFormatClasses:function(e,t){this.$element().addClass(JC+"-"+e),t&&this.$element().removeClass(JC+"-"+t)},_toggleCompactClass:function(){this.$element().toggleClass(QC,this.option("applyCompactClass"))},_wrapper:function(){return this._$wrapper},_renderContentImpl:function(){this._$wrapper=(0,o.Z)("<div>").addClass(eb),this._renderRollers(),this._$wrapper.appendTo(this.$element())},_renderRollers:function(){this._$rollersContainer||(this._$rollersContainer=(0,o.Z)("<div>").addClass(tb)),this._$rollersContainer.empty(),this._createRollerConfigs(),this._rollers={};var e=this;(0,E.S6)(e._rollerConfigs,(function(t){var i=(0,o.Z)("<div>").appendTo(e._$rollersContainer).addClass(ib+"-"+e._rollerConfigs[t].type);e._rollers[e._rollerConfigs[t].type]=e._createComponent(i,XC,{items:e._rollerConfigs[t].displayItems,selectedIndex:e._rollerConfigs[t].selectedIndex,showScrollbar:"never",scrollByContent:!0,onStart:function(i){var n=i.component;n._toggleActive(!0),e._setActiveRoller(e._rollerConfigs[t],n.option("selectedIndex"))},onEnd:function(e){var t=e.component;t._toggleActive(!1)},onClick:function(i){var n=i.component;n._toggleActive(!0),e._setActiveRoller(e._rollerConfigs[t],n.option("selectedIndex")),e._setRollerState(e._rollerConfigs[t],n.option("selectedIndex")),n._toggleActive(!1)},onSelectedIndexChanged:function(i){var n=i.component;e._setRollerState(e._rollerConfigs[t],n.option("selectedIndex"))}})})),e._$rollersContainer.appendTo(e._wrapper())},_createRollerConfigs:function(e){var t=this;e=e||t.option("type"),t._rollerConfigs={},gy.Z.getFormatParts(Iy.FORMATS_MAP[e]).forEach((function(e){t._createRollerConfig(e)}))},_createRollerConfig:function(e){for(var t=Iy.DATE_COMPONENTS_INFO[e],i=this._calculateRollerConfigValueRange(e),n=i.startValue,o=i.endValue,r=t.formatter,a=this._getCurrentDate(),s={type:e,setValue:t.setter,valueItems:[],displayItems:[],getIndex:function(e){return e[t.getter]()-n}},l=n;l<=o;l++)s.valueItems.push(l),s.displayItems.push(r(l,a));s.selectedIndex=s.getIndex(a),this._rollerConfigs[e]=s},_setActiveRoller:function(e){var t=e&&this._rollers[e.type];(0,E.S6)(this._rollers,(function(){this.toggleActiveState(this===t)}))},_updateRollersPosition:function(){var e=this;(0,E.S6)(this._rollers,(function(t){var i=e._rollerConfigs[t].getIndex(e._getCurrentDate());this.option("selectedIndex",i)}))},_setRollerState:function(e,t){if(t!==e.selectedIndex){var i=e.valueItems[t],n=e.setValue,o=new Date(this._getCurrentDate()),r=o.getDate(),a=this.option("minDate"),s=this.option("maxDate");e.type===ob.month?r=Math.min(r,Iy.getMaxMonthDay(o.getFullYear(),i)):e.type===ob.year&&(r=Math.min(r,Iy.getMaxMonthDay(i,o.getMonth()))),o.setDate(r),o[n](i);var l=_y.Z.normalizeDate(o,a,s);o=Iy.mergeDates(l,o,"time"),o=_y.Z.normalizeDate(o,a,s),this.option("value",o),e.selectedIndex=t}e.type===ob.year&&this._refreshRollers(),e.type===ob.month&&(this._refreshRoller(ob.day),this._refreshRoller(ob.hours))},_refreshRoller:function(e){var t=this._rollers[e];if(t){this._createRollerConfig(e);var i=this._rollerConfigs[e];e!==ob.day&&i.displayItems.toString()===t.option("items").toString()||t.option({items:i.displayItems,selectedIndex:i.selectedIndex})}},_getCurrentDate:function(){var e=this._valueOption(),t=this.option("minDate"),i=this.option("maxDate");return _y.Z.normalizeDate(e,t,i)},_calculateRollerConfigValueRange:function(e){var t=this._getCurrentDate(),i=this.option("minDate"),n=this.option("maxDate"),o=_y.Z.sameYear(t,i),r=o&&t.getMonth()===i.getMonth(),a=_y.Z.sameYear(t,n),s=a&&t.getMonth()===n.getMonth(),l=r&&t.getDate()===i.getDate(),d=s&&t.getDate()===n.getDate(),u=Iy.DATE_COMPONENTS_INFO[e],c=u.startValue,h=u.endValue;return e===ob.year&&(c=i.getFullYear(),h=n.getFullYear()),e===ob.month&&(o&&(c=i.getMonth()),a&&(h=n.getMonth())),e===ob.day&&(h=Iy.getMaxMonthDay(t.getFullYear(),t.getMonth()),o&&r&&(c=i.getDate()),a&&s&&(h=n.getDate())),e===ob.hours&&(c=l?i.getHours():c,h=d?n.getHours():h),{startValue:c,endValue:h}},_refreshRollers:function(){this._refreshRoller(ob.month),this._refreshRoller(ob.day),this._refreshRoller(ob.hours)},_optionChanged:function(e){switch(e.name){case"minDate":case"maxDate":case"type":this._renderRollers(),this._toggleFormatClasses(e.value,e.previousValue);break;case"visible":this.callBase(e),e.value&&this._renderRollers();break;case"value":this.option("value",this._valueOption()),this._refreshRollers(),this._updateRollersPosition();break;default:this.callBase(e)}},_clean:function(){this.callBase(),delete this._$rollersContainer}});(0,C.Z)("dxDateView",rb);var ab=rb,sb=(0,s.Jj)(),lb=LC.inherit({NAME:"DateView",getDefaultOptions:function(){return(0,a.l)(this.callBase(),{openOnFieldClick:!0,applyButtonText:y.Z.format("OK"),"dropDownOptions.showTitle":!0})},getDisplayFormat:function(e){return e||Iy.FORMATS_MAP[this.dateBox.option("type")]},popupConfig:function(e){return{toolbarItems:this.dateBox._popupToolbarItemsConfig(),onInitialized:e.onInitialized,defaultOptionsRules:[{device:{platform:"android"},options:{width:333,height:331}},{device:function(e){var t=e.platform;return"generic"===t||"ios"===t},options:{width:"auto",height:"auto"}},{device:function(e){var t=e.platform,i=e.phone;return"generic"===t&&i},options:{width:333,maxWidth:"100%",maxHeight:"100%",height:"auto",position:{collision:"flipfit flip"}}},{device:{platform:"ios",phone:!0},options:{width:"100%",position:{my:"bottom",at:"bottom",of:sb}}}]}},_renderWidget:function(){if((0,b.inputType)(this.dateBox.option("mode"))&&this.dateBox._isNativeType()||this.dateBox.option("readOnly"))this._widget&&(this._widget.$element().remove(),this._widget=null);else{var e=this._getPopup();if(this._widget)this._widget.option(this._getWidgetOptions());else{var t=(0,o.Z)("<div>").appendTo(e.$content());this._widget=this._createWidget(t)}this._widget.$element().appendTo(this._getWidgetContainer())}},_getWidgetName:function(){return ab},renderOpenedState:function(){this.callBase(),this._widget&&this._widget.option("value",this._widget._getCurrentDate())},_getWidgetOptions:function(){return{value:this.dateBoxValue()||new Date,type:this.dateBox.option("type"),minDate:this.dateBox.dateOption("min")||new Date(1900,0,1),maxDate:this.dateBox.dateOption("max")||new Date(Date.now()+50*Iy.ONE_YEAR),onDisposing:function(){this._widget=null}.bind(this)}}}),db=lb,ub=LC.inherit({NAME:"Native",popupConfig:function(e){return(0,a.l)({},e,{width:"auto"})},getParsedText:function(e){return e?"datetime"===this.dateBox.option("type")?new Date(e.replace(/-/g,"/").replace("T"," ").split(".")[0]):Iy.fromStandardDateFormat(e):null},renderPopupContent:v.ZT,_getWidgetName:v.ZT,_getWidgetOptions:v.ZT,_getDateBoxType:function(){var e=this.dateBox.option("type");return Iy.SUPPORTED_FORMATS.includes(e)?"datetime"!==e||(0,b.inputType)(e)||(e="datetime-local"):e="date",e},customizeButtons:function(){var e=this.dateBox.getButton("dropDown");w.Z.real().android&&e&&e.on("click",function(){this.dateBox._input().get(0).click()}.bind(this))},getDefaultOptions:function(){return{mode:this._getDateBoxType()}},getDisplayFormat:function(e){var t=this._getDateBoxType();return e||Iy.FORMATS_MAP[t]},renderInputMinMax:function(e){e.attr({min:vy.Z.serializeDate(this.dateBox.dateOption("min"),"yyyy-MM-dd"),max:vy.Z.serializeDate(this.dateBox.dateOption("max"),"yyyy-MM-dd")})}}),cb=ub,hb=i(53518),pb="dx-list-item",fb="dx-list-group",gb=20,mb=(1<<gb)-1,_b=function(e){return(e.group<<gb)+e.item},vb=function(e){return{group:e>>gb,item:e&mb}},yb=uu.inherit({_groupElements:function(){return this._collectionWidget._itemContainer().find("."+fb)},_groupItemElements:function(e){return e.find("."+pb)},getIndexByItemData:function(e){var t=this._collectionWidget.option("items"),i=!1;return!!e&&(e.items&&e.items.length&&(e=e.items[0]),(0,E.S6)(t,(function(t,n){return!!n.items&&((0,E.S6)(n.items,(function(n,o){return o!==e||(i={group:t,item:n},!1)})),!i&&void 0)})),i)},getItemDataByIndex:function(e){var t=this._collectionWidget.option("items");return(0,l.kE)(e)?this.itemsGetter()[e]:e&&t[e.group]&&t[e.group].items[e.item]||null},itemsGetter:function(){for(var e=[],t=this._collectionWidget.option("items"),i=0;i<t.length;i++)t[i]&&t[i].items?e=e.concat(t[i].items):e.push(t[i]);return e},deleteItemAtIndex:function(e){var t=vb(e),i=this._collectionWidget.option("items")[t.group].items;i.splice(t.item,1)},getKeysByItems:function(e){var t,i=[];for(t=0;t<e.length;t++)e[t]&&e[t].items?i=i.concat(e[t].items):i.push(e[t]);var n=[];for(t=0;t<i.length;t++)n.push(this._collectionWidget.keyOf(i[t]));return n},getIndexByKey:function(e,t){var i=t||this._collectionWidget.option("items"),n=-1,o=this;return(0,E.S6)(i,(function(t,i){if(i.items)return(0,E.S6)(i.items,(function(i,r){var a=o._collectionWidget.keyOf(r);if(o._equalKeys(a,e))return n={group:t,item:i},!1})),-1===n&&void 0})),n},_getGroups:function(e){var t=this._collectionWidget._dataController,i=t.group();return i?hb.Z.queryByOptions((0,pu.Z)(e),{group:i}).toArray():this._collectionWidget.option("items")},getItemsByKeys:function(e,t){var i=[],n=this._getGroups(t),o={},r=e=>{var t=this.getIndexByKey(e,n),i=t&&n[t.group];if(i)return{groupKey:i.key,item:i.items[t.item]}};return(0,E.S6)(e,(function(e,t){var n=r(t);if(n){var a=n.groupKey,s=n.item,l=o[a];l||(l={key:a,items:[]},o[a]=l,i.push(l)),l.items.push(s)}})),i},moveItemAtIndexToIndex:function(e,t){var i=this._collectionWidget.option("items"),n=vb(e),o=vb(t),r=i[n.group].items,a=i[o.group].items,s=r[n.item];r.splice(n.item,1),a.splice(o.item,0,s)},_isItemIndex:function(e){return e&&(0,l.kE)(e.group)&&(0,l.kE)(e.item)},_getNormalizedItemIndex:function(e){var t=(0,o.Z)(e),i=t.closest("."+fb);return i.length?_b({group:this._groupElements().index(i),item:this._groupItemElements(i).index(t)}):-1},_normalizeItemIndex:function(e){return _b(e)},_denormalizeItemIndex:function(e){return vb(e)},_getItemByNormalizedIndex:function(e){var t=vb(e),i=this._groupElements().eq(t.group);return this._groupItemElements(i).eq(t.item)},_itemsFromSameParent:function(e,t){return vb(e).group===vb(t).group}}),Cb=yb,bb={};function xb(e,t,i){var n=bb,o={};o[e]=n[e]?n[e]:{},o[e][t]=i,(0,a.l)(n,o)}var wb=[],Tb=function(e,t,i){wb.push({enabled:e,decoratorType:t,decoratorSubType:i})};Tb((function(){return this.option("menuItems").length}),(function(){return"menu"}),(function(){return this.option("menuMode")})),Tb((function(){return!this.option("menuItems").length&&this.option("allowItemDeleting")}),(function(){var e=this.option("itemDeleteMode");return"toggle"===e||"slideButton"===e||"swipe"===e||"static"===e?"delete":"menu"}),(function(){var e=this.option("itemDeleteMode");return"slideItem"===e&&(e="slide"),e})),Tb((function(){return"none"!==this.option("selectionMode")&&this.option("showSelectionControls")}),(function(){return"selection"}),(function(){return"default"})),Tb((function(){return this.option("itemDragging.allowReordering")||this.option("itemDragging.allowDropInsideItem")||this.option("itemDragging.group")}),(function(){return"reorder"}),(function(){return"default"}));var Sb="dx-list-item-before-bag",Ib="dx-list-item-after-bag",Eb="beforeBag",Db="afterBag",kb="modifyElement",Ob="afterRender",Ab="getExcludedSelectors",Pb=P.Z.inherit({ctor:function(e){this._list=e,this._fetchRequiredDecorators()},dispose:function(){this._decorators&&this._decorators.length&&(0,E.S6)(this._decorators,(function(e,t){t.dispose()}))},_fetchRequiredDecorators:function(){this._decorators=[],(0,E.S6)(wb,function(e,t){var i=t.enabled.call(this._list);if(i){var n=t.decoratorType.call(this._list),o=t.decoratorSubType.call(this._list),r=this._createDecorator(n,o);this._decorators.push(r)}}.bind(this))},_createDecorator:function(e,t){var i=this._findDecorator(e,t);return new i(this._list)},_findDecorator:function(e,t){var i,n=null===(i=bb[e])||void 0===i?void 0:i[t];if(!n)throw Xt.Z.Error("E1012",e,t);return n},modifyItemElement:function(e){var t=(0,o.Z)(e.itemElement),i={$itemElement:t};this._prependBeforeBags(t,i),this._appendAfterBags(t,i),this._applyDecorators(kb,i)},afterItemsRendered:function(){this._applyDecorators(Ob)},_prependBeforeBags:function(e,t){var i=this._collectDecoratorsMarkup(Eb,t,Sb);e.prepend(i)},_appendAfterBags:function(e,t){var i=this._collectDecoratorsMarkup(Db,t,Ib);e.append(i)},_collectDecoratorsMarkup:function(e,t,i){var n=(0,o.Z)("<div>");return(0,E.S6)(this._decorators,(function(){var r=(0,o.Z)("<div>").addClass(i);this[e]((0,a.l)({$container:r},t)),r.children().length&&n.append(r)})),n.children()},_applyDecorators:function(e,t){(0,E.S6)(this._decorators,(function(){this[e](t)}))},_handlerExists:function(e){if(!this._decorators)return!1;for(var t=this._decorators,i=t.length,n=0;n<i;n++)if(t[n][e]!==v.ZT)return!0;return!1},_eventHandler:function(e,t,i){if(!this._decorators)return!1;for(var n=!1,o=this._decorators,r=o.length,a=0;a<r;a++)if(n=o[a][e](t,i),n)break;return n},handleClick:function(e,t){return this._eventHandler("handleClick",e,t)},handleKeyboardEvents:function(e,t){return this._eventHandler("handleKeyboardEvents",e,t)},handleEnterPressing:function(e){return this._eventHandler("handleEnterPressing",e)},contextMenuHandlerExists:function(){return this._handlerExists("handleContextMenu")},handleContextMenu:function(e,t){return this._eventHandler("handleContextMenu",e,t)},getExcludedItemSelectors:function(){var e=[];return this._applyDecorators(Ab,e),e.join(",")}}),Mb=Pb,Rb="dx-list-item-badge-container",Bb="dx-list-item-badge",Vb="dx-badge",Fb="dx-list-item-chevron-container",Hb="dx-list-item-chevron",Lb=yd.inherit({_renderWatchers:function(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this)),this._startWatcher("showChevron",this._renderShowChevron.bind(this))},_renderBadge:function(e){if(this._$element.children("."+Rb).remove(),e){var t=(0,o.Z)("<div>").addClass(Rb).append((0,o.Z)("<div>").addClass(Bb).addClass(Vb).text(e)),i=this._$element.children("."+Fb).first();i.length>0?t.insertBefore(i):t.appendTo(this._$element)}},_renderShowChevron:function(e){if(this._$element.children("."+Fb).remove(),e){var t=(0,o.Z)("<div>").addClass(Fb),i=(0,o.Z)("<div>").addClass(Hb);t.append(i).appendTo(this._$element)}}}),Nb=Lb,Zb="dx-scrollview-pull-down-loading",$b="dx-scrollview-pull-down-ready",Wb="dx-scrollview-pull-down-image",Kb="dx-scrollview-pull-down-indicator",zb="dx-scrollview-pull-down-text",jb="dx-scrollview-pull-down-text-visible",Ub=0,Gb=1,qb=2,Yb=3,Xb=400,Jb=xp.inherit({_init:function(e){this.callBase(e),this._$topPocket=e._$topPocket,this._$pullDown=e._$pullDown,this._$refreshingText=e._$refreshingText,this._$scrollViewContent=(0,o.Z)(e.content()),this._$container=(0,o.Z)(e.container()),this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=(0,Sc["default"])(),this.releaseCallbacks=(0,Sc["default"])(),this.reachBottomCallbacks=(0,Sc["default"])()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var e=(0,o.Z)("<div>").addClass(Wb),t=(0,o.Z)("<div>").addClass(Kb),i=new oe((0,o.Z)("<div>")).$element(),n=this._$pullDownText=(0,o.Z)("<div>").addClass(zb);this._$pullingDownText=(0,o.Z)("<div>").text(this.option("pullingDownText")).appendTo(n),this._$pulledDownText=(0,o.Z)("<div>").text(this.option("pulledDownText")).appendTo(n),this._$refreshingText=(0,o.Z)("<div>").text(this.option("refreshingText")).appendTo(n),this._$pullDown.empty().append(e).append(t.append(i)).append(n)},_releaseState:function(){this._state=Ub,this._refreshPullDownText()},_refreshPullDownText:function(){var e=this,t=[{element:this._$pullingDownText,visibleState:Ub},{element:this._$pulledDownText,visibleState:Gb},{element:this._$refreshingText,visibleState:qb}];(0,E.S6)(t,(function(t,i){var n=e._state===i.visibleState?"addClass":"removeClass";i.element[n](jb)}))},update:function(){this.callBase(),this._setTopPocketOffset()},_updateDimensions:function(){this.callBase(),this._topPocketSize=this._$topPocket.get(0).clientHeight;var e=this._$scrollViewContent.get(0),t=this._$container.get(0);this._bottomBoundary=Math.max(e.clientHeight-t.clientHeight,0)},_allowedDirections:function(){var e=this.callBase();return e.vertical=e.vertical||this._pullDownEnabled,e},_setTopPocketOffset:function(){this._$topPocket.css({top:-this._topPocketSize})},handleEnd:function(){this.callBase(),this._complete()},handleStop:function(){this.callBase(),this._complete()},_complete:function(){this._state===Gb&&(this._setPullDownOffset(this._topPocketSize),clearTimeout(this._pullDownRefreshTimeout),this._pullDownRefreshTimeout=setTimeout(function(){this._pullDownRefreshing()}.bind(this),400))},_setPullDownOffset:function(e){ve(this._$topPocket,{top:e}),ve(this._$scrollViewContent,{top:e})},handleScroll:function(e){if(this.callBase(e),this._state!==qb){var t=this.location().top,i=(this._location||0)-t;this._location=t,this._isPullDown()?this._pullDownReady():i>0&&this._isReachBottom()?this._reachBottom():this._stateReleased()}},_isPullDown:function(){return this._pullDownEnabled&&this._location>=this._topPocketSize},_isReachBottom:function(){return this._reachBottomEnabled&&Math.round(this._bottomBoundary+Math.floor(this._location))<=1},_reachBottom:function(){this._state!==Yb&&(this._state=Yb,this.reachBottomCallbacks.fire())},_pullDownReady:function(){this._state!==Gb&&(this._state=Gb,this._$pullDown.addClass($b),this._refreshPullDownText())},_stateReleased:function(){this._state!==Ub&&(this._$pullDown.removeClass(Zb).removeClass($b),this._releaseState())},_pullDownRefreshing:function(){this._state!==qb&&(this._state=qb,this._$pullDown.addClass(Zb).removeClass($b),this._refreshPullDownText(),this.pullDownCallbacks.fire())},pullDownEnable:function(e){e&&(this._updateDimensions(),this._setTopPocketOffset()),this._pullDownEnabled=e},reachBottomEnable:function(e){this._reachBottomEnabled=e},pendingRelease:function(){this._state=Gb},release:function(){var e=new ot.BH;return this._updateDimensions(),clearTimeout(this._releaseTimeout),this._state===Yb&&(this._state=Ub),this._releaseTimeout=setTimeout(function(){this._setPullDownOffset(0),this._stateReleased(),this.releaseCallbacks.fire(),this._updateAction(),e.resolve()}.bind(this),Xb),e.promise()},dispose:function(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}}),Qb=Jb,ex="dx-scrollview-pull-down-loading",tx="dx-scrollview-pull-down-indicator",ix="dx-scrollview-pull-down-refreshing",nx="dx-icon-pulldown",ox=0,rx=1,ax=2,sx=4,lx=5,dx=xp.inherit({_init:function(e){this.callBase(e),this._$topPocket=e._$topPocket,this._$pullDown=e._$pullDown,this._$scrollViewContent=(0,o.Z)(e.content()),this._$container=(0,o.Z)(e.container()),this._initCallbacks(),this._location=0},_initCallbacks:function(){this.pullDownCallbacks=(0,Sc["default"])(),this.releaseCallbacks=(0,Sc["default"])(),this.reachBottomCallbacks=(0,Sc["default"])()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var e=(0,o.Z)("<div>").addClass(tx),t=new oe((0,o.Z)("<div>")).$element();this._$icon=(0,o.Z)("<div>").addClass(nx),this._$pullDown.empty().append(this._$icon).append(e.append(t))},_releaseState:function(){this._state=ox,this._releasePullDown(),this._updateDimensions()},_releasePullDown:function(){this._$pullDown.css({opacity:0})},_updateDimensions:function(){this.callBase(),this._topPocketSize=this._$topPocket.get(0).clientHeight;var e=this._$scrollViewContent.get(0),t=this._$container.get(0);this._bottomBoundary=Math.max(e.clientHeight-t.clientHeight,0)},_allowedDirections:function(){var e=this.callBase();return e.vertical=e.vertical||this._pullDownEnabled,e},handleInit:function(e){this.callBase(e),this._state===ox&&0===this._location&&(this._startClientY=(0,R.a0)(e.originalEvent).y,this._state=sx)},handleMove:function(e){this.callBase(e),this._deltaY=(0,R.a0)(e.originalEvent).y-this._startClientY,this._state===sx&&(this._pullDownEnabled&&this._deltaY>0?this._state=lx:this._complete()),this._state===lx&&(e.preventDefault(),this._movePullDown())},_movePullDown:function(){var e=this._getPullDownHeight(),t=Math.min(3*e,this._deltaY+this._getPullDownStartPosition()),i=180*t/e/3;this._$pullDown.css({opacity:1}).toggleClass(ix,t<e),ve(this._$pullDown,{top:t}),this._$icon.css({transform:"rotate("+i+"deg)"})},_isPullDown:function(){return this._pullDownEnabled&&this._state===lx&&this._deltaY>=this._getPullDownHeight()-this._getPullDownStartPosition()},_getPullDownHeight:function(){return Math.round(.05*(0,n.zp)(this._$element))},_getPullDownStartPosition:function(){return-Math.round(1.5*(0,n.zp)(this._$pullDown))},handleEnd:function(){this._isPullDown()&&this._pullDownRefreshing(),this._complete()},handleStop:function(){this._complete()},_complete:function(){this._state!==sx&&this._state!==lx||this._releaseState()},handleScroll:function(e){if(this.callBase(e),this._state!==ax){var t=this.location().top,i=this._location-t;this._location=t,i>0&&this._isReachBottom()?this._reachBottom():this._stateReleased()}},_isReachBottom:function(){return this._reachBottomEnabled&&Math.round(this._bottomBoundary+Math.floor(this._location))<=1},_reachBottom:function(){this.reachBottomCallbacks.fire()},_stateReleased:function(){this._state!==ox&&(this._$pullDown.removeClass(ex),this._releaseState())},_pullDownRefreshing:function(){this._state=ax,this._pullDownRefreshHandler()},_pullDownRefreshHandler:function(){this._refreshPullDown(),this.pullDownCallbacks.fire()},_refreshPullDown:function(){this._$pullDown.addClass(ex),ve(this._$pullDown,{top:this._getPullDownHeight()})},pullDownEnable:function(e){this._$topPocket.toggle(e),this._pullDownEnabled=e},reachBottomEnable:function(e){this._reachBottomEnabled=e},pendingRelease:function(){this._state=rx},release:function(){var e=new ot.BH;return this._updateDimensions(),clearTimeout(this._releaseTimeout),this._releaseTimeout=setTimeout(function(){this._stateReleased(),this.releaseCallbacks.fire(),this._updateAction(),e.resolve()}.bind(this),800),e.promise()},dispose:function(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}}),ux=dx,cx=Math,hx="dx-scrollview-pull-down-loading",px="dx-scrollview-pull-down-ready",fx="dx-scrollview-pull-down-image",gx="dx-scrollview-pull-down-indicator",mx="dx-scrollview-pull-down-text",_x="dx-scrollview-pull-down-text-visible",vx=0,yx=1,Cx=2,bx=3,xx=hp.inherit({ctor:function(){this._topPocketSize=0,this._bottomPocketSize=0,this.callBase.apply(this,arguments),this._initCallbacks(),this._releaseState()},_releaseState:function(){this._state=vx,this._refreshPullDownText()},_refreshPullDownText:function(){var e=this,t=[{element:this._$pullingDownText,visibleState:vx},{element:this._$pulledDownText,visibleState:yx},{element:this._$refreshingText,visibleState:Cx}];(0,E.S6)(t,(function(t,i){var n=e._state===i.visibleState?"addClass":"removeClass";i.element[n](_x)}))},_initCallbacks:function(){this.pullDownCallbacks=(0,Sc["default"])(),this.releaseCallbacks=(0,Sc["default"])(),this.reachBottomCallbacks=(0,Sc["default"])()},_updateBounds:function(){var e="horizontal"!==this._direction;if(e){this._topPocketSize=this._$topPocket.get(0).clientHeight,this._bottomPocketSize=this._$bottomPocket.get(0).clientHeight;var t=this._$container.get(0),i=this._$content.get(0);this._bottomBoundary=Math.max(i.clientHeight-this._bottomPocketSize-t.clientHeight,0)}this.callBase()},_updateScrollbar:function(){this._scrollbar.option({containerSize:this._containerSize(),contentSize:this._contentSize()-this._topPocketSize-this._bottomPocketSize,scaleRatio:this._getScaleRatio()})},_moveContent:function(){this.callBase(),this._isPullDown()?this._pullDownReady():this._isReachBottom()?this._reachBottomReady():this._state!==vx&&this._stateReleased()},_moveScrollbar:function(){this._scrollbar.moveTo(this._topPocketSize+this._location)},_isPullDown:function(){return this._pullDownEnabled&&this._location>=0},_isReachBottom:function(){var e=this._$container.get(0);return this._reachBottomEnabled&&Math.round(this._bottomBoundary-Math.ceil(e.scrollTop))<=1},_scrollComplete:function(){this._inBounds()&&this._state===yx?this._pullDownRefreshing():this._inBounds()&&this._state===bx?this._reachBottomLoading():this.callBase()},_reachBottomReady:function(){this._state!==bx&&(this._state=bx,this._minOffset=this._getMinOffset())},_getMaxOffset:function(){return-this._topPocketSize},_getMinOffset:function(){return cx.min(this.callBase(),-this._topPocketSize)},_reachBottomLoading:function(){this.reachBottomCallbacks.fire()},_pullDownReady:function(){this._state!==yx&&(this._state=yx,this._maxOffset=0,this._$pullDown.addClass(px),this._refreshPullDownText())},_stateReleased:function(){this._state!==vx&&(this._releaseState(),this._updateBounds(),this._$pullDown.removeClass(hx).removeClass(px),this.releaseCallbacks.fire())},_pullDownRefreshing:function(){this._state!==Cx&&(this._state=Cx,this._$pullDown.addClass(hx).removeClass(px),this._refreshPullDownText(),this.pullDownCallbacks.fire())},_releaseHandler:function(){return this._state===vx&&this._moveToBounds(),this._update(),this._releaseTask&&this._releaseTask.abort(),this._releaseTask=(0,v.Wi)(this._release.bind(this)),this._releaseTask.promise},_release:function(){this._stateReleased(),this._scrollComplete()},_reachBottomEnablingHandler:function(e){this._reachBottomEnabled!==e&&(this._reachBottomEnabled=e,this._updateBounds())},_pullDownEnablingHandler:function(e){this._pullDownEnabled!==e&&(this._pullDownEnabled=e,this._considerTopPocketChange(),this._updateHandler())},_considerTopPocketChange:function(){this._location-=(0,n.Cr)(this._$topPocket)||-this._topPocketSize,this._maxOffset=0,this._move()},_pendingReleaseHandler:function(){this._state=yx},dispose:function(){this._releaseTask&&this._releaseTask.abort(),this.callBase()}}),wx=pp.inherit({_init:function(e){this.callBase(e),this._$pullDown=e._$pullDown,this._$topPocket=e._$topPocket,this._$bottomPocket=e._$bottomPocket,this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=(0,Sc["default"])(),this.releaseCallbacks=(0,Sc["default"])(),this.reachBottomCallbacks=(0,Sc["default"])()},render:function(){this._renderPullDown(),this.callBase()},_renderPullDown:function(){var e=(0,o.Z)("<div>").addClass(fx),t=(0,o.Z)("<div>").addClass(gx),i=new oe((0,o.Z)("<div>")).$element(),n=this._$pullDownText=(0,o.Z)("<div>").addClass(mx);this._$pullingDownText=(0,o.Z)("<div>").text(this.option("pullingDownText")).appendTo(n),this._$pulledDownText=(0,o.Z)("<div>").text(this.option("pulledDownText")).appendTo(n),this._$refreshingText=(0,o.Z)("<div>").text(this.option("refreshingText")).appendTo(n),this._$pullDown.empty().append(e).append(t.append(i)).append(n)},pullDownEnable:function(e){this._eventHandler("pullDownEnabling",e)},reachBottomEnable:function(e){this._eventHandler("reachBottomEnabling",e)},_createScroller:function(e){var t=this,i=t._scrollers[e]=new xx(t._scrollerOptions(e));i.pullDownCallbacks.add((function(){t.pullDownCallbacks.fire()})),i.releaseCallbacks.add((function(){t.releaseCallbacks.fire()})),i.reachBottomCallbacks.add((function(){t.reachBottomCallbacks.fire()}))},_scrollerOptions:function(e){return(0,a.l)(this.callBase(e),{$topPocket:this._$topPocket,$bottomPocket:this._$bottomPocket,$pullDown:this._$pullDown,$pullDownText:this._$pullDownText,$pullingDownText:this._$pullingDownText,$pulledDownText:this._$pulledDownText,$refreshingText:this._$refreshingText})},pendingRelease:function(){this._eventHandler("pendingRelease")},release:function(){return this._eventHandler("release").done(this._updateAction)},location:function(){var e=this.callBase();return e.top+=(0,n.Cr)(this._$topPocket),e},dispose:function(){(0,E.S6)(this._scrollers,(function(){this.dispose()})),this.callBase()}}),Tx=wx,Sx="dx-scrollview",Ix=Sx+"-content",Ex=Sx+"-top-pocket",Dx=Sx+"-bottom-pocket",kx=Sx+"-pull-down",Ox=Sx+"-scrollbottom",Ax=Ox+"-indicator",Px=Ox+"-text",Mx=Sx+"-loadpanel",Rx={pullDown:Qb,swipeDown:ux,simulated:Tx},Bx=!(0,s.Ym)(),Vx={finishLoading:v.ZT,release:v.ZT,refresh:v.ZT,scrollOffset:()=>({top:0,left:0}),_optionChanged:function(e){if("onUpdated"!==e.name)return this.callBase.apply(this,arguments)}},Fx=$p.inherit(Bx?Vx:{_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{pullingDownText:y.Z.format("dxScrollView-pullingDownText"),pulledDownText:y.Z.format("dxScrollView-pulledDownText"),refreshingText:y.Z.format("dxScrollView-refreshingText"),reachBottomText:y.Z.format("dxScrollView-reachBottomText"),onPullDown:null,onReachBottom:null,refreshStrategy:"pullDown"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var e=w.Z.real();return"android"===e.platform},options:{refreshStrategy:"swipeDown"}},{device:function(){return(0,x.x2)()},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",reachBottomText:""}}])},_init:function(){this.callBase(),this._loadingIndicatorEnabled=!0},_initScrollableMarkup:function(){this.callBase(),this.$element().addClass(Sx),this._initContent(),this._initTopPocket(),this._initBottomPocket(),this._initLoadPanel()},_initContent:function(){var e=(0,o.Z)("<div>").addClass(Ix);this._$content.wrapInner(e)},_initTopPocket:function(){var e=this._$topPocket=(0,o.Z)("<div>").addClass(Ex),t=this._$pullDown=(0,o.Z)("<div>").addClass(kx);e.append(t),this._$content.prepend(e)},_initBottomPocket:function(){var e=this._$bottomPocket=(0,o.Z)("<div>").addClass(Dx),t=this._$reachBottom=(0,o.Z)("<div>").addClass(Ox),i=(0,o.Z)("<div>").addClass(Ax),n=new oe((0,o.Z)("<div>")).$element(),r=this._$reachBottomText=(0,o.Z)("<div>").addClass(Px);this._updateReachBottomText(),t.append(i.append(n)).append(r),e.append(t),this._$content.append(e)},_initLoadPanel:function(){var e=(0,o.Z)("<div>").addClass(Mx).appendTo(this.$element()),t={shading:!1,delay:400,message:this.option("refreshingText"),position:{of:this.$element()}};this._loadPanel=this._createComponent(e,Hi,t)},_updateReachBottomText:function(){this._$reachBottomText.text(this.option("reachBottomText"))},_createStrategy:function(){var e=this.option("useNative")?this.option("refreshStrategy"):"simulated",t=Rx[e];this._strategy=new t(this),this._strategy.pullDownCallbacks.add(this._pullDownHandler.bind(this)),this._strategy.releaseCallbacks.add(this._releaseHandler.bind(this)),this._strategy.reachBottomCallbacks.add(this._reachBottomHandler.bind(this))},_createActions:function(){this.callBase(),this._pullDownAction=this._createActionByOption("onPullDown"),this._reachBottomAction=this._createActionByOption("onReachBottom"),this._tryRefreshPocketState()},_tryRefreshPocketState:function(){this._pullDownEnable(this.hasActionSubscription("onPullDown")),this._reachBottomEnable(this.hasActionSubscription("onReachBottom"))},on:function(e){var t=this.callBase.apply(this,arguments);return"pullDown"!==e&&"reachBottom"!==e||this._tryRefreshPocketState(),t},_pullDownEnable:function(e){if(0===arguments.length)return this._pullDownEnabled;this._$pullDown&&this._strategy&&(this._$pullDown.toggle(e),this._strategy.pullDownEnable(e),this._pullDownEnabled=e)},_reachBottomEnable:function(e){if(0===arguments.length)return this._reachBottomEnabled;this._$reachBottom&&this._strategy&&(this._$reachBottom.toggle(e),this._strategy.reachBottomEnable(e),this._reachBottomEnabled=e)},_pullDownHandler:function(){this._loadingIndicator(!1),this._pullDownLoading()},_loadingIndicator:function(e){if(arguments.length<1)return this._loadingIndicatorEnabled;this._loadingIndicatorEnabled=e},_pullDownLoading:function(){this.startLoading(),this._pullDownAction()},_reachBottomHandler:function(){this._loadingIndicator(!1),this._reachBottomLoading()},_reachBottomLoading:function(){this.startLoading(),this._reachBottomAction()},_releaseHandler:function(){this.finishLoading(),this._loadingIndicator(!0)},_optionChanged:function(e){switch(e.name){case"onPullDown":case"onReachBottom":this._createActions();break;case"pullingDownText":case"pulledDownText":case"refreshingText":case"refreshStrategy":this._invalidate();break;case"reachBottomText":this._updateReachBottomText();break;default:this.callBase(e)}},content:function(){return(0,se.u)(this._$content.children().eq(1))},release:function(e){return void 0!==e&&this.toggleLoading(!e),this._strategy.release()},toggleLoading:function(e){this._reachBottomEnable(e)},refresh:function(){this.hasActionSubscription("onPullDown")&&(this._strategy.pendingRelease(),this._pullDownLoading())},startLoading:function(){this._loadingIndicator()&&this.$element().is(":visible")&&this._loadPanel.show(),this._lock()},finishLoading:function(){this._loadPanel.hide(),this._unlock()},_dispose:function(){this._strategy.dispose(),this.callBase(),this._loadPanel&&this._loadPanel.$element().remove()}});(0,C.Z)("dxScrollView",Fx);var Hx=Fx,Lx=Hx,Nx=e=>Array.isArray(e)&&e.every((e=>{var t=2===Object.keys(e).length,i="key"in e&&"items"in e;return t&&i&&Array.isArray(e.items)})),Zx={_getSpecificDataSourceOption:function(){var e=this.option("dataSource"),t=!1,i={};return this._getGroupedOption()&&Nx(e)&&(i=e.reduce(((e,i)=>{var n=i.items.map((e=>((0,l.Kn)(e)||(e={text:e},t=!0),"key"in e||(e.key=i.key),e)));return e.concat(n)}),[]),e={store:{type:"array",data:i},group:{selector:"key",keepInitialKeyOrder:!0}},t&&(e.searchExpr="text")),e}};function $x(e){return e?Number(e.replace("px","")):0}function Wx(e){var t,i;return e&&(0,s.Ym)()?null===(t=(i=(0,s.Jj)()).getComputedStyle)||void 0===t?void 0:t.call(i,e):null}function Kx(e,t){var i=Wx(e);return i?$x(i["margin".concat((0,sn.MI)(t))]):0}var zx,jx="dx-list",Ux="dx-list-item",Gx="."+Ux,qx="dx-list-item-icon-container",Yx="dx-list-item-icon",Xx="dx-list-group",Jx="dx-list-group-header",Qx="dx-list-group-body",ew="dx-list-collapsible-groups",tw="dx-list-group-collapsed",iw="dx-list-group-header-indicator",nw="dx-has-next",ow="dx-list-next-button",rw="dx-wrap-item-text",aw=".dx-list-select-all",sw="dxListItemData",lw=70,dw=(0,r.vb)("items"),uw=Jc.inherit({_activeStateUnit:[Gx,aw].join(","),_supportedKeys:function(){var e=this,t=function(t){var o=i(t),r=o.is(e.option("focusedElement"));r&&(!function(t,i){var o=t.position().top;"prev"===i&&(o=t.position().top-(0,n.Cr)(e.$element())+(0,n.zp)(t)),e.scrollTo(o)}(o,t),o=i(t)),e.option("focusedElement",(0,se.u)(o)),e.scrollToItem(o)};function i(t){var i=e.scrollTop(),r=(0,n.Cr)(e.$element()),a=(0,o.Z)(e.option("focusedElement")),s=!0;if(!a.length)return(0,o.Z)();while(s){var l=a[t]();if(!l.length)break;var d=l.position().top+(0,n.zp)(l)/2;s=d<r+i&&d>i,s&&(a=l)}return a}return(0,a.l)(this.callBase(),{leftArrow:v.ZT,rightArrow:v.ZT,pageUp:function(){return t("prev"),!1},pageDown:function(){return t("next"),!1}})},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{hoverStateEnabled:!0,pullRefreshEnabled:!1,scrollingEnabled:!0,showScrollbar:"onScroll",useNativeScrolling:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,pullingDownText:y.Z.format("dxList-pullingDownText"),pulledDownText:y.Z.format("dxList-pulledDownText"),refreshingText:y.Z.format("dxList-refreshingText"),pageLoadingText:y.Z.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:y.Z.format("dxList-nextButtonText"),onItemSwipe:null,grouped:!1,onGroupRendered:null,collapsibleGroups:!1,groupTemplate:"group",indicateLoading:!0,activeStateEnabled:!0,_itemAttributes:{role:"option"},_listAttributes:{role:"listbox"},useInkRipple:!1,wrapItemText:!1,_swipeEnabled:!0,showChevronExpr:function(e){return e?e.showChevron:void 0},badgeExpr:function(e){return e?e.badge:void 0}})},_defaultOptionsRules:function(){var e=(0,x.Vk)();return this.callBase().concat(wp(),[{device:function(){return!b.nativeScrolling},options:{useNativeScrolling:!1}},{device:function(e){return!b.nativeScrolling&&!w.Z.isSimulator()&&"desktop"===w.Z.real().deviceType&&"generic"===e.platform},options:{showScrollbar:"onHover",pageLoadMode:"nextButton"}},{device:function(){return"desktop"===w.Z.real().deviceType&&!w.Z.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,x.x2)(e)},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",pageLoadingText:"",useInkRipple:!0}}])},_visibilityChanged:function(e){e&&this._updateLoadingState(!0)},_itemClass:function(){return Ux},_itemDataKey:function(){return sw},_itemContainer:function(){return this._$container},_saveSelectionChangeEvent:function(e){this._selectionChangeEventInstance=e},_getSelectionChangeEvent:function(){return this._selectionChangeEventInstance},_refreshItemElements:function(){this.option("grouped")?this._itemElementsCache=this._itemContainer().children("."+Xx).children("."+Qx).children(this._itemSelector()):this._itemElementsCache=this._itemContainer().children(this._itemSelector())},_modifyByChanges:function(){this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},reorderItem:function(e,t){var i=this.callBase(e,t);return i.done((function(){this._refreshItemElements()}))},deleteItem:function(e){var t=this.callBase(e);return t.done((function(){this._refreshItemElements()}))},_itemElements:function(){return this._itemElementsCache},_itemSelectHandler:function(e){if("single"!==this.option("selectionMode")||!this.isItemSelected(e.currentTarget))return this.callBase(e)},_allowDynamicItemsAppend:function(){return!0},_init:function(){this.callBase(),this._dataController.resetDataSourcePageIndex(),this._$container=this.$element(),this._initScrollView(),this._feedbackShowTimeout=lw,this._createGroupRenderAction()},_scrollBottomMode:function(){return"scrollBottom"===this.option("pageLoadMode")},_nextButtonMode:function(){return"nextButton"===this.option("pageLoadMode")},_dataSourceOptions:function(){var e=this._scrollBottomMode(),t=this._nextButtonMode();return(0,a.l)(this.callBase(),{paginate:(0,v.IS)(e||t,!0)})},_getGroupedOption:function(){return this.option("grouped")},_getGroupContainerByIndex:function(e){return this._itemContainer().find(".".concat(Xx)).eq(e).find(".".concat(Qx))},_dataSourceFromUrlLoadMode:function(){return"raw"},_initScrollView:function(){var e=this.option("scrollingEnabled"),t=e&&this.option("pullRefreshEnabled"),i=e&&this._scrollBottomMode()&&!!this._dataController.getDataSource();this._scrollView=this._createComponent(this.$element(),cw(),{height:this.option("height"),width:this.option("width"),disabled:this.option("disabled")||!e,onScroll:this._scrollHandler.bind(this),onPullDown:t?this._pullDownHandler.bind(this):null,onReachBottom:i?this._scrollBottomHandler.bind(this):null,showScrollbar:this.option("showScrollbar"),useNative:this.option("useNativeScrolling"),bounceEnabled:this.option("bounceEnabled"),scrollByContent:this.option("scrollByContent"),scrollByThumb:this.option("scrollByThumb"),pullingDownText:this.option("pullingDownText"),pulledDownText:this.option("pulledDownText"),refreshingText:this.option("refreshingText"),reachBottomText:this.option("pageLoadingText"),useKeyboard:!1}),this._$container=(0,o.Z)(this._scrollView.content()),this.option("wrapItemText")&&this._$container.addClass(rw),this._createScrollViewActions()},_createScrollViewActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._pullRefreshAction=this._createActionByOption("onPullRefresh"),this._pageLoadingAction=this._createActionByOption("onPageLoading")},_scrollHandler:function(e){this._scrollAction&&this._scrollAction(e)},_initTemplates:function(){this._templateManager.addDefaultTemplates({group:new Bd((function(e,t){(0,l.PO)(t)?t.key&&e.text(t.key):e.text(String(t))}),["key"],this.option("integrationOptions.watchMethod"))}),this.callBase()},_prepareDefaultItemTemplate:function(e,t){if(this.callBase(e,t),e.icon){var i=Rs(e.icon).addClass(Yx),n=(0,o.Z)("<div>").addClass(qx);n.append(i),t.prepend(n)}},_getBindableFields:function(){return["text","html","icon"]},_updateLoadingState:function(e){var t=this._dataController,i=this._scrollBottomMode()&&e&&!t.isLoading()&&!this._isLastPage();this._shouldContinueLoading(i)?this._infiniteDataLoading():(this._scrollView.release(!i&&!t.isLoading()),this._toggleNextButton(this._shouldRenderNextButton()&&!this._isLastPage()),this._loadIndicationSuppressed(!1))},_shouldRenderNextButton:function(){return this._nextButtonMode()&&this._dataController.isLoaded()},_isDataSourceFirstLoadCompleted:function(e){return(0,l.$K)(e)&&(this._isFirstLoadCompleted=e),this._isFirstLoadCompleted},_dataSourceLoadingChangedHandler:function(e){this._loadIndicationSuppressed()||(e&&this.option("indicateLoading")?this._showLoadingIndicatorTimer=setTimeout(function(){var e,t=!this._itemElements().length,i=!t||this._isDataSourceFirstLoadCompleted();i&&(null===(e=this._scrollView)||void 0===e||e.startLoading())}.bind(this)):(clearTimeout(this._showLoadingIndicatorTimer),this._scrollView&&this._scrollView.finishLoading()),e||this._isDataSourceFirstLoadCompleted(!1))},_dataSourceChangedHandler:function(){!this._shouldAppendItems()&&(0,s.Ym)()&&this._scrollView&&this._scrollView.scrollTo(0),this.callBase.apply(this,arguments),this._isDataSourceFirstLoadCompleted(!0)},_refreshContent:function(){this._prepareContent(),this._fireContentReadyAction()},_hideLoadingIfLoadIndicationOff:function(){this.option("indicateLoading")||this._dataSourceLoadingChangedHandler(!1)},_loadIndicationSuppressed:function(e){if(!arguments.length)return this._isLoadIndicationSuppressed;this._isLoadIndicationSuppressed=e},_scrollViewIsFull:function(){var e=this._scrollView;return!e||(0,n.Cr)(e.content())>(0,n.Cr)(e.container())},_pullDownHandler:function(e){this._pullRefreshAction(e);var t=this._dataController;t.getDataSource()&&!t.isLoading()?(this._clearSelectedItems(),t.pageIndex(0),t.reload()):this._updateLoadingState()},_shouldContinueLoading:function(e){var t,i,o=(0,n.Cr)(this._scrollView.content())-(0,n.Cr)(this._scrollView.container())<(null!==(t=null===(i=this._scrollView.scrollOffset())||void 0===i?void 0:i.top)&&void 0!==t?t:0);return e&&(!this._scrollViewIsFull()||o)},_infiniteDataLoading:function(){var e=this.$element().is(":visible");e&&(clearTimeout(this._loadNextPageTimer),this._loadNextPageTimer=setTimeout((()=>{this._loadNextPage()})))},_scrollBottomHandler:function(e){this._pageLoadingAction(e);var t=this._dataController;t.isLoading()||this._isLastPage()?this._updateLoadingState():this._loadNextPage()},_renderItems:function(e){this.option("grouped")?((0,E.S6)(e,this._renderGroup.bind(this)),this._attachGroupCollapseEvent(),this._renderEmptyMessage(),(0,x.x2)()&&this.attachGroupHeaderInkRippleEvents()):this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},_attachGroupCollapseEvent:function(){var e=(0,R.V4)(A.u,this.NAME),t="."+Jx,i=this.$element(),n=this.option("collapsibleGroups");i.toggleClass(ew,n),re.Z.off(i,e,t),n&&re.Z.on(i,e,t,function(e){this._createAction(function(e){var t=(0,o.Z)(e.event.currentTarget).parent();this._collapseGroupHandler(t),this.option("focusStateEnabled")&&this.option("focusedElement",(0,se.u)(t.find("."+Ux).eq(0)))}.bind(this),{validatingTargetName:"element"})({event:e})}.bind(this))},_collapseGroupHandler:function(e,t){var i=new ot.BH;if(e.hasClass(tw)===t)return i.resolve();var o=e.children("."+Qx),r=(0,n.zp)(o),a=0;return 0===r&&((0,n.QQ)(o,"auto"),a=(0,n.zp)(o)),e.toggleClass(tw,t),Ut.animate(o,{type:"custom",from:{height:r},to:{height:a},duration:200,complete:function(){this.updateDimensions(),this._updateLoadingState(),i.resolve()}.bind(this)}),i.promise()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this._initialized&&(this._renderEmptyMessage(),this._updateLoadingState())},_initMarkup:function(){this._itemElementsCache=(0,o.Z)(),this.$element().addClass(jx),this.callBase(),this.option("useInkRipple")&&this._renderInkRipple(),this.setAria("role",this.option("_listAttributes").role)},_renderInkRipple:function(){this._inkRipple=el()},_toggleActiveState:function(e,t,i){this.callBase.apply(this,arguments);var n=this;if(this._inkRipple){var o={element:e,event:i};t?(0,x.x2)()?this._inkRippleTimer=setTimeout((function(){n._inkRipple.showWave(o)}),lw/2):n._inkRipple.showWave(o):(clearTimeout(this._inkRippleTimer),this._inkRipple.hideWave(o))}},_postprocessRenderItem:function(e){this._refreshItemElements(),this.callBase.apply(this,arguments),this.option("_swipeEnabled")&&this._attachSwipeEvent((0,o.Z)(e.itemElement))},_attachSwipeEvent:function(e){var t=(0,R.V4)(th,this.NAME);re.Z.on(e,t,this._itemSwipeEndHandler.bind(this))},_itemSwipeEndHandler:function(e){this._itemDXEventHandler(e,"onItemSwipe",{direction:e.offset<0?"left":"right"})},_nextButtonHandler:function(e){this._pageLoadingAction(e);var t=this._dataController;t.getDataSource()&&!t.isLoading()&&(this._scrollView.toggleLoading(!0),this._$nextButton.detach(),this._loadIndicationSuppressed(!0),this._loadNextPage())},_renderGroup:function(e,t){var i=(0,o.Z)("<div>").addClass(Xx).appendTo(this._itemContainer()),n=(0,o.Z)("<div>").addClass(Jx).appendTo(i),r=this.option("groupTemplate"),a=this._getTemplate(t.template||r,t,e,n),s={index:e,itemData:t,container:(0,se.u)(n)};this._createItemByTemplate(a,s),(0,x.x2)()&&(0,o.Z)("<div>").addClass(iw).prependTo(n),this._renderingGroupIndex=e;var l=(0,o.Z)("<div>").addClass(Qx).appendTo(i);(0,E.S6)(dw(t)||[],function(t,i){this._renderItem({group:e,item:t},i,l)}.bind(this)),this._groupRenderAction({groupElement:(0,se.u)(i),groupIndex:e,groupData:t})},downInkRippleHandler:function(e){this._toggleActiveState((0,o.Z)(e.currentTarget),!0,e)},upInkRippleHandler:function(e){this._toggleActiveState((0,o.Z)(e.currentTarget),!1)},attachGroupHeaderInkRippleEvents:function(){var e="."+Jx,t=this.$element();this._downInkRippleHandler=this._downInkRippleHandler||this.downInkRippleHandler.bind(this),this._upInkRippleHandler=this._upInkRippleHandler||this.upInkRippleHandler.bind(this);var i=[t,"dxpointerdown",e,this._downInkRippleHandler],n=[t,"dxpointerup dxpointerout",e,this._upInkRippleHandler];re.Z.off(...i),re.Z.on(...i),re.Z.off(...n),re.Z.on(...n)},_createGroupRenderAction:function(){this._groupRenderAction=this._createActionByOption("onGroupRendered")},_clean:function(){clearTimeout(this._inkRippleTimer),this._$nextButton&&(this._$nextButton.remove(),this._$nextButton=null),this.callBase.apply(this,arguments)},_dispose:function(){this._isDataSourceFirstLoadCompleted(!1),clearTimeout(this._holdTimer),clearTimeout(this._loadNextPageTimer),clearTimeout(this._showLoadingIndicatorTimer),this.callBase()},_toggleDisabledState:function(e){this.callBase(e),this._scrollView.option("disabled",e||!this.option("scrollingEnabled"))},_toggleNextButton:function(e){var t=this._dataController,i=this._getNextButton();this.$element().toggleClass(nw,e),e&&t.isLoaded()&&i.appendTo(this._itemContainer()),e||i.detach()},_getNextButton:function(){return this._$nextButton||(this._$nextButton=this._createNextButton()),this._$nextButton},_createNextButton:function(){var e=(0,o.Z)("<div>").addClass(ow),t=(0,o.Z)("<div>").appendTo(e);return this._createComponent(t,cd,{text:this.option("nextButtonText"),onClick:this._nextButtonHandler.bind(this),type:(0,x.x2)()?"default":void 0,integrationOptions:{}}),e},_moveFocus:function(){this.callBase.apply(this,arguments),this.scrollToItem(this.option("focusedElement"))},_refresh:function(){if((0,s.Ym)()){var e=this._scrollView.scrollTop();this.callBase(),e&&this._scrollView.scrollTo(e)}else this.callBase()},_optionChanged:function(e){switch(e.name){case"pageLoadMode":this._toggleNextButton(e.value),this._initScrollView();break;case"dataSource":this.callBase(e),this._initScrollView(),this._isDataSourceFirstLoadCompleted(!1);break;case"items":this.callBase(e),this._isDataSourceFirstLoadCompleted(!1);break;case"pullingDownText":case"pulledDownText":case"refreshingText":case"pageLoadingText":case"showScrollbar":case"bounceEnabled":case"scrollByContent":case"scrollByThumb":case"useNativeScrolling":case"scrollingEnabled":case"pullRefreshEnabled":this._initScrollView(),this._updateLoadingState();break;case"nextButtonText":case"onItemSwipe":case"useInkRipple":this._invalidate();break;case"onScroll":case"onPullRefresh":case"onPageLoading":this._createScrollViewActions();break;case"grouped":case"collapsibleGroups":case"groupTemplate":this._invalidate();break;case"wrapItemText":this._$container.toggleClass(rw,e.value);break;case"onGroupRendered":this._createGroupRenderAction();break;case"width":case"height":this.callBase(e),this._scrollView.option(e.name,e.value),this._scrollView.update();break;case"indicateLoading":this._hideLoadingIfLoadIndicationOff();break;case"visible":this.callBase(e),this._scrollView.update();break;case"rtlEnabled":this._initScrollView(),this.callBase(e);break;case"showChevronExpr":case"badgeExpr":this._invalidate();break;case"_swipeEnabled":case"_listAttributes":break;default:this.callBase(e)}},_extendActionArgs:function(e){if(!this.option("grouped"))return this.callBase(e);var t=e.closest("."+Xx),i=t.find("."+Ux);return(0,a.l)(this.callBase(e),{itemIndex:{group:t.index(),item:i.index(e)}})},expandGroup:function(e){var t=new ot.BH,i=this._itemContainer().find("."+Xx).eq(e);return this._collapseGroupHandler(i,!1).done(function(){t.resolveWith(this)}.bind(this)),t.promise()},collapseGroup:function(e){var t=new ot.BH,i=this._itemContainer().find("."+Xx).eq(e);return this._collapseGroupHandler(i,!0).done(function(){t.resolveWith(this)}.bind(this)),t},updateDimensions:function(){var e=this,t=new ot.BH;return e._scrollView?e._scrollView.update().done((function(){!e._scrollViewIsFull()&&e._updateLoadingState(!0),t.resolveWith(e)})):t.resolveWith(e),t.promise()},reload:function(){this.callBase(),this.scrollTo(0),this._pullDownHandler()},repaint:function(){this.scrollTo(0),this.callBase()},scrollTop:function(){return this._scrollView.scrollOffset().top},clientHeight:function(){return this._scrollView.clientHeight()},scrollHeight:function(){return this._scrollView.scrollHeight()},scrollBy:function(e){this._scrollView.scrollBy(e)},scrollTo:function(e){this._scrollView.scrollTo(e)},scrollToItem:function(e){var t=this._editStrategy.getItemElement(e),i=null===t||void 0===t?void 0:t.get(0);this._scrollView.scrollToElement(i,{bottom:Kx(i,"bottom")})},_dimensionChanged:function(){this.updateDimensions()}}).include(Zx);function cw(){return zx||Lx}uw.ItemClass=Nb;var hw="dx-list-item-selected",pw="dx-list-item-response-wait",fw=uw.inherit({_supportedKeys(){var e=this,t=this.callBase(),i=(i,n)=>{var o=this._editStrategy,r=this.option("focusedElement"),a=o.getNormalizedIndex(r),s=a===this._getLastItemIndex();if(!s||!this._dataController.isLoading())if(i.shiftKey&&e.option("itemDragging.allowReordering")){var l=a+(n?-1:1),d=o.getItemElement(l);this.reorderItem(r,d),this.scrollToItem(r),i.preventDefault()}else{var u=this._editProvider,c=u.handleKeyboardEvents(a,n);c||(n?t.upArrow(i):t.downArrow(i))}};return(0,a.l)({},t,{del:t=>{e.option("allowItemDeleting")&&(t.preventDefault(),e.deleteItem(e.option("focusedElement")))},upArrow:e=>i(e,!0),downArrow:e=>i(e),enter:function(e){this._editProvider.handleEnterPressing(e)||t.enter.apply(this,arguments)},space:function(e){this._editProvider.handleEnterPressing(e)||t.space.apply(this,arguments)}})},_updateSelection(){this._editProvider.afterItemsRendered(),this.callBase()},_getLastItemIndex(){return this._itemElements().length-1},_refreshItemElements(){this.callBase();var e=this._editProvider.getExcludedItemSelectors();e.length&&(this._itemElementsCache=this._itemElementsCache.not(e))},_isItemStrictEquals:function(e,t){var i=e&&e.__dx_key__;return!(i&&!this.key()&&this._selection.isItemSelected(i))&&this.callBase(e,t)},_getDefaultOptions(){return(0,a.l)(this.callBase(),{showSelectionControls:!1,selectionMode:"none",selectAllMode:"page",onSelectAllValueChanged:null,selectAllText:y.Z.format("dxList-selectAll"),menuItems:[],menuMode:"context",allowItemDeleting:!1,itemDeleteMode:"static",itemDragging:{}})},_defaultOptionsRules(){return this.callBase().concat([{device:e=>"ios"===e.platform,options:{menuMode:"slide",itemDeleteMode:"slideItem"}},{device:{platform:"android"},options:{itemDeleteMode:"swipe"}}])},_init(){this.callBase(),this._initEditProvider()},_initDataSource(){this.callBase(),this._isPageSelectAll()||this._dataSource&&this._dataSource.requireTotalCount(!0)},_isPageSelectAll(){return"page"===this.option("selectAllMode")},_initEditProvider(){this._editProvider=new Mb(this)},_disposeEditProvider(){this._editProvider&&this._editProvider.dispose()},_refreshEditProvider(){this._disposeEditProvider(),this._initEditProvider()},_initEditStrategy(){this.option("grouped")?this._editStrategy=new Cb(this):this.callBase()},_initMarkup(){this._refreshEditProvider(),this.callBase()},_renderItems(){this.callBase(...arguments),this._editProvider.afterItemsRendered()},_selectedItemClass:()=>hw,_itemResponseWaitClass:()=>pw,_itemClickHandler(e){var t=(0,o.Z)(e.currentTarget);if(!t.is(".dx-state-disabled, .dx-state-disabled *")){var i=this._editProvider.handleClick(t,e);i||(this._saveSelectionChangeEvent(e),this.callBase(...arguments))}},_shouldFireContextMenuEvent(){return this.callBase(...arguments)||this._editProvider.contextMenuHandlerExists()},_itemHoldHandler(e){var t=(0,o.Z)(e.currentTarget);if(!t.is(".dx-state-disabled, .dx-state-disabled *")){var i=(0,R.z6)(e)&&this._editProvider.handleContextMenu(t,e);i?e.handledByEditProvider=!0:this.callBase(...arguments)}},_getItemContainer:function(e){if(this.option("grouped")){var t,i=null===(t=this._editStrategy.getIndexByItemData(e))||void 0===t?void 0:t.group;return this._getGroupContainerByIndex(i)}return this.callBase(e)},_itemContextMenuHandler(e){var t=(0,o.Z)(e.currentTarget);if(!t.is(".dx-state-disabled, .dx-state-disabled *")){var i=!e.handledByEditProvider&&this._editProvider.handleContextMenu(t,e);i?e.preventDefault():this.callBase(...arguments)}},_postprocessRenderItem(e){this.callBase(...arguments),this._editProvider.modifyItemElement(e)},_clean(){this._disposeEditProvider(),this.callBase()},focusListItem(e){var t=this._editStrategy.getItemElement(e);this.option("focusedElement",t),this.focus(),this.scrollToItem(this.option("focusedElement"))},_optionChanged(e){switch(e.name){case"selectAllMode":this._initDataSource(),this._dataController.pageIndex(0),this._dataController.load();break;case"grouped":this._clearSelectedItems(),delete this._renderingGroupIndex,this._initEditStrategy(),this.callBase(e);break;case"showSelectionControls":case"menuItems":case"menuMode":case"allowItemDeleting":case"itemDeleteMode":case"itemDragging":case"selectAllText":this._invalidate();break;case"onSelectAllValueChanged":break;default:this.callBase(e)}},selectAll(){return this._selection.selectAll(this._isPageSelectAll())},unselectAll(){return this._selection.deselectAll(this._isPageSelectAll())},isSelectAll(){return this._selection.getSelectAllState(this._isPageSelectAll())},getFlatIndexByItemElement(e){return this._itemElements().index(e)},getItemElementByFlatIndex(e){var t=this._itemElements();return e<0||e>=t.length?(0,o.Z)():t.eq(e)},getItemByIndex(e){return this._editStrategy.getItemDataByIndex(e)}}),gw=fw;function mw(e){return class{constructor(){throw new Error("Module '".concat(e,"' not found"))}static getInstance(){}}}var _w=mw("TextBox"),vw={_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{searchMode:"",searchExpr:null,searchValue:"",searchEnabled:!1,searchEditorOptions:{}})},_initMarkup:function(){this._renderSearch(),this.callBase()},_renderSearch:function(){var e=this.$element(),t=this.option("searchEnabled"),i=this._addWidgetPrefix("search"),n=this._addWidgetPrefix("with-search");if(!t)return e.removeClass(n),void this._removeSearchBox();var r=this._getSearchEditorOptions();this._searchEditor?this._searchEditor.option(r):(e.addClass(n),this._$searchEditorElement=(0,o.Z)("<div>").addClass(i).prependTo(e),this._searchEditor=this._createComponent(this._$searchEditorElement,_w,r))},_removeSearchBox:function(){this._$searchEditorElement&&this._$searchEditorElement.remove(),delete this._$searchEditorElement,delete this._searchEditor},_getSearchEditorOptions:function(){var e=this,t=e.option("searchEditorOptions"),i=y.Z.format("Search");return(0,a.l)({mode:"search",placeholder:i,tabIndex:e.option("tabIndex"),value:e.option("searchValue"),valueChangeEvent:"input",inputAttr:{"aria-label":i},onValueChanged:function(t){var i=e.option("searchTimeout");e._valueChangeDeferred=new ot.BH,clearTimeout(e._valueChangeTimeout),e._valueChangeDeferred.done(function(){this.option("searchValue",t.value)}.bind(e)),t.event&&"input"===t.event.type&&i?e._valueChangeTimeout=setTimeout((function(){e._valueChangeDeferred.resolve()}),i):e._valueChangeDeferred.resolve()}},t)},_getAriaTarget:function(){return this.option("searchEnabled")?this._itemContainer(!0):this.$element()},_focusTarget:function(){return this.option("searchEnabled")?this._itemContainer(!0):this.callBase()},_updateFocusState:function(e,t){this.option("searchEnabled")&&this._toggleFocusClass(t,this.$element()),this.callBase(e,t)},getOperationBySearchMode:function(e){return"equals"===e?"=":e},_cleanAria:function(e){this.setAria({role:null,activedescendant:null},e),e.attr("tabIndex",null)},_optionChanged:function(e){switch(e.name){case"searchEnabled":case"searchEditorOptions":this._cleanAria(this.option("searchEnabled")?this.$element():this._itemContainer()),this._invalidate();break;case"searchExpr":case"searchMode":case"searchValue":if(!this._dataSource)return void Xt.Z.log("W1009");"searchMode"===e.name?this._dataSource.searchOperation(this.getOperationBySearchMode(e.value)):this._dataSource[e.name](e.value),this._dataSource.load();break;case"searchTimeout":break;default:this.callBase(e)}},focus:function(){this.option("focusedElement")||!this.option("searchEnabled")?this.callBase():this._searchEditor&&this._searchEditor.focus()},_refresh:function(){this._valueChangeDeferred&&this._valueChangeDeferred.resolve(),this.callBase()},setEditorClass:function(e){_w=e}},yw=gw.inherit(vw).inherit({_addWidgetPrefix:function(e){return"dx-list-"+e},_getCombinedFilter:function(){var e=this._dataController,t={filter:e.filter()};e.addSearchFilter(t);var i=t.filter;return i},_initDataSource:function(){var e=this.option("searchValue"),t=this.option("searchExpr"),i=this.option("searchMode");this.callBase();var n=this._dataController;e&&e.length&&n.searchValue(e),i.length&&n.searchOperation(vw.getOperationBySearchMode(i)),t&&n.searchExpr(t)}}),Cw=yw;(0,C.Z)("dxList",Cw);var bw=Cw,xw=i(93078),ww=(0,a.l)({},g.Z,{_dataExpressionDefaultOptions:function(){return{items:[],dataSource:null,itemTemplate:"item",value:null,valueExpr:"this",displayExpr:void 0}},_initDataExpressions:function(){this._compileValueGetter(),this._compileDisplayGetter(),this._initDynamicTemplates(),this._initDataSource(),this._itemsToDataSource()},_itemsToDataSource:function(){this.option("dataSource")||(this._dataSource=new cu.o({store:new xw.Z(this.option("items")),pageSize:0}),this._initDataController())},_compileDisplayGetter:function(){this._displayGetter=(0,r.vb)(this._displayGetterExpr())},_displayGetterExpr:function(){return this.option("displayExpr")},_compileValueGetter:function(){this._valueGetter=(0,r.vb)(this._valueGetterExpr())},_valueGetterExpr:function(){return this.option("valueExpr")||"this"},_loadValue:function(e){var t=new ot.BH;return e=this._unwrappedValue(e),(0,l.$K)(e)?(this._loadSingle(this._valueGetterExpr(),e).done(function(i){this._isValueEquals(this._valueGetter(i),e)?t.resolve(i):t.reject()}.bind(this)).fail((function(){t.reject()})),this._loadValueDeferred=t,t.promise()):t.reject().promise()},_rejectValueLoading:function(){var e;null===(e=this._loadValueDeferred)||void 0===e||e.reject({shouldSkipCallback:!0})},_getCurrentValue:function(){return this.option("value")},_unwrappedValue:function(e){var t;return e=null!==(t=e)&&void 0!==t?t:this._getCurrentValue(),e&&this._dataSource&&"this"===this._valueGetterExpr()&&(e=this._getItemKey(e)),$f.Z.unwrap(e)},_getItemKey:function(e){var t=this._dataSource.key();if(Array.isArray(t)){for(var i={},n=0,o=t.length;n<o;n++)i[t[n]]=e[t[n]];return i}return t&&"object"===typeof e&&(e=e[t]),e},_isValueEquals:function(e,t){var i=this._dataSource&&this._dataSource.key(),n=this._compareValues(e,t);return!n&&i&&(0,l.$K)(e)&&(0,l.$K)(t)&&(n=Array.isArray(i)?this._compareByCompositeKey(e,t,i):this._compareByKey(e,t,i)),n},_compareByCompositeKey:function(e,t,i){var n=l.Kn;if(!n(e)||!n(t))return!1;for(var o=0,r=i.length;o<r;o++)if(e[i[o]]!==t[i[o]])return!1;return!0},_compareByKey:function(e,t,i){var n=$f.Z.unwrap,o=(0,v.IS)(n(e[i]),e),r=(0,v.IS)(n(t[i]),t);return this._compareValues(o,r)},_compareValues:function(e,t){return(0,r.Ex)(e,!0)===(0,r.Ex)(t,!0)},_initDynamicTemplates:v.ZT,_setCollectionWidgetItemTemplate:function(){this._initDynamicTemplates(),this._setCollectionWidgetOption("itemTemplate",this.option("itemTemplate"))},_getCollectionKeyExpr:function(){var e=this.option("valueExpr"),t=(0,l.HD)(e)&&"this"!==e||(0,l.mf)(e);return t?e:null},_dataExpressionOptionChanged:function(e){switch(e.name){case"items":this._itemsToDataSource(),this._setCollectionWidgetOption("items");break;case"dataSource":this._initDataSource();break;case"itemTemplate":this._setCollectionWidgetItemTemplate();break;case"valueExpr":this._compileValueGetter();break;case"displayExpr":this._compileDisplayGetter(),this._initDynamicTemplates(),this._setCollectionWidgetOption("displayExpr")}}}),Tw=ww,Sw=i(20085),Iw=(0,s.Jj)(),Ew=".dx-list-item",Dw="dxListItemData",kw="dx-dropdownlist-popup-wrapper",Ow="input",Aw=["startswith","contains","endwith","notcontains"],Pw="android"!==w.Z.real().platform,Mw=Ky.inherit({_supportedKeys:function(){var e=this.callBase();return(0,a.l)({},e,{tab:function(t){if(this._allowSelectItemByTab()){this._saveValueChangeEvent(t);var i=(0,o.Z)(this._list.option("focusedElement"));i.length&&this._setSelectedElement(i)}e.tab.apply(this,arguments)},space:v.ZT,home:v.ZT,end:v.ZT})},_allowSelectItemByTab:function(){return this.option("opened")&&"instantly"===this.option("applyValueMode")},_setSelectedElement:function(e){var t=this._valueGetter(this._list._getItemData(e));this._setValue(t)},_setValue:function(e){this.option("value",e)},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),(0,a.l)(Tw._dataExpressionDefaultOptions(),{displayValue:void 0,searchEnabled:!1,searchMode:"contains",searchTimeout:500,minSearchLength:0,searchExpr:null,valueChangeEvent:"input change keyup",selectedItem:null,noDataText:y.Z.format("dxCollectionWidget-noDataText"),encodeNoDataText:!1,onSelectionChanged:null,onItemClick:v.ZT,showDataBeforeSearch:!1,grouped:!1,groupTemplate:"group",popupPosition:{my:"left top",at:"left bottom",offset:{h:0,v:0},collision:"flip"},wrapItemText:!1,useItemTextAsTitle:!1}))},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{popupPosition:{offset:{v:-1}}}},{device:{platform:"generic"},options:{buttonsLocation:"bottom center"}}])},_setOptionsByReference:function(){this.callBase(),(0,a.l)(this._optionsByReference,{value:!0,selectedItem:!0,displayValue:!0})},_init:function(){this.callBase(),this._initDataExpressions(),this._initActions(),this._setListDataSource(),this._validateSearchMode(),this._clearSelectedItem(),this._initItems()},_setListFocusedElementOptionChange:function(){this._list._updateParentActiveDescendant=this._updateActiveDescendant.bind(this)},_initItems:function(){var e=this.option().items;e&&!e.length&&this._dataSource&&(this.option().items=this._dataSource.items())},_initActions:function(){this._initContentReadyAction(),this._initSelectionChangedAction(),this._initItemClickAction()},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initSelectionChangedAction:function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})},_initItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({item:new Sw.s("item")})},_isEditable:function(){return this.callBase()||this.option("searchEnabled")},_saveFocusOnWidget:function(e){this._list&&this._list.initialOption("focusStateEnabled")&&this._focusInput()},_fitIntoRange:function(e,t,i){return e>i?t:e<t?i:e},_items:function(){var e=this._getPlainItems(!this._list&&this._dataSource.items()),t=new pu.Z(e).filter("disabled","<>",!0).toArray();return t},_calcNextItem:function(e){var t=this._items(),i=this._fitIntoRange(this._getSelectedIndex()+e,0,t.length-1);return t[i]},_getSelectedIndex:function(){var e=this._items(),t=this.option("selectedItem"),i=-1;return(0,E.S6)(e,function(e,n){if(this._isValueEquals(n,t))return i=e,!1}.bind(this)),i},_createPopup:function(){this.callBase(),this._updateCustomBoundaryContainer(),this._popup.$wrapper().addClass(this._popupWrapperClass());var e=this._popup.$content();re.Z.off(e,"mouseup"),re.Z.on(e,"mouseup",this._saveFocusOnWidget.bind(this))},_updateCustomBoundaryContainer:function(){var e=this.option("dropDownOptions.container"),t=e&&(0,o.Z)(e);if(t&&t.length&&!(0,l.FJ)(t.get(0))){var i=[].slice.call(t.parents());i.unshift(t.get(0)),(0,E.S6)(i,function(e,t){return t!==(0,o.Z)("body").get(0)&&("hidden"===Iw.getComputedStyle(t).overflowY?(this._$customBoundaryContainer=(0,o.Z)(t),!1):void 0)}.bind(this))}},_popupWrapperClass:function(){return kw},_renderInputValue:function(){var e=this._getCurrentValue();return this._rejectValueLoading(),this._loadInputValue(e,this._setSelectedItem.bind(this)).always(this.callBase.bind(this,e))},_loadInputValue:function(e,t){return this._loadItem(e).always(t)},_getItemFromPlain:function(e,t){var i,n;return t&&"object"!==typeof e&&(t.itemByValue||(t.itemByValue={},i=this._getPlainItems(),i.forEach((function(e){t.itemByValue[this._valueGetter(e)]=e}),this)),n=t.itemByValue[e]),n||(i=this._getPlainItems(),n=(0,v.h3)(i,function(t){return this._isValueEquals(this._valueGetter(t),e)}.bind(this))[0]),n},_loadItem:function(e,t){var i=this._getItemFromPlain(e,t);return void 0!==i?(new ot.BH).resolve(i).promise():this._loadValue(e)},_getPlainItems:function(e){var t=[];e=e||this.option("items")||this._dataSource.items()||[];for(var i=0;i<e.length;i++)e[i]&&e[i].items?t=t.concat(e[i].items):t.push(e[i]);return t},_updateActiveDescendant(){var e,t=this.option("opened"),i=null===(e=this._list)||void 0===e?void 0:e.getFocusedItemId(),n=(0,o.Z)("#".concat(i)).length>0,r=t&&n&&i;this.setAria({activedescendant:r||null})},_setSelectedItem:function(e){var t=this._displayValue(e);this.option("selectedItem",(0,v.IS)(e,null)),this.option("displayValue",t)},_displayValue:function(e){return this._displayGetter(e)},_refreshSelected:function(){var e={};this._listItemElements().each(function(t,i){var n=(0,o.Z)(i),r=this._valueGetter(n.data(Dw)),a=this._isSelectedValue(r,e);a?this._list.selectItem(n):this._list.unselectItem(n)}.bind(this))},_popupShownHandler:function(){this.callBase(),this._setFocusPolicy()},_setFocusPolicy:function(){this.option("focusStateEnabled")&&this._list&&this._list.option("focusedElement",null)},_isSelectedValue:function(e){return this._isValueEquals(e,this.option("value"))},_validateSearchMode:function(){var e=this.option("searchMode"),t=e.toLowerCase();if(!Aw.includes(t))throw Xt.Z.Error("E1019",e)},_clearSelectedItem:function(){this.option("selectedItem",null)},_processDataSourceChanging:function(){this._initDataController(),this._setListOption("_dataController",this._dataController),this._setListDataSource(),this._renderInputValue().fail(function(){this._isCustomValueAllowed()||this._clearSelectedItem()}.bind(this))},_isCustomValueAllowed:function(){return this.option("displayCustomValue")},reset:function(){this.callBase(),this._clearFilter(),this._clearSelectedItem()},_listItemElements:function(){return this._$list?this._$list.find(Ew):(0,o.Z)()},_popupConfig:function(){return(0,a.l)(this.callBase(),{templatesRenderAsynchronously:!1,autoResizeEnabled:!1,maxHeight:this._getMaxHeight.bind(this)})},_renderPopupContent:function(){this.callBase(),this._renderList()},_getKeyboardListeners(){var e=this._canListHaveFocus();return this.callBase().concat([!e&&this._list])},_setAriaTargetForList:function(){this._list._getAriaTarget=this._getAriaTarget.bind(this)},_renderList:function(){this._listId="dx-"+(new Li.Z)._value;var e=this._$list=(0,o.Z)("<div>").attr("id",this._listId).appendTo(this._popup.$content());this._list=this._createComponent(e,bw,this._listConfig()),this._refreshList(),this._setAriaTargetForList(),this._list.option("_listAttributes",{role:"combobox"}),this._renderPreventBlurOnListClick(),this._setListFocusedElementOptionChange()},_renderPreventBlurOnListClick:function(){var e=(0,R.V4)("mousedown","dxDropDownList");re.Z.off(this._$list,e),re.Z.on(this._$list,e,(e=>e.preventDefault()))},_getControlsAria(){return this._list&&this._listId},_renderOpenedState:function(){this.callBase(),this._list&&this._updateActiveDescendant(),this.setAria("owns",this._popup&&this._popupContentId)},_setDefaultAria:function(){this.setAria({haspopup:"listbox",autocomplete:"list"})},_refreshList:function(){this._list&&this._shouldRefreshDataSource()&&this._setListDataSource()},_shouldRefreshDataSource:function(){var e=!!this._list.option("dataSource");return e!==this._needPassDataSourceToList()},_isDesktopDevice:function(){return"desktop"===w.Z.real().deviceType},_listConfig:function(){var e={selectionMode:"single",_templates:this.option("_templates"),templateProvider:this.option("templateProvider"),noDataText:this.option("noDataText"),encodeNoDataText:this.option("encodeNoDataText"),grouped:this.option("grouped"),wrapItemText:this.option("wrapItemText"),useItemTextAsTitle:this.option("useItemTextAsTitle"),onContentReady:this._listContentReadyHandler.bind(this),itemTemplate:this.option("itemTemplate"),indicateLoading:!1,keyExpr:this._getCollectionKeyExpr(),displayExpr:this._displayGetterExpr(),groupTemplate:this.option("groupTemplate"),onItemClick:this._listItemClickAction.bind(this),dataSource:this._getDataSource(),_dataController:this._dataController,hoverStateEnabled:!!this._isDesktopDevice()&&this.option("hoverStateEnabled"),focusStateEnabled:!!this._isDesktopDevice()&&this.option("focusStateEnabled")};return this._canListHaveFocus()||(e.tabIndex=null),e},_canListHaveFocus:()=>!1,_getDataSource:function(){return this._needPassDataSourceToList()?this._dataSource:null},_dataSourceOptions:function(){return{paginate:!1}},_getGroupedOption:function(){return this.option("grouped")},_dataSourceFromUrlLoadMode:function(){return"raw"},_listContentReadyHandler:function(){this._list=this._list||this._$list.dxList("instance"),this.option("deferRendering")||this._refreshSelected(),this._dimensionChanged(),this._contentReadyAction()},_setListOption:function(e,t){this._setWidgetOption("_list",arguments)},_listItemClickAction:function(e){this._listItemClickHandler(e),this._itemClickAction(e)},_listItemClickHandler:v.ZT,_setListDataSource:function(){this._list&&(this._setListOption("dataSource",this._getDataSource()),this._needPassDataSourceToList()||this._setListOption("items",[]))},_needPassDataSourceToList:function(){return this.option("showDataBeforeSearch")||this._isMinSearchLengthExceeded()},_isMinSearchLengthExceeded:function(){return this._searchValue().toString().length>=this.option("minSearchLength")},_needClearFilter:function(){return!this._canKeepDataSource()&&this._needPassDataSourceToList()},_canKeepDataSource:function(){var e=this._isMinSearchLengthExceeded();return this._dataController.isLoaded()&&this.option("showDataBeforeSearch")&&this.option("minSearchLength")&&!e&&!this._isLastMinSearchLengthExceeded},_searchValue:function(){return this._input().val()||""},_getSearchEvent:function(){return(0,R.V4)(Ow,this.NAME+"Search")},_getCompositionStartEvent:function(){return(0,R.V4)("compositionstart",this.NAME+"CompositionStart")},_getCompositionEndEvent:function(){return(0,R.V4)("compositionend",this.NAME+"CompositionEnd")},_getSetFocusPolicyEvent:function(){return(0,R.V4)("input",this.NAME+"FocusPolicy")},_renderEvents:function(){this.callBase(),re.Z.on(this._input(),this._getSetFocusPolicyEvent(),(()=>{this._setFocusPolicy()})),this._shouldRenderSearchEvent()&&(re.Z.on(this._input(),this._getSearchEvent(),(e=>{this._searchHandler(e)})),Pw&&(re.Z.on(this._input(),this._getCompositionStartEvent(),(()=>{this._isTextCompositionInProgress(!0)})),re.Z.on(this._input(),this._getCompositionEndEvent(),(e=>{this._isTextCompositionInProgress(void 0),this._searchHandler(e,this._searchValue())}))))},_shouldRenderSearchEvent:function(){return this.option("searchEnabled")},_refreshEvents:function(){re.Z.off(this._input(),this._getSearchEvent()),re.Z.off(this._input(),this._getSetFocusPolicyEvent()),Pw&&(re.Z.off(this._input(),this._getCompositionStartEvent()),re.Z.off(this._input(),this._getCompositionEndEvent())),this.callBase()},_isTextCompositionInProgress:function(e){if(!arguments.length)return this._isTextComposition;this._isTextComposition=e},_searchHandler:function(e,t){if(!this._isTextCompositionInProgress())if(this._isMinSearchLengthExceeded()){var i=this.option("searchTimeout");i?(this._clearSearchTimer(),this._searchTimer=setTimeout((()=>{this._searchDataSource(t)}),i)):this._searchDataSource(t)}else this._searchCanceled()},_searchCanceled:function(){this._clearSearchTimer(),this._needClearFilter()&&this._filterDataSource(null),this._refreshList()},_searchDataSource:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._searchValue();this._filterDataSource(e)},_filterDataSource:function(e){this._clearSearchTimer();var t=this._dataController;t.searchExpr(this.option("searchExpr")||this._displayGetterExpr()),t.searchOperation(this.option("searchMode")),t.searchValue(e),t.load().done(this._dataSourceFiltered.bind(this,e))},_clearFilter:function(){var e=this._dataController;e.searchValue()&&e.searchValue(null)},_dataSourceFiltered:function(){this._isLastMinSearchLengthExceeded=this._isMinSearchLengthExceeded(),this._refreshList(),this._refreshPopupVisibility()},_shouldOpenPopup:function(){return this._hasItemsToShow()},_refreshPopupVisibility:function(){if(!this.option("readOnly")&&this._searchValue()){var e=this._shouldOpenPopup();e&&!this._isFocused()||(this.option("opened",e),e&&this._dimensionChanged())}},_dataSourceChangedHandler:function(e){0===this._dataController.pageIndex()?this.option().items=e:this.option().items=this.option().items.concat(e)},_hasItemsToShow:function(){var e=this._dataController,t=e.items()||[],i=t.length,n=this._needPassDataSourceToList();return!(!n||!i)},_clearSearchTimer:function(){clearTimeout(this._searchTimer),delete this._searchTimer},_popupShowingHandler:function(){this._dimensionChanged()},_dimensionChanged:function(){this.callBase(arguments),this._popup&&this._updatePopupDimensions()},_needPopupRepaint:function(){var e=this._dataController,t=e.pageIndex(),i=(0,l.$K)(this._pageIndex)&&t<=this._pageIndex||e.isLastPage()&&!this._list._scrollViewIsFull();return this._pageIndex=t,i},_updatePopupDimensions:function(){this._needPopupRepaint()&&this._popup.repaint(),this._list&&this._list.updateDimensions()},_getMaxHeight:function(){var e=this.$element(),t=this._$customBoundaryContainer,i=e.offset().top-(t?t.offset().top:0),o=(0,n.zp)(Iw),r=t?Math.min((0,n.zp)(t),o):o,a=Math.max(i,r-i-(0,n.zp)(e));return Math.min(.5*r,a)},_clean:function(){this._list&&delete this._list,delete this._isLastMinSearchLengthExceeded,this.callBase()},_dispose:function(){this._clearSearchTimer(),this.callBase()},_setCollectionWidgetOption:function(){this._setListOption.apply(this,arguments)},_setSubmitValue:function(){var e=this.option("value"),t=this._shouldUseDisplayValue(e)?this._displayGetter(e):e;this._getSubmitElement().val(t)},_shouldUseDisplayValue:function(e){return"this"===this.option("valueExpr")&&(0,l.Kn)(e)},_optionChanged:function(e){switch(this._dataExpressionOptionChanged(e),e.name){case"hoverStateEnabled":case"focusStateEnabled":this._isDesktopDevice()&&this._setListOption(e.name,e.value),this.callBase(e);break;case"items":this.option("dataSource")||this._processDataSourceChanging();break;case"dataSource":this._processDataSourceChanging();break;case"valueExpr":this._renderValue(),this._setListOption("keyExpr",this._getCollectionKeyExpr());break;case"displayExpr":this._renderValue(),this._setListOption("displayExpr",this._displayGetterExpr());break;case"searchMode":this._validateSearchMode();break;case"minSearchLength":this._refreshList();break;case"searchEnabled":case"showDataBeforeSearch":case"searchExpr":this._invalidate();break;case"onContentReady":this._initContentReadyAction();break;case"onSelectionChanged":this._initSelectionChangedAction();break;case"onItemClick":this._initItemClickAction();break;case"grouped":case"groupTemplate":case"wrapItemText":case"noDataText":case"encodeNoDataText":case"useItemTextAsTitle":this._setListOption(e.name);break;case"displayValue":this.option("text",e.value);break;case"itemTemplate":case"searchTimeout":break;case"selectedItem":e.previousValue!==e.value&&this._selectionChangedAction({selectedItem:e.value});break;default:this.callBase(e)}}}).include(Tw,Zx);(0,C.Z)("dxDropDownList",Mw);var Rw=Mw,Bw="dx-radiobutton",Vw="dx-radiobutton-icon",Fw="dx-radiobutton-icon-dot",Hw="dx-radiobutton-checked",Lw="dx-radiobutton-icon-checked",Nw=zc.inherit({_supportedKeys:function(){return(0,a.l)(this.callBase(),{space:function(e){e.preventDefault(),this._clickAction({event:e})}})},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,value:!1})},_canValueBeChangedByClick:function(){return!0},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===w.Z.real().deviceType&&!w.Z.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this.$element().addClass(Bw)},_initMarkup:function(){this.callBase(),this._renderIcon(),this._renderCheckedState(this.option("value")),this._renderClick(),this.setAria("role","radio")},_renderIcon:function(){this._$icon=(0,o.Z)("<div>").addClass(Vw),(0,o.Z)("<div>").addClass(Fw).appendTo(this._$icon),this.$element().append(this._$icon)},_renderCheckedState:function(e){this.$element().toggleClass(Hw,e).find("."+Vw).toggleClass(Lw,e),this.setAria("checked",e)},_renderClick:function(){var e=(0,R.V4)(A.u,this.NAME);this._clickAction=this._createAction(function(e){this._clickHandler(e.event)}.bind(this)),re.Z.off(this.$element(),e),re.Z.on(this.$element(),e,function(e){this._clickAction({event:e})}.bind(this))},_clickHandler:function(e){this._saveValueChangeEvent(e),this.option("value",!0)},_optionChanged:function(e){switch(e.name){case"value":this._renderCheckedState(e.value),this.callBase(e);break;default:this.callBase(e)}}});(0,C.Z)("dxRadioButton",Nw);var Zw=Nw,$w="dxListEditDecorator",Ww=(0,R.V4)(Qc,$w),Kw=(0,R.V4)(eh,$w),zw=(0,R.V4)(th,$w),jw=P.Z.inherit({ctor:function(e){this._list=e,this._init()},_init:v.ZT,_shouldHandleSwipe:!1,_attachSwipeEvent:function(e){var t={itemSizeFunc:function(){return this._clearSwipeCache&&(this._itemWidthCache=(0,n.dz)(this._list.$element()),this._clearSwipeCache=!1),this._itemWidthCache}.bind(this)};re.Z.on(e.$itemElement,Ww,t,this._itemSwipeStartHandler.bind(this)),re.Z.on(e.$itemElement,Kw,this._itemSwipeUpdateHandler.bind(this)),re.Z.on(e.$itemElement,zw,this._itemSwipeEndHandler.bind(this))},_itemSwipeStartHandler:function(e){var t=(0,o.Z)(e.currentTarget);t.is(".dx-state-disabled, .dx-state-disabled *")?e.cancel=!0:(clearTimeout(this._list._inkRippleTimer),this._swipeStartHandler(t,e))},_itemSwipeUpdateHandler:function(e){var t=(0,o.Z)(e.currentTarget);this._swipeUpdateHandler(t,e)},_itemSwipeEndHandler:function(e){var t=(0,o.Z)(e.currentTarget);this._swipeEndHandler(t,e),this._clearSwipeCache=!0},beforeBag:v.ZT,afterBag:v.ZT,_commonOptions:function(){return{activeStateEnabled:this._list.option("activeStateEnabled"),hoverStateEnabled:this._list.option("hoverStateEnabled"),focusStateEnabled:this._list.option("focusStateEnabled")}},modifyElement:function(e){this._shouldHandleSwipe&&(this._attachSwipeEvent(e),this._clearSwipeCache=!0)},afterRender:v.ZT,handleClick:v.ZT,handleKeyboardEvents:v.ZT,handleEnterPressing:v.ZT,handleContextMenu:v.ZT,_swipeStartHandler:v.ZT,_swipeUpdateHandler:v.ZT,_swipeEndHandler:v.ZT,visibilityChange:v.ZT,getExcludedSelectors:v.ZT,dispose:v.ZT}),Uw=jw,Gw="dx-list-select-decorator-enabled",qw="dx-list-select-all",Yw="dx-list-select-all-checkbox",Xw="dx-list-select-all-label",Jw="dx-list-select-checkbox-container",Qw="dx-list-select-checkbox",eT="dx-list-select-radiobutton-container",tT="dx-list-select-radiobutton",iT="dx-state-focused",nT=(0,R.V4)(A.u,"dxListEditDecorator");xb("selection","default",Uw.inherit({_init:function(){this.callBase.apply(this,arguments);var e=this._list.option("selectionMode");this._singleStrategy="single"===e,this._containerClass=this._singleStrategy?eT:Jw,this._controlClass=this._singleStrategy?tT:Qw,this._controlWidget=this._singleStrategy?Zw:ry,this._list.$element().addClass(Gw)},beforeBag:function(e){var t=e.$itemElement,i=e.$container.addClass(this._containerClass),n=(0,o.Z)("<div>").addClass(this._controlClass).appendTo(i);new this._controlWidget(n,(0,a.l)(this._commonOptions(),{value:this._isSelected(t),focusStateEnabled:!1,hoverStateEnabled:!1,onValueChanged:function(e){e.event&&this._list._saveSelectionChangeEvent(e.event),this._processCheckedState(t,e.value),e.event&&e.event.stopPropagation()}.bind(this)}))},modifyElement:function(e){this.callBase.apply(this,arguments);var t=e.$itemElement,i=this._controlWidget.getInstance(t.find("."+this._controlClass));re.Z.on(t,"stateChanged",function(e,t){i.option("value",t)}.bind(this))},_updateSelectAllState:function(){this._$selectAll&&this._selectAllCheckBox.option("value",this._list.isSelectAll())},afterRender:function(){"all"===this._list.option("selectionMode")&&(this._$selectAll?this._updateSelectAllState():this._renderSelectAll())},handleKeyboardEvents:function(e,t){var i=!t,n=this._list,o=this._$selectAll,r=n._getLastItemIndex(),a=t&&0===e||i&&e===r,s=!!o;return!(!s||!a)&&(n.option("focusedElement",o),n.scrollToItem(n.option("focusedElement")),!0)},handleEnterPressing:function(e){if(this._$selectAll&&this._$selectAll.hasClass(iT))return e.target=this._$selectAll.get(0),this._list._saveSelectionChangeEvent(e),this._selectAllCheckBox.option("value",!this._selectAllCheckBox.option("value")),!0},_renderSelectAll:function(){var e=this._$selectAll=(0,o.Z)("<div>").addClass(qw),t=this._list,i=t._supportedKeys().downArrow.bind(t);this._selectAllCheckBox=t._createComponent((0,o.Z)("<div>").addClass(Yw).appendTo(e),ry,{focusStateEnabled:!1,hoverStateEnabled:!1}),this._selectAllCheckBox.registerKeyHandler("downArrow",i),(0,o.Z)("<div>").addClass(Xw).text(this._list.option("selectAllText")).appendTo(e),this._list.itemsContainer().prepend(e),this._updateSelectAllState(),this._attachSelectAllHandler()},_attachSelectAllHandler:function(){this._selectAllCheckBox.option("onValueChanged",this._selectAllHandler.bind(this)),re.Z.off(this._$selectAll,nT),re.Z.on(this._$selectAll,nT,this._selectAllClickHandler.bind(this))},_selectAllHandler:function(e){e.event&&e.event.stopPropagation();var t=this._selectAllCheckBox.option("value");e.event&&this._list._saveSelectionChangeEvent(e.event),!0===t?this._selectAllItems():!1===t&&this._unselectAllItems(),this._list._createActionByOption("onSelectAllValueChanged")({value:t})},_checkSelectAllCapability:function(){var e=this._list,t=e._dataController;return!("allPages"===e.option("selectAllMode")&&e.option("grouped")&&!t.group())||(Xt.Z.log("W1010"),!1)},_selectAllItems:function(){this._checkSelectAllCapability()&&this._list._selection.selectAll("page"===this._list.option("selectAllMode"))},_unselectAllItems:function(){this._checkSelectAllCapability()&&this._list._selection.deselectAll("page"===this._list.option("selectAllMode"))},_selectAllClickHandler:function(e){this._list._saveSelectionChangeEvent(e),this._selectAllCheckBox.option("value",!this._selectAllCheckBox.option("value"))},_isSelected:function(e){return this._list.isItemSelected(e)},_processCheckedState:function(e,t){t?this._list.selectItem(e):this._list.unselectItem(e)},dispose:function(){this._disposeSelectAll(),this._list.$element().removeClass(Gw),this.callBase.apply(this,arguments)},_disposeSelectAll:function(){this._$selectAll&&(this._$selectAll.remove(),this._$selectAll=null)}}));var oT=".dx-state-disabled",rT="dx-selectbox",aT="dx-selectbox-popup",sT="dx-selectbox-container",lT="dx-selectbox-popup-wrapper",dT=Rw.inherit({_supportedKeys:function(){var e=this,t=this.callBase(),i=function(e){var t=this._isEditable();t?this._valueSubstituted()&&(this._preventFiltering=!0):this.option("showClearButton")&&(e.preventDefault(),this.reset()),this._savedTextRemoveEvent=e,this._preventSubstitution=!0},n=function(){e.option("searchEnabled")&&e._valueSubstituted()&&e._searchHandler()};return(0,a.l)({},t,{tab:function(){this.option("opened")&&"instantly"===this.option("applyValueMode")&&this._resetCaretPosition(!0),t.tab&&t.tab.apply(this,arguments),this._cancelSearchIfNeed()},upArrow:function(e){if(t.upArrow&&t.upArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(e),!0},downArrow:function(e){if(t.downArrow&&t.downArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(e),!0},leftArrow:function(){n(),t.leftArrow&&t.leftArrow.apply(this,arguments)},rightArrow:function(){n(),t.rightArrow&&t.rightArrow.apply(this,arguments)},home:function(){n(),t.home&&t.home.apply(this,arguments)},end:function(){n(),t.end&&t.end.apply(this,arguments)},escape:function(){var e=t.escape&&t.escape.apply(this,arguments);return this._cancelEditing(),null===e||void 0===e||e},enter:function(e){var i=this.option("opened"),n=this._input().val().trim(),o=n&&this._list&&!this._list.option("focusedElement");if(!n&&(0,l.$K)(this.option("value"))&&this.option("allowClearing"))this._saveValueChangeEvent(e),this.option({selectedItem:null,value:null}),this.close();else{if(this.option("acceptCustomValue"))return e.preventDefault(),o&&(i&&this._toggleOpenState(),this._valueChangeEventHandler(e)),i;if(t.enter&&t.enter.apply(this,arguments))return i}},space:function(e){var t=this.option("opened"),i=this.option("searchEnabled"),n=this.option("acceptCustomValue");if(t&&!i&&!n)return e.preventDefault(),this._valueChangeEventHandler(e),!0},backspace:i,del:i})},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{placeholder:y.Z.format("Select"),fieldTemplate:null,customItemCreateEvent:"change",valueChangeEvent:"change",acceptCustomValue:!1,onCustomItemCreating:function(e){(0,l.$K)(e.customItem)||(e.customItem=e.text)},showSelectionControls:!1,allowClearing:!0,tooltipEnabled:!1,openOnFieldClick:!0,showDropDownButton:!0,displayCustomValue:!1,useHiddenSubmitElement:!0})},_init:function(){this.callBase(),this._initCustomItemCreatingAction()},_initMarkup:function(){this.$element().addClass(rT),this._renderTooltip(),this.callBase(),this._$container.addClass(sT)},_createPopup:function(){this.callBase(),this._popup.$element().addClass(aT),this._popup.$overlayContent().attr("tabindex",-1)},_popupWrapperClass:function(){return this.callBase()+" "+lT},_setDeprecatedOptions(){this.callBase(),(0,a.l)(this._deprecatedOptions,{valueChangeEvent:{since:"22.2",alias:"customItemCreateEvent"}})},_cancelEditing:function(){!this.option("searchEnabled")&&this._list&&(this._focusListElement(null),this._updateField(this.option("selectedItem")))},_renderOpenedState:function(){this.callBase(),this.option("opened")&&(this._scrollToSelectedItem(),this._focusSelectedElement())},_focusSelectedElement:function(){var e,t=this._searchValue();if(t){var{items:i,selectedItem:n}=this.option(),o=this._list._itemElements(),r=null!==(e=null===i||void 0===i?void 0:i.indexOf(n))&&void 0!==e?e:-1,a=-1===r||this._isCustomItemSelected()?null:o.eq(r);this._focusListElement(a)}else this._focusListElement(null)},_renderFocusedElement:function(){if(this._list){var e=this._searchValue();if(e&&!this.option("acceptCustomValue")){var t=this._list._itemElements(),i=t.not(oT).eq(0);this._focusListElement(i)}else this._focusListElement(null)}},_focusListElement:function(e){this._preventInputValueRender=!0,this._list.option("focusedElement",(0,se.u)(e)),delete this._preventInputValueRender},_scrollToSelectedItem:function(){this._list&&this._list.scrollToItem(this._list.option("selectedItem"))},_listContentReadyHandler:function(){this.callBase();var e=this._dataController.paginate();e&&this._needPopupRepaint()||this._scrollToSelectedItem()},_renderValue:function(){return this._renderInputValue(),this._setSubmitValue(),(new ot.BH).resolve()},_renderInputValue:function(){return this.callBase().always(function(){this._renderInputValueAsync()}.bind(this))},_renderInputValueAsync:function(){this._renderTooltip(),this._renderInputValueImpl().always(function(){this._refreshSelected()}.bind(this))},_renderInputValueImpl:function(){return this._renderField(),(new ot.BH).resolve()},_setNextItem:function(e){var t=this._calcNextItem(e),i=this._valueGetter(t);this._setValue(i)},_setNextValue:function(e){var t=this._dataController.isLoaded()?(new ot.BH).resolve():this._dataController.load();t.done(function(){var t=this._getSelectedIndex(),i=this._dataController.pageSize(),n=this._dataController.isLastPage(),o=t===this._items().length-1;this._saveValueChangeEvent(e);var r="downArrow"===(0,R.EV)(e)?1:-1;i&&!n&&o&&r>0?(this._popup||this._createPopup(),this._dataController.isLoading()||this._list._loadNextPage().done(this._setNextItem.bind(this,r))):this._setNextItem(r)}.bind(this))},_setSelectedItem:function(e){var t=!this._isCustomValueAllowed()&&void 0===e;this.callBase(t?null:e),t||this._isEditable()&&!this._isCustomItemSelected()||this._setListOption("selectedItem",this.option("selectedItem"))},_isCustomValueAllowed:function(){return this.option("acceptCustomValue")||this.callBase()},_displayValue:function(e){return e=!(0,l.$K)(e)&&this._isCustomValueAllowed()?this.option("value"):e,this.callBase(e)},_listConfig:function(){var e=(0,a.l)(this.callBase(),{pageLoadMode:"scrollBottom",onSelectionChanged:this._getSelectionChangeHandler(),selectedItem:this.option("selectedItem"),onFocusedItemChanged:this._listFocusedItemChangeHandler.bind(this)});return this.option("showSelectionControls")&&(0,a.l)(e,{showSelectionControls:!0,selectionByClick:!0}),e},_listFocusedItemChangeHandler:function(e){if(!this._preventInputValueRender){var t=e.component,i=(0,o.Z)(t.option("focusedElement")),n=t._getItemData(i);this._updateField(n)}},_updateField:function(e){var t=this._getTemplateByOption("fieldTemplate");if(!t||!this.option("fieldTemplate")){var i=this._displayGetter(e);return this.option("text",i),void this._renderDisplayText(i)}this._renderField()},_getSelectionChangeHandler:function(){return this.option("showSelectionControls")?this._selectionChangeHandler.bind(this):v.ZT},_selectionChangeHandler:function(e){(0,E.S6)(e.addedItems||[],function(e,t){this._setValue(this._valueGetter(t))}.bind(this))},_getActualSearchValue:function(){return this._dataController.searchValue()},_toggleOpenState:function(e){if(!this.option("disabled")){if(e=arguments.length?e:!this.option("opened"),e||this._shouldClearFilter()||this._restoreInputText(!0),this._wasSearch()&&e){this._wasSearch(!1);var t=this.option("showDataBeforeSearch")||this._isMinSearchLengthExceeded();if(t&&this._dataController.getDataSource()){if(this._searchTimer)return;var i=this._getActualSearchValue();i&&this._wasSearch(!0),this._filterDataSource(i||null)}else this._setListOption("items",[])}e&&this._scrollToSelectedItem(),this.callBase(e)}},_renderTooltip:function(){this.option("tooltipEnabled")&&this.$element().attr("title",this.option("displayValue"))},_renderDimensions:function(){this.callBase(),this._dimensionChanged()},_isValueEqualInputText:function(){var e=this.option("selectedItem");if(null===e)return!1;var t=this._displayGetter(e),i=t?String(t):"",n=this._searchValue();return i===n},_popupHidingHandler:function(){this._isValueEqualInputText()&&this._cancelEditing(),this.callBase()},_popupHiddenHandler:function(){this.callBase(),this._shouldCancelSearch()&&(this._wasSearch(!1),this._searchCanceled(),this._shouldCancelSearch(!1))},_restoreInputText:function(e){this.option("readOnly")||this._loadItemDeferred&&this._loadItemDeferred.always(function(){var{acceptCustomValue:t,text:i,selectedItem:n}=this.option();t?e||this._isValueChanging||(this._updateField(null!==n&&void 0!==n?n:this._createCustomItem(i)),this._clearFilter()):this.option("searchEnabled")&&!this._searchValue()&&this.option("allowClearing")?this._clearTextValue():this._isValueEqualInputText()||this._renderInputValue().always(function(e){var t=(0,v.IS)(e,n);this._setSelectedItem(t),this._updateField(t),this._clearFilter()}.bind(this))}.bind(this))},_valueChangeEventIncludesBlur:function(){var e=this.option(this._getValueChangeEventOptionName());return e.includes("blur")},_isPreventedFocusOutEvent:function(e){return this._preventNestedFocusEvent(e)||this._valueChangeEventIncludesBlur()},_focusOutHandler:function(e){if(!this._isPreventedFocusOutEvent(e)){var t=this._isOverlayNestedTarget(e.relatedTarget);t||(this._restoreInputText(),this._clearSearchTimer()),this._cancelSearchIfNeed(e)}e.target=this._input().get(0),this.callBase(e)},_cancelSearchIfNeed:function(e){var{searchEnabled:t}=this.option(),i=this._isOverlayNestedTarget(null===e||void 0===e?void 0:e.relatedTarget),n=this._wasSearch()&&t&&!i;if(n){var o,r=null===(o=this._popup)||void 0===o?void 0:o._hideAnimationProcessing;this._clearSearchTimer(),r?this._shouldCancelSearch(!0):(this._wasSearch(!1),this._searchCanceled())}},_shouldCancelSearch:function(e){if(!arguments.length)return this._shouldCancelSearchValue;this._shouldCancelSearchValue=e},_isOverlayNestedTarget:function(e){return!!(0,o.Z)(e).closest(".".concat(lT)).length},_clearTextValue:function(){this.option("selectedItem")&&(this._savedTextRemoveEvent&&this._saveValueChangeEvent(this._savedTextRemoveEvent),this.option("value",null)),delete this._savedTextRemoveEvent},_shouldOpenPopup:function(){return this._needPassDataSourceToList()&&this._wasSearch()},_isFocused:function(){var e=ke["default"].getActiveElement(this.element());return this.callBase()&&(0,o.Z)(e).closest(this._input()).length>0},_getValueChangeEventOptionName:function(){return"customItemCreateEvent"},_renderValueChangeEvent:function(){this._isEditable()&&this.callBase()},_fieldRenderData:function(){var e=this._list&&this.option("opened")&&(0,o.Z)(this._list.option("focusedElement"));return e&&e.length?this._list._getItemData(e):this.option("selectedItem")},_isSelectedValue:function(e){return this._isValueEquals(e,this.option("value"))},_shouldCloseOnItemClick:function(){return!(this.option("showSelectionControls")&&"single"!==this.option("selectionMode"))},_listItemClickHandler:function(e){var t=this._getCurrentValue();this._focusListElement((0,o.Z)(e.itemElement)),this._saveValueChangeEvent(e.event),this._completeSelection(this._valueGetter(e.itemData)),this._shouldCloseOnItemClick()&&this.option("opened",!1),this.option("searchEnabled")&&t===this._valueGetter(e.itemData)&&this._updateField(e.itemData),this._shouldClearFilter()&&this._cancelSearchIfNeed()},_shouldClearFilter:function(){return this._wasSearch()},_completeSelection:function(e){this._setValue(e)},_loadItem:function(e,t){var i=this,n=new ot.BH;return this.callBase(e,t).done(function(e){n.resolve(e)}.bind(this)).fail(function(t){if(null===t||void 0===t||!t.shouldSkipCallback){var o=i.option("selectedItem");i.option("acceptCustomValue")&&e===i._valueGetter(o)?n.resolve(o):n.reject()}}.bind(this)),n.promise()},_loadInputValue:function(e,t){return this._loadItemDeferred=this._loadItem(e).always(t),this._loadItemDeferred},_isCustomItemSelected:function(){var e=this.option("selectedItem"),t=this._searchValue(),i=this._displayGetter(e);return!i||t!==i.toString()},_valueChangeEventHandler:function(e){this.option("acceptCustomValue")&&this._isCustomItemSelected()&&!this._isValueChanging&&(this._isValueChanging=!0,this._customItemAddedHandler(e))},_initCustomItemCreatingAction:function(){this._customItemCreatingAction=this._createActionByOption("onCustomItemCreating")},_createCustomItem:function(e){var t={text:e},i=this._customItemCreatingAction(t),n=(0,v.IS)(i,t.customItem);return(0,l.$K)(i)&&ae.Z.log("W0015","onCustomItemCreating","customItem"),n},_customItemAddedHandler:function(e){var t=this._searchValue(),i=this._createCustomItem(t);if(this._saveValueChangeEvent(e),void 0===i)throw this._renderValue(),ae.Z.Error("E0121");(0,l.tI)(i)?(0,ot.p4)(i).done(this._setCustomItem.bind(this)).fail(this._setCustomItem.bind(this,null)):this._setCustomItem(i)},_setCustomItem:function(e){this._disposed||(e=e||null,this.option("selectedItem",e),this._cancelSearchIfNeed(),this._setValue(this._valueGetter(e)),this._renderDisplayText(this._displayGetter(e)),this._isValueChanging=!1)},_clearValueHandler:function(e){return this._preventFiltering=!0,this.callBase(e),this._searchCanceled(),!1},_wasSearch:function(e){if(!arguments.length)return!!this._wasSearchValue;this._wasSearchValue=e},_searchHandler:function(){this._preventFiltering?delete this._preventFiltering:(this._needPassDataSourceToList()&&this._wasSearch(!0),this.callBase(arguments))},_dataSourceFiltered:function(e){this.callBase(),null!==e&&(this._renderInputSubstitution(),this._renderFocusedElement())},_valueSubstituted:function(){var e=this._input().get(0),t=this._searchValue().length,i=0===e.selectionStart&&e.selectionEnd===t,n=e.selectionStart!==e.selectionEnd,o=t===e.selectionEnd;return this._wasSearch()&&n&&!i&&o&&this._shouldSubstitutionBeRendered()},_shouldSubstitutionBeRendered:function(){return!this._preventSubstitution&&this.option("searchEnabled")&&!this.option("acceptCustomValue")&&"startswith"===this.option("searchMode")},_renderInputSubstitution:function(){if(this._shouldSubstitutionBeRendered()){var e=this._list&&this._getPlainItems(this._list.option("items"))[0];if(e){var t=this._input(),i=t.val().length;if(0!==i){var n=t.get(0),o=this._displayGetter(e).toString();n.value=o,this._caret({start:i,end:o.length})}}}else delete this._preventSubstitution},_dispose:function(){this._renderInputValueAsync=v.ZT,delete this._loadItemDeferred,this.callBase()},_optionChanged:function(e){switch(e.name){case"customItemCreateEvent":this._refreshValueChangeEvent(),this._refreshFocusEvent(),this._refreshEvents();break;case"onCustomItemCreating":this._initCustomItemCreatingAction();break;case"tooltipEnabled":this._renderTooltip();break;case"displayCustomValue":case"acceptCustomValue":case"showSelectionControls":this._invalidate();break;case"allowClearing":break;default:this.callBase(e)}}});(0,C.Z)("dxSelectBox",dT);var uT=dT,cT="dx-timeview",hT="dx-timeview-clock",pT="dx-timeview-field",fT="dx-timeview-hourarrow",gT="dx-timeview-time-separator",mT="dx-timeview-format12",_T=-1,vT=1,yT="dx-timeview-minutearrow",CT=function(e,t,i){bT(e,t,i)},bT=function(e,t,i){e.css("transform","rotate("+t+"deg) translate(0,"+i+"px)")},xT=zc.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{value:new Date(Date.now()),use24HourFormat:!0,_showClock:!0,_arrowOffset:5,stylingMode:void 0})},_getValue:function(){return this.option("value")||new Date},_init:function(){this.callBase(),this.$element().addClass(cT)},_render:function(){this.callBase(),this._renderBox(),this._updateTime()},_renderBox:function(){var e=(0,o.Z)("<div>").appendTo(this.$element()),t=[];this.option("_showClock")&&t.push({ratio:1,shrink:0,baseSize:"auto",template:this._renderClock.bind(this)}),t.push({ratio:0,shrink:0,baseSize:"auto",template:this._renderField.bind(this)}),this._createComponent(e,ng,{height:"100%",width:"100%",direction:"col",items:t})},_renderClock:function(e,t,i){this._$hourArrow=(0,o.Z)("<div>").addClass(fT),this._$minuteArrow=(0,o.Z)("<div>").addClass(yT);var n=(0,o.Z)(i);n.addClass(hT).append(this._$hourArrow).append(this._$minuteArrow),this.setAria("role","presentation",n)},_updateClock:function(){var e=this._getValue(),t=e.getHours()/12*360+e.getMinutes()/60*30,i=e.getMinutes()/60*360;CT(this._$hourArrow,t,this.option("_arrowOffset")),CT(this._$minuteArrow,i,this.option("_arrowOffset"))},_getBoxItems:function(e){var t=[{ratio:0,shrink:0,baseSize:"auto",template:()=>this._hourBox.$element()},{ratio:0,shrink:0,baseSize:"auto",template:(0,o.Z)("<div>").addClass(gT).text(gy.Z.getTimeSeparator())},{ratio:0,shrink:0,baseSize:"auto",template:()=>this._minuteBox.$element()}];return e&&t.push({ratio:0,shrink:0,baseSize:"auto",template:()=>this._format12.$element()}),t},_renderField:function(){var e=!this.option("use24HourFormat");return this._createHourBox(e),this._createMinuteBox(),e&&this._createFormat12Box(),this._createComponent((0,o.Z)("<div>").addClass(pT),ng,{direction:"row",align:"center",crossAlign:"center",items:this._getBoxItems(e)}).$element()},_createHourBox:function(e){var t=this._hourBox=this._createComponent((0,o.Z)("<div>"),rv,(0,a.l)({min:-1,max:e?13:24,value:this._getValue().getHours(),onValueChanged:this._onHourBoxValueChanged.bind(this),onKeyboardHandled:e=>this._keyboardHandler(e)},this._getNumberBoxConfig()));t.setAria("label","hours")},_isPM:function(){return!this.option("use24HourFormat")&&1===this._format12.option("value")},_onHourBoxValueChanged:function(e){var{value:t,component:i}=e,n=this._getValue(),o=new Date(n),r=this._convertMaxHourToMin(t);i.option("value",r),this._isPM()&&(r+=12),o.setHours(r),Iy.normalizeTime(o),this.option("value",o)},_convertMaxHourToMin:function(e){var t=this.option("use24HourFormat")?24:12;return(t+e)%t},_createMinuteBox:function(){var e=this._minuteBox=this._createComponent((0,o.Z)("<div>"),rv,(0,a.l)({min:-1,max:60,value:this._getValue().getMinutes(),onKeyboardHandled:e=>this._keyboardHandler(e),onValueChanged:e=>{var{value:t,component:i}=e,n=(60+t)%60;i.option("value",n);var o=new Date(this._getValue());o.setMinutes(n),Iy.normalizeTime(o),this.option("value",o)}},this._getNumberBoxConfig()));e.setAria("label","minutes")},_createFormat12Box:function(){var e=gy.Z.getPeriodNames(),t=this._format12=this._createComponent((0,o.Z)("<div>").addClass(mT),uT,{items:[{value:_T,text:e[0]},{value:vT,text:e[1]}],valueExpr:"value",displayExpr:"text",onKeyboardHandled:e=>this._keyboardHandler(e),onValueChanged:e=>{var{value:t}=e,i=this._getValue().getHours(),n=new Date(this._getValue()),o=(i+12*t)%24;n.setHours(o),this.option("value",n)},value:this._getValue().getHours()>=12?vT:_T,stylingMode:this.option("stylingMode")});t.setAria("label","type")},_refreshFormat12:function(){if(!this.option("use24HourFormat")){var e=this._getValue(),t=e.getHours(),i=t>=12,n=i?vT:_T;this._silentEditorValueUpdate(this._format12,n)}},_silentEditorValueUpdate:function(e,t){e&&(e._suppressValueChangeAction(),e.option("value",t),e._resumeValueChangeAction())},_getNumberBoxConfig:function(){return{showSpinButtons:!0,displayValueFormatter:function(e){return(e<10?"0":"")+e},stylingMode:this.option("stylingMode")}},_normalizeHours:function(e){return this.option("use24HourFormat")?e:e%12||12},_updateField:function(){var e=this._normalizeHours(this._getValue().getHours());this._silentEditorValueUpdate(this._hourBox,e),this._silentEditorValueUpdate(this._minuteBox,this._getValue().getMinutes()),this._refreshFormat12()},_updateTime:function(){this.option("_showClock")&&this._updateClock(),this._updateField()},_visibilityChanged:function(e){e&&this._updateTime()},_optionChanged:function(e){switch(e.name){case"value":this._updateTime(),this.callBase(e);break;case"_arrowOffset":break;case"use24HourFormat":case"_showClock":case"stylingMode":this._invalidate();break;default:this.callBase(e)}}});(0,C.Z)("dxTimeView",xT);var wT=xT,TT=(0,s.Jj)(),ST=573,IT="dx-datebox-adaptivity-mode",ET="dx-datebox-datetime-time-side",DT=ZC.inherit({NAME:"CalendarWithTime",getDefaultOptions:function(){return(0,a.l)(this.callBase(),{applyValueMode:"useButtons",buttonsLocation:"bottom after","dropDownOptions.showTitle":!1})},_closeDropDownByEnter:function(){return _y.Z.sameDate(this._getContouredValue(),this.widgetOption("value"))},getDisplayFormat:function(e){return e||"shortdateshorttime"},_is24HourFormat:function(){return gy.Z.is24HourFormat(this.getDisplayFormat(this.dateBox.option("displayFormat")))},_getContouredValue:function(){var e=this.callBase();return this._updateDateTime(e)},_renderWidget:function(){this.callBase(),this._timeView=this.dateBox._createComponent((0,o.Z)("<div>"),wT,{value:this.dateBoxValue(),_showClock:!this._isShrinkView(),use24HourFormat:this._is24HourFormat(),onValueChanged:this._valueChangedHandler.bind(this),stylingMode:this.dateBox.option("stylingMode")}),this._timeView.registerKeyHandler("escape",this._escapeHandler.bind(this))},renderOpenedState:function(){this.callBase();var e=this._getPopup();e&&e.$wrapper().toggleClass(IT,this._isSmallScreen()),clearTimeout(this._repaintTimer),this._repaintTimer=setTimeout(function(){this._getPopup()&&this._getPopup().repaint()}.bind(this),0)},isAdaptivityChanged:function(){var e=this._isShrinkView(),t=this._currentAdaptiveMode;return e!==t?(this._currentAdaptiveMode=e,void 0!==t):this.callBase()},_updateValue:function(e){var t=this.dateBoxValue();t||e||(t=new Date,Iy.normalizeTime(t)),this.callBase(),this._timeView&&(t&&this._timeView.option("value",t),this._timeView.option("use24HourFormat",this._is24HourFormat()))},_isSmallScreen:function(){return(0,n.dz)(TT)<=ST},_isShrinkView:function(){return!this.dateBox.option("showAnalogClock")||this.dateBox.option("adaptivityEnabled")&&this._isSmallScreen()},_getBoxItems:function(){var e=[{ratio:0,shrink:0,baseSize:"auto",name:"calendar"}];return this._isShrinkView()||e.push({ratio:0,shrink:0,baseSize:"auto",name:"time"}),e},renderPopupContent:function(){this.callBase(),this._currentAdaptiveMode=this._isShrinkView();var e=this._getPopup().$content();this._box=this.dateBox._createComponent((0,o.Z)("<div>").appendTo(e),ng,{direction:"row",crossAlign:"stretch",items:this._getBoxItems(),itemTemplate:function(e,t,i){var n=(0,o.Z)("<div>");switch(e.name){case"calendar":n.append(this._widget.$element()),this._isShrinkView()&&(this._timeView.$element().addClass(ET),n.append(this._timeView.$element()));break;case"time":n.append(this._timeView.$element()),(0,o.Z)(i).addClass(ET)}return n}.bind(this)}),this._attachTabHandler()},popupConfig:function(e){var t=this.callBase(e);return(0,a.l)(t,{width:"auto"})},getFirstPopupElement:function(){return this._timeView._hourBox.$element().find("input")},_attachTabHandler:function(){var e=this.dateBox;this._timeView._hourBox.registerKeyHandler("tab",(function(t){t.shiftKey&&(t.preventDefault(),e.focus())}))},_preventFocusOnPopup:function(e){(0,o.Z)(e.target).hasClass("dx-texteditor-input")||(this.callBase.apply(this,arguments),this.dateBox._hasFocusClass()||this.dateBox.focus())},_updateDateTime:function(e){var t=this._timeView.option("value");return e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e},getValue:function(){var e,t=null!==(e=this._widget.option("value"))&&void 0!==e?e:this._widget.getContouredDate();return t=t?new Date(t):new Date,this._updateDateTime(t)},dispose:function(){clearTimeout(this._removeMinWidthTimer),clearTimeout(this._repaintTimer),this.callBase()}}),kT=DT,OT=(0,s.Jj)(),AT="date",PT={min:new Date(0,0,0,0,0),max:new Date(0,0,0,23,59)},MT=LC.inherit({NAME:"List",supportedKeys:function(){return{tab:function(){var{opened:e,applyValueMode:t}=this.option();e&&"instantly"===t&&this.close()},space:v.ZT,home:v.ZT,end:v.ZT}},getDefaultOptions:function(){return(0,a.l)(this.callBase(),{applyValueMode:"instantly"})},getDisplayFormat:function(e){return e||"shorttime"},popupConfig:function(e){return e},getValue:function(){var e=this._widget.option("selectedIndex");if(-1===e)return this.dateBox.option("value");var t=this._widgetItems[e];return this._getDateByItemData(t)},useCurrentDateByDefault:function(){return!0},getDefaultDate:function(){return new Date(null)},popupShowingHandler:function(){this.dateBox._dimensionChanged()},_renderWidget:function(){this.callBase(),this._refreshItems()},_getWidgetName:function(){return bw},_getWidgetOptions:function(){return{itemTemplate:this._timeListItemTemplate.bind(this),onItemClick:this._listItemClickHandler.bind(this),tabIndex:-1,onFocusedItemChanged:this._refreshActiveDescendant.bind(this),selectionMode:"single"}},_refreshActiveDescendant:function(e){this.dateBox.setAria("activedescendant",""),this.dateBox.setAria("activedescendant",e.actionValue)},_refreshItems:function(){this._widgetItems=this._getTimeListItems(),this._widget.option("items",this._widgetItems)},renderOpenedState:function(){this._widget&&(this._widget.option("focusedElement",null),this._setSelectedItemsByValue(),this._widget.option("templatesRenderAsynchronously")?this._asyncScrollTimeout=setTimeout(this._scrollToSelectedItem.bind(this)):this._scrollToSelectedItem())},dispose:function(){this.callBase(),clearTimeout(this._asyncScrollTimeout)},_updateValue:function(){this._widget&&(this._refreshItems(),this._setSelectedItemsByValue(),this._scrollToSelectedItem())},_setSelectedItemsByValue:function(){var e=this.dateBoxValue(),t=this._getDateIndex(e);-1===t?this._widget.option("selectedItems",[]):this._widget.option("selectedIndex",t)},_scrollToSelectedItem:function(){this._widget.scrollToItem(this._widget.option("selectedIndex"))},_getDateIndex:function(e){for(var t=-1,i=0,n=this._widgetItems.length;i<n;i++)if(this._areDatesEqual(e,this._widgetItems[i])){t=i;break}return t},_areDatesEqual:function(e,t){return(0,l.J_)(e)&&(0,l.J_)(t)&&e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()},_getTimeListItems:function(){var e=this.dateBox.dateOption("min")||this._getBoundaryDate("min"),t=this.dateBox.dateOption("max")||this._getBoundaryDate("max"),i=this.dateBox.dateOption("value")||null,n=t-e,o=e.getMinutes()%this.dateBox.option("interval");return n<0?[]:(n>Iy.ONE_DAY&&(n=Iy.ONE_DAY),i-e<Iy.ONE_DAY||(e=this._getBoundaryDate("min"),e.setMinutes(o),i&&Math.abs(i-t)<Iy.ONE_DAY&&(n=(60*t.getHours()+Math.abs(t.getMinutes()-o))*Iy.ONE_MINUTE)),this._getRangeItems(e,new Date(e),n))},_getRangeItems:function(e,t,i){var n=[],o=this.dateBox.option("interval");while(t-e<=i)n.push(new Date(t)),t.setMinutes(t.getMinutes()+o);return n},_getBoundaryDate:function(e){var t=PT[e],i=new Date((0,v.IS)(this.dateBox.dateOption("value"),0));return new Date(i.getFullYear(),i.getMonth(),i.getDate(),t.getHours(),t.getMinutes())},_timeListItemTemplate:function(e){var t=this.dateBox.option("displayFormat");return gy.Z.format(e,this.getDisplayFormat(t))},_listItemClickHandler:function(e){if("useButtons"!==this.dateBox.option("applyValueMode")){var t=this._getDateByItemData(e.itemData);this.dateBox.option("opened",!1),this.dateBoxValue(t,e.event)}},_getDateByItemData:function(e){var t=this.dateBox.option("value"),i=e.getHours(),n=e.getMinutes(),o=e.getSeconds(),r=e.getFullYear(),a=e.getMonth(),s=e.getDate();return t?(t=this.dateBox.option("dateSerializationFormat")?vy.Z.deserializeDate(t):new Date(t),t.setHours(i),t.setMinutes(n),t.setSeconds(o),t.setFullYear(r),t.setMonth(a),t.setDate(s)):t=new Date(r,a,s,i,n,0,0),t},getKeyboardListener:function(){return this._widget},_updatePopupHeight:function(){var e=My(this.dateBox.option("dropDownOptions.height"));if(void 0===e||"auto"===e){this.dateBox._setPopupOption("height","auto");var t=(0,n.zp)(this._widget.$element()),i=.45*(0,n.Cr)(OT);this.dateBox._setPopupOption("height",Math.min(t,i))}this.dateBox._timeList&&this.dateBox._timeList.updateDimensions()},getParsedText:function(e,t){var i=this.callBase(e,t);return i&&(i=Iy.mergeDates(i,new Date(null),AT)),i}}),RT=MT,BT=(0,s.Jj)(),VT="dx-datebox",FT="dx-auto-width",HT="dx-show-invalid-badge",LT="dx-clear-button-area",NT="dx-datebox-wrapper",ZT="dx-dropdowneditor-overlay",$T={calendar:"calendar",rollers:"rollers",list:"list",native:"native"},WT={date:"date",datetime:"datetime",time:"time"},KT={calendar:"Calendar",dateView:"DateView",native:"Native",calendarWithTime:"CalendarWithTime",list:"List"},zT={Calendar:ZC,DateView:db,Native:cb,CalendarWithTime:kT,List:RT},jT=Ky.inherit({_supportedKeys:function(){return(0,a.l)(this.callBase(),this._strategy.supportedKeys())},_renderButtonContainers:function(){this.callBase.apply(this,arguments),this._strategy.customizeButtons()},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{type:"date",showAnalogClock:!0,value:null,dateSerializationFormat:void 0,min:void 0,max:void 0,displayFormat:null,interval:30,disabledDates:null,pickerType:$T.calendar,invalidDateMessage:y.Z.format("dxDateBox-validation-datetime"),dateOutOfRangeMessage:y.Z.format("validation-range"),applyButtonText:y.Z.format("OK"),adaptivityEnabled:!1,calendarOptions:{},useHiddenSubmitElement:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{"dropDownOptions.showTitle":!0}},{device:{platform:"android"},options:{buttonsLocation:"bottom after"}},{device:function(){var e=w.Z.real(),t=e.platform;return"ios"===t||"android"===t},options:{pickerType:$T.native}},{device:{platform:"generic",deviceType:"desktop"},options:{buttonsLocation:"bottom after"}}])},_initOptions:function(e){this._userOptions=(0,a.l)({},e),this.callBase(e),this._updatePickerOptions()},_updatePickerOptions:function(){var e=this.option("pickerType"),t=this.option("type");e!==$T.list||t!==WT.datetime&&t!==WT.date||(e=$T.calendar),t===WT.time&&e===$T.calendar&&(e=$T.list),this.option("showDropDownButton","generic"!==w.Z.real().platform||e!==$T.native),this._pickerType=e},_init:function(){this._initStrategy(),this.option((0,a.l)({},this._strategy.getDefaultOptions(),this._userOptions)),delete this._userOptions,this.callBase()},_toLowerCaseFirstLetter:function(e){return e.charAt(0).toLowerCase()+e.substr(1)},_initStrategy:function(){var e=this._getStrategyName(this._getFormatType()),t=zT[e];this._strategy&&this._strategy.NAME===e||(this._strategy=new t(this))},_getFormatType:function(){var e=this.option("type"),t=/h|m|s/g.test(e),i=/d|M|Y/g.test(e),n="";return i&&(n+=WT.date),t&&(n+=WT.time),n},_getStrategyName:function(e){var t=this._pickerType;return t===$T.rollers?KT.dateView:t===$T.native?KT.native:e===WT.date?KT.calendar:e===WT.datetime?KT.calendarWithTime:KT.list},_initMarkup:function(){this.$element().addClass(VT),this.callBase(),this._refreshFormatClass(),this._refreshPickerTypeClass(),this._strategy.renderInputMinMax(this._input())},_render:function(){this.callBase(),this._formatValidationIcon()},_renderDimensions:function(){this.callBase(),this.$element().toggleClass(FT,!this.option("width")),this._dimensionChanged()},_dimensionChanged:function(){var e,t;(this.callBase(arguments),this._popup)&&(null===(e=(t=this._strategy)._updatePopupHeight)||void 0===e||e.call(t))},_refreshFormatClass:function(){var e=this.$element();(0,E.S6)(WT,(function(t,i){e.removeClass(VT+"-"+i)})),e.addClass(VT+"-"+this.option("type"))},_refreshPickerTypeClass:function(){var e=this.$element();(0,E.S6)($T,(function(t,i){e.removeClass(VT+"-"+i)})),e.addClass(VT+"-"+this._pickerType)},_formatValidationIcon:function(){if((0,s.Ym)()){var e=this._input().get(0),t=this.option("rtlEnabled"),i=this._getClearButtonWidth(),n=this._getLongestElementDimensions(),o=parseFloat(BT.getComputedStyle(e).width)-i,r=n.width>o,a=e.style;this.$element().toggleClass(HT,!r),r?(void 0===this._storedPadding&&(this._storedPadding=t?n.leftPadding:n.rightPadding),t?a.paddingLeft=0:a.paddingRight=0):t?a.paddingLeft=this._storedPadding+"px":a.paddingRight=this._storedPadding+"px"}},_getClearButtonWidth:function(){var e=0;if(this._isClearButtonVisible()&&""===this._input().val()){var t=this.$element().find("."+LT).get(0);e=parseFloat(BT.getComputedStyle(t).width)}return e},_getLongestElementDimensions:function(){var e=this._strategy.getDisplayFormat(this.option("displayFormat")),t=gy.Z.format(Iy.getLongestDate(e,gy.Z.getMonthNames(),gy.Z.getDayNames()),e),i=this._input(),n=i.get(0),o=(0,M.l5)(i,t),r=void 0!==this._storedPadding,a=r?this._storedPadding:0;o.appendTo(this.$element());var s=parseFloat(BT.getComputedStyle(o.get(0)).width),l=parseFloat(BT.getComputedStyle(n).paddingRight),d=parseFloat(BT.getComputedStyle(n).paddingLeft),u=s+d+l+a;return o.remove(),{width:u,leftPadding:d,rightPadding:l}},_getKeyboardListeners(){return this.callBase().concat([this._strategy&&this._strategy.getKeyboardListener()])},_renderPopup:function(){this.callBase(),this._popup.$wrapper().addClass(NT),this._renderPopupWrapper()},_getPopupToolbarItems(){var e,t,i,n=this.callBase();return null!==(e=null===(t=(i=this._strategy)._getPopupToolbarItems)||void 0===t?void 0:t.call(i,n))&&void 0!==e?e:n},_popupConfig:function(){var e=this.callBase();return(0,a.l)(this._strategy.popupConfig(e),{title:this._getPopupTitle(),dragEnabled:!1})},_renderPopupWrapper:function(){if(this._popup){var e=this.$element(),t=(0,a.l)({},WT,$T);(0,E.S6)(t,function(t,i){e.removeClass(NT+"-"+i)}.bind(this)),this._popup.$wrapper().addClass(NT+"-"+this.option("type")).addClass(NT+"-"+this._pickerType).addClass(ZT)}},_renderPopupContent:function(){this.callBase(),this._strategy.renderPopupContent()},_getFirstPopupElement:function(){return this._strategy.getFirstPopupElement()||this.callBase()},_getLastPopupElement:function(){return this._strategy.getLastPopupElement()||this.callBase()},_popupShowingHandler:function(){this.callBase(),this._strategy.popupShowingHandler()},_popupShownHandler:function(){this.callBase(),this._strategy.renderOpenedState()},_popupHiddenHandler:function(){this.callBase(),this._strategy.renderOpenedState(),this._strategy.popupHiddenHandler()},_visibilityChanged:function(e){e&&this._formatValidationIcon()},_clearValueHandler:function(e){this.option("text",""),this.callBase(e)},_readOnlyPropValue:function(){if(this._pickerType===$T.rollers)return!0;var e=w.Z.real().platform,t=this._isNativeType()&&("ios"===e||"android"===e);return t?this.option("readOnly"):this.callBase()},_isClearButtonVisible:function(){return this.callBase()&&!this._isNativeType()},_renderValue:function(){var e=this.dateOption("value");return this.option("text",this._getDisplayedText(e)),this._strategy.renderValue(),this.callBase()},_setSubmitValue:function(){var e=this.dateOption("value"),t=this.option("dateSerializationFormat"),i=Iy.SUBMIT_FORMATS_MAP[this.option("type")],n=t?vy.Z.serializeDate(e,t):Iy.toStandardDateFormat(e,i);this._getSubmitElement().val(n)},_getDisplayedText:function(e){var t,i=this.option("mode");if("text"===i){var n=this._strategy.getDisplayFormat(this.option("displayFormat"));t=gy.Z.format(e,n)}else{var o=this._getFormatByMode(i);t=o?gy.Z.format(e,o):Iy.toStandardDateFormat(e,i)}return t},_getFormatByMode:function(e){return(0,b.inputType)(e)?null:Iy.FORMATS_MAP[e]},_valueChangeEventHandler:function(e){var{text:t,type:i,validationError:n}=this.option(),o=this.dateOption("value");if(t!==this._getDisplayedText(o)){var r=this._getParsedDate(t),a=null!==o&&void 0!==o?o:this._getDateByDefault(),s=Iy.mergeDates(a,r,i),l=r&&"time"===i?s:r;if(this._applyInternalValidation(l).isValid){var d=this._getDisplayedText(s);a&&s&&a.getTime()===s.getTime()&&d!==t?this._renderValue():this.dateValue(s,e)}}else n&&!n.editorSpecific||(this._applyInternalValidation(o),this._applyCustomValidation(o))},_getDateByDefault:function(){return this._strategy.useCurrentDateByDefault()&&this._strategy.getDefaultDate()},_getParsedDate:function(e){var t=this._strategy.getDisplayFormat(this.option("displayFormat")),i=this._strategy.getParsedText(e,t);return null!==i&&void 0!==i?i:void 0},_applyInternalValidation(e){var t=this.option("text"),i=!!t&&null!==e,n=!!e&&(0,l.J_)(e)&&!isNaN(e.getTime()),o=n&&_y.Z.dateInRange(e,this.dateOption("min"),this.dateOption("max"),this.option("type")),r=!i&&!e||o,a="";return n?o||(a=this.option("dateOutOfRangeMessage")):a=this.option("invalidDateMessage"),this.option({isValid:r,validationError:r?null:{editorSpecific:!0,message:a}}),{isValid:r,isDate:n}},_applyCustomValidation:function(e){this.validationRequest.fire({editor:this,value:this._serializeDate(e)})},_isValueChanged:function(e){var t=this.dateOption("value"),i=t&&t.getTime(),n=e&&e.getTime();return i!==n},_isTextChanged:function(e){var t=this.option("text"),i=e&&this._getDisplayedText(e)||"";return t!==i},_renderProps:function(){this.callBase(),this._input().attr("autocomplete","off")},_renderOpenedState:function(){this._isNativeType()||this.callBase(),this._strategy.isAdaptivityChanged()&&this._refreshStrategy()},_getPopupTitle:function(){var e=this.option("placeholder");if(e)return e;var t=this.option("type");return t===WT.time?y.Z.format("dxDateBox-simulatedDataPickerTitleTime"):t===WT.date||t===WT.datetime?y.Z.format("dxDateBox-simulatedDataPickerTitleDate"):""},_refreshStrategy:function(){this._strategy.dispose(),this._initStrategy(),this.option(this._strategy.getDefaultOptions()),this._refresh()},_applyButtonHandler:function(e){var t=this._strategy.getValue();this.dateValue(t,e.event),this.callBase()},_dispose:function(){var e;this.callBase(),null===(e=this._strategy)||void 0===e||e.dispose()},_isNativeType:function(){return this._pickerType===$T.native},_updatePopupTitle:function(){var e;null===(e=this._popup)||void 0===e||e.option("title",this._getPopupTitle())},_optionChanged:function(e){switch(e.name){case"showClearButton":case"buttons":this.callBase.apply(this,arguments),this._formatValidationIcon();break;case"pickerType":this._updatePickerOptions({pickerType:e.value}),this._refreshStrategy(),this._refreshPickerTypeClass(),this._invalidate();break;case"type":this._updatePickerOptions({format:e.value}),this._refreshStrategy(),this._refreshFormatClass(),this._renderPopupWrapper(),this._formatValidationIcon(),this._updateValue();break;case"placeholder":this.callBase.apply(this,arguments),this._updatePopupTitle();break;case"min":case"max":var t=this.option("isValid");this._applyInternalValidation(this.dateOption("value")),t||this._applyCustomValidation(this.dateOption("value")),this._invalidate();break;case"dateSerializationFormat":case"interval":case"disabledDates":case"calendarOptions":this._invalidate();break;case"displayFormat":this.option("text",this._getDisplayedText(this.dateOption("value"))),this._renderInputValue();break;case"text":this._strategy.textChangedHandler(e.value),this.callBase.apply(this,arguments);break;case"isValid":this.callBase.apply(this,arguments),this._formatValidationIcon();break;case"showDropDownButton":this._formatValidationIcon(),this.callBase.apply(this,arguments);break;case"readOnly":this.callBase.apply(this,arguments),this._formatValidationIcon();break;case"todayButtonText":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"invalidDateMessage":case"dateOutOfRangeMessage":case"adaptivityEnabled":case"showAnalogClock":break;default:this.callBase.apply(this,arguments)}},_getSerializationFormat:function(){var e=this.option("value");return this.option("dateSerializationFormat")&&(0,Oe.Z)().forceIsoDateParsing?this.option("dateSerializationFormat"):(0,l.kE)(e)?"number":(0,l.HD)(e)?vy.Z.getDateSerializationFormat(e):void 0},_updateValue:function(e){this.callBase(),this._applyInternalValidation(null!==e&&void 0!==e?e:this.dateOption("value"))},dateValue:function(e,t){var i=this._isValueChanged(e);return i&&t&&this._saveValueChangeEvent(t),i||(this._isTextChanged(e)?this._updateValue(e):""===this.option("text")&&this._applyCustomValidation(e)),this.dateOption("value",e)},dateOption:function(e,t){if(1===arguments.length)return vy.Z.deserializeDate(this.option(e));this.option(e,this._serializeDate(t))},_serializeDate:function(e){var t=this._getSerializationFormat();return vy.Z.serializeDate(e,t)},_clearValue:function(){var e=this.option("value");this.callBase(),null===e&&this._applyCustomValidation(null)},reset:function(){var e=this.option("value");this.callBase(),null===e&&this._applyInternalValidation(null)}}),UT=jT,GT="dateBoxMask",qT=1,YT=-1,XT=UT.inherit({_supportedKeys(e){var t=this.callBase(e),i=e=>{var i=t[(0,R.EV)(e)];return i&&i.apply(this,[e])},n=(e,t)=>this._shouldUseOriginalHandler(e)?i.apply(this,[e]):t.apply(this,[e]);return(0,a.l)({},t,{del:e=>n(e,(e=>{this._revertPart(qT),this._isAllSelected()||e.preventDefault()})),backspace:e=>n(e,(e=>{this._revertPart(YT),this._isAllSelected()||e.preventDefault()})),home:e=>n(e,(e=>{this._selectFirstPart(),e.preventDefault()})),end:e=>n(e,(e=>{this._selectLastPart(),e.preventDefault()})),escape:e=>n(e,(e=>{this._revertChanges(e)})),enter:e=>n(e,(e=>{this._enterHandler(e)})),leftArrow:e=>n(e,(e=>{this._selectNextPart(YT),e.preventDefault()})),rightArrow:e=>n(e,(e=>{this._selectNextPart(qT),e.preventDefault()})),upArrow:e=>n(e,(e=>{this._upDownArrowHandler(qT),e.preventDefault()})),downArrow:e=>n(e,(e=>{this._upDownArrowHandler(YT),e.preventDefault()}))})},_shouldUseOriginalHandler(e){var t=this.option("opened")&&e&&-1===["backspace","del"].indexOf((0,R.EV)(e));return!this._useMaskBehavior()||t||e&&e.altKey},_upDownArrowHandler(e){this._setNewDateIfEmpty();var t=this._getActivePartValue(this._initialMaskValue),i=this._getActivePartValue(),n=i-t;this._loadMaskValue(this._initialMaskValue),this._partIncrease(n+e,!0)},_getDefaultOptions(){return(0,a.l)(this.callBase(),{useMaskBehavior:!1,emptyDateValue:new Date(2e3,0,1,0,0,0)})},_isSingleCharKey(e){var{originalEvent:t,alt:i}=e,n=t.data||t.key;return"string"===typeof n&&1===n.length&&!i&&!(0,R.j1)(t)},_isSingleDigitKey(e){var t,i=null===(t=e.originalEvent)||void 0===t?void 0:t.data;return 1===(null===i||void 0===i?void 0:i.length)&&parseInt(i,10)},_useBeforeInputEvent:function(){return w.Z.real().android},_keyInputHandler(e,t){var i=this._input().val();this._processInputKey(t),e.preventDefault();var n=i!==this._input().val();n&&re.Z.trigger(this._input(),"input")},_keyboardHandler(e){var t=e.originalEvent.key,i=this.callBase(e);return!this._useMaskBehavior()||this._useBeforeInputEvent()||(Me.Z.chrome&&"Process"===e.key&&0===e.code.indexOf("Digit")?(t=e.code.replace("Digit",""),this._processInputKey(t),this._maskInputHandler=()=>{this._renderSelectedPart()}):this._isSingleCharKey(e)&&this._keyInputHandler(e.originalEvent,t)),i},_maskBeforeInputHandler(e){this._maskInputHandler=null;var{inputType:t}=e.originalEvent;"insertCompositionText"===t&&(this._maskInputHandler=()=>{this._renderSelectedPart()});var i="deleteContentBackward"===t,n="deleteContentForward"===t;if(i||n){var o=i?YT:qT;this._maskInputHandler=()=>{this._revertPart(),this._selectNextPart(o)}}if(this._useMaskBehavior()&&this._isSingleCharKey(e)){var r=e.originalEvent.data;return this._keyInputHandler(e,r),!0}},_keyPressHandler(e){var{originalEvent:t}=e;"insertCompositionText"===(null===t||void 0===t?void 0:t.inputType)&&this._isSingleDigitKey(e)&&(this._processInputKey(t.data),this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._selectNextPart()),this.callBase(e),this._maskInputHandler&&(this._maskInputHandler(),this._maskInputHandler=null)},_processInputKey(e){this._isAllSelected()&&(this._activePartIndex=0),this._setNewDateIfEmpty(),isNaN(parseInt(e))?this._searchString(e):this._searchNumber(e)},_isAllSelected(){var e=this._caret();return e.end-e.start===this.option("text").length},_getFormatPattern(){if(this._formatPattern)return this._formatPattern;var e=this._strategy.getDisplayFormat(this.option("displayFormat")),t=(0,l.HD)(e)&&!gy.Z._getPatternByFormat(e);return this._formatPattern=t?e:(0,my.y)((function(t){return gy.Z.format(t,e)})),this._formatPattern},_setNewDateIfEmpty(){if(!this._maskValue){var e="time"===this.option("type")?new Date(null):new Date;this._maskValue=e,this._initialMaskValue=e,this._renderDateParts()}},_partLimitsReached(e){var t=String(e).length,i=this._getActivePartProp("pattern").length,n=1===i,o=n?t:Math.min(i,t),r=this._searchValue.length===o,a=parseInt(this._searchValue+"0")>e;return r||a},_searchNumber(e){var{max:t}=this._getActivePartLimits(),i=String(t).length;this._searchValue=(this._searchValue+e).substr(-i),isNaN(this._searchValue)&&(this._searchValue=e),this._setActivePartValue(this._searchValue),this._partLimitsReached(t)&&this._selectNextPart(qT)},_searchString(e){if(isNaN(parseInt(this._getActivePartProp("text")))){for(var t=this._getActivePartProp("limits")(this._maskValue),i=this._searchValue+e.toLowerCase(),n=t.max-t.min,o=0;o<=n;o++)if(this._loadMaskValue(this._initialMaskValue),this._partIncrease(o+1),0===this._getActivePartProp("text").toLowerCase().indexOf(i))return void(this._searchValue=i);this._setNewDateIfEmpty(),this._searchValue&&(this._clearSearchValue(),this._searchString(e))}},_clearSearchValue(){this._searchValue=""},_revertPart:function(e){if(!this._isAllSelected()){var t=this._getActivePartValue(this.option("emptyDateValue"));this._setActivePartValue(t),this._selectNextPart(e)}this._clearSearchValue()},_useMaskBehavior(){return this.option("useMaskBehavior")&&"text"===this.option("mode")},_prepareRegExpInfo(){this._regExpInfo=(0,ay.oo)(this._getFormatPattern(),gy.Z);var e=this._regExpInfo.regexp,t=e.source,i=e.flags,n=new RegExp(/(\{[0-9]+,?[0-9]*\})/),o=t.split(n).map((e=>n.test(e)?e:kn.Z.convertDigits(e,!1))).join("");this._regExpInfo.regexp=new RegExp(o,i)},_initMaskState(){this._activePartIndex=0,this._formatPattern=null,this._prepareRegExpInfo(),this._loadMaskValue()},_renderMask(){this.callBase(),this._detachMaskEvents(),this._clearMaskState(),this._useMaskBehavior()&&(this._attachMaskEvents(),this._initMaskState(),this._renderDateParts())},_renderDateParts(){if(this._useMaskBehavior()){var e=this.option("text")||this._getDisplayedText(this._maskValue);e&&(this._dateParts=hy(e,this._regExpInfo),this._input().is(":hidden")||this._selectNextPart())}},_detachMaskEvents(){re.Z.off(this._input(),"."+GT)},_attachMaskEvents(){re.Z.on(this._input(),(0,R.V4)("dxclick",GT),this._maskClickHandler.bind(this)),re.Z.on(this._input(),(0,R.V4)("paste",GT),this._maskPasteHandler.bind(this)),re.Z.on(this._input(),(0,R.V4)("drop",GT),(()=>{this._renderSelectedPart()})),re.Z.on(this._input(),(0,R.V4)("compositionend",GT),this._maskCompositionEndHandler.bind(this)),this._useBeforeInputEvent()&&re.Z.on(this._input(),(0,R.V4)("beforeinput",GT),this._maskBeforeInputHandler.bind(this))},_renderSelectedPart(){this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._selectNextPart()},_selectLastPart(){this.option("text")&&(this._activePartIndex=this._dateParts.length,this._selectNextPart(YT))},_selectFirstPart(){this.option("text")&&(this._activePartIndex=-1,this._selectNextPart(qT))},_onMouseWheel(e){this._useMaskBehavior()&&this._partIncrease(e.delta>0?qT:YT,e)},_selectNextPart(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.option("text")&&!this._disposed){e&&(this._initialMaskValue=new Date(this._maskValue));var t=(0,ln.n$)(this._activePartIndex+e,0,this._dateParts.length-1);if(this._dateParts[t].isStub){var i=0===t&&e<0||t===this._dateParts.length-1&&e>0;if(!i)return void this._selectNextPart(e>=0?e+1:e-1);t=this._activePartIndex}this._activePartIndex!==t&&this._clearSearchValue(),this._activePartIndex=t,this._caret(this._getActivePartProp("caret"))}},_getRealLimitsPattern(){if("d"===this._getActivePartProp("pattern")[0])return"dM"},_getActivePartLimits(e){var t=this._getActivePartProp("limits");return t(this._maskValue,e&&this._getRealLimitsPattern())},_getActivePartValue(e){e=e||this._maskValue;var t=this._getActivePartProp("getter");return(0,l.mf)(t)?t(e):e[t]()},_addLeadingZeroes(e){var t=this._searchValue.match(/^0+/),i=this._getActivePartLimits(),n=String(i.max).length;return((t&&t[0]||"")+String(e)).substr(-n)},_setActivePartValue(e,t){t=t||this._maskValue;var i=this._getActivePartProp("setter"),n=this._getActivePartLimits();e=(0,ln.Z2)(e,n.min,n.max)?e:e%10,e=this._addLeadingZeroes((0,ln.n$)(e,n.min,n.max)),(0,l.mf)(i)?i(t,e):t[i](e),this._renderDisplayText(this._getDisplayedText(t)),this._renderDateParts()},_getActivePartProp(e){if(this._dateParts&&this._dateParts[this._activePartIndex])return this._dateParts[this._activePartIndex][e]},_loadMaskValue(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dateOption("value");this._maskValue=e&&new Date(e),this._initialMaskValue=e&&new Date(e)},_saveMaskValue(){var e=this._maskValue&&new Date(this._maskValue);e&&"date"===this.option("type")&&e.setHours(0,0,0,0),this._initialMaskValue=new Date(e),this.dateOption("value",e)},_revertChanges(){this._loadMaskValue(),this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._renderDateParts()},_renderDisplayText(e){this.callBase(e),this._useMaskBehavior()&&this.option("text",e)},_partIncrease(e,t){this._setNewDateIfEmpty();var{max:i,min:n}=this._getActivePartLimits(t),o=i-n;1===o&&o++;var r=e+this._getActivePartValue();r>i?r=this._applyLimits(r,{limitBase:n,limitClosest:i,limitDelta:o}):r<n&&(r=this._applyLimits(r,{limitBase:i,limitClosest:n,limitDelta:o})),this._setActivePartValue(r)},_applyLimits(e,t){var{limitBase:i,limitClosest:n,limitDelta:o}=t,r=(e-n)%o;return r?i+r-1*(0,ln.Xx)(r):n},_maskClickHandler(){this._loadMaskValue(this._maskValue),this.option("text")&&(this._activePartIndex=fy(this._dateParts,this._caret().start),this._isAllSelected()||((0,l.$K)(this._activePartIndex)?this._caret(this._getActivePartProp("caret")):this._selectLastPart()))},_maskCompositionEndHandler(e){this._input().val(this._getDisplayedText(this._maskValue)),this._selectNextPart(),this._maskInputHandler=()=>{this._renderSelectedPart()}},_maskPasteHandler(e){var t=this._replaceSelectedText(this.option("text"),this._caret(),(0,M.Zx)(e)),i=gy.Z.parse(t,this._getFormatPattern());i&&this._isDateValid(i)&&(this._maskValue=i,this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._renderDateParts(),this._selectNextPart()),e.preventDefault()},_isDateValid:e=>(0,l.J_)(e)&&!isNaN(e),_isValueDirty(){var e=this.dateOption("value");return(this._maskValue&&this._maskValue.getTime())!==(e&&e.getTime())},_fireChangeEvent(){this._clearSearchValue(),this._isValueDirty()&&re.Z.trigger(this._input(),"change")},_enterHandler(e){this._fireChangeEvent(),this._selectNextPart(qT),e.preventDefault()},_focusOutHandler(e){var t=this._useMaskBehavior()&&!e.isDefaultPrevented();t?(this._fireChangeEvent(),this.callBase(e),this._selectFirstPart(e)):this.callBase(e)},_valueChangeEventHandler(e){var t=this.option("text");this._useMaskBehavior()?(this._saveValueChangeEvent(e),t?null===this._maskValue&&this._loadMaskValue(t):this._maskValue=null,this._saveMaskValue()):this.callBase(e)},_optionChanged(e){switch(e.name){case"useMaskBehavior":this._renderMask();break;case"displayFormat":case"mode":this.callBase(e),this._renderMask();break;case"value":this._loadMaskValue(),this.callBase(e),this._renderDateParts();break;case"emptyDateValue":break;default:this.callBase(e)}},_clearMaskState(){this._clearSearchValue(),delete this._dateParts,delete this._activePartIndex,delete this._maskValue},reset(){this._clearMaskState(),this._activePartIndex=0,this.callBase()},_clean(){this.callBase(),this._detachMaskEvents(),this._clearMaskState()}}),JT=XT;(0,C.Z)("dxDateBox",JT);var QT=P.Z.inherit({ctor(e,t){this.editor=e,this.validator=t,this.validationRequestsCallbacks=[];var i=e=>{this.validationRequestsCallbacks.forEach((t=>t(e)))};e.validationRequest.add(i),e.on("disposing",(function(){e.validationRequest.remove(i)}))},getValue(){return this.editor.option("value")},getCurrentValidationError(){return this.editor.option("validationError")},bypass(){return this.editor.option("disabled")},applyValidationResults(e){this.editor.option({validationErrors:e.brokenRules,validationStatus:e.status})},reset(){this.editor.reset()},focus(){this.editor.focus()}}),eS=QT,tS="dx-validator",iS="valid",nS="invalid",oS="pending",rS=S.Z.inherit({_initOptions:function(e){this.callBase.apply(this,arguments),this.option(Kn.initValidationOptions(e))},_getDefaultOptions(){return(0,a.l)(this.callBase(),{validationRules:[]})},_init(){this.callBase(),this._initGroupRegistration(),this.focused=(0,Sc["default"])(),this._initAdapter(),this._validationInfo={result:null,deferred:null,skipValidation:!1}},_initGroupRegistration(){var e=this._findGroup();this._groupWasInit||this.on("disposing",(function(e){Kn.removeRegisteredValidator(e.component._validationGroup,e.component)})),this._groupWasInit&&this._validationGroup===e||(Kn.removeRegisteredValidator(this._validationGroup,this),this._groupWasInit=!0,this._validationGroup=e,Kn.registerValidatorInGroup(e,this))},_setOptionsByReference(){this.callBase(),(0,a.l)(this._optionsByReference,{validationGroup:!0})},_getEditor(){var e=this.$element()[0];return(0,le.aT)(e,"dx-validation-target")},_initAdapter(){var e=this._getEditor(),t=this.option("adapter");if(!t){if(e)return t=new eS(e,this),t.validationRequestsCallbacks.push((e=>{this._validationInfo.skipValidation||this.validate(e)})),void this.option("adapter",t);throw Xt.Z.Error("E0120")}var i=t.validationRequestsCallbacks;i&&i.push((e=>{this.validate(e)}))},_toggleRTLDirection(e){var t,i,n,o=null!==(t=null===(i=this.option("adapter"))||void 0===i||null===(n=i.editor)||void 0===n?void 0:n.option("rtlEnabled"))&&void 0!==t?t:e;this.callBase(o)},_initMarkup(){this.$element().addClass(tS),this.callBase()},_render(){this.callBase(),this._toggleAccessibilityAttributes()},_toggleAccessibilityAttributes(){var e=this._getEditor();if(e){var t=this.option("validationRules")||[],i=t.some((e=>{var{type:t}=e;return"required"===t}))||null;e.isInitialized()&&e.setAria("required",i),e.option("_onMarkupRendered",(()=>{e.setAria("required",i)}))}},_visibilityChanged(e){e&&this._initGroupRegistration()},_optionChanged(e){switch(e.name){case"validationGroup":return void this._initGroupRegistration();case"validationRules":return this._resetValidationRules(),this._toggleAccessibilityAttributes(),void(void 0!==this.option("isValid")&&this.validate());case"adapter":this._initAdapter();break;case"isValid":case"validationStatus":this.option(Kn.synchronizeValidationOptions(e,this.option()));break;default:this.callBase(e)}},_getValidationRules(){return this._validationRules||(this._validationRules=(0,E.UI)(this.option("validationRules"),((e,t)=>(0,a.l)({},e,{validator:this,index:t})))),this._validationRules},_findGroup(){var e=this.$element();return this.option("validationGroup")||Kn.findGroup(e,this._modelByElement(e))},_resetValidationRules(){delete this._validationRules},validate(e){var t,i=this.option("adapter"),n=this.option("name"),o=i.bypass&&i.bypass(),r=e&&void 0!==e.value?e.value:i.getValue(),s=i.getCurrentValidationError&&i.getCurrentValidationError(),l=this._getValidationRules(),d=this._validationInfo&&this._validationInfo.result;return d&&d.status===oS&&d.value===r?(0,a.l)({},d):(o?t={isValid:!0,status:iS}:s&&s.editorSpecific?(s.validator=this,t={isValid:!1,status:nS,brokenRule:s,brokenRules:[s]}):t=Kn.validate(r,l,n),t.id=(new Li.Z).toString(),this._applyValidationResult(t,i),t.complete&&t.complete.then((e=>{e.id===this._validationInfo.result.id&&this._applyValidationResult(e,i)})),(0,a.l)({},this._validationInfo.result))},reset(){var e=this.option("adapter"),t={id:null,isValid:!0,brokenRule:null,brokenRules:null,pendingRules:null,status:iS,complete:null};this._validationInfo.skipValidation=!0,e.reset(),this._validationInfo.skipValidation=!1,this._resetValidationRules(),this._applyValidationResult(t,e)},_updateValidationResult(e){if(this._validationInfo.result&&this._validationInfo.result.id===e.id)for(var t in e)"id"!==t&&"complete"!==t&&(this._validationInfo.result[t]=e[t]);else{var i=this._validationInfo.deferred&&this._validationInfo.result.complete;this._validationInfo.result=(0,a.l)({},e,{complete:i})}},_applyValidationResult(e,t){var i=this._createActionByOption("onValidated",{excludeValidators:["readOnly"]});if(e.validator=this,this._updateValidationResult(e),t.applyValidationResults&&t.applyValidationResults(this._validationInfo.result),this.option({validationStatus:this._validationInfo.result.status}),this._validationInfo.result.status===oS)return this._validationInfo.deferred||(this._validationInfo.deferred=new ot.BH,this._validationInfo.result.complete=this._validationInfo.deferred.promise()),void this._eventsStrategy.fireEvent("validating",[this._validationInfo.result]);this._validationInfo.result.status!==oS&&(i(e),this._validationInfo.deferred&&(this._validationInfo.deferred.resolve(e),this._validationInfo.deferred=null))},focus(){var e=this.option("adapter");e&&e.focus&&e.focus()},_useTemplates:function(){return!1}});(0,C.Z)("dxValidator",rS);var aS=rS,sS=["dxTagBox","dxRangeSlider"],lS=["dxCalendar","dxCheckBox","dxHtmlEditor","dxRadioGroup","dxRangeSlider","dxSlider","dxSwitch"];function dS(e){var{$parent:t,rootElementCssClassList:i,formOrLayoutManager:n,createComponentCallback:o,item:r,template:a,labelTemplate:s,name:d,formLabelLocation:u,requiredMessageTemplate:c,validationGroup:h,editorValue:p,canAssignUndefinedValueToEditor:f,editorValidationBoundary:g,editorStylingMode:m,showColonAfterLabel:_,managerLabelLocation:v,itemId:y,managerMarkOptions:C,labelMode:b,onLabelTemplateRendered:x}=e,w=(0,l.$K)(r.isRequired)?r.isRequired:!!pS(r.validationRules),T=r.itemType===Pg,S=r.helpText?"dx-"+new Li.Z:null,I=fS({item:r,id:y,isRequired:w,managerMarkOptions:C,showColonAfterLabel:_,labelLocation:v,formLabelMode:b,labelTemplate:s,onLabelTemplateRendered:x}),E=I.visible&&(I.text||I.labelTemplate&&T),{location:D,labelID:k}=I,O="top"!==D&&["dxTextArea","dxRadioGroup","dxCalendar","dxHtmlEditor"].includes(r.editorType),A=hS({editorType:r.editorType,editorValue:p,defaultEditorName:r.dataField,canAssignUndefinedValueToEditor:f,externalEditorOptions:r.editorOptions,editorInputId:y,editorValidationBoundary:g,editorStylingMode:m,formLabelMode:b,labelText:I.textWithoutColon,labelMark:I.markOptions.showRequiredMark?String.fromCharCode(160)+I.markOptions.requiredMark:""}),P=I.markOptions.showOptionalMark&&!I.visible&&"hidden"!==A.labelMode&&!(0,l.$K)(r.helpText),M=P?I.markOptions.optionalMark:r.helpText;return{$parent:t,rootElementCssClassList:i,formOrLayoutManager:n,createComponentCallback:o,labelOptions:I,labelNeedBaselineAlign:O,labelLocation:D,needRenderLabel:E,item:r,isSimpleItem:T,isRequired:w,template:a,helpID:S,labelID:k,name:d,helpText:M,formLabelLocation:u,requiredMessageTemplate:c,validationGroup:h,editorOptions:A}}function uS(e){var{showRequiredMark:t,requiredMark:i,showOptionalMark:n,optionalMark:o}=e;return t||n?String.fromCharCode(160)+(t?i:o):""}function cS(e,t){var{showRequiredMark:i,requiredMark:n,showOptionalMark:o,optionalMark:r}=e;return{showRequiredMark:i&&t,requiredMark:n,showOptionalMark:o&&!t,optionalMark:r}}function hS(e){var{editorType:t,defaultEditorName:i,editorValue:n,canAssignUndefinedValueToEditor:o,externalEditorOptions:r,editorInputId:s,editorValidationBoundary:d,editorStylingMode:u,formLabelMode:c,labelText:h,labelMark:p}=e,f={};(void 0!==n||o)&&(f.value=n),-1!==sS.indexOf(t)&&(f.value=f.value||[]);var g=null===r||void 0===r?void 0:r.labelMode;(0,l.$K)(g)||(g="outside"===c?"hidden":c);var m=(null===r||void 0===r?void 0:r.stylingMode)||u,_=(0,a.l)(!0,f,r,{inputAttr:{id:s},validationBoundary:d,stylingMode:m,label:h,labelMode:g,labelMark:p});return r&&(_.dataSource&&(_.dataSource=r.dataSource),_.items&&(_.items=r.items)),i&&!_.name&&(_.name=i),_}function pS(e){var t;return e&&e.length&&(0,E.S6)(e,(function(e,i){if("required"===i.type)return t=!0,!1})),t}function fS(e){var{item:t,id:i,isRequired:n,managerMarkOptions:o,showColonAfterLabel:r,labelLocation:s,labelTemplate:l,formLabelMode:d,onLabelTemplateRendered:u}=e,c=lS.includes(t.editorType),h=(0,a.l)({showColon:r,location:s,id:i,visible:"outside"===d||c&&"hidden"!==d,isRequired:n},t?t.label:{},{markOptions:cS(o,n),labelTemplate:l,onLabelTemplateRendered:u});return["dxRadioGroup","dxCheckBox","dxLookup","dxSlider","dxRangeSlider","dxSwitch","dxHtmlEditor"].includes(t.editorType)&&(h.labelID="dx-label-".concat(new Li.Z)),!h.text&&t.dataField&&(h.text=(0,sn.GK)(t.dataField)),h.text&&(h.textWithoutColon=h.text,h.text+=h.showColon?":":""),h}var gS="dx-field-item-required-mark",mS="dx-field-item-label-location-",_S="dx-field-item-optional-mark",vS="dx-field-item-label-text";function yS(e){var{text:t,id:i,location:n,alignment:r,labelID:a=null,markOptions:s={},labelTemplate:d,labelTemplateData:u,onLabelTemplateRendered:c}=e;if((!(0,l.$K)(t)||t.length<=0)&&!(0,l.$K)(d))return null;var h=(0,o.Z)("<label>").addClass(yg+" "+mS+n).attr("for",i).attr("id",a).css("textAlign",r),p=(0,o.Z)("<span>").addClass(_g),f=(0,o.Z)("<span>").addClass(vS).text(t);return d&&(f=(0,o.Z)("<div>").addClass("dx-field-item-custom-label-content"),u.text=t,d.render({container:(0,se.u)(f),model:u,onRendered(){null===c||void 0===c||c()}})),h.append(p.append(f,CS(s)))}function CS(e){var t=uS(e);return""===t?null:(0,o.Z)("<span>").addClass(e.showRequiredMark?gS:_S).text(t)}function bS(e,t,i){var n,o,r="".concat(t," > .").concat(yg,":not(.").concat(mS,"top) > .").concat(_g),a=e.find(r),s=a.length,l=0;for(o=0;o<s;o++)n=xS(a[o]),n>l&&(l=n);for(o=0;o<s;o++)a[o].style.width=l+"px"}function xS(e){for(var t=0,i=e.children.length,n=0;n<i;n++){var o=e.children[n];t+=o.offsetWidth}return t}var wS="dx-flex-layout",TS="dx-field-item-optional",SS="dx-field-item-required",IS="dx-field-item-content-wrapper",ES="dx-field-item-content-location-",DS="dx-field-item-label-align",kS="dx-field-item-help-text",OS="dx-label-v-align",AS="dx-label-h-align",PS="dx-template-wrapper",MS="dx-validation-target",RS="dx-invalid";function BS(e){var{$parent:t,rootElementCssClassList:i,formOrLayoutManager:n,createComponentCallback:r,labelOptions:a,labelNeedBaselineAlign:s,labelLocation:l,needRenderLabel:d,formLabelLocation:u,item:c,editorOptions:h,isSimpleItem:p,isRequired:f,template:g,helpID:m,labelID:_,name:v,helpText:y,requiredMessageTemplate:C,validationGroup:b}=e,x=(0,o.Z)("<div>").addClass(i.join(" ")).appendTo(t);x.addClass(f?SS:TS),p&&x.addClass(wS),p&&s&&x.addClass(DS);var w=(0,o.Z)("<div>");w.data("dx-form-item",c),w.addClass(Cg).addClass(ES+{right:"left",left:"right",top:"bottom"}[u]);var T,S=null;if(d&&(a.labelTemplate&&(a.labelTemplateData=LS(c,h,n)),S=yS(a)),S?(x.append(S),"top"!==l&&"left"!==l||x.append(w),"right"===l&&x.prepend(w),"top"===l?x.addClass(OS):x.addClass(AS),"dxCheckBox"!==c.editorType&&"dxSwitch"!==c.editorType||re.Z.on(S,A.u,(function(){re.Z.trigger(w.children(),A.u)}))):x.append(w),g)g.render({container:(0,se.u)(w),model:LS(c,h,n),onRendered(){var e=VS(w),t=FS(e);HS(t)}});else{var I=(0,o.Z)("<div>").appendTo(w);try{T=r(I,c.editorType,h),T.setAria("describedby",m),_&&T.setAria("labelledby",_),T.setAria("required",f)}catch(V){Xt.Z.log("E1035",V.message)}}var E=VS(w),D=E&&E.data(MS);if(D){var k,O=c.label&&c.label.text,P=O?null:v,M=O?c.label.text:P&&(0,sn.GK)(P);if(p)if(c.validationRules)k=c.validationRules;else{var R=(0,Ic.WU)(C,M||"");k=c.isRequired?[{type:"required",message:R}]:null}Array.isArray(k)&&k.length&&r(E,aS,{validationRules:k,validationGroup:b,dataGetter:function(){return{formItem:c}}}),HS(D)}if(y&&p){var B=w.parent();B.append((0,o.Z)("<div>").addClass(IS).append(w).append((0,o.Z)("<div>").addClass(kS).attr("id",m).text(y)))}return{$fieldEditorContainer:w,$rootElement:x,widgetInstance:T}}function VS(e){var t=e.children().first();return t.hasClass(PS)?t.children().first():t}function FS(e){var t,i;return(null===e||void 0===e?void 0:e.data(MS))||(null===e||void 0===e||null===(t=e.parent)||void 0===t||null===(i=t.call(e))||void 0===i?void 0:i.data(MS))}function HS(e){if(e&&(0,x.x2)()){var t=".".concat(IS),i=e=>{var{element:i,component:n}=e,{isValid:r,validationMessageMode:a}=n.option();(0,o.Z)(i).parents(t).toggleClass(RS,!1===r&&(n._isFocused()||"always"===a))};e.on("optionChanged",(e=>{"isValid"===e.name&&i(e)})),e.on("focusIn",i).on("focusOut",i).on("enterKey",i)}}function LS(e,t,i){return{dataField:e.dataField,editorType:e.editorType,editorOptions:t,component:i,name:e.name}}var NS="dx-field-button-item";function ZS(e){var{item:t,$parent:i,rootElementCssClassList:n,validationGroup:r,createComponentCallback:s}=e,l=(0,o.Z)("<div>").appendTo(i).addClass(n.join(" ")).addClass(NS).css("textAlign",$S(t.horizontalAlignment));i.css("justifyContent",WS(t.verticalAlignment));var d=(0,o.Z)("<div>").appendTo(l);return{$rootElement:l,buttonInstance:s(d,"dxButton",(0,a.l)({validationGroup:r},t.buttonOptions))}}function $S(e){return(0,l.$K)(e)?e:"right"}function WS(e){switch(e){case"center":return"center";case"bottom":return"flex-end";default:return"flex-start"}}var KS="dx-field-empty-item";function zS(e){var{$parent:t,rootElementCssClassList:i}=e;return(0,o.Z)("<div>").addClass(KS).html("&nbsp;").addClass(i.join(" ")).appendTo(t)}var jS="dxTextBox",US="dx-first-row",GS="dx-last-row",qS="dx-first-col",YS="dx-last-col",XS=G.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{layoutData:{},readOnly:!1,colCount:1,colCountByScreen:void 0,labelLocation:"left",onFieldDataChanged:null,onEditorEnterKey:null,customizeItem:null,alignItemLabels:!0,minColWidth:200,showRequiredMark:!0,screenByWidth:null,showOptionalMark:!1,requiredMark:"*",labelMode:"outside",optionalMark:y.Z.format("dxForm-optionalMark"),requiredMessage:y.Z.getFormatter("dxForm-requiredMessage")})},_setOptionsByReference:function(){this.callBase(),(0,a.l)(this._optionsByReference,{layoutData:!0,validationGroup:!0})},_init:function(){var e=this.option("layoutData");this.callBase(),this._itemWatchers=[],this._itemsRunTimeInfo=new jc,this._updateReferencedOptions(e),this._initDataAndItems(e)},_dispose:function(){this.callBase(),this._cleanItemWatchers()},_initDataAndItems:function(e){this._syncDataWithItems(),this._updateItems(e)},_syncDataWithItems:function(){var e=this.option("layoutData"),t=this.option("items");(0,l.$K)(t)&&t.forEach((t=>{var i;t.dataField&&void 0===this._getDataByField(t.dataField)&&(t.editorOptions&&(i=t.editorOptions.value),((0,l.$K)(i)||t.dataField in e)&&this._updateFieldValue(t.dataField,i))}))},_getDataByField:function(e){return e?this.option("layoutData."+e):null},_isCheckboxUndefinedStateEnabled:function(e){var{allowIndeterminateState:t,editorType:i,dataField:n}=e;if(!0===t&&"dxCheckBox"===i){var o=["layoutData",...n.split(".")],r=o.pop(),a=this.option(o.join("."));return a&&r in a}return!1},_updateFieldValue:function(e,t){var i=this.option("layoutData"),n=t;!$f.Z.isWrapped(i[e])&&(0,l.$K)(e)?this.option("layoutData."+e,n):$f.Z.isWritableWrapped(i[e])&&(n=(0,l.mf)(n)?n():n,i[e](n)),this._triggerOnFieldDataChanged({dataField:e,value:n})},_triggerOnFieldDataChanged:function(e){this._createActionByOption("onFieldDataChanged")(e)},_updateItems:function(e){var t=this,i=this.option("items"),n=(0,l.$K)(i),o=t.option("customizeItem"),r=n?i:this._generateItemsByData(e);if((0,l.$K)(r)){var a=[];(0,E.S6)(r,(function(e,i){t._isAcceptableItem(i)&&(i=t._processItem(i),o&&o(i),(0,l.Kn)(i)&&!1!==$f.Z.unwrap(i.visible)&&a.push(i))})),t._itemWatchers.length&&n||t._updateItemWatchers(r),this._setItems(a),this._sortItems()}},_cleanItemWatchers:function(){this._itemWatchers.forEach((function(e){e()})),this._itemWatchers=[]},_updateItemWatchers:function(e){var t=this,i=t._getWatch();e.forEach((function(e){(0,l.Kn)(e)&&(0,l.$K)(e.visible)&&(0,l.mf)(i)&&t._itemWatchers.push(i((function(){return $f.Z.unwrap(e.visible)}),(function(){t._updateItems(t.option("layoutData")),t.repaint()}),{skipImmediate:!0}))}))},_generateItemsByData:function(e){var t=[];return(0,l.$K)(e)&&(0,E.S6)(e,(function(e){t.push({dataField:e})})),t},_isAcceptableItem:function(e){var t=e.dataField||e,i=this._getDataByField(t);return!((0,l.mf)(i)&&!$f.Z.isWrapped(i))},_processItem:function(e){if("string"===typeof e&&(e={dataField:e}),"object"!==typeof e||e.itemType||(e.itemType=Pg),!(0,l.$K)(e.editorType)&&(0,l.$K)(e.dataField)){var t=this._getDataByField(e.dataField);e.editorType=(0,l.$K)(t)?this._getEditorTypeByDataType((0,l.dt)(t)):jS}var i;"dxCheckBox"===e.editorType&&(e.allowIndeterminateState=null===(i=e.allowIndeterminateState)||void 0===i||i);return e},_getEditorTypeByDataType:function(e){switch(e){case"number":return"dxNumberBox";case"date":return"dxDateBox";case"boolean":return"dxCheckBox";default:return"dxTextBox"}},_sortItems:function(){(0,mu.Sq)(this._items,"visibleIndex"),this._sortIndexes()},_sortIndexes:function(){this._items.sort((function(e,t){var i,n=e.visibleIndex,o=t.visibleIndex;return i=n>o?1:n<o?-1:0,i}))},_initMarkup:function(){this._itemsRunTimeInfo.clear(),this.$element().addClass(vg),this.callBase(),this._renderResponsiveBox()},_renderResponsiveBox:function(){var e=[];if(this._items&&this._items.length){var t=this._getColCount(),i=(0,o.Z)("<div>").appendTo(this.$element());this._prepareItemsWithMerging(t);var n=this._generateLayoutItems();this._responsiveBox=this._createComponent(i,ug,this._getResponsiveBoxConfig(n,t,e)),(0,s.Ym)()||this._renderTemplates(e)}},_itemStateChangedHandler:function(e){this._refresh()},_renderTemplates:function(e){var t=this,i=0;e.forEach((e=>{var t,{item:n}=e;null!==n&&void 0!==n&&null!==(t=n.label)&&void 0!==t&&t.template&&i++})),(0,E.S6)(e,(function(e,n){switch(n.itemType){case"empty":zS(n);break;case"button":t._renderButtonItem(n);break;default:t._renderFieldItem(n,i)}}))},_getResponsiveBoxConfig:function(e,t,i){var n=this,r=n.option("colCountByScreen"),a=r&&r.xs;return{onItemStateChanged:this._itemStateChangedHandler.bind(this),onLayoutChanged:function(){var e=n.option("onLayoutChanged"),t=n.isSingleColumnMode();e&&(n.$element().toggleClass(mg,t),e(t))},onContentReady:function(e){(0,s.Ym)()&&n._renderTemplates(i),n.option("onLayoutChanged")&&n.$element().toggleClass(mg,n.isSingleColumnMode(e.component))},itemTemplate:function(e,r,a){if(e.location){var s=(0,o.Z)(a),d=e.location.row*t,u=n._items[e.location.col+d];if(u){var c=[u.cssClass];s.toggleClass(bg,n.isSingleColumnMode(this)),0===e.location.row&&c.push(US),0===e.location.col&&c.push(qS),u.itemType===Pg&&n.option("isRoot")&&s.addClass(xg);var h=e.location.col===t-1||e.location.col+e.location.colspan===t,p=n._getRowsCount(),f=e.location.row===p-1;h&&c.push(YS),f&&c.push(GS),"empty"!==u.itemType&&(c.push(gg),c.push(n.option("cssItemClass")),(0,l.$K)(u.col)&&c.push("dx-col-"+u.col)),i.push({itemType:u.itemType,item:u,$parent:s,rootElementCssClassList:c})}}},cols:n._generateRatio(t),rows:n._generateRatio(n._getRowsCount(),!0),dataSource:e,screenByWidth:n.option("screenByWidth"),singleColumnScreen:!a&&"xs"}},_getColCount:function(){var e=this.option("colCount"),t=this.option("colCountByScreen");if(t){var i=this.option("form").getTargetScreenFactor();i||(i=(0,s.Ym)()?(0,s.Wf)(this.option("screenByWidth")):"lg"),e=t[i]||e}if("auto"===e){if(this._cashedColCount)return this._cashedColCount;this._cashedColCount=e=this._getMaxColCount()}return e<1?1:e},_getMaxColCount:function(){if(!(0,s.Ym)())return 1;var e=this.option("minColWidth"),t=(0,n.dz)(this.$element()),i=this._items.length,o=Math.floor(t/e)||1;return i<o?i:o},isCachedColCountObsolete:function(){return this._cashedColCount&&this._getMaxColCount()!==this._cashedColCount},_prepareItemsWithMerging:function(e){var t,i,n,o,r=this._items.slice(0),a=[];for(o=0;o<r.length;o++)if(t=r[o],a.push(t),(this.option("alignItemLabels")||t.alignItemLabels||t.colSpan)&&(t.col=this._getColByIndex(a.length-1,e)),t.colSpan>1&&t.col+t.colSpan<=e){for(i=[],n=0;n<t.colSpan-1;n++)i.push({merged:!0});a=a.concat(i)}else delete t.colSpan;this._setItems(a)},_getColByIndex:function(e,t){return e%t},_setItems:function(e){this._items=e,this._cashedColCount=null},_generateLayoutItems:function(){var e,t,i=this._items,n=this._getColCount(),o=[];for(t=0;t<i.length;t++)if(e=i[t],!e.merged){var r={location:{row:parseInt(t/n),col:this._getColByIndex(t,n)}};(0,l.$K)(e.disabled)&&(r.disabled=e.disabled),(0,l.$K)(e.visible)&&(r.visible=e.visible),(0,l.$K)(e.colSpan)&&(r.location.colspan=e.colSpan),(0,l.$K)(e.rowSpan)&&(r.location.rowspan=e.rowSpan),o.push(r)}return o},_renderEmptyItem:function(e){zS({$container:e})},_renderButtonItem:function(e){var{item:t,$parent:i,rootElementCssClassList:n}=e,{$rootElement:o,buttonInstance:r}=ZS({item:t,$parent:i,rootElementCssClassList:n,validationGroup:this.option("validationGroup"),createComponentCallback:this._createComponent.bind(this)});this._itemsRunTimeInfo.add({item:t,widgetInstance:r,guid:t.guid,$itemContainer:o})},_renderFieldItem:function(e,t){var i,n,{item:o,$parent:r,rootElementCssClassList:a}=e,s=this._getDataByField(o.dataField),l=!1;if(void 0===s){var{allowIndeterminateState:d,editorType:u,dataField:c}=o;l=this._isCheckboxUndefinedStateEnabled({allowIndeterminateState:d,editorType:u,dataField:c})}var h=o.dataField||o.name,p=this._getFormOrThis(),{$fieldEditorContainer:f,widgetInstance:g,$rootElement:m}=BS(dS({$parent:r,rootElementCssClassList:a,item:o,name:h,editorValue:s,canAssignUndefinedValueToEditor:l,formOrLayoutManager:this._getFormOrThis(),createComponentCallback:this._createComponent.bind(this),formLabelLocation:this.option("labelLocation"),requiredMessageTemplate:this.option("requiredMessage"),validationGroup:this.option("validationGroup"),editorValidationBoundary:this.option("validationBoundary"),editorStylingMode:this.option("form")&&this.option("form").option("stylingMode"),showColonAfterLabel:this.option("showColonAfterLabel"),managerLabelLocation:this.option("labelLocation"),template:o.template?this._getTemplate(o.template):null,labelTemplate:null!==(i=o.label)&&void 0!==i&&i.template?this._getTemplate(o.label.template):null,itemId:this.option("form")&&this.option("form").getItemID(h),managerMarkOptions:this._getMarkOptions(),labelMode:this.option("labelMode"),onLabelTemplateRendered:()=>{this._incTemplateRenderedCallCount(),this._shouldAlignLabelsOnTemplateRendered(p,t)&&p._alignLabels(this,this.isSingleColumnMode(p))}}));null===(n=this.option("onFieldItemRendered"))||void 0===n||n(),g&&o.dataField&&this._bindDataField(g,o.dataField,o.editorType,f),this._itemsRunTimeInfo.add({item:o,widgetInstance:g,guid:o.guid,$itemContainer:m})},_incTemplateRenderedCallCount(){var e;this._labelTemplateRenderedCallCount=(null!==(e=this._labelTemplateRenderedCallCount)&&void 0!==e?e:0)+1},_shouldAlignLabelsOnTemplateRendered(e,t){return e.option("templatesRenderAsynchronously")&&this._labelTemplateRenderedCallCount===t},_getMarkOptions:function(){return{showRequiredMark:this.option("showRequiredMark"),requiredMark:this.option("requiredMark"),showOptionalMark:this.option("showOptionalMark"),optionalMark:this.option("optionalMark")}},_getFormOrThis:function(){return this.option("form")||this},_bindDataField:function(e,t,i,n){var o=this._getFormOrThis();e.on("enterKey",(function(e){o._createActionByOption("onEditorEnterKey")((0,a.l)(e,{dataField:t}))})),this._createWatcher(e,n,t),this.linkEditorToDataField(e,t,i)},_createWatcher:function(e,t,i){var n=this,o=n._getWatch();if((0,l.mf)(o)){var r=o((function(){return n._getDataByField(i)}),(function(){var t=n._getDataByField(i);if("dxTagBox"===e.NAME){var o=e.option("value");if(t!==o&&function(e,t){if(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}(t,o))return}e.option("value",t)}),{deep:!0,skipImmediate:!0});re.Z.on(t,nt.x,r)}},_getWatch:function(){if(!(0,l.$K)(this._watch)){var e=this.option("form");this._watch=e&&e.option("integrationOptions.watchMethod")}return this._watch},_createComponent:function(e,t,i){var n=this.option("readOnly"),o=this.callBase(e,t,i);return n&&o.option("readOnly",n),this.on("optionChanged",(function(e){"readOnly"!==e.name||(0,l.$K)(i.readOnly)||o.option(e.name,e.value)})),o},_generateRatio:function(e,t){var i,n,o=[];for(n=0;n<e;n++)i={ratio:1},t&&(i.baseSize="auto"),o.push(i);return o},_getRowsCount:function(){return Math.ceil(this._items.length/this._getColCount())},_updateReferencedOptions:function(e){var t=this.option("layoutData");(0,l.Kn)(t)&&Object.getOwnPropertyNames(t).forEach((e=>delete this._optionsByReference["layoutData."+e])),(0,l.Kn)(e)&&Object.getOwnPropertyNames(e).forEach((e=>this._optionsByReference["layoutData."+e]=!0))},_resetWidget(e){this._disableEditorValueChangedHandler=!0,e.reset(),this._disableEditorValueChangedHandler=!1,e.option("isValid",!0)},_optionChanged(e){if(0!==e.fullName.search("layoutData."))switch(e.name){case"showRequiredMark":case"showOptionalMark":case"requiredMark":case"optionalMark":this._cashedRequiredConfig=null,this._invalidate();break;case"layoutData":this._updateReferencedOptions(e.value),this.option("items")?(0,l.Qr)(e.value)||this._itemsRunTimeInfo.each(((t,i)=>{if((0,l.$K)(i.item)){var n=i.item.dataField;if(n&&(0,l.$K)(i.widgetInstance)){var o=(0,r.vb)(n),a=o(e.value),{allowIndeterminateState:s,editorType:d}=i.item;void 0!==a||this._isCheckboxUndefinedStateEnabled({allowIndeterminateState:s,editorType:d,dataField:n})?i.widgetInstance.option("value",a):this._resetWidget(i.widgetInstance)}}})):(this._initDataAndItems(e.value),this._invalidate());break;case"items":this._cleanItemWatchers(),this._initDataAndItems(e.value),this._invalidate();break;case"alignItemLabels":case"labelLocation":case"labelMode":case"requiredMessage":this._invalidate();break;case"customizeItem":this._updateItems(this.option("layoutData")),this._invalidate();break;case"colCount":this._resetColCount();break;case"minColWidth":"auto"===this.option("colCount")&&this._resetColCount();break;case"readOnly":break;case"width":this.callBase(e),"auto"===this.option("colCount")&&this._resetColCount();break;case"onFieldDataChanged":break;default:this.callBase(e)}},_resetColCount:function(){this._cashedColCount=null,this._invalidate()},linkEditorToDataField(e,t){this.on("optionChanged",(i=>{i.fullName==="layoutData.".concat(t)&&e._setOptionWithoutOptionChange("value",i.value)})),e.on("valueChanged",(e=>{var i=(0,l.Kn)(e.value)||Array.isArray(e.value);this._disableEditorValueChangedHandler||i&&e.value===e.previousValue||this._updateFieldValue(t,e.value)}))},_dimensionChanged:function(){"auto"===this.option("colCount")&&this.isCachedColCountObsolete()&&this._eventsStrategy.fireEvent("autoColCountChanged")},updateData:function(e,t){var i=this;(0,l.Kn)(e)?(0,E.S6)(e,(function(e,t){i._updateFieldValue(e,t)})):"string"===typeof e&&i._updateFieldValue(e,t)},getEditor:function(e){return this._itemsRunTimeInfo.findWidgetInstanceByDataField(e)||this._itemsRunTimeInfo.findWidgetInstanceByName(e)},isSingleColumnMode:function(e){var t=this._responsiveBox||e;if(t)return t.option("currentScreenFactor")===t.option("singleColumnScreen")},getItemsRunTimeInfo:function(){return this._itemsRunTimeInfo}});(0,C.Z)("dxLayoutManager",XS);var JS="dx-validationsummary",QS=JS+"-item",eI=JS+"-item-data",tI=Du.inherit({_getDefaultOptions(){return(0,a.l)(this.callBase(),{focusStateEnabled:!1,noDataText:null})},_setOptionsByReference(){this.callBase(),(0,a.l)(this._optionsByReference,{validationGroup:!0})},_init(){this.callBase(),this._initGroupRegistration()},_initGroupRegistration(){var e=this.$element(),t=this.option("validationGroup")||Kn.findGroup(e,this._modelByElement(e)),i=Kn.addGroup(t);this._unsubscribeGroup(),this._groupWasInit=!0,this._validationGroup=t,this.groupSubscription=this._groupValidationHandler.bind(this),i.on("validated",this.groupSubscription)},_unsubscribeGroup(){var e=Kn.getGroupConfig(this._validationGroup);e&&e.off("validated",this.groupSubscription)},_getOrderedItems(e,t){var i=[];return(0,E.S6)(e,(function(e,n){var o=(0,v.h3)(t,(function(e){if(e.validator===n)return!0}));o.length&&(i=i.concat(o))})),i},_groupValidationHandler(e){var t=this._getOrderedItems(e.validators,(0,E.UI)(e.brokenRules,(function(e){return{text:e.message,validator:e.validator,index:e.index}})));this.validators=e.validators,(0,E.S6)(this.validators,((e,t)=>{if(t._validationSummary!==this){var i=this._itemValidationHandler.bind(this);t.on("validated",i),t.on("disposing",(function(){t.off("validated",i),t._validationSummary=null,i=null})),t._validationSummary=this}})),this.option("items",t)},_itemValidationHandler(e){var{isValid:t,validator:i,brokenRules:n}=e,o=this.option("items"),r=!1,a=0,s=function(){var e=o[a];if(e.validator===i){var s=(0,v.h3)(n||[],(function(t){return t.index===e.index}))[0];if(t||!s)return o.splice(a,1),r=!0,"continue";s.message!==e.text&&(e.text=s.message,r=!0)}a++};while(a<o.length)s();(0,E.S6)(n,(function(e,t){var n=(0,v.h3)(o,(function(e){return e.validator===i&&e.index===t.index}))[0];n||(o.push({text:t.message,validator:i,index:t.index}),r=!0)})),r&&(o=this._getOrderedItems(this.validators,o),this.option("items",o))},_initMarkup(){this.$element().addClass(JS),this.callBase()},_optionChanged(e){switch(e.name){case"validationGroup":this._initGroupRegistration();break;default:this.callBase(e)}},_itemClass:()=>QS,_itemDataKey:()=>eI,_postprocessRenderItem(e){re.Z.on(e.itemElement,"click",(function(){e.itemData.validator&&e.itemData.validator.focus&&e.itemData.validator.focus()}))},_dispose(){this.callBase(),this._unsubscribeGroup()},refreshValidationGroup(){this._initGroupRegistration()}});(0,C.Z)("dxValidationSummary",tI);var iI=tI,nI="dx-validationgroup",oI="dx-validator",rI="dx-validationsummary";class aI extends S.Z{_getDefaultOptions(){return super._getDefaultOptions()}_init(){super._init(),Kn.addGroup(this)}_initMarkup(){var e=this.$element();e.addClass(nI),e.find(".".concat(oI)).each((function(e,t){aS.getInstance((0,o.Z)(t))._initGroupRegistration()})),e.find(".".concat(rI)).each((function(e,t){iI.getInstance((0,o.Z)(t)).refreshValidationGroup()})),super._initMarkup()}validate(){return Kn.validateGroup(this)}reset(){return Kn.resetGroup(this)}_dispose(){Kn.removeGroup(this),this.$element().removeClass(nI),super._dispose()}_useTemplates(){return!1}}(0,C.Z)("dxValidationGroup",aI);var sI="dx-state-focused",lI=["items","isRequired","validationRules","visible"],dI=G.inherit({_init:function(){this.callBase(),this._cachedColCountOptions=[],this._itemsRunTimeInfo=new jc,this._groupsColCount=[],this._attachSyncSubscriptions()},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{formID:"dx-"+new Li.Z,formData:{},colCount:1,screenByWidth:s.$n,colCountByScreen:void 0,labelLocation:"left",readOnly:!1,onFieldDataChanged:null,customizeItem:null,onEditorEnterKey:null,minColWidth:200,alignItemLabels:!0,alignItemLabelsInAllGroups:!0,alignRootItemLabels:!0,showColonAfterLabel:!0,showRequiredMark:!0,showOptionalMark:!1,requiredMark:"*",optionalMark:y.Z.format("dxForm-optionalMark"),requiredMessage:y.Z.getFormatter("dxForm-requiredMessage"),showValidationSummary:!1,items:void 0,scrollingEnabled:!1,validationGroup:void 0,stylingMode:(0,Oe.Z)().editorStylingMode,labelMode:"outside"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return(0,x.x2)()},options:{showColonAfterLabel:!1,labelLocation:"top"}}])},_setOptionsByReference:function(){this.callBase(),(0,a.l)(this._optionsByReference,{formData:!0,validationGroup:!0})},_getGroupColCount:function(e){return parseInt(e.attr(kg))},_applyLabelsWidthByCol:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,o=i.inOneColumn?gg:fg+t,r=i.excludeTabbed?":not(.".concat(Eg,")"):"";bS(e,".".concat(o).concat(r),n)},_applyLabelsWidth:function(e,t,i,n,o){n=i?1:n||this._getGroupColCount(e);var r,a={excludeTabbed:t,inOneColumn:i};for(r=0;r<n;r++)this._applyLabelsWidthByCol(e,r,a,o)},_getGroupElementsInColumn:function(e,t,i){var n=(0,l.$K)(i)?"."+Dg+i:"",o="."+fg+t+" > ."+Cg+" > ."+hg+n;return e.find(o)},_applyLabelsWidthWithGroups:function(e,t,i,n){if(!0===this.option("alignRootItemLabels"))for(var o=e.find(".".concat(xg)),r=0;r<t;r++)this._applyLabelsWidthByCol(o,r,i,n);var a=this.option("alignItemLabelsInAllGroups");if(a)this._applyLabelsWidthWithNestedGroups(e,t,i,n);else{var s,l=this.$element().find("."+hg);for(s=0;s<l.length;s++)this._applyLabelsWidth(l.eq(s),i,void 0,void 0,n)}},_applyLabelsWidthWithNestedGroups:function(e,t,i,n){var o,r,a,s,l={excludeTabbed:i};for(o=0;o<t;o++)for(s=this._getGroupElementsInColumn(e,o),this._applyLabelsWidthByCol(s,0,l,n),r=0;r<this._groupsColCount.length;r++){s=this._getGroupElementsInColumn(e,o,this._groupsColCount[r]);var d=this._getGroupColCount(s);for(a=1;a<d;a++)this._applyLabelsWidthByCol(s,a,l,n)}},_labelLocation:function(){return this.option("labelLocation")},_alignLabelsInColumn:function(e){var{layoutManager:t,inOneColumn:i,$container:n,excludeTabbed:o,items:r}=e;if((0,s.Ym)()&&"top"!==this._labelLocation()){var a=cS(t._getMarkOptions());i?this._applyLabelsWidth(n,o,!0,void 0,a):this._checkGrouping(r)?this._applyLabelsWidthWithGroups(n,t._getColCount(),o,a):this._applyLabelsWidth(n,o,!1,t._getColCount(),a)}},_prepareFormData:function(){(0,l.$K)(this.option("formData"))||this.option("formData",{})},_setStylingModeClass:function(){"underlined"===this.option("stylingMode")&&this.$element().addClass(Ag)},_initMarkup:function(){Kn.addGroup(this._getValidationGroup()),this._clearCachedInstances(),this._prepareFormData(),this.$element().addClass(cg),this._setStylingModeClass(),this.callBase(),this.setAria("role","form",this.$element()),this.option("scrollingEnabled")&&this._renderScrollable(),this._renderLayout(),this._renderValidationSummary(),this._lastMarkupScreenFactor=this._targetScreenFactor||this._getCurrentScreenFactor()},_getCurrentScreenFactor:function(){return(0,s.Ym)()?(0,s.Wf)(this.option("screenByWidth")):"lg"},_clearCachedInstances:function(){this._itemsRunTimeInfo.clear(),this._cachedLayoutManagers=[]},_alignLabels:function(e,t){this._alignLabelsInColumn({$container:this.$element(),layoutManager:e,excludeTabbed:!0,items:this.option("items"),inOneColumn:t}),(0,Qt.U_)(this.$element().find(".".concat(Au)))},_clean:function(){this._clearValidationSummary(),this.callBase(),this._groupsColCount=[],this._cachedColCountOptions=[],this._lastMarkupScreenFactor=void 0},_renderScrollable:function(){var e=this.option("useNativeScrolling");this._scrollable=new $p(this.$element(),{useNative:!!e,useSimulatedScrollbar:!e,useKeyboard:!1,direction:"both",bounceEnabled:!1})},_getContent:function(){return this.option("scrollingEnabled")?(0,o.Z)(this._scrollable.content()):this.$element()},_clearValidationSummary:function(){var e;null===(e=this._$validationSummary)||void 0===e||e.remove(),this._$validationSummary=void 0,this._validationSummary=void 0},_renderValidationSummary:function(){this._clearValidationSummary(),this.option("showValidationSummary")&&(this._$validationSummary=(0,o.Z)("<div>").addClass(Og).appendTo(this._getContent()),this._validationSummary=this._$validationSummary.dxValidationSummary({validationGroup:this._getValidationGroup()}).dxValidationSummary("instance"))},_prepareItems(e,t,i,n){if(e){for(var o=[],r=0;r<e.length;r++){var a=e[r],s=Tf(i,wf(r,n)),d={item:a,itemIndex:r,path:s},u=this._itemsRunTimeInfo.add(d);if((0,l.HD)(a)&&(a={dataField:a}),(0,l.Kn)(a)){var c=(0,hn.Z)({},a);d.preparedItem=c,c.guid=u,this._tryPrepareGroupItem(c),this._tryPrepareTabbedItem(c,s),this._tryPrepareItemTemplate(c),t&&(c.cssItemClass=Eg),c.items&&(c.items=this._prepareItems(c.items,t,s)),o.push(c)}else o.push(a)}return o}},_tryPrepareGroupItem:function(e){"group"===e.itemType&&(e.alignItemLabels=(0,v.IS)(e.alignItemLabels,!0),e._prepareGroupItemTemplate=t=>{e.template&&(e.groupContentTemplate=this._getTemplate(t)),e.template=this._itemGroupTemplate.bind(this,e)},e._prepareGroupItemTemplate(e.template))},_tryPrepareTabbedItem:function(e,t){"tabbed"===e.itemType&&(e.template=this._itemTabbedTemplate.bind(this,e),e.tabs=this._prepareItems(e.tabs,!0,t,!0))},_tryPrepareItemTemplate:function(e){e.template&&(e.template=this._getTemplate(e.template))},_checkGrouping:function(e){if(e)for(var t=0;t<e.length;t++){var i=e[t];if("group"===i.itemType)return!0}},_renderLayout:function(){var e=this,t=e.option("items"),i=e._getContent();t=e._prepareItems(t),e._rootLayoutManager=e._renderLayoutManager(i,this._createLayoutManagerOptions(t,{isRoot:!0,colCount:e.option("colCount"),alignItemLabels:e.option("alignItemLabels"),screenByWidth:this.option("screenByWidth"),colCountByScreen:this.option("colCountByScreen"),onLayoutChanged:function(t){e._alignLabels.bind(e)(e._rootLayoutManager,t)},onContentReady:function(t){e._alignLabels(t.component,t.component.isSingleColumnMode())}}))},_tryGetItemsForTemplate:function(e){return e.items||[]},_itemTabbedTemplate:function(e,t,i){var n=(0,o.Z)("<div>").appendTo(i),r=(0,a.l)({},e.tabPanelOptions,{dataSource:e.tabs,onItemRendered:t=>{var i,n;null===(i=e.tabPanelOptions)||void 0===i||null===(n=i.onItemRendered)||void 0===n||n.call(i,t),(0,Qt.Uo)(t.itemElement)},itemTemplate:(e,t,i)=>{var n=(0,o.Z)(i),r=(0,v.IS)(e.alignItemLabels,!0),a=this._renderLayoutManager(n,this._createLayoutManagerOptions(this._tryGetItemsForTemplate(e),{colCount:e.colCount,alignItemLabels:r,screenByWidth:this.option("screenByWidth"),colCountByScreen:e.colCountByScreen,cssItemClass:e.cssItemClass,onLayoutChanged:t=>{this._alignLabelsInColumn({$container:n,layoutManager:a,items:e.items,inOneColumn:t})}}));this._itemsRunTimeInfo&&this._itemsRunTimeInfo.extendRunTimeItemInfoByKey(e.guid,{layoutManager:a}),r&&this._alignLabelsInColumn({$container:n,layoutManager:a,items:e.items,inOneColumn:a.isSingleColumnMode()})}}),s=(e,t)=>{Array.isArray(e)&&e.forEach((e=>this._itemsRunTimeInfo.extendRunTimeItemInfoByKey(e.guid,{widgetInstance:t})))},l=this._createComponent(n,bf,r);(0,o.Z)(i).parent().addClass(Sg),l.on("optionChanged",(e=>{"dataSource"===e.fullName&&s(e.value,e.component)})),s([{guid:e.guid},...e.tabs],l)},_itemGroupTemplate:function(e,t,i){var n,r,a=(0,o.Z)("<div>").toggleClass(Ig,(0,l.$K)(e.caption)&&e.caption.length).addClass(hg).appendTo(i);(0,o.Z)(i).parent().addClass(Tg),e.caption&&(0,o.Z)("<span>").addClass(pg).text(e.caption).appendTo(a);var s=(0,o.Z)("<div>").addClass(wg).appendTo(a);e.groupContentTemplate?(e._renderGroupContentTemplate=()=>{s.empty();var t={formData:this.option("formData"),component:this};e.groupContentTemplate.render({model:t,container:(0,se.u)(s)})},e._renderGroupContentTemplate()):(r=this._renderLayoutManager(s,this._createLayoutManagerOptions(this._tryGetItemsForTemplate(e),{colCount:e.colCount,colCountByScreen:e.colCountByScreen,alignItemLabels:e.alignItemLabels,cssItemClass:e.cssItemClass})),this._itemsRunTimeInfo&&this._itemsRunTimeInfo.extendRunTimeItemInfoByKey(e.guid,{layoutManager:r}),n=r._getColCount(),this._groupsColCount.includes(n)||this._groupsColCount.push(n),a.addClass(Dg+n),a.attr(kg,n))},_createLayoutManagerOptions:function(e,t){return Pf({form:this,formOptions:this.option(),$formElement:this.$element(),items:e,validationGroup:this._getValidationGroup(),extendedLayoutManagerOptions:t,onFieldDataChanged:e=>{this._isDataUpdating||this._triggerOnFieldDataChanged(e)},onContentReady:e=>{this._itemsRunTimeInfo.addItemsOrExtendFrom(e.component._itemsRunTimeInfo),t.onContentReady&&t.onContentReady(e)},onDisposing:e=>{var{component:t}=e,i=t.getItemsRunTimeInfo();this._itemsRunTimeInfo.removeItemsByItems(i)},onFieldItemRendered:()=>{var e;null===(e=this._validationSummary)||void 0===e||e.refreshValidationGroup()}})},_renderLayoutManager:function(e,t){var i={lg:t.colCount,md:t.colCount,sm:t.colCount,xs:1};this._cachedColCountOptions.push({colCountByScreen:(0,a.l)(i,t.colCountByScreen)});var n=(0,o.Z)("<div>");n.appendTo(e);var r=this._createComponent(n,"dxLayoutManager",t);return r.on("autoColCountChanged",(()=>{this._clearAutoColCountChangedTimeout(),this.autoColCountChangedTimeoutId=setTimeout((()=>!this._disposed&&this._refresh()),0)})),this._cachedLayoutManagers.push(r),r},_getValidationGroup:function(){return this.option("validationGroup")||this},_createComponent:function(e,t,i){return i=i||{},this._extendConfig(i,{readOnly:this.option("readOnly")}),this.callBase(e,t,i)},_attachSyncSubscriptions:function(){var e=this;e.on("optionChanged",(function(t){var i=t.fullName;"formData"===i&&((0,l.$K)(t.value)||e._options.silent("formData",t.value={}),e._triggerOnFieldDataChangedByDataSet(t.value)),e._cachedLayoutManagers.length&&(0,E.S6)(e._cachedLayoutManagers,(function(n,o){"formData"===i&&(e._isDataUpdating=!0,o.option("layoutData",t.value),e._isDataUpdating=!1),"readOnly"!==t.name&&"disabled"!==t.name||o.option(i,t.value)}))}))},_optionChanged:function(e){var t=e.fullName.split(".");t.length>1&&-1!==t[0].search("items")&&this._itemsOptionChangedHandler(e)||t.length>1&&-1!==t[0].search("formData")&&this._formDataOptionChangedHandler(e)||this._defaultOptionChangedHandler(e)},_defaultOptionChangedHandler:function(e){switch(e.name){case"formData":this.option("items")?(0,l.Qr)(e.value)&&this._resetValues():this._invalidate();break;case"onFieldDataChanged":break;case"items":case"colCount":case"onEditorEnterKey":case"labelLocation":case"labelMode":case"alignItemLabels":case"showColonAfterLabel":case"customizeItem":case"alignItemLabelsInAllGroups":case"showRequiredMark":case"showOptionalMark":case"requiredMark":case"optionalMark":case"requiredMessage":case"scrollingEnabled":case"formID":case"colCountByScreen":case"screenByWidth":case"stylingMode":this._invalidate();break;case"showValidationSummary":this._renderValidationSummary();break;case"minColWidth":"auto"===this.option("colCount")&&this._invalidate();break;case"alignRootItemLabels":case"readOnly":break;case"width":this.callBase(e),this._rootLayoutManager.option(e.name,e.value),this._alignLabels(this._rootLayoutManager,this._rootLayoutManager.isSingleColumnMode());break;case"validationGroup":Kn.removeGroup(e.previousValue||this),this._invalidate();break;default:this.callBase(e)}},_itemsOptionChangedHandler:function(e){var t=e.fullName.split("."),i=e.value,n=this._getItemPath(t),o=this.option(n),r=e.fullName.replace(n+".",""),a=r.split(".")[0].replace(/\[\d+]/,""),s=this._tryCreateItemOptionAction(a,o,o[a],e.previousValue,n),l=this._tryExecuteItemOptionAction(s)||this._tryChangeLayoutManagerItemOption(e.fullName,i);if(!l&&o){this._changeItemOption(o,r,i);var d=this._generateItemsFromData(this.option("items"));this.option("items",d),l=!0}return l},_formDataOptionChangedHandler:function(e){var t=e.fullName.split("."),i=e.value,n=t.slice(1).join("."),o=this.getEditor(n);return o?o.option("value",i):this._triggerOnFieldDataChanged({dataField:n,value:i}),!0},_tryCreateItemOptionAction:function(e,t,i,n,o){return"tabs"===e&&(this._itemsRunTimeInfo.removeItemsByPathStartWith("".concat(o,".tabs")),i=this._prepareItems(i,!0,o,!0)),Zf(e,{item:t,value:i,previousValue:n,itemsRunTimeInfo:this._itemsRunTimeInfo})},_tryExecuteItemOptionAction:function(e){return e&&e.tryExecute()},_updateValidationGroupAndSummaryIfNeeded:function(e){var t,i=Df(e);lI.indexOf(i)>-1&&(Kn.addGroup(this._getValidationGroup()),this.option("showValidationSummary")&&(null===(t=this._validationSummary)||void 0===t||t.refreshValidationGroup()))},_setLayoutManagerItemOption(e,t,i,n){if(this._updateLockCount>0){!e._updateLockCount&&e.beginUpdate();var o=this._itemsRunTimeInfo.findKeyByPath(n);this.postponedOperations.add(o,(()=>(!e._disposed&&e.endUpdate(),(new ot.BH).resolve())))}var r=e=>{if(e.component.off("contentReady",r),Of(n)){var t=kf(n),i=this._itemsRunTimeInfo.findGroupOrTabLayoutManagerByPath(t);i&&this._alignLabelsInColumn({items:i.option("items"),layoutManager:i,$container:i.$element(),inOneColumn:i.isSingleColumnMode()})}else this._alignLabels(this._rootLayoutManager,this._rootLayoutManager.isSingleColumnMode())};e.on("contentReady",r),e.option(t,i),this._updateValidationGroupAndSummaryIfNeeded(t)},_tryChangeLayoutManagerItemOption(e,t){var i=e.split("."),n=Df(e);if("items"===n&&i.length>1){var o=this._getItemPath(i),r=this._itemsRunTimeInfo.findGroupOrTabLayoutManagerByPath(o);if(r){this._itemsRunTimeInfo.removeItemsByItems(r.getItemsRunTimeInfo());var a=this._prepareItems(t,!1,o);return this._setLayoutManagerItemOption(r,n,a,o),!0}}else if(i.length>2){var s=i.length-2,l=this._getItemPath(i.slice(0,s)),d=this._itemsRunTimeInfo.findGroupOrTabLayoutManagerByPath(l);if(d){var u=Ef(i[s],n);if("editorType"===n&&d.option(u)!==t)return!1;if("visible"===n){var c=this.option(Ef(l,"items"));if(c&&c.length){var h=d.option("items");c.forEach(((e,t)=>{var i=h[t];i.visibleIndex=e.visibleIndex}))}}return this._setLayoutManagerItemOption(d,u,t,l),!0}}return!1},_tryChangeLayoutManagerItemOptions(e,t){var i;return this.beginUpdate(),(0,E.S6)(t,((t,n)=>{if(i=this._tryChangeLayoutManagerItemOption(Ef(e,t),n),!i)return!1})),this.endUpdate(),i},_getItemPath:function(e){var t,i=e[0];for(t=1;t<e.length;t++){if(-1===e[t].search(/items\[\d+]|tabs\[\d+]/))break;i+="."+e[t]}return i},_triggerOnFieldDataChanged:function(e){this._createActionByOption("onFieldDataChanged")(e)},_triggerOnFieldDataChangedByDataSet:function(e){var t=this;e&&(0,l.Kn)(e)&&(0,E.S6)(e,(function(e,i){t._triggerOnFieldDataChanged({dataField:e,value:i})}))},_updateFieldValue:function(e,t){if((0,l.$K)(this.option("formData"))){var i=this.getEditor(e);if(this.option("formData."+e,t),i){var n=i.option("value");n!==t&&i.option("value",t)}}},_generateItemsFromData:function(e){var t=this.option("formData"),i=[];return!e&&(0,l.$K)(t)&&(0,E.S6)(t,(function(e){i.push({dataField:e})})),e&&(0,E.S6)(e,(function(e,t){(0,l.Kn)(t)?i.push(t):i.push({dataField:t})})),i},_getItemByField:function(e,t){var i,n=this,o=(0,l.Kn)(e)?e:n._getFieldParts(e),r=o.fieldName,a=o.fieldPath;return t.length&&(0,E.S6)(t,(function(e,t){var o=t.itemType;if(a.length){var s=a.slice();t=n._getItemByFieldPath(s,r,t)}else if("group"===o&&!t.caption&&!t.name||"tabbed"===o&&!t.name){var l=n._getSubItemField(o);t.items=n._generateItemsFromData(t.items),t=n._getItemByField({fieldName:r,fieldPath:a},t[l])}if(If(t,r))return i=t,!1})),i},_getFieldParts:function(e){var t=e,i=t.indexOf("."),n=[];while(-1!==i)n.push(t.substr(0,i)),t=t.substr(i+1),i=t.indexOf(".");return{fieldName:t,fieldPath:n.reverse()}},_getItemByFieldPath:function(e,t,i){var n,o=i.itemType,r=this._getSubItemField(o),a="group"===o||"tabbed"===o||i.title;do{if(!a)break;var s=i.name||i.caption||i.title,d=(0,l.$K)(s),u=Sf(s),c=void 0;if(i[r]=this._generateItemsFromData(i[r]),d&&(c=e.pop()),!e.length&&(n=this._getItemByField(t,i[r]),n))break;(!d||d&&u===c)&&e.length&&(n=this._searchItemInEverySubItem(e,t,i[r]))}while(e.length&&!(0,l.$K)(n));return n},_getSubItemField:function(e){return"tabbed"===e?"tabs":"items"},_searchItemInEverySubItem:function(e,t,i){var n,o=this;return(0,E.S6)(i,(function(i,r){if(n=o._getItemByFieldPath(e.slice(),t,r),n)return!1})),n||(n=!1),n},_changeItemOption:function(e,t,i){(0,l.Kn)(e)&&(e[t]=i)},_dimensionChanged:function(){var e=this._getCurrentScreenFactor();this._lastMarkupScreenFactor!==e&&(this._isColCountChanged(this._lastMarkupScreenFactor,e)&&(this._targetScreenFactor=e,this._refresh(),this._targetScreenFactor=void 0),this._lastMarkupScreenFactor=e)},_isColCountChanged:function(e,t){var i=!1;return(0,E.S6)(this._cachedColCountOptions,(function(n,o){if(o.colCountByScreen[e]!==o.colCountByScreen[t])return i=!0,!1})),i},_refresh:function(){var e="."+sI+" input, ."+sI+" textarea";re.Z.trigger(this.$element().find(e),"change"),this.callBase()},_resetValues:function(){this._itemsRunTimeInfo.each((function(e,t){(0,l.$K)(t.widgetInstance)&&zc.isEditor(t.widgetInstance)&&(t.widgetInstance.reset(),t.widgetInstance.option("isValid",!0))})),Kn.resetGroup(this._getValidationGroup())},_updateData:function(e,t,i){var n=this,o=i?t:e;(0,l.Kn)(o)?(0,E.S6)(o,(function(t,o){n._updateData(i?e+"."+t:t,o,(0,l.Kn)(o))})):(0,l.HD)(e)&&n._updateFieldValue(e,t)},registerKeyHandler:function(e,t){this.callBase(e,t),this._itemsRunTimeInfo.each((function(i,n){(0,l.$K)(n.widgetInstance)&&n.widgetInstance.registerKeyHandler(e,t)}))},_focusTarget:function(){return this.$element().find("."+Cg+" [tabindex]").first()},_visibilityChanged:function(){this._alignLabels(this._rootLayoutManager,this._rootLayoutManager.isSingleColumnMode())},_clearAutoColCountChangedTimeout:function(){this.autoColCountChangedTimeoutId&&(clearTimeout(this.autoColCountChangedTimeoutId),this.autoColCountChangedTimeoutId=void 0)},_dispose:function(){this._clearAutoColCountChangedTimeout(),Kn.removeGroup(this._getValidationGroup()),this.callBase()},resetValues:function(){this._resetValues()},updateData:function(e,t){this._updateData(e,t)},getEditor:function(e){return this._itemsRunTimeInfo.findWidgetInstanceByDataField(e)||this._itemsRunTimeInfo.findWidgetInstanceByName(e)},getButton:function(e){return this._itemsRunTimeInfo.findWidgetInstanceByName(e)},updateDimensions:function(){var e=this,t=new ot.BH;return e._scrollable?e._scrollable.update().done((function(){t.resolveWith(e)})):t.resolveWith(e),t.promise()},itemOption:function(e,t,i){var n=this._generateItemsFromData(this.option("items")),o=this._getItemByField(e,n),r=Af(n,o);if(o)switch(arguments.length){case 1:return o;case 3:var a=this._tryCreateItemOptionAction(t,o,i,o[t],r);this._changeItemOption(o,t,i);var s=Ef(r,t);this._tryExecuteItemOptionAction(a)||this._tryChangeLayoutManagerItemOption(s,i)||this.option("items",n);break;default:var d;if((0,l.Kn)(t))if(!this._tryChangeLayoutManagerItemOptions(r,t))(0,E.S6)(t,((e,t)=>{var i=this._tryCreateItemOptionAction(e,o,t,o[e],r);this._changeItemOption(o,e,t),d||this._tryExecuteItemOptionAction(i)||(d=!0)})),d&&this.option("items",n)}},validate:function(){return Kn.validateGroup(this._getValidationGroup())},getItemID:function(e){return"dx_"+this.option("formID")+"_"+(e||new Li.Z)},getTargetScreenFactor:function(){return this._targetScreenFactor}});(0,C.Z)("dxForm",dI);var uI=dI,cI=uI,hI=function(e,t,i){var n=(0,o.Z)(e),r=i?n.scrollLeft():n.scrollTop(),a=i?"Width":"Height",s=n.prop("scroll".concat(a)),l=n.prop("client".concat(a)),d=s-l-r|0;if(0===r&&0===d)return!1;var u=0===r&&t>=0,c=0===d&&t<=0,h=r>0&&d>0;return!!(u||c||h)||void 0},pI="dxTagData",fI="dx-tagbox",gI="dx-tag-container",mI="dx-tag",_I="dx-tagbox-multi-tag",vI="dx-tag-custom",yI="dx-tag-remove-button",CI="dx-tagbox-only-select",bI="dx-tagbox-single-line",xI="dx-tagbox-popup-wrapper",wI="dx-tag-content",TI="dx-tagbox-default-template",SI="dx-tagbox-custom-template",II="dx-texteditor-input-container",EI=-.3,DI=uT.inherit({_supportedKeys:function(){var e=this.callBase(),t=e=>this._list._keyboardHandler(e),i=this.option("rtlEnabled");return(0,a.l)({},e,{backspace:function(e){if(this._isCaretAtTheStart()){this._processKeyboardEvent(e),this._isTagRemoved=!0;var t=this._$focusedTag||this._tagElements().last();this._$focusedTag&&this._moveTagFocus("prev",!0),0!==t.length&&(this._preserveFocusedTag=!0,this._removeTagElement(t),delete this._preserveFocusedTag)}},upArrow:(i,n)=>i.altKey||!this._list?e.upArrow.call(this,i):t(n),downArrow:(i,n)=>i.altKey||!this._list?e.downArrow.call(this,i):t(n),del:function(e){if(this._$focusedTag&&this._isCaretAtTheStart()){this._processKeyboardEvent(e),this._isTagRemoved=!0;var t=this._$focusedTag;this._moveTagFocus("next",!0),this._preserveFocusedTag=!0,this._removeTagElement(t),delete this._preserveFocusedTag}},enter:function(e,i){var n=this._list&&null!==this._list.option("focusedElement"),o=this.option("acceptCustomValue")&&!n;if(o)return e.preventDefault(),void(""!==this._searchValue()&&this._customItemAddedHandler(e));this.option("opened")&&(this._saveValueChangeEvent(e),t(i),e.preventDefault())},space:function(e,i){var n=this.option("opened"),o=this._shouldRenderSearchEvent();n&&!o&&(this._saveValueChangeEvent(e),t(i),e.preventDefault())},leftArrow:function(e){if(!(!this._isCaretAtTheStart()||this._isEmpty()||this._isEditable()&&i&&!this._$focusedTag)){e.preventDefault();var t=i?"next":"prev";this._moveTagFocus(t),!this.option("multiline")&&this._scrollContainer(t)}},rightArrow:function(e){if(this._isCaretAtTheStart()&&!this._isEmpty()&&(!this._isEditable()||i||this._$focusedTag)){e.preventDefault();var t=i?"prev":"next";this._moveTagFocus(t),!this.option("multiline")&&this._scrollContainer(t)}}})},_processKeyboardEvent:function(e){e.preventDefault(),e.stopPropagation(),this._saveValueChangeEvent(e)},_isEmpty:function(){return 0===this._getValue().length},_updateTagsContainer:function(e){this._$tagsContainer=e.addClass(gI)},_allowSelectItemByTab:function(){return!1},_isCaretAtTheStart:function(){var e=Lg(this._input());return 0===e.start&&0===e.end},_moveTagFocus:function(e,t){if(!this._$focusedTag){var i=this._tagElements();return this._$focusedTag="next"===e?i.first():i.last(),void this._toggleFocusClass(!0,this._$focusedTag)}var n=this._$focusedTag[e](".".concat(mI));n.length>0?this._replaceFocusedTag(n):(t||"next"===e&&this._isEditable())&&this._clearTagFocus()},_replaceFocusedTag:function(e){this._toggleFocusClass(!1,this._$focusedTag),this._$focusedTag=e,this._toggleFocusClass(!0,this._$focusedTag)},_clearTagFocus:function(){this._$focusedTag&&(this._toggleFocusClass(!1,this._$focusedTag),delete this._$focusedTag)},_focusClassTarget:function(e){return e&&e.length&&e[0]!==this._focusTarget()[0]?e:this.callBase()},_getLabelContainer:function(){return this._$tagsContainer},_scrollContainer:function(e){if(!this.option("multiline")&&(0,s.Ym)()&&this._$tagsContainer){var t=this._getScrollPosition(e);this._$tagsContainer.scrollLeft(t)}},_getScrollPosition:function(e){return"start"===e||"end"===e?this._getBorderPosition(e):this._$focusedTag?this._getFocusedTagPosition(e):this._getBorderPosition("end")},_getBorderPosition:function(e){var t=this.option("rtlEnabled"),i="end"===e^t,o=t?-1:1;return i^!t?0:o*(this._$tagsContainer.get(0).scrollWidth-(0,n.Y_)(this._$tagsContainer))},_getFocusedTagPosition:function(e){var t=this.option("rtlEnabled"),i="next"===e^t,{left:o}=this._$focusedTag.position(),r=this._$tagsContainer.scrollLeft();return i&&(o+=(0,n.Y_)(this._$focusedTag,!0)-(0,n.Y_)(this._$tagsContainer)),i^o<0&&(r+=o),r},_setNextValue:v.ZT,_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{value:[],showDropDownButton:!1,maxFilterQueryLength:1500,tagTemplate:"tag",selectAllText:y.Z.format("dxList-selectAll"),hideSelectedItems:!1,selectedItems:[],selectAllMode:"page",onSelectAllValueChanged:null,maxDisplayedTags:void 0,showMultiTagOnly:!0,onMultiTagPreparing:null,multiline:!0,useSubmitBehavior:!0})},_init:function(){this.callBase(),this._selectedItems=[],this._initSelectAllValueChangedAction()},_initActions:function(){this.callBase(),this._initMultiTagPreparingAction()},_initMultiTagPreparingAction:function(){this._multiTagPreparingAction=this._createActionByOption("onMultiTagPreparing",{beforeExecute:function(e){this._multiTagPreparingHandler(e.args[0])}.bind(this),excludeValidators:["disabled","readOnly"]})},_multiTagPreparingHandler:function(e){var{length:t}=this._getValue();this.option("showMultiTagOnly")?e.text=y.Z.getFormatter("dxTagBox-selected")(t):e.text=y.Z.getFormatter("dxTagBox-moreSelected")(t-this.option("maxDisplayedTags")+1)},_initDynamicTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({tag:new Bd(((e,t)=>{var i,n=(0,o.Z)("<div>").addClass(wI);(0,o.Z)("<span>").text(null!==(i=t.text)&&void 0!==i?i:t).appendTo(n),(0,o.Z)("<div>").addClass(yI).appendTo(n),e.append(n)}),["text"],this.option("integrationOptions.watchMethod"),{text:this._displayGetter})})},_toggleSubmitElement:function(e){e?(this._renderSubmitElement(),this._setSubmitValue()):(this._$submitElement&&this._$submitElement.remove(),delete this._$submitElement)},_renderSubmitElement:function(){this.option("useSubmitBehavior")&&(this._$submitElement=(0,o.Z)("<select>").attr("multiple","multiple").css("display","none").appendTo(this.$element()))},_setSubmitValue:function(){if(this.option("useSubmitBehavior")){for(var e=this._getValue(),t=[],i=0,n=e.length;i<n;i++){var r=this._shouldUseDisplayValue(e[i]);t.push((0,o.Z)("<option>").val(r?this._displayGetter(e[i]):e[i]).attr("selected","selected"))}this._getSubmitElement().empty().append(t)}},_initMarkup:function(){this._tagElementsCache=(0,o.Z)();var e=!this.option("multiline");this.$element().addClass(fI).toggleClass(CI,!(this.option("searchEnabled")||this.option("acceptCustomValue"))).toggleClass(bI,e),this._initTagTemplate(),this.callBase()},_render:function(){this.callBase(),this._renderTagRemoveAction(),this._renderSingleLineScroll(),this._scrollContainer("start")},_initTagTemplate:function(){this._tagTemplate=this._getTemplateByOption("tagTemplate")},_renderField:function(){var e=!(0,l.$K)(this.option("fieldTemplate"));this.$element().toggleClass(TI,e).toggleClass(SI,!e),this.callBase()},_renderTagRemoveAction:function(){var e=this._createAction(this._removeTagHandler.bind(this)),t=(0,R.V4)(A.u,"dxTagBoxTagRemove");re.Z.off(this._$tagsContainer,t),re.Z.on(this._$tagsContainer,t,".".concat(yI),(t=>{e({event:t})}))},_renderSingleLineScroll:function(){var e=(0,R.V4)("dxmousewheel",this.NAME),t=this.$element(),i=this.option("multiline");re.Z.off(t,e),"desktop"===w.Z.real().deviceType?i||re.Z.on(t,e,this._tagContainerMouseWheelHandler.bind(this)):this._$tagsContainer&&this._$tagsContainer.css("overflowX",i?"":"auto")},_tagContainerMouseWheelHandler:function(e){var t=this._$tagsContainer.scrollLeft(),i=e.delta*EI;if(!(0,R.j1)(e)&&hI(this._$tagsContainer,i,!0))return this._$tagsContainer.scrollLeft(t+i),!1},_renderEvents:function(){this.callBase();var e=this._input(),t=(0,R.V4)("keydown",this.NAME);re.Z.on(e,t,(e=>{var t=(0,R.EV)(e);!this._isControlKey(t)&&this._isEditable()&&this._clearTagFocus()}))},_popupWrapperClass:function(){return this.callBase()+" "+xI},_renderInput:function(){this.callBase(),this._renderPreventBlurOnInputClick()},_renderPreventBlurOnInputClick:function(){var e=(0,R.V4)("mousedown","dxTagBox");re.Z.off(this._inputWrapper(),e),re.Z.on(this._inputWrapper(),e,(e=>{e.target!==this._input()[0]&&this._isFocused()&&e.preventDefault()}))},_renderInputValueImpl:function(){return this._renderMultiSelect()},_loadInputValue:function(){return(0,ot.gx)()},_clearTextValue:function(){this._input().val(""),this._toggleEmptinessEventHandler(),this.option("text","")},_focusInHandler:function(e){this._preventNestedFocusEvent(e)||this._scrollContainer("end"),this.callBase(e)},_renderInputValue:function(){return this.option("displayValue",this._searchValue()),this.callBase()},_restoreInputText:function(e){e||this._clearTextValue()},_focusOutHandler:function(e){this._preventNestedFocusEvent(e)||(this._clearTagFocus(),this._scrollContainer("start")),this.callBase(e)},_getFirstPopupElement:function(){return this.option("showSelectionControls")?this._list.$element():this.callBase()},_initSelectAllValueChangedAction:function(){this._selectAllValueChangeAction=this._createActionByOption("onSelectAllValueChanged")},_renderList:function(){this.callBase(),this._setListDataSourceFilter(),this.option("showSelectionControls")&&(this._list.registerKeyHandler("tab",(e=>this._popupElementTabHandler(e))),this._list.registerKeyHandler("escape",(e=>this._popupElementEscHandler(e))))},_canListHaveFocus:function(){return"useButtons"===this.option("applyValueMode")},_listConfig:function(){var e=this.option("showSelectionControls")?"all":"multiple";return(0,a.l)(this.callBase(),{selectionMode:e,selectAllText:this.option("selectAllText"),onSelectAllValueChanged:e=>{var{value:t}=e;this._selectAllValueChangeAction({value:t})},selectAllMode:this.option("selectAllMode"),selectedItems:this._selectedItems,onFocusedItemChanged:null})},_renderMultiSelect:function(){var e=new ot.BH;return this._updateTagsContainer(this._$textEditorInputContainer),this._renderInputSize(),this._renderTags().done((()=>{this._popup&&this._popup.refreshPosition(),e.resolve()})).fail(e.reject),e.promise()},_listItemClickHandler:function(e){!this.option("showSelectionControls")&&this._clearTextValue(),"useButtons"!==this.option("applyValueMode")&&(this.callBase(e),this._saveValueChangeEvent(void 0))},_shouldClearFilter:function(){var e=this.callBase(),t=this.option("showSelectionControls");return!t&&e},_renderInputSize:function(){var e=this._input(),t=e.val(),i=(0,l.HD)(t)&&t,o="",r="",a=this.option("searchEnabled")||this.option("acceptCustomValue");if(i&&a){var s=(0,M.l5)(e,t,{includePaddings:!0});s.insertAfter(e),o=(0,n.Y_)(s)+5,s.remove()}else t||(r=1);e.css("width",o),e.attr("size",r)},_renderInputSubstitution:function(){this.callBase(),this._updateWidgetHeight()},_getValue:function(){return this.option("value")||[]},_multiTagRequired:function(){var e=this._getValue(),t=this.option("maxDisplayedTags");return(0,l.$K)(t)&&e.length>t},_renderMultiTag:function(e){var t=(0,o.Z)("<div>").addClass(mI).addClass(_I),i={multiTagElement:(0,se.u)(t),selectedItems:this.option("selectedItems")};return this._multiTagPreparingAction(i),!i.cancel&&(t.data(pI,i.text),t.insertBefore(e),this._tagTemplate.render({model:i.text,container:(0,se.u)(t)}),t)},_getFilter:function(e){var t=this._dataController.filter(),i=e.getCombinedFilter(this.option("valueExpr"),t),n=encodeURI(JSON.stringify(i)).length,o=this.option("maxFilterQueryLength");if(n<=o)return i;Xt.Z.log("W1019",o)},_getFilteredItems:function(e){var t,i;null===(t=this._loadFilteredItemsPromise)||void 0===t||t.reject();var n=new bu(e),o=null===(i=this._list)||void 0===i?void 0:i.option("selectedItems"),r=!!o&&this._list._dataController.isLoaded(),a=o||this.option("selectedItems"),s=n.getLocalFilter(this._valueGetter),l=a.filter(s),d=l.length===e.length,u=new ot.BH,c=this._dataController;if(this._isDataSourceChanged&&!r||!d){var{customQueryParams:h,expand:p,select:f}=c.loadOptions(),g=this._getFilter(n);return c.loadFromStore({filter:g,customQueryParams:h,expand:p,select:f}).done(((e,t)=>{if(this._isDataSourceChanged=!1,this._disposed)u.reject();else{var{data:i}=(0,hu.r6)(e,t),n=c.applyMapFunction(i);u.resolve(n.filter(s))}})).fail(u.reject),this._loadFilteredItemsPromise=u,u.promise()}return u.resolve(l).promise()},_createTagsData:function(e,t){var i=[],n={},o="this"===this._valueGetterExpr(),r={};t.forEach((e=>{var t=o?JSON.stringify(e):this._valueGetter(e);r[t]=e}));var a=[];e.forEach(((e,t)=>{var s=r[o?JSON.stringify(e):e];if(o&&!(0,l.$K)(s))a.push(this._loadItem(e,n).always((n=>{var o=this._createTagData(i,n,e,t);i.splice(t,0,o)})));else{var d=this._createTagData(i,s,e,t);i.splice(t,0,d)}}));var s=new ot.BH;return ot.gx.apply(this,a).always((function(){s.resolve(i)})),s.promise()},_createTagData:function(e,t,i,n){if((0,l.$K)(t))return this._selectedItems.push(t),t;var o=this.option("selectedItem"),r=this._valueGetter(o)===i?o:i;return r},_isGroupedData:function(){return this.option("grouped")&&!this._dataController.group()},_getItemsByValues:function(e){var t=[];return e.forEach(function(e){var i=this._getItemFromPlain(e);(0,l.$K)(i)&&t.push(i)}.bind(this)),t},_getFilteredGroupedItems:function(e){var t=new ot.BH;return this._filteredGroupedItemsLoadPromise&&this._dataController.cancel(this._filteredGroupedItemsLoadPromise.operationId),this._dataController.items().length?t.resolve(this._getItemsByValues(e)):this._filteredGroupedItemsLoadPromise=this._dataController.load().done((()=>{t.resolve(this._getItemsByValues(e))})).fail((()=>{t.resolve([])})).always((()=>{this._filteredGroupedItemsLoadPromise=void 0})),t.promise()},_loadTagsData:function(){var e=this._getValue(),t=new ot.BH;this._selectedItems=[];var i=this._isGroupedData()?this._getFilteredGroupedItems(e):this._getFilteredItems(e);return i.done((i=>{var n=this._createTagsData(e,i);n.always((function(e){t.resolve(e)}))})).fail(t.reject.bind(this)),t.promise()},_renderTags:function(){var e=new ot.BH,t=!1;return this._shouldGetItemsFromPlain(this._valuesToUpdate)&&(this._selectedItems=this._getItemsFromPlain(this._valuesToUpdate),this._selectedItems.length===this._valuesToUpdate.length&&(this._renderTagsImpl(this._selectedItems),t=!0,e.resolve())),t||this._loadTagsData().done((t=>{this._disposed?e.reject():(this._renderTagsImpl(t),e.resolve())})).fail(e.reject),e.promise()},_renderTagsImpl:function(e){this._renderTagsCore(e),this._renderEmptyState(),this._preserveFocusedTag||this._clearTagFocus()},_shouldGetItemsFromPlain:function(e){return e&&this._dataController.isLoaded()&&e.length<=this._getPlainItems().length},_getItemsFromPlain:function(e){var t=this._getSelectedItemsFromList(e),i=0===t.length&&e.length>0||t.length<e.length;if(i){var n=this._getPlainItems();t=this._filterSelectedItems(n,e)}return t},_getSelectedItemsFromList:function(e){var t,i=null===(t=this._list)||void 0===t?void 0:t.option("selectedItems"),n=[];return e.length===(null===i||void 0===i?void 0:i.length)&&(n=this._filterSelectedItems(i,e)),n},_filterSelectedItems:function(e,t){var i=e.filter((e=>{for(var i,n=0;n<t.length;n++)if(i=t[n],(0,l.Kn)(i)){if(this._isValueEquals(e,i))return!0}else if(this._isValueEquals(this._valueGetter(e),i))return!0;return!1}),this);return i},_integrateInput:function(){this._isInputReady.resolve(),this.callBase();var e=(0,o.Z)(ke["default"].getRootNode(this.element())).find(".".concat(II));this._updateTagsContainer(e),this._renderTagRemoveAction()},_renderTagsCore:function(e){var t;null===(t=this._isInputReady)||void 0===t||t.reject(),this._isInputReady=new ot.BH,this._renderField(),this.option("selectedItems",this._selectedItems.slice()),this._cleanTags(),this._input().length>0&&this._isInputReady.resolve(),(0,ot.gx)(this._isInputReady).done((()=>{this._renderTagsElements(e)}))},_renderTagsElements(e){var t=this._multiTagRequired()&&this._renderMultiTag(this._input()),i=this.option("showMultiTagOnly"),n=this.option("maxDisplayedTags");e.forEach(((e,o)=>{if(t&&i||t&&!i&&o-n>=-1)return!1;this._renderTag(e,t||this._input())})),this._isFocused()&&this._scrollContainer("end"),this._refreshTagElements()},_cleanTags:function(){if(this._multiTagRequired())this._tagElements().remove();else{var e=this._tagElements(),t=this._getValue();(0,E.S6)(e,(function(e,i){var n=(0,o.Z)(i),r=n.data(pI);null!==t&&void 0!==t&&t.includes(r)||n.remove()}))}},_renderEmptyState:function(){var e=!(this._getValue().length||this._selectedItems.length||this._searchValue());this._toggleEmptiness(e),this._renderDisplayText()},_renderDisplayText:function(){this._renderInputSize()},_refreshTagElements:function(){this._tagElementsCache=this.$element().find(".".concat(mI))},_tagElements:function(){return this._tagElementsCache},_applyTagTemplate:function(e,t){this._tagTemplate.render({model:e,container:(0,se.u)(t)})},_renderTag:function(e,t){var i=this._valueGetter(e);if((0,l.$K)(i)){var n=this._getTag(i),o=this._displayGetter(e),r=this._getItemModel(e,o);n?((0,l.$K)(o)&&(n.empty(),this._applyTagTemplate(r,n)),n.removeClass(vI)):(n=this._createTag(i,t),(0,l.$K)(e)?this._applyTagTemplate(r,n):(n.addClass(vI),this._applyTagTemplate(i,n)))}},_getItemModel:function(e,t){return(0,l.Kn)(e)&&(0,l.$K)(t)?e:(0,v.IS)(t,"")},_getTag:function(e){for(var t=this._tagElements(),i=t.length,n=!1,r=0;r<i;r++){var a=t[r],s=(0,le.aT)(a,pI);if(e===s||(0,v.bY)(e,s)){n=(0,o.Z)(a);break}}return n},_createTag:function(e,t){return(0,o.Z)("<div>").addClass(mI).data(pI,e).insertBefore(t)},_toggleEmptinessEventHandler:function(){this._toggleEmptiness(!this._getValue().length&&!this._searchValue().length)},_customItemAddedHandler:function(e){this.callBase(e),this._clearTextValue()},_removeTagHandler:function(e){var t=e.event;t.stopPropagation(),this._saveValueChangeEvent(t);var i=(0,o.Z)(t.target).closest(".".concat(mI));this._removeTagElement(i)},_removeTagElement:function(e){if(e.hasClass(_I))this.option("showMultiTagOnly")?this.reset():this.option("value",this._getValue().slice(0,this.option("maxDisplayedTags")));else{var t=e.data(pI);this._removeTagWithUpdate(t),this._refreshTagElements()}},_updateField:v.ZT,_removeTagWithUpdate:function(e){var t=this._getValue().slice();this._removeTag(t,e),this.option("value",t),0===t.length&&this._clearTagFocus()},_getCurrentValue:function(){return this._lastValue()},_selectionChangeHandler:function(e){if("useButtons"!==this.option("applyValueMode")){var t=this._getValue().slice();if((0,E.S6)(e.removedItems||[],((e,i)=>{this._removeTag(t,this._valueGetter(i))})),(0,E.S6)(e.addedItems||[],((e,i)=>{this._addTag(t,this._valueGetter(i))})),this._updateWidgetHeight(),!(0,v.bY)(this._list.option("selectedItemKeys"),this.option("value"))){var i=this._list._getSelectionChangeEvent();i&&this._saveValueChangeEvent(i),this.option("value",t)}this._list._saveSelectionChangeEvent(void 0)}},_removeTag:function(e,t){var i=this._valueIndex(t,e);i>=0&&e.splice(i,1)},_addTag:function(e,t){var i=this._valueIndex(t);i<0&&e.push(t)},_fieldRenderData:function(){return this._selectedItems.slice()},_completeSelection:function(e){this.option("showSelectionControls")||this._setValue(e)},_setValue:function(e){if(null!==e){var t="useButtons"===this.option("applyValueMode"),i=this._valueIndex(e),n=(t?this._list.option("selectedItemKeys"):this._getValue()).slice();i>=0?n.splice(i,1):n.push(e),"useButtons"===this.option("applyValueMode")?this._list.option("selectedItemKeys",n):this.option("value",n)}},_isSelectedValue:function(e,t){return this._valueIndex(e,null,t)>-1},_valueIndex:function(e,t,i){var n=-1;return i&&"object"!==typeof e&&(i.indexByValues||(i.indexByValues={},t=t||this._getValue(),t.forEach((function(e,t){i.indexByValues[e]=t}))),e in i.indexByValues)?i.indexByValues[e]:(t=t||this._getValue(),(0,E.S6)(t,((t,i)=>{if(this._isValueEquals(e,i))return n=t,!1})),n)},_lastValue:function(){var e=this._getValue(),t=e[e.length-1];return null!==t&&void 0!==t?t:null},_shouldRenderSearchEvent:function(){return this.option("searchEnabled")||this.option("acceptCustomValue")},_searchHandler:function(e){this.option("searchEnabled")&&e&&!this._isTagRemoved&&(this.callBase(arguments),this._setListDataSourceFilter()),this._updateWidgetHeight(),delete this._isTagRemoved},_updateWidgetHeight:function(){var e=this.$element(),t=(0,n.Cr)(e);this._renderInputSize();var i=(0,n.Cr)(e);this._popup&&this.option("opened")&&this._isEditable()&&i!==t&&this._popup.repaint()},_refreshSelected:function(){var e;(null===(e=this._list)||void 0===e?void 0:e.getDataSource())&&this._list.option("selectedItems",this._selectedItems)},_resetListDataSourceFilter:function(){var e=this._dataController;delete this._userFilter,e.filter(null),e.reload()},_setListDataSourceFilter:function(){if(this.option("hideSelectedItems")&&this._list){var e=this._dataController,t=this._valueGetterExpr();if((0,l.HD)(t)&&"this"!==t){var i=this._dataSourceFilterExpr();void 0===this._userFilter&&(this._userFilter=e.filter()||null),this._userFilter&&i.push(this._userFilter),i.length?e.filter(i):e.filter(null)}else e.filter(this._dataSourceFilterFunction.bind(this));e.load()}},_dataSourceFilterExpr:function(){var e=[];return this._getValue().forEach((t=>e.push(["!",[this._valueGetterExpr(),t]]))),e},_dataSourceFilterFunction:function(e){var t=this._valueGetter(e),i=!0;return(0,E.S6)(this._getValue(),((e,n)=>{if(this._isValueEquals(n,t))return i=!1,!1})),i},_dataSourceChangedHandler:function(){this._isDataSourceChanged=!0,this.callBase.apply(this,arguments)},_applyButtonHandler:function(e){this._saveValueChangeEvent(e.event),this.option("value",this._getSortedListValues()),this._clearTextValue(),this.callBase(),this._cancelSearchIfNeed()},_getSortedListValues:function(){var e=this._getListValues(),t=this.option("value")||[],i=e.length?(0,mu.Ed)(t,e):[],n=i.length?(0,mu.R1)(e,t):e;return i.concat(n)},_getListValues:function(){return this._list?this._getPlainItems(this._list.option("selectedItems")).map((e=>this._valueGetter(e))):[]},_setListDataSource:function(){var e=this._getValue();this.callBase(),e!==this.option("value")&&this.option("value",e),this._refreshSelected()},_renderOpenedState:function(){this.callBase(),"useButtons"!==this.option("applyValueMode")||this.option("opened")||this._refreshSelected()},reset:function(){this._restoreInputText();var e=this._getDefaultOptions().value,t=this.option("value");e&&0===e.length&&t&&e.length===t.length||this.callBase()},_clean:function(){this.callBase(),delete this._defaultTagTemplate,delete this._valuesToUpdate,delete this._tagTemplate},_getSelectedItemsDifference(e,t){if(!e.length)return{addedItems:[],removedItems:t.slice()};if(!t.length)return{addedItems:e.slice(),removedItems:[]};var i=t.reduce(((e,t)=>{var i=this._valueGetter(t);return e[i]=t,e}),{}),n=[];return e.forEach((e=>{var t=this._valueGetter(e);i[t]||n.push(e),delete i[t]})),{addedItems:n,removedItems:Object.values(i)}},_optionChanged:function(e){var{name:t,value:i,previousValue:n}=e;switch(t){case"onSelectAllValueChanged":this._initSelectAllValueChangedAction();break;case"onMultiTagPreparing":this._initMultiTagPreparingAction(),this._renderTags();break;case"hideSelectedItems":i?this._setListDataSourceFilter():this._resetListDataSourceFilter();break;case"useSubmitBehavior":this._toggleSubmitElement(i);break;case"displayExpr":this.callBase(e),this._initTemplates(),this._invalidate();break;case"tagTemplate":this._initTagTemplate(),this._invalidate();break;case"selectAllText":this._setListOption("selectAllText",this.option("selectAllText"));break;case"readOnly":case"disabled":this.callBase(e),!i&&this._refreshEvents();break;case"value":this._valuesToUpdate=i,this.callBase(e),this._valuesToUpdate=void 0,this._setListDataSourceFilter();break;case"maxDisplayedTags":case"showMultiTagOnly":this._renderTags();break;case"selectAllMode":this._setListOption(t,i);break;case"selectedItem":break;case"selectedItems":this._selectionChangedAction(this._getSelectedItemsDifference(i,n));break;case"multiline":this.$element().toggleClass(bI,!i),this._renderSingleLineScroll();break;case"maxFilterQueryLength":break;default:this.callBase(e)}},_getActualSearchValue:function(){return this.callBase()||this._searchValue()},_popupHidingHandler:function(){this.callBase(),this._clearFilter()}});(0,C.Z)("dxTagBox",DI);var kI="dx-radiobutton-checked",OI="dx-radiobutton",AI="dx-radiobutton-icon-checked",PI="dx-radiobutton-icon",MI="dx-radiobutton-icon-dot",RI="dx-radiogroup-horizontal",BI="dx-radiogroup-vertical",VI="dx-radio-value-container",FI="dx-radiogroup",HI=100;class LI extends Du{_focusTarget(){return this.$element().parent()}_nullValueSelectionSupported(){return!0}_getDefaultOptions(){var e=super._getDefaultOptions();return(0,a.l)(e,Tw._dataExpressionDefaultOptions(),{_itemAttributes:{role:"radio"}})}_initMarkup(){super._initMarkup(),(0,v.g0)((()=>{this.itemElements().addClass(OI)}))}_keyboardEventBindingTarget(){return this._focusTarget()}_postprocessRenderItem(e){var{itemData:{html:t},itemElement:i}=e;if(!t){var n=(0,o.Z)("<div>").addClass(PI);(0,o.Z)("<div>").addClass(MI).appendTo(n);var r=(0,o.Z)("<div>").append(n).addClass(VI);(0,o.Z)(i).prepend(r)}super._postprocessRenderItem(e)}_processSelectableItem(e,t){super._processSelectableItem(e,t),e.toggleClass(kI,t).find(".".concat(PI)).first().toggleClass(AI,t),this.setAria("checked",t,e)}_refreshContent(){this._prepareContent(),this._renderContent()}_supportedKeys(){var e=super._supportedKeys();return(0,a.l)({},e,{enter:function(t){return t.preventDefault(),e.enter.apply(this,arguments)},space:function(t){return t.preventDefault(),e.space.apply(this,arguments)}})}_itemElements(){return this._itemContainer().children(this._itemSelector())}_setAriaSelected(){}}class NI extends zc{_dataSourceOptions(){return{paginate:!1}}_defaultOptionsRules(){var e=super._defaultOptionsRules();return e.concat([{device:{tablet:!0},options:{layout:"horizontal"}},{device:()=>"desktop"===w.Z.real().deviceType&&!w.Z.isSimulator(),options:{focusStateEnabled:!0}}])}_fireContentReadyAction(e){e&&super._fireContentReadyAction()}_focusTarget(){return this.$element()}_getAriaTarget(){return this.$element()}_getDefaultOptions(){var e=super._getDefaultOptions();return(0,a.l)(e,(0,a.l)(Tw._dataExpressionDefaultOptions(),{hoverStateEnabled:!0,activeStateEnabled:!0,layout:"vertical"}))}_getItemValue(e){return this._valueGetter?this._valueGetter(e):e.text}_getSubmitElement(){return this._$submitElement}_init(){super._init(),this._activeStateUnit=".".concat(OI),this._feedbackHideTimeout=HI,this._initDataExpressions()}_initMarkup(){this.$element().addClass(FI),this._renderSubmitElement(),this.setAria("role","radiogroup"),this._renderRadios(),this._renderLayout(),super._initMarkup()}_itemClickHandler(e){var{itemElement:t,event:i,itemData:n}=e;if(this.itemElements().is(t)){var o=this._getItemValue(n);o!==this.option("value")&&(this._saveValueChangeEvent(i),this.option("value",o))}}_getSelectedItemKeys(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.option("value"),t="this"!==this.option("valueExpr"),i=t&&null===e||(0,l.$K)(e);return i?[e]:[]}_setSelection(e){var t=this._unwrappedValue(e);this._setCollectionWidgetOption("selectedItemKeys",this._getSelectedItemKeys(t))}_optionChanged(e){var{name:t,value:i}=e;switch(this._dataExpressionOptionChanged(e),t){case"dataSource":this._invalidate();break;case"focusStateEnabled":case"accessKey":case"tabIndex":this._setCollectionWidgetOption(t,i);break;case"disabled":super._optionChanged(e),this._setCollectionWidgetOption(t,i);break;case"valueExpr":this._setCollectionWidgetOption("keyExpr",this._getCollectionKeyExpr());break;case"value":this._setSelection(i),this._setSubmitValue(i),super._optionChanged(e);break;case"items":this._setSelection(this.option("value"));break;case"itemTemplate":case"displayExpr":break;case"layout":this._renderLayout(),this._updateItemsSize();break;default:super._optionChanged(e)}}_render(){super._render(),this._updateItemsSize()}_renderLayout(){var e=this.option("layout"),t=this.$element();t.toggleClass(BI,"vertical"===e),t.toggleClass(RI,"horizontal"===e)}_renderRadios(){this._areRadiosCreated=new ot.BH;var e=(0,o.Z)("<div>").appendTo(this.$element()),{displayExpr:t,accessKey:i,focusStateEnabled:n,itemTemplate:r,tabIndex:a}=this.option();this._createComponent(e,LI,{onInitialized:e=>{var{component:t}=e;this._radios=t},onContentReady:e=>{this._fireContentReadyAction(!0)},onItemClick:this._itemClickHandler.bind(this),displayExpr:t,accessKey:i,dataSource:this._dataSource,focusStateEnabled:n,itemTemplate:r,keyExpr:this._getCollectionKeyExpr(),noDataText:"",scrollingEnabled:!1,selectionByClick:!1,selectionMode:"single",selectedItemKeys:this._getSelectedItemKeys(),tabIndex:a}),this._areRadiosCreated.resolve()}_renderSubmitElement(){this._$submitElement=(0,o.Z)("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue()}_setOptionsByReference(){super._setOptionsByReference(),(0,a.l)(this._optionsByReference,{value:!0})}_setSubmitValue(e){var t;e=null!==(t=e)&&void 0!==t?t:this.option("value");var i="this"===this.option("valueExpr")?this._displayGetter(e):e;this._$submitElement.val(i)}_setCollectionWidgetOption(){this._areRadiosCreated.done(this._setWidgetOption.bind(this,"_radios",arguments))}_updateItemsSize(){if("horizontal"===this.option("layout"))this.itemElements().css("height","auto");else{var e=this.option("items").length;this.itemElements().css("height",100/e+"%")}}focus(){var e;null===(e=this._radios)||void 0===e||e.focus()}itemElements(){var e;return null===(e=this._radios)||void 0===e?void 0:e.itemElements()}}NI.include(Tw),(0,C.Z)("dxRadioGroup",NI);var ZI={_menuEnabled:function(){return!!this._menuItems().length},_menuItems:function(){return this._list.option("menuItems")},_deleteEnabled:function(){return this._list.option("allowItemDeleting")},_fireMenuAction:function(e,t){this._list._itemEventHandlerByHandler(e,t,{},{excludeValidators:["disabled","readOnly"]})}},$I=ZI,WI="dx-list-context-menu",KI="dx-list-context-menucontent";xb("menu","context",Uw.inherit({_init:function(){var e=(0,o.Z)("<div>").addClass(WI);this._list.$element().append(e),this._menu=this._renderOverlay(e)},_renderOverlay:function(e){return this._list._createComponent(e,ki,{shading:!1,deferRendering:!0,hideOnParentScroll:!0,hideOnOutsideClick:function(e){return!(0,o.Z)(e.target).closest("."+WI).length},animation:{show:{type:"slide",duration:300,from:{height:0,opacity:1},to:{height:function(){return(0,n.zp)(this._$menuList)}.bind(this),opacity:1}},hide:{type:"slide",duration:0,from:{opacity:1},to:{opacity:0}}},_ignoreFunctionValueDeprecation:!0,height:function(){return this._$menuList?(0,n.zp)(this._$menuList):0}.bind(this),width:function(){return(0,n.Y_)(this._list.$element())}.bind(this),onContentReady:this._renderMenuContent.bind(this)})},_renderMenuContent:function(e){var t=e.component.$content(),i=this._menuItems().slice();this._deleteEnabled()&&i.push({text:y.Z.format("dxListEditDecorator-delete"),action:this._deleteItem.bind(this)}),this._$menuList=(0,o.Z)("<div>"),this._list._createComponent(this._$menuList,uw,{items:i,onItemClick:this._menuItemClickHandler.bind(this),height:"auto",integrationOptions:{}}),t.addClass(KI),t.append(this._$menuList)},_menuItemClickHandler:function(e){this._menu.hide(),this._fireMenuAction(this._$itemWithMenu,e.itemData.action)},_deleteItem:function(){this._list.deleteItem(this._$itemWithMenu)},handleContextMenu:function(e){return this._$itemWithMenu=e,this._menu.option({position:{my:"top",at:"bottom",of:e,collision:"flip"}}),this._menu.show(),!0},dispose:function(){this._menu&&this._menu.$element().remove(),this.callBase.apply(this,arguments)}}).include($I));var zI=Uw.abstract,jI="dxListEditDecorator",UI=(0,R.V4)(B.Z.down,jI),GI=(0,R.V4)(H,jI),qI="dx-list-item-content",YI="dx-list-switchable-delete-ready",XI="dx-list-switchable-menu-shield-positioning",JI="dx-list-switchable-delete-top-shield",QI="dx-list-switchable-delete-bottom-shield",eE="dx-list-switchable-menu-item-shield-positioning",tE="dx-list-switchable-delete-item-content-shield",iE="dx-list-switchable-delete-button-container",nE=Uw.inherit({_init:function(){this._$topShield=(0,o.Z)("<div>").addClass(JI),this._$bottomShield=(0,o.Z)("<div>").addClass(QI),this._$itemContentShield=(0,o.Z)("<div>").addClass(tE),re.Z.on(this._$topShield,UI,this._cancelDeleteReadyItem.bind(this)),re.Z.on(this._$bottomShield,UI,this._cancelDeleteReadyItem.bind(this)),this._list.$element().append(this._$topShield.toggle(!1)).append(this._$bottomShield.toggle(!1))},handleClick:function(){return this._cancelDeleteReadyItem()},_cancelDeleteReadyItem:function(){return!!this._$readyToDeleteItem&&(this._cancelDelete(this._$readyToDeleteItem),!0)},_cancelDelete:function(e){this._toggleDeleteReady(e,!1)},_toggleDeleteReady:function(e,t){void 0===t&&(t=!this._isReadyToDelete(e)),this._toggleShields(e,t),this._toggleScrolling(t),this._cacheReadyToDeleteItem(e,t),this._animateToggleDelete(e,t)},_isReadyToDelete:function(e){return e.hasClass(YI)},_toggleShields:function(e,t){this._list.$element().toggleClass(XI,t),this._$topShield.toggle(t),this._$bottomShield.toggle(t),t&&this._updateShieldsHeight(e),this._toggleContentShield(e,t)},_updateShieldsHeight:function(e){var t=this._list.$element(),i=t.offset().top,o=(0,n.zp)(t),r=e.offset().top,a=(0,n.zp)(e),s=r-i,l=o-a-s;(0,n.QQ)(this._$topShield,Math.max(s,0)),(0,n.QQ)(this._$bottomShield,Math.max(l,0))},_toggleContentShield:function(e,t){t?e.find("."+qI).first().append(this._$itemContentShield):this._$itemContentShield.detach()},_toggleScrolling:function(e){var t=this._list.$element().dxScrollView("instance");e?t.on("start",this._cancelScrolling):t.off("start",this._cancelScrolling)},_cancelScrolling:function(e){e.event.cancel=!0},_cacheReadyToDeleteItem:function(e,t){t?this._$readyToDeleteItem=e:delete this._$readyToDeleteItem},_animateToggleDelete:function(e,t){t?(this._enablePositioning(e),this._prepareDeleteReady(e),this._animatePrepareDeleteReady(e),re.Z.off(e,B.Z.up)):(this._forgetDeleteReady(e),this._animateForgetDeleteReady(e).done(this._disablePositioning.bind(this,e)))},_enablePositioning:function(e){e.addClass(eE),re.Z.on(e,GI,v.ZT),re.Z.one(e,B.Z.up,this._disablePositioning.bind(this,e))},_disablePositioning:function(e){e.removeClass(eE),re.Z.off(e,GI)},_prepareDeleteReady:function(e){e.addClass(YI)},_forgetDeleteReady:function(e){e.removeClass(YI)},_animatePrepareDeleteReady:zI,_animateForgetDeleteReady:zI,_getDeleteButtonContainer:function(e){return e=e||this._$readyToDeleteItem,e.children("."+iE)},_deleteItem:function(e){e=e||this._$readyToDeleteItem,this._getDeleteButtonContainer(e).detach(),e.is(".dx-state-disabled, .dx-state-disabled *")||this._list.deleteItem(e).always(this._cancelDelete.bind(this,e))},_isRtlEnabled:function(){return this._list.option("rtlEnabled")},dispose:function(){this._$topShield&&this._$topShield.remove(),this._$bottomShield&&this._$bottomShield.remove(),this.callBase.apply(this,arguments)}}),oE=nE,rE="dx-list-switchable-delete-button-container",aE="dx-list-switchable-delete-button-wrapper",sE="dx-list-switchable-delete-button-inner-wrapper",lE="dx-list-switchable-delete-button",dE=200,uE=oE.inherit({_init:function(){this.callBase.apply(this,arguments);var e=(0,o.Z)("<div>").addClass(rE),t=(0,o.Z)("<div>").addClass(aE),i=(0,o.Z)("<div>").addClass(sE),n=(0,o.Z)("<div>").addClass(lE);this._list._createComponent(n,cd,{text:y.Z.format("dxListEditDecorator-delete"),type:"danger",onClick:function(e){this._deleteItem(),e.event.stopPropagation()}.bind(this),integrationOptions:{}}),e.append(t),t.append(i),i.append(n),this._$buttonContainer=e},_enablePositioning:function(e){this.callBase.apply(this,arguments),Ut.stop(this._$buttonContainer,!0),this._$buttonContainer.appendTo(e)},_disablePositioning:function(){this.callBase.apply(this,arguments),this._$buttonContainer.detach()},_animatePrepareDeleteReady:function(){var e=this._isRtlEnabled(),t=(0,n.dz)(this._list.$element()),i=this._buttonWidth(),o=e?t:-i,r=e?t-i:0;return Ut.animate(this._$buttonContainer,{type:"custom",duration:dE,from:{right:o},to:{right:r}})},_animateForgetDeleteReady:function(){var e=this._isRtlEnabled(),t=(0,n.dz)(this._list.$element()),i=this._buttonWidth(),o=e?t-i:0,r=e?t:-i;return Ut.animate(this._$buttonContainer,{type:"custom",duration:dE,from:{right:o},to:{right:r}})},_buttonWidth:function(){return this._buttonContainerWidth||(this._buttonContainerWidth=(0,n.Y_)(this._$buttonContainer)),this._buttonContainerWidth},dispose:function(){this._$buttonContainer&&this._$buttonContainer.remove(),this.callBase.apply(this,arguments)}}),cE="dx-list-toggle-delete-switch-container",hE="dx-list-toggle-delete-switch";xb("delete","toggle",uE.inherit({beforeBag:function(e){var t=e.$itemElement,i=e.$container,n=(0,o.Z)("<div>").addClass(hE);this._list._createComponent(n,cd,{icon:"toggle-delete",onClick:function(e){Ut.stop(this._$buttonContainer,!1),this._toggleDeleteReady(t),e.event.stopPropagation()}.bind(this),integrationOptions:{}}),i.addClass(cE),i.append(n)}})),xb("delete","slideButton",uE.inherit({_shouldHandleSwipe:!0,_swipeEndHandler:function(e,t){return 0!==t.targetOffset&&(Ut.stop(this._$buttonContainer,!1),this._toggleDeleteReady(e)),!0}}));var pE={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"};var fE=["shading","target","$arrow"],gE={left:-1,top:-1,center:0,right:1,bottom:1},mE={top:{my:"bottom center",at:"top center",collision:"fit flip"},bottom:{my:"top center",at:"bottom center",collision:"fit flip"},right:{my:"left center",at:"right center",collision:"flip fit"},left:{my:"right center",at:"left center",collision:"flip fit"}},_E={h:10,v:10};class vE extends pi{constructor(e){var{shading:t,target:i,$arrow:n}=e,o=(0,Vs.Z)(e,fE);super(o),this._props=(0,hn.Z)({},this._props,{shading:t,target:i}),this._$arrow=n,this._positionSide=void 0,this.updatePosition(this._props.position)}positionWrapper(){this._props.shading&&this._$wrapper.css({top:0,left:0})}updateTarget(e){this._props.target=e,this.updatePosition(this._props.position)}_renderBoundaryOffset(){}_getContainerPosition(){var e=(0,v.TG)(this._position.offset||""),{h:t,v:i}=e,o=this._isVerticalSide(),r=this._isHorizontalSide();if(o||r){var s=this._isPopoverInside(),l=(s?-1:1)*gE[this._positionSide],d=o?(0,n.Cr)(this._$arrow):(0,n.dz)(this._$arrow),u=this._getContentBorderWidth(this._positionSide),c=l*(d-u);o?i+=c:t+=c}return(0,a.l)({},this._position,{offset:t+" "+i})}_getContentBorderWidth(e){var t=this._$content.css(pE[e]);return parseInt(t)||0}_isPopoverInside(){var e=it.setup.normalizeAlign(this._position.my),t=it.setup.normalizeAlign(this._position.at);return e.h===t.h&&e.v===t.v}_isVerticalSide(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._positionSide;return"top"===e||"bottom"===e}_isHorizontalSide(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._positionSide;return"left"===e||"right"===e}_getDisplaySide(e){var t=it.setup.normalizeAlign(e.my),i=it.setup.normalizeAlign(e.at),n=gE[t.h]===gE[i.h]&&gE[t.v]===gE[i.v]?-1:1,o=Math.abs(gE[t.h]-n*gE[i.h]),r=Math.abs(gE[t.v]-n*gE[i.v]);return o>r?i.h:i.v}_normalizePosition(e){var t,i={of:this._props.target,boundaryOffset:_E};return t=(0,l.$K)(e)?(0,a.l)(!0,{},i,this._positionToObject(e)):i,this._positionSide=this._getDisplaySide(t),t}_positionToObject(e){return(0,l.HD)(e)?(0,a.l)({},mE[e]):e}}var yE="dx-popover",CE="dx-popover-wrapper",bE="dx-popover-arrow",xE="dx-popover-without-title",wE={left:"right",top:"bottom",right:"left",bottom:"top",center:"center"},TE=function(e){return(0,l.Kn)(e)?e.name:e},SE=function(e,t){var i=e.option(t);return TE(i)},IE=function(e,t){var i=e.option(t);return(0,l.Kn)(i)&&i.delay},EE=function(e,t){var{target:i,shading:n,disabled:r,hideEvent:a}=e.option(),s=(0,l.HD)(i),d=n&&"hide"===t,u=d?null:SE(e,"".concat(t,"Event"));if(d&&a&&Xt.Z.log("W1020"),u&&!r){var c=(0,R.V4)(u,e.NAME),h=e._createAction(function(){var i=IE(e,t+"Event");this._clearEventsTimeouts(),i?this._timeouts[t]=setTimeout((function(){e[t]()}),i):e[t]()}.bind(e),{validatingTargetName:"target"}),p=function(e){h({event:e,target:(0,o.Z)(e.currentTarget)})},f="_"+t+"EventHandler";if(s)e[f]=p,re.Z.on(ke["default"].getDocument(),c,i,p);else{var g=(0,se.u)((0,o.Z)(i));e[f]=void 0,re.Z.on(g,c,p)}}},DE=function(e,t,i,n){var r=n||SE(e,i+"Event");if(r){r=(0,R.V4)(r,e.NAME);var a="_"+i+"EventHandler";e[a]?re.Z.off(ke["default"].getDocument(),r,t,e[a]):re.Z.off((0,se.u)((0,o.Z)(t)),r)}},kE=Tc.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{target:void 0,shading:!1,position:(0,a.l)({},mE.bottom),hideOnOutsideClick:!0,animation:{show:{type:"fade",from:0,to:1},hide:{type:"fade",from:1,to:0}},showTitle:!1,width:"auto",height:"auto",dragEnabled:!1,resizeEnabled:!1,fullScreen:!1,hideOnParentScroll:!0,arrowPosition:"",arrowOffset:0,_fixWrapperPosition:!0})},_defaultOptionsRules:function(){return[{device:{platform:"ios"},options:{arrowPosition:{boundaryOffset:{h:20,v:-10},collision:"fit"}}},{device:function(){return!(0,s.Ym)()},options:{animation:null}}]},_init:function(){this.callBase(),this._renderArrow(),this._timeouts={},this.$element().addClass(yE),this.$wrapper().addClass(CE)},_render:function(){this.callBase.apply(this,arguments),this._detachEvents(this.option("target")),this._attachEvents()},_detachEvents:function(e){DE(this,e,"show"),DE(this,e,"hide")},_attachEvents:function(){EE(this,"show"),EE(this,"hide")},_renderArrow:function(){this._$arrow=(0,o.Z)("<div>").addClass(bE).prependTo(this.$overlayContent())},_documentDownHandler:function(e){return!this._isOutsideClick(e)||this.callBase(e)},_isOutsideClick:function(e){return!(0,o.Z)(e.target).closest(this.option("target")).length},_animate:function(e){e&&e.to&&"object"===typeof e.to&&(0,a.l)(e.to,{position:this._getContainerPosition()}),this.callBase.apply(this,arguments)},_stopAnimation:function(){this.callBase.apply(this,arguments)},_renderTitle:function(){this.$wrapper().toggleClass(xE,!this.option("showTitle")),this.callBase()},_renderPosition:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.callBase(),this._renderOverlayPosition(e),this._actions.onPositioned()},_renderOverlayPosition:function(e){this._resetOverlayPosition(e),this._updateContentSize(e);var t=this._getContainerPosition(),i=it.setup(this.$overlayContent(),t),n=this._getSideByLocation(i);this._togglePositionClass("dx-position-"+n),this._toggleFlippedClass(i.h.flip,i.v.flip);var o=this._isHorizontalSide()||this._isVerticalSide();o&&this._renderArrowPosition(n)},_resetOverlayPosition:function(e){this._setContentHeight(e),this._togglePositionClass("dx-position-"+this._positionController._positionSide),ve(this.$overlayContent(),{left:0,top:0}),this._$arrow.css({top:"auto",right:"auto",bottom:"auto",left:"auto"})},_updateContentSize:function(e){if(this.$content()&&e){var t=it.calculate(this.$overlayContent(),this._getContainerPosition());if(t.h.oversize>0&&this._isHorizontalSide()&&!t.h.fit){var i=(0,n.dz)(this.$overlayContent())-t.h.oversize;(0,n.cl)(this.$overlayContent(),i)}if(t.v.oversize>0&&this._isVerticalSide()&&!t.v.fit){var o=(0,n.Cr)(this.$overlayContent())-t.v.oversize,r=(0,n.Cr)(this.$content())-t.v.oversize;(0,n.QQ)(this.$overlayContent(),o),(0,n.QQ)(this.$content(),r)}}},_getContainerPosition:function(){return this._positionController._getContainerPosition()},_hideOnParentScrollTarget:function(){return(0,o.Z)(this._positionController._position.of||this.callBase())},_getSideByLocation:function(e){var t=e.v.flip,i=e.h.flip;return this._isVerticalSide()&&t||this._isHorizontalSide()&&i||this._isPopoverInside()?wE[this._positionController._positionSide]:this._positionController._positionSide},_togglePositionClass:function(e){this.$wrapper().removeClass("dx-position-left dx-position-right dx-position-top dx-position-bottom").addClass(e)},_toggleFlippedClass:function(e,t){this.$wrapper().toggleClass("dx-popover-flipped-horizontal",e).toggleClass("dx-popover-flipped-vertical",t)},_renderArrowPosition:function(e){var t=Pe(this._$arrow.get(0)),i=-(this._isVerticalSide(e)?t.height:t.width);this._$arrow.css(wE[e],i);var n,r=this._isVerticalSide(e)?"left":"top",a=this._isVerticalSide(e)?"width":"height",s=(0,o.Z)(this._positionController._position.of),l=it.offset(s)||{top:0,left:0},d=it.offset(this.$overlayContent()),u=t[a],c=d[r],h=Pe(this.$overlayContent().get(0))[a],p=l[r],f=s.get(0),g=f&&!f.preventDefault?Pe(f)[a]:0,m=Math.max(c,p),_=Math.min(c+h,p+g);n="start"===this.option("arrowPosition")?m-c:"end"===this.option("arrowPosition")?_-c-u:(m+_)/2-c-u/2;var v=this._positionController._getContentBorderWidth(e),y=(0,ln.n$)(n-v+this.option("arrowOffset"),v,h-u-2*v);this._$arrow.css(r,y)},_isPopoverInside:function(){return this._positionController._isPopoverInside()},_setContentHeight:function(e){e&&this.callBase()},_getPositionControllerConfig(){var{shading:e,target:t}=this.option();return(0,a.l)({},this.callBase(),{target:t,shading:e,$arrow:this._$arrow})},_initPositionController(){this._positionController=new vE(this._getPositionControllerConfig())},_renderWrapperDimensions:function(){this.option("shading")&&this.$wrapper().css({width:"100%",height:"100%"})},_isVerticalSide:function(e){return this._positionController._isVerticalSide(e)},_isHorizontalSide:function(e){return this._positionController._isHorizontalSide(e)},_clearEventTimeout:function(e){clearTimeout(this._timeouts[e])},_clearEventsTimeouts:function(){this._clearEventTimeout("show"),this._clearEventTimeout("hide")},_clean:function(){this._detachEvents(this.option("target")),this.callBase.apply(this,arguments)},_optionChanged:function(e){switch(e.name){case"arrowPosition":case"arrowOffset":this._renderGeometry();break;case"fullScreen":e.value&&this.option("fullScreen",!1);break;case"target":e.previousValue&&this._detachEvents(e.previousValue),this._positionController.updateTarget(e.value),this._invalidate();break;case"showEvent":case"hideEvent":var t=e.name.substring(0,4),i=TE(e.previousValue);this.hide(),DE(this,this.option("target"),t,i),EE(this,t);break;case"visible":this._clearEventTimeout(e.value?"show":"hide"),this.callBase(e);break;default:this.callBase(e)}},show:function(e){return e&&this.option("target",e),this.callBase()}});(0,C.Z)("dxPopover",kE);var OE=kE,AE=(0,s.Jj)(),PE="dx-actionsheet",ME="dx-actionsheet-container",RE="dx-actionsheet-popup-wrapper",BE="dx-actionsheet-popover-wrapper",VE="dx-actionsheet-cancel",FE="dx-actionsheet-item",HE="dxActionSheetItemData",LE="dx-actionsheet-without-title",NE="outlined",ZE=Du.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{usePopover:!1,target:null,title:"",showTitle:!0,showCancelButton:!0,cancelText:y.Z.format("Cancel"),onCancelClick:null,visible:!1,noDataText:"",focusStateEnabled:!1,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios",tablet:!0},options:{usePopover:!0}}])},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({item:new Bd((function(e,t){var i=new cd((0,o.Z)("<div>"),(0,a.l)({onClick:t&&t.click,stylingMode:t&&t.stylingMode||NE},t));e.append(i.$element())}),["disabled","icon","text","type","onClick","click","stylingMode"],this.option("integrationOptions.watchMethod"))})},_itemContainer:function(){return this._$itemContainer},_itemClass:function(){return FE},_itemDataKey:function(){return HE},_toggleVisibility:v.ZT,_renderDimensions:v.ZT,_initMarkup:function(){this.callBase(),this.$element().addClass(PE),this._createItemContainer()},_render:function(){this._renderPopup()},_createItemContainer:function(){this._$itemContainer=(0,o.Z)("<div>").addClass(ME),this._renderDisabled()},_renderDisabled:function(){this._$itemContainer.toggleClass("dx-state-disabled",this.option("disabled"))},_renderPopup:function(){this._$popup=(0,o.Z)("<div>").appendTo(this.$element()),this._isPopoverMode()?this._createPopover():this._createPopup(),this._renderPopupTitle(),this._mapPopupOption("visible")},_mapPopupOption:function(e){this._popup&&this._popup.option(e,this.option(e))},_isPopoverMode:function(){return this.option("usePopover")&&this.option("target")},_renderPopupTitle:function(){this._mapPopupOption("showTitle"),this._popup&&this._popup.$wrapper().toggleClass(LE,!this.option("showTitle"))},_clean:function(){this._$popup&&this._$popup.remove(),this.callBase()},_overlayConfig:function(){return{onInitialized:function(e){this._popup=e.component}.bind(this),disabled:!1,showTitle:!0,title:this.option("title"),deferRendering:!AE.angular,onContentReady:this._popupContentReadyAction.bind(this),onHidden:this.hide.bind(this)}},_createPopover:function(){this._createComponent(this._$popup,OE,(0,a.l)(this._overlayConfig(),{width:this.option("width")||200,height:this.option("height")||"auto",target:this.option("target")})),this._popup.$wrapper().addClass(BE)},_createPopup:function(){this._createComponent(this._$popup,Tc,(0,a.l)(this._overlayConfig(),{dragEnabled:!1,width:this.option("width")||"100%",height:this.option("height")||"auto",showCloseButton:!1,position:{my:"bottom",at:"bottom",of:AE},animation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom",of:AE}},to:{position:{my:"bottom",at:"bottom",of:AE}}},hide:{type:"slide",duration:400,from:{position:{my:"bottom",at:"bottom",of:AE}},to:{position:{my:"top",at:"bottom",of:AE}}}}})),this._popup.$wrapper().addClass(RE)},_popupContentReadyAction:function(){this._popup.$content().append(this._$itemContainer),this._attachClickEvent(),this._attachHoldEvent(),this._prepareContent(),this._renderContent(),this._renderCancelButton()},_renderCancelButton:function(){if(!this._isPopoverMode()&&(this._$cancelButton&&this._$cancelButton.remove(),this.option("showCancelButton"))){var e=this._createActionByOption("onCancelClick")||v.ZT,t=this;this._$cancelButton=(0,o.Z)("<div>").addClass(VE).appendTo(this._popup&&this._popup.$content()),this._createComponent(this._$cancelButton,cd,{disabled:!1,stylingMode:NE,text:this.option("cancelText"),onClick:function(i){var n={event:i,cancel:!1};e(n),n.cancel||t.hide()},integrationOptions:{}})}},_attachItemClickEvent:v.ZT,_itemClickHandler:function(e){this.callBase(e),(0,o.Z)(e.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_itemHoldHandler:function(e){this.callBase(e),(0,o.Z)(e.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_optionChanged:function(e){switch(e.name){case"width":case"height":case"visible":case"title":this._mapPopupOption(e.name);break;case"disabled":this._renderDisabled();break;case"showTitle":this._renderPopupTitle();break;case"showCancelButton":case"onCancelClick":case"cancelText":this._renderCancelButton();break;case"target":case"usePopover":case"items":this._invalidate();break;default:this.callBase(e)}},toggle:function(e){var t=this,i=new ot.BH;return t._popup.toggle(e).done((function(){t.option("visible",e),i.resolveWith(t)})),i.promise()},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)}});(0,C.Z)("dxActionSheet",ZE);var $E=ZE,WE="dxListEditDecorator",KE=(0,R.V4)(A.u,WE),zE=(0,R.V4)(H,WE),jE="dx-list-slide-menu",UE="dx-list-slide-menu-wrapper",GE="dx-list-slide-menu-content",qE="dx-list-slide-menu-buttons-container",YE="dx-list-slide-menu-buttons",XE="dx-list-slide-menu-button",JE="dx-list-slide-menu-button-menu",QE="dx-list-slide-menu-button-delete",eD=400,tD="cubic-bezier(0.075, 0.82, 0.165, 1)";xb("menu","slide",oE.inherit({_shouldHandleSwipe:!0,_init:function(){this.callBase.apply(this,arguments),this._$buttonsContainer=(0,o.Z)("<div>").addClass(qE),re.Z.on(this._$buttonsContainer,zE,v.ZT),this._$buttons=(0,o.Z)("<div>").addClass(YE).appendTo(this._$buttonsContainer),this._renderMenu(),this._renderDeleteButton()},_renderMenu:function(){if(this._menuEnabled()){var e=this._menuItems();if(1===e.length){var t=e[0];this._renderMenuButton(t.text,function(e){e.stopPropagation(),this._fireAction(t)}.bind(this))}else{var i=(0,o.Z)("<div>").addClass(jE);this._menu=this._list._createComponent(i,$E,{showTitle:!1,items:e,onItemClick:function(e){this._fireAction(e.itemData)}.bind(this),integrationOptions:{}}),i.appendTo(this._list.$element());var n=this._renderMenuButton(y.Z.format("dxListEditDecorator-more"),function(e){e.stopPropagation(),this._menu.show()}.bind(this));this._menu.option("target",n)}}},_renderMenuButton:function(e,t){var i=(0,o.Z)("<div>").addClass(XE).addClass(JE).text(e);return this._$buttons.append(i),re.Z.on(i,KE,t),i},_renderDeleteButton:function(){if(this._deleteEnabled()){var e=(0,o.Z)("<div>").addClass(XE).addClass(QE).text((0,x.x2)()?"":y.Z.format("dxListEditDecorator-delete"));re.Z.on(e,KE,function(e){e.stopPropagation(),this._deleteItem()}.bind(this)),this._$buttons.append(e)}},_fireAction:function(e){this._fireMenuAction((0,o.Z)(this._cachedNode),e.action),this._cancelDeleteReadyItem()},modifyElement:function(e){this.callBase.apply(this,arguments);var t=e.$itemElement;t.addClass(UE);var i=(0,o.Z)("<div>").addClass(GE);t.wrapInner(i)},_getDeleteButtonContainer:function(){return this._$buttonsContainer},handleClick:function(e,t){return!!(0,o.Z)(t.target).closest("."+GE).length&&this.callBase.apply(this,arguments)},_swipeStartHandler:function(e){this._enablePositioning(e),this._cacheItemData(e),this._setPositions(this._getPositions(0))},_swipeUpdateHandler:function(e,t){var i=this._isRtlEnabled(),n=i?-1:1,o=this._isReadyToDelete(e),r=this._getCurrentPositions().content===this._getStartPositions().content;if(!(r&&!o&&t.offset*n>0)){var a=this._cachedItemWidth*t.offset,s=o?-this._cachedButtonWidth*n:0,l=(a+s)*n,d=l<0?Math.abs((a+s)/this._cachedButtonWidth):0;return this._setPositions(this._getPositions(d)),!0}t.cancel=!0},_getStartPositions:function(){var e=this._isRtlEnabled(),t=e?-1:1;return{content:0,buttonsContainer:e?-this._cachedButtonWidth:this._cachedItemWidth,buttons:-this._cachedButtonWidth*t}},_getPositions:function(e){var t=this._isRtlEnabled(),i=t?-1:1,n=this._getStartPositions();return{content:n.content-e*this._cachedButtonWidth*i,buttonsContainer:n.buttonsContainer-Math.min(e,1)*this._cachedButtonWidth*i,buttons:n.buttons+Math.min(e,1)*this._cachedButtonWidth*i}},_getCurrentPositions:function(){return{content:he(this._$cachedContent).left,buttonsContainer:he(this._$buttonsContainer).left,buttons:he(this._$buttons).left}},_setPositions:function(e){ve(this._$cachedContent,{left:e.content}),ve(this._$buttonsContainer,{left:e.buttonsContainer}),ve(this._$buttons,{left:e.buttons})},_cacheItemData:function(e){e[0]!==this._cachedNode&&(this._$cachedContent=e.find("."+GE),this._cachedItemWidth=(0,n.Y_)(e),this._cachedButtonWidth=this._cachedButtonWidth||(0,n.Y_)(this._$buttons),(0,n.cl)(this._$buttonsContainer,this._cachedButtonWidth),this._$cachedContent.length&&(this._cachedNode=e[0]))},_minButtonContainerLeftOffset:function(){return this._cachedItemWidth-this._cachedButtonWidth},_swipeEndHandler:function(e,t){this._cacheItemData(e);var i=this._isRtlEnabled()?1:-1,n=this._cachedItemWidth*t.offset,o=!this._isReadyToDelete(e)&&n*i>.2*this._cachedButtonWidth,r=t.targetOffset===i&&o;return this._toggleDeleteReady(e,r),!0},_enablePositioning:function(e){Ut.stop(this._$cachedContent,!0),this.callBase.apply(this,arguments),this._$buttonsContainer.appendTo(e)},_disablePositioning:function(){this.callBase.apply(this,arguments),this._$buttonsContainer.detach()},_animatePrepareDeleteReady:function(){return this._animateToPositions(this._getPositions(1))},_animateForgetDeleteReady:function(e){return this._cacheItemData(e),this._animateToPositions(this._getPositions(0))},_animateToPositions:function(e){var t=this,i=this._getCurrentPositions(),n=Math.min(Math.abs(i.content-e.content)/this._cachedButtonWidth,1);return Ut.animate(this._$cachedContent,{from:i,to:e,easing:tD,duration:eD*n,strategy:"frame",draw:function(e){t._setPositions(e)}})},dispose:function(){this._menu&&this._menu.$element().remove(),this._$buttonsContainer&&this._$buttonsContainer.remove(),this.callBase.apply(this,arguments)}}).include($I));var iD="dx-list-static-delete-button-container",nD="dx-list-static-delete-button";xb("delete","static",Uw.inherit({afterBag:function(e){var t=e.$itemElement,i=e.$container,n=(0,o.Z)("<div>").addClass(nD);this._list._createComponent(n,cd,{icon:"remove",onClick:function(e){e.event.stopPropagation(),this._deleteItem(t)}.bind(this),integrationOptions:{}}),i.addClass(iD).append(n)},_deleteItem:function(e){e.is(".dx-state-disabled, .dx-state-disabled *")||this._list.deleteItem(e)}})),xb("delete","swipe",Uw.inherit({_shouldHandleSwipe:!0,_renderItemPosition:function(e,t,i){var n=new ot.BH,o=t*this._itemElementWidth;return i?Ut.animate(e,{to:{left:o},type:"slide",complete:function(){n.resolve(e,t)}}):(ve(e,{left:o}),n.resolve()),n.promise()},_swipeStartHandler:function(e){return this._itemElementWidth=(0,n.dz)(e),!0},_swipeUpdateHandler:function(e,t){return this._renderItemPosition(e,t.offset),!0},_swipeEndHandler:function(e,t){var i=t.targetOffset;return this._renderItemPosition(e,i,!0).done(function(e,t){Math.abs(t)&&this._list.deleteItem(e).fail(function(){this._renderItemPosition(e,0,!0)}.bind(this))}.bind(this)),!0}}));class oD{constructor(e,t){this._popupInstance=e._createComponent(t,Tc),this.infoMap={TaskEdit:aD,Resources:sD,Confirmation:lD,ConstraintViolation:dD}}_apply(){if(this._dialogInfo.isValidated()){var e=this._dialogInfo.getResult();this._callback(e),this.hide()}}show(e,t,i,n,o){if(this._callback=i,this._afterClosing=n,this.infoMap[e]){var r=this._popupInstance._isVisible()&&this._dialogInfo&&this._dialogInfo instanceof this.infoMap[e];this._dialogInfo=new this.infoMap[e](t,this._apply.bind(this),this.hide.bind(this),o),this._popupInstance.option({showTitle:!!this._dialogInfo.getTitle(),title:this._dialogInfo.getTitle(),toolbarItems:this._dialogInfo.getToolbarItems(),maxWidth:this._dialogInfo.getMaxWidth(),height:this._dialogInfo.getHeight(),contentTemplate:this._dialogInfo.getContentTemplate()}),this._afterClosing&&this._popupInstance.option("onHidden",this._afterClosing),r||this._popupInstance.show()}}hide(){this._popupInstance.hide(),this._afterClosing&&this._afterClosing()}}class rD{constructor(e,t,i,n){this._parameters=e,this._applyAction=t,this._hideAction=i,this._editingOptions=n}_getFormItems(){return{}}_getFormCssClass(){return""}_getFormData(){return this._parameters}_updateParameters(){}_getOkToolbarItem(){return this._getToolbarItem("OK",this._applyAction)}_getCancelToolbarItem(){return this._getToolbarItem("Cancel",this._hideAction)}_getYesToolbarItem(){return this._getToolbarItem("Yes",this._applyAction)}_getNoToolbarItem(){return this._getToolbarItem("No",this._hideAction)}_getToolbarItem(e,t){return{widget:"dxButton",toolbar:"bottom",options:{text:y.Z.format(e),onClick:t}}}getTitle(){return""}getToolbarItems(){return this._editingOptions.enabled?[this._getOkToolbarItem(),this._getCancelToolbarItem()]:[this._getCancelToolbarItem()]}getMaxWidth(){return 400}getHeight(){return"auto"}getContentTemplate(){return e=>(this._form=new cI(e,{formData:this._getFormData(),items:this._getFormItems(),elementAttr:{class:this._getFormCssClass()},rtlEnabled:!1}),e)}getResult(){var e=this.getFormData();return this._updateParameters(e),this._parameters}getFormData(){var e=this._form&&this._form.option("formData");return e}isValidated(){return!0}}class aD extends rD{getTitle(){return y.Z.format("dxGantt-dialogTaskDetailsTitle")}_getFormItems(){var e=!this._editingOptions.enabled||!this._editingOptions.allowTaskUpdating,t=e||!this._parameters.enableRangeEdit;return[{dataField:"title",editorType:"dxTextBox",label:{text:y.Z.format("dxGantt-dialogTitle")},editorOptions:{readOnly:e||this._isReadOnlyField("title")},visible:!this._isHiddenField("title")},{dataField:"start",editorType:"dxDateBox",label:{text:y.Z.format("dxGantt-dialogStartTitle")},editorOptions:{type:"datetime",width:"100%",readOnly:t||this._isReadOnlyField("start")},visible:!this._isHiddenField("start"),validationRules:[{type:"required",message:y.Z.format("validation-required-formatted",y.Z.format("dxGantt-dialogStartTitle"))},{type:"custom",validationCallback:e=>{if(this._parameters.isValidationRequired){var t=this._parameters.getCorrectDateRange(this._parameters.id,e.value,this._parameters.end);if(t.start.getTime()!==e.value.getTime())return e.rule.message=this._getValidationMessage(!0,t.start),!1}return!0}}]},{dataField:"end",editorType:"dxDateBox",label:{text:y.Z.format("dxGantt-dialogEndTitle")},editorOptions:{type:"datetime",width:"100%",readOnly:t||this._isReadOnlyField("end")},visible:!this._isHiddenField("end"),validationRules:[{type:"required",message:y.Z.format("validation-required-formatted",y.Z.format("dxGantt-dialogEndTitle"))},{type:"custom",validationCallback:e=>{if(this._parameters.isValidationRequired){var t=this._parameters.getCorrectDateRange(this._parameters.id,this._parameters.start,e.value);if(t.end.getTime()!==e.value.getTime())return e.rule.message=this._getValidationMessage(!1,t.end),!1}return!0}}]},{dataField:"progress",editorType:"dxNumberBox",label:{text:y.Z.format("dxGantt-dialogProgressTitle")},editorOptions:{showSpinButtons:!0,min:0,max:1,format:"#0%",step:.01,readOnly:t||this._isReadOnlyField("progress")},visible:!this._isHiddenField("progress")},{dataField:"assigned.items",editorType:"dxTagBox",label:{text:y.Z.format("dxGantt-dialogResourcesTitle")},editorOptions:{readOnly:e||!this._editingOptions.allowTaskResourceUpdating,dataSource:this._parameters.resources.items,displayExpr:"text",buttons:[{name:"editResources",location:"after",options:{disabled:!this._editingOptions.allowResourceAdding&&!this._editingOptions.allowResourceDeleting,text:"...",hint:y.Z.format("dxGantt-dialogEditResourceListHint"),onClick:()=>{this._parameters.showResourcesDialogCommand.execute((()=>{this._parameters.showTaskEditDialogCommand.execute()}))}}}]}}]}_getValidationMessage(e,t){return e?y.Z.format("dxGantt-dialogStartDateValidation",this._getFormattedDateText(t)):y.Z.format("dxGantt-dialogEndDateValidation",this._getFormattedDateText(t))}_getFormattedDateText(e){var t="";if(e){var i=gy.Z.format(e,"shortDate"),n=gy.Z.format(e,"hh:mm");t=i+" "+n}return t}_isReadOnlyField(e){return this._parameters.readOnlyFields.indexOf(e)>-1}_isHiddenField(e){return this._parameters.hiddenFields.indexOf(e)>-1}_getFormData(){var e={};for(var t in this._parameters)e[t]="progress"===t?this._parameters[t]/100:this._parameters[t];return e}_updateParameters(e){this._parameters.title=e.title,this._parameters.start=e.start,this._parameters.end=e.end,this._parameters.progress=100*e.progress,this._parameters.assigned=e.assigned}isValidated(){var e,t=null===(e=this._form)||void 0===e?void 0:e.validate();return null===t||void 0===t?void 0:t.isValid}}class sD extends rD{getTitle(){return y.Z.format("dxGantt-dialogResourceManagerTitle")}_getFormItems(){return[{label:{visible:!1},dataField:"resources.items",editorType:"dxList",editorOptions:{allowItemDeleting:this._editingOptions.enabled&&this._editingOptions.allowResourceDeleting,itemDeleteMode:"static",selectionMode:"none",items:this._parameters.resources.items,height:250,noDataText:y.Z.format("dxGantt-dialogEditNoResources"),onInitialized:e=>{this.list=e.component},onItemDeleted:e=>{this._parameters.resources.remove(e.itemData)}}},{label:{visible:!1},editorType:"dxTextBox",editorOptions:{readOnly:!this._editingOptions.enabled||!this._editingOptions.allowResourceAdding,onInitialized:e=>{this.textBox=e.component},onInput:e=>{var t=e.component.getButton("addResource"),i=e.component.option("text");t.option("disabled",0===i.length)},buttons:[{name:"addResource",location:"after",options:{text:y.Z.format("dxGantt-dialogButtonAdd"),disabled:!0,onClick:e=>{var t=this._parameters.resources.createItem();t.text=this.textBox.option("text"),this._parameters.resources.add(t),this.list.option("items",this._parameters.resources.items),this.list.scrollToItem(t),this.textBox.reset(),e.component.option("disabled",!0)}}}]}}]}}class lD extends rD{getContentTemplate(){return e=>this._getConfirmMessage()}_getConfirmMessage(){switch(this._parameters.type){case 0:return y.Z.format("dxGantt-dialogTaskDeleteConfirmation");case 1:return y.Z.format("dxGantt-dialogDependencyDeleteConfirmation");case 2:return y.Z.format("dxGantt-dialogResourcesDeleteConfirmation",this._parameters.message);default:return""}}getToolbarItems(){return[this._getYesToolbarItem(),this._getNoToolbarItem()]}}class dD extends rD{_getFormItems(){var e,t=this._parameters.hasCriticalErrors,i=this._parameters.errorsCount>1,n=[],o=i?"dxGantt-dialogDeleteDependenciesMessage":"dxGantt-dialogDeleteDependencyMessage",r=i?"dxGantt-dialogMoveTaskAndKeepDependenciesMessage":"dxGantt-dialogMoveTaskAndKeepDependencyMessage";return e=t?i?"dxGantt-dialogConstraintCriticalViolationSeveralTasksMessage":"dxGantt-dialogConstraintCriticalViolationMessage":i?"dxGantt-dialogConstraintViolationSeveralTasksMessage":"dxGantt-dialogConstraintViolationMessage",n.push({text:y.Z.format("dxGantt-dialogCancelOperationMessage"),value:0}),n.push({text:y.Z.format(o),value:1}),t||n.push({text:y.Z.format(r),value:2}),[{template:y.Z.format(e)},{cssClass:"dx-cv-dialog-row",dataField:"option",label:{visible:!1},editorType:"dxRadioGroup",editorOptions:{items:n,valueExpr:"value",value:0}}]}_getFormCssClass(){return"dx-cv-dialog"}_updateParameters(e){this._parameters.option=e.option}}var uD=["year","month","day"],cD=["year","month","day","hour","minute"],hD=function(e){return"date"===e||"datetime"===e},pD=function(e){var t,i=[],n=["year","month","day","hour","minute","second"],o=e.headerFilter&&e.headerFilter.groupInterval,r="quarter"===o?"month":o;return hD(e.dataType)&&null!==o?(i="datetime"===e.dataType?cD:uD,t=n.indexOf(r),t>=0?(i=n.slice(0,t),i.push(o),i):i):(0,l.$K)(o)?Array.isArray(o)?o:[o]:void 0},fD=function(){var e=function(e,t){var i=e.dataField||e.selector;return"search"===t&&(i=e.displayField||e.calculateDisplayValue||i),i},t=function(t,i){var n,o,r,a,s=e(this,i);if(Array.isArray(t)&&(0,l.$K)(t[0])&&(0,l.$K)(t[1]))return o=[s,">=",t[0]],r=[s,"<=",t[1]],hD(this.dataType)&&(a=t[1],a.getHours()+a.getMinutes()+a.getSeconds()+a.getMilliseconds()<1)&&(n=new Date(t[1].getTime()),"date"===this.dataType&&n.setDate(t[1].getDate()+1),r=[s,"<",n]),[o,"and",r]},i=function(t,i,n){var o,r,a,s=function(e){return(0,l.J_)(e)?[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()]:(0,E.UI)((""+e).split("/"),(function(e,t){return 1===t?Number(e)-1:Number(e)}))}(t),d=e(this,n);switch("headerFilter"===n?a=pD(this)[s.length-1]:"datetime"===this.dataType&&(a="minute"),a){case"year":o=new Date(s[0],0,1),r=new Date(s[0]+1,0,1);break;case"month":o=new Date(s[0],s[1],1),r=new Date(s[0],s[1]+1,1);break;case"quarter":o=new Date(s[0],3*s[1],1),r=new Date(s[0],3*s[1]+3,1);break;case"hour":o=new Date(s[0],s[1],s[2],s[3]),r=new Date(s[0],s[1],s[2],s[3]+1);break;case"minute":o=new Date(s[0],s[1],s[2],s[3],s[4]),r=new Date(s[0],s[1],s[2],s[3],s[4]+1);break;case"second":o=new Date(s[0],s[1],s[2],s[3],s[4],s[5]),r=new Date(s[0],s[1],s[2],s[3],s[4],s[5]+1);break;default:o=new Date(s[0],s[1],s[2]),r=new Date(s[0],s[1],s[2]+1)}switch(i){case"<":return[d,"<",o];case"<=":return[d,"<",r];case">":return[d,">=",r];case">=":return[d,">=",o];case"<>":return[[d,"<",o],"or",[d,">=",r]];default:return[[d,">=",o],"and",[d,"<",r]]}},n=function(t,i,n){var o=e(this,n),r=pD(this);if("headerFilter"===n&&r&&(0,l.$K)(t)){var a=(""+t).split("/"),s=Number(a[a.length-1]),d=r[a.length-1],u=[o,">=",s],c=[o,"<",s+d],h=[u,"and",c];return h}return[o,i||"=",t]};return{defaultCalculateFilterExpression:function(o,r,a){var s=this,d=e(s,a),u=s.calculateDisplayValue&&"search"===a,c=u&&s.lookup&&s.lookup.dataType||s.dataType,h=null;if("headerFilter"!==a&&"filterBuilder"!==a||null!==o)if("string"!==c||s.lookup&&!u){if("between"===r)return t.apply(s,[o,a]);if(hD(c)&&(0,l.$K)(o))return i.apply(s,arguments);if("number"===c)return n.apply(s,arguments);h=[d,r||"=",o]}else h=[d,r||"contains",o];else h=[d,r||"=",null],"string"===c&&(h=[h,"="===r?"or":"and",[d,r||"=",""]]);return h},getGroupInterval:pD}}(),gD=i(29966),mD="dx-selection-disabled",_D="dx-datagrid-group-opened",vD="dx-datagrid-group-closed",yD="dx-datagrid-expand",CD="nodata",bD="infinite",xD="virtual",wD="scrolling.legacyMode",TD="scrolling.mode",SD="scrolling.rowRenderingMode",ID={year:function(e){return e&&e.getFullYear()},month:function(e){return e&&e.getMonth()+1},day:function(e){return e&&e.getDate()},quarter:function(e){return e&&Math.floor(e.getMonth()/3)+1},hour:function(e){return e&&e.getHours()},minute:function(e){return e&&e.getMinutes()},second:function(e){return e&&e.getSeconds()}},ED=function(){var e=arguments[1],t=this.calculateCellValue(e);if(!(0,l.$K)(t))return null;if(kD(this.dataType)){var i=arguments[0];return ID[i](t)}if("number"===this.dataType){var n=arguments[0];return Math.floor(Number(t)/n)*n}},DD=function(e,t){return(0,l.mf)(e)&&(0,l.mf)(t)&&e.originalCallback&&t.originalCallback?e.originalCallback===t.originalCallback&&e.columnIndex===t.columnIndex:e===t};function kD(e){return"date"===e||"datetime"===e}var OD=function(e){e.get(0).textContent=" "},AD=function(e){e=e||[];for(var t=(0,Yc.G5)(e),i=0;i<e.length;i++)e&&e[i]&&void 0!==e[i].isExpanded&&(t[i].isExpanded=e[i].isExpanded),e&&e[i]&&void 0!==e[i].groupInterval&&(t[i].groupInterval=e[i].groupInterval);return t},PD=function(e,t){var i=gD.Z.format(e,t.format)||e&&e.toString()||"",n={value:e,valueText:t.getDisplayFormat?t.getDisplayFormat(i):i,target:t.target||"row",groupInterval:t.groupInterval};return t.customizeText?t.customizeText.call(t,n):n.valueText},MD=function(e,t){var i=e.displayFormat||e.columnCaption&&t[e.summaryType+"OtherColumn"]||t[e.summaryType];return PD(e.value,{format:e.valueFormat,getDisplayFormat:function(t){return i?(0,Ic.WU)(i,t,e.columnCaption):t},customizeText:e.customizeText})},RD=function(e){var t=e.data&&e.data(),i=t&&t.dxComponents,n=i&&i[0];return n&&t[n]},BD=function e(t,i){if(Array.isArray(t)&&Array.isArray(i)){if(t.length!==i.length)return!1;for(var n=0;n<t.length;n++)if(!e(t[n],i[n]))return!1;return!0}return(0,l.mf)(t)&&t.columnIndex>=0&&(0,l.mf)(i)&&i.columnIndex>=0?t.columnIndex===i.columnIndex&&(0,r.Ex)(t.filterValue)===(0,r.Ex)(i.filterValue):(0,r.Ex)(t)==(0,r.Ex)(i)};function VD(e){return Array.isArray(e)||(e=[e]),e.map(((t,i)=>(0,l.HD)(t)?{selector:t,isExpanded:i<e.length-1}:t))}var FD={renderNoDataText:function(e){if(e=e||this.element(),e){var t=this.addWidgetPrefix(CD),i=e.find("."+t).last(),n=this._dataController.isEmpty(),r=this._dataController.isLoading();i.length||(i=(0,o.Z)("<span>").addClass(t).appendTo(e)),n&&!r?i.removeClass("dx-hidden").text(this._getNoDataText()):i.addClass("dx-hidden")}},renderLoadPanel:function(e,t,i){var n;this._loadPanel&&this._loadPanel.$element().remove(),n=this.option("loadPanel"),n&&("auto"===n.enabled?!i:n.enabled)?(n=(0,a.l)({shading:!1,message:n.text,container:t},n),this._loadPanel=this._createComponent((0,o.Z)("<div>").appendTo(t),Hi,n)):this._loadPanel=null},calculateLoadPanelPosition(e){var t=(0,o.Z)((0,s.Jj)());return(0,n.Cr)(e)>(0,n.Cr)(t)?{of:t,boundary:e,collision:"fit"}:{of:e}},getIndexByKey:function(e,t,i){var n=-1;if(void 0!==e&&Array.isArray(t)){i=arguments.length<=2?"key":i;for(var o=0;o<t.length;o++){var r=(0,l.$K)(i)?t[o][i]:t[o];if((0,v.bY)(e,r)){n=o;break}}}return n},combineFilters:function(e,t){var i=[];t=t||"and";for(var n=0;n<e.length;n++){var o;if(e[n]){if(1===(null===(o=e[n])||void 0===o?void 0:o.length)&&"!"===e[n][0]){if("and"===t)return["!"];if("or"===t)continue}i.length&&i.push(t),i.push(e[n])}}if(1===i.length&&(i=i[0]),i.length)return i},checkChanges:function(e,t){for(var i=0,n=0;n<t.length;n++)e[t[n]]&&i++;return e.length&&e.length===i},equalFilterParameters:BD,proxyMethod:function(e,t,i){e[t]||(e[t]=function(){var e=this._dataSource;return e?e[t].apply(e,arguments):i})},formatValue:PD,getFormatOptionsByColumn:function(e,t){return{format:e.format,getDisplayFormat:e.getDisplayFormat,customizeText:e.customizeText,target:t,trueText:e.trueText,falseText:e.falseText}},getDisplayValue:function(e,t,i,n){return e.displayValueMap&&void 0!==e.displayValueMap[t]?e.displayValueMap[t]:e.calculateDisplayValue&&i&&"group"!==n?e.calculateDisplayValue(i):!e.lookup||"group"===n&&(e.calculateGroupValue||e.calculateDisplayValue)?t:e.lookup.calculateCellValue(t)},getGroupRowSummaryText:function(e,t){for(var i="(",n=0;n<e.length;n++){var o=e[n];i+=(n>0?", ":"")+MD(o,t)}return i+")"},getSummaryText:MD,normalizeSortingInfo:AD,getFormatByDataType:function(e){switch(e){case"date":return"shortDate";case"datetime":return"shortDateShortTime"}},getHeaderFilterGroupParameters:function(e,t){var i=[],n=e.dataField||e.name,o=fD.getGroupInterval(e);return o?((0,E.S6)(o,(function(r,a){i.push(t?{selector:n,groupInterval:a,isExpanded:r<o.length-1}:ED.bind(e,a))})),i):(t?i=[{selector:n,isExpanded:!1}]:(i=function(t){var i=e.calculateCellValue(t);return void 0!==i&&""!==i||(i=null),i},e.sortingMethod&&(i=[{selector:i,compare:e.sortingMethod.bind(e)}])),i)},equalSortParameters(e,t,i){if(e=AD(e),t=AD(t),Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!DD(e[n].selector,t[n].selector)||e[n].desc!==t[n].desc||e[n].groupInterval!==t[n].groupInterval||!i&&Boolean(e[n].isExpanded)!==Boolean(t[n].isExpanded))return!1;return!0}return(!e||!e.length)===(!t||!t.length)},getPointsByColumns:function(e,t,i,n){for(var o,r,a,s=e.length,l=!1,d=n||0,u=[],c=0;c<=s;c++){c<s&&(o=e.eq(c),r=o.offset(),a="rtl"===o.css("direction"));var h={index:d,x:r?r.left+(!i&&a^c===s?Pe(o[0]).width:0):0,y:r?r.top+(i&&c===s?Pe(o[0]).height:0):0,columnIndex:d};if(!i&&c>0){var p=e.eq(c-1).offset();p.top<h.y&&(h.y=p.top)}t&&(l=t(h)),l||u.push(h),d++}return u},getExpandCellTemplate:function(){return{allowRenderToDetachedContainer:!0,render:function(e,t){var i=(0,o.Z)(e);if(!(0,l.$K)(t.value)||t.data&&t.data.isContinuation||t.row.isNewRow)OD(i);else{var n=t.component.getView("rowsView");i.addClass(yD).addClass(mD),(0,o.Z)("<div>").addClass(t.value?_D:vD).appendTo(i),n.setAria("label",t.value?n.localize("dxDataGrid-ariaCollapse"):n.localize("dxDataGrid-ariaExpand"),i)}}}},setEmptyText:OD,isDateType:kD,getSelectionRange:function(e){try{if(e)return{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}catch(t){}return{}},setSelectionRange:function(e,t){try{e&&e.setSelectionRange&&e.setSelectionRange(t.selectionStart,t.selectionEnd)}catch(i){}},focusAndSelectElement:function(e,t){var i=t.is(":focus");re.Z.trigger(t,"focus");var n=e.option("editing.selectTextOnEditStart"),o=t.get(0);if(!i&&n&&t.is(".dx-texteditor-input")&&!t.is("[readonly]")){var r=RD(t.closest(".dx-texteditor"));(0,ot.gx)(r&&r._loadItemDeferred).done((function(){o.select()}))}},getWidgetInstance:RD,getLastResizableColumnIndex:function(e,t){var i,n=e.some((e=>e&&!e.command&&!e.fixed&&!1!==e.allowResizing));for(i=e.length-1;e[i];i--){var o=e[i],r=t&&t[i],a=!n||!1!==o.allowResizing;if(!o.command&&!o.fixed&&"adaptiveHidden"!==r&&a)break}return i},isElementInCurrentGrid:function(e,t){if(t&&t.length){var i=t.closest("."+e.getWidgetContainerClass()).parent();return i.is(e.component.$element())}return!1},isVirtualRowRendering:function(e){var t=e.option(SD),i=e.option(TD)===xD,n=e.option(TD)===bD;return!(!1!==e.option(wD)||!i&&!n)||t===xD},getPixelRatio:function(e){return e.devicePixelRatio||1},getContentHeightLimit(e){return e.mozilla?8e6:15e6/this.getPixelRatio((0,s.Jj)())},normalizeLookupDataSource(e){var t;return e.items?t=e.items:(t=e.dataSource,(0,l.mf)(t)&&!$f.Z.isWrapped(t)&&(t=t({}))),(0,hu.aN)(t)},getWrappedLookupDataSource(e,t,i){if(!t)return[];var n=this.normalizeLookupDataSource(e.lookup);if(e.calculateCellValue!==e.defaultCalculateCellValue)return n;var o,r=t.remoteOperations().groupPaging,a=e.displayField&&(0,l.HD)(e.displayField),s=(0,hn.Z)({},n,{__dataGridSourceFilter:i,load:s=>{var l=new ot.BH;return(n=>{var s=VD(a?[e.dataField,e.displayField]:e.dataField),l=new ot.BH;return!r&&o?l.resolve(o):t.load({filter:i,group:s,take:r?n.take:void 0,skip:r?n.skip:void 0}).done((e=>{o=e,l.resolve(e)})).fail(l.fail),l})(s).done((t=>{var i;if(0===t.length&&l.resolve([]),a){var o=t.map((t=>{var i;return{[e.lookup.valueExpr]:t.key,[e.lookup.displayExpr]:null!==(i=e.displayValueMap[t.key])&&void 0!==i?i:t.items[0].key}}));i=new cu.o((0,hn.Z)({},n,s,{store:new xw.Z({data:o,key:e.lookup.valueExpr})}))}else{var d=this.combineFilters(t.flatMap((e=>e.key)).map((t=>[e.lookup.valueExpr,t])),"or");i=new cu.o((0,hn.Z)({},n,s,{filter:this.combineFilters([d,s.filter],"and")}))}r||i.on("customizeStoreLoadOptions",(e=>{e.storeLoadOptions.take=s.take,e.storeLoadOptions.skip=s.skip})),i.load().done(l.resolve).fail(l.fail)})).fail(l.fail),l},key:e.lookup.valueExpr,byKey(t){var i=(0,ot.BH)();return this.load({filter:[e.lookup.valueExpr,"=",t]}).done((e=>{i.resolve(e[0])})),i.promise()}});return s}},HD=(0,s.Jj)(),LD="dx-treelist-empty-space",ND="dx-treelist-table";class ZD{constructor(e){this._gantt=e,this._treeList=e._treeList,this._cache={}}reset(){this._cache={}}getTreeListTableStyle(){var e=this._getTreeListTable(),t=HD.getComputedStyle(e);return{color:t.color,backgroundColor:t.backgroundColor,fontSize:t.fontSize,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontStyle:t.fontStyle,textAlign:"left",verticalAlign:"middle"}}getTreeListColCount(){var e=this._getHeaderView(),t=e.getColumnWidths().filter((e=>e>0));return t.length}getTreeListHeaderInfo(e){var t=this._getHeaderElement(e);if(!t)return null;var i=HD.getComputedStyle(t),n={color:i.color,padding:i.padding,paddingLeft:i.paddingLeft,paddingTop:i.paddingTop,paddingRight:i.paddingRight,paddingBottom:i.paddingBottom,verticalAlign:i.verticalAlign,width:this._getColumnWidth(e)};return{content:t.textContent,styles:n}}getTreeListCellInfo(e,t){var i,n=this._treeList.getNodeByKey(e),o=this._treeList.getRowIndexByKey(e),r=o>-1?this._getDataCell(o,t):null,a=r?HD.getComputedStyle(r):this._getColumnCellStyle(t),s={color:a.color,padding:a.padding,paddingLeft:a.paddingLeft,paddingTop:a.paddingTop,paddingRight:a.paddingRight,paddingBottom:a.paddingBottom,width:this._getColumnWidth(t)};return 0===t&&(s.extraLeftPadding=this._getEmptySpaceWidth(n.level)),{content:null!==(i=null===r||void 0===r?void 0:r.textContent)&&void 0!==i?i:this._getDisplayText(e,t),styles:s}}getTreeListEmptyDataCellInfo(){return{content:this._treeList.option("noDataText")}}_ensureColumnWidthCache(e){var t,i;if(null!==(i=(t=this._cache)["columnWidths"])&&void 0!==i||(t.columnWidths={}),!this._cache.columnWidths[e]){var n,o=this._getHeaderElement(e);this._cache.columnWidths[e]=null!==(n=null===o||void 0===o?void 0:o.clientWidth)&&void 0!==n?n:0}}_getColumnWidth(e){this._ensureColumnWidthCache(e);var t=this._cache.columnWidths;return t&&t[e]}_getEmptySpaceWidth(e){if(!this._cache.emptyWidth){var t,i,n,o=this._getTreeListElement(LD);null!==(i=(t=this._cache)["emptyWidth"])&&void 0!==i||(t.emptyWidth=null!==(n=o.offsetWidth)&&void 0!==n?n:0)}return this._cache.emptyWidth*(e+1)}_getColumnCellStyle(e){return this._ensureColumnCellStyleCache(e),this._cache.columnStyles[e]}_ensureColumnCellStyleCache(e){var t,i;if(null!==(i=(t=this._cache)["columnStyles"])&&void 0!==i||(t.columnStyles={}),!this._cache.columnStyles[e]){var n=this._getDataCell(0,e);this._cache.columnStyles[e]=HD.getComputedStyle(n)}}_getTask(e){return this._ensureTaskCache(e),this._cache.tasks[e]}_ensureTaskCache(e){var t,i,n,o;null!==(i=(t=this._cache)["tasks"])&&void 0!==i||(t.tasks={}),null!==(o=(n=this._cache.tasks)[e])&&void 0!==o||(n[e]=this._gantt._findTaskByKey(e))}_getTreeListTable(){return this._getTreeListElement(ND)}_getTreeListElement(e){return this._treeList._$element.find("."+e).get(0)}_getDataCell(e,t){var i=this._treeList,n=i.getCellElement(e,t);return n&&n.length?n[0]:n}_getHeaderElement(e){return this._getHeaderView().getHeaderElement(e).get(0)}_getHeaderView(){return this._treeList._views.columnHeadersView}_getDisplayText(e,t){var i=this._getTask(e);return i&&this._getGridDisplayText(t,i)}_getGridDisplayText(e,t){var i=this._treeList.getController("columns").getColumns(),n=i[e],o=null===n||void 0===n?void 0:n.dataField,r=null===n||void 0===n?void 0:n.format,a=FD.getDisplayValue(n,t[o],t,"data");if((0,l.$K)(r)){if("date"===(null===n||void 0===n?void 0:n.dataType)||"datetime"===(null===n||void 0===n?void 0:n.dataType)){var s=(0,l.J_)(a)?a:new Date(a);return gy.Z.format(s,r)}if((0,l.kE)(a))return kn.Z.format(a,r)}return"string"===typeof a?a:null===a||void 0===a?void 0:a.toString()}}var $D="tasks",WD=/(\w*)Expr/;class KD{constructor(e){this._gantt=e}_getMappedFieldName(e,t){var i=t;return"id"===t&&(i="key"),this._gantt.option("".concat(e,".").concat(i,"Expr"))}getTaskMappedFieldNames(){var e=[],t=this._gantt.option($D);for(var i in t){var n=i.match(WD),o=n&&t[n[0]];o&&e.push(o)}return e}convertCoreToMappedData(e,t){return Object.keys(t).reduce(((i,n)=>{var o=this._getMappedFieldName(e,n);if(o){var a=(0,r.OM)(o);a(i,t[n])}return i}),{})}convertMappedToCoreData(e,t){var i={};if(t){var n=this._gantt.option(e);for(var o in n){var a=o.match(WD),s=a&&n[a[0]];if(s&&void 0!==t[s]){var l=(0,r.vb)(s),d=a[1];i[d]=l(t)}}}return i}convertCoreToMappedFields(e,t){return t.reduce(((t,i)=>{var n=this._getMappedFieldName(e,i);return n&&t.push(n),t}),[])}convertMappedToCoreFields(e,t){var i=[],n=this._gantt.option(e);for(var o in n){var r=o.match(WD),a=r&&n[r[0]];if(a&&t.indexOf(a)>-1){var s=r[1];i.push(s)}}return i}}class zD{constructor(e){this._gantt=e}_setTreeListDimension(e,t){var i,o="width"===e?n.cl:n.QQ,r="width"===e?n.dz:n.Cr;o(this._gantt._$treeListWrapper,t),null===(i=this._gantt._ganttTreeList)||void 0===i||i.setOption(e,r(this._gantt._$treeListWrapper))}_setGanttViewDimension(e,t){var i="width"===e?n.cl:n.QQ,o="width"===e?n.dz:n.Cr;i(this._gantt._$ganttView,t),this._gantt._setGanttViewOption(e,o(this._gantt._$ganttView))}_getPanelsWidthByOption(){var e,t,i,o=(0,n.dz)(this._gantt._$element),r=this._gantt.option("taskListWidth");return isNaN(r)?(null===(e=r.indexOf)||void 0===e?void 0:e.call(r,"px"))>0?i=o-parseInt(r.replace("px",""))+"px":(null===(t=r.indexOf)||void 0===t?void 0:t.call(r,"%"))>0&&(i=100-parseInt(r.replace("%",""))+"%"):i=o-parseInt(r),{leftPanelWidth:r,rightPanelWidth:i}}onAdjustControl(){var e=(0,n.Cr)(this._gantt._$element);this.updateGanttWidth(),this.setGanttHeight(e)}onApplyPanelSize(e){this.setInnerElementsWidth(e),this.updateGanttRowHeights()}updateGanttRowHeights(){var e,t=this._gantt._ganttTreeList.getRowHeight();this._gantt._getGanttViewOption("rowHeight")!==t&&(this._gantt._setGanttViewOption("rowHeight",t),null===(e=this._gantt._ganttView)||void 0===e||e._ganttViewCore.updateRowHeights(t))}adjustHeight(){this._gantt._hasHeight||(this._gantt._setGanttViewOption("height",0),this._gantt._setGanttViewOption("height",this._gantt._ganttTreeList.getOffsetHeight()))}setInnerElementsWidth(e){(0,s.Ym)()&&(e||(e=this._getPanelsWidthByOption(),this._gantt._splitter._setSplitterPositionLeft({splitterPositionLeft:e.leftPanelWidth}),this._setTreeListDimension("width",0),this._setGanttViewDimension("width",0)),this._setTreeListDimension("width",e.leftPanelWidth),this._setGanttViewDimension("width",e.rightPanelWidth))}updateGanttWidth(){this._gantt._splitter._dimensionChanged()}setGanttHeight(e){var t,i=this._gantt._$toolbarWrapper.get(0).offsetHeight,n=e-i;this._setTreeListDimension("height",n),this._setGanttViewDimension("height",n),null===(t=this._gantt._ganttView)||void 0===t||t._ganttViewCore.resetAndUpdate()}}class jD{constructor(e){this._gantt=e}getTaskTooltipContentTemplateFunc(e){var t=e&&this._gantt._getTemplate(e),i=t&&((e,i,n)=>(t.render({model:this._gantt.getTaskDataByCoreData(i),container:(0,se.u)((0,o.Z)(e)),onRendered:()=>{n()}}),!0));return i}getTaskProgressTooltipContentTemplateFunc(e){var t=e&&this._gantt._getTemplate(e),i=t&&((e,i,n)=>(t.render({model:i,container:(0,se.u)((0,o.Z)(e)),onRendered:()=>{n()}}),!0));return i}getTaskTimeTooltipContentTemplateFunc(e){var t=e&&this._gantt._getTemplate(e),i=t&&((e,i,n)=>(t.render({model:i,container:(0,se.u)((0,o.Z)(e)),onRendered:()=>{n()}}),!0));return i}getTaskContentTemplateFunc(e){var t=e&&this._gantt._getTemplate(e),i=t&&((e,i,n,r)=>(i.taskData=this._gantt.getTaskDataByCoreData(i.taskData),t.render({model:i,container:(0,se.u)((0,o.Z)(e)),onRendered:()=>{n(e,r)}}),!0));return i}}var UD="dx-buttongroup",GD=["dxAutocomplete","dxButton","dxCheckBox","dxDateBox","dxMenu","dxSelectBox","dxTabs","dxTextBox","dxButtonGroup","dxDropDownButton"],qD=function(e){var t=e.data&&e.data(),i=t&&t.dxComponents,n=i&&i[0];return n&&t[n]};function YD(e,t){var i;if(e){var n=e._findItemElementByItem(t);if(n.length){var r=e._getItemData(n),a=!!(null!==(i=r.options)&&void 0!==i&&i.disabled||r.disabled||e.option("disabled")),{widget:s}=r;if(s&&-1!==GD.indexOf(s)){var l=n.find(s.toLowerCase().replace("dx",".dx-"));if(l.length){var d,u,c=qD(l);if(!c)return;var h,p=null===(d=c._focusTarget)||void 0===d?void 0:d.call(c);if("dxDropDownButton"===s)p=p&&p.find(".".concat(UD));else p=null!==(h=p)&&void 0!==h?h:(0,o.Z)(c.element());var f=null===(u=r.options)||void 0===u?void 0:u.tabIndex;a?p.attr("tabIndex",-1):p.attr("tabIndex",null!==f&&void 0!==f?f:0)}}}}}var XD="dx-toolbar-label";class JD{constructor(e){this._toolbar=e}_initMarkup(){}_updateMenuVisibility(){}_renderMenuItems(){}_renderItem(){}_getMenuItems(){}_getToolbarItems(){var e;return null!==(e=this._toolbar.option("items"))&&void 0!==e?e:[]}_getItemsWidth(){return this._toolbar._getSummaryItemsWidth(this._toolbar.itemElements(),!0)}_arrangeItems(){var e=this._toolbar._$toolbarItemsContainer.find(".".concat(XD)).eq(0);if(e.length){var t=(0,n.dz)(this._toolbar.$element()),i=(0,n.Y_)(e)-(0,n.dz)(e);e.css("maxWidth",t-i)}}_hideOverflowItems(){}_dimensionChanged(){}_itemOptionChanged(){}_optionChanged(){}}var QD="dx-toolbar-menu-action",ek="dx-toolbar-hidden-button",tk="dx-toolbar-hidden-button-group",ik="dx-toolbar-menu-section",nk="dx-toolbar-menu-custom",ok="dx-toolbar-menu-last-section";class rk extends uw{_init(){super._init(),this._activeStateUnit=".".concat(QD,":not(.").concat(tk,")")}_initMarkup(){this._renderSections(),super._initMarkup()}_getSections(){return this._itemContainer().children()}_itemElements(){return this._getSections().children(this._itemSelector())}_renderSections(){var e=this._itemContainer();(0,E.S6)(["before","center","after","menu"],((t,i)=>{var n="_$".concat(i,"Section");this[n]||(this[n]=(0,o.Z)("<div>").addClass(ik)),this[n].appendTo(e)}))}_renderItems(){super._renderItems.apply(this,arguments),this._updateSections()}_updateSections(){var e=this.$element().find(".".concat(ik));e.removeClass(ok),e.not(":empty").eq(-1).addClass(ok)}_renderItem(e,t,i,n){var o,r=null!==(o=t.location)&&void 0!==o?o:"menu",a=this["_$".concat(r,"Section")],s=super._renderItem(e,t,a,n);return this._getItemTemplateName({itemData:t})&&s.addClass(nk),("menu"===r||"dxButton"===t.widget||"dxButtonGroup"===t.widget||t.isAction)&&s.addClass(QD),"dxButton"===t.widget&&s.addClass(ek),"dxButtonGroup"===t.widget&&s.addClass(tk),s.addClass(t.cssClass),s}_getItemTemplateName(e){var t=super._getItemTemplateName(e),i=e.itemData,n=i&&i.menuItemTemplate;return n||t}_dataSourceOptions(){return{paginate:!1}}_itemClickHandler(e,t,i){(0,o.Z)(e.target).closest(".".concat(QD)).length&&super._itemClickHandler(e,t,i)}_getAriaTarget(){var e;return null!==(e=this.option("_areaTarget"))&&void 0!==e?e:super._getAriaTarget()}_clean(){this._getSections().empty(),super._clean()}}class ak extends Tc{_getToolbarName(){return"dxToolbar"}}(0,C.Z)("dxPopup",ak);var sk="dx-dropdownmenu",lk="dx-dropdownmenu-popup",dk="dx-dropdownmenu-popup-wrapper",uk="dx-dropdownmenu-list",ck="dx-dropdownmenu-button",hk=10,pk=3;class fk extends G{_supportedKeys(){var e={};return this.option("opened")&&this._list.option("focusedElement")||(e=this._button._supportedKeys()),(0,a.l)(super._supportedKeys(),e,{tab:function(){this._popup&&this._popup.hide()}})}_getDefaultOptions(){return(0,a.l)(super._getDefaultOptions(),{items:[],onItemClick:null,dataSource:null,itemTemplate:"item",onButtonClick:null,activeStateEnabled:!0,hoverStateEnabled:!0,opened:!1,onItemRendered:null,closeOnClick:!0,useInkRipple:!1,container:void 0,animation:{show:{type:"fade",from:0,to:1},hide:{type:"fade",to:0}}})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:function(){return"desktop"===w.Z.real().deviceType&&!w.Z.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,x.x2)()},options:{useInkRipple:!0,animation:{show:{type:"pop",duration:200,from:{scale:0},to:{scale:1}},hide:{type:"pop",duration:200,from:{scale:1},to:{scale:0}}}}}])}_init(){super._init(),this.$element().addClass(sk),this._initItemClickAction(),this._initButtonClickAction()}_initItemClickAction(){this._itemClickAction=this._createActionByOption("onItemClick")}_initButtonClickAction(){this._buttonClickAction=this._createActionByOption("onButtonClick")}_initTemplates(){this._templateManager.addDefaultTemplates({content:new Sw.s("content")}),super._initTemplates()}_initMarkup(){this._renderButton(),super._initMarkup()}_render(){super._render(),this.setAria({role:"menubar",haspopup:!0,expanded:this.option("opened")})}_renderContentImpl(){this.option("opened")&&this._renderPopup()}_clean(){this._cleanFocusState(),this._list&&this._list.$element().remove(),this._popup&&this._popup.$element().remove(),delete this._list,delete this._popup}_renderButton(){var e=this.$element().addClass(ck);this._button=this._createComponent(e,cd,{icon:"overflow",template:"content",useInkRipple:this.option("useInkRipple"),hoverStateEnabled:!1,focusStateEnabled:!1,onClick:e=>{this.option("opened",!this.option("opened")),this._buttonClickAction(e)}})}_toggleActiveState(e,t,i){this._button._toggleActiveState(e,t,i)}_toggleMenuVisibility(e){var t=null!==e&&void 0!==e?e:!this._popup.option("visible");e&&this._renderPopup(),this._popup.toggle(t),this.setAria("expanded",t)}_renderPopup(){if(!this._$popup){this._$popup=(0,o.Z)("<div>").appendTo(this.$element());var{rtlEnabled:e,container:t,animation:i}=this.option();this._popup=this._createComponent(this._$popup,"dxPopup",{onInitialized(e){var{component:t}=e;t.$wrapper().addClass(dk).addClass(lk)},deferRendering:!1,contentTemplate:e=>this._renderList(e),_ignoreFunctionValueDeprecation:!0,maxHeight:()=>this._getMaxHeight(),position:{my:"top ".concat(e?"left":"right"),at:"bottom ".concat(e?"left":"right"),collision:"fit flip",offset:{v:pk},of:this.$element()},animation:i,onOptionChanged:e=>{var{name:t,value:i}=e;"visible"===t&&this.option("opened",i)},container:t,autoResizeEnabled:!1,height:"auto",width:"auto",hideOnOutsideClick:e=>this._closeOutsideDropDownHandler(e),hideOnParentScroll:!0,shading:!1,dragEnabled:!1,showTitle:!1,fullScreen:!1,_fixWrapperPosition:!0})}}_getMaxHeight(){var e=this.$element(),t=e.offset().top,i=(0,n.zp)((0,s.Jj)()),o=Math.max(t,i-t-(0,n.zp)(e));return Math.min(i,o-pk-hk)}_closeOutsideDropDownHandler(e){var t=!(0,o.Z)(e.target).closest(this.$element()).length;return t}_renderList(e){var t=(0,o.Z)(e);t.addClass(uk),this._list=this._createComponent(t,rk,{dataSource:this._getListDataSource(),pageLoadMode:"scrollBottom",indicateLoading:!1,noDataText:"",itemTemplate:this.option("itemTemplate"),onItemClick:e=>{this.option("closeOnClick")&&this.option("opened",!1),this._itemClickAction(e)},tabIndex:-1,focusStateEnabled:!1,activeStateEnabled:!0,onItemRendered:this.option("onItemRendered"),_areaTarget:this.$element(),_itemAttributes:{role:"menuitem"}})}_itemOptionChanged(e,t,i){var n;null===(n=this._list)||void 0===n||n._itemOptionChanged(e,t,i),YD(this._list,e)}_getListDataSource(){var e;return null!==(e=this.option("dataSource"))&&void 0!==e?e:this.option("items")}_setListDataSource(){var e;null===(e=this._list)||void 0===e||e.option("dataSource",this._getListDataSource()),delete this._deferRendering}_getKeyboardListeners(){return super._getKeyboardListeners().concat([this._list])}_toggleVisibility(e){super._toggleVisibility(e),this._button.option("visible",e)}_optionChanged(e){var t,i,n,{name:o,value:r}=e;switch(o){case"items":case"dataSource":this.option("opened")?this._setListDataSource():this._deferRendering=!0;break;case"itemTemplate":null===(t=this._list)||void 0===t||t.option(o,this._getTemplate(r));break;case"onItemClick":this._initItemClickAction();break;case"onButtonClick":this._buttonClickAction();break;case"useInkRipple":this._invalidate();break;case"focusStateEnabled":null===(i=this._list)||void 0===i||i.option(o,r),super._optionChanged(e);break;case"onItemRendered":null===(n=this._list)||void 0===n||n.option(o,r);break;case"opened":this._deferRendering&&this._setListDataSource(),this._toggleMenuVisibility(r),this._updateFocusableItemsTabIndex();break;case"closeOnClick":break;case"container":this._popup&&this._popup.option(o,r);break;case"disabled":this._list&&this._updateFocusableItemsTabIndex();break;default:super._optionChanged(e)}}_updateFocusableItemsTabIndex(){this.option("items").forEach((e=>YD(this._list,e)))}}var gk="dx-state-invisible",mk="dx-toolbar-menu-container",_k="dx-toolbar-button",vk="dx-toolbar-item-auto-hide",yk="dx-toolbar-item-invisible";class Ck{constructor(e){this._toolbar=e}_initMarkup(){(0,v.g0)((()=>{this._renderOverflowMenu(),this._renderMenuItems()}))}_renderOverflowMenu(){if(this._hasVisibleMenuItems()){this._renderMenuButtonContainer();var e=(0,o.Z)("<div>").appendTo(this._overflowMenuContainer()),t=this._toolbar._createActionByOption("onItemClick"),i=this._toolbar._getTemplateByOption("menuItemTemplate");this._menu=this._toolbar._createComponent(e,fk,{disabled:this._toolbar.option("disabled"),itemTemplate:()=>i,onItemClick:e=>{t(e)},container:this._toolbar.option("menuContainer"),onOptionChanged:e=>{var{name:t,value:i}=e;"opened"===t&&this._toolbar.option("overflowMenuVisible",i),"items"===t&&this._updateMenuVisibility(i)}})}}renderMenuItems(){this._menu||this._renderOverflowMenu(),this._menu&&this._menu.option("items",this._getMenuItems()),this._menu&&!this._menu.option("items").length&&this._menu.option("opened",!1)}_renderMenuButtonContainer(){this._$overflowMenuContainer=(0,o.Z)("<div>").appendTo(this._toolbar._$afterSection).addClass(_k).addClass(mk)}_overflowMenuContainer(){return this._$overflowMenuContainer}_updateMenuVisibility(e){var t=null!==e&&void 0!==e?e:this._getMenuItems(),i=t.length&&this._hasVisibleMenuItems(t);this._toggleMenuVisibility(i)}_toggleMenuVisibility(e){this._overflowMenuContainer()&&this._overflowMenuContainer().toggleClass(gk,!e)}_renderMenuItems(){(0,v.g0)((()=>{this.renderMenuItems()}))}_dimensionChanged(){this.renderMenuItems()}_getToolbarItems(){var e;return(0,v.h3)(null!==(e=this._toolbar.option("items"))&&void 0!==e?e:[],(e=>!this._toolbar._isMenuItem(e)))}_getMenuItems(){var e,t,i=(0,v.h3)(null!==(e=this._toolbar.option("items"))&&void 0!==e?e:[],(e=>this._toolbar._isMenuItem(e))),n=this._toolbar._itemContainer().children(".".concat(vk,".").concat(yk)).not(".".concat(gk));this._restoreItems=null!==(t=this._restoreItems)&&void 0!==t?t:[];var r=[].slice.call(n).map((e=>{var t=this._toolbar._getItemData(e),i=(0,o.Z)(e),n=i.children();return(0,a.l)({menuItemTemplate:()=>{this._restoreItems.push({container:i,item:n});var e=(0,o.Z)("<div>").addClass(vk);return e.append(n)}},t)}));return[...r,...i]}_hasVisibleMenuItems(e){var t=null!==e&&void 0!==e?e:this._toolbar.option("items"),i=!1,n=(0,r.vb)("visible"),o=(0,r.vb)("locateInMenu");return(0,E.S6)(t,(function(e,t){var r=n(t,{functionsAsIs:!0}),a=o(t,{functionsAsIs:!0});(!1===r||"auto"!==a&&"always"!==a)&&"menu"!==t.location||(i=!0)})),i}_arrangeItems(){var e;this._toolbar._$centerSection.css({margin:"0 auto",float:"none"}),(0,E.S6)(null!==(e=this._restoreItems)&&void 0!==e?e:[],(function(e,t){(0,o.Z)(t.container).append(t.item)})),this._restoreItems=[];var t=(0,n.dz)(this._toolbar.$element());return this._hideOverflowItems(t),t}_hideOverflowItems(e){var t,i=this._toolbar.$element().find(".".concat(vk));if(i.length){e=null!==(t=e)&&void 0!==t?t:(0,n.dz)(this._toolbar.$element()),(0,o.Z)(i).removeClass(yk);var r=this._getItemsWidth();while(i.length&&e<r){var a=i.eq(-1);r-=(0,n.Y_)(a),a.addClass(yk),i.splice(-1,1)}}}_getItemsWidth(){return this._toolbar._getSummaryItemsWidth([this._toolbar._$beforeSection,this._toolbar._$centerSection,this._toolbar._$afterSection])}_itemOptionChanged(e,t,i){var n;if(this._toolbar._isMenuItem(e)&&("disabled"===t||"options.disabled"===t))return void(null===(n=this._menu)||void 0===n||n._itemOptionChanged(e,t,i));this.renderMenuItems()}_renderItem(e,t){"auto"===e.locateInMenu&&t.addClass(vk)}_optionChanged(e,t){var i,n,o,r,a;switch(e){case"disabled":null===(i=this._menu)||void 0===i||i.option(e,t);break;case"overflowMenuVisible":null===(n=this._menu)||void 0===n||n.option("opened",t);break;case"onItemClick":null===(o=this._menu)||void 0===o||o.option(e,t);break;case"menuContainer":null===(r=this._menu)||void 0===r||r.option("container",t);break;case"menuItemTemplate":null===(a=this._menu)||void 0===a||a.option("itemTemplate",t)}}}var bk="dx-toolbar-multiline",xk="dx-toolbar-text-auto-hide";class wk extends Gu{_getDefaultOptions(){return(0,a.l)(super._getDefaultOptions(),{menuItemTemplate:"menuItem",menuContainer:void 0,overflowMenuVisible:!1,multiline:!1})}_isMultiline(){return this.option("multiline")}_dimensionChanged(e){"height"!==e&&(super._dimensionChanged(),this._layoutStrategy._dimensionChanged())}_initMarkup(){super._initMarkup(),this._updateFocusableItemsTabIndex(),this._layoutStrategy._initMarkup()}_renderToolbar(){super._renderToolbar(),this._renderLayoutStrategy()}_itemContainer(){return this._isMultiline()?this._$toolbarItemsContainer:super._itemContainer()}_renderLayoutStrategy(){this.$element().toggleClass(bk,this._isMultiline()),this._layoutStrategy=this._isMultiline()?new JD(this):new Ck(this)}_renderSections(){if(!this._isMultiline())return super._renderSections()}_postProcessRenderItems(){this._layoutStrategy._hideOverflowItems(),this._layoutStrategy._updateMenuVisibility(),super._postProcessRenderItems(),this._layoutStrategy._renderMenuItems()}_renderItem(e,t,i,n){var o=super._renderItem(e,t,i,n);this._layoutStrategy._renderItem(t,o);var{widget:r,showText:a}=t;return"dxButton"===r&&"inMenu"===a&&o.toggleClass(xk),o}_getItemsWidth(){return this._layoutStrategy._getItemsWidth()}_getMenuItems(){return this._layoutStrategy._getMenuItems()}_getToolbarItems(){return this._layoutStrategy._getToolbarItems()}_arrangeItems(){if(!this.$element().is(":hidden")){var e=this._layoutStrategy._arrangeItems();this._isMultiline()||super._arrangeItems(e)}}_itemOptionChanged(e,t,i){this._layoutStrategy._itemOptionChanged(e,t,i),this._isMenuItem(e)||super._itemOptionChanged(e,t,i),"disabled"!==t&&"options.disabled"!==t||YD(this,e),"location"===t&&this.repaint()}_updateFocusableItemsTabIndex(){this._getToolbarItems().forEach((e=>YD(this,e)))}_isMenuItem(e){return"menu"===e.location||"always"===e.locateInMenu}_isToolbarItem(e){return void 0===e.location||"never"===e.locateInMenu}_optionChanged(e){var{name:t,value:i}=e;switch(this._layoutStrategy._optionChanged(t,i),t){case"menuContainer":case"menuItemTemplate":case"overflowMenuVisible":break;case"multiline":this._invalidate();break;case"disabled":super._optionChanged.apply(this,arguments),this._updateFocusableItemsTabIndex();break;default:super._optionChanged.apply(this,arguments)}}updateDimensions(){this._dimensionChanged()}}(0,C.Z)("dxToolbar",wk);var Tk=wk,Sk=Tk,Ik=P.Z.inherit({ctor:function(){this._dataStructure=[],this._itemsCount=0,this._visibleItemsCount=0},_indexByKey:{},_convertItemsToNodes:function(e,t){var i=this;(0,E.S6)(e,(function(e,n){var o=(0,l.$K)(t)?t:i._getParentId(n),r=i._convertItemToNode(n,o);i._dataStructure.push(r),i._checkForDuplicateId(r.internalFields.key),i._indexByKey[r.internalFields.key]=i._dataStructure.length-1,i._itemHasChildren(n)&&i._convertItemsToNodes(i._dataAccessors.getters.items(n),r.internalFields.key)}))},_checkForDuplicateId:function(e){if((0,l.$K)(this._indexByKey[e]))throw Xt.Z.Error("E1040",e)},_getParentId:function(e){return"plain"===this._dataType?this._dataAccessors.getters.parentKey(e):void 0},_itemHasChildren:function(e){if("plain"!==this._dataType){var t=this._dataAccessors.getters.items(e);return t&&t.length}},_getUniqueKey:function(e){var t=this._dataAccessors.getters.key,i=t(e),n=t&&(i||0===i)&&(0,l.pt)(i);return n?i:this.getItemsCount()},_convertItemToNode:function(e,t){this._itemsCount++,!1!==e.visible&&this._visibleItemsCount++;var i={internalFields:{disabled:this._dataAccessors.getters.disabled(e,{defaultValue:!1}),expanded:this._dataAccessors.getters.expanded(e,{defaultValue:!1}),selected:this._dataAccessors.getters.selected(e,{defaultValue:!1}),key:this._getUniqueKey(e),parentKey:(0,l.$K)(t)?t:this._rootValue,item:this._makeObjectFromPrimitive(e),childrenKeys:[]}};return(0,a.l)(i,e),delete i.items,i},setChildrenKeys:function(){var e=this;(0,E.S6)(this._dataStructure,(function(t,i){if(i.internalFields.parentKey!==e._rootValue){var n=e.getParentNode(i);n&&n.internalFields.childrenKeys.push(i.internalFields.key)}}))},_makeObjectFromPrimitive:function(e){if((0,l.pt)(e)){var t=e;e={},this._dataAccessors.setters.key(e,t)}return e},_convertToPublicNode:function(e,t){if(!e)return null;var i={text:this._dataAccessors.getters.display(e),key:e.internalFields.key,selected:e.internalFields.selected,expanded:e.internalFields.expanded,disabled:e.internalFields.disabled,parent:t||null,itemData:e.internalFields.item,children:[],items:[]};return i.parent&&(i.parent.children.push(i),i.parent.items.push(i)),i},convertToPublicNodes:function(e,t){if(!e.length)return[];var i=this,n=[];return(0,E.S6)(e,(function(e,o){o=(0,l.pt)(o)?i._getByKey(o):o;var r=i._convertToPublicNode(o,t);r.children=i.convertToPublicNodes(o.internalFields.childrenKeys,r),n.push(r),o.internalFields.publicNode=r})),n},setDataAccessors:function(e){this._dataAccessors=e},_getByKey:function(e){return this._dataStructure[this.getIndexByKey(e)]||null},getParentNode:function(e){return this._getByKey(e.internalFields.parentKey)},getByKey:function(e,t){if(null===t||void 0===t)return null;var i=null,n=this,o=function(e,t){return(0,E.S6)(e,(function(e,o){var r=o.internalFields&&o.internalFields.key||n._dataAccessors.getters.key(o);if(r.toString()===t.toString())return i=o,!1})),i};return o(e,t)},getItemsCount:function(){return this._itemsCount},getVisibleItemsCount:function(){return this._visibleItemsCount},updateIndexByKey:function(){var e=this;this._indexByKey={},(0,E.S6)(this._dataStructure,(function(t,i){e._checkForDuplicateId(i.internalFields.key),e._indexByKey[i.internalFields.key]=t}))},updateChildrenKeys:function(){this._indexByKey={},this.removeChildrenKeys(),this.updateIndexByKey(),this.setChildrenKeys()},removeChildrenKeys:function(){this._indexByKey={},(0,E.S6)(this._dataStructure,(function(e,t){t.internalFields.childrenKeys=[]}))},getIndexByKey:function(e){return this._indexByKey[e]},createPlainStructure:function(e,t,i){return this._itemsCount=0,this._visibleItemsCount=0,this._rootValue=t,this._dataType=i,this._indexByKey={},this._convertItemsToNodes(e),this.setChildrenKeys(),this._dataStructure}}),Ek=Ik,Dk="expanded",kk="selected",Ok="disabled";vw.setEditorClass(f_);var Ak=P.Z.inherit({ctor:function(e){this.options={},(0,a.l)(this.options,this._defaultOptions(),e),this.options.dataConverter.setDataAccessors(this.options.dataAccessors),this._selectedNodesKeys=[],this._expandedNodesKeys=[],this._dataStructure=[],this._createInternalDataStructure(),this.getTreeNodes()},setOption:function(e,t){this.options[e]=t,"recursiveSelection"===e&&this._updateSelection()},_defaultOptions:function(){return{dataAccessors:void 0,items:[],multipleSelection:!0,recursiveSelection:!1,recursiveExpansion:!1,rootValue:0,searchValue:"",dataType:"tree",searchMode:"contains",dataConverter:new Ek,onNodeChanged:v.ZT,sort:null}},_createInternalDataStructure:function(){this._initialDataStructure=this.options.dataConverter.createPlainStructure(this.options.items,this.options.rootValue,this.options.dataType),this._dataStructure=this.options.searchValue.length?this.search(this.options.searchValue):this._initialDataStructure,this.options.dataConverter._dataStructure=this._dataStructure,this._updateSelection(),this._updateExpansion()},_updateSelection:function(){this.options.recursiveSelection&&(this._setChildrenSelection(),this._setParentSelection()),this._selectedNodesKeys=this._updateNodesKeysArray(kk)},_updateExpansion:function(e){this.options.recursiveExpansion&&(e?this._updateOneBranch(e):this._setParentExpansion()),this._expandedNodesKeys=this._updateNodesKeysArray(Dk)},_updateNodesKeysArray:function(e){var t=this,i=[];return(0,E.S6)(t._getDataBySelectionMode(),(function(n,o){t._isNodeVisible(o)&&o.internalFields[e]&&(e===Dk||t.options.multipleSelection?i.push(o.internalFields.key):(i.length&&t.toggleSelection(i[0],!1,!0),i=[o.internalFields.key]))})),i},_getDataBySelectionMode:function(){return this.options.multipleSelection?this.getData():this.getFullData()},_isNodeVisible:function(e){return!1!==e.internalFields.item.visible},_getByKey:function(e,t){return e===this._dataStructure?this.options.dataConverter._getByKey(t):this.options.dataConverter.getByKey(e,t)},_setChildrenSelection:function(){var e=this;(0,E.S6)(this._dataStructure,(function(t,i){if(i.internalFields.childrenKeys.length){var n=i.internalFields.selected;!0===n&&e._toggleChildrenSelection(i,n)}}))},_setParentSelection:function(){var e=this;(0,E.S6)(this._dataStructure,(function(t,i){var n=e.options.dataConverter.getParentNode(i);n&&i.internalFields.parentKey!==e.options.rootValue&&e._iterateParents(i,(function(t){var i=e._calculateSelectedState(t);e._setFieldState(t,kk,i)}))}))},_setParentExpansion:function(){var e=this;(0,E.S6)(this._dataStructure,(function(t,i){i.internalFields.expanded&&e._updateOneBranch(i.internalFields.key)}))},_updateOneBranch:function(e){var t=this,i=this.getNodeByKey(e);t._iterateParents(i,(function(e){t._setFieldState(e,Dk,!0)}))},_iterateChildren:function(e,t,i,n){if((0,l.mf)(i)){var o=this,r=e.internalFields.key;n=n||[],-1===n.indexOf(r)&&(n.push(r),(0,E.S6)(e.internalFields.childrenKeys,(function(e,r){var a=o.getNodeByKey(r);i(a),a.internalFields.childrenKeys.length&&t&&o._iterateChildren(a,t,i,n)})))}},_iterateParents:function(e,t,i){if(e.internalFields.parentKey!==this.options.rootValue&&(0,l.mf)(t)){i=i||[];var n=e.internalFields.key;if(-1===i.indexOf(n)){i.push(n);var o=this.options.dataConverter.getParentNode(e);o&&(t(o),o.internalFields.parentKey!==this.options.rootValue&&this._iterateParents(o,t,i))}}},_calculateSelectedState:function(e){for(var t=e.internalFields.childrenKeys.length,i=0,n=0,o=!1,r=0;r<=t-1;r++){var a=this.getNodeByKey(e.internalFields.childrenKeys[r]),s=!1===a.internalFields.item.visible,l=a.internalFields.selected;s?n++:l?i++:void 0===l&&(i+=.5)}return i&&(o=i===t-n||void 0),o},_toggleChildrenSelection:function(e,t){var i=this;this._iterateChildren(e,!0,(function(e){i._isNodeVisible(e)&&i._setFieldState(e,kk,t)}))},_setFieldState:function(e,t,i){e.internalFields[t]!==i&&(e.internalFields[t]=i,e.internalFields.publicNode&&(e.internalFields.publicNode[t]=i),this.options.dataAccessors.setters[t](e.internalFields.item,i),this.options.onNodeChanged(e))},_markChildren:function(e){var t=this;(0,E.S6)(e,(function(e,i){var n=t.getIndexByKey(i),o=t.getNodeByKey(i);t._dataStructure[n]=0,o.internalFields.childrenKeys.length&&t._markChildren(o.internalFields.childrenKeys)}))},_removeNode:function(e){var t=this.getNodeByKey(e);this._dataStructure[this.getIndexByKey(e)]=0,this._markChildren(t.internalFields.childrenKeys);var i=this,n=0,o=(0,a.l)([],this._dataStructure);(0,E.S6)(o,(function(e,t){t||(i._dataStructure.splice(e-n,1),n++)}))},_addNode:function(e){var t=this.options.dataConverter,i=t._convertItemToNode(e,this.options.dataAccessors.getters.parentKey(e));this._dataStructure=this._dataStructure.concat(i),this._initialDataStructure=this._initialDataStructure.concat(i),t._dataStructure=t._dataStructure.concat(i)},_updateFields:function(){this.options.dataConverter.updateChildrenKeys(),this._updateSelection(),this._updateExpansion()},getSelectedNodesKeys:function(){return this._selectedNodesKeys},getExpandedNodesKeys:function(){return this._expandedNodesKeys},getData:function(){return this._dataStructure},getFullData:function(){return this._initialDataStructure},getNodeByItem:function(e){var t=null;return(0,E.S6)(this._dataStructure,(function(i,n){if(n.internalFields.item===e)return t=n,!1})),t},getNodesByItems:function(e){var t=this,i=[];return(0,E.S6)(e,(function(e,n){var o=t.getNodeByItem(n);o&&i.push(o)})),i},getNodeByKey:function(e,t){return this._getByKey(t||this._getDataBySelectionMode(),e)},getTreeNodes:function(){return this.options.dataConverter.convertToPublicNodes(this.getRootNodes())},getItemsCount:function(){return this.options.dataConverter.getItemsCount()},getVisibleItemsCount:function(){return this.options.dataConverter.getVisibleItemsCount()},getPublicNode:function(e){return e.internalFields.publicNode},getRootNodes:function(){return this.getChildrenNodes(this.options.rootValue)},getChildrenNodes:function(e){return(0,pu.Z)(this._dataStructure).filter(["internalFields.parentKey",e]).toArray()},getIndexByKey:function(e){return this.options.dataConverter.getIndexByKey(e)},addItem:function(e){this._addNode(e),this._updateFields()},removeItem:function(e){this._removeNode(e),this._updateFields()},toggleSelection:function(e,t,i){var n=this._isSingleModeUnselect(t),o=this._getByKey(i||n?this._initialDataStructure:this._dataStructure,e);this._setFieldState(o,kk,t),this.options.recursiveSelection&&!i&&(t?this._setChildrenSelection():this._toggleChildrenSelection(o,t),this._setParentSelection()),this._selectedNodesKeys=this._updateNodesKeysArray(kk)},_isSingleModeUnselect:function(e){return!this.options.multipleSelection&&!e},toggleNodeDisabledState:function(e,t){var i=this.getNodeByKey(e);this._setFieldState(i,Ok,t)},toggleSelectAll:function(e){if((0,l.$K)(e)){var t=this,i=t._selectedNodesKeys[t._selectedNodesKeys.length-1],n=t._isSingleModeUnselect(e)?this._initialDataStructure:this._dataStructure;(0,E.S6)(n,(function(i,n){t._isNodeVisible(n)&&t._setFieldState(n,kk,e)})),t._selectedNodesKeys=t._updateNodesKeysArray(kk),!e&&t.options.selectionRequired&&t.toggleSelection(i,!0)}},isAllSelected:function(){return!!this.getSelectedNodesKeys().length&&(this.getSelectedNodesKeys().length===this.getVisibleItemsCount()||void 0)},toggleExpansion:function(e,t){var i=this.getNodeByKey(e);this._setFieldState(i,Dk,t),t&&this._updateExpansion(e),this._expandedNodesKeys=this._updateNodesKeysArray(Dk)},isFiltered:function(e){return!this.options.searchValue.length||!!this._filterDataStructure(this.options.searchValue,[e]).length},_createCriteria:function(e,t,i){var n=[];return Array.isArray(e)?((0,E.S6)(e,(function(e,o){n.push([o,i,t],"or")})),n.pop(),n):[e,i,t]},_filterDataStructure:function(e,t){var i=this.options.searchExpr||this.options.dataAccessors.getters.display,n=vw.getOperationBySearchMode(this.options.searchMode),o=this._createCriteria(i,e,n);return t=t||this._initialDataStructure,(0,pu.Z)(t).filter(o).toArray()},search:function(e){var t=this,i=this._filterDataStructure(e),n=this.options.dataConverter;return function e(i,o){var r=i.length;while(o<r){var a=i[o];if(a.internalFields.parentKey!==t.options.rootValue){var s=n.getParentNode(a);s?(s.internalFields.expanded||t._setFieldState(s,Dk,!0),i.includes(s)?o++:(i.splice(o,0,s),e(i,o))):(Xt.Z.log("W1007",a.internalFields.parentKey,a.internalFields.key),o++)}else o++}}(i,0),this.options.sort&&(i=hb.Z.queryByOptions((0,pu.Z)(i),{sort:this.options.sort}).toArray()),n._indexByKey={},(0,E.S6)(i,(function(e,t){t.internalFields.childrenKeys=[],n._indexByKey[t.internalFields.key]=e})),n._dataStructure=i,n.setChildrenKeys(),n._dataStructure}}),Pk=Ak,Mk="dx-state-disabled",Rk=Du.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{keyExpr:"id",displayExpr:"text",selectedExpr:"selected",disabledExpr:"disabled",itemsExpr:"items",hoverStateEnabled:!0,parentIdExpr:"parentId",expandedExpr:"expanded"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===w.Z.real().deviceType&&!w.Z.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this._initAccessors(),this._initDataAdapter(),this._initDynamicTemplates()},_initDataSource:function(){this.callBase(),this._dataSource&&this._dataSource.paginate(!1)},_initDataAdapter:function(){var e=this._createDataAdapterAccessors();this._dataAdapter=new Pk((0,a.l)({dataAccessors:{getters:e.getters,setters:e.setters},items:this.option("items")},this._getDataAdapterOptions()))},_getDataAdapterOptions:v.ZT,_initDynamicTemplates:function(){var e=this;this._templateManager.addDefaultTemplates({item:new Bd(function(t,i){t.html(i.html).append(this._getIconContainer(i)).append(this._getTextContainer(i)).append(this._getPopoutContainer(i)),e._addContentClasses(i,t.parent())}.bind(this),["text","html","items","icon"],this.option("integrationOptions.watchMethod"),{text:this._displayGetter,items:this._itemsGetter})})},_getIconContainer:function(e){return e.icon?Rs(e.icon):void 0},_getTextContainer:function(e){return(0,o.Z)("<span>").text(e.text)},_getPopoutContainer:v.ZT,_addContentClasses:v.ZT,_initAccessors:function(){var e=this;(0,E.S6)(this._getAccessors(),(function(t,i){e._compileAccessor(i)})),this._compileDisplayGetter()},_getAccessors:function(){return["key","selected","items","disabled","parentId","expanded"]},_getChildNodes:function(e){var t=this,i=[];return(0,E.S6)(e.internalFields.childrenKeys,(function(e,n){var o=t._dataAdapter.getNodeByKey(n);i.push(o)})),i},_hasChildren:function(e){return e&&e.internalFields.childrenKeys.length},_compileAccessor:function(e){var t="_"+e+"Getter",i="_"+e+"Setter",n=this.option(e+"Expr");return n?(0,l.mf)(n)?(this[i]=function(e,t){e[n()]=t},void(this[t]=function(e){return e[n()]})):(this[t]=(0,r.vb)(n),void(this[i]=(0,r.OM)(n))):(this[t]=v.ZT,void(this[i]=v.ZT))},_createDataAdapterAccessors:function(){var e=this,t={getters:{},setters:{}};return(0,E.S6)(this._getAccessors(),(function(i,n){var o="_"+n+"Getter",r="_"+n+"Setter",a="parentId"===n?"parentKey":n;t.getters[a]=e[o],t.setters[a]=e[r]})),t.getters.display=this._displayGetter?this._displayGetter:e=>e.text,t},_initMarkup:function(){this.callBase(),this._addWidgetClass()},_addWidgetClass:function(){this._focusTarget().addClass(this._widgetClass())},_widgetClass:v.ZT,_renderItemFrame:function(e,t){var i=this.callBase.apply(this,arguments);return i.toggleClass(Mk,!!this._disabledGetter(t)),i},_optionChanged:function(e){switch(e.name){case"displayExpr":case"keyExpr":this._initAccessors(),this._initDynamicTemplates(),this.repaint();break;case"itemsExpr":case"selectedExpr":case"disabledExpr":case"expandedExpr":case"parentIdExpr":this._initAccessors(),this._initDataAdapter(),this.repaint();break;case"items":this._initDataAdapter(),this.callBase(e);break;default:this.callBase(e)}}}),Bk=Rk;class Vk extends uu{_getPlainItems(){return(0,E.UI)(this._collectionWidget.option("items"),(function e(t){return t.items?[t].concat((0,E.UI)(t.items,e)):t}))}_stringifyItem(e){return JSON.stringify(e,((e,t)=>"template"===e?this._getTemplateString(t):t))}_getTemplateString(e){var t;return t="object"===typeof e?(0,o.Z)(e).text():e.toString(),t}}var Fk=Vk,Hk="dx-menu",Lk=Hk+"-no-icons",Nk="dx-menu-base",Zk=Hk+"-item",$k=Zk+"-content",Wk=Zk+"-selected",Kk=Zk+"-wrapper",zk=Hk+"-items-container",jk=Zk+"-expanded",Uk=Hk+"-separator",Gk=Hk+"-last-group-item",qk=Zk+"-has-text",Yk=Zk+"-has-icon",Xk=Zk+"-has-submenu",Jk=Zk+"-popout",Qk=Jk+"-container",eO=Zk+"-text",tO="single",iO={show:50,hide:300};class nO extends Bk{_getDefaultOptions(){return(0,a.l)(super._getDefaultOptions(),{items:[],cssClass:"",activeStateEnabled:!0,showSubmenuMode:{name:"onHover",delay:{show:50,hide:300}},animation:{show:{type:"fade",from:0,to:1,duration:100},hide:{type:"fade",from:1,to:0,duration:100}},selectByClick:!1,focusOnSelectedItem:!1,keyExpr:null,_itemAttributes:{role:"menuitem"},useInkRipple:!1})}_itemDataKey(){return"dxMenuItemDataKey"}_itemClass(){return Zk}_setAriaSelected(){}_selectedItemClass(){return Wk}_widgetClass(){return Nk}_focusTarget(){return this._itemContainer()}_clean(){this.option("focusedElement",null),super._clean()}_supportedKeys(){return(0,a.l)(super._supportedKeys(),{space:()=>{var e=(0,o.Z)(this.option("focusedElement"));e.length&&this._isSelectionEnabled()&&this.selectItem(e[0])},pageUp:v.ZT,pageDown:v.ZT})}_isSelectionEnabled(){return this.option("selectionMode")===tO}_init(){this._activeStateUnit=".".concat(Zk),super._init(),this._renderSelectedItem(),this._initActions()}_getTextContainer(e){var t=e.text,i=(0,o.Z)("<span>").addClass(eO),n=(0,l.PO)(e)?t:String(e);return t&&i.text(n)}_getPopoutContainer(e){var t,i=e.items;if(i&&i.length){var n=(0,o.Z)("<div>").addClass(Jk);t=(0,o.Z)("<span>").addClass(Qk).append(n)}return t}_getDataAdapterOptions(){return{rootValue:0,multipleSelection:!1,recursiveSelection:!1,recursiveExpansion:!1,searchValue:""}}_selectByItem(e){if(e){var t=this._dataAdapter.getNodeByItem(e);this._dataAdapter.toggleSelection(t.internalFields.key,!0)}}_renderSelectedItem(){var e=this._dataAdapter.getSelectedNodesKeys(),t=e.length&&e[0],i=this.option("selectedItem");if(t){var n=this._dataAdapter.getNodeByKey(t);!1!==n.selectable&&(i?i!==n.internalFields.item&&(this._dataAdapter.toggleSelection(t,!1),this._selectByItem(i)):this.option("selectedItem",n.internalFields.item))}else this._selectByItem(i)}_initActions(){}_initMarkup(){super._initMarkup(),this.option("useInkRipple")&&this._renderInkRipple()}_renderInkRipple(){this._inkRipple=el()}_toggleActiveState(e,t,i){if(super._toggleActiveState.apply(this,arguments),this._inkRipple){var n={element:e,event:i};t?this._inkRipple.showWave(n):this._inkRipple.hideWave(n)}}_getShowSubmenuMode(){var e=this.option("showSubmenuMode");return e=(0,l.Kn)(e)?e.name:e,this._isDesktopDevice()?e:"onClick"}_initSelectedItems(){}_isDesktopDevice(){return"desktop"===w.Z.real().deviceType}_initEditStrategy(){var e=Fk;this._editStrategy=new e(this)}_addCustomCssClass(e){e.addClass(this.option("cssClass"))}_itemWrapperSelector(){return".".concat(Kk)}_hoverStartHandler(e){var t=this._getItemElementByEventArgs(e);t&&!this._isItemDisabled(t)&&(e.stopPropagation(),"onHover"===this._getShowSubmenuMode()&&(clearTimeout(this._showSubmenusTimeout),this._showSubmenusTimeout=setTimeout(this._showSubmenu.bind(this,t),this._getSubmenuDelay("show"))))}_getAvailableItems(e){return super._getAvailableItems(e).filter((function(){return"hidden"!==(0,o.Z)(this).css("visibility")}))}_isItemDisabled(e){return this._disabledGetter(e.data(this._itemDataKey()))}_showSubmenu(e){this._addExpandedClass(e)}_addExpandedClass(e){(0,o.Z)(e).addClass(jk)}_getSubmenuDelay(e){var{delay:t}=this.option("showSubmenuMode");return(0,l.$K)(t)?(0,l.Kn)(t)?t[e]:t:iO[e]}_getItemElementByEventArgs(e){var t=(0,o.Z)(e.target);if(t.hasClass(this._itemClass())||t.get(0)===e.currentTarget)return t;while(!t.hasClass(this._itemClass()))if(t=t.parent(),t.hasClass("dx-submenu"))return null;return t}_hoverEndHandler(){clearTimeout(this._showSubmenusTimeout)}_hasSubmenu(e){return e&&e.internalFields.childrenKeys.length}_renderContentImpl(){this._renderItems(this._dataAdapter.getRootNodes())}_renderItems(e,t){if(e.length){this.hasIcons=!1;var i=this._renderContainer(this.$element(),t),n=-1,o=-1;(0,E.S6)(e,((e,t)=>{var r=!1!==t.visible;r&&n<0&&(n=e);var a=n<e&&(t.beginGroup||e===o);a&&(o=r?e:e+1),e===o&&n<e&&this._renderSeparator(i),this._renderItem(e,t,i)})),this.hasIcons||i.addClass(Lk)}}_renderContainer(e){var t=(0,o.Z)("<ul>");return this.setAria("role","none",t),t.appendTo(e).addClass(zk)}_createDOMElement(e){var t=(0,o.Z)("<li>");return this.setAria("role","none",t),t.appendTo(e).addClass(Kk)}_renderItem(e,t,i,n){var o=this.option("items"),r=n||this._createDOMElement(i);o[e+1]&&o[e+1].beginGroup&&r.addClass(Gk);var a=super._renderItem(e,t.internalFields.item,r);t.internalFields.item===this.option("selectedItem")&&a.addClass(Wk),a.attr("tabIndex",-1),this._hasSubmenu(t)&&this.setAria("haspopup","true",a)}_renderItemFrame(e,t,i){var n=i.children(".".concat(Zk));return n.length?n:super._renderItemFrame.apply(this,arguments)}_refreshItem(e,t){var i=this._dataAdapter.getNodeByItem(t),n=e.data(this._itemIndexKey()),o=e.closest("ul"),r=e.closest("li");this._renderItem(n,i,o,r)}_addContentClasses(e,t){var i=!!e.text&&!!e.text.length,n=!!e.icon,o=!!e.items&&!!e.items.length;t.toggleClass(qk,i),t.toggleClass(Yk,n),this.hasIcons||(this.hasIcons=n),t.toggleClass(Xk,o)}_getItemContent(e){var t=super._getItemContent(e);return t.length||(t=e.children(".".concat($k))),t}_postprocessRenderItem(e){var t=(0,o.Z)(e.itemElement),i=this._dataAdapter.getSelectedNodesKeys();if(i.length&&this._selectedGetter(e.itemData)&&this._isItemSelectable(e.itemData)){var n=this._dataAdapter.getNodeByItem(e.itemData);n.internalFields.key===i[0]?(t.addClass(this._selectedItemClass()),this._setAriaSelected(t,"true")):this._setAriaSelected(t,"false")}else this._setAriaSelected(t,"false")}_isItemSelectable(e){return!1!==e.selectable}_renderSeparator(e){(0,o.Z)("<li>").appendTo(e).addClass(Uk)}_itemClickHandler(e){if(!e._skipHandling){var t=this._createAction(this._updateSubmenuVisibilityOnClick.bind(this));this._itemDXEventHandler(e,"onItemClick",{},{afterExecute:t.bind(this)}),e._skipHandling=!0}}_updateSubmenuVisibilityOnClick(e){this._updateSelectedItemOnClick(e),"onClick"===this._getShowSubmenuMode()&&this._addExpandedClass(e.args[0].itemElement)}_updateSelectedItemOnClick(e){var t=e.args?e.args[0]:e;if(this._isItemSelectionAllowed(t.itemData)){var i=this._dataAdapter.getSelectedNodesKeys(),n=i.length&&this._dataAdapter.getNodeByKey(i[0]);n&&this._toggleItemSelection(n,!1),n&&n.internalFields.item===t.itemData?(this._fireSelectionChangeEvent(null,this.option("selectedItem")),this._setOptionWithoutOptionChange("selectedItem",null)):this.selectItem(t.itemData)}}_isItemSelectionAllowed(e){var t=this._isSelectionEnabled()&&this.option("selectByClick");return!this._isContainerEmpty()&&t&&this._isItemSelectable(e)&&!this._itemsGetter(e)}_isContainerEmpty(){return this._itemContainer().is(":empty")}_syncSelectionOptions(){return(0,v.C$)()}_optionChanged(e){switch(e.name){case"showSubmenuMode":break;case"selectedItem":var t=this._dataAdapter.getNodeByItem(e.value),i=this._dataAdapter.getSelectedNodesKeys()[0];if(t&&t.internalFields.key!==i){if(!1===t.selectable)break;i&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(i),!1),this._toggleItemSelection(t,!0),this._updateSelectedItems()}break;case"cssClass":case"position":case"selectByClick":case"animation":case"useInkRipple":this._invalidate();break;default:super._optionChanged(e)}}_toggleItemSelection(e,t){var i=this._getElementByItem(e.internalFields.item);i&&(0,o.Z)(i).toggleClass(Wk),this._dataAdapter.toggleSelection(e.internalFields.key,t)}_getElementByItem(e){var t;return(0,E.S6)(this._itemElements(),((i,n)=>(0,o.Z)(n).data(this._itemDataKey())!==e||(t=n,!1))),t}_updateSelectedItems(e,t){(e||t)&&this._fireSelectionChangeEvent(t,e)}_fireSelectionChangeEvent(e,t){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:[e],removedItems:[t]})}selectItem(e){var t=e.nodeType?this._getItemData(e):e,i=this._dataAdapter.getSelectedNodesKeys()[0],n=this.option("selectedItem"),o=this._dataAdapter.getNodeByItem(t);o.internalFields.key!==i&&(i&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(i),!1),this._toggleItemSelection(o,!0),this._updateSelectedItems(n,t),this._setOptionWithoutOptionChange("selectedItem",t))}unselectItem(e){var t=e.nodeType?this._getItemData(e):e,i=this._dataAdapter.getNodeByItem(t),n=this.option("selectedItem");i.internalFields.selected&&(this._toggleItemSelection(i,!1),this._updateSelectedItems(n,null),this._setOptionWithoutOptionChange("selectedItem",null))}}nO.ItemClass=yd;var oO=nO,rO="dx-menu",aO=rO+"-item",sO=aO+"-expanded",lO="dx-menu-phone-overlay",dO=rO+"-items-container",uO=aO+"-wrapper",cO="dx-submenu",hO="dx-context-menu",pO="dx-has-context-menu",fO="dx-state-disabled",gO="dx-state-focused",mO="dx-state-hover",_O="dx-overlay-content",vO="up",yO="down",CO="left",bO="right",xO="first",wO="last",TO=["onShowing","onShown","onSubmenuCreated","onHiding","onHidden","onPositioning","onLeftFirstItem","onLeftLastItem","onCloseRootSubmenu","onExpandLastSubmenu"],SO=[vO,yO,xO,wO],IO="dxcontextmenu",EO=(0,s.Jj)();class DO extends oO{getShowEvent(e){var t=null;return(0,l.Kn)(e)?null!==e.name&&(t=e.name||IO):t=e,t}getShowDelay(e){return(0,l.Kn)(e)&&e.delay}_getDefaultOptions(){return(0,a.l)(super._getDefaultOptions(),{showEvent:IO,hideOnOutsideClick:!0,position:{at:"top left",my:"top left"},onShowing:null,onShown:null,onSubmenuCreated:null,onHiding:null,onHidden:null,onPositioning:null,submenuDirection:"auto",visible:!1,target:void 0,onLeftFirstItem:null,onLeftLastItem:null,onCloseRootSubmenu:null,onExpandLastSubmenu:null})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:()=>!(0,s.Ym)(),options:{animation:null}}])}_setDeprecatedOptions(){super._setDeprecatedOptions(),(0,a.l)(this._deprecatedOptions,{closeOnOutsideClick:{since:"22.2",alias:"hideOnOutsideClick"}})}_initActions(){this._actions={},(0,E.S6)(TO,((e,t)=>{this._actions[t]=this._createActionByOption(t)||v.ZT}))}_setOptionsByReference(){super._setOptionsByReference(),(0,a.l)(this._optionsByReference,{animation:!0,selectedItem:!0})}_focusInHandler(){}_itemContainer(){return this._overlay?this._overlay.$content():(0,o.Z)()}_eventBindingTarget(){return this._itemContainer()}itemsContainer(){return this._overlay?this._overlay.$content():void 0}_supportedKeys(){return(0,a.l)(super._supportedKeys(),{space:()=>{var e=(0,o.Z)(this.option("focusedElement"));this.hide(),e.length&&this._isSelectionEnabled()&&this.selectItem(e[0])},escape:this.hide})}_getActiveItem(){var e=this._getAvailableItems(),t=e.filter(".".concat(gO)),i=e.filter(".".concat(mO)),n=i.closest(".".concat(dO));return n.find(".".concat(aO)).index(t)>=0?t:i.length?i:super._getActiveItem()}_moveFocus(e){var t,i=this._getItemsByLocation(e),n=this._getActiveItem(!0),r=this.itemsContainer().find(".".concat(mO)),a=(0,o.Z)(this.option("focusedElement")),s=!(!a.length&&!r.length);switch(e){case vO:t=s?this._prevItem(i):n,this._setFocusedElement(t),n.is(i.first())&&this._actions.onLeftFirstItem(n);break;case yO:t=s?this._nextItem(i):n,this._setFocusedElement(t),n.is(i.last())&&this._actions.onLeftLastItem(n);break;case bO:t=this.option("rtlEnabled")?this._hideSubmenuHandler():this._expandSubmenuHandler(i,e),this._setFocusedElement(t);break;case CO:t=this.option("rtlEnabled")?this._expandSubmenuHandler(i,e):this._hideSubmenuHandler(),this._setFocusedElement(t);break;case xO:t=i.first(),this._setFocusedElement(t);break;case wO:t=i.last(),this._setFocusedElement(t);break;default:return super._moveFocus(e)}}_setFocusedElement(e){e&&0!==e.length&&this.option("focusedElement",(0,se.u)(e))}_getItemsByLocation(e){var t,i=this._getActiveItem(!0);return SO.includes(e)&&(t=i.closest(".".concat(dO)).children().children()),t=this._getAvailableItems(t),t}_getAriaTarget(){return this.$element()}_refreshActiveDescendant(){if((0,l.$K)(this._overlay)){var e=this._overlay.$content();super._refreshActiveDescendant(e)}}_hideSubmenuHandler(){var e=this._getActiveItem(!0),t=e.parents(".".concat(sO)).first();return t.length?(this._hideSubmenusOnSameLevel(t),this._hideSubmenu(e.closest(".".concat(cO))),t):(this._actions.onCloseRootSubmenu(e),e)}_expandSubmenuHandler(e,t){var i=this._getActiveItem(!0),n=this._getItemData(i),o=this._dataAdapter.getNodeByItem(n),r=this._hasSubmenu(o),a=i.children(".".concat(cO));if(r&&!i.hasClass(fO))return a.length&&"hidden"!==a.css("visibility")||this._showSubmenu(i),this._nextItem(this._getItemsByLocation(t));this._actions.onExpandLastSubmenu(i)}_clean(){this._overlay&&(this._overlay.$element().remove(),this._overlay=null),this._detachShowContextMenuEvents(this._getTarget()),super._clean()}_initMarkup(){this.$element().addClass(pO),super._initMarkup()}_render(){super._render(),this._renderVisibility(this.option("visible")),this._addWidgetClass()}_renderContentImpl(){this._detachShowContextMenuEvents(this._getTarget()),this._attachShowContextMenuEvents()}_attachKeyboardEvents(){!this._keyboardListenerId&&this._focusTarget().length&&super._attachKeyboardEvents()}_renderContextMenuOverlay(){if(!this._overlay){var e=this._getOverlayOptions();this._overlay=this._createComponent((0,o.Z)("<div>").appendTo(this._$element),ki,e);var t=this._overlay.$content();t.addClass(hO),this._addCustomCssClass(t),this._addPlatformDependentClass(t),this._attachContextMenuEvent()}}preventShowingDefaultContextMenuAboveOverlay(){var e=this._itemContainer(),t=(0,R.V4)(Pd,this.NAME);re.Z.off(e,t,".".concat(cO)),re.Z.on(e,t,".".concat(cO),(i=>{i.stopPropagation(),i.preventDefault(),re.Z.off(e,t,".".concat(cO))}).bind(this))}_itemContextMenuHandler(e){super._itemContextMenuHandler(e),e.stopPropagation()}_addPlatformDependentClass(e){w.Z.current().phone&&e.addClass(lO)}_detachShowContextMenuEvents(e){var t=this.getShowEvent(this.option("showEvent"));if(t){var i=(0,R.V4)(t,this.NAME);this._showContextMenuEventHandler?re.Z.off(ke["default"].getDocument(),i,e,this._showContextMenuEventHandler):re.Z.off((0,o.Z)(e),i)}}_attachShowContextMenuEvents(){var e=this._getTarget(),t=this.getShowEvent(this.option("showEvent"));if(t){var i=(0,R.V4)(t,this.NAME),n=this._createAction((e=>{var t=this.getShowDelay(this.option("showEvent"));t?setTimeout((()=>this._show(e.event)),t):this._show(e.event)}),{validatingTargetName:"target"}),r=e=>n({event:e,target:(0,o.Z)(e.currentTarget)});n=this._createAction(n),(0,l.ZU)(e)||e.nodeType||(0,l.FJ)(e)?(this._showContextMenuEventHandler=void 0,re.Z.on(e,i,r)):(this._showContextMenuEventHandler=r,re.Z.on(ke["default"].getDocument(),i,e,this._showContextMenuEventHandler))}}_hoverEndHandler(e){super._hoverEndHandler(e),e.stopPropagation()}_renderDimensions(){}_renderContainer(e,t){var i=t||this._itemContainer();e=(0,o.Z)("<div>"),e.appendTo(i).addClass(cO).css("visibility",t?"hidden":"visible"),e.parent().hasClass(_O)||this._addCustomCssClass(e);var n=super._renderContainer(e);return t?n:this.option("width")?n.css("minWidth",this.option("width")):this.option("height")?n.css("minHeight",this.option("height")):n}_renderSubmenuItems(e,t){this._renderItems(this._getChildNodes(e),t),this._actions.onSubmenuCreated({itemElement:(0,se.u)(t),itemData:e.internalFields.item,submenuElement:(0,se.u)(t.children(".".concat(cO)))})}_getOverlayOptions(){var e=this.option("position"),t={focusStateEnabled:this.option("focusStateEnabled"),animation:this.option("animation"),innerOverlay:!0,hideOnOutsideClick:e=>this._hideOnOutsideClickHandler(e),propagateOutsideClick:!0,hideOnParentScroll:!0,deferRendering:!1,position:{at:e.at,my:e.my,of:this._getTarget(),collision:"flipfit"},shading:!1,showTitle:!1,height:"auto",width:"auto",onShown:this._overlayShownActionHandler.bind(this),onHiding:this._overlayHidingActionHandler.bind(this),onHidden:this._overlayHiddenActionHandler.bind(this),visualContainer:EO};return t}_overlayShownActionHandler(e){this._actions.onShown(e)}_overlayHidingActionHandler(e){this._actions.onHiding(e),e.cancel||(this._hideAllShownSubmenus(),this._setOptionWithoutOptionChange("visible",!1))}_overlayHiddenActionHandler(e){this._actions.onHidden(e)}_shouldHideOnOutsideClick(e){var{closeOnOutsideClick:t,hideOnOutsideClick:i}=this.option();return(0,l.mf)(i)?i(e):(0,l.mf)(t)?t(e):i||t}_hideOnOutsideClickHandler(e){if(!this._shouldHideOnOutsideClick(e))return!1;if(ke["default"].isDocument(e.target))return!0;var t=this._getActiveItemsContainer(e.target),i=this._getItemsContainers(),n=this._searchActiveItem(e.target),o=this.$element().parents(".".concat(aO)),r=n[0]===o[0]&&n.length&&o.length,a=this._isIncludeOverlay(t,i)&&n.length;return!a&&!r||("onClick"===this._getShowSubmenuMode()&&this._hideAllShownChildSubmenus(n),!1)}_getActiveItemsContainer(e){return(0,o.Z)(e).closest(".".concat(dO))}_getItemsContainers(){return this._overlay.$content().find(".".concat(dO))}_searchActiveItem(e){return(0,o.Z)(e).closest(".".concat(aO)).eq(0)}_isIncludeOverlay(e,t){var i=!1;return(0,E.S6)(t,((t,n)=>{e.is(n)&&!i&&(i=!0)})),i}_hideAllShownChildSubmenus(e){var t=e.find(".".concat(cO)),i=(0,a.l)([],this._shownSubmenus);t.length>0&&(0,E.S6)(i,((t,i)=>{var n=this._searchActiveItem(i.context).parent();n.parent().is(e.parent().parent())&&!n.is(e.parent())&&this._hideSubmenu(i)}))}_showSubmenu(e){var t=this._dataAdapter.getNodeByItem(this._getItemData(e));if(this._hideSubmenusOnSameLevel(e),this._hasSubmenu(t)){var i=e.children(".".concat(cO)),n=i.length;super._showSubmenu(e),n||this._renderSubmenuItems(t,e),this._isSubmenuVisible(i)||this._drawSubmenu(e)}}_hideSubmenusOnSameLevel(e){var t=e.parent(".".concat(uO)).siblings().find(".".concat(sO));t.length&&(t.removeClass(sO),this._hideSubmenu(t.find(".".concat(cO))))}_hideSubmenuGroup(e){this._isSubmenuVisible(e)&&this._hideSubmenuCore(e)}_isSubmenuVisible(e){return"visible"===e.css("visibility")}_drawSubmenu(e){var t=this.option("animation")?this.option("animation").show:{},i=e.children(".".concat(cO)),n=this._getSubmenuPosition(e);this._overlay&&this._overlay.option("visible")&&((0,l.$K)(this._shownSubmenus)||(this._shownSubmenus=[]),this._shownSubmenus.includes(i)||this._shownSubmenus.push(i),t&&Ut.stop(i),it.setup(i,n),t&&((0,l.PO)(t.to)&&(t.to.position=n),this._animate(i,t)),i.css("visibility","visible"))}_animate(e,t){Ut.animate(e,t)}_getSubmenuPosition(e){var t=this.option("submenuDirection").toLowerCase(),i=e.parent(".".concat(uO)),n={collision:"flip",of:i,offset:{h:0,v:-1}};switch(t){case"left":n.at="left top",n.my="right top";break;case"right":n.at="right top",n.my="left top";break;default:this.option("rtlEnabled")?(n.at="left top",n.my="right top"):(n.at="right top",n.my="left top")}return n}_updateSubmenuVisibilityOnClick(e){if(e.args.length){var t=e.args[0].itemData,i=this._dataAdapter.getNodeByItem(t);if(i){var n=(0,o.Z)(e.args[0].itemElement),r=n.find(".".concat(cO)),a=this._hasSubmenu(i)&&!r.length;if(a&&(this._renderSubmenuItems(i,n),r=n.find(".".concat(cO))),n.context!==r.context||"visible"!==r.css("visibility")){this._updateSelectedItemOnClick(e);var s=t&&!1===t.closeMenuOnClick;if(t&&!t.disabled&&!s)if(0===r.length){var l=(0,o.Z)(n.parents(".".concat(cO))[0]);this._hideSubmenu(l),!e.canceled&&this._overlay&&this._overlay.option("visible")&&this.option("visible",!1)}else this._shownSubmenus&&this._shownSubmenus.length>0&&this._shownSubmenus[0].is(r)&&this._hideSubmenu(r),this._showSubmenu(n)}}}}_hideSubmenu(e){var t=(0,a.l)([],this._shownSubmenus);(0,E.S6)(t,((t,i)=>{(e.is(i)||(0,M.r3)(e[0],i[0]))&&(i.parent().removeClass(sO),this._hideSubmenuCore(i))}))}_hideSubmenuCore(e){var t=this._shownSubmenus.indexOf(e),i=this.option("animation")?this.option("animation").hide:null;t>=0&&this._shownSubmenus.splice(t,1),this._stopAnimate(e),i&&this._animate(e,i),e.css("visibility","hidden")}_stopAnimate(e){Ut.stop(e,!0)}_hideAllShownSubmenus(){var e=(0,a.l)([],this._shownSubmenus),t=this._overlay.$content().find(".".concat(sO));t.removeClass(sO),(0,E.S6)(e,((e,t)=>{this._hideSubmenu(t)}))}_visibilityChanged(e){e&&this._renderContentImpl()}_optionChanged(e){if(TO.includes(e.name))this._initActions();else switch(e.name){case"visible":this._renderVisibility(e.value);break;case"showEvent":case"position":case"submenuDirection":this._invalidate();break;case"target":e.previousValue&&this._detachShowContextMenuEvents(e.previousValue),this._invalidate();break;case"closeOnOutsideClick":case"hideOnOutsideClick":break;default:super._optionChanged(e)}}_renderVisibility(e){return e?this._show():this._hide()}_toggleVisibility(){}_show(e){var t={jQEvent:e},i=(new ot.BH).reject().promise();if(this._actions.onShowing(t),t.cancel)return i;var n,o=this._positionContextMenu(e);o&&(this._overlay||(this._renderContextMenuOverlay(),this._overlay.$content().addClass(this._widgetClass()),this._renderFocusState(),this._attachHoverEvents(),this._attachClickEvent(),this._renderItems(this._dataAdapter.getRootNodes())),this._setOptionWithoutOptionChange("visible",!0),this._overlay.option("position",o),i=this._overlay.show(),e&&e.stopPropagation(),this._setAriaAttributes(),(null===e||void 0===e||null===(n=e.originalEvent)||void 0===n?void 0:n.type)===Sd.name&&this.preventShowingDefaultContextMenuAboveOverlay());return i}_setAriaAttributes(){this._overlayContentId="dx-".concat(new Li.Z),this.setAria("owns",this._overlayContentId),this.setAria({id:this._overlayContentId,role:"menu"},this._overlay.$content())}_cleanAriaAttributes(){this._overlay&&this.setAria("id",null,this._overlay.$content()),this.setAria("owns",void 0)}_getTarget(){return this.option("target")||this.option("position").of||(0,o.Z)(ke["default"].getDocument())}_getContextMenuPosition(){return(0,a.l)({},this.option("position"),{of:this._getTarget()})}_positionContextMenu(e){var t=this._getContextMenuPosition(),i=this._isInitialOptionValue("position"),n=this._createActionByOption("onPositioning");e&&e.preventDefault&&i&&(t.of=e);var o={position:t,event:e};return n(o),o.cancel?t=null:o.event&&(o.event.cancel=!0,e.preventDefault()),t}_refresh(){if((0,s.Ym)())if(this._overlay){var e=this._overlay.option("position");super._refresh(),this._overlay&&this._overlay.option("position",e)}else super._refresh();else super._refresh()}_hide(){var e;return this._overlay&&(e=this._overlay.hide(),this._setOptionWithoutOptionChange("visible",!1)),this._cleanAriaAttributes(),this.option("focusedElement",null),e||(new ot.BH).reject().promise()}toggle(e){var t=this.option("visible");return e=void 0===e?!t:e,this._renderVisibility(e)}show(){return this.toggle(!0)}hide(){return this.toggle(!1)}}(0,C.Z)("dxContextMenu",DO);var kO=DO,OO=kO,AO="dx-gantt-toolbar-separator",PO={createTask:0,createSubTask:1,removeTask:2,removeDependency:3,taskInformation:4,taskAddContextItem:5,undo:6,redo:7,zoomIn:8,zoomOut:9,fullScreen:10,collapseAll:11,expandAll:12,resourceManager:13,toggleResources:14,toggleDependencies:15};class MO{constructor(e,t){this._element=e,this._owner=t,this._items=[],this._createControl()}createItems(e){this._cache=null,this._items=this._createItemsCore(e),this._menu.option("items",this._items)}_createItemsCore(e){return e.map((e=>{var t;return t="string"===typeof e?this._createItemByText(e):e.name?(0,a.l)(this._createItemByText(e.name),e):(0,a.l)(this._getDefaultItemOptions(),e),e.items&&(t.items=this._createItemsCore(e.items)),t}))}_createItemByText(e){switch(e.toLowerCase()){case"separator":return this._createSeparator();case"undo":return this._createDefaultItem(PO.undo,y.Z.format("dxGantt-undo"),this._getIcon("undo"));case"redo":return this._createDefaultItem(PO.redo,y.Z.format("dxGantt-redo"),this._getIcon("redo"));case"expandall":return this._createDefaultItem(PO.expandAll,y.Z.format("dxGantt-expandAll"),this._getIcon("expand"));case"collapseall":return this._createDefaultItem(PO.collapseAll,y.Z.format("dxGantt-collapseAll"),this._getIcon("collapse"));case"addtask":return this._createDefaultItem(PO.createTask,y.Z.format("dxGantt-addNewTask"),this._getIcon("add"));case"addsubtask":return this._createDefaultItem(PO.createSubTask,y.Z.format("dxGantt-contextMenuNewSubtask"),this._getIcon("add-sub-task"));case"deletetask":return this._createDefaultItem(PO.removeTask,y.Z.format("dxGantt-deleteSelectedTask"),this._getIcon("delete"));case"deletedependency":return this._createDefaultItem(PO.removeDependency,y.Z.format("dxGantt-contextMenuDeleteDependency"),this._getIcon("delete-dependency"));case"zoomin":return this._createDefaultItem(PO.zoomIn,y.Z.format("dxGantt-zoomIn"),this._getIcon("zoom-in"));case"zoomout":return this._createDefaultItem(PO.zoomOut,y.Z.format("dxGantt-zoomOut"),this._getIcon("zoom-out"));case"fullscreen":return this._createDefaultItem(PO.fullScreen,y.Z.format("dxGantt-fullScreen"),this._getIcon("full-screen"));case"taskdetails":return this._createDefaultItem(PO.taskInformation,y.Z.format("dxGantt-dialogTaskDetailsTitle")+"...",this._getIcon("task-details"));case"resourcemanager":return this._createDefaultItem(PO.resourceManager,y.Z.format("dxGantt-dialogResourceManagerTitle"),this._getIcon("resource-manager"));case"showresources":return this._createDefaultItem(PO.toggleResources,y.Z.format("dxGantt-showResources"),this._getIcon("toggle-resources"));case"showdependencies":return this._createDefaultItem(PO.toggleDependencies,y.Z.format("dxGantt-showDependencies"),this._getIcon("toggle-dependencies"));default:return(0,a.l)(this._getDefaultItemOptions(),{options:{text:e}})}}_getDefaultItemOptions(){return{}}_getItemsCache(){return this._cache||(this._cache={},this._fillCache(this._items)),this._cache}_fillCache(e){e.forEach((e=>{var t=e.commandId;void 0!==t&&(this._cache[t]||(this._cache[t]=[]),this._cache[t].push(e)),e.items&&this._fillCache(e.items)}))}_getIcon(e){return"dx-gantt-i dx-gantt-i-"+e}getCommandKeys(){var e=this._getItemsCache(),t=[];for(var i in e)t.push(parseInt(i));return t}setItemEnabled(e,t){var i=this._getItemsCache();i[e].forEach((e=>{e.disabled=!t}))}setItemVisible(e,t){var i=this._getItemsCache();i[e].forEach((e=>{e.visible=t}))}setItemValue(e,t){}setEnabled(e){this._menu.option("disabled",!e)}updateItemsList(){}isVisible(){return!0}isContextMenu(){return!1}completeUpdate(){}}class RO extends MO{_createControl(){this._menu=this._owner._createComponent(this._element,Sk,{onItemClick:e=>{var t=e.itemData.commandId;void 0!==t&&this._executeCommand(e.itemData.commandId)}})}_executeCommand(e){switch(e){case PO.toggleResources:this._owner.option("showResources",!this._owner.option("showResources"));break;case PO.toggleDependencies:this._owner.option("showDependencies",!this._owner.option("showDependencies"));break;default:this._owner._executeCoreCommand(e)}}_createDefaultItem(e,t,i){return{commandId:e,disabled:!0,widget:"dxButton",location:"before",options:{icon:i,stylingMode:"text",hint:t}}}_createSeparator(){return{location:"before",template:(e,t,i)=>{(0,o.Z)(i).addClass(AO)}}}_getDefaultItemOptions(){return{location:"before",widget:"dxButton"}}completeUpdate(){this._menu.option("items",this._items)}}class BO extends MO{_createControl(){this._menu=this._owner._createComponent(this._element,OO,{showEvent:void 0,onItemClick:e=>{void 0!==e.itemData.commandId?this._owner._executeCoreCommand(e.itemData.commandId):void 0!==e.itemData.name&&this._owner._actionsManager.raiseCustomCommand(e.itemData.name)}})}createItems(e){e&&0!==e.length||(e=this._getDefaultItems()),super.createItems(e)}_getDefaultItems(){return[{text:y.Z.format("dxGantt-dialogButtonAdd"),commandId:PO.taskAddContextItem,icon:this._getIcon("add"),items:[{text:y.Z.format("dxGantt-contextMenuNewTask"),commandId:PO.createTask,icon:this._getIcon("add-task")},{text:y.Z.format("dxGantt-contextMenuNewSubtask"),commandId:PO.createSubTask,icon:this._getIcon("add-sub-task")}]},{text:y.Z.format("dxGantt-dialogTaskDetailsTitle")+"...",commandId:PO.taskInformation,icon:this._getIcon("task-details")},{text:y.Z.format("dxGantt-contextMenuDeleteTask"),commandId:PO.removeTask,icon:this._getIcon("delete")},{text:y.Z.format("dxGantt-contextMenuDeleteDependency"),commandId:PO.removeDependency,icon:this._getIcon("delete-dependency")}]}_createDefaultItem(e,t,i){return{commandId:e,text:t,icon:i}}show(e,t){this._menu.option("items",t||this._items),this._menu.option("position.offset",{x:e.x,y:e.y}),this._menu.option("position.collision","fit"),this._menu.show()}hide(){this._menu.hide()}isContextMenu(){return!0}}var VO="dxDataGrid",FO=P.Z.inherit({_endUpdateCore:function(){},ctor:function(e){var t=this;t._updateLockCount=0,t.component=e,t._actions={},t._actionConfigs={},(0,E.S6)(this.callbackNames()||[],(function(e,i){var n=t.callbackFlags(i)||{};n.unique=!0,n.syncStrategy=!0,t[this]=(0,Sc["default"])(n)}))},init:function(){},callbackNames:function(){},callbackFlags:function(){},publicMethods:function(){},beginUpdate:function(){this._updateLockCount++},endUpdate:function(){this._updateLockCount>0&&(this._updateLockCount--,this._updateLockCount||this._endUpdateCore())},option:function(e){var t=this.component,i=t._optionCache;return 1===arguments.length&&i?(e in i||(i[e]=t.option(e)),i[e]):t.option.apply(t,arguments)},_silentOption:function(e,t){var i=this.component,n=i._optionCache;return n&&(n[e]=t),i._setOptionWithoutOptionChange(e,t)},localize:function(e){var t=this.component._optionCache;return t?(e in t||(t[e]=y.Z.format(e)),t[e]):y.Z.format(e)},on:function(){return this.component.on.apply(this.component,arguments)},off:function(){return this.component.off.apply(this.component,arguments)},optionChanged:function(e){e.name in this._actions&&(this.createAction(e.name,this._actionConfigs[e.name]),e.handled=!0)},getAction:function(e){return this._actions[e]},setAria:function(e,t,i){var n=i.get(0),o="role"!==e&&"id"!==e?"aria-":"";n.setAttribute?n.setAttribute(o+e,t):i.attr(o+e,t)},_createComponent:function(){return this.component._createComponent.apply(this.component,arguments)},getController:function(e){return this.component._controllers[e]},createAction:function(e,t){if((0,l.mf)(e)){var i=this.component._createAction(e.bind(this),t);return function(e){i({event:e})}}this._actions[e]=this.component._createActionByOption(e,t),this._actionConfigs[e]=t},executeAction:function(e,t){var i=this._actions[e];return i&&i(t)},dispose:function(){var e=this;(0,E.S6)(e.callbackNames()||[],(function(){e[this].empty()}))},addWidgetPrefix:function(e){var t=this.component.NAME;return"dx-"+t.slice(2).toLowerCase()+(e?"-"+e:"")},getWidgetContainerClass:function(){var e=this.component.NAME===VO?null:"container";return this.addWidgetPrefix(e)},elementIsInsideGrid:function(e){var t=e.closest("."+this.getWidgetContainerClass()).parent();return t.is(this.component.$element())}}),HO=FO,LO=HO.inherit({getView:function(e){return this.component._views[e]},getViews:function(){return this.component._views}}),NO=FO.inherit({_isReady:function(){return this.component.isReady()},_endUpdateCore:function(){this.callBase(),!this._isReady()&&this._requireReady&&(this._requireRender=!1,this.component._requireResize=!1),this._requireRender&&(this._requireRender=!1,this.render(this._$parent))},_invalidate:function(e,t){this._requireRender=!0,this.component._requireResize=(0,s.Ym)()&&(this.component._requireResize||e),this._requireReady=this._requireReady||t},_renderCore:function(){},_resizeCore:function(){},_parentElement:function(){return this._$parent},ctor:function(e){this.callBase(e),this.renderCompleted=(0,Sc["default"])(),this.resizeCompleted=(0,Sc["default"])()},element:function(){return this._$element},getElementHeight:function(){var e=this.element();if(!e)return 0;var t=parseFloat(e.css("marginTop"))||0,i=parseFloat(e.css("marginBottom"))||0,n=e.get(0).offsetHeight;return n+t+i},isVisible:function(){return!0},getTemplate:function(e){return this.component._getTemplate(e)},render:function(e,t){var i=this._$element,n=this.isVisible();(i||e)&&(this._requireReady=!1,i||(i=this._$element=(0,o.Z)("<div>").appendTo(e),this._$parent=e),i.toggleClass("dx-hidden",!n),n&&(this.component._optionCache={},this._renderCore(t),this.component._optionCache=void 0,this.renderCompleted.fire(t)))},resize:function(){this.isResizing=!0,this._resizeCore(),this.resizeCompleted.fire(),this.isResizing=!1},focus:function(e){this.element().get(0).focus({preventScroll:e})}}),ZO=1e6,$O=function(e,t){var i=t.modules,n=t.modulesOrder,o=t.controllerTypes||{},r=t.viewTypes||{};t.controllerTypes||(n&&i.sort((function(e,t){var i=n.indexOf(e.name),o=n.indexOf(t.name);return i<0&&(i=ZO),o<0&&(o=ZO),i-o})),(0,E.S6)(i,(function(){var e=this.controllers,t=this.name,i=this.views;e&&(0,E.S6)(e,(function(e,i){if(o[e])throw Xt.Z.Error("E1001",t,e);if(!(i&&i.subclassOf&&i.subclassOf(HO)))throw i.subclassOf(HO),Xt.Z.Error("E1002",t,e);o[e]=i})),i&&(0,E.S6)(i,(function(e,i){if(r[e])throw Xt.Z.Error("E1003",t,e);if(!(i&&i.subclassOf&&i.subclassOf(NO)))throw Xt.Z.Error("E1004",t,e);r[e]=i}))})),(0,E.S6)(i,(function(){var e=this.extenders;e&&(e.controllers&&(0,E.S6)(e.controllers,(function(e,t){o[e]&&(o[e]=o[e].inherit(t))})),e.views&&(0,E.S6)(e.views,(function(e,t){r[e]&&(r[e]=r[e].inherit(t))})))})),t.controllerTypes=o,t.viewTypes=r);var a=function(t){var i={};return(0,E.S6)(t,(function(t,n){var o=new n(e);o.name=t,function(e,t,i){var n=i.publicMethods();n&&(0,E.S6)(n,(function(n,o){if(!i[o])throw Xt.Z.Error("E1006",t,o);if(e[o])throw Xt.Z.Error("E1005",o);e[o]=function(){return i[o].apply(i,arguments)}}))}(e,t,o),i[t]=o})),i};e._controllers=a(o),e._views=a(r)},WO=function(e,t,i){i=i||[],e._controllers&&(0,E.S6)(e._controllers,(function(){this[t]&&this[t].apply(this,i)})),e._views&&(0,E.S6)(e._views,(function(){this[t]&&this[t].apply(this,i)}))},KO={modules:[],View:NO,ViewController:LO,Controller:HO,registerModule:function(e,t){for(var i=this.modules,n=0;n<i.length;n++)if(i[n].name===e)return;t.name=e,i.push(t),delete this.controllerTypes,delete this.viewTypes},registerModulesOrder:function(e){this.modulesOrder=e},unregisterModule:function(e){this.modules=(0,v.h3)(this.modules,(function(t){return t.name!==e})),delete this.controllerTypes,delete this.viewTypes},processModules:$O,callModuleItemsMethod:WO},zO=(0,a.l)({},KO,{modules:[],foreachNodes:function(e,t,i){for(var n=0;n<e.length;n++)!1!==t(e[n])&&(i||e[n].hasChildren)&&e[n].children.length&&this.foreachNodes(e[n].children,t,i)}}),jO="dxdblclick",UO="dxDblClick",GO=(0,R.V4)(A.u,UO),qO=300,YO=P.Z.inherit({ctor:function(){this._handlerCount=0,this._forgetLastClick()},_forgetLastClick:function(){this._firstClickTarget=null,this._lastClickTimeStamp=-qO},add:function(){this._handlerCount<=0&&re.Z.on(ke["default"].getDocument(),GO,this._clickHandler.bind(this)),this._handlerCount++},_clickHandler:function(e){var t=e.timeStamp||Date.now(),i=t-this._lastClickTimeStamp,n=i<0,o=!n&&i<qO;o?((0,R.BX)({type:jO,target:(0,M.Ls)(this._firstClickTarget,e.target),originalEvent:e}),this._forgetLastClick()):(this._firstClickTarget=e.target,this._lastClickTimeStamp=t)},remove:function(){this._handlerCount--,this._handlerCount<=0&&(this._forgetLastClick(),re.Z.off(ke["default"].getDocument(),GO))}});(0,Id.Z)(jO,new YO);var XO="dx-column-indicators",JO="dx-group-panel-item",QO={_applyColumnState:function(e){var t,i=this.option("rtlEnabled"),n=this._getColumnAlignment(e.column.alignment,i),r=(0,a.l)(!0,{columnAlignment:n},e),s=r.rootElement.hasClass(JO),l=this._createIndicatorContainer(r,s),d=(0,o.Z)("<span>").addClass(this._getIndicatorClassName(e.name)),u=null===(t=this.component)||void 0===t?void 0:t.getController("columns"),c=(null===u||void 0===u?void 0:u.getHeaderContentAlignment(n))||n;return r.container=l,r.indicator=d,this._renderIndicator(r),l[!s&&e.showColumnLines||"left"!==c?"prependTo":"appendTo"](e.rootElement),d},_getIndicatorClassName:v.ZT,_getColumnAlignment:function(e,t){return t=t||this.option("rtlEnabled"),e&&"center"!==e?e:Ae(t)},_createIndicatorContainer:function(e,t){var i=this._getIndicatorContainer(e.rootElement),n="left"===e.columnAlignment?"right":"left";return i.length||(i=(0,o.Z)("<div>").addClass(XO)),this.setAria("role","presentation",i),i.css("float",e.showColumnLines&&!t?n:null)},_getIndicatorContainer:function(e){return e&&e.find("."+XO)},_getIndicatorElements:function(e){var t=this._getIndicatorContainer(e);return t&&t.children()},_renderIndicator:function(e){var t=e.container,i=e.indicator;t&&i&&t.append(i)},_updateIndicators:function(e){var t,i=this.getColumns(),n=this.getColumnElements();if(n&&i.length===n.length)for(var o=0;o<i.length;o++){t=n.eq(o),this._updateIndicator(t,i[o],e);var r=t.parent().data("options");r&&r.cells&&(r.cells[t.index()].column=i[o])}},_updateIndicator:function(e,t,i){if(!t.command)return this._applyColumnState({name:i,rootElement:e,column:t,showColumnLines:this.option("showColumnLines")})}},eA="scroll-container",tA="scrollable-simulated",iA="group-space",nA="content",oA="table",rA="table-fixed",aA="content-fixed",sA="dx-row",lA="dx-group-row",dA="dx-group-cell",uA="dx-master-detail-row",cA="filter-row",hA="dx-error-row",pA="cell-updated-animation",fA="0.0001px",gA="dxCellHintVisible",mA="dx-field-item-content",_A={render:function(e){e.container.append(e.content)}},vA=function(e,t){var i,n,r;function a(e){return setTimeout((function(){i=n=null}),e)}re.Z.on(t,"touchstart touchend",".dx-row",(function(e){clearTimeout(r),"touchstart"===e.type?(i=e.target,n=e.currentTarget,r=a(1e3)):r=a()})),re.Z.on(t,[A.u,jO,B.Z.down].join(" "),".dx-row",e.createAction((function(t){var r=t.event;i&&(r.target=i,r.currentTarget=n),(0,o.Z)(r.target).closest("a").length||(t.rowIndex=e.getRowIndex(r.currentTarget),t.rowIndex>=0&&(t.rowElement=(0,se.u)((0,o.Z)(r.currentTarget)),t.columns=e.getColumns(),r.type===B.Z.down?e._rowPointerDown(t):r.type===A.u?e._rowClick(t):e._rowDblClick(t)))})))},yA=function(e){return"auto"===e?"":(0,l.kE)(e)?e+"px":e},CA=function(e,t,i){e.style.width=e.style.maxWidth="auto"===t.width?"":i},bA=function(e,t){if(e&&t){var i,n=e.attributes,o=t.attributes;for(i=0;i<n.length;i++){var r=n[i].nodeName;t.hasAttribute(r)||e.removeAttribute(r)}for(i=0;i<o.length;i++)e.setAttribute(o[i].nodeName,o[i].nodeValue)}},xA=KO.View.inherit(QO).inherit({_createScrollableOptions:function(){var e=this.option("scrolling"),t=this.option("scrolling.useNative"),i=(0,a.l)({},e,{direction:"both",bounceEnabled:!1,useKeyboard:!1});return void 0===t&&(t=!0),"auto"===t?(delete i.useNative,delete i.useSimulatedScrollbar):(i.useNative=!!t,i.useSimulatedScrollbar=!t),i},_updateCell:function(e,t){t.rowType&&this._cellPrepared(e,t)},_createCell:function(e){var t=e.column,i=t.alignment||Ae(this.option("rtlEnabled")),n=ke["default"].createElement("td");n.style.textAlign=i;var r=(0,o.Z)(n);return"data"===e.rowType&&t.headerId&&!t.type&&this.component.option("showColumnHeaders")&&this.setAria("describedby",t.headerId,r),t.cssClass&&r.addClass(t.cssClass),"expand"===t.command&&(r.addClass(t.cssClass),r.addClass(this.addWidgetPrefix(iA))),t.colspan>1?r.attr("colSpan",t.colspan):!t.isBand&&"auto"!==t.visibleWidth&&this.option("columnAutoWidth")&&((t.width||t.minWidth)&&(n.style.minWidth=yA(t.minWidth||t.width)),t.width&&CA(n,t,yA(t.width))),r},_createRow:function(e,t){t=t||"tr";var i=(0,o.Z)("<".concat(t,">")).addClass(sA);return this.setAria("role","row",i),i},_isAltRow:function(e){return e&&e.dataIndex%2===1},_createTable:function(e,t){var i=this,n=(0,o.Z)("<table>").addClass(i.addWidgetPrefix(oA)).addClass(i.addWidgetPrefix(rA));if(e&&!t?(n.append(i._createColGroup(e)),Me.Z.safari&&n.append((0,o.Z)("<thead>").append("<tr>")),i.setAria("role","presentation",n)):i.setAria("hidden",!0,n),this.setAria("role","presentation",(0,o.Z)("<tbody>").appendTo(n)),t)return n;Me.Z.mozilla&&re.Z.on(n,"mousedown","td",(function(e){e.ctrlKey&&e.preventDefault()})),i.option("cellHintEnabled")&&re.Z.on(n,"mousemove",".dx-row > td",this.createAction((function(e){var t=e.event,n=(0,o.Z)(t.target),r=(0,o.Z)(t.currentTarget),a=r.parent(),s=i._columnsController.getVisibleColumns(),d=a.data("options"),u=r.index(),c=d&&d.cells&&d.cells[u],h=c?c.column:s[u],p=a.hasClass("dx-header-row"),f=a.hasClass("dx-data-row"),g=a.hasClass(uA),m=a.hasClass(lA),_=a.hasClass(i.addWidgetPrefix(cA)),v=f&&(!h||h.cellTemplate),y=f&&c&&(d.isEditing||c.isEditing||(null===h||void 0===h?void 0:h.showEditorAlways)),C=p&&(!h||h.headerCellTemplate),b=m&&(!h||h.groupIndex&&h.groupCellTemplate),x=!g&&!_&&!y&&!v&&!C&&!b;if(x){n.data(gA)&&(n.removeAttr("title"),n.data(gA,!1));var w=n[0].scrollWidth-n[0].clientWidth;w>0&&!(0,l.$K)(n.attr("title"))&&(n.attr("title",n.text()),n.data(gA,!0))}})));var r=function(e){var t=(0,o.Z)(e.currentTarget),n=(0,o.Z)(e.target).closest("."+mA),r=t.parent(),s=r.data("options"),l=s&&s.cells&&s.cells[t.index()];if(t.closest("table").is(e.delegateTarget)){var d=(0,a.l)({},l,{cellElement:(0,se.u)(t),event:e,eventType:e.type});if(d.rowIndex=i.getRowIndex(r),n.length){var u=n.data("dx-form-item");u.column&&(d.column=u.column,d.columnIndex=i._columnsController.getVisibleIndex(d.column.index))}return d}};return re.Z.on(n,"mouseover",".dx-row > td",(function(e){var t=r(e);t&&i.executeAction("onCellHoverChanged",t)})),re.Z.on(n,"mouseout",".dx-row > td",(function(e){var t=r(e);t&&i.executeAction("onCellHoverChanged",t)})),re.Z.on(n,A.u,".dx-row > td",(function(e){var t=r(e);t&&i.executeAction("onCellClick",t)})),re.Z.on(n,jO,".dx-row > td",(function(e){var t=r(e);t&&i.executeAction("onCellDblClick",t)})),vA(i,n),n},_rowPointerDown:v.ZT,_rowClick:v.ZT,_rowDblClick:v.ZT,_createColGroup:function(e){for(var t=(0,o.Z)("<colgroup>"),i=0;i<e.length;i++)for(var n=e[i].colspan||1,r=0;r<n;r++)t.append(this._createCol(e[i]));return t},_createCol:function(e){var t=e.visibleWidth||e.width;"adaptiveHidden"===t&&(t=fA);var i=(0,o.Z)("<col>");return(0,Fl.cl)(i,t),i},renderDelayedTemplates:function(e){var t=this._delayedTemplates,i=t.filter((e=>!e.async)),n=t.filter((e=>e.async));this._delayedTemplates=[],this._renderDelayedTemplatesCore(i,!1,e),this._renderDelayedTemplatesCoreAsync(n)},_renderDelayedTemplatesCoreAsync:function(e){var t=this;e.length&&(0,s.Jj)().setTimeout((function(){t._renderDelayedTemplatesCore(e,!0)}))},_renderDelayedTemplatesCore:function(e,t,i){var n=new Date;while(e.length){var r=e.shift(),a=r.options,s=ke["default"].getRootNode((0,o.Z)(a.container).get(0)),l=this._needWaitAsyncTemplates();if((!t||(0,o.Z)(a.container).closest(s).length||l)&&(i&&(a.change=i),r.template.render(a)),t&&new Date-n>30){this._renderDelayedTemplatesCoreAsync(e);break}}!e.length&&this._delayedTemplates.length&&this.renderDelayedTemplates()},_processTemplate:function(e){var t;if(e&&e.render&&!(0,l.ZU)(e))t={allowRenderToDetachedContainer:e.allowRenderToDetachedContainer,render:function(t){e.render(t.container,t.model,t.change),t.deferred&&t.deferred.resolve()}};else if((0,l.mf)(e))t={render:function(t){var i=e((0,se.u)(t.container),t.model,t.change);i&&(i.nodeType||(0,l.ZU)(i))&&t.container.append(i),t.deferred&&t.deferred.resolve()}};else{var i=(0,l.HD)(e)?e:(0,o.Z)(e).attr("id");i?(this._templatesCache[i]||(this._templatesCache[i]=this.getTemplate(e)),t=this._templatesCache[i]):t=this.getTemplate(e)}return t},renderTemplate:function(e,t,i,n,o){var r=this._processTemplate(t,i),a=i.column,s="data"===i.rowType,l=new ot.BH,d={container:e,model:i,deferred:l,onRendered:()=>{l.resolve()}};if(r){i.component=this.component;var u=a&&(a.renderAsync&&s||this.option("renderAsync")&&(!1!==a.renderAsync&&(a.command||a.showEditorAlways)&&s||"filter"===i.rowType));!r.allowRenderToDetachedContainer&&!n||u?this._delayedTemplates.push({template:r,options:d,async:u}):r.render(d),o&&(o.templateDeferreds=o.templateDeferreds||[],o.templateDeferreds.push(l))}else l.reject();return l.promise()},_getBodies:function(e){return(0,o.Z)(e).children("tbody").not(".dx-header").not(".dx-footer")},_needWrapRow:function(e){var t,i=!!this.option().rowTemplate;return i&&!(null===(t=this._getBodies(e))||void 0===t||!t.filter("."+sA).length)},_wrapRowIfNeed:function(e,t,i){var n=i?e||this._tableElement:this._tableElement||e,r=this._needWrapRow(n);if(r){var a=(0,o.Z)("<tbody>").addClass(t.attr("class"));return this.setAria("role","presentation",a),a.append(t)}return t},_appendRow:function(e,t,i){i=i||_A,i.render({content:t,container:e})},_resizeCore:function(){var e=this._scrollLeft;e>=0&&(this._scrollLeft=0,this.scrollTo({left:e}))},_renderCore:function(e){var t=this.element().parent();t&&!t.parent().length||this.renderDelayedTemplates(e)},_renderTable:function(e){e=e||{},e.columns=this._columnsController.getVisibleColumns();var t=e.change&&e.change.changeType,i=this._createTable(e.columns,"append"===t||"prepend"===t||"update"===t);return this._renderRows(i,e),i},_renderRows:function(e,t){for(var i=this._getRows(t.change),n=t.change&&t.change.columnIndices||[],o=t.change&&t.change.changeTypes||[],r=0;r<i.length;r++)this._renderRow(e,(0,a.l)({row:i[r],columnIndices:n[r],changeType:o[r]},t))},_renderRow:function(e,t){t.columnIndices||(t.row.cells=[]);var i=this._createRow(t.row),n=this._wrapRowIfNeed(e,i);"remove"!==t.changeType&&this._renderCells(i,t),this._appendRow(e,n);var o=(0,a.l)({columns:t.columns},t.row);this._addWatchMethod(o,t.row),this._rowPrepared(n,o,t.row)},_needRenderCell:function(e,t){return!t||t.indexOf(e)>=0},_renderCells:function(e,t){for(var i=0,n=t.row,o=t.columns,r=0;r<o.length;r++)this._needRenderCell(r,t.columnIndices)&&this._renderCell(e,(0,a.l)({column:o[r],columnIndex:i,value:n.values&&n.values[i],oldValue:n.oldValues&&n.oldValues[i]},t)),o[r].colspan>1?i+=o[r].colspan:i++},_updateCells:function(e,t,i){var n=e.children(),o=t.children(),r=this.option("highlightChanges"),a=this.addWidgetPrefix(pA);i.forEach((function(e,t){var i=n.eq(e),s=o.eq(t);i.replaceWith(s),r&&!s.hasClass("dx-command-expand")&&s.addClass(a)})),bA(e.get(0),t.get(0))},_setCellAriaAttributes:function(e,t){if("freeSpace"!==t.rowType){this.setAria("role","gridcell",e);var i=this._columnsController.getColumnIndexOffset(),n=t.columnIndex+i+1;this.setAria("colindex",n,e)}},_renderCell:function(e,t){var i=this._getCellOptions(t);if(t.columnIndices){if(t.row.cells){var n=t.row.cells.findIndex((e=>e.columnIndex===i.columnIndex));t.row.cells[n]=i}}else t.row.cells.push(i);var o=this._createCell(i);return this._setCellAriaAttributes(o,i),this._renderCellContent(o,i,t),e.get(0).appendChild(o.get(0)),o},_renderCellContent:function(e,t,i){var n=this._getCellTemplate(t);(0,ot.gx)(!n||this.renderTemplate(e,n,t,void 0,i.change)).done((()=>{this._updateCell(e,t)}))},_getCellTemplate:function(){},_getRows:function(){return[]},_getCellOptions:function(e){var t={column:e.column,columnIndex:e.columnIndex,rowType:e.row.rowType,isAltRow:this._isAltRow(e.row)};return this._addWatchMethod(t),t},_addWatchMethod:function(e,t){if(this.option("repaintChangesOnly")){var i=[];return t=t||e,t.watch=t.watch||function(e,n,o){var r=e(t.data),a=function(i){i&&o&&o(i);var a=e(t.data);JSON.stringify(r)!==JSON.stringify(a)&&(i&&n(a),r=a)};return i.push(a),function(){var e=i.indexOf(a);e>=0&&i.splice(e,1)}},t.update=t.update||function(t,n){t&&(this.data=e.data=t.data,this.rowIndex=e.rowIndex=t.rowIndex,this.dataIndex=e.dataIndex=t.dataIndex,this.isExpanded=e.isExpanded=t.isExpanded,e.row&&!n&&(e.row=t)),i.forEach((function(e){e(t)}))},t!==e&&(e.watch=t.watch.bind(t)),e}},_cellPrepared:function(e,t){t.cellElement=(0,se.u)((0,o.Z)(e)),this.executeAction("onCellPrepared",t)},_rowPrepared:function(e,t){(0,le.aT)(e.get(0),"options",t),t.rowElement=(0,se.u)(e),this.executeAction("onRowPrepared",t)},_columnOptionChanged:function(e){var t=e.optionNames;if(FD.checkChanges(t,["width","visibleWidth"])){var i=this._columnsController.getVisibleColumns(),n=E.UI(i,(function(e){var t=e.visibleWidth||e.width;return(0,l.$K)(t)?t:"auto"}));this.setColumnWidths({widths:n,optionNames:t})}else this._requireReady||this.render()},getCellIndex:function(e){var t=e.length?e[0].cellIndex:-1;return t},getTableElements:function(){return this._tableElement||(0,o.Z)()},getTableElement:function(){return this._tableElement},setTableElement:function(e){this._tableElement=e},optionChanged:function(e){switch(this.callBase(e),e.name){case"cellHintEnabled":case"onCellPrepared":case"onRowPrepared":case"onCellHoverChanged":this._invalidate(!0,!0),e.handled=!0}},init:function(){var e=this;e._scrollLeft=-1,e._columnsController=e.getController("columns"),e._dataController=e.getController("data"),e._delayedTemplates=[],e._templatesCache={},e.createAction("onCellClick"),e.createAction("onRowClick"),e.createAction("onCellDblClick"),e.createAction("onRowDblClick"),e.createAction("onCellHoverChanged",{excludeValidators:["disabled","readOnly"]}),e.createAction("onCellPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering"}),e.createAction("onRowPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering",afterExecute:function(t){e._afterRowPrepared(t)}}),e._columnsController.columnsChanged.add(e._columnOptionChanged.bind(e)),e._dataController&&e._dataController.changed.add(e._handleDataChanged.bind(e))},_afterRowPrepared:v.ZT,_handleDataChanged:function(){},callbackNames:function(){return["scrollChanged"]},_updateScrollLeftPosition:function(){var e=this._scrollLeft;e>=0&&(this._scrollLeft=0,this.scrollTo({left:e}))},scrollTo:function(e){var t=this.element(),i=t&&t.children("."+this.addWidgetPrefix(eA)).not("."+this.addWidgetPrefix(aA));(0,l.$K)(e)&&(0,l.$K)(e.left)&&this._scrollLeft!==e.left&&(this._scrollLeft=e.left,i&&i.scrollLeft(e.left))},_wrapTableInScrollContainer:function(e){var t=(0,o.Z)("<div>"),i=this.option("scrolling.useNative");return(!1===i||"auto"===i&&!b.nativeScrolling)&&t.addClass(this.addWidgetPrefix(tA)),re.Z.on(t,"scroll",(()=>{var e=t.scrollLeft();e!==this._scrollLeft&&this.scrollChanged.fire({left:e},this.name)})),t.addClass(this.addWidgetPrefix(nA)).addClass(this.addWidgetPrefix(eA)).append(e).appendTo(this.element()),this.setAria("role","presentation",t),t},_needWaitAsyncTemplates:function(){return this.option("templatesRenderAsynchronously")&&!1===this.option("renderAsync")},_waitAsyncTemplates:function(e,t){var i=this._needWaitAsyncTemplates(),n=(t||i&&("update"!==(null===e||void 0===e?void 0:e.changeType)||null!==e&&void 0!==e&&e.isLiveUpdate))&&null!==e&&void 0!==e&&e.templateDeferreds?null===e||void 0===e?void 0:e.templateDeferreds:[];return ot.gx.apply(this,n)},_updateContent:function(e,t){return this._waitAsyncTemplates(t).done((()=>{this.setTableElement(e),this._wrapTableInScrollContainer(e)}))},_findContentElement:v.ZT,_getWidths:function(e){var t,i=[];return e&&E.S6(e,(function(e,n){if(t=n.offsetWidth,n.getBoundingClientRect){var o=Pe(n);o.width>t-1&&(t=o.width)}i.push(t)})),i},getColumnWidths:function(e){var t,i,n=[];if((this.option("forceApplyBindings")||v.ZT)(),e=e||this.getTableElement(),e){t=e.children("tbody:not(.dx-header)").children();for(var o=0;o<t.length;o++){var r=t.eq(o),a="none"!==r.get(0).style.display&&!r.hasClass("dx-state-invisible");if(!r.is("."+lA)&&!r.is("."+uA)&&!r.is("."+hA)&&a){i=r.children("td");break}}n=this._getWidths(i)}return n},getVisibleColumnIndex:function(e,t){return e},setColumnWidths:function(e){var t,i,n,o,{widths:r,$tableElement:a,columns:s,fixed:d}=e,u=this.option("columnAutoWidth");if(a=a||this.getTableElement(),a&&a.length&&r){o=0,t=a.children("colgroup").children("col"),(0,Fl.cl)(t,"auto"),s=s||this.getColumns(null,a);for(var c=0;c<s.length;c++){if(u&&!d&&(i=s[c].width,i&&!s[c].command)){i=s[c].visibleWidth||i,i=yA(i),n=yA(s[c].minWidth||i);for(var h=h||a.children().children(".dx-row").not("."+uA),p=0;p<h.length;p++){var f=h[p],g=void 0,m=this.getVisibleColumnIndex(c,p);g=f.classList.contains(lA)?f.querySelector("td[aria-colindex='".concat(m+1,"']:not(.").concat(dA,")")):f.cells[m],g&&(CA(g,s[c],i),g.style.minWidth=n)}}s[c].colspan?o+=s[c].colspan:(i=r[o],"adaptiveHidden"===i&&(i=fA),"number"===typeof i&&(i=i.toFixed(3)+"px"),(0,Fl.cl)(t.eq(o),(0,l.$K)(i)?i:"auto"),o++)}}},getCellElements:function(e){return this._getCellElementsCore(e)},_getCellElementsCore:function(e){var t=this._getRowElements().eq(e);return t.children()},_getCellElement:function(e,t){var i,n=this.getCellElements(e),o=this._getVisibleColumnIndex(n,e,t);if(n.length&&o>=0&&(i=n.eq(o)),i&&i.length)return i},_getRowElement:function(e){var t=this,i=(0,o.Z)(),n=t.getTableElements();if(E.S6(n,(function(n,r){i=i.add(t._getRowElements((0,o.Z)(r)).eq(e))})),i.length)return i},getCellElement:function(e,t){return(0,se.u)(this._getCellElement(e,t))},getRowElement:function(e){var t=this._getRowElement(e),i=[];if(t&&!(0,se.u)(t).get)for(var n=0;n<t.length;n++)i.push(t[n]);else i=t;return i},_getVisibleColumnIndex:function(e,t,i){if((0,l.HD)(i)){var n=this._columnsController.columnOption(i,"index");return this._columnsController.getVisibleIndex(n)}return i},getColumnElements:function(){},getColumns:function(e){return this._columnsController.getVisibleColumns(e)},getCell:function(e,t){var i,n=t||this._getRowElements();if(n.length>0&&e.rowIndex>=0&&("virtual"!==this.option("scrolling.mode")&&"virtual"!==this.option("scrolling.rowRenderingMode")&&(e.rowIndex=e.rowIndex<n.length?e.rowIndex:n.length-1),i=this.getCellElements(e.rowIndex),i&&i.length>0))return i.eq(i.length>e.columnIndex?e.columnIndex:i.length-1)},getRowsCount:function(){var e=this.getTableElement();return e&&1===e.length?e[0].rows.length:0},_getRowElementsCore:function(e){if(e=e||this.getTableElement(),e){var t=this.option().rowTemplate||this.option("dataRowTemplate"),i=t&&e.find("> tbody."+sA);return i&&i.length?i:e.find("> tbody > ."+sA+", > ."+sA)}return(0,o.Z)()},_getRowElements:function(e){return this._getRowElementsCore(e)},getRowIndex:function(e){return this._getRowElements().index(e)},getBoundingRect:function(){},getName:function(){},setScrollerSpacing:function(e){var t=this.element(),i=this.option("rtlEnabled");t&&t.css({paddingLeft:i?e:"",paddingRight:i?"":e})},isScrollbarVisible:function(e){var t=this.element(),i=this._tableElement;return!(!t||!i)&&(e?(0,n.Y_)(i)-(0,n.dz)(t)>0:(0,n.zp)(i)-(0,n.Cr)(t)>0)}}),wA="dx-state-focused",TA="dx-cell-focus-disabled",SA=".dx-row-focused",IA=".dx-datagrid-rowsview .dx-row",EA="".concat(IA," > td"),DA=".dx-treelist-rowsview .dx-row",kA="".concat(DA," > td"),OA={groupPanel:[".dx-datagrid-group-panel .dx-group-panel-item[tabindex]"],columnHeaders:[".dx-datagrid-headers .dx-header-row > td.dx-datagrid-action",".dx-treelist-headers .dx-header-row > td.dx-treelist-action"],filterRow:[".dx-datagrid-headers .dx-datagrid-filter-row .dx-editor-cell .dx-texteditor-input",".dx-treelist-headers .dx-treelist-filter-row .dx-editor-cell .dx-texteditor-input"],rowsView:["".concat(SA),"".concat(IA,"[tabindex]"),"".concat(EA,"[tabindex]"),"".concat(EA),"".concat(DA,"[tabindex]"),"".concat(kA,"[tabindex]"),"".concat(kA)],footer:[".dx-datagrid-total-footer .dx-datagrid-summary-item",".dx-treelist-total-footer .dx-treelist-summary-item"],filterPanel:[".dx-datagrid-filter-panel .dx-icon-filter",".dx-treelist-filter-panel .dx-icon-filter"],pager:[".dx-datagrid-pager [tabindex]",".dx-treelist-pager [tabindex]"]},AA=!1,PA=!1,MA=null;function RA(e,t,i,n,o,r){var a=HA(t,i.originalEvent,r);if(!a){var s=(0,R.EV)(i);"enter"===s||"space"===s?(BA(i.target,t),n&&n({event:i})):"tab"===s?o.addClass(wA):zA(e,t,i)}}function BA(e,t){var i=(0,o.Z)(e),n=i.attr("aria-label"),r=VA(n,t.element()),s=r.index(i);MA=(0,a.l)({},{ariaLabel:n,index:s},{viewInstance:t})}function VA(e,t){var i,n=(0,o.Z)(t);return i=e?n.find('[aria-label="'.concat(e,'"][tabindex]')):n.find("[tabindex]"),i}function FA(e,t){var i=(null===t||void 0===t?void 0:t.getRootNode())||ke["default"].getDocument();for(var n in e){var r=e[n],a=(0,o.Z)(i).find(r).first();if(a.length)return a}}function HA(e,t,i){var n={event:t,handled:!1};return i?i(n):e._createActionByOption("onKeyDown")(n),n.handled}function LA(){PA="visible"===ke["default"].getDocument().visibilityState}function NA(){re.Z.on(ke["default"].getDocument(),"visibilitychange",LA)}function ZA(){re.Z.off(ke["default"].getDocument(),"visibilitychange",LA)}function $A(e){PA=!0,e.focus(),PA=!1}function WA(e,t,i,n,r,a){if(t.option("useLegacyKeyboardNavigation"))return v.ZT;var s=()=>(0,o.Z)(t.element()),l=i=>RA(e,t,i,r,s(),a),d=()=>{AA=!0,s().removeClass(wA)},u=()=>{var e=!AA&&!PA;e&&s().addClass(wA),AA=!1};return re.Z.on(i,"keydown",n,l),re.Z.on(i,"mousedown",n,d),re.Z.on(i,"focusin",n,u),()=>{re.Z.off(i,"keydown",n,l),re.Z.off(i,"mousedown",n,d),re.Z.off(i,"focusin",n,u)}}function KA(e){if(!e.option("useLegacyKeyboardNavigation")&&MA){var t=MA.viewInstance;if(t){var i=VA(MA.ariaLabel,t.element()),n=i.eq(MA.index);MA=null,re.Z.trigger(n,"focus")}}}function zA(e,t,i){var n=(0,R.EV)(i);if(i.ctrlKey&&("upArrow"===n||"downArrow"===n)){var o=Object.keys(OA),r=o.indexOf(e);while(r>=0&&r<o.length){r="upArrow"===n?--r:++r;var a=o[r],s=OA[a],l=FA(s,i.target);if(l&&l.length){l.attr("tabindex",t.option("tabindex")||0),re.Z.trigger(l,"focus"),l.removeClass(TA);break}}}}var jA=function(e,t,i,n,o){var r=t.getController("keyboardNavigation");t.option("useLegacyKeyboardNavigation")||r&&!r.isKeyboardEnabled()||(t.createAction("onKeyDown"),WA(e,t,i,n,o,(e=>{t.executeAction("onKeyDown",e)})))},UA="text-content",GA="headers",qA="nowrap",YA=".dx-row",XA="dx-header-row",JA="dx-column-lines",QA="context-menu-sort-asc",eP="context-menu-sort-desc",tP="context-menu-sort-none",iP="dx-cell-focus-disabled",nP="dx-visibility-hidden",oP="dx-text-content-alignment-",rP="dx-sort-indicator",aP="dx-sort-index-indicator",sP=".dx-header-filter",lP="dx-header-filter-indicator",dP="dx-header-multi-row",uP={defaultOptions:function(){return{showColumnHeaders:!0,cellHintEnabled:!0}},views:{columnHeadersView:xA.inherit(function(){var e=function(e,i,n){var r=(0,o.Z)("<div>").addClass(e.addWidgetPrefix(UA));e.setAria("role","presentation",r),t(e,i,n.column,r);var a=e.option("showColumnLines"),s=e.getController("columns").getHeaderContentAlignment(n.column.alignment);return r[a||"right"===s?"appendTo":"prependTo"](i)};function t(e,t,i,n){var o=e._getIndicatorElements(t,!0),r=e._getIndicatorElements(t),a=o&&o.length,s=e._getColumnAlignment(i.alignment),l=".".concat(e._getIndicatorClassName("sort")),d=".".concat(e._getIndicatorClassName("sortIndex")),u=r.filter(l),c=r.children().filter(d);n=n||t.children("."+e.addWidgetPrefix(UA)),n.toggleClass(oP+s,a>0).toggleClass(oP+("left"===s?"right":"left"),a>0&&"center"===i.alignment).toggleClass(rP,!!u.length).toggleClass(aP,!!c.length).toggleClass(lP,!!r.filter("."+e._getIndicatorClassName("headerFilter")).length)}return{_createTable:function(){var e=this.callBase.apply(this,arguments);return re.Z.on(e,"mousedown selectstart",this.createAction((function(e){var t=e.event;t.shiftKey&&t.preventDefault()}))),e},_isLegacyKeyboardNavigation(){return this.option("useLegacyKeyboardNavigation")},_getDefaultTemplate:function(t){var i=this;return function(n,o){var r=t.command?n:e(i,n,o),a="expand"!==t.command&&t.caption;a?r.text(a):t.command&&n.html("&nbsp;")}},_getHeaderTemplate:function(e){return e.headerCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(e)}},_processTemplate:function(t,i){var n,o=this,r=i.column,s=o.callBase(t);return n="header"===i.rowType&&s&&r.headerCellTemplate&&!r.command?{render:function(t){var i=e(o,t.container,t.model);s.render((0,a.l)({},t,{container:i}))}}:s,n},_handleDataChanged:function(e){"refresh"===e.changeType&&(this._isGroupingChanged||this._requireReady)&&(this._isGroupingChanged=!1,this.render())},_renderCell:function(e,t){var i=this.callBase(e,t);return"header"===t.row.rowType&&(i.addClass(iP),this._isLegacyKeyboardNavigation()||t.column&&!t.column.type&&i.attr("tabindex",this.option("tabindex")||0)),i},_setCellAriaAttributes:function(e,t){this.callBase(e,t),"header"===t.rowType&&(this.setAria("role","columnheader",e),!t.column||t.column.command||t.column.isBand||(e.attr("id",t.column.headerId),this.setAria("label",y.Z.format("dxDataGrid-ariaColumn")+" "+t.column.caption,e)))},_createRow:function(e){var t=this.callBase.apply(this,arguments);return t.toggleClass(JA,this.option("showColumnLines")),"header"===e.rowType&&(t.addClass(XA),this._isLegacyKeyboardNavigation()||jA("columnHeaders",this,t,"td",this._handleActionKeyDown.bind(this))),t},_handleActionKeyDown:function(e){var t=e.event,i=(0,o.Z)(t.target);if(this._lastActionElement=t.target,i.is(sP)){var n=this.getController("headerFilter"),r=i.closest("td"),a=this.getColumnIndexByElement(r);a>=0&&n.showHeaderFilterMenu(a,!1)}else{var s=i.closest(YA);this._processHeaderAction(t,s)}t.preventDefault()},_renderCore:function(){var e=this,t=e.element(),i={};(!e._tableElement||e._dataController.isLoaded()||e._hasRowElements)&&(t.addClass(e.addWidgetPrefix(GA)).toggleClass(e.addWidgetPrefix(qA),!e.option("wordWrapEnabled")).empty(),e.setAria("role","presentation",t),e._updateContent(e._renderTable({change:i}),i),e.getRowCount()>1&&t.addClass(dP),e.callBase.apply(e,arguments))},_renderRows:function(){var e=this;(e._dataController.isLoaded()||e._hasRowElements)&&(e.callBase.apply(e,arguments),e._hasRowElements=!0)},_getRowVisibleColumns:function(e){return this._columnsController.getVisibleColumns(e)},_renderRow:function(e,t){t.columns=this._getRowVisibleColumns(t.row.rowIndex),this.callBase(e,t)},_createCell:function(e){var t=e.column,i=this.callBase.apply(this,arguments);return t.rowspan>1&&"header"===e.rowType&&i.attr("rowSpan",t.rowspan),i},_getRows:function(){var e=[],t=this.getRowCount();if(this.option("showColumnHeaders"))for(var i=0;i<t;i++)e.push({rowType:"header",rowIndex:i});return e},_getCellTemplate:function(e){if("header"===e.rowType)return this._getHeaderTemplate(e.column)},_columnOptionChanged:function(e){var t=e.changeTypes,i=e.optionNames;t.grouping||t.groupExpanding?t.grouping&&(this._isGroupingChanged=!0):(this.callBase(e),(i.width||i.visible)&&this.resizeCompleted.fire())},_isElementVisible:function(e){return e&&e.visible},_alignCaptionByCenter:function(e){var t=this._getIndicatorContainer(e,!0);t&&t.length&&(t.filter("."+nP).remove(),t=this._getIndicatorContainer(e),t.clone().addClass(nP).css("float","").insertBefore(e.children("."+this.addWidgetPrefix(UA))))},_updateCell:function(e,t){"header"===t.rowType&&"center"===t.column.alignment&&this._alignCaptionByCenter(e),this.callBase.apply(this,arguments)},_updateIndicator:function(e,i,n){var o=this.callBase.apply(this,arguments);return"center"===i.alignment&&this._alignCaptionByCenter(e),t(this,e,i),o},_getIndicatorContainer:function(e,t){var i=this.callBase(e);return t?i:i.filter(":not(."+nP+")")},_isSortableElement:function(){return!0},getHeadersRowHeight:function(){var e=this.getTableElement(),t=e&&e.find("."+XA);return t&&t.toArray().reduce((function(e,t){return e+(0,n.Cr)(t)}),0)||0},getHeaderElement:function(e){var t=this.getColumnElements();return t&&t.eq(e)},getColumnElements:function(e,t){var i,n=this,r=n._columnsController,a=n.getRowCount();if(n.option("showColumnHeaders")){if(a>1&&(!(0,l.$K)(e)||(0,l.$K)(t))){var s=[],d=(0,l.$K)(t)?r.getChildrenByBandColumn(t,!0):r.getVisibleColumns();return(0,E.S6)(d,(function(t,o){var a=(0,l.$K)(e)?e:r.getRowIndex(o.index);i=n._getCellElement(a,r.getVisibleIndex(o.index,a)),i&&s.push(i.get(0))})),(0,o.Z)(s)}if(!e||e<a)return n.getCellElements(e||0)}},getColumnIndexByElement:function(e){var t=this.getCellIndex(e),i=e.closest(".dx-row"),n=i[0].rowIndex,o=this.getColumns(n)[t];return o?o.index:-1},getVisibleColumnIndex:function(e,t){var i=this.getColumns()[e];return i?this._columnsController.getVisibleIndex(i.index,t):-1},getColumnWidths:function(){var e=this.getColumnElements();return e&&e.length?this._getWidths(e):this.callBase.apply(this,arguments)},allowDragging:function(e,t,i){var n,o=0,r=e&&this._columnsController.getRowIndex(e.index),a=this.getColumns(0===r?0:null),s=(null===e||void 0===e?void 0:e.allowHiding)&&a.length>1,l=function(e){return e.allowReordering||e.allowGrouping||e.allowHiding};for(n=0;n<a.length;n++)l(a[n])&&o++;if(o<=1&&!s)return!1;if(!i)return(this.option("allowColumnReordering")||this._columnsController.isColumnOptionUsed("allowReordering"))&&e&&e.allowReordering;for(n=0;n<i.length;n++){var d=i[n];if(d&&d.allowDragging(e,t))return!0}return!1},getBoundingRect:function(){var e=this.getColumnElements();if(e&&e.length){var t=this.getTableElement().offset();return{top:t.top}}return null},getName:function(){return"headers"},getColumnCount:function(){var e=this.getColumnElements();return e?e.length:0},isVisible:function(){return this.option("showColumnHeaders")},optionChanged:function(e){switch(e.name){case"showColumnHeaders":case"wordWrapEnabled":case"showColumnLines":this._invalidate(!0,!0),e.handled=!0;break;default:this.callBase(e)}},getHeight:function(){return this.getElementHeight()},getContextMenuItems:function(e){var t=this,i=e.column;if(e.row&&("header"===e.row.rowType||"detailAdaptive"===e.row.rowType)){var n=t.option("sorting");if(n&&"none"!==n.mode&&i&&i.allowSorting){var o=function(e){setTimeout((function(){t._columnsController.changeSortOrder(i.index,e.itemData.value)}))};return[{text:n.ascendingText,value:"asc",disabled:"asc"===i.sortOrder,icon:QA,onItemClick:o},{text:n.descendingText,value:"desc",disabled:"desc"===i.sortOrder,icon:eP,onItemClick:o},{text:n.clearText,value:"none",disabled:!i.sortOrder,icon:tP,onItemClick:o}]}}},getRowCount:function(){return this._columnsController&&this._columnsController.getRowCount()},setRowsOpacity:function(e,t,i){var n,o,r=this,a=r.getRowCount(),s=r._columnsController.getColumns(),d=s&&s[e],u=d&&d.isBand&&d.index,c=function(e,i){i.ownerBand===u&&(o.eq(e).css({opacity:t}),i.isBand&&r.setRowsOpacity(i.index,t,n+1))};if((0,l.$K)(u))for(i=i||0,n=i;n<a;n++)o=r.getCellElements(n),(0,E.S6)(r.getColumns(n),c)}}}())}};zO.registerModule("columnHeaders",uP);var cP=i(63370),hP=i(69721),pP=["filterValues","filterType","fixed","fixedPosition"],fP=["visibleIndex","dataField","name","dataType","width","visible","sortOrder","lastSortOrder","sortIndex","groupIndex","filterValue","bufferedFilterValue","selectedFilterOperation","bufferedSelectedFilterOperation","added"].concat(pP),gP={visibleWidth:!0,bestFitWidth:!0,bufferedFilterValue:!0},mP="dx-command-expand",_P=Number.MAX_SAFE_INTEGER||9007199254740991,vP="groupExpand",yP=/columns\[(\d+)\]\.?/gi,CP=1,bP={defaultOptions:function(){return{commonColumnSettings:{allowFiltering:!0,allowHiding:!0,allowSorting:!0,allowEditing:!0,encodeHtml:!0,trueText:y.Z.format("dxDataGrid-trueText"),falseText:y.Z.format("dxDataGrid-falseText")},allowColumnReordering:!1,allowColumnResizing:!1,columnResizingMode:"nextColumn",columnMinWidth:void 0,columnWidth:void 0,adaptColumnWidthByRatio:!0,columns:void 0,regenerateColumnsByVisibleItems:!1,customizeColumns:null,dateSerializationFormat:void 0}},controllers:{columns:KO.Controller.inherit(function(){var e={visible:!0,showInColumnChooser:!0},t={number:["=","<>","<",">","<=",">=","between"],string:["contains","notcontains","startswith","endswith","=","<>"],date:["=","<>","<",">","<=",">=","between"],datetime:["=","<>","<",">","<=",">=","between"]},i={visibleIndex:!0,groupIndex:!0,grouped:!0,sortIndex:!0,sortOrder:!0},n=function(e){e.filterOperations=e.defaultFilterOperations},s=function(t,i,o,r){var s={};if(i){(0,l.HD)(i)&&(i={dataField:i}),t.setName(i);var d={};if(i.command)d=(0,cP.HR)(s,i);else{s=t.getCommonSettings(i),o&&o.name&&o.dataField&&(i=(0,a.l)({},i,{dataField:o.dataField}));var u=t._createCalculatedColumnOptions(i,r);i.type||(d={headerId:"dx-col-".concat(CP++)}),d=(0,cP.HR)(d,e),(0,cP.HR)(d,s),(0,cP.HR)(d,u),(0,cP.HR)(d,i),(0,cP.HR)(d,{selector:null})}return i.filterOperations===i.defaultFilterOperations&&n(d),d}},d=function e(t,i,n){var o=[];return i&&(0,E.S6)(i,(function(i,r){var a=t._columnsUserState&&w(r,t._columnsUserState[i])&&t._columnsUserState[i],l=s(t,r,a,n);l&&(n&&(l.ownerBand=n),o.push(l),l.columns&&(o=o.concat(e(t,l.columns,l)),delete l.columns,l.hasColumns=!0))})),o},u=function(e,t){var i=[],n=t[e];while(n)i.unshift(n),e=n.index,n=t[e];return i},c=function(e,t,i){var n=[],o=t[e];if(o)for(var r=0;r<o.length;r++){var a=o[r];(0,l.$K)(a.groupIndex)&&!a.showWhenGrouped||(n.push(a),i&&a.isBand&&(n=n.concat(c(a.index,t,i))))}return n},h=function(e,t){var i,n=[],o=e.getBandColumnsCache(),r=function(e){return e.ownerBand===t.ownerBand};if(o.isPlain){var a=e._columns.indexOf(t);a>=0&&(n=["columns[".concat(a,"]")])}else{i=e._columns.filter(r);while(i.length&&-1!==i.indexOf(t))n.unshift("columns[".concat(i.indexOf(t),"]")),t=o.columnParentByIndex[t.index],i=t?e._columns.filter(r):[]}return n.join(".")},p=function e(t,i){var n=0,o=t.getChildrenByBandColumn(i,!0);return(0,E.S6)(o,(function(i,o){o.isBand?(o.colspan=o.colspan||e(t,o.index),n+=o.colspan||1):n+=1})),n},f=function(e){var t=(0,l.dt)(e);return"string"!==t&&"boolean"!==t&&"number"!==t&&"date"!==t&&"object"!==t&&(t=void 0),t},g=function(e,t){switch(e){case"date":case"datetime":return vy.Z.getDateSerializationFormat(t);case"number":if((0,l.HD)(t))return"string";if((0,l.kE)(t))return null}},m=function(e,t){e.deserializeValue||(FD.isDateType(t)&&(e.deserializeValue=function(e){return vy.Z.deserializeDate(e)},e.serializeValue=function(e){return(0,l.HD)(e)?e:vy.Z.serializeDate(e,this.serializationFormat)}),"number"===t&&(e.deserializeValue=function(e){var t=parseFloat(e);return isNaN(t)?e:t},e.serializeValue=function(e,t){return"filter"===t?e:(0,l.$K)(e)&&"string"===this.serializationFormat?e.toString():e}))},_=function(e){return!0===e.value?this.trueText||"true":!1===e.value?this.falseText||"false":e.valueText||""},y=function(e){if("boolean"===e)return _},C=function(e){(0,E.S6)(e._columns,(function(e,t){t.index=e})),(0,E.S6)(e._columns,(function(e,t){(0,l.Kn)(t.ownerBand)&&(t.ownerBand=t.ownerBand.index)})),(0,E.S6)(e._commandColumns,(function(e,t){t.index=-(e+1)}))},b=function(e,t){(0,mu.Sq)(e._columns,"groupIndex",t,(function(e){var t=e.grouped;return delete e.grouped,t}))},x=function(e,t,i){var n,o=(0,l.Kn)(t)?t.rowIndex:null,r="group"===i?e.getGroupColumns():"columnChooser"===i?e.getChooserColumns():e.getVisibleColumns(o);return t=(0,l.Kn)(t)?t.columnIndex:t,n=r[t],n&&n.type===vP&&(n=e._columns.filter((e=>n.type===e.type))[0]||n),n&&(0,l.$K)(n.index)?n.index:-1};function w(e,t){return e&&t&&t.name===(e.name||e.dataField)&&(t.dataField===e.dataField||e.name)}var T=function(e){var t,i,n,o=e._columnsUserState,r=e._ignoreColumnOptionNames||[],a=e._columns,u={},c=[],h=!0,p=[];function f(e,t){if(t)for(var i=0;i<fP.length;i++){var n=fP[i];r.includes(n)||("dataType"===n?e[n]=e[n]||t[n]:pP.includes(n)?n in t&&(e[n]=t[n]):("selectedFilterOperation"===n&&t[n]&&(e.defaultSelectedFilterOperation=e[n]||null),e[n]=t[n]))}}function g(e,t){for(var i=t.name||t.dataField,n=u[i]||0,o=0;o<e.length;o++)if(w(t,e[o])){if(!n)return u[i]=u[i]||0,u[i]++,o;n--}return-1}if(o){for(n=0;n<a.length;n++)i=g(o,a[n]),h=h&&i>=0,p.push(i);for(n=0;n<a.length;n++)t=a[n],i=p[n],(e._hasUserState||h)&&f(t,o[i]),i>=0&&(0,l.$K)(o[i].initialIndex)?c[i]=t:c.push(t);var m=!1;for(n=0;n<o.length;n++){var _=o[n];_.added&&g(a,_)<0&&(t=s(e,_.added),f(t,_),c.push(t),_.added.columns&&(m=!0))}m&&(C(e),c=d(e,c)),D(e,c)}},S=function(e,t){C(e),b(e,t),function(e,t){(0,E.S6)(e._columns,(function(e,t){(0,l.$K)(t.sortIndex)&&!R(t.sortOrder)&&delete t.sortIndex})),(0,mu.Sq)(e._columns,"sortIndex",t,(function(e){return!(0,l.$K)(e.groupIndex)&&R(e.sortOrder)}))}(e,t),$(e),function(e,t){for(var i,n=[],o=e.getBandColumnsCache(),r=[],a=e._columns.filter((e=>!e.command)),s=0;s<a.length;s++){i=a[s];var l=u(s,o.columnParentByIndex);l.length?r.push(i):n.push(i)}(0,mu.Sq)(r,"visibleIndex",t),(0,mu.Sq)(n,"visibleIndex",t)}(e,t)},I=function(e){e.resetColumnsCache()};function D(e,t){e._columns=t,I(e),e.updateColumnDataTypes()}var k=function(e,t,i,n){var o=e._columnChanges||{optionNames:{length:0},changeTypes:{length:0},columnIndex:n};i=i||"all",i=i.split(".")[0];var r=o.changeTypes;t&&!r[t]&&(r[t]=!0,r.length++);var a=o.optionNames;i&&!a[i]&&(a[i]=!0,a.length++),void 0!==n&&n===o.columnIndex||delete o.columnIndex,e._columnChanges=o,I(e)},O=function(e){var t,i=e.option("onColumnsChanging"),n=e._columnChanges,o=["dataField","lookup","dataType","columns"];e.isInitialized()&&!e._updateLockCount&&n&&(i&&(e._updateLockCount++,i((0,a.l)({component:e.component},n)),e._updateLockCount--),e._columnChanges=void 0,t=n.optionNames,t&&o.some((e=>t[e]))?e.reinit():e.columnsChanged.fire(n))},A=function(e,t,i,n){var o=n>=0;if(i>=0)o||(t.lastSortOrder=t.sortOrder);else{var r=e.option("sorting.mode"),a=t.lastSortOrder;if("single"===r){var s=e._columns.some((e=>e!==t&&(0,l.$K)(e.sortIndex)));s&&(a=void 0)}t.sortOrder=a}},P=function(e,t){var i=t.value,n=t.optionName,o=t.prevValue,r=t.fullOptionName,a="".concat(r,".").concat(n);gP[n]||e._skipProcessingColumnsChange===a||(e._skipProcessingColumnsChange=a,e.component._notifyOptionChanged(a,i,o),e._skipProcessingColumnsChange=!1)},M=function(e,t,n,o,a){var s,d,u,c=(0,r.vb)(n),p=t.index;if(3===arguments.length)return c(t,{functionsAsIs:!0});var f=c(t,{functionsAsIs:!0});if(!(0,v.bY)(f,o)){"groupIndex"===n||"calculateGroupValue"===n?(d="grouping",A(e,t,o,f)):d="sortIndex"===n||"sortOrder"===n||"calculateSortValue"===n?"sorting":"columns";var g=(0,r.OM)(n);g(t,o,{functionsAsIs:!0});var m=h(e,t);i[n]&&(S(e,t),o=c(t)),"name"!==n&&"allowEditing"!==n||e._checkColumns(),(0,l.$K)(f)||(0,l.$K)(o)||0===n.indexOf("buffer")||(a=!0),a?I(e):(fP.includes(n)||"visibleWidth"===n||(s=e.option("columns"),u=e.getColumnByPath(m,s),(0,l.HD)(u)&&(u=s[p]={dataField:u}),u&&w(u,t)&&g(u,o,{functionsAsIs:!0})),k(e,d,n,p)),m&&P(e,{fullOptionName:m,optionName:n,value:o,prevValue:f})}};function R(e){return"asc"===e||"desc"===e}var B=function(e,t){var i=this.dataField.split("."),n=i.length-1;this.serializeValue&&(t=this.serializeValue(t));for(var o=0;o<n;o++){var r=i[o];e=e[r]=e[r]||{}}e[i[n]]=t},V=(e,t)=>!!e._columns.filter((e=>e.type===t.type)).length,F=function(e,t){var i=e.option("rtlEnabled");return t.command&&!V(e,t)||!t.fixedPosition?i?"right":"left":t.fixedPosition},H=function(e,t,i,n){var o,r=this.getRowCount(),s=e[n]&&e[n].rowspan,d=t.filter((e=>e.type===i));return e.forEach(((t,n)=>{t.type===i&&(o=n,s=e[n+1]?e[n+1].rowspan:r)})),s>1&&(d=(0,E.UI)(d,(function(e){return(0,a.l)({},e,{rowspan:s})}))),d.unshift.apply(d,(0,l.$K)(o)?[o,1]:[n,0]),e.splice.apply(e,d),s||1},L=function(e,t){var i=e?e.toString():"0";while(i.length<t)i="0"+i;return i},N=(e,t,i,n)=>{for(var o,r,s=t.slice().map((e=>(0,a.l)({},e))),l=e._isColumnFixing(),d=i.slice().map((e=>(0,a.l)({fixed:l},e))),u=e=>i.reduce(((t,i,o)=>{var r=n&&e.type===vP?"expand":e.type;return i.type===r||i.command===e.command?o:t}),-1),c=e=>e.command!==i[r].command,h=0;h<t.length;h++)if(o=t[h],r=o&&(o.type||o.command)?u(o):-1,r>=0)if(n)s[h]=(0,a.l)({fixed:l},i[r],o),o.type!==vP&&(d=d.filter(c));else{var p={visibleIndex:o.visibleIndex,index:o.index,headerId:o.headerId,allowFixing:0===o.groupIndex,allowReordering:0===o.groupIndex,groupIndex:o.groupIndex};s[h]=(0,a.l)({},o,i[r],o.type===vP&&p)}return t.length&&n&&d.length&&(s=s.concat(d)),s},Z=(e,t)=>(0,l.$K)(t.fixed)||!t.type?t.fixed:e._isColumnFixing(),$=e=>{e._bandColumnsCache=void 0},W=(e,t)=>{var i,n=(0,l.HD)(t)&&t.substr(0,t.indexOf(":"));if(void 0!==t)return n&&(t=t.substr(n.length+1)),n?i=e.filter((e=>""+e[n]===t))[0]:["index","name","dataField","caption"].some((n=>(i=e.filter((e=>e[n]===t))[0],!!i))),i};return{_getExpandColumnOptions:function(){return{type:"expand",command:"expand",width:"auto",cssClass:mP,allowEditing:!1,allowGrouping:!1,allowSorting:!1,allowResizing:!1,allowReordering:!1,allowHiding:!1}},_getFirstItems:function(e){var t,i=[];return e&&e.items().length>0&&(t=FD.normalizeSortingInfo(e.group()).length,i=function e(t,i){if(!t||!i)return t;for(var n=0;n<t.length;n++){var o=e(t[n].items||t[n].collapsedItems,i-1);if(o&&o.length)return o}}(e.items(),t)||[]),i},_endUpdateCore:function(){!this._skipProcessingColumnsChange&&O(this)},init:function(e){var t=this.option("columns");this._commandColumns=this._commandColumns||[],this._columns=this._columns||[],this._isColumnsFromOptions=!!t,this._isColumnsFromOptions?(D(this,t?d(this,t):[]),T(this)):D(this,this._columnsUserState?d(this,this._columnsUserState):this._columns),function(e){var t=e._getExpandColumnOptions();e.addCommandColumn(t)}(this),this._dataSourceApplied?this.applyDataSource(this._dataSource,!0,e):S(this),this._checkColumns()},callbackNames:function(){return["columnsChanged"]},getColumnByPath:function(e,t){var i,n=[];return e.replace(yP,(function(e,t){return n.push(parseInt(t)),""})),n.length&&(i=t?n.reduce((function(e,t){return e&&e.columns&&e.columns[t]}),{columns:t}):function(e,t){var i,n,o=e.getBandColumnsCache(),r=function(e){var t=i?i.index:void 0;return e.ownerBand===t};if(o.isPlain)i=e._columns[t[0]];else{n=e._columns.filter(r);for(var a=0;a<t.length;a++)i=n[t[a]],i&&(n=e._columns.filter(r))}return i}(this,n)),i},optionChanged:function(e){var t;switch(e.name){case"adaptColumnWidthByRatio":e.handled=!0;break;case"dataSource":e.value===e.previousValue||this.option("columns")||Array.isArray(e.value)&&Array.isArray(e.previousValue)||(this._columns=[]);break;case"columns":t=this._skipProcessingColumnsChange,e.handled=!0,this._skipProcessingColumnsChange||(e.name===e.fullName?(this._columnsUserState=null,this._ignoreColumnOptionNames=null,this.init()):(this._columnOptionChanged(e),t=!0)),t&&this._updateRequireResize(e);break;case"commonColumnSettings":case"columnAutoWidth":case"allowColumnResizing":case"allowColumnReordering":case"columnFixing":case"grouping":case"groupPanel":case"regenerateColumnsByVisibleItems":case"customizeColumns":case"columnHidingEnabled":case"dateSerializationFormat":case"columnResizingMode":case"columnMinWidth":case"columnWidth":e.handled=!0;var i="columnWidth"===e.fullName&&["width"];this.reinit(i);break;case"rtlEnabled":this.reinit();break;default:this.callBase(e)}},_columnOptionChanged:function(e){var t={},i=this.getColumnByPath(e.fullName),n=e.fullName.replace(yP,"");i&&(n?t[n]=e.value:t=e.value,this._skipProcessingColumnsChange=e.fullName,this.columnOption(i.index,t),this._skipProcessingColumnsChange=!1)},_updateRequireResize:function(e){var t=this.component;"width"===e.fullName.replace(yP,"")&&t._updateLockCount&&(t._requireResize=!0)},publicMethods:function(){return["addColumn","deleteColumn","columnOption","columnCount","clearSorting","clearGrouping","getVisibleColumns","getVisibleColumnIndex"]},applyDataSource:function(e,t,i){var n=e&&e.isLoaded();if(this._dataSource=e,!this._dataSourceApplied||0===this._dataSourceColumnsCount||t||this.option("regenerateColumnsByVisibleItems")){if(n){if(!this._isColumnsFromOptions){var o=function(e,t){for(var i,n=e._getFirstItems(t),o={},r=[],a=0;a<n.length;a++)if(n[a])for(i in n[a])(0,l.mf)(n[a][i])&&!$f.Z.isWrapped(n[a][i])||(o[i]=!0);for(i in o)if(0!==i.indexOf("__")){var d=s(e,i);r.push(d)}return r}(this,e);o.length&&(D(this,o),this._dataSourceColumnsCount=this._columns.length,T(this))}return this.updateColumns(e,t,i)}this._dataSourceApplied=!1,S(this)}else if(n&&!this.isAllDataTypesDefined(!0)&&this.updateColumnDataTypes(e))return k(this,"columns"),O(this),(new ot.BH).reject().promise()},reset:function(){this._dataSource=null,this._dataSourceApplied=!1,this._dataSourceColumnsCount=void 0,this.reinit()},resetColumnsCache:function(){this._visibleColumns=void 0,this._fixedColumns=void 0,this._rowCount=void 0,$(this)},reinit:function(e){this._columnsUserState=this.getUserState(),this._ignoreColumnOptionNames=e||null,this.init(),e&&(this._ignoreColumnOptionNames=null)},isInitialized:function(){return!!this._columns.length||!!this.option("columns")},isDataSourceApplied:function(){return this._dataSourceApplied},getCommonSettings:function(e){var t=(!e||!e.type)&&this.option("commonColumnSettings")||{},i=this.option("grouping")||{},n=this.option("groupPanel")||{};return(0,a.l)({allowFixing:this.option("columnFixing.enabled"),allowResizing:this.option("allowColumnResizing")||void 0,allowReordering:this.option("allowColumnReordering"),minWidth:this.option("columnMinWidth"),width:this.option("columnWidth"),autoExpandGroup:i.autoExpandAll,allowCollapsing:i.allowCollapsing,allowGrouping:n.allowColumnDragging&&n.visible||i.contextMenuEnabled},t)},isColumnOptionUsed:function(e){for(var t=0;t<this._columns.length;t++)if(this._columns[t][e])return!0},isAllDataTypesDefined:function(e){var t=this._columns;if(!t.length)return!1;for(var i=0;i<t.length;i++)if((t[i].dataField||t[i].calculateCellValue!==t[i].defaultCalculateCellValue)&&(!t[i].dataType||e&&t[i].deserializeValue&&void 0===t[i].serializationFormat))return!1;return!0},getColumns:function(){return this._columns},isBandColumnsUsed:function(){return this.getColumns().some((function(e){return e.isBand}))},getGroupColumns:function(){var e=[];return(0,E.S6)(this._columns,(function(){(0,l.$K)(this.groupIndex)&&(e[this.groupIndex]=this)})),e},_shouldReturnVisibleColumns:function(){return!0},_compileVisibleColumns:function(e){return this._visibleColumns=this._visibleColumns||this._compileVisibleColumnsCore(),e=(0,l.$K)(e)?e:this._visibleColumns.length-1,this._visibleColumns[e]||[]},getVisibleColumns:function(e){return this._shouldReturnVisibleColumns()?this._compileVisibleColumns.apply(this,arguments):[]},getFixedColumns:function(e){return this._fixedColumns=this._fixedColumns||this._getFixedColumnsCore(),e=(0,l.$K)(e)?e:this._fixedColumns.length-1,this._fixedColumns[e]||[]},getFilteringColumns:function(){return this.getColumns().filter((e=>(e.dataField||e.name)&&(e.allowFiltering||e.allowHeaderFiltering))).map((e=>{var t=(0,a.l)(!0,{},e);return(0,l.$K)(t.dataField)||(t.dataField=t.name),t.filterOperations=e.filterOperations!==e.defaultFilterOperations?t.filterOperations:null,t}))},getColumnIndexOffset:function(){return 0},_getFixedColumnsCore:function(){var e,t,i,n=[],o=this.getRowCount(),r=this._isColumnFixing(),a={command:"transparent"},s=0;if(r)for(var d=0;d<=o;d++){e=0,i=null,t=null;for(var u=this.getVisibleColumns(d,!0),c=0;c<u.length;c++){var h=u[c-1],p=u[c];p.fixed?h&&h.fixed&&F(this,h)!==F(this,p)?(0,l.$K)(t)||(t=c):i=p.fixedPosition:(0===d&&(p.isBand&&p.colspan?s+=p.colspan:s++),e++,(0,l.$K)(t)||(t=c))}if(0===d&&(0===e||e>=u.length))return[];(0,l.$K)(t)||(t="right"===i?0:u.length),n[d]=u.slice(0),a.colspan||(a.colspan=s),n[d].splice(t,e,a)}return n.map((e=>e.map((e=>{var t=(0,hn.Z)({},e);return t.headerId&&(t.headerId+="-fixed"),t}))))},_isColumnFixing:function(){var e=this.option("columnFixing.enabled");return!e&&(0,E.S6)(this._columns,(function(t,i){if(i.fixed)return e=!0,!1})),e},_getExpandColumnsCore:function(){return this.getGroupColumns()},getExpandColumns:function(){var e,t=this._getExpandColumnsCore(),i=t.filter((e=>0===e.groupIndex))[0],n=i&&i.fixed,o=this._isColumnFixing(),r=this.option("rtlEnabled");return t.length&&(e=this.columnOption("command:expand")),t=(0,E.UI)(t,(t=>(0,a.l)({},t,{visibleWidth:null,minWidth:null,cellTemplate:(0,l.$K)(t.groupIndex)?null:t.cellTemplate,headerCellTemplate:null,fixed:!(!(0,l.$K)(t.groupIndex)||!n)||o,fixedPosition:r?"right":"left"},e,{index:t.index,type:t.type||vP}))),t},getBandColumnsCache:function(){if(!this._bandColumnsCache){var e=this._columns,t={},i={},n=!0;e.forEach((function(o){var r=o.ownerBand,a=(0,l.Kn)(r)?r.index:r,s=e[a];o.hasColumns&&(n=!1),o.colspan&&(o.colspan=void 0),o.rowspan&&(o.rowspan=void 0),s?i[o.index]=s:a=-1,t[a]=t[a]||[],t[a].push(o)})),this._bandColumnsCache={isPlain:n,columnChildrenByIndex:t,columnParentByIndex:i}}return this._bandColumnsCache},_isColumnVisible:function(e){return e.visible&&this.isParentColumnVisible(e.index)},_compileVisibleColumnsCore:function(){var e,t,i=this,n=[],o=0,r=0,a=i.getRowCount(),s=[],d=[],c=0,h=i.option("rtlEnabled"),f=i.getBandColumnsCache(),g=N(i,i.getExpandColumns(),i._columns),m=N(i,i._columns,i._commandColumns,!0),_=function(e){var t;for(t=0;e>1;t++)e/=10;return t}(m.length);for(function(e,t,i){for(var n,o=0;o<t.length;o++){var r=t[o];(r.visible||r.command)&&(r.isBand&&(r.colspan=r.colspan||p(e,r.index)),r.isBand&&r.colspan||(n=e.getRowCount(),r.command||(0,l.$K)(r.groupIndex)&&!r.showWhenGrouped||(n-=u(r.index,i.columnParentByIndex).length),n>1&&(r.rowspan=n)))}}(i,m,f),e=0;e<a;e++)n[e]=[],d[e]=[{}],s[e]=[{},{},{}];return(0,E.S6)(m,(function(){var n,o=this.visibleIndex,r=u(this.index,f.columnParentByIndex),a=i._isColumnVisible(this);if(a&&(!(0,l.$K)(this.groupIndex)||this.showWhenGrouped)){var p=r.length;if(o<0?(o=-o,n=d[p]):(this.fixed=r.length?r[0].fixed:this.fixed,this.fixedPosition=r.length?r[0].fixedPosition:this.fixedPosition,this.fixed?(t="right"===this.fixedPosition,!h||this.command&&!V(i,this)||(t=!t),n=t?s[p][2]:s[p][0]):n=s[p][1]),r.length)for(o=L(o,_),e=r.length-1;e>=0;e--)o=L(r[e].visibleIndex,_)+o;n[o]=n[o]||[],n[o].push(this),c++}})),(0,E.S6)(n,(function(e){(0,cP.jS)(d[e],(function(t,i){n[e].unshift.apply(n[e],i)}));var t=n[e].length;(0,E.S6)(s[e],(function(t,i){(0,cP.jS)(i,(function(t,i){n[e].push.apply(n[e],i)}))})),r<e+1&&(r+=H.call(i,n[e],g,"detailExpand",t)),o<e+1&&(o+=H.call(i,n[e],g,vP,t))})),n.push(function e(t,i,n){var o=[];return i=i||0,t[i]&&(0,E.S6)(t[i],(function(r,a){a.ownerBand!==n&&a.type!==vP||(a.isBand&&a.colspan?o.push.apply(o,e(t,i+1,a.index)):(!a.command||i<1)&&o.push(a))})),o}(n)),!c&&i._columns.length&&n[a].push({command:"empty"}),n},getInvisibleColumns:function(e,t){var i,n=this,o=[];return e=e||n._columns,(0,E.S6)(e,(function(e,r){if(r.ownerBand===t)return r.isBand?(i=r.visible?n.getInvisibleColumns(n.getChildrenByBandColumn(r.index),r.index):n.getChildrenByBandColumn(r.index),void(i.length&&(o.push(r),o=o.concat(i)))):void(r.visible||o.push(r))})),o},getChooserColumns:function(e){var t=e?this.getColumns():this.getInvisibleColumns(),i=t.filter((e=>e.showInColumnChooser)),n=this.option("columnChooser.sortOrder");return((e,t)=>{if("asc"!==t&&"desc"!==t)return e;var i="asc"===t?1:-1;return e.sort((function(e,t){var n=e.caption||"",o=t.caption||"";return i*n.localeCompare(o)})),e})(i,n)},allowMoveColumn:function(e,t,i,n){var o=x(this,e,i),r=this._columns[o];return!(!r||!(r.allowReordering||r.allowGrouping||r.allowHiding))&&(i===n?"columnChooser"!==i&&(e=(0,l.Kn)(e)?e.columnIndex:e,t=(0,l.Kn)(t)?t.columnIndex:t,e!==t&&e+1!==t):"group"===i&&"columnChooser"!==n||"group"===n?r&&r.allowGrouping:"columnChooser"!==i&&"columnChooser"!==n||r&&r.allowHiding)},moveColumn:function(e,t,i,n){var o,r,a={},s=x(this,e,i),d=x(this,t,n);if(s>=0){var u=this._columns[s];if(t=(0,l.Kn)(t)?t.columnIndex:t,r=d>=0?this._columns[d].groupIndex:-1,(0,l.$K)(u.groupIndex)&&"group"===i&&(r>u.groupIndex&&r--,"group"!==n?a.groupIndex=void 0:(o=u.groupIndex,delete u.groupIndex,b(this))),"group"===n)a.groupIndex=function(e,t,i){var n,o=e.getGroupColumns();if(i>=0)for(n=0;n<o.length;n++)o[n].groupIndex>=i&&o[n].groupIndex++;else for(i=0,n=0;n<o.length;n++)i=Math.max(i,o[n].groupIndex+1);return i}(this,0,r),u.groupIndex=o;else if(t>=0){var c=this._columns[d];c&&u.ownerBand===c.ownerBand?Z(this,u)^Z(this,c)?a.visibleIndex=_P:a.visibleIndex=c.visibleIndex:a.visibleIndex=_P}var h="columnChooser"!==n;u.visible!==h&&(a.visible=h),this.columnOption(u.index,a)}},changeSortOrder:function(e,t){var i={},n=this.option("sorting"),o=n&&n.mode,r="single"===o||!t,a="single"===o||"multiple"===o,s=this._columns[e];a&&s&&s.allowSorting&&(r&&!(0,l.$K)(s.groupIndex)&&(0,E.S6)(this._columns,(function(t){t!==e&&this.sortOrder&&((0,l.$K)(this.groupIndex)||delete this.sortOrder,delete this.sortIndex)})),R(t)?s.sortOrder!==t&&(i.sortOrder=t):"none"===t?s.sortOrder&&(i.sortIndex=void 0,i.sortOrder=void 0):function(e){if("ctrl"===t){if(!("sortOrder"in e)||!("sortIndex"in e))return!1;i.sortOrder=void 0,i.sortIndex=void 0}else(0,l.$K)(e.groupIndex)||(0,l.$K)(e.sortIndex)?i.sortOrder="desc"===e.sortOrder?"asc":"desc":i.sortOrder="asc"}(s)),this.columnOption(s.index,i)},getSortDataSourceParameters:function(e){var t=[],i=[];return(0,E.S6)(this._columns,(function(){(this.dataField||this.selector||this.calculateCellValue)&&(0,l.$K)(this.sortIndex)&&!(0,l.$K)(this.groupIndex)&&(t[this.sortIndex]=this)})),(0,E.S6)(t,(function(){var t=this&&this.sortOrder;if(R(t)){var n={selector:this.calculateSortValue||this.displayField||this.calculateDisplayValue||e&&this.selector||this.dataField||this.calculateCellValue,desc:"desc"===this.sortOrder};this.sortingMethod&&(n.compare=this.sortingMethod.bind(this)),i.push(n)}})),i.length>0?i:null},getGroupDataSourceParameters:function(e){var t=[];return(0,E.S6)(this.getGroupColumns(),(function(){var i=this.calculateGroupValue||this.displayField||this.calculateDisplayValue||e&&this.selector||this.dataField||this.calculateCellValue;if(i){var n={selector:i,desc:"desc"===this.sortOrder,isExpanded:!!this.autoExpandGroup};this.sortingMethod&&(n.compare=this.sortingMethod.bind(this)),t.push(n)}})),t.length>0?t:null},refresh:function(e){var t=[];return(0,E.S6)(this._columns,(function(){var i=this.lookup;if(i&&!this.calculateDisplayValue){if(e&&i.valueMap)return;i.update&&t.push(i.update())}})),ot.gx.apply(o.Z,t).done(I.bind(null,this))},_updateColumnOptions:function(e,i){e.selector=e.selector||function(t){return e.calculateCellValue(t)},(0,E.S6)(["calculateSortValue","calculateGroupValue","calculateDisplayValue"],(function(t,n){var o=e[n];if((0,l.mf)(o))if(o.originalCallback)e[n].context.column=e;else{var r={column:e};e[n]=function(e){return o.call(r.column,e)},e[n].originalCallback=o,e[n].columnIndex=i,e[n].context=r}})),(0,l.HD)(e.calculateDisplayValue)&&(e.displayField=e.calculateDisplayValue,e.calculateDisplayValue=(0,r.vb)(e.displayField)),e.calculateDisplayValue&&(e.displayValueMap=e.displayValueMap||{}),m(e,e.dataType);var o=e.lookup;o&&m(o,o.dataType);var a=o?o.dataType:e.dataType;a&&(e.alignment=e.alignment||function(e,t){switch(e){case"number":return"right";case"boolean":return"center";default:return Ae(t)}}(a,this.option("rtlEnabled")),e.format=e.format||FD.getFormatByDataType(a),e.customizeText=e.customizeText||y(a),e.defaultFilterOperations=e.defaultFilterOperations||!o&&t[a]||[],(0,l.$K)(e.filterOperations)||n(e),e.defaultFilterOperation=e.filterOperations&&e.filterOperations[0]||"=",e.showEditorAlways=(0,l.$K)(e.showEditorAlways)?e.showEditorAlways:"boolean"===a&&!e.cellTemplate&&!e.lookup)},updateColumnDataTypes:function(e){var t=this,i=t.option("dateSerializationFormat"),n=t._getFirstItems(e),o=!1;return(0,E.S6)(t._columns,(function(e,r){var a,s,l,d,u,c=r.lookup;if(FD.isDateType(r.dataType)&&void 0===r.serializationFormat&&(r.serializationFormat=i),c&&FD.isDateType(c.dataType)&&void 0===r.serializationFormat&&(c.serializationFormat=i),r.calculateCellValue&&n.length){if(!r.dataType||c&&!c.dataType){for(a=0;a<n.length;a++)s=r.calculateCellValue(n[a]),r.dataType||(u=f(s),l=l||u,l&&u&&l!==u&&(l="string")),c&&!c.dataType&&(u=f(FD.getDisplayValue(r,s,n[a])),d=d||u,d&&u&&d!==u&&(d="string"));(l||d)&&(l&&(r.dataType=l),c&&d&&(c.dataType=d),o=!0)}if(void 0===r.serializationFormat||c&&void 0===c.serializationFormat)for(a=0;a<n.length;a++)s=r.calculateCellValue(n[a],!0),void 0===r.serializationFormat&&(r.serializationFormat=g(r.dataType,s)),c&&void 0===c.serializationFormat&&(c.serializationFormat=g(c.dataType,c.calculateCellValue(s,!0)))}t._updateColumnOptions(r,e)})),o},_customizeColumns:function(e){var t=this.option("customizeColumns");if(t){var i=e.some((function(e){return(0,l.Kn)(e.ownerBand)}));i&&S(this),t(e),D(this,d(this,e))}},updateColumns:function(e,t,i){if(t||this.updateSortingGrouping(e),!e||e.isLoaded()){var n=e?e.sort()||[]:this.getSortDataSourceParameters(),o=e?e.group()||[]:this.getGroupDataSourceParameters(),r=null===e||void 0===e?void 0:e.lastLoadOptions().filter;i||this._customizeColumns(this._columns),S(this);var a=this._columns;return(0,ot.gx)(this.refresh(!0)).always((()=>{this._columns===a&&(this._updateChanges(e,{sorting:n,grouping:o,filtering:r}),O(this))}))}},_updateChanges:function(e,t){e&&(this.updateColumnDataTypes(e),this._dataSourceApplied=!0),FD.equalSortParameters(t.sorting,this.getSortDataSourceParameters())||k(this,"sorting"),FD.equalSortParameters(t.grouping,this.getGroupDataSourceParameters())||k(this,"grouping");var i=this.getController("data");i&&!FD.equalFilterParameters(t.filtering,i.getCombinedFilter())&&k(this,"filtering"),k(this,"columns")},updateSortingGrouping:function(e,t){var i,n,o=this,r=function(e,i,n){(0,E.S6)(e,(function(e,o){if(delete o[n],i)for(var r=0;r<i.length;r++){var a=i[r].selector,s=i[r].isExpanded;if(a===o.dataField||a===o.name||a===o.selector||a===o.calculateCellValue||a===o.calculateGroupValue||a===o.calculateDisplayValue){o.sortOrder=t?"sortOrder"in o?o.sortOrder:i[r].desc?"desc":"asc":o.sortOrder||(i[r].desc?"desc":"asc"),void 0!==s&&(o.autoExpandGroup=s),o[n]=r;break}}}))};if(e){i=FD.normalizeSortingInfo(e.sort());var a=FD.normalizeSortingInfo(e.group()),s=o.getGroupDataSourceParameters(),u=o.getSortDataSourceParameters(),c=!FD.equalSortParameters(a,s,!0),h=!c&&!FD.equalSortParameters(a,s);o._columns.length||((0,E.S6)(a,(function(e,t){o._columns.push(t.selector)})),(0,E.S6)(i,(function(e,t){(0,l.mf)(t.selector)||o._columns.push(t.selector)})),D(o,d(o,o._columns))),!t&&(s||o._hasUserState)||!c&&!h||(r(o._columns,a,"groupIndex"),t&&(c&&k(o,"grouping"),h&&k(o,"groupExpanding"),n=!0)),!t&&(u||o._hasUserState)||FD.equalSortParameters(i,u)||(r(o._columns,i,"sortIndex"),t&&(k(o,"sorting"),n=!0)),n&&O(o)}},updateFilter:function(e,t,i,n){if(!Array.isArray(e))return e;if(e=(0,a.l)([],e),i=void 0!==e.columnIndex?e.columnIndex:i,n=void 0!==e.filterValue?e.filterValue:n,(0,l.HD)(e[0])&&"!"!==e[0]){var o=this.columnOption(e[0]);t?(0,Oe.Z)().forceIsoDateParsing&&o&&o.serializeValue&&e.length>1&&(e[e.length-1]=o.serializeValue(e[e.length-1],"filter")):o&&o.selector&&(e[0]=o.selector,e[0].columnIndex=o.index)}else(0,l.mf)(e[0])&&(e[0].columnIndex=i,e[0].filterValue=n);for(var r=0;r<e.length;r++)e[r]=this.updateFilter(e[r],t,i,n);return e},columnCount:function(){return this._columns?this._columns.length:0},columnOption:function(e,t,i,n){var o=this,r=o._columns.concat(o._commandColumns),s=W(r,e);if(s){if(1===arguments.length)return(0,a.l)({},s);if((0,l.HD)(t)){if(2===arguments.length)return M(o,s,t);M(o,s,t,i,n)}else(0,l.Kn)(t)&&(0,E.S6)(t,(function(e,t){M(o,s,e,t,n)}));O(o)}},clearSorting:function(){var e=this.columnCount();this.beginUpdate();for(var t=0;t<e;t++)this.columnOption(t,"sortOrder",void 0);this.endUpdate()},clearGrouping:function(){var e=this.columnCount();this.beginUpdate();for(var t=0;t<e;t++)this.columnOption(t,"groupIndex",void 0);this.endUpdate()},getVisibleIndex:function(e,t){for(var i=this.getVisibleColumns(t),n=i.length-1;n>=0;n--)if(i[n].index===e)return n;return-1},getVisibleIndexByColumn:function(e,t){var i=this.getVisibleColumns(t),n=i.filter((t=>t.index===e.index&&t.command===e.command))[0];return i.indexOf(n)},getVisibleColumnIndex:function(e,t){var i=this.columnOption(e,"index");return this.getVisibleIndex(i,t)},addColumn:function(e){var t=s(this,e),i=this._columns.length;this._columns.push(t),t.isBand&&(this._columns=d(this,this._columns),t=this._columns[i]),t.added=e,S(this,t),this.updateColumns(this._dataSource),this._checkColumns()},deleteColumn:function(e){var t,i=this.columnOption(e);if(i&&i.index>=0){if(t=this._columns,t.forEach((e=>{(0,l.$K)(e.ownerBand)&&(e.ownerBand=t[e.ownerBand])})),this._columns.splice(i.index,1),i.isBand){var n=this.getChildrenByBandColumn(i.index).map((e=>e.index));this._columns=this._columns.filter((e=>n.indexOf(e.index)<0))}S(this),this.updateColumns(this._dataSource)}},addCommandColumn:function(e){var t=this._commandColumns.filter((t=>t.command===e.command))[0];t||(t=e,this._commandColumns.push(t))},getUserState:function(){var e,t=this._columns,i=[];function n(n,o){void 0!==t[e][o]&&(i[e][o]=t[e][o])}for(e=0;e<t.length;e++)i[e]={},(0,E.S6)(fP,n);return i},setName:function(e){e.name=e.name||e.dataField||e.type},setUserState:function(e){var t=this._dataSource,i=this.option("stateStoring.ignoreColumnOptionNames");if(null===e||void 0===e||e.forEach(this.setName),!i){i=[];var n=this.getCommonSettings();this.option("columnChooser.enabled")||i.push("visible"),"none"===this.option("sorting.mode")&&i.push("sortIndex","sortOrder"),n.allowGrouping||i.push("groupIndex"),n.allowFixing||i.push("fixed","fixedPosition"),n.allowResizing||i.push("width","visibleWidth");var o=!this.option("filterPanel.visible");!this.option("filterRow.visible")&&o&&i.push("filterValue","selectedFilterOperation"),!this.option("headerFilter.visible")&&o&&i.push("filterValues","filterType")}this._columnsUserState=e,this._ignoreColumnOptionNames=i,this._hasUserState=!!e,k(this,"filtering"),this.init(!0),t&&(t.sort(this.getSortDataSourceParameters()),t.group(this.getGroupDataSourceParameters()))},_checkColumns:function(){var e={},t=!1,i=[];this._columns.forEach((n=>{var o,r=n.name,a=null===(o=n.columns)||void 0===o?void 0:o.length,s=n.allowEditing&&(n.dataField||n.setCellValue)&&!a;r?(e[r]&&i.push('"'.concat(r,'"')),e[r]=!0):s&&(t=!0)})),i.length&&Xt.Z.log("E1059",i.join(", ")),t&&Xt.Z.log("E1060")},_createCalculatedColumnOptions:function(e,t){var i={},n=e.dataField;if((Array.isArray(e.columns)&&e.columns.length||e.isBand)&&(i.isBand=!0,n=null),n){if((0,l.HD)(n)){var o=(0,r.vb)(n);i={caption:(0,sn.GK)(n),calculateCellValue:function(e,t){var i=o(e);return this.deserializeValue&&!t?this.deserializeValue(i):i},setCellValue:B,parseValue:function(e){var t,i;return"number"===this.dataType?(0,l.HD)(e)&&this.format?t=function(e,t){var i=kn.Z.parse(e);if((0,l.kE)(i)){var n=kn.Z.format(i,t),o=kn.Z.format(i,"decimal");if(n===e||o===e)return i}}(e.trim(),this.format):(0,l.$K)(e)&&(0,l.kE)(e)&&(t=Number(e)):"boolean"===this.dataType?e===this.trueText?t=!0:e===this.falseText&&(t=!1):FD.isDateType(this.dataType)?(i=gy.Z.parse(e,this.format),i&&(t=i)):t=e,t}}}i.allowFiltering=!0}else i.allowFiltering=!!e.calculateFilterExpression;return i.calculateFilterExpression=function(){return fD.defaultCalculateFilterExpression.apply(this,arguments)},i.createFilterExpression=function(e){var t;return this.calculateFilterExpression&&(t=this.calculateFilterExpression.apply(this,arguments)),(0,l.mf)(t)&&(t=[t,"=",!0]),t&&(t.columnIndex=this.index,t.filterValue=e),t},n&&(0,l.HD)(n)||(0,a.l)(!0,i,{allowSorting:!1,allowGrouping:!1,calculateCellValue:function(){return null}}),t&&(i.allowFixing=!1),e.dataType&&(i.userDataType=e.dataType),e.selectedFilterOperation&&!("defaultSelectedFilterOperation"in i)&&(i.defaultSelectedFilterOperation=e.selectedFilterOperation),e.lookup&&(i.lookup={calculateCellValue:function(e,t){return this.valueExpr&&(e=this.valueMap&&this.valueMap[e]),this.deserializeValue&&!t?this.deserializeValue(e):e},updateValueMap:function(){if(this.valueMap={},this.items)for(var e=(0,r.vb)(this.valueExpr),t=(0,r.vb)(this.displayExpr),i=0;i<this.items.length;i++){var n=this.items[i],o=t(n);this.valueMap[e(n)]=o,this.dataType=this.dataType||f(o)}},update:function(){var e=this,t=e.dataSource;if(t)if((0,l.mf)(t)&&!$f.Z.isWrapped(t)&&(t=t({})),(0,l.PO)(t)||t instanceof hP.Z||Array.isArray(t)){if(e.valueExpr){var i=(0,hu.aN)(t);return i.paginate=!1,t=new cu.o(i),t.load().done((function(t){e.items=t,e.updateValueMap&&e.updateValueMap()}))}}else Xt.Z.log("E1016");else e.updateValueMap&&e.updateValueMap()}}),i.resizedCallbacks=(0,Sc["default"])(),e.resized&&i.resizedCallbacks.add(e.resized.bind(e)),(0,E.S6)(i,(function(e){if((0,l.mf)(i[e])&&0!==e.indexOf("default")){var t="default"+e.charAt(0).toUpperCase()+e.substr(1);i[t]=i[e]}})),i},getRowCount:function(){return this._rowCount=this._rowCount||function(e){var t=1,i=e.getBandColumnsCache(),n=i.columnParentByIndex;return e._columns.forEach((function(e){var i=u(e.index,n),o=i.filter((function(e){return!e.visible}));e.visible&&!o.length&&(t=Math.max(t,i.length+1))})),t}(this),this._rowCount},getRowIndex:function(e,t){var i=this._columns[e],n=this.getBandColumnsCache();return i&&(t||i.visible&&!i.command&&!(0,l.$K)(i.groupIndex))?u(e,n.columnParentByIndex).length:0},getChildrenByBandColumn:function(e,t){var i=this.getBandColumnsCache(),n=c(e,i.columnChildrenByIndex,!t);return t?n.filter((function(e){return e.visible&&!e.command})).sort((function(e,t){return e.visibleIndex-t.visibleIndex})):n},isParentBandColumn:function(e,t){var i=!1,n=this._columns[e],o=this.getBandColumnsCache(),r=n&&u(e,o.columnParentByIndex);return r&&(0,E.S6)(r,(function(e,n){if(n.index===t)return i=!0,!1})),i},isParentColumnVisible:function(e){var t=!0,i=this.getBandColumnsCache(),n=e>=0&&u(e,i.columnParentByIndex);return n&&(0,E.S6)(n,(function(e,i){return t=t&&i.visible,t})),t},getColumnId:function(e){return e.command&&e.type===vP?V(this,e)?"type:"+e.type:"command:"+e.command:e.index},getCustomizeTextByDataType:y,getHeaderContentAlignment:function(e){var t=this.option("rtlEnabled");return t?"left"===e?"right":"left":e}}}())}},xP=bP.controllers.columns.inherit({_getFirstItems:function(e){return this.callBase(e).map((function(e){return e.data}))},getFirstDataColumnIndex:function(){for(var e=this.getVisibleColumns(),t=e.length,i=0,n=0;n<=t-1;n++)if(!(0,l.$K)(e[n].command)){i=e[n].index;break}return i}});zO.registerModule("columns",{defaultOptions:bP.defaultOptions,controllers:{columns:xP}});var wP=(0,hn.Z)({},KO,FD,{modules:[]}),TP=wP.Controller.inherit(function(){function e(t,i){if(t&&(t=t.slice(0),i))for(var n=0;n<t.length;n++)t[n]=(0,a.l)({key:t[n].key},t[n]),t[n].items=e(t[n].items,i-1);return t}function t(e,t,i){var n={reload:!0,fullReload:!0};return t&&(n={sorting:!wP.equalSortParameters(e.sort,t.sort),grouping:!wP.equalSortParameters(e.group,t.group,!0),groupExpanding:!wP.equalSortParameters(e.group,t.group)||t.groupExpand,filtering:!wP.equalFilterParameters(e.filter,t.filter),pageIndex:e.pageIndex!==t.pageIndex,skip:e.skip!==t.skip,take:e.take!==t.take,pageSize:e.pageSize!==t.pageSize,fullReload:i},n.reload=i||n.sorting||n.grouping||n.filtering,n.paging=n.pageIndex||n.pageSize||n.take),n}function i(e,t){var i=wP.normalizeSortingInfo(e.group||e.storeLoadOptions.group||e.loadOptions.group).length,o=[];if(n(o,e,i))return o;t&&function(e,t,i){var o=e.length,{storeLoadOptions:r}=t;if(void 0!==r.skip&&r.take&&!i){var a=[];n(a,t,i,!0);var s,l,d=a.length;if(o||d)t.skip=null!==(s=t.skip)&&void 0!==s?s:r.skip,t.take=null!==(l=t.take)&&void 0!==l?l:r.take;o&&(r.skip+=o,r.take-=o,t.cachedDataPartBegin=e),d&&(r.take-=d,t.cachedDataPartEnd=a.reverse())}}(o,e,i)}function n(e,t,i,n){var r,a,s,{storeLoadOptions:l}=t,d=null!==(r=null!==(a=t.take)&&void 0!==a?a:l.take)&&void 0!==r?r:0,u=null===(s=t.cachedData)||void 0===s?void 0:s.items;if(d&&u){for(var c,h,p=null!==(c=null!==(h=t.skip)&&void 0!==h?h:l.skip)&&void 0!==c?c:0,f=0;f<d;f++){var g=n?d-1-f:f,m=g+p,_=u[m];if(void 0===_&&m in u)return!0;var v=o(t,_,i,g,d);if(!v)return!1;e.push(v)}return!0}return!1}function o(e,t,i,n,o){if(i&&t){var r=0===n&&e.skips||[],a=n===o-1&&e.takes||[];return function e(t,i,n,o){if(i&&t){var r=(0,hn.Z)({},t),a=n[0]||0,s=o[0],l=t.items;if(l){if(void 0===s&&!l[a])return;r.items=[],n.length&&(r.isContinuation=!0),o.length&&(r.isContinuationOnNextPage=!0);for(var d=0;void 0===s?l[d+a]:d<s;d++){var u=l[d+a],c=d+1===s,h=e(u,i-1,0===d?n.slice(1):[],c?o.slice(1):[]);if(void 0===h)return;r.items.push(h)}}return r}return t}(t,i,r,a)}return t}function r(e,t,i,n){if(i&&t){var o=(0,hn.Z)({},t);delete o.isContinuation,delete o.isContinuationOnNextPage;var a=n[0]||0;return t.items&&(o.items=(null===e||void 0===e?void 0:e.items)||{},t.items.forEach(((e,t)=>{var s=t+a,l=0===t?n.slice(1):[];o.items[s]=r(o.items[s],e,i-1,l)}))),o}return t}return{init:function(e,t){var i=this;i._dataSource=e,i._remoteOperations=t||{},i._isLastPage=!e.isLastPage(),i._hasLastPage=!1,i._currentTotalCount=0,i._cachedData={items:{}},i._lastOperationTypes={},i._eventsStrategy=e._eventsStrategy,i._totalCountCorrection=0,i._isLoadingAll=!1,i.changed=(0,Sc["default"])(),i.loadingChanged=(0,Sc["default"])(),i.loadError=(0,Sc["default"])(),i.customizeStoreLoadOptions=(0,Sc["default"])(),i.changing=(0,Sc["default"])(),i.pushed=(0,Sc["default"])(),i._dataChangedHandler=i._handleDataChanged.bind(i),i._customizeStoreLoadOptionsHandler=i._handleCustomizeStoreLoadOptions.bind(i),i._dataLoadedHandler=i._handleDataLoaded.bind(i),i._loadingChangedHandler=i._handleLoadingChanged.bind(i),i._loadErrorHandler=i._handleLoadError.bind(i),i._pushHandler=i._handlePush.bind(i),i._changingHandler=i._handleChanging.bind(i),e.on("changed",i._dataChangedHandler),e.on("customizeStoreLoadOptions",i._customizeStoreLoadOptionsHandler),e.on("customizeLoadResult",i._dataLoadedHandler),e.on("loadingChanged",i._loadingChangedHandler),e.on("loadError",i._loadErrorHandler),e.on("changing",i._changingHandler),e.store().on("beforePush",i._pushHandler),(0,E.S6)(e,(function(e,t){!i[e]&&(0,l.mf)(t)&&(i[e]=function(){return this._dataSource[e].apply(this._dataSource,arguments)})}))},remoteOperations:function(){return this._remoteOperations},dispose:function(e){var t=this._dataSource,i=t.store();t.off("changed",this._dataChangedHandler),t.off("customizeStoreLoadOptions",this._customizeStoreLoadOptionsHandler),t.off("customizeLoadResult",this._dataLoadedHandler),t.off("loadingChanged",this._loadingChangedHandler),t.off("loadError",this._loadErrorHandler),t.off("changing",this._changingHandler),i&&i.off("beforePush",this._pushHandler),e||t.dispose()},refresh:function(e,t){var i=this._dataSource;t.reload&&(this.resetCurrentTotalCount(),this._isLastPage=!i.paginate(),this._hasLastPage=this._isLastPage)},resetCurrentTotalCount:function(){this._currentTotalCount=0,this._totalCountCorrection=0},resetCache:function(){this._cachedStoreData=void 0,this._cachedPagingData=void 0},resetPagesCache:function(){this._cachedData={items:{}}},_needClearStoreDataCache:function(){var e=this.remoteOperations(),i=t(this._lastLoadOptions||{},{}),n=Object.keys(e).every((t=>!i[t]||!e[t]));return!n},push:function(e,t){var i=this.store();this._needClearStoreDataCache()&&(this._cachedStoreData=void 0),this._cachedPagingData=void 0,this.resetPagesCache(!0),this._cachedStoreData&&(0,qc.ii)({keyInfo:i,data:this._cachedStoreData,changes:e}),t||this._applyBatch(e),this.pushed.fire(e)},getDataIndexGetter:function(){if(!this._dataIndexGetter){var e,t,i=this.store();this._dataIndexGetter=n=>{var o=t&&t!==this._cachedStoreData;if(!e||o){t=this._cachedStoreData||[],e={};for(var r=0;r<t.length;r++)e[(0,v.k3)(i.keyOf(t[r]))]=r}return e[(0,v.k3)(i.keyOf(n))]}}return this._dataIndexGetter},_getKeyInfo:function(){return this.store()},_needToCopyDataObject:()=>!0,_applyBatch:function(e,t){var i=this._getKeyInfo(),n=this._dataSource,o=wP.normalizeSortingInfo(this.group()).length,r="reshape"===this.option("editing.refreshMode"),a="virtual"===this.option("scrolling.mode");e=e.filter((function(e){return!n.paginate()||"insert"!==e.type||void 0!==e.index}));var s=()=>o?this.itemsCount():this.items().length,l=s();(0,qc.ii)({keyInfo:i,data:this._items,changes:e,groupCount:o,useInsertIndex:!0,skipCopying:!this._needToCopyDataObject()}),(0,qc.ii)({keyInfo:i,data:n.items(),changes:e,groupCount:o,useInsertIndex:!0,skipCopying:!this._needToCopyDataObject()});var d=this._currentTotalCount>0||(t||!r)&&a;d&&(this._totalCountCorrection+=s()-l),e.splice(0,e.length)},_handlePush:function(e){var{changes:t}=e;this.push(t,!0)},_handleChanging:function(e){this.changing.fire(e),this._applyBatch(e.changes,!0)},_needCleanCacheByOperation:function(e,t){var i=["filtering","sorting","paging"],n=i.indexOf(e),o=n>=0?i.slice(n):[e];return o.some((e=>t[e]))},_customizeRemoteOperations:function(e,t){var i=this._cachedStoreData,n=this._cachedPagingData,o=this._cachedData;(e.storeLoadOptions.filter&&!e.remoteOperations.filtering||e.storeLoadOptions.sort&&!e.remoteOperations.sorting)&&(e.remoteOperations={filtering:e.remoteOperations.filtering,summary:e.remoteOperations.summary}),t.fullReload?(i=void 0,n=void 0,o={items:{}}):(t.reload?(n=void 0,o={items:{}}):t.groupExpanding&&(o={items:{}}),(0,E.S6)(t,((t,o)=>{o&&this._needCleanCacheByOperation(t,e.remoteOperations)&&(i=void 0,n=void 0)}))),n&&(e.remoteOperations.paging=!1),e.cachedStoreData=i,e.cachedPagingData=n,e.cachedData=o,e.isCustomLoading||(this._cachedStoreData=i,this._cachedPagingData=n,this._cachedData=o)},_handleCustomizeStoreLoadOptions(e){var t;this._handleDataLoading(e),0!==(null===(t=e.data)||void 0===t?void 0:t.length)&&(e.data=i(e,!0)||e.cachedStoreData)},_handleDataLoading:function(e){var i=this._dataSource,n=this._lastLoadOptions;this.customizeStoreLoadOptions.fire(e),e.delay=this.option("loadingTimeout"),e.originalStoreLoadOptions=e.storeLoadOptions,e.remoteOperations=(0,a.l)({},this.remoteOperations());var o=!this.isLoaded()&&!this._isRefreshing;this.option("integrationOptions.renderedOnServer")&&!this.isLoaded()&&(e.delay=void 0);var r=(0,a.l)({pageIndex:this.pageIndex(),pageSize:this.pageSize()},e.storeLoadOptions),s=t(r,n,o);if(this._customizeRemoteOperations(e,s),!e.isCustomLoading){var l=this._isRefreshing;e.pageIndex=i.pageIndex(),e.lastLoadOptions=r,e.operationTypes=s,this._loadingOperationTypes=s,this._isRefreshing=!0,(0,ot.gx)(l||this._isRefreshed||this.refresh(e,s)).done((()=>{this._lastOperationId===e.operationId&&(this._isRefreshed=!0,this.load().always((()=>{this._isRefreshed=!1})))})).fail((()=>{i.cancel(e.operationId)})).always((()=>{this._isRefreshing=!1})),i.cancel(this._lastOperationId),this._lastOperationId=e.operationId,this._isRefreshing&&i.cancel(this._lastOperationId)}this._handleDataLoadingCore(e)},_handleDataLoadingCore:function(e){var t=e.remoteOperations;e.loadOptions={};var i=e.cachedData.extra,n={filter:!t.filtering,sort:!t.sorting,group:!t.grouping,summary:!t.summary,skip:!t.paging,take:!t.paging,requireTotalCount:i&&"totalCount"in i||!t.paging};(0,E.S6)(e.storeLoadOptions,(function(t,i){n[t]&&(e.loadOptions[t]=i,delete e.storeLoadOptions[t])})),i&&(e.extra=i)},_handleDataLoaded:function(t){var n=t.loadOptions,o=t.remoteOperations&&!t.remoteOperations.paging,s=t.cachedData,d=t.storeLoadOptions,u=!1!==this.option("cacheEnabled")&&d,c=u&&!t.isCustomLoading&&s&&(!o||d.group),h=u&&o,p=h&&!t.isCustomLoading;if(n){o&&(t.skip=n.skip,t.take=n.take,delete n.skip,delete n.take),n.group&&(n.group=t.group||n.group);var f,g,m=wP.normalizeSortingInfo(t.group||d.group||n.group).length;if(t.cachedDataPartBegin&&(t.data=t.cachedDataPartBegin.concat(t.data)),t.cachedDataPartEnd&&(t.data=t.data.concat(t.cachedDataPartEnd)),!c||!i(t))h&&t.cachedPagingData?t.data=e(t.cachedPagingData,m):(p&&(this._cachedStoreData?t.mergeStoreLoadData&&(t.data=this._cachedStoreData=this._cachedStoreData.concat(t.data)):this._cachedStoreData=e(t.data,wP.normalizeSortingInfo(d.group).length)),new xw.Z(t.data).load(n).done((i=>{t.data=i,p&&(this._cachedPagingData=e(t.data,m))})).fail((e=>{t.data=(new ot.BH).reject(e)}))),n.requireTotalCount&&o&&(t.extra=(0,l.PO)(t.extra)?t.extra:{},t.extra.totalCount=t.data.length),t.extra&&t.extra.totalCount>=0&&(!1===d.requireTotalCount||!1===n.requireTotalCount)&&(t.extra.totalCount=-1),!n.data&&(d.requireTotalCount||(null!==(f=null===(g=t.extra)||void 0===g?void 0:g.totalCount)&&void 0!==f?f:-1)>=0)&&(this._totalCountCorrection=0),this._handleDataLoadedCore(t),c&&(s.extra=s.extra||(0,a.l)({},t.extra),(0,ot.gx)(t.data).done((e=>{!function(e,t,i){for(var n,o,a,s,{storeLoadOptions:l}=e,d=null!==(n=null!==(o=e.skip)&&void 0!==o?o:l.skip)&&void 0!==n?n:0,u=null!==(a=null!==(s=e.take)&&void 0!==s?s:l.take)&&void 0!==a?a:0,c=0;c<u;c++){var h=c+d,p=e.cachedData.items,f=0===c&&e.skips||[];p[h]=r(p[h],t[c],i,f)}}(t,e,m)})));(0,ot.gx)(t.data).done((()=>{t.lastLoadOptions&&(this._lastLoadOptions=t.lastLoadOptions,Object.keys(t.operationTypes).forEach((e=>{this._lastOperationTypes[e]=this._lastOperationTypes[e]||t.operationTypes[e]})))})),t.storeLoadOptions=t.originalStoreLoadOptions}else this._dataSource.cancel(t.operationId)},_handleDataLoadedCore:function(e){e.remoteOperations&&!e.remoteOperations.paging&&Array.isArray(e.data)&&(void 0!==e.skip&&(e.data=e.data.slice(e.skip)),void 0!==e.take&&(e.data=e.data.slice(0,e.take)))},_handleLoadingChanged:function(e){this.loadingChanged.fire(e)},_handleLoadError:function(e){this.loadError.fire(e),this.changed.fire({changeType:"loadError",error:e})},_loadPageSize:function(){return this.pageSize()},_handleDataChanged:function(e){var t,i=this._dataSource,n=!1,o=!e||(0,l.$K)(e.changeType),r=this.itemsCount();o&&(this._isLastPage=!r||!this._loadPageSize()||r<this._loadPageSize(),this._isLastPage&&(this._hasLastPage=!0)),i.totalCount()>=0?i.pageIndex()>=this.pageCount()&&(i.pageIndex(this.pageCount()-1),this.pageIndex(i.pageIndex()),this.resetPagesCache(),i.load(),n=!0):o&&(t=i.pageIndex()*this.pageSize()+r,t>this._currentTotalCount&&(this._currentTotalCount=t,0!==i.pageIndex()&&this.option("scrolling.legacyMode")||(this._totalCountCorrection=0)),0===r&&i.pageIndex()>=this.pageCount()&&(i.pageIndex(this.pageCount()-1),"infinite"!==this.option("scrolling.mode")&&(i.load(),n=!0))),n||(this._operationTypes=this._lastOperationTypes,this._lastOperationTypes={},this.component._optionCache={},this.changed.fire(e),this.component._optionCache=void 0)},_scheduleCustomLoadCallbacks:function(e){var t=this;t._isCustomLoading=!0,e.always((function(){t._isCustomLoading=!1}))},loadingOperationTypes:function(){return this._loadingOperationTypes},operationTypes:function(){return this._operationTypes},lastLoadOptions:function(){return this._lastLoadOptions||{}},isLastPage:function(){return this._isLastPage},_dataSourceTotalCount:function(){return this._dataSource.totalCount()},totalCount:function(){return parseInt((this._currentTotalCount||this._dataSourceTotalCount())+this._totalCountCorrection)},totalCountCorrection:function(){return this._totalCountCorrection},itemsCount:function(){return this._dataSource.items().length},totalItemsCount:function(){return this.totalCount()},pageSize:function(){var e=this._dataSource;return arguments.length||e.paginate()?e.pageSize.apply(e,arguments):0},pageCount:function(){var e=this.totalItemsCount()-this._totalCountCorrection,t=this.pageSize();return t&&e>0?Math.max(1,Math.ceil(e/t)):1},hasKnownLastPage:function(){return this._hasLastPage||this._dataSource.totalCount()>=0},loadFromStore:function(e,t){var i=this._dataSource,n=new ot.BH;if(i)return t=t||i.store(),t.load(e).done((function(e,t){e&&!Array.isArray(e)&&Array.isArray(e.data)&&(t=e,e=e.data),n.resolve(e,t)})).fail(n.reject),n},isCustomLoading:function(){return!!this._isCustomLoading},load:function(e){var t=this,i=t._dataSource,n=new ot.BH;if(e){var o=i.store(),r=i.loadOptions(),a={storeLoadOptions:e,isCustomLoading:!0};return(0,E.S6)(o._customLoadOptions()||[],(function(e,t){t in a.storeLoadOptions||(a.storeLoadOptions[t]=r[t])})),this._isLoadingAll=e.isLoadingAll,t._scheduleCustomLoadCallbacks(n),i._scheduleLoadCallbacks(n),t._handleCustomizeStoreLoadOptions(a),function(e,t){(0,l.$K)(t)?(0,v.Wi)(e,t):e()}((function(){if(!i.store())return n.reject("canceled");(0,ot.gx)(a.data||t.loadFromStore(a.storeLoadOptions)).done((function(i,r){a.data=i,a.extra=r||{},t._handleDataLoaded(a),e.requireTotalCount&&void 0===a.extra.totalCount&&(a.extra.totalCount=o.totalCount(a.storeLoadOptions)),(0,ot.gx)(a.data,a.extra.totalCount).done((function(e,t){a.extra.totalCount=t,n.resolve(e,a.extra)})).fail(n.reject)})).fail(n.reject)}),t.option("loadingTimeout")),n.fail((function(){t._eventsStrategy.fireEvent("loadError",arguments)})).always((()=>{this._isLoadingAll=!1})).promise()}return i.load()},reload:function(e){return e?this._dataSource.reload():this._dataSource.load()},getCachedStoreData:function(){return this._cachedStoreData}}}()),{queryByOptions:SP}=hb.Z,IP="id",EP=e=>"fullBranch"===e.option("filterMode"),DP=TP.inherit({_createKeyGetter:function(){var e=this.getKeyExpr();return(0,r.vb)(e)},_createKeySetter:function(){var e=this.getKeyExpr();return(0,l.mf)(e)?e:(0,r.OM)(e)},createParentIdGetter:function(){return(0,r.vb)(this.option("parentIdExpr"))},createParentIdSetter:function(){var e=this.option("parentIdExpr");return(0,l.mf)(e)?e:(0,r.OM)(e)},_createItemsGetter:function(){return(0,r.vb)(this.option("itemsExpr"))},_createHasItemsGetter:function(){var e=this.option("hasItemsExpr");return e&&(0,r.vb)(e)},_createHasItemsSetter:function(){var e=this.option("hasItemsExpr");return(0,l.mf)(e)?e:e&&(0,r.OM)(e)},_updateIndexByKeyObject:function(e){var t=this;t._indexByKey={},(0,E.S6)(e,(function(e,i){t._indexByKey[i.key]=e}))},_calculateHasItems:function(e,t){var i,n=t.storeLoadOptions.parentIds,o=EP(this);return this._hasItemsGetter&&(n||!t.storeLoadOptions.filter||o)&&(i=this._hasItemsGetter(e.data)),void 0===i&&(i=!(this._isChildrenLoaded[e.key]||!t.remoteOperations.filtering||!n&&!o)||(t.loadOptions.filter&&!t.remoteOperations.filtering&&o?e.children.length:e.hasChildren)),!!i},_fillVisibleItemsByNodes:function(e,t,i){for(var n=0;n<e.length;n++)e[n].visible&&i.push(e[n]),(this.isRowExpanded(e[n].key,t)||!e[n].visible)&&e[n].hasChildren&&e[n].children.length&&this._fillVisibleItemsByNodes(e[n].children,t,i)},_convertItemToNode:function(e,t,i){var n=this._keyGetter(e),o=this._parentIdGetter(e);o=(0,l.$K)(o)?o:t;var r=i[o]=i[o]||{key:o,children:[]},a=i[n]=i[n]||{key:n,children:[]};return a.data=e,a.parent=r,a},_createNodesByItems:function(e,t){var i,n=this.option("rootValue"),o={},r=this._nodeByKey={};if(t)for(i=0;i<t.length;i++)o[this._keyGetter(t[i])]=!0;for(i=0;i<e.length;i++){var a=this._convertItemToNode(e[i],n,r);if(void 0===a.key)return;a.visible=!t||!!o[a.key],a.parent&&a.parent.children.push(a)}var s=r[n]||{key:n,children:[]};return s.level=-1,s},_convertDataToPlainStructure:function(e,t,i){var n;if(this._itemsGetter&&!e.isConverted){i=i||[];for(var o=0;o<e.length;o++){var r=(0,qc.FL)(e[o]);n=this._keyGetter(r),void 0===n&&(n=i.length+1,this._keySetter(r,n)),this._parentIdSetter(r,void 0===t?this.option("rootValue"):t),i.push(r);var a=this._itemsGetter(r);if(a&&a.length){this._convertDataToPlainStructure(a,n,i);var s=this.option("itemsExpr");(0,l.mf)(s)||delete r[s]}}return i.isConverted=!0,i}return e},_createIdFilter:function(e,t){for(var i=[],n=0;n<t.length;n++)i.push([e,"=",t[n]]);return FD.combineFilters(i,"or")},_customizeRemoteOperations:function(e,t){this.callBase.apply(this,arguments),e.remoteOperations.paging=!1;var i=!1;this.option("autoExpandAll")&&(e.remoteOperations.sorting=!1,e.remoteOperations.filtering=!1,this._lastLoadOptions&&(!t.filtering||e.storeLoadOptions.filter)||e.isCustomLoading||(i=!0)),e.isCustomLoading||(this._isReload=this._isReload||t.reload,e.cachedStoreData||(this._isChildrenLoaded={},this._isReload&&(this._nodeByKey={})),this.option("expandNodesOnFiltering")&&(t.filtering||this._isReload&&e.storeLoadOptions.filter)&&(e.storeLoadOptions.filter?i=!0:e.collapseVisibleNodes=!0)),e.expandVisibleNodes=i},_getParentIdsToLoad:function(e){for(var t=[],i=0;i<e.length;i++){var n=this.getNodeByKey(e[i]);(!n||n.hasChildren&&!n.children.length)&&t.push(e[i])}return t},_handleCustomizeStoreLoadOptions:function(e){var t=this.option("rootValue"),i=this.option("parentIdExpr"),n=e.storeLoadOptions.parentIds;if(n&&(e.isCustomLoading=!1),this.callBase.apply(this,arguments),e.remoteOperations.filtering&&!e.isCustomLoading&&(EP(this)&&e.cachedStoreData||!e.storeLoadOptions.filter)){var o=e.collapseVisibleNodes?[]:this.option("expandedRowKeys");n=[t].concat(o).concat(n||[]);var r=e.data?this._getParentIdsToLoad(n):n;r.length&&(e.cachedPagingData=void 0,e.data=void 0,e.mergeStoreLoadData=!0,e.delay=this.option("loadingTimeout")),e.storeLoadOptions.parentIds=r,e.storeLoadOptions.filter=this._createIdFilter(i,r)}},_generateInfoToLoad:function(e,t){var i,n,o={},r={},a=[],s=this.option("rootValue");for(n=0;n<e.length;n++)i=t?this._parentIdGetter(e[n]):this._keyGetter(e[n]),o[i]=!0;for(n=0;n<e.length;n++){i=t?this._keyGetter(e[n]):this._parentIdGetter(e[n]);var l=t?this.isRowExpanded(i):i!==s;o[i]||r[i]||!l||(r[i]=!0,a.push(i))}return{keyMap:r,keys:a}},_loadParentsOrChildren:function(e,t,i){var n,o,r=this,{keys:s,keyMap:l}=r._generateInfoToLoad(e,i),d=new ot.BH,u=t.remoteOperations.filtering,c=r.option("maxFilterLengthInRequest"),h=u?t.storeLoadOptions:t.loadOptions;function p(t){return u&&(r._cachedStoreData=r._cachedStoreData.concat(t)),e.concat(t)}if(!s.length)return d.resolve(e);var f=s.map((e=>this.getNodeByKey(e))).filter((e=>e&&e.data));if(f.length===s.length&&(i&&(f=f.reduce(((e,t)=>e.concat(t.children)),[])),f.length))return r._loadParentsOrChildren(p(f.map((e=>e.data))),t,i);var g=i?r.option("parentIdExpr"):r.getKeyExpr();n=r._createIdFilter(g,s);var m=encodeURI(JSON.stringify(n)).length;m>c&&(n=function(e){return l[i?r._parentIdGetter(e):r._keyGetter(e)]},o=u),h=(0,a.l)({},h,{filter:o?null:n});var _=t.fullData?new xw.Z(t.fullData):r._dataSource.store();return r.loadFromStore(h,_).done((function(a){a.length?(o&&(a=(0,pu.Z)(a).filter(n).toArray()),r._loadParentsOrChildren(p(a),t,i).done(d.resolve).fail(d.reject)):d.resolve(e)})).fail(d.reject),d},_loadParents:function(e,t){return this._loadParentsOrChildren(e,t)},_loadChildrenIfNeed:function(e,t){return EP(this)?this._loadParentsOrChildren(e,t,!0):(0,ot.gx)(e)},_updateHasItemsMap:function(e){var t=e.storeLoadOptions.parentIds;if(t)for(var i=0;i<t.length;i++)this._isChildrenLoaded[t[i]]=!0},_getKeyInfo:function(){return{key:()=>"key",keyOf:e=>e.key}},_processChanges:function(e){var t=[];return e.forEach((e=>{"insert"===e.type?t=t.concat(this._applyInsert(e)):"remove"===e.type?t=t.concat(this._applyRemove(e)):"update"===e.type&&t.push({type:e.type,key:e.key,data:{data:e.data}})})),t},_handleChanging:function(e){this.callBase.apply(this,arguments);var t=e=>{var t=e.filter((e=>"update"===e.type));return this._processChanges(t)};e.postProcessChanges=t},_applyBatch:function(e){var t=this._processChanges(e);this.callBase(t)},_setHasItems:function(e,t){var i=this._hasItemsSetter;e.hasChildren=t,i&&e.data&&i(e.data,t)},_applyInsert:function(e){var t=[],i=this.parentKeyOf(e.data),n=this.getNodeByKey(i);if(n){var o=this.option("rootValue"),r=this._convertItemToNode(e.data,o,this._nodeByKey);if(r.hasChildren=!1,r.level=n.level+1,r.visible=!0,n.children.push(r),this._isChildrenLoaded[r.key]=!0,this._setHasItems(n,!0),(!n.parent||this.isRowExpanded(n.key))&&void 0!==e.index){var a=this.items().indexOf(n)+1;a+=e.index>=0?Math.min(e.index,n.children.length):n.children.length,t.push({type:e.type,data:r,index:a})}}return t},_needToCopyDataObject:function(){return!1},_applyRemove:function(e){var t=[],i=this.getNodeByKey(e.key),n=i&&i.parent;if(n){var o=n.children.indexOf(i);o>=0&&(n.children.splice(o,1),n.children.length||this._setHasItems(n,!1),t.push(e),t=t.concat(this.getChildNodeKeys(e.key).map((t=>({type:e.type,key:t})))))}return t},_handleDataLoaded:function(e){var t=e.data=this._convertDataToPlainStructure(e.data);!e.remoteOperations.filtering&&e.loadOptions.filter&&(e.fullData=SP((0,pu.Z)(e.data),{sort:e.loadOptions&&e.loadOptions.sort}).toArray()),this._updateHasItemsMap(e),this.callBase(e),t.isConverted&&this._cachedStoreData&&(this._cachedStoreData.isConverted=!0)},_fillNodes:function(e,t,i,n){var o=EP(this);n=n||0;for(var r=0;r<e.length;r++){var a=e[r],s=!1;this._fillNodes(e[r].children,t,i,n+1),a.level=n,a.hasChildren=this._calculateHasItems(a,t),a.visible&&a.hasChildren&&(o?a.children.filter((e=>e.visible)).length?s=!0:a.children.length&&zO.foreachNodes(a.children,(function(e){e.visible=!0})):s=!0,t.expandVisibleNodes&&s&&i.push(a.key)),(a.visible||a.hasChildren)&&(a.parent.hasChildren=!0)}},_processTreeStructure:function(e,t){var i=e.data,n=e.storeLoadOptions.parentIds,o=[];if(n&&n.length||this._isReload){if(e.fullData&&e.fullData.length>e.data.length&&(i=e.fullData,t=t||e.data),this._rootNode=this._createNodesByItems(i,t),!this._rootNode)return void(e.data=(new ot.BH).reject(Xt.Z.Error("E1046",this.getKeyExpr())));this._fillNodes(this._rootNode.children,e,o),this._isNodesInitializing=!0,(e.collapseVisibleNodes||o.length)&&this.option("expandedRowKeys",o),this._isReload=!1,this.executeAction("onNodesInitialized",{root:this._rootNode}),this._isNodesInitializing=!1}var r=[];this._fillVisibleItemsByNodes(this._rootNode.children,e,r),e.data=r,this._totalItemsCount=r.length},_handleDataLoadedCore:function(e){var t,i=this,n=e.data,o=i.callBase,r=e.storeLoadOptions.filter||e.loadOptions.filter,a=i.option("filterMode"),s=e.storeLoadOptions.parentIds,l=r&&(!s||!s.length)&&"standard"!==a;if(!e.isCustomLoading){if(l){var d=e.data=new ot.BH;return"matchOnly"===a&&(t=n),i._loadParents(n,e).done((function(n){i._loadChildrenIfNeed(n,e).done((n=>{e.data=n,i._processTreeStructure(e,t),o.call(i,e),d.resolve(e.data)}))})).fail(d.reject)}i._processTreeStructure(e)}i.callBase(e)},_handlePush:function(e){var{changes:t}=e,i=this._dataSource._reshapeOnPush,n=i&&!!t.length;n&&(this._isReload=!0),t.forEach((e=>{var t;return null!==(t=e.index)&&void 0!==t?t:e.index=-1})),this.callBase.apply(this,arguments)},init:function(e,t){this.callBase.apply(this,arguments);var i=this.option("dataStructure");this._keyGetter=this._createKeyGetter(),this._parentIdGetter=this.createParentIdGetter(),this._hasItemsGetter=this._createHasItemsGetter(),this._hasItemsSetter=this._createHasItemsSetter(),"tree"===i&&(this._itemsGetter=this._createItemsGetter(),this._keySetter=this._createKeySetter(),this._parentIdSetter=this.createParentIdSetter()),this._nodeByKey={},this._isChildrenLoaded={},this._totalItemsCount=0,this.createAction("onNodesInitialized")},getKeyExpr:function(){var e=this.store(),t=e&&e.key(),i=this.option("keyExpr");if((0,l.$K)(t)&&(0,l.$K)(i)&&!(0,v.bY)(t,i))throw Xt.Z.Error("E1044");return t||i||IP},keyOf:function(e){return this._keyGetter&&this._keyGetter(e)},parentKeyOf:function(e){return this._parentIdGetter&&this._parentIdGetter(e)},getRootNode:function(){return this._rootNode},totalItemsCount:function(){return this._totalItemsCount+this._totalCountCorrection},isRowExpanded:function(e,t){if(t){var i=t.isExpandedByKey;return i||(i=t.isExpandedByKey={},this.option("expandedRowKeys").forEach((function(e){i[e]=!0}))),!!i[e]}var n=FD.getIndexByKey(e,this.option("expandedRowKeys"),null);return n>=0},_changeRowExpandCore:function(e){var t=this.option("expandedRowKeys").slice(),i=FD.getIndexByKey(e,t,null);i<0?t.push(e):t.splice(i,1),this.option("expandedRowKeys",t)},changeRowExpand:function(e){return this._changeRowExpandCore(e),this._isNodesInitializing?(new ot.BH).resolve():this.load()},getNodeByKey:function(e){if(this._nodeByKey)return this._nodeByKey[e]},getNodeLeafKeys:function(){var e=this,t=[],i=e._rootNode?[e._rootNode.key]:[];return i.forEach((function(i){var n=e.getNodeByKey(i);n&&zO.foreachNodes([n],(function(e){!e.children.length&&t.push(e.key)}))})),t},getChildNodeKeys:function(e){var t=this.getNodeByKey(e),i=[];return t&&zO.foreachNodes(t.children,(function(e){i.push(e.key)})),i},loadDescendants:function(e,t){var i=this,n=new ot.BH,o=i.remoteOperations();if(e=(0,l.$K)(e)?Array.isArray(e)?e:[e]:i.getNodeLeafKeys(),!o.filtering||!e.length)return n.resolve();var r=i._dataSource._createStoreLoadOptions();return r.parentIds=e,i.load(r).done((function(){if(!t){var o=function(e,t){var i=[];return t.forEach((function(t){var n=e.getNodeByKey(t);n&&n.children.forEach((function(e){i.push(e.key)}))})),i}(i,e);if(o.length)return void i.loadDescendants(o,t).done(n.resolve).fail(n.reject)}n.resolve()})).fail(n.reject),n.promise()},forEachNode:function(){var e,t=[];if(1===arguments.length){e=arguments[0];var i=this.getRootNode();t=i&&i.children||[]}else 2===arguments.length&&(e=arguments[1],t=arguments[0],t=Array.isArray(t)?t:[t]);zO.foreachNodes(t,e)}}),kP={extend:function(e){DP=DP.inherit(e)},create:function(e){return new DP(e)}},OP=i(91029),AP={defaultOptions:function(){return{loadingTimeout:0,dataSource:null,cacheEnabled:!0,repaintChangesOnly:!1,highlightChanges:!1,onDataErrorOccurred:null,remoteOperations:"auto",paging:{enabled:!0,pageSize:void 0,pageIndex:void 0}}},controllers:{data:KO.Controller.inherit({}).include(g.Z).inherit(function(){var e=function(e,t,i){var n=e._dataSource;if(n){if(void 0!==i){var o=e._getPagingOptionValue(t);if(o!==i){"pageSize"===t&&n.pageIndex(0),n[t](i),e._skipProcessingPagingChange=!0,e.option("paging."+t,i),e._skipProcessingPagingChange=!1;var r=n.pageIndex();return e._isPaging="pageIndex"===t,n["pageIndex"===t?"load":"reload"]().done((()=>{e._isPaging=!1,e.pageChanged.fire(r)}))}return(0,ot.BH)().resolve().promise()}return n[t]()}return 0},t={init:function(){var e=this;e._items=[],e._cachedProcessedItems=null,e._columnsController=e.getController("columns"),e._isPaging=!1,e._currentOperationTypes=null,e._dataChangedHandler=t=>{e._currentOperationTypes=this._dataSource.operationTypes(),e._handleDataChanged(t),e._currentOperationTypes=null},e._columnsChangedHandler=e._handleColumnsChanged.bind(e),e._loadingChangedHandler=e._handleLoadingChanged.bind(e),e._loadErrorHandler=e._handleLoadError.bind(e),e._customizeStoreLoadOptionsHandler=e._handleCustomizeStoreLoadOptions.bind(e),e._changingHandler=e._handleChanging.bind(e),e._dataPushedHandler=e._handleDataPushed.bind(e),e._columnsController.columnsChanged.add(e._columnsChangedHandler),e._isLoading=!1,e._isCustomLoading=!1,e._repaintChangesOnly=void 0,e._changes=[],e.createAction("onDataErrorOccurred"),e.dataErrorOccurred.add((function(t){return e.executeAction("onDataErrorOccurred",{error:t})})),e._refreshDataSource()},_getPagingOptionValue:function(e){return this._dataSource[e]()},callbackNames:function(){return["changed","loadingChanged","dataErrorOccurred","pageChanged","dataSourceChanged","pushed"]},callbackFlags:function(e){if("dataErrorOccurred"===e)return{stopOnFalse:!0}},publicMethods:function(){return["beginCustomLoading","endCustomLoading","refresh","filter","clearFilter","getCombinedFilter","keyOf","byKey","getDataByKeys","pageIndex","pageSize","pageCount","totalCount","_disposeDataSource","getKeyByRowIndex","getRowIndexByKey","getDataSource","getVisibleRows","repaintRows"]},reset:function(){this._columnsController.reset(),this._items=[],this._refreshDataSource()},_handleDataSourceChange(e){if(e.value===e.previousValue||this.option("columns")&&Array.isArray(e.value)&&Array.isArray(e.previousValue)){var t=e.value!==e.previousValue;if(t){var i=this.store();i&&(i._array=e.value)}return this.needToRefreshOnDataSourceChange(e)&&this.refresh(this.option("repaintChangesOnly")),!0}return!1},needToRefreshOnDataSourceChange:function(e){return!0},optionChanged:function(e){var t,i,n=this;function o(){e.handled=!0}if("dataSource"===e.name&&e.name===e.fullName&&this._handleDataSourceChange(e))o();else switch(e.name){case"cacheEnabled":case"repaintChangesOnly":case"highlightChanges":case"loadingTimeout":o();break;case"remoteOperations":case"keyExpr":case"dataSource":case"scrolling":o(),n.reset();break;case"paging":if(t=n.dataSource(),t&&(i=n._setPagingOptions(t),i)){var r=t.pageIndex();this._isPaging=i.isPageIndexChanged,t.load().done((()=>{this._isPaging=!1,n.pageChanged.fire(r)}))}o();break;case"rtlEnabled":n.reset();break;case"columns":t=n.dataSource(),t&&t.isLoading()&&e.name===e.fullName&&(this._useSortingGroupingFromColumns=!0,t.load());break;default:n.callBase(e)}},isReady:function(){return!this._isLoading},getDataSource:function(){return this._dataSource&&this._dataSource._dataSource},getCombinedFilter:function(e){return this.combinedFilter(void 0,e)},combinedFilter:function(e,t){var i=this._dataSource,n=this._columnsController;if(i){void 0===e&&(e=i.filter());var o=this._calculateAdditionalFilter();o&&(n.isDataSourceApplied()||n.isAllDataTypesDefined())&&(e=FD.combineFilters([o,e])),e=n.updateFilter(e,t||i.remoteOperations().filtering)}return e},waitReady:function(){return this._updateLockCount?(this._readyDeferred=new ot.BH,this._readyDeferred):(0,ot.gx)()},_endUpdateCore:function(){var e=this._changes;if(e.length){this._changes=[];var t=e.every((e=>e.repaintChangesOnly));this.updateItems(1===e.length?e[0]:{repaintChangesOnly:t})}this._readyDeferred&&(this._readyDeferred.resolve(),this._readyDeferred=null)},_handleCustomizeStoreLoadOptions:function(e){var t,i=this._columnsController,n=this._dataSource,o=e.storeLoadOptions;e.isCustomLoading&&!o.isLoadingAll||(o.filter=this.combinedFilter(o.filter),1===(null===(t=o.filter)||void 0===t?void 0:t.length)&&"!"===o.filter[0]&&(e.data=[],e.extra=e.extra||{},e.extra.totalCount=0),i.isDataSourceApplied()||i.updateColumnDataTypes(n),this._columnsUpdating=!0,i.updateSortingGrouping(n,!this._useSortingGroupingFromColumns),this._columnsUpdating=!1,o.sort=i.getSortDataSourceParameters(),o.group=i.getGroupDataSourceParameters(),n.sort(o.sort),n.group(o.group),o.sort=i.getSortDataSourceParameters(!n.remoteOperations().sorting),e.group=i.getGroupDataSourceParameters(!n.remoteOperations().grouping))},_handleColumnsChanged:function(e){var t,i,n,o=this,r=e.changeTypes,a=e.optionNames;if(r.sorting||r.grouping)o._dataSource&&!o._columnsUpdating&&(o._dataSource.group(o._columnsController.getGroupDataSourceParameters()),o._dataSource.sort(o._columnsController.getSortDataSourceParameters()),o.reload());else if(r.columns&&(i=o._columnsController.columnOption(e.columnIndex,"filterValues"),(a.filterValues||a.filterType&&Array.isArray(i)||a.filterValue||a.selectedFilterOperation||a.allowFiltering)&&(t=o._columnsController.columnOption(e.columnIndex,"filterValue"),(Array.isArray(i)||void 0===e.columnIndex||(0,l.$K)(t)||!a.selectedFilterOperation||a.filterValue)&&(o._applyFilter(),n=!0)),o._needApplyFilter||FD.checkChanges(a,["width","visibleWidth","filterValue","bufferedFilterValue","selectedFilterOperation","filterValues","filterType"])||o._columnsController.columnsChanged.add((function e(t){var i;o._columnsController.columnsChanged.remove(e),o.updateItems({repaintChangesOnly:!1,virtualColumnsScrolling:null===t||void 0===t||null===(i=t.changeTypes)||void 0===i?void 0:i.virtualColumnsScrolling})})),(0,l.$K)(a.visible))){var s=o._columnsController.columnOption(e.columnIndex);s&&((0,l.$K)(s.filterValue)||(0,l.$K)(s.filterValues))&&(o._applyFilter(),n=!0)}!n&&r.filtering&&o.reload()},_handleDataChanged:function(e){var t=this,i=t._dataSource,n=t._columnsController,o=!1;this._useSortingGroupingFromColumns=!1,i&&!t._isDataSourceApplying&&(t._isDataSourceApplying=!0,(0,ot.gx)(t._columnsController.applyDataSource(i)).done((function(){t._isLoading&&t._handleLoadingChanged(!1),o&&e&&e.isDelayed&&(e.isDelayed=!1),t._isDataSourceApplying=!1;var i,n=t._needApplyFilter;t._needApplyFilter=!1,n&&!t._isAllDataTypesDefined&&(i=t._calculateAdditionalFilter(),i&&i.length)?(Xt.Z.log("W1005",t.component.NAME),t._applyFilter()):t.updateItems(e,!0)})).fail((function(){t._isDataSourceApplying=!1})),t._isDataSourceApplying&&(o=!0,t._handleLoadingChanged(!0)),t._needApplyFilter=!t._columnsController.isDataSourceApplied(),t._isAllDataTypesDefined=n.isAllDataTypesDefined())},_handleLoadingChanged:function(e){this._isLoading=e,this._fireLoadingChanged()},_handleLoadError:function(e){this.dataErrorOccurred.fire(e)},_handleDataPushed:function(e){this.pushed.fire(e)},fireError:function(){this.dataErrorOccurred.fire(Xt.Z.Error.apply(Xt.Z,arguments))},_setPagingOptions:function(e){var t=this.option("paging.pageIndex"),i=this.option("paging.pageSize"),n=this.option("paging.enabled"),o=this.option("scrolling.mode"),r="infinite"===o,a="virtual"===o,s=n||a||r,l=!1,d=!1,u=!1;return e.requireTotalCount(!r),void 0!==n&&e.paginate()!==s&&(e.paginate(s),l=!0),void 0!==i&&e.pageSize()!==i&&(e.pageSize(i),d=!0),void 0!==t&&e.pageIndex()!==t&&(e.pageIndex(t),u=!0),!!(l||d||u)&&{isPaginateChanged:l,isPageSizeChanged:d,isPageIndexChanged:u}},_getSpecificDataSourceOption:function(){var e=this.option("dataSource");return Array.isArray(e)?{store:{type:"array",data:e,key:this.option("keyExpr")}}:e},_initDataSource:function(){var e=this._dataSource;this.callBase();var t=this._dataSource;if(this._useSortingGroupingFromColumns=!0,this._cachedProcessedItems=null,t){var i=this._setPagingOptions(t);this._isPaging=null===i||void 0===i?void 0:i.isPageIndexChanged,this.setDataSource(t)}else e&&this.updateItems()},_loadDataSource:function(){var e=this,t=e._dataSource,i=new ot.BH;return(0,ot.gx)(this._columnsController.refresh(!0)).always((function(){t?t.load().done((function(){e._isPaging=!1,i.resolve.apply(i,arguments)})).fail(i.reject):i.resolve()})),i.promise()},_beforeProcessItems:function(e){return e.slice(0)},getRowIndexDelta:function(){return 0},_processItems:function(e,t){var i=this,n=i.getRowIndexDelta(),o=t.changeType,r=i._columnsController.getVisibleColumns(null,"loadingAll"===o),a=i._items,s="append"===o&&a.length>0?a[a.length-1]:null,d=(0,l.$K)(null===s||void 0===s?void 0:s.dataIndex)?s.dataIndex+1:0,u={visibleColumns:r,dataIndex:d},c=[];return(0,E.S6)(e,(function(e,t){(0,l.$K)(t)&&(u.rowIndex=e-n,t=i._processItem(t,u),c.push(t))})),c},_processItem:function(e,t){return e=this._generateDataItem(e,t),e=this._processDataItem(e,t),e.dataIndex=t.dataIndex++,e},_generateDataItem:function(e){return{rowType:"data",data:e,key:this.keyOf(e)}},_processDataItem:function(e,t){return e.values=this.generateDataValues(e.data,t.visibleColumns),e},generateDataValues:function(e,t,i){for(var n,o=[],r=0;r<t.length;r++){var a=t[r];n=i?void 0:null,a.command||(a.calculateCellValue?n=a.calculateCellValue(e):a.dataField&&(n=e[a.dataField])),o.push(n)}return o},_applyChange:function(e){"update"===e.changeType?this._applyChangeUpdate(e):this.items().length&&e.repaintChangesOnly&&"refresh"===e.changeType?this._applyChangesOnly(e):"refresh"===e.changeType&&this._applyChangeFull(e)},_applyChangeFull:function(e){this._items=e.items.slice(0)},_getRowIndices:function(e){var t=e.rowIndices.slice(0),i=this.getRowIndexDelta();t.sort((function(e,t){return e-t}));for(var n=0;n<t.length;n++){var o=t[n];e.allowInvisibleRowIndices&&(o+=i),o<0&&(t.splice(n,1),n--)}return t},_applyChangeUpdate:function(e){var t,i=this,n=e.items,o=i._getRowIndices(e),r=i.getRowIndexDelta(),a=i.option("repaintChangesOnly"),s=-1,l=0;e.items=[],e.rowIndices=[],e.columnIndices=[],e.changeTypes=[];var d=function(e,t,i){var n=e&&t&&(0,v.bY)(e.key,t.key);return n&&i&&(n=e.rowType===t.rowType&&("detail"!==t.rowType||e.isEditing===t.isEditing)),n};(0,E.S6)(o,(function(o,u){var c;if(u+=l+r,s!==u){s=u;var h=i._items[u],p=i._items[u+1],f=n[u],g=n[u+1],m=d(h,p)||d(f,g);if(f&&(f.rowIndex=u,e.items.push(f)),h&&f&&d(h,f,m))t="update",i._items[u]=f,h.visible!==f.visible?e.items.splice(-1,1,{visible:f.visible}):a&&!e.isFullUpdate&&(c=i._partialUpdateRow(h,f,u-r));else if(f&&!h||g&&d(h,g,m))t="insert",i._items.splice(u,0,f),l++;else if(h&&!f||p&&d(f,p,m))t="remove",i._items.splice(u,1),l--,s=-1;else{if(!f)return;t="update",i._items[u]=f}e.rowIndices.push(u-r),e.changeTypes.push(t),e.columnIndices.push(c)}}))},_isCellChanged:function(e,t,i,n,o){if(JSON.stringify(e.values[n])!==JSON.stringify(t.values[n]))return!0;function r(e,t){return!!e.modifiedValues&&void 0!==e.modifiedValues[t]}return r(e,n)!==r(t,n)},_getChangedColumnIndices:function(e,t,i,n){var o;if(e.rowType===t.rowType){if("group"!==t.rowType&&"groupFooter"!==t.rowType&&(o=[],"detail"!==t.rowType))for(var r=0;r<e.values.length;r++)this._isCellChanged(e,t,i,r,n)&&o.push(r);"group"===t.rowType&&t.isExpanded===e.isExpanded&&e.cells&&(o=e.cells.map(((e,t)=>{var i;return"groupExpand"!==(null===(i=e.column)||void 0===i?void 0:i.type)?t:-1})).filter((e=>e>=0)))}return o},_partialUpdateRow:function(e,t,i,n){var o,r=this._getChangedColumnIndices(e,t,i,n);return null!==(o=r)&&void 0!==o&&o.length&&this.option("dataRowTemplate")&&(r=void 0),r&&(e.cells&&e.cells.forEach((function(e,i){var n=r.indexOf(i)>=0;!n&&e&&e.update&&e.update(t)})),t.update=e.update,t.watch=e.watch,t.cells=e.cells,n&&(t.oldValues=e.values),e.update&&e.update(t)),r},_isItemEquals:function(e,t){if(JSON.stringify(e.values)!==JSON.stringify(t.values))return!1;if(["modified","isNewRow","removed","isEditing"].some((i=>e[i]!==t[i])))return!1;if("group"===e.rowType||"groupFooter"===e.rowType){var i,n,o,r,a=e.isExpanded===t.isExpanded,s=JSON.stringify(e.summaryCells)===JSON.stringify(t.summaryCells),l=(null===(i=e.data)||void 0===i?void 0:i.isContinuation)===(null===(n=t.data)||void 0===n?void 0:n.isContinuation)&&(null===(o=e.data)||void 0===o?void 0:o.isContinuationOnNextPage)===(null===(r=t.data)||void 0===r?void 0:r.isContinuationOnNextPage);if(!a||!s||!l)return!1}return!0},_applyChangesOnly:function(e){var t,i=[],n=[],o=[],r=[],a={},s=null===(t=null===e||void 0===e?void 0:e.isLiveUpdate)||void 0===t||t;function l(e){if(e)return e.rowType+","+JSON.stringify(e.key)}var d=this._items,u=d.slice();e.items.forEach((function(e,t){var i=l(e);a[i]=t,e.rowIndex=t}));var c=Cu(u,e.items,l,((e,t)=>!!this._isItemEquals(e,t)&&(e.cells&&(e.update&&e.update(t),e.cells.forEach((function(e){e&&e.update&&e.update(t,!0)}))),!0)));c?(c.forEach((e=>{switch(e.type){case"update":var t=e.index,a=e.data,l=e.oldItem,u=this._partialUpdateRow(l,a,t,s);i.push(t),o.push("update"),r.push(a),d[t]=a,n.push(u);break;case"insert":i.push(e.index),o.push("insert"),r.push(e.data),n.push(void 0),d.splice(e.index,0,e.data);break;case"remove":i.push(e.index),o.push("remove"),d.splice(e.index,1),r.push(e.oldItem),n.push(void 0)}})),e.repaintChangesOnly=!0,e.changeType="update",e.rowIndices=i,e.columnIndices=n,e.changeTypes=o,e.items=r,u.length&&(e.isLiveUpdate=!0),this._correctRowIndices((e=>{var t=this._rowIndexOffset||0,i=this.getRowIndexOffset(),n=u[e-t],o=l(n),r=a[o];return r>=0?r+i-e:0}))):this._applyChangeFull(e)},_correctRowIndices:v.ZT,_afterProcessItems:function(e){return e},_updateItemsCore:function(e){var t,i=this._dataSource,n=e.changeType||"refresh";if(e.changeType=n,i){var o=this._cachedProcessedItems;e.useProcessedItemsCache&&o?t=o:(t=e.items||i.items(),t=this._beforeProcessItems(t),t=this._processItems(t,e),this._cachedProcessedItems=t),t=this._afterProcessItems(t,e),e.items=t;var r=this._items.length===t.length&&this._items;this._applyChange(e);var a=this.getRowIndexDelta();(0,E.S6)(this._items,((e,i)=>{i.rowIndex=e-a,r&&(i.cells=r[e].cells||[]);var n=t[e];n&&(i.loadIndex=n.loadIndex)})),this._rowIndexOffset=this.getRowIndexOffset()}else this._items=[]},_handleChanging:function(e){var t=this.getVisibleRows(),i=this.dataSource();i&&e.changes.forEach((function(e){if("insert"===e.type&&e.index>=0){for(var i=0,n=0;n<e.index;n++){var o=t[n];!o||"data"!==o.rowType&&"group"!==o.rowType||i++}e.index=i}}))},updateItems:function(e,t){var i;if(e=e||{},void 0!==this._repaintChangesOnly)e.repaintChangesOnly=null!==(i=e.repaintChangesOnly)&&void 0!==i?i:this._repaintChangesOnly,e.needUpdateDimensions=e.needUpdateDimensions||this._needUpdateDimensions;else if(e.changes)e.repaintChangesOnly=this.option("repaintChangesOnly");else if(t){var n=this.dataSource().operationTypes();e.repaintChangesOnly=n&&!n.grouping&&!n.filtering&&this.option("repaintChangesOnly"),e.isDataChanged=!0,n&&(n.reload||n.paging||n.groupExpanding)&&(e.needUpdateDimensions=!0)}!this._updateLockCount||e.cancel?(this._updateItemsCore(e),e.cancel||this._fireChanged(e)):this._changes.push(e)},loadingOperationTypes:function(){var e=this.dataSource();return e&&e.loadingOperationTypes()||{}},_fireChanged:function(e){this._currentOperationTypes&&(e.operationTypes=this._currentOperationTypes,this._currentOperationTypes=null),(0,v.g0)((()=>{this.changed.fire(e)}))},isLoading:function(){return this._isLoading||this._isCustomLoading},_fireLoadingChanged:function(){this.loadingChanged.fire(this.isLoading(),this._loadingText)},_calculateAdditionalFilter:function(){return null},_applyFilter:function(){var e=this._dataSource;if(e)return e.pageIndex(0),this._isFilterApplying=!0,this.reload().done((()=>{this._isFilterApplying&&this.pageChanged.fire()}))},resetFilterApplying:function(){this._isFilterApplying=!1},filter:function(e){var t=this._dataSource,i=t&&t.filter();if(0===arguments.length)return i;e=arguments.length>1?Array.prototype.slice.call(arguments,0):e,FD.equalFilterParameters(i,e)||(t&&t.filter(e),this._applyFilter())},clearFilter:function(e){var t=this,i=t._columnsController,n=function(e){for(var t=i.columnCount(),n=0;n<t;n++)i.columnOption(n,e,void 0)};if(t.component.beginUpdate(),arguments.length>0)switch(e){case"dataSource":t.filter(null);break;case"search":t.searchByText("");break;case"header":n("filterValues");break;case"row":n("filterValue")}else t.filter(null),t.searchByText(""),n("filterValue"),n("bufferedFilterValue"),n("filterValues");t.component.endUpdate()},_fireDataSourceChanged:function(){var e=this;e.changed.add((function t(){e.changed.remove(t),e.dataSourceChanged.fire()}))},_getDataSourceAdapter:v.ZT,_createDataSourceAdapterCore:function(e,t){var i=this._getDataSourceAdapter(),n=i.create(this.component);return n.init(e,t),n},isLocalStore:function(e){return e=e||this.store(),e instanceof xw.Z},isCustomStore:function(e){return e=e||this.store(),e instanceof OP.Z},_createDataSourceAdapter:function(e){var t=this.option("remoteOperations"),i=e.store(),n={filtering:!0,sorting:!0,paging:!0,grouping:!0,summary:!0};return t&&t.groupPaging&&(t=(0,a.l)({},n,t)),"auto"===t&&(t=this.isLocalStore(i)||this.isCustomStore(i)?{}:{filtering:!0,sorting:!0,paging:!0}),!0===t&&(t=n),this._createDataSourceAdapterCore(e,t)},setDataSource:function(e){var t=this._dataSource;!e&&t&&(t.cancelAll(),t.changed.remove(this._dataChangedHandler),t.loadingChanged.remove(this._loadingChangedHandler),t.loadError.remove(this._loadErrorHandler),t.customizeStoreLoadOptions.remove(this._customizeStoreLoadOptionsHandler),t.changing.remove(this._changingHandler),t.pushed.remove(this._dataPushedHandler),t.dispose(this._isSharedDataSource)),e&&(e=this._createDataSourceAdapter(e)),this._dataSource=e,e&&(this._fireDataSourceChanged(),this._isLoading=!e.isLoaded(),this._needApplyFilter=!0,this._isAllDataTypesDefined=this._columnsController.isAllDataTypesDefined(),e.changed.add(this._dataChangedHandler),e.loadingChanged.add(this._loadingChangedHandler),e.loadError.add(this._loadErrorHandler),e.customizeStoreLoadOptions.add(this._customizeStoreLoadOptionsHandler),e.changing.add(this._changingHandler),e.pushed.add(this._dataPushedHandler))},items:function(){return this._items},isEmpty:function(){return!this.items().length},pageCount:function(){return this._dataSource?this._dataSource.pageCount():1},dataSource:function(){return this._dataSource},store:function(){var e=this._dataSource;return e&&e.store()},loadAll:function(e){var t=this,i=new ot.BH,n=t._dataSource;if(n)if(e){var o={data:e,isCustomLoading:!0,storeLoadOptions:{isLoadingAll:!0},loadOptions:{filter:t.getCombinedFilter(),group:n.group(),sort:n.sort()}};n._handleDataLoaded(o),(0,ot.gx)(o.data).done((function(e){e=t._beforeProcessItems(e),i.resolve(t._processItems(e,{changeType:"loadingAll"}),o.extra&&o.extra.summary)})).fail(i.reject)}else if(n.isLoading())i.reject();else{var r=(0,a.l)({},n.loadOptions(),{isLoadingAll:!0,requireTotalCount:!1});n.load(r).done((function(e,n){e=t._beforeProcessItems(e),e=t._processItems(e,{changeType:"loadingAll"}),i.resolve(e,n&&n.summary)})).fail(i.reject)}else i.resolve([]);return i},getKeyByRowIndex:function(e,t){var i=this.items(t)[e];if(i)return i.key},getRowIndexByKey:function(e,t){return FD.getIndexByKey(e,this.items(t))},keyOf:function(e){var t=this.store();if(t)return t.keyOf(e)},byKey:function(e){var t,i=this.store(),n=this.getRowIndexByKey(e);if(i)return n>=0&&(t=(new ot.BH).resolve(this.items()[n].data)),t||i.byKey(e)},key:function(){var e=this.store();if(e)return e.key()},getRowIndexOffset:function(){return 0},getDataByKeys:function(e){var t=this,i=new ot.BH,n=[],r=[];return(0,E.S6)(e,(function(e,i){n.push(t.byKey(i).done((function(t){r[e]=t})))})),ot.gx.apply(o.Z,n).always((function(){i.resolve(r)})),i},pageIndex:function(t){return e(this,"pageIndex",t)},pageSize:function(t){return e(this,"pageSize",t)},beginCustomLoading:function(e){this._isCustomLoading=!0,this._loadingText=e||"",this._fireLoadingChanged()},endCustomLoading:function(){this._isCustomLoading=!1,this._loadingText=void 0,this._fireLoadingChanged()},refresh:function(e){!0===e?e={reload:!0,changesOnly:!0}:e||(e={lookup:!0,selection:!0,reload:!0});var t=this,i=t.getDataSource(),n=e.changesOnly,o=new ot.BH,r=function(){t._repaintChangesOnly=!!n};return(0,ot.gx)(!e.lookup||t._columnsController.refresh()).always((function(){e.load||e.reload?(i&&i.on("customizeLoadResult",r),(0,ot.gx)(t.reload(e.reload,n)).always((function(){i&&i.off("customizeLoadResult",r),t._repaintChangesOnly=void 0})).done(o.resolve).fail(o.reject)):(t.updateItems({repaintChangesOnly:e.changesOnly}),o.resolve())})),o.promise()},getVisibleRows:function(){return this.items()},_disposeDataSource:function(){this.setDataSource(null)},dispose:function(){this._disposeDataSource(),this.callBase.apply(this,arguments)},repaintRows:function(e,t){e=Array.isArray(e)?e:[e],(e.length>1||(0,l.$K)(e[0]))&&this.updateItems({changeType:"update",rowIndices:e,isFullUpdate:!t})},skipProcessingPagingChange:function(e){return this._skipProcessingPagingChange&&("paging.pageIndex"===e||"paging.pageSize"===e)},getUserState:function(){return{searchText:this.option("searchPanel.text"),pageIndex:this.pageIndex(),pageSize:this.pageSize()}},getCachedStoreData:function(){return this._dataSource&&this._dataSource.getCachedStoreData()},isLastPageLoaded:function(){var e=this.pageIndex(),t=this.pageCount();return e===t-1}};return FD.proxyMethod(t,"load"),FD.proxyMethod(t,"reload"),FD.proxyMethod(t,"push"),FD.proxyMethod(t,"itemsCount",0),FD.proxyMethod(t,"totalItemsCount",0),FD.proxyMethod(t,"hasKnownLastPage",!0),FD.proxyMethod(t,"isLoaded",!0),FD.proxyMethod(t,"totalCount",0),t}())}},PP=AP.controllers.data.inherit({_getDataSourceAdapter:function(){return kP},_getNodeLevel:function(e){var t=-1;while(e.parent)e.visible&&t++,e=e.parent;return t},_generateDataItem:function(e,t){return{rowType:"data",node:e,key:e.key,data:e.data,isExpanded:this.isRowExpanded(e.key,t),level:this._getNodeLevel(e)}},_loadOnOptionChange:function(){this._dataSource.load()},_isItemEquals:function(e,t){return!!this.callBase.apply(this,arguments)&&((!e.node||!t.node||e.node.hasChildren===t.node.hasChildren)&&(e.level===t.level&&e.isExpanded===t.isExpanded))},init:function(){this.createAction("onRowExpanding"),this.createAction("onRowExpanded"),this.createAction("onRowCollapsing"),this.createAction("onRowCollapsed"),this.callBase.apply(this,arguments)},keyOf:function(e){var t=this._dataSource;if(t)return t.keyOf(e)},key:function(){var e=this._dataSource;if(e)return e.getKeyExpr()},publicMethods:function(){return this.callBase().concat(["expandRow","collapseRow","isRowExpanded","getRootNode","getNodeByKey","loadDescendants","forEachNode"])},changeRowExpand:function(e){if(this._dataSource){var t={key:e},i=this.isRowExpanded(e);if(this.executeAction(i?"onRowCollapsing":"onRowExpanding",t),!t.cancel)return this._dataSource.changeRowExpand(e).done((()=>{this.executeAction(i?"onRowCollapsed":"onRowExpanded",t)}))}return(new ot.BH).resolve()},isRowExpanded:function(e,t){return this._dataSource&&this._dataSource.isRowExpanded(e,t)},expandRow:function(e){return this.isRowExpanded(e)?(new ot.BH).resolve():this.changeRowExpand(e)},collapseRow:function(e){return this.isRowExpanded(e)?this.changeRowExpand(e):(new ot.BH).resolve()},getRootNode:function(){return this._dataSource&&this._dataSource.getRootNode()},optionChanged:function(e){switch(e.name){case"rootValue":case"parentIdExpr":case"itemsExpr":case"filterMode":case"expandNodesOnFiltering":case"autoExpandAll":case"hasItemsExpr":case"dataStructure":this._columnsController.reset(),this._items=[],this._refreshDataSource(),e.handled=!0;break;case"expandedRowKeys":case"onNodesInitialized":!this._dataSource||this._dataSource._isNodesInitializing||(0,v.bY)(e.value,e.previousValue)||this._loadOnOptionChange(),e.handled=!0;break;case"maxFilterLengthInRequest":e.handled=!0;break;default:this.callBase(e)}},getNodeByKey:function(e){if(this._dataSource)return this._dataSource.getNodeByKey(e)},getChildNodeKeys:function(e){if(this._dataSource)return this._dataSource.getChildNodeKeys(e)},loadDescendants:function(e,t){if(this._dataSource)return this._dataSource.loadDescendants(e,t)},forEachNode:function(){this._dataSource.forEachNode.apply(this,arguments)}});zO.registerModule("data",{defaultOptions:function(){return(0,a.l)({},AP.defaultOptions(),{itemsExpr:"items",parentIdExpr:"parentId",rootValue:0,dataStructure:"plain",expandedRowKeys:[],filterMode:"withAncestors",expandNodesOnFiltering:!0,autoExpandAll:!1,onNodesInitialized:null,maxFilterLengthInRequest:1500,paging:{enabled:!1}})},controllers:{data:PP}});var MP="dx-sort",RP="dx-sort-none",BP="dx-sort-up",VP="dx-sort-down",FP="dx-sort-index",HP="dx-sort-index-icon",LP="action",NP={_applyColumnState:function(e){var t,i,n=this.option("sorting.mode"),r=e.rootElement,a=e.column,s=this._getIndicatorContainer(r);if("sort"===e.name){r.find("."+MP).remove(),!s.children().length&&s.remove();var d="none"!==n&&a.allowSorting;if(!(0,l.$K)(a.groupIndex)&&(d||(0,l.$K)(a.sortOrder))){t="asc"===a.sortOrder?"ascending":"descending",i=this.callBase(e).toggleClass(BP,"asc"===a.sortOrder).toggleClass(VP,"desc"===a.sortOrder);var u=this.getController&&!!this.getController("columns").columnOption("sortIndex:1");u&&this.option("sorting.showSortIndexes")&&a.sortIndex>=0&&((0,o.Z)("<span>").addClass(HP).text(a.sortIndex+1).appendTo(i),i.addClass(FP)),d&&e.rootElement.addClass(this.addWidgetPrefix(LP))}return(0,l.$K)(a.sortOrder)?this.setAria("sort",t,r):this.setAria("sort","none",r),i}return this.callBase(e)},_getIndicatorClassName:function(e){return"sort"===e?MP:"sortIndex"===e?HP:this.callBase(e)},_renderIndicator:function(e){var t=e.column,i=e.container,n=e.indicator;if("sort"===e.name){var o=this.option("rtlEnabled");if((0,l.$K)(t.sortOrder)||n&&n.addClass(RP),i.children().length&&(!o&&"left"===e.columnAlignment||o&&"right"===e.columnAlignment))return void i.prepend(n)}this.callBase(e)},_updateIndicator:function(e,t,i){if("sort"!==i||!(0,l.$K)(t.groupIndex))return this.callBase.apply(this,arguments)},_getIndicatorElements:function(e,t){var i=this.callBase(e);return t?i:i&&i.not("."+RP)}},ZP="dxDataGridColumnHeadersView",$P=(0,a.l)({},NP,{_createRow(e){var t=this.callBase(e);return"header"===e.rowType&&re.Z.on(t,(0,R.V4)(A.u,ZP),"td",this.createAction((e=>{this._processHeaderAction(e.event,t)}))),t},_processHeaderAction:function(e,t){if((0,o.Z)(e.currentTarget).parent().get(0)===t.get(0)){var i=this,n=null,r=(0,o.Z)(e.currentTarget),a=r.parent().index(),s=-1;[].slice.call(i.getCellElements(a)).some(((e,t)=>{if(e===r.get(0))return s=t,!0}));var d=i._columnsController.getVisibleColumns(a),u=d[s],c=i.getController("editing"),h=i.option("editing.mode"),p=c&&c.isEditing()&&("batch"===h||"cell"===h);!p&&i._isSortableElement((0,o.Z)(e.target))&&(!u||(0,l.$K)(u.groupIndex)||u.command||(e.shiftKey?n="shift":(0,R.j1)(e)&&(n="ctrl"),setTimeout((()=>{i._columnsController.changeSortOrder(u.index,n)}))))}},_renderCellContent(e,t){var i=t.column;i.command||"header"!==t.rowType||this._applyColumnState({name:"sort",rootElement:e,column:i,showColumnLines:this.option("showColumnLines")}),this.callBase.apply(this,arguments)},_columnOptionChanged(e){var t=e.changeTypes;1===t.length&&t.sorting?this._updateIndicators("sort"):this.callBase(e)},optionChanged(e){switch(e.name){case"sorting":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}}}),WP=(0,a.l)({},NP,{_createGroupPanelItem(e,t){var i=this,n=i.callBase(...arguments);return re.Z.on(n,(0,R.V4)(A.u,"dxDataGridHeaderPanel"),i.createAction((()=>{i._processGroupItemAction(t.index)}))),i._applyColumnState({name:"sort",rootElement:n,column:{alignment:i.option("rtlEnabled")?"right":"left",allowSorting:t.allowSorting,sortOrder:"desc"===t.sortOrder?"desc":"asc"},showColumnLines:!0}),n},_processGroupItemAction(e){setTimeout((()=>this.getController("columns").changeSortOrder(e)))},optionChanged(e){switch(e.name){case"sorting":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}}}),KP={defaultOptions:()=>({sorting:{mode:"single",ascendingText:y.Z.format("dxDataGrid-sortingAscendingText"),descendingText:y.Z.format("dxDataGrid-sortingDescendingText"),clearText:y.Z.format("dxDataGrid-sortingClearText"),showSortIndexes:!0}}),extenders:{views:{columnHeadersView:$P,headerPanel:WP}}};zO.registerModule("sorting",KP);var zP="rowsview",jP="content",UP="nowrap",GP="dx-group-row",qP="dx-group-cell",YP="dx-data-row",XP="dx-freespace-row",JP="dx-row-lines",QP="dx-column-lines",eM="dx-row-alt",tM="dx-last-row-border",iM="dx-empty",nM="row-inserted-animation",oM=200;function rM(e){return e?Math.round(e.scrollWidth()-e.clientWidth()):0}var aM={defaultOptions:function(){return{hoverStateEnabled:!1,scrolling:{useNative:"auto"},loadPanel:{enabled:"auto",text:y.Z.format("Loading"),width:200,height:90,showIndicator:!0,indicatorSrc:"",showPane:!0},dataRowTemplate:null,columnAutoWidth:!1,noDataText:y.Z.format("dxDataGrid-noDataText"),wordWrapEnabled:!1,showColumnLines:!0,showRowLines:!1,rowAlternationEnabled:!1,activeStateEnabled:!1,twoWayBindingEnabled:!0}},views:{rowsView:xA.inherit(function(){var e=function(e,t){var i=(0,Ic.xb)(t.text)&&"data"===t.rowType,n=t.text,o=e.get(0);i?FD.setEmptyText(e):t.column.encodeHtml?o.textContent=n:o.innerHTML=n};return{_getDefaultTemplate:function(t){switch(t.command){case"empty":return function(e){e.html("&nbsp;")};default:return e}},_getDefaultGroupTemplate:function(e){var t=this.option("summary.texts");return function(i,n){var o=n.data,r=n.column.caption+": "+n.text,a=i.get(0);n.summaryItems&&n.summaryItems.length&&(r+=" "+FD.getGroupRowSummaryText(n.summaryItems,t)),o&&(n.groupContinuedMessage&&n.groupContinuesMessage?r+=" ("+n.groupContinuedMessage+". "+n.groupContinuesMessage+")":n.groupContinuesMessage?r+=" ("+n.groupContinuesMessage+")":n.groupContinuedMessage&&(r+=" ("+n.groupContinuedMessage+")")),i.addClass(qP),e.encodeHtml?a.textContent=r:a.innerHTML=r}},_update:function(){},_getCellTemplate:function(e){var t,i=e.column;return t="group"!==e.rowType||!(0,l.$K)(i.groupIndex)||i.showWhenGrouped||i.command?("data"===e.rowType||i.command)&&i.cellTemplate?i.cellTemplate:{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(i)}:i.groupCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultGroupTemplate(i)},t},_createRow:function(e){var t=this.callBase.apply(this,arguments);if(e){var i="group"===e.rowType,n="data"===e.rowType;if(n&&t.addClass(YP),n&&this.option("showRowLines")&&t.addClass(JP),this.option("showColumnLines")&&t.addClass(QP),!1===e.visible&&t.hide(),i){t.addClass(GP);var o=e.isExpanded;this.setAria("role","row",t),this.setAria("expanded",(0,l.$K)(o)&&o.toString(),t)}}return t},_rowPrepared:function(e,t,i){"data"===t.rowType&&(this.option("rowAlternationEnabled")&&(this._isAltRow(i)&&e.addClass(eM),t.watch&&t.watch((()=>this._isAltRow(i)),(t=>{e.toggleClass(eM,t)}))),this._setAriaRowIndex(t,e),t.watch&&t.watch((()=>t.rowIndex),(()=>this._setAriaRowIndex(t,e)))),this.callBase.apply(this,arguments)},_setAriaRowIndex:function(e,t){var i=this.component,n="standard"===i.option("scrolling.mode")&&!FD.isVirtualRowRendering(i),o=e.rowIndex+1;n?o=i.pageIndex()*i.pageSize()+o:o+=this._dataController.getRowIndexOffset(),this.setAria("rowindex",o,t)},_afterRowPrepared:function(e){var t=e.args[0],i=this._dataController,n=i.getVisibleRows()[t.rowIndex],o=this.option("integrationOptions.watchMethod");if(t.data&&"data"===t.rowType&&!t.isNewRow&&this.option("twoWayBindingEnabled")&&o&&n){var r=o((()=>i.generateDataValues(t.data,t.columns)),(()=>{i.repaintRows([n.rowIndex],this.option("repaintChangesOnly"))}),{deep:!0,skipImmediate:!0});re.Z.on(t.rowElement,nt.x,r)}},_renderScrollable:function(e){var t=this.element();if(t.children().length||t.append("<div>"),!e&&this._loadPanel||this._renderLoadPanel(t,t.parent(),this._dataController.isLocalStore()),(e||!this.getScrollable())&&this._dataController.isLoaded()){for(var i=this.getColumns(),n=!0,o=0;o<i.length;o++)if(!i[o].width&&!i[o].minWidth){n=!1;break}(this.option("columnAutoWidth")||this._hasHeight||n||this._columnsController._isColumnFixing())&&this._renderScrollableCore(t)}},_handleScroll:function(e){var t=this.option("rtlEnabled"),i=e.component.option("useNative");this._scrollTop=e.scrollOffset.top,this._scrollLeft=e.scrollOffset.left;var n=e.scrollOffset.left;t&&(this._scrollRight=rM(e.component)-this._scrollLeft,i&&(n=-this._scrollRight),this.isScrollbarVisible(!0)||(this._scrollLeft=-1)),this.scrollChanged.fire((0,hn.Z)({},e.scrollOffset,{left:n}),this.name)},_renderScrollableCore:function(e){var t=this._createScrollableOptions(),i=this._handleScroll.bind(this);t.onScroll=i,this._scrollable=this._createComponent(e,$p,t),this._scrollableContainer=this._scrollable&&(0,o.Z)(this._scrollable.container())},_renderLoadPanel:FD.renderLoadPanel,_renderContent:function(e,t){return e.empty().append(t),this._findContentElement()},_updateContent:function(e,t){return this._waitAsyncTemplates(t).done((()=>{var i=this.getTableElement(),n=this._findContentElement(),o=t&&t.changeType,r=[],a=this.option("highlightChanges"),s=this.addWidgetPrefix(nM);switch(o){case"update":(0,E.S6)(t.rowIndices,((n,o)=>{var d=this._getRowElements(e).eq(n),u=t.changeTypes&&t.changeTypes[n],c=t.items&&t.items[n];r.push((()=>{var e=this._getRowElements(),r=e.eq(o);switch(u){case"update":if(c){var h=t.columnIndices&&t.columnIndices[n];(0,l.$K)(c.visible)&&c.visible!==r.is(":visible")?r.toggle(c.visible):h?this._updateCells(r,d,h):r.replaceWith(d)}break;case"insert":if(e.length)r.length?d.insertBefore(r):d.insertAfter(e.last());else if(i){var p=d.is("tbody")?i:i.children("tbody");d.prependTo(p)}a&&t.isLiveUpdate&&d.addClass(s);break;case"remove":r.remove()}}))})),(0,E.S6)(r,(function(){this()})),e.remove();break;default:this.setTableElement(e),n.addClass(this.addWidgetPrefix(jP)),this._renderContent(n,e)}}))},_createEmptyRow:function(e,t,i){var n,o=this._createRow(),r=t?this.getFixedColumns():this.getColumns();o.addClass(e).toggleClass(QP,this.option("showColumnLines"));for(var a=0;a<r.length;a++)n=this._createCell({column:r[a],rowType:"freeSpace",columnIndex:a,columns:r}),(0,l.kE)(i)&&n.css("height",i),o.append(n);return this.setAria("role","presentation",o),o},_appendEmptyRow:function(e,t,i){var n=this._getBodies(e),o=!n.length||t.is("tbody"),r=o?e:n;if("top"===i){if(r.first().prepend(t),o){var a=r.children("colgroup");r.prepend(a)}}else r.last().append(t)},_renderFreeSpaceRow:function(e,t){var i=this._createEmptyRow(XP);i=this._wrapRowIfNeed(e,i,"refresh"===(null===t||void 0===t?void 0:t.changeType)),this._appendEmptyRow(e,i)},_checkRowKeys:function(e){var t=this,i=t._getRows(e),n=t._dataController.store()&&t._dataController.store().key();n&&i.some((function(e){if("data"===e.rowType&&void 0===e.key)return t._dataController.fireError("E1046",n),!0}))},_needUpdateRowHeight:function(e){return e>0&&!this._rowHeight},_getRowsHeight:function(e){e=e||this._tableElement;var t=e.children("tbody").children().not(".dx-virtual-row").not("."+XP);return t.toArray().reduce((function(e,t){return e+Pe(t).height}),0)},_updateRowHeight:function(){var e=this.getTableElement(),t=this._dataController.items().length;if(e&&this._needUpdateRowHeight(t)){var i=this._getRowsHeight(e);this._rowHeight=i/t}},_findContentElement:function(){var e=this.element(),t=this.getScrollable();if(e)return t&&(e=(0,o.Z)(t.content())),e.children().first()},_getRowElements:function(e){var t=this.callBase(e);return t&&t.not("."+XP)},_getFreeSpaceRowElements:function(e){var t=e||this.getTableElements();return t&&t.children("tbody").children("."+XP)},_getNoDataText:function(){return this.option("noDataText")},_rowClick:function(e){var t=this._dataController.items()[e.rowIndex]||{};this.executeAction("onRowClick",(0,a.l)({evaluate:function(e){var i=(0,r.vb)(e);return i(t.data)}},e,t))},_rowDblClick:function(e){var t=this._dataController.items()[e.rowIndex]||{};this.executeAction("onRowDblClick",(0,a.l)({},e,t))},_getColumnsCountBeforeGroups:function(e){for(var t=0;t<e.length;t++)if("groupExpand"===e[t].type)return t;return 0},_getGroupCellOptions:function(e){var t=this._getColumnsCountBeforeGroups(e.columns),i=(e.row.groupIndex||0)+t;return{columnIndex:i,colspan:e.columns.length-i-1}},_needWrapRow:function(){return this.callBase.apply(this,arguments)||!!this.option("dataRowTemplate")},_renderCells:function(e,t){"group"===t.row.rowType?this._renderGroupedCells(e,t):t.row.values&&this.callBase(e,t)},_renderGroupedCells:function(e,t){for(var i,n,o=t.row,r=t.columns,s=o.rowIndex,l=this._getGroupCellOptions(t),d=0;d<=l.columnIndex;d++)d===l.columnIndex&&r[d].allowCollapsing&&"infinite"!==t.scrollingMode?(n=!!o.isExpanded,i=r[d]):(n=null,i={command:"expand",cssClass:r[d].cssClass}),this._needRenderCell(d,t.columnIndices)&&this._renderCell(e,{value:n,row:o,rowIndex:s,column:i,columnIndex:d,columnIndices:t.columnIndices,change:t.change});var u=Ae(this.option("rtlEnabled")),c=(0,a.l)({},r[l.columnIndex],{command:null,type:null,cssClass:null,width:null,showWhenGrouped:!1,alignment:u});l.colspan>1&&(c.colspan=l.colspan),this._needRenderCell(l.columnIndex+1,t.columnIndices)&&this._renderCell(e,{value:o.values[o.groupIndex],row:o,rowIndex:s,column:c,columnIndex:l.columnIndex+1,columnIndices:t.columnIndices,change:t.change})},_renderRows:function(e,t){var i=this.option("scrolling.mode");this.callBase(e,(0,a.l)({scrollingMode:i},t)),this._checkRowKeys(t.change),this._renderFreeSpaceRow(e,t.change),this._hasHeight||this.updateFreeSpaceRowHeight(e)},_renderDataRowByTemplate(e,t,i){var n=t.row,o=(0,a.l)({columns:t.columns},n),r=this._createRow(n,"tbody");r.appendTo(e),this.renderTemplate(r,i,o,!0,t.change),this._rowPrepared(r,o,t.row)},_renderRow:function(e,t){var i=t.row,n=this.option().rowTemplate,o=this.option("dataRowTemplate");"data"===i.rowType&&o?this._renderDataRowByTemplate(e,t,o):"data"!==i.rowType&&"group"!==i.rowType||(0,l.$K)(i.groupIndex)||!n?this.callBase(e,t):this.renderTemplate(e,n,(0,a.l)({columns:t.columns},i),!0)},_renderTable:function(e){var t=this,i=t.callBase(e);return(0,l.$K)(t.getTableElement())?t._renderScrollable():(t.setTableElement(i),t._renderScrollable(!0),t.resizeCompleted.add((function e(){var i=t.getScrollable();i&&t.element().closest((0,s.Jj)().document).length&&(t.resizeCompleted.remove(e),i._visibilityChanged(!0))}))),i},_createTable:function(){var e=this.callBase.apply(this,arguments);return(this.option().rowTemplate||this.option().dataRowTemplate)&&e.appendTo(this.component.$element()),e},_renderCore:function(e){var t=this.element();t.addClass(this.addWidgetPrefix(zP)).toggleClass(this.addWidgetPrefix(UP),!this.option("wordWrapEnabled")),t.toggleClass(iM,this._dataController.isEmpty()),this.setAria("role","presentation",t);var i=this._renderTable({change:e});this._updateContent(i,e),this.callBase(e),this._lastColumnWidths=null},_getRows:function(e){return e&&e.items||this._dataController.items()},_getCellOptions:function(e){var t=e.column,i=e.row,n=i.data,o=i&&i.summaryCells,r=e.value,a=FD.getDisplayValue(t,r,n,i.rowType),s=this.callBase(e);if(s.value=r,s.oldValue=e.oldValue,s.displayValue=a,s.row=i,s.key=i.key,s.data=n,s.rowType=i.rowType,s.values=i.values,s.text=t.command?"":FD.formatValue(a,t),s.rowIndex=i.rowIndex,s.summaryItems=o&&o[e.columnIndex],s.resized=t.resizedCallbacks,(0,l.$K)(t.groupIndex)&&!t.command){var d=this.option("grouping.texts"),u=this.option("scrolling.mode");"virtual"!==u&&"infinite"!==u&&(s.groupContinuesMessage=n&&n.isContinuationOnNextPage&&d&&d.groupContinuesMessage,s.groupContinuedMessage=n&&n.isContinuation&&d&&d.groupContinuedMessage)}return s},_setRowsOpacityCore:function(e,t,i,n){var r=this._columnsController,a=r.getColumns(),s=a&&a[i],d=s&&s.isBand&&s.index;(0,E.S6)(e,(function(a,s){if(!(0,o.Z)(s).hasClass(GP))for(var u=0;u<t.length;u++)if(((0,l.kE)(d)&&r.isParentBandColumn(t[u].index,d)||t[u].index===i)&&(e.eq(a).children().eq(u).css({opacity:n}),!(0,l.kE)(d)))break}))},_getDevicePixelRatio:function(){return(0,s.Jj)().devicePixelRatio},renderNoDataText:FD.renderNoDataText,getCellOptions:function(e,t){var i,n,o=this._dataController.items()[e];return o&&(n=(0,l.HD)(t)?this._columnsController.columnOption(t):this._columnsController.getVisibleColumns()[t],n&&(i=this._getCellOptions({value:n.calculateCellValue(o.data),rowIndex:o.rowIndex,row:o,column:n}))),i},getRow:function(e){if(e>=0){var t=this._getRowElements();if(t.length>e)return(0,o.Z)(t[e])}},updateFreeSpaceRowHeight:function(e){var t=this._dataController,i=t.items(!0).length,o=this._findContentElement(),r=this._getFreeSpaceRowElements(e);if(r&&o&&t.totalCount()>=0){var a=!1;if(i>0)if(this._hasHeight)r.hide(),(0,v.Su)((()=>{var t=this.getScrollbarWidth(!0),i=(0,n.Cr)(this.element())-t,s=(0,n.zp)(o),l=i-s>0,d=this._getRowsHeight(o.children().first()),u=e||this.getTableElements(),c=Math.ceil(parseFloat(u.css("borderTopWidth"))),h=this._getHeightCorrection(),p=i-d-c-h;l&&(0,v.g0)((()=>{r.css("height",p),a=!0,r.show()})),(0,v.g0)((()=>this._updateLastRowBorder(a)))}));else{var s=t.pageSize()-i,l=this.option("scrolling.mode");s>0&&t.pageCount()>1&&"virtual"!==l&&"infinite"!==l&&((0,Fl.QQ)(r,s*this._rowHeight),a=!0),!a&&e?(0,Fl.QQ)(r,0):r.toggle(a),this._updateLastRowBorder(a)}else r.css("height",0),r.show(),this._updateLastRowBorder(!0)}},_getHeightCorrection:function(){var e=Me.Z.webkit&&this._getDevicePixelRatio()>=2,t=Me.Z.chrome&&Me.Z.version>=91,i=Me.Z.mozilla&&Me.Z.version>=70&&!this.option("showRowLines");return e||i||t?1:0},_columnOptionChanged:function(e){var t=e.optionNames;e.changeTypes.grouping||(t.width||t.visibleWidth)&&(this.callBase(e),this._fireColumnResizedCallbacks())},getScrollable:function(){return this._scrollable},init:function(){var e=this,t=e.getController("data");e.callBase(),e._editorFactoryController=e.getController("editorFactory"),e._rowHeight=0,e._scrollTop=0,e._scrollLeft=-1,e._scrollRight=0,e._hasHeight=!1,t.loadingChanged.add((function(t,i){e.setLoading(t,i)})),t.dataSourceChanged.add((function(){e._scrollLeft>=0&&e._handleScroll({component:e.getScrollable(),forceUpdateScrollPosition:!0,scrollOffset:{top:e._scrollTop,left:e._scrollLeft}})}))},_handleDataChanged:function(e){switch(e.changeType){case"refresh":case"prepend":case"append":case"update":this.render(null,e);break;default:this._update(e)}},publicMethods:function(){return["isScrollbarVisible","getTopVisibleRowData","getScrollbarWidth","getCellElement","getRowElement","getScrollable"]},contentWidth:function(){return(0,n.dz)(this.element())-this.getScrollbarWidth()},getScrollbarWidth:function(e){var t,i,n=this._scrollableContainer&&this._scrollableContainer.get(0),r=0;return n&&(e?(r=n.clientHeight?n.offsetHeight-n.clientHeight:0,r+=(t=this,i=t.getScrollable(),i?Math.ceil(parseFloat((0,o.Z)(i.content()).css("paddingBottom"))):0)):r=n.clientWidth?n.offsetWidth-n.clientWidth:0),r>0?r:0},_fireColumnResizedCallbacks:function(){for(var e=this._lastColumnWidths||[],t=[],i=this.getColumns(),n=0;n<i.length;n++)t[n]=i[n].visibleWidth,i[n].resizedCallbacks&&!(0,l.$K)(i[n].groupIndex)&&e[n]!==t[n]&&i[n].resizedCallbacks.fire(t[n]);this._lastColumnWidths=t},_updateLastRowBorder:function(e){this.option("showBorders")&&this.option("showRowLines")&&!e?this.element().addClass(tM):this.element().removeClass(tM)},_updateScrollable:function(){var e=$p.getInstance(this.element());e&&(e.update(),!e.option("useNative")&&null!==e&&void 0!==e&&e.isRenovated()||this._updateHorizontalScrollPosition())},_updateHorizontalScrollPosition:function(){var e=this.getScrollable(),t=e&&e.scrollOffset().left,i=this.option("rtlEnabled");if(i){var n=rM(e),o=n-t;o!==this._scrollRight&&(this._scrollLeft=n-this._scrollRight)}this._scrollLeft>=0&&t!==this._scrollLeft&&e.scrollTo({x:this._scrollLeft})},_resizeCore:function(){var e=this;e._fireColumnResizedCallbacks(),e._updateRowHeight(),(0,v.g0)((function(){e._renderScrollable(),e.renderNoDataText(),e.updateFreeSpaceRowHeight(),(0,v.Su)((function(){e._updateScrollable()}))}))},scrollTo:function(e){var t=this.element(),i=t&&$p.getInstance(t);i&&i.scrollTo(e)},height:function(e,t){var i=this,o=this.element();if(0===arguments.length)return o?(0,n.zp)(o,!0):0;i._hasHeight=void 0===t?"auto"!==e:t,(0,l.$K)(e)&&o&&(0,Fl.QQ)(o,e)},setLoading:function(e,t){var i=this._loadPanel,n=this._dataController,o=this.option("loadPanel")||{},r=n.isLoaded()?o.animation:null,a=this.element();if((0,s.Ym)()&&(!i&&void 0!==t&&n.isLocalStore()&&"auto"===o.enabled&&a&&(this._renderLoadPanel(a,a.parent()),i=this._loadPanel),i)){var l={message:t||o.text,animation:r,visible:e};e&&(l.position=FD.calculateLoadPanelPosition(a)),clearTimeout(this._hideLoadingTimeoutID),i.option("visible")&&!e?this._hideLoadingTimeoutID=setTimeout((function(){i.option(l)}),oM):i.option(l)}},setRowsOpacity:function(e,t){var i=this._getRowElements().not("."+GP)||[];this._setRowsOpacityCore(i,this.getColumns(),e,t)},_getCellElementsCore:function(e){var t=this.callBase.apply(this,arguments);if(t){var i=t.filter("."+qP).index();if(i>=0&&t.length>i+1)return t.slice(0,i+1)}return t},_getBoundaryVisibleItemIndex:function(e,t){var i=0,r=0,a=0,l=this._scrollTop,d=this._findContentElement(),u=d&&d.offset().top,c=this.getController("data"),h=c.items(),p=this.getTableElement();if(h.length&&p){var f=this._getRowElements(p).filter(":visible");if(!e){var g=(0,n.zp)(this._hasHeight?this.element():(0,s.Jj)());l+=g}for(i=0;i<h.length;i++){r=a;var m=(0,o.Z)(f).eq(i);if(m.length&&(a=m.offset(),a=(e?a.top:a.top+(0,n.zp)(m))-u,a>l)){i&&(t||2*l<Math.round(a+r))&&i--;break}}i&&i===h.length&&i--}return i},getTopVisibleItemIndex:function(e){return this._getBoundaryVisibleItemIndex(!0,e)},getBottomVisibleItemIndex:function(e){return this._getBoundaryVisibleItemIndex(!1,e)},getTopVisibleRowData:function(){var e=this.getTopVisibleItemIndex(),t=this._dataController.items();if(t[e])return t[e].data},_scrollToElement:function(e,t){var i=this.getScrollable();i&&i.scrollToElement(e,t)},optionChanged:function(e){switch(this.callBase(e),e.name){case"wordWrapEnabled":case"showColumnLines":case"showRowLines":case"rowAlternationEnabled":case"rowTemplate":case"dataRowTemplate":case"twoWayBindingEnabled":this._invalidate(!0,!0),e.handled=!0;break;case"scrolling":this._rowHeight=null,this._tableElement=null,e.handled=!0;break;case"rtlEnabled":this._rowHeight=null,this._tableElement=null;break;case"loadPanel":this._tableElement=null,this._invalidate(!0,"loadPanel.enabled"!==e.fullName),e.handled=!0;break;case"noDataText":this.renderNoDataText(),e.handled=!0}},dispose:function(){clearTimeout(this._hideLoadingTimeoutID),this._scrollable&&this._scrollable.dispose()},setScrollerSpacing:function(){},_restoreErrorRow:function(){}}}())}},sM="dx-treelist-text-content",lM="dx-treelist-icon-container",dM="dx-treelist-cell-expandable",uM="dx-treelist-empty-space",cM="dx-treelist-expanded",hM="dx-treelist-collapsed",pM=aM.views.rowsView.inherit(function(){var e=function(e,t){var i=(0,o.Z)("<div>").addClass(uM);return e&&i.toggleClass(cM,t).toggleClass(hM,!t).append((0,o.Z)("<span>")),i};return{_renderIconContainer:function(e,t){var i=(0,o.Z)("<div>").addClass(lM).appendTo(e);return t.watch&&t.watch((function(){return[t.row.level,t.row.isExpanded,t.row.node.hasChildren]}),(()=>{i.empty(),this._renderIcons(i,t)})),e.addClass(dM),this._renderIcons(i,t)},_renderIcons:function(t,i){for(var n=i.row,o=n.level,r=0;r<=o;r++)t.append(e(r===o&&n.node.hasChildren,n.isExpanded));return t},_renderCellCommandContent:function(e,t){return this._renderIconContainer(e,t),!0},_processTemplate:function(e,t){var i,n=this,r=this.callBase(e),a=n._columnsController.getFirstDataColumnIndex();return i=r&&t.column.index===a?{render:function(e){var t=e.container;n._renderCellCommandContent(t,e.model)&&(e.container=function(e){return(0,o.Z)("<div>").addClass(sM).appendTo(e)}(t)),r.render(e)}}:r,i},_updateCell:function(e,t){e=e.hasClass(sM)?e.parent():e,this.callBase(e,t)},_rowClick:function(e){var t=this._dataController,i=(0,o.Z)(e.event.target),n=this.isExpandIcon(i),r=t&&t.items()[e.rowIndex];n&&r&&t.changeRowExpand(r.key),this.callBase(e)},_createRow:function(e){var t=e&&e.node,i=this.callBase.apply(this,arguments);return t&&(this.setAria("level",e.level+1,i),t.hasChildren&&this.setAria("expanded",e.isExpanded,i)),i},isExpandIcon:function(e){return!!e.closest("."+cM+", ."+hM).length}}}());zO.registerModule("rows",{defaultOptions:aM.defaultOptions,views:{rowsView:pM}});var fM="dx-context-menu",gM={columnHeadersView:"header",rowsView:"content",footerView:"footer",headerPanel:"headerPanel"},mM=["columnHeadersView","rowsView","footerView","headerPanel"],_M=KO.ViewController.inherit({init:function(){this.createAction("onContextMenuPreparing")},getContextMenuItems:function(e){if(!e)return!1;var t,i,n,r,a=this,s=(0,o.Z)(e.target);return(0,E.S6)(mM,(function(){var o=a.getView(this);if(t=o&&o.element(),t&&(t.is(s)||t.find(s).length)){var l,d;n=s.closest(".dx-row > td, .dx-row > tr"),i=n.parent();var u=o.getRowIndex(i),c=n[0]&&n[0].cellIndex,h=i.data("options"),p={event:e,targetElement:(0,se.u)(s),target:gM[this],rowIndex:u,row:o._getRows()[u],columnIndex:c,column:null===h||void 0===h||null===(l=h.cells)||void 0===l||null===(d=l[c])||void 0===d?void 0:d.column};if(p.items=o.getContextMenuItems&&o.getContextMenuItems(p),a.executeAction("onContextMenuPreparing",p),a._contextMenuPrepared(p),r=p.items,r)return!1}})),r},_contextMenuPrepared:v.ZT}),vM=KO.View.inherit({_renderCore:function(){var e=this,t=e.element().addClass(fM);this.setAria("role","presentation",t),this._createComponent(t,OO,{onPositioning:function(t){var i=t.event,n=t.component,o=e.getController("contextMenu").getContextMenuItems(i);o?(n.option("items",o),i.stopPropagation()):t.cancel=!0},onItemClick:function(e){e.itemData.onItemClick&&e.itemData.onItemClick(e)},cssClass:e.getWidgetContainerClass(),target:e.component.$element()})}}),yM={defaultOptions:function(){return{onContextMenuPreparing:null}},controllers:{contextMenu:_M},views:{contextMenuView:vM}};zO.registerModule("contextMenu",yM);var CM="dx-error-row",bM="dx-error-message",xM="dx-closebutton",wM="action",TM=KO.ViewController.inherit({init:function(){this._columnHeadersView=this.getView("columnHeadersView"),this._rowsView=this.getView("rowsView")},_createErrorRow:function(e,t){var i,n,r=this,a=this._renderErrorMessage(e);return t?(i=(0,o.Z)("<tr>").addClass(CM),n=(0,o.Z)("<div>").addClass(xM).addClass(r.addWidgetPrefix(wM)),re.Z.on(n,A.u,r.createAction((function(e){var i,n=e.event,a=(0,o.Z)(n.currentTarget).closest("."+CM).index();n.stopPropagation(),(0,E.S6)(t,(function(e,t){i=(0,o.Z)(t).children("tbody").children("tr").eq(a),r.removeErrorRow(i)})),r.getController("resizing")&&r.getController("resizing").fireContentReadyAction()}))),(0,o.Z)("<td>").attr({colSpan:r.getController("columns").getVisibleColumns().length,role:"presentation"}).prepend(n).append(a).appendTo(i),i):a},_renderErrorMessage:function(e){var t=e.url?e.message.replace(e.url,""):e.message||e,i=(0,o.Z)("<div>").addClass(bM).text(t);return e.url&&(0,o.Z)("<a>").attr("href",e.url).text(e.url).appendTo(i),i},renderErrorRow:function(e,t,i){var n,r,a=this;if(i)return i.find("."+bM).remove(),n=a._createErrorRow(e),i.prepend(n),n;var s=t>=0||!a._columnHeadersView.isVisible()?a._rowsView:a._columnHeadersView,l=s.getTableElements();(0,E.S6)(l,(function(i,d){if(n=a._createErrorRow(e,l),r=r||n,t>=0){var u=s._getRowElements((0,o.Z)(d)).eq(t);a.removeErrorRow(u.next()),n.insertAfter(u)}else{var c=(0,o.Z)(d).children("tbody"),h=c.children("tr");a._columnHeadersView.isVisible()?(a.removeErrorRow(h.last()),(0,o.Z)(d).append(n)):(a.removeErrorRow(h.first()),c.first().prepend(n))}}));var d=a.getController("resizing");return d&&d.fireContentReadyAction(),r},removeErrorRow:function(e){if(!e){var t=this._columnHeadersView&&this._columnHeadersView.element();if(e=t&&t.find("."+CM),!e||!e.length){var i=this._rowsView.element();e=i&&i.find("."+CM)}}e&&e.hasClass(CM)&&e.remove()},optionChanged:function(e){switch(e.name){case"errorRowEnabled":e.handled=!0;break;default:this.callBase(e)}}}),SM={defaultOptions:function(){return{errorRowEnabled:!0}},controllers:{errorHandling:TM},extenders:{controllers:{data:{init:function(){var e=this,t=e.getController("errorHandling");e.callBase(),e.dataErrorOccurred.add((function(i,n){e.option("errorRowEnabled")&&t.renderErrorRow(i,void 0,n)})),e.changed.add((function(t){if(!t||"loadError"!==t.changeType){var i=e.getController("errorHandling"),n=e.getController("editing");n&&!n.hasChanges()&&i&&i.removeErrorRow()}}))}}}}};zO.registerModule("errorHandling",SM);var IM="borders",EM="table-fixed",DM="important-margin",kM="dx-gridbase-container",OM="adaptiveHidden",AM=["columnsSeparatorView","blockSeparatorView","trackerView","headerPanel","columnHeadersView","rowsView","footerView","columnChooserView","filterPanelView","pagerView","draggingHeaderView","contextMenuView","errorView","headerFilterView","filterBuilderView"],PM=function(e){return(0,l.HD)(e)&&"%"===e.slice(-1)},MM=function(e){return(0,l.HD)(e)&&"px"===e.slice(-2)},RM=function(e){var t=e.get(0).clientHeight,i=parseFloat(e.css("paddingTop")),n=parseFloat(e.css("paddingBottom"));return t-i-n},BM=function(e,t){var i=e._rowsView.contentWidth(),n=e._getTotalWidth(t,i);return i-n},VM=function(e,t,i,n){return BM(e,n.map((function(e,n){return n===t?i:e})))},FM=function(e,t){$A(e),FD.setSelectionRange(e,t)},HM=KO.ViewController.inherit({_initPostRenderHandlers:function(){var e=this._dataController;this._refreshSizesHandler||(this._refreshSizesHandler=t=>{e.changed.remove(this._refreshSizesHandler);var i=t&&t.templateDeferreds||[];ot.gx.apply(this,i).done((()=>{this._refreshSizes(t)}))},e.changed.add((()=>{e.changed.add(this._refreshSizesHandler)})))},_refreshSizes:function(e){var t,i=this,n=e&&e.changeType,o=e&&e.isDelayed,r=i._dataController.items();if(e&&"refresh"!==n&&"prepend"!==n&&"append"!==n){if("update"===n){var a;if(0===(null===(a=e.changeTypes)||void 0===a?void 0:a.length))return;!(r.length>1||"insert"!==e.changeTypes[0])||0===r.length&&"remove"===e.changeTypes[0]||e.needUpdateDimensions?t=i.resize():(0,v.Su)((()=>(0,v.g0)((()=>(0,v.Su)((()=>{i._setScrollerSpacing(i._hasHeight),i._rowsView.resize()}))))))}}else o||(t=i.resize());n&&"updateSelection"!==n&&"updateFocusedRow"!==n&&"pageIndex"!==n&&!o&&(0,ot.gx)(t).done((function(){i._setAriaRowColCount(),i.fireContentReadyAction()}))},fireContentReadyAction:function(){this.component._fireContentReadyAction()},_setAriaRowColCount:function(){var e=this.component;e.setAria({rowCount:this._dataController.totalItemsCount(),colCount:e.columnCount()},e.$element().children("."+kM))},_getBestFitWidths:function(){var e,t=this._rowsView,i=this._columnHeadersView,n=t.getColumnWidths();if(null===(e=n)||void 0===e||!e.length){var o,r=i.getTableElement();i.setTableElement(null===(o=t.getTableElement())||void 0===o?void 0:o.children(".dx-header")),n=i.getColumnWidths(),i.setTableElement(r)}return n},_setVisibleWidths:function(e,t){var i=this._columnsController;i.beginUpdate(),(0,E.S6)(e,(function(e,n){var o=i.getColumnId(n);i.columnOption(o,"visibleWidth",t[e])})),i.endUpdate()},_toggleBestFitModeForView:function(e,t,i){if(e&&e.isVisible()){var n=this._rowsView.getTableElements(),r=e.getTableElements();(0,E.S6)(n,((e,n)=>{var a,s=(0,o.Z)(n),l=r.eq(e);l&&l.length&&(a=i?l.children("tbody").appendTo(s):s.children("."+t).appendTo(l),a.toggleClass(t,i),a.toggleClass(this.addWidgetPrefix("best-fit"),i))}))}},_toggleBestFitMode:function(e){var t=this._rowsView.getTableElement(),i=this._rowsView.getTableElements().eq(1);t&&(t.css("tableLayout",e?"auto":"fixed"),t.children("colgroup").css("display",e?"none":""),i.toggleClass(this.addWidgetPrefix(EM),!e),this._toggleBestFitModeForView(this._columnHeadersView,"dx-header",e),this._toggleBestFitModeForView(this._footerView,"dx-footer",e),this._toggleContentMinHeight(e),this._needStretch()&&(t.get(0).style.width=e?"auto":""))},_toggleContentMinHeight:function(e){if(this.option("wordWrapEnabled")){var t=this._rowsView.getScrollable(),i=this._rowsView._findContentElement();!1===(null===t||void 0===t?void 0:t.option("useNative"))&&i.css({minHeight:e?FD.getContentHeightLimit(Me.Z):""})}},_synchronizeColumns:function(){var e,t,i,n=this._columnsController,o=n.getVisibleColumns(),r=this.option("columnAutoWidth"),a=this._needBestFit(),s=!1,d=!1,u=[];!a&&(0,E.S6)(o,(function(e,t){if("auto"===t.width)return a=!0,!1})),(0,E.S6)(o,(function(e,t){if(t.minWidth)return s=!0,!1})),this._setVisibleWidths(o,[]);var c=this.component.$element();a&&(t=ke["default"].getActiveElement(c.get(0)),i=FD.getSelectionRange(t),this._toggleBestFitMode(!0),e=!0),c&&c.get(0)&&this._maxWidth&&(delete this._maxWidth,c[0].style.maxWidth=""),(0,v.Su)((()=>{if(a?(u=this._getBestFitWidths(),(0,E.S6)(o,(function(e,t){var i=n.getColumnId(t);n.columnOption(i,"bestFitWidth",u[e],!0)}))):s&&(u=this._getBestFitWidths()),(0,E.S6)(o,(function(e){var t=this.width;"auto"!==t&&((0,l.$K)(t)?u[e]=(0,l.kE)(t)||MM(t)?parseFloat(t):t:r||(u[e]=void 0))})),e&&(this._toggleBestFitMode(!1),e=!1,t&&t!==ke["default"].getActiveElement())){var c=Pe(t).bottom<0;c||FM(t,i)}d=this._correctColumnWidths(u,o),r&&(!function(){var e;(0,E.S6)(o,(function(t,i){"groupExpand"===i.type&&(e=u[t])})),(0,E.S6)(o,(function(t,i){"groupExpand"===i.type&&e&&(u[t]=e)}))}(),this._needStretch()&&this._processStretch(u,o)),(0,v.g0)((()=>{(a||d)&&this._setVisibleWidths(o,u)}))}))},_needBestFit:function(){return this.option("columnAutoWidth")},_needStretch:function(){return this._columnsController.getVisibleColumns().some((e=>"auto"===e.width&&!e.command))},_getAverageColumnsWidth:function(e){var t=BM(this,e),i=e.filter((function(e){return void 0===e})).length;return t/i},_correctColumnWidths:function(e,t){var i,o=this,r=!1,a=!1,s=!1,d=o.component.$element(),u=o._hasWidth,c=function(){var n=i,d=t[n],u=e[n]===OM,c=e[n],h=d.minWidth;if(h)if(void 0===c){var p=o._getAverageColumnsWidth(e);c=p}else if(PM(c)){var f=VM(o,n,h,e);f<0&&(c=-1)}var g=o._getRealColumnWidth(n,e.map((function(e,t){return n===t?c:e})));h&&!u&&g<h&&(e[n]=h,s=!0,i=-1),(0,l.$K)(d.width)||(a=!0),PM(d.width)&&(r=!0)};for(i=0;i<t.length;i++)c();if(!a&&e.length){var h=o._rowsView.element(),p=o._rowsView.contentWidth(),f=o._rowsView.getScrollbarWidth(),g=o._getTotalWidth(e,p);if(g<p){var m=FD.getLastResizableColumnIndex(t,e);if(m>=0&&(e[m]="auto",s=!0,!1===u&&!r)){var _=o.option("showBorders")?Math.ceil((0,n.Y_)(h)-(0,n.Xt)(h)):0;o._maxWidth=g+f+_,d.css("maxWidth",o._maxWidth)}}}return s},_processStretch:function(e,t){var i=this._rowsView.contentWidth(),n=this._getTotalWidth(e,i),o={length:0};if(e.length){(0,E.S6)(t,(function(t){(this.width||e[t]===OM)&&(o[t]=!0,o.length++)}));var r=i-n,a=Math.floor(r/(e.length-o.length)),s=r-a*(e.length-o.length);if(r>=0)for(var l=0;l<e.length;l++)o[l]||(e[l]+=a,s>0&&(s<1?(e[l]+=s,s=0):(e[l]++,s--)))}},_getRealColumnWidth:function(e,t,i){var n=1,o=t[e];if(!PM(o))return parseFloat(o);var r=t.reduce(((e,t,i)=>PM(t)?e+parseFloat(t):e),0),a=t.reduce(((e,t)=>!t||t===OM||PM(t)?e:e+parseFloat(t)),0);i=i||this._rowsView.contentWidth();var s=i-a,l=r*i/100;return a>0&&l+a>=i&&(n=l>s?s/l:1),parseFloat(o)*i*n/100},_getTotalWidth:function(e,t){for(var i=0,n=0;n<e.length;n++){var o=e[n];o&&o!==OM&&(i+=this._getRealColumnWidth(n,e,t))}return Math.ceil(i)},updateSize:function(e){var t,i,r=(0,o.Z)(e),a=this.addWidgetPrefix(DM);void 0===this._hasHeight&&r&&r.is(":visible")&&(0,n.dz)(r)&&(t=r.children("."+this.getWidgetContainerClass()),t.length&&t.detach(),this._hasHeight=!!RM(r),i=(0,n.dz)(r),r.addClass(a),this._hasWidth=(0,n.dz)(r)===i,r.removeClass(a),t.length&&t.appendTo(r))},publicMethods:function(){return["resize","updateDimensions"]},resize:function(){return!this.component._requireResize&&this.updateDimensions()},updateDimensions:function(e){var t=this;if(t._initPostRenderHandlers(),t._checkSize(e)){var i=t._resizeDeferred,n=t._resizeDeferred=new ot.BH;return(0,ot.gx)(i).always((function(){(0,v.g0)((function(){t._dataController.isLoaded()&&t._synchronizeColumns(),t._resetGroupElementHeight(),(0,v.Su)((function(){(0,v.g0)((function(){(0,v.Su)((function(){t._updateDimensionsCore()}))}))}))})).done(n.resolve).fail(n.reject)})),n.promise()}},_resetGroupElementHeight:function(){var e=this.component.$element().children().get(0),t=this._rowsView.getScrollable();!e||!e.style.height||t&&t.scrollTop()||(e.style.height="")},_checkSize:function(e){var t=this.component.$element();return!(e&&(this._lastWidth===(0,n.dz)(t)&&this._lastHeight===(0,n.Cr)(t)&&this._devicePixelRatio===(0,s.Jj)().devicePixelRatio||!t.is(":visible")))},_setScrollerSpacingCore:function(e){var t=this,i=e?t._rowsView.getScrollbarWidth():0,n=t._rowsView.getScrollbarWidth(!0);(0,v.g0)((function(){t._columnHeadersView&&t._columnHeadersView.setScrollerSpacing(i),t._footerView&&t._footerView.setScrollerSpacing(i),t._rowsView.setScrollerSpacing(i,n)}))},_setScrollerSpacing:function(e){!0===this.option("scrolling.useNative")?(0,v.g0)((()=>{(0,v.Su)((()=>{this._setScrollerSpacingCore(e)}))})):this._setScrollerSpacingCore(e)},_updateDimensionsCore:function(){var e,t=this,i=t._dataController,r=t._rowsView,a=t.component.$element(),s=a.children().get(0),l=a&&(a.get(0).clientHeight||(0,n.Cr)(a)),d=parseInt(a.css("maxHeight")),u=d&&l>=d,c=t.option("height")||a.get(0).style.height,h=t.getController("editorFactory"),p=u&&s.scrollHeight===s.offsetHeight;t.updateSize(a);var f=t._hasHeight||u;c&&t._hasHeight^"auto"!==c&&(e=(0,o.Z)("<div>"),(0,n.QQ)(e,c),e.appendTo(a),t._hasHeight=!!(0,n.Cr)(e),e.remove()),(0,v.g0)((function(){r.height(null,f),u&&!p&&(0,o.Z)(s).css("height",d),i.isLoaded()?(0,v.Su)((function(){t._updateLastSizes(a),t._setScrollerSpacing(f),(0,E.S6)(AM,(function(e,i){var n=t.getView(i);n&&n.resize()})),h&&h.resize()})):r.setLoading(i.isLoading())}))},_updateLastSizes:function(e){this._lastWidth=(0,n.dz)(e),this._lastHeight=(0,n.Cr)(e),this._devicePixelRatio=(0,s.Jj)().devicePixelRatio},optionChanged:function(e){switch(e.name){case"width":case"height":this.component._renderDimensions(),this.resize();case"renderAsync":return void(e.handled=!0);default:this.callBase(e)}},init:function(){this._dataController=this.getController("data"),this._columnsController=this.getController("columns"),this._columnHeadersView=this.getView("columnHeadersView"),this._footerView=this.getView("footerView"),this._rowsView=this.getView("rowsView")}}),LM=KO.ViewController.inherit({_scrollChangedHandler:function(e,t,i){for(var n=0;n<e.length;n++)e[n]&&e[n].name!==i&&e[n].scrollTo({left:t.left,top:t.top})},init:function(){for(var e=[this.getView("columnHeadersView"),this.getView("footerView"),this.getView("rowsView")],t=0;t<e.length;t++){var i=e[t];i&&i.scrollChanged.add(this._scrollChangedHandler.bind(this,e))}}}),NM=KO.View.inherit({_endUpdateCore:function(){this.component._requireResize&&(this.component._requireResize=!1,this._resizingController.resize())},_getWidgetAriaLabel:function(){return"dxDataGrid-ariaDataGrid"},init:function(){this._resizingController=this.getController("resizing"),this._dataController=this.getController("data")},getView:function(e){return this.component._views[e]},element:function(){return this._groupElement},optionChanged:function(e){(0,l.$K)(this._groupElement)&&"showBorders"===e.name?(this._groupElement.toggleClass(this.addWidgetPrefix(IM),!!e.value),e.handled=!0):this.callBase(e)},_renderViews:function(e){var t=this;(0,E.S6)(AM,(function(i,n){var o=t.getView(n);o&&o.render(e)}))},_getTableRoleName:function(){return"grid"},render:function(e){var t=!this._groupElement,i=this._groupElement||(0,o.Z)("<div>").addClass(this.getWidgetContainerClass());i.addClass(kM),i.toggleClass(this.addWidgetPrefix(IM),!!this.option("showBorders")),this.setAria("role","presentation",e),this.component.setAria({role:this._getTableRoleName(),label:y.Z.format(this._getWidgetAriaLabel())},i),this._rootElement=e||this._rootElement,t&&(this._groupElement=i,(0,s.Ym)()&&this.getController("resizing").updateSize(e),i.appendTo(e)),this._renderViews(i)},update:function(){var e=this._rootElement,t=this._groupElement,i=this.getController("resizing");e&&t&&(i.resize(),this._dataController.isLoaded()&&this._resizingController.fireContentReadyAction())}}),ZM={defaultOptions:function(){return{showBorders:!1,renderAsync:!1}},controllers:{resizing:HM,synchronizeScrolling:LM},views:{gridView:NM},VIEW_NAMES:AM},$M=ZM.views.gridView.inherit({_getWidgetAriaLabel:function(){return"dxTreeList-ariaTreeList"},_getTableRoleName:function(){return"treegrid"}});zO.registerModule("gridView",{defaultOptions:ZM.defaultOptions,controllers:ZM.controllers,views:{gridView:$M},extenders:{controllers:{resizing:{_synchronizeColumns:function(){var e=this.option("wordWrapEnabled");e&&this._toggleContentMinHeight(!0),this.callBase(arguments),e&&(0,v.Su)((()=>{(0,v.g0)((()=>{(0,v.Su)((()=>{this._toggleContentMinHeight(!1)}))}))}))},_toggleBestFitMode:function(e){this.callBase(e);var t=this._rowsView.getTableElement();t.find(".dx-treelist-cell-expandable").toggleClass(this.addWidgetPrefix("best-fit"),e)}}}}});var WM="header-panel",KM="toolbar-button",zM="-ariaToolbar",jM=["addRowButton","applyFilterButton","columnChooserButton","exportButton","groupPanel","revertButton","saveButton","searchPanel"],UM=xA.inherit({_getToolbarItems:function(){return[]},_getButtonContainer:function(){return(0,o.Z)("<div>").addClass(this.addWidgetPrefix(KM))},_getToolbarButtonClass:function(e){var t=e?" "+e:"";return this.addWidgetPrefix(KM)+t},_getToolbarOptions:function(){var e=this.option("toolbar"),t={toolbarOptions:{items:this._getToolbarItems(),visible:null===e||void 0===e?void 0:e.visible,disabled:null===e||void 0===e?void 0:e.disabled,onItemRendered:function(e){var t=e.itemData.onItemRendered;t&&t(e)}}},i=null===e||void 0===e?void 0:e.items;if(t.toolbarOptions.items=this._normalizeToolbarItems(t.toolbarOptions.items,i),this.executeAction("onToolbarPreparing",t),t.toolbarOptions&&!(0,l.$K)(t.toolbarOptions.visible)){var n=t.toolbarOptions.items;t.toolbarOptions.visible=!(null===n||void 0===n||!n.length)}return t.toolbarOptions},_normalizeToolbarItems(e,t){e.forEach((e=>{if(!jM.includes(e.name))throw new Error("Default toolbar item '".concat(e.name,"' is not added to DEFAULT_TOOLBAR_ITEM_NAMES"))}));var i={location:"after"},n=Array.isArray(t);if(!(0,l.$K)(t))return e;n||(t=[t]);var o={};e.forEach((e=>{o[e.name]=e}));var r=t.map((e=>((0,l.HD)(e)&&(e={name:e}),(0,l.$K)(e.name)&&((0,l.$K)(o[e.name])?e=(0,a.l)(!0,{},o[e.name],e):jM.includes(e.name)&&(e=(0,hn.Z)({},e,{visible:!1}))),(0,a.l)(!0,{},i,e))));return n?r:r[0]},_renderCore:function(){if(this._toolbar)this._toolbar.option(this._toolbarOptions);else{var e=this.element();e.addClass(this.addWidgetPrefix(WM));var t=y.Z.format(this.component.NAME+zM),i=(0,o.Z)("<div>").attr("aria-label",t).appendTo(e);this._toolbar=this._createComponent(i,Sk,this._toolbarOptions)}},_columnOptionChanged:v.ZT,_handleDataChanged:function(){this._requireReady&&this.render()},init:function(){this.callBase(),this.createAction("onToolbarPreparing",{excludeValidators:["disabled","readOnly"]})},render:function(){this._toolbarOptions=this._getToolbarOptions(),this.callBase.apply(this,arguments)},setToolbarItemDisabled:function(e,t){var i=this._toolbar;if(i){var n=i.option("items")||[],o=n.indexOf(n.filter((function(t){return t.name===e}))[0]);if(o>=0){var r="items["+o+"]";i.option(r+".options")?i.option(r+".options.disabled",t):i.option(r+".disabled",t)}}},updateToolbarDimensions:function(){var e;null===(e=this._toolbar)||void 0===e||e.updateDimensions()},getHeaderPanel:function(){return this.element()},getHeight:function(){return this.getElementHeight()},optionChanged:function(e){if("onToolbarPreparing"===e.name&&(this._invalidate(),e.handled=!0),"toolbar"===e.name&&(e.handled=!0,this._toolbar)){var t=(0,r.Zw)(e.fullName),i=e.fullName.replace(/^toolbar\./,"");if(1===t.length){var n=this._getToolbarOptions();this._toolbar.option(n)}else if("items"===t[1])if(2===t.length){var o=this._getToolbarOptions();this._toolbar.option("items",o.items)}else if(3===t.length){var a=this._normalizeToolbarItems(this._getToolbarItems(),e.value);this._toolbar.option(i,a)}else t.length>=4&&this._toolbar.option(i,e.value);else this._toolbar.option(i,e.value)}this.callBase(e)},isVisible:function(){return this._toolbarOptions&&this._toolbarOptions.visible},allowDragging:v.ZT}),GM={defaultOptions:function(){return{}},views:{headerPanel:UM},extenders:{controllers:{resizing:{_updateDimensionsCore:function(){this.callBase.apply(this,arguments),this.getView("headerPanel").updateToolbarDimensions()}}}}};zO.registerModule("headerPanel",GM);var qM=zO.callModuleItemsMethod,YM=".dx-row",XM="dx-treelist";zO.registerModulesOrder(["stateStoring","columns","selection","editorFactory","columnChooser","editingRowBased","editingFormBased","editingCellBased","editing","grouping","masterDetail","validating","adaptivity","data","virtualScrolling","columnHeaders","filterRow","headerPanel","headerFilter","sorting","search","rows","pager","columnsResizingReordering","contextMenu","keyboardNavigation","errorHandling","summary","columnFixing","export","gridView"]);var JM=G.inherit({_activeStateUnit:YM,_getDefaultOptions:function(){var e=this.callBase();return(0,E.S6)(zO.modules,(function(){(0,l.mf)(this.defaultOptions)&&(0,a.l)(!0,e,this.defaultOptions())})),e},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return(0,x.x2)()},options:{showRowLines:!0,showColumnLines:!1,headerFilter:{height:315},editing:{useIcons:!0}}}])},_init:function(){this.callBase(),zO.processModules(this,zO),qM(this,"init")},_clean:v.ZT,_optionChanged:function(e){qM(this,"optionChanged",[e]),e.handled||this.callBase(e)},_dimensionChanged:function(){this.updateDimensions(!0)},_visibilityChanged:function(e){e&&this.updateDimensions()},_initMarkup:function(){this.callBase.apply(this,arguments),this.$element().addClass(XM),this.getView("gridView").render(this.$element())},_renderContentImpl:function(){this.getView("gridView").update()},_renderContent:function(){var e=this;(0,v.g0)((function(){e._renderContentImpl()}))},_dispose:function(){this.callBase(),qM(this,"dispose")},isReady:function(){return this.getController("data").isReady()},beginUpdate:function(){this.callBase(),qM(this,"beginUpdate")},endUpdate:function(){qM(this,"endUpdate"),this.callBase()},getController:function(e){return this._controllers[e]},getView:function(e){return this._views[e]},focus:function(e){this.callBase(),(0,l.$K)(e)&&this.getController("keyboardNavigation").focus(e)}});JM.registerModule=zO.registerModule.bind(zO),(0,C.Z)("dxTreeList",JM);var QM=JM,eR=i(65012),tR=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/,iR=function e(t){t&&(0,E.S6)(t,(function(i,n){if((0,l.PO)(n)||Array.isArray(n))e(n);else if("string"===typeof n){var o=tR.exec(n);o&&(t[i]=new Date(Date.UTC(+o[1],+o[2]-1,+o[3],+o[4],+o[5],+o[6])))}}))},nR=KO.ViewController.inherit(function(){var e=function(e){var t="sessionStorage"===e.type?(0,eR.y)():(0,s.Jj)().localStorage;if(!t)throw new Error("E1007");return t},t=function(e){return(0,l.$K)(e.storageKey)?e.storageKey:"storage"};return{_loadState:function(){var i=this.option("stateStoring");if("custom"===i.type)return i.customLoad&&i.customLoad();try{return JSON.parse(e(i).getItem(t(i)))}catch(n){Xt.Z.log(n.message)}},_saveState:function(i){var n=this.option("stateStoring");if("custom"!==n.type)try{e(n).setItem(t(n),JSON.stringify(i))}catch(o){Xt.Z.log(o.message)}else n.customSave&&n.customSave(i)},publicMethods:function(){return["state"]},isEnabled:function(){return this.option("stateStoring.enabled")},init:function(){var e=this;return e._state={},e._isLoaded=!1,e._isLoading=!1,e._windowUnloadHandler=function(){void 0!==e._savingTimeoutID&&e._saveState(e.state())},re.Z.on((0,s.Jj)(),"unload",e._windowUnloadHandler),e},isLoaded:function(){return this._isLoaded},isLoading:function(){return this._isLoading},load:function(){this._isLoading=!0;var e=(0,ot.p4)(this._loadState());return e.always((()=>{this._isLoaded=!0,this._isLoading=!1})).done((e=>{null===e||(0,l.Qr)(e)||this.state(e)})),e},state:function(e){var t=this;if(!arguments.length)return(0,a.l)(!0,{},t._state);t._state=(0,a.l)({},e),iR(t._state)},save:function(){var e=this;clearTimeout(e._savingTimeoutID),e._savingTimeoutID=setTimeout((function(){e._saveState(e.state()),e._savingTimeoutID=void 0}),e.option("stateStoring.savingTimeout"))},optionChanged:function(e){switch(e.name){case"stateStoring":this.isEnabled()&&!this.isLoading()&&this.load(),e.handled=!0;break;default:this.callBase(e)}},dispose:function(){clearTimeout(this._savingTimeoutID),re.Z.off((0,s.Jj)(),"unload",this._windowUnloadHandler)}}}()),oR=e=>{var t=e.getView("pagerView"),i=e.getController("data"),n={allowedPageSizes:t?t.getPageSizes():void 0,filterPanel:{filterEnabled:e.option("filterPanel.filterEnabled")},filterValue:e.option("filterValue"),focusedRowKey:e.option("focusedRowEnabled")?e.option("focusedRowKey"):void 0};return(0,a.l)(n,i.getUserState())},rR=e=>{var t=e.getController("columns"),i=e.getController("selection"),n=e.getController("export"),o=e.getController("data");t&&t.columnsChanged.add((function(){e.updateState({columns:t.getUserState()})})),i&&i.selectionChanged.add((function(t){e.updateState({selectedRowKeys:t.selectedRowKeys,selectionFilter:t.selectionFilter})})),o&&(e._initialPageSize=e.option("paging.pageSize"),e._initialFilterValue=e.option("filterValue"),o.changed.add((function(){var t=oR(e);e.updateState(t)}))),n&&n.selectionOnlyChanged.add((function(){e.updateState({exportSelectionOnly:n.selectionOnly()})}))},aR=null,sR=(e,t)=>{var i=e.getController("filterSync"),n=e.getController("columns"),o=t.columns||void 0!==t.filterValue;return i?o?t.filterValue||i.getFilterValueFromColumns(t.columns):e._initialFilterValue||i.getFilterValueFromColumns(n.getColumns()):aR},lR={defaultOptions:function(){return{stateStoring:{enabled:!1,storageKey:null,type:"localStorage",customLoad:null,customSave:null,savingTimeout:2e3}}},controllers:{stateStoring:nR},extenders:{views:{rowsView:{init:function(){var e=this,t=e.getController("data");e.callBase(),t.stateLoaded.add((function(){if(t.isLoaded()&&!t.getDataSource()){e.setLoading(!1),e.renderNoDataText();var i=e.component.getView("columnHeadersView");i&&i.render(),e.component._fireContentReadyAction()}}))}}},controllers:{stateStoring:{init:function(){this.callBase.apply(this,arguments),rR(this)},isLoading:function(){return this.callBase()||this.getController("data").isStateLoading()},state:function(e){var t=this.callBase.apply(this,arguments);return void 0!==e&&this.applyState((0,a.l)(!0,{},e)),t},updateState:function(e){if(this.isEnabled()){var t=this.state(),i=(0,a.l)({},t,e),n=(0,v.k3)(t),o=(0,v.k3)(i);(0,v.bY)(n,o)||(e=(0,a.l)(!0,{},e),(0,a.l)(this._state,e),this.save())}else(0,a.l)(this._state,e)},applyState:function(e){var t=e.allowedPageSizes,i=e.searchText,n=e.selectedRowKeys,o=e.selectionFilter,r=this.getController("export"),a=this.getController("columns"),s=this.getController("data"),d=this.option("scrolling.mode"),u="virtual"===d||"infinite"===d,c=!0===this.option("pager.visible")&&this.option("pager.showPageSizeSelector");this.component.beginUpdate(),a&&a.setUserState(e.columns),r&&r.selectionOnly(e.exportSelectionOnly),this.option("selection.deferred")||this.option("selectedRowKeys",n||[]),this.option("selectionFilter",o),t&&"auto"===this.option("pager.allowedPageSizes")&&(this.option("pager").allowedPageSizes=t),this.option("focusedRowEnabled")&&(this.option("focusedRowIndex",-1),this.option("focusedRowKey",e.focusedRowKey||null)),this.component.endUpdate(),this.option("searchPanel.text",i||""),this.option("filterValue",sR(this,e)),this.option("filterPanel.filterEnabled",!e.filterPanel||e.filterPanel.filterEnabled),this.option("paging.pageIndex",e.pageIndex||0),this.option("paging.pageSize",u&&!c||!(0,l.$K)(e.pageSize)?this._initialPageSize:e.pageSize),s&&s.reset()}},columns:{_shouldReturnVisibleColumns:function(){var e=this.callBase.apply(this,arguments),t=this.getController("stateStoring");return e&&(!t.isEnabled()||t.isLoaded())}},data:{callbackNames:function(){return this.callBase().concat(["stateLoaded"])},_refreshDataSource:function(){var e=this.callBase,t=this.getController("stateStoring");if(t.isEnabled()&&!t.isLoaded()){clearTimeout(this._restoreStateTimeoutID);var i=new ot.BH;return this._restoreStateTimeoutID=setTimeout((()=>{t.load().always((()=>{this._restoreStateTimeoutID=null})).done((()=>{e.call(this),this.stateLoaded.fire(),i.resolve()})).fail((e=>{this.stateLoaded.fire(),this._handleLoadError(e||"Unknown error"),i.reject()}))})),i.promise()}this.isStateLoading()||e.call(this)},isLoading:function(){var e=this.getController("stateStoring");return this.callBase()||e.isLoading()},isStateLoading:function(){return(0,l.$K)(this._restoreStateTimeoutID)},isLoaded:function(){return this.callBase()&&!this.isStateLoading()},dispose:function(){clearTimeout(this._restoreStateTimeoutID),this.callBase()}},selection:{_fireSelectionChanged:function(e){var t=this.getController("stateStoring"),i=this.option("selection.deferred");t.isLoading()&&i||this.callBase.apply(this,arguments)}}}}},dR=lR.extenders.controllers.stateStoring.applyState;zO.registerModule("stateStoring",(0,a.l)(!0,{},lR,{extenders:{controllers:{stateStoring:{applyState:function(e){dR.apply(this,arguments),this.option("expandedRowKeys",e.expandedRowKeys?e.expandedRowKeys.slice():[])}},data:{getUserState:function(){var e=this.callBase.apply(this,arguments);return this.option("autoExpandAll")||(e.expandedRowKeys=this.option("expandedRowKeys")),e}}}}}));var uR="dx-treeview",cR="".concat(uR,"-node"),hR="".concat(cR,"-container"),pR="".concat(cR,"-loadindicator"),fR="".concat(cR,"-container-opened"),gR="".concat(cR,"-is-leaf"),mR="".concat(uR,"-item"),_R="".concat(mR,"-with-checkbox"),vR="".concat(mR,"-without-checkbox"),yR="".concat(mR,"-data"),CR="".concat(uR,"-toggle-item-visibility"),bR="".concat(uR,"-loadindicator"),xR="".concat(uR,"-loadindicator-wrapper"),wR="".concat(uR,"-toggle-item-visibility-opened"),TR="".concat(uR,"-select-all-item"),SR="dx-state-invisible",IR="dx-state-disabled",ER="dx-state-selected",DR="dxTreeView_expand",kR="data-item-id",OR=Bk.inherit({_supportedKeys:function(e){var t=e=>{var t=(0,o.Z)(this.option("focusedElement"));if(t.length){e.target=t,e.currentTarget=t,this._itemClickHandler(e,t.children("."+mR));var i=this._getEventNameByOption(this.option("expandEvent")),n=i===(0,R.V4)(A.u,DR);n&&this._expandEventHandler(e)}},i=e=>{e.preventDefault();var t=(0,o.Z)(this.option("focusedElement")),i=this._getCheckBoxInstance(t);if(!i.option("disabled")){var n=i.option("value");this._updateItemSelection(!n,t.find("."+mR).get(0),!0)}},n=function(e,t){if(this.option("expandAllEnabled")){t.preventDefault();var i=(0,o.Z)(this.option("focusedElement"));if(i.length){var n=this._getItemData(i.find(".".concat(mR)));this._toggleExpandedNestedItems([n],e)}}};return(0,a.l)(this.callBase(),{enter:this._showCheckboxes()?i:t,space:this._showCheckboxes()?i:t,asterisk:n.bind(this,!0),minus:n.bind(this,!1)})},_toggleExpandedNestedItems:function(e,t){if(e)for(var i=0,n=e.length;i<n;i++){var o=e[i],r=this._dataAdapter.getNodeByItem(o);this._toggleExpandedState(r,t),this._toggleExpandedNestedItems(o.items,t)}},_getNodeElement:function(e,t){var i=this._encodeString(e.internalFields.key);if(t)return t.$nodeByKey||(t.$nodeByKey={},this.$element().find(".".concat(cR)).each((function(){var e=(0,o.Z)(this),i=e.attr(kR);t.$nodeByKey[i]=e}))),t.$nodeByKey[i]||(0,o.Z)();var n=this.$element().get(0).querySelector("[".concat(kR,'="').concat(i,'"]'));return(0,o.Z)(n)},_activeStateUnit:"."+mR,_widgetClass:function(){return uR},_getDefaultOptions:function(){var e=(0,a.l)(this.callBase(),{animationEnabled:!0,dataStructure:"tree",deferRendering:!0,expandAllEnabled:!1,hasItemsExpr:"hasItems",selectNodesRecursive:!0,expandNodesRecursive:!0,showCheckBoxesMode:"none",selectAllText:y.Z.format("dxList-selectAll"),onItemSelectionChanged:null,onItemExpanded:null,onItemCollapsed:null,scrollDirection:"vertical",useNativeScrolling:!0,virtualModeEnabled:!1,rootValue:0,focusStateEnabled:!1,selectionMode:"multiple",expandEvent:"dblclick",selectByClick:!1,createChildren:null,onSelectAllValueChanged:null});return(0,a.l)(!0,e,{integrationOptions:{useDeferUpdateForTemplates:!1}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return!b.nativeScrolling},options:{useNativeScrolling:!1}}])},_initSelectedItems:v.ZT,_syncSelectionOptions:v.C$,_fireSelectionChanged:function(){var e=this._selectionChangePromise;(0,ot.gx)(e).done(function(){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})()}.bind(this))},_createSelectAllValueChangedAction:function(){this._selectAllValueChangedAction=this._createActionByOption("onSelectAllValueChanged",{excludeValidators:["disabled","readOnly"]})},_fireSelectAllValueChanged:function(e){this._selectAllValueChangedAction({value:e})},_checkBoxModeChange:function(e,t){if("none"!==t&&"none"!==e){var i=this._$selectAllItem&&this._$selectAllItem.length;switch(e){case"selectAll":i||(this._createSelectAllValueChangedAction(),this._renderSelectAllItem());break;case"normal":i&&(this._$selectAllItem.remove(),delete this._$selectAllItem)}}else this.repaint()},_removeSelection:function(){var e=this;(0,E.S6)(this._dataAdapter.getFullData(),(function(t,i){e._hasChildren(i)&&e._dataAdapter.toggleSelection(i.internalFields.key,!1,!0)}))},_optionChanged:function(e){var{name:t,value:i,previousValue:n}=e;switch(t){case"selectAllText":this._$selectAllItem&&this._$selectAllItem.dxCheckBox("instance").option("text",i);break;case"showCheckBoxesMode":this._checkBoxModeChange(i,n);break;case"scrollDirection":this.getScrollable().option("direction",i);break;case"useNativeScrolling":this.getScrollable().option("useNative",i);break;case"items":delete this._$selectAllItem,this.callBase(e);break;case"dataSource":this.callBase(e),this._initDataAdapter(),this._filter={};break;case"hasItemsExpr":this._initAccessors(),this.repaint();break;case"expandEvent":this._initExpandEvent();break;case"deferRendering":case"dataStructure":case"rootValue":case"createChildren":case"expandNodesRecursive":case"onItemSelectionChanged":case"onItemExpanded":case"onItemCollapsed":case"expandAllEnabled":case"animationEnabled":case"virtualModeEnabled":case"selectByClick":break;case"selectionMode":this._initDataAdapter(),this.callBase(e);break;case"onSelectAllValueChanged":this._createSelectAllValueChangedAction();break;case"selectNodesRecursive":this._dataAdapter.setOption("recursiveSelection",e.value),this.repaint();break;default:this.callBase(e)}},_initDataSource:function(){this._useCustomChildrenLoader()?this._loadChildrenByCustomLoader(null).done(function(e){e&&e.length&&this.option("items",e)}.bind(this)):(this.callBase(),this._isVirtualMode()&&this._initVirtualMode())},_initVirtualMode:function(){var e=this._filter;e.custom||(e.custom=this._dataSource.filter()),e.internal||(e.internal=[this.option("parentIdExpr"),this.option("rootValue")])},_useCustomChildrenLoader:function(){return(0,l.mf)(this.option("createChildren"))&&this._isDataStructurePlain()},_loadChildrenByCustomLoader:function(e){var t=this.option("createChildren").call(this,e);return Array.isArray(t)?(new ot.BH).resolve(t).promise():t&&(0,l.mf)(t.then)?(0,ot.p4)(t):(new ot.BH).resolve([]).promise()},_combineFilter:function(){return this._filter.custom&&this._filter.custom.length?[this._filter.custom,this._filter.internal]:this._filter.internal},_dataSourceLoadErrorHandler:function(){this._renderEmptyMessage()},_init:function(){this._filter={},this.callBase(),this._initStoreChangeHandlers()},_dataSourceChangedHandler:function(e){var t=this.option("items");this._initialized&&this._isVirtualMode()&&t.length||this.option("items",e)},_removeTreeViewLoadIndicator:function(){this._treeViewLoadIndicator&&(this._treeViewLoadIndicator.remove(),this._treeViewLoadIndicator=null)},_createTreeViewLoadIndicator:function(){return this._treeViewLoadIndicator=(0,o.Z)("<div>").addClass(bR),this._createComponent(this._treeViewLoadIndicator,oe,{}),this._treeViewLoadIndicator},_dataSourceLoadingChangedHandler:function(e){var t;if(this._isVirtualMode()&&(t=this._combineFilter(),this._dataSource.filter(t)),e&&!this._dataSource.isLoaded()){this.option("items",[]);var i=(0,o.Z)("<div>").addClass(xR);this._createTreeViewLoadIndicator().appendTo(i),this.itemsContainer().append(i),this._isVirtualMode()&&this._dataSource.filter()!==t&&this._dataSource.filter([])}else this._removeTreeViewLoadIndicator()},_initStoreChangeHandlers:function(){"plain"===this.option("dataStructure")&&this._dataSource&&this._dataSource.store().on("inserted",(e=>{this.option().items=this.option("items").concat(e),this._dataAdapter.addItem(e),this._dataAdapter.isFiltered(e)&&this._updateLevel(this._parentIdGetter(e))})).on("removed",(e=>{var t=this._dataAdapter.getNodeByKey(e);(0,l.$K)(t)&&(this.option("items")[this._dataAdapter.getIndexByKey(t.internalFields.key)]=0,this._markChildrenItemsToRemove(t),this._removeItems(),this._dataAdapter.removeItem(e),this._updateLevel(this._parentIdGetter(t)))}))},_markChildrenItemsToRemove:function(e){var t=e.internalFields.childrenKeys;(0,E.S6)(t,((e,t)=>{this.option("items")[this._dataAdapter.getIndexByKey(t)]=0,this._markChildrenItemsToRemove(this._dataAdapter.getNodeByKey(t))}))},_removeItems:function(){var e=(0,a.l)(!0,[],this.option("items")),t=0;(0,E.S6)(e,((e,i)=>{i||(this.option("items").splice(e-t,1),t++)}))},_updateLevel:function(e){var t=this._getContainerByParentKey(e);this._renderItems(t,this._dataAdapter.getChildrenNodes(e))},_getOldContainer:function(e){if(e.length)return e.children(".".concat(hR));var t=this.getScrollable();return t?(0,o.Z)(t.content()).children():(0,o.Z)()},_getContainerByParentKey:function(e){var t=this._dataAdapter.getNodeByKey(e),i=t?this._getNodeElement(t):[];this._getOldContainer(i).remove();var n=this._renderNodeContainer(i);if(this._isRootLevel(e)){var r=this.getScrollable();r||this._renderScrollableContainer(),(0,o.Z)(r.content()).append(n)}return n},_isRootLevel:function(e){return e===this.option("rootValue")},_getAccessors:function(){var e=this.callBase();return e.push("hasItems"),e},_getDataAdapterOptions:function(){return{rootValue:this.option("rootValue"),multipleSelection:!this._isSingleSelection(),recursiveSelection:this._isRecursiveSelection(),recursiveExpansion:this.option("expandNodesRecursive"),selectionRequired:this.option("selectionRequired"),dataType:this.option("dataStructure"),sort:this._dataSource&&this._dataSource.sort()}},_initMarkup:function(){this._renderScrollableContainer(),this._renderEmptyMessage(this._dataAdapter.getRootNodes()),this.callBase(),this.setAria("role","tree")},_renderContentImpl:function(){var e=this._renderNodeContainer();(0,o.Z)(this.getScrollable().content()).append(e),this.option("items")&&this.option("items").length&&(this._renderItems(e,this._dataAdapter.getRootNodes()),this._initExpandEvent(),this._selectAllEnabled()&&(this._createSelectAllValueChangedAction(),this._renderSelectAllItem(e)))},_isVirtualMode:function(){return this.option("virtualModeEnabled")&&this._isDataStructurePlain()&&!!this.option("dataSource")},_isDataStructurePlain:function(){return"plain"===this.option("dataStructure")},_fireContentReadyAction:function(){var e=this.getDataSource(),t=e&&!e.isLoaded(),i=this.getScrollable();i&&(0,s.Ym)()&&i.update(),t||this.callBase(),i&&(0,s.Ym)()&&i.update()},_renderScrollableContainer:function(){this._scrollable=this._createComponent((0,o.Z)("<div>").appendTo(this.$element()),$p,{useNative:this.option("useNativeScrolling"),direction:this.option("scrollDirection"),useKeyboard:!1})},_renderNodeContainer:function(e){var t=(0,o.Z)("<ul>").addClass(hR);if(this.setAria("role","group",t),e&&e.length){var i=this._getItemData(e.children("."+mR));this._expandedGetter(i)&&t.addClass(fR),t.appendTo(e)}return t},_createDOMElement:function(e,t){var i=(0,o.Z)("<li>").addClass(cR).attr(kR,this._encodeString(t.internalFields.key)).prependTo(e);return this.setAria({role:"treeitem",label:this._displayGetter(t.internalFields.item)||"",expanded:t.internalFields.expanded||!1,level:this._getLevel(e)},i),i},_getLevel:function(e){var t=e.parent();return t.hasClass("dx-scrollable-content")?1:parseInt(t.attr("aria-level"))+1},_showCheckboxes:function(){return"none"!==this.option("showCheckBoxesMode")},_selectAllEnabled:function(){return"selectAll"===this.option("showCheckBoxesMode")&&!this._isSingleSelection()},_renderItems:function(e,t){for(var i=t.length-1,n=i;n>=0;n--)this._renderItem(n,t[n],e);this._renderedItemsCount+=t.length},_renderItem:function(e,t,i){var n=this._createDOMElement(i,t),o=t.internalFields,r=this._showCheckboxes();n.addClass(r?_R:vR),n.toggleClass(SR,!1===o.item.visible),r&&this._renderCheckBox(n,t),this.setAria("selected",o.selected,n),this._toggleSelectedClass(n,o.selected),this.callBase(this._renderedItemsCount+e,o.item,n),!1!==o.item.visible&&this._renderChildren(n,t)},_setAriaSelected:function(){},_renderChildren:function(e,t){this._hasChildren(t)?(this._renderToggleItemVisibilityIcon(e,t),this.option("deferRendering")&&!t.internalFields.expanded||this._loadSublevel(t).done((i=>{this._renderSublevel(e,this._getActualNode(t),i)}))):this._addLeafClass(e)},_getActualNode:function(e){return this._dataAdapter.getNodeByKey(e.internalFields.key)},_hasChildren:function(e){return this._isVirtualMode()||this._useCustomChildrenLoader()?!1!==this._hasItemsGetter(e.internalFields.item):this.callBase(e)},_loadSublevel:function(e){var t=new ot.BH,i=this._getChildNodes(e);return i.length?t.resolve(i):this._loadNestedItems(e).done((e=>{t.resolve(this._dataAdapter.getNodesByItems(e))})),t.promise()},_renderSublevel:function(e,t,i){var n=this._renderNodeContainer(e,t),o=i.filter((e=>-1!==t.internalFields.childrenKeys.indexOf(e.internalFields.key)));if(this._renderItems(n,o),o.length&&!t.internalFields.selected){var r=o[0];this._updateParentsState(r,this._getNodeElement(r))}this._normalizeIconState(e,o.length),t.internalFields.expanded&&n.addClass(fR)},_executeItemRenderAction:function(e,t,i){var n=this._getNode(i);this._getItemRenderAction()({itemElement:i,itemIndex:e,itemData:t,node:this._dataAdapter.getPublicNode(n)})},_addLeafClass:function(e){e.addClass(gR)},_expandEventHandler:function(e){var t=(0,o.Z)(e.currentTarget.parentNode);t.hasClass(gR)||this._toggleExpandedState(e.currentTarget,void 0,e)},_initExpandEvent:function(){var e=this._getEventNameByOption(this.option("expandEvent")),t=this._itemContainer(),i=this._itemSelector();re.Z.off(t,"."+DR,i),re.Z.on(t,e,i,this._expandEventHandler.bind(this))},_getEventNameByOption:function(e){var t="click"===e?A.u:jO;return(0,R.V4)(t,DR)},_getNode:function(e){if(!(0,l.$K)(e))return null;if(e.internalFields)return e;if((0,l.pt)(e))return this._dataAdapter.getNodeByKey(e);var t=(0,o.Z)(e).get(0);return t?ke["default"].isElementNode(t)?this._getNodeByElement(t):this._dataAdapter.getNodeByItem(t):null},_getNodeByElement:function(e){var t=(0,o.Z)(e).closest("."+cR),i=this._decodeString(t.attr(kR));return this._dataAdapter.getNodeByKey(i)},_toggleExpandedState:function(e,t,i){var n=this._getNode(e);if(!n)return(new ot.BH).reject().promise();if(n.internalFields.disabled)return(new ot.BH).reject().promise();var o=n.internalFields.expanded;if(o===t)return(new ot.BH).resolve().promise();if(this._hasChildren(n)){var r=this._getNodeElement(n);if(r.find(".".concat(pR,":not(.").concat(SR,")")).length)return(new ot.BH).reject().promise();this._createLoadIndicator(r)}return(0,l.$K)(t)||(t=!o),this._dataAdapter.toggleExpansion(n.internalFields.key,t),this._updateExpandedItemsUI(n,t,i)},_createLoadIndicator:function(e){var t=e.children("."+CR),i=e.children(".".concat(hR));t.hasClass(wR)||i.not(":empty").length||(this._createComponent((0,o.Z)("<div>").addClass(pR),oe,{}).$element().appendTo(e),t.hide())},_renderToggleItemVisibilityIcon:function(e,t){var i=(0,o.Z)("<div>").addClass(CR).appendTo(e);t.internalFields.expanded&&(i.addClass(wR),e.parent().addClass(fR)),t.internalFields.disabled&&i.addClass(IR),this._renderToggleItemVisibilityIconClick(i,t)},_renderToggleItemVisibilityIconClick:function(e,t){var i=(0,R.V4)(A.u,this.NAME);re.Z.off(e,i),re.Z.on(e,i,(e=>{this._toggleExpandedState(t.internalFields.key,void 0,e)}))},_updateExpandedItemsUI:function(e,t,i){var n=this._getNodeElement(e),o=!n.length||t&&n.is(":hidden");if(this.option("expandNodesRecursive")&&o){var r=this._getNode(e.internalFields.parentKey);r&&this._updateExpandedItemsUI(r,t,i)}var a=n.children("."+CR),s=n.children(".".concat(hR));a.toggleClass(wR,t);var l=s.length>0,d=new ot.BH;return!t||l&&!s.is(":empty")?(this._animateNodeContainer(e,t,i,d),d.promise()):0===e.internalFields.childrenKeys.length&&(this._isVirtualMode()||this._useCustomChildrenLoader())?(this._loadNestedItemsWithUpdate(e,t,i,d),d.promise()):(this._renderSublevel(n,e,this._getChildNodes(e)),this._fireContentReadyAction(),this._animateNodeContainer(e,t,i,d),d.promise())},_loadNestedItemsWithUpdate:function(e,t,i,n){var o=this._getNodeElement(e);this._loadNestedItems(e).done((r=>{var a=this._getActualNode(e);this._renderSublevel(o,a,this._dataAdapter.getNodesByItems(r)),r&&r.length?(this._fireContentReadyAction(),this._animateNodeContainer(a,t,i,n)):n.resolve()}))},_loadNestedItems:function(e){if(this._useCustomChildrenLoader()){var t=this._dataAdapter.getPublicNode(e);return this._loadChildrenByCustomLoader(t).done((e=>{this._areNodesExists(e)||this._appendItems(e)}))}return this._isVirtualMode()?(this._filter.internal=[this.option("parentIdExpr"),e.internalFields.key],this._dataSource.filter(this._combineFilter()),this._dataSource.load().done((e=>{this._areNodesExists(e)||this._appendItems(e)}))):(new ot.BH).resolve([]).promise()},_areNodesExists:function(e,t){var i=this.keyOf(e[0]),n=this._dataAdapter.getFullData();return!!this._dataAdapter.getNodeByKey(i,n)},_appendItems:function(e){this.option().items=this.option("items").concat(e),this._initDataAdapter()},_animateNodeContainer:function(e,t,i,o){var r=this._getNodeElement(e),a=r.children(".".concat(hR));e&&o&&0===a.length&&o.resolve(),a.addClass(fR);var s=(0,n.Cr)(a);Ut.stop(a,!0),Ut.animate(a,{type:"custom",duration:this.option("animationEnabled")?400:0,from:{maxHeight:t?0:s},to:{maxHeight:t?s:0},complete:function(){a.css("maxHeight","none"),a.toggleClass(fR,t),this.setAria("expanded",t,r),this.getScrollable().update(),this._fireExpandedStateUpdatedEvent(t,e,i),o&&o.resolve()}.bind(this)})},_fireExpandedStateUpdatedEvent:function(e,t,i){if(this._hasChildren(t)){var n=e?"onItemExpanded":"onItemCollapsed";if((0,l.$K)(i))this._itemDXEventHandler(i,n,{node:this._dataAdapter.getPublicNode(t)});else{var o=this._getNodeElement(t);this._itemEventHandler(o,n,{event:i,node:this._dataAdapter.getPublicNode(t)})}}},_normalizeIconState:function(e,t){var i,n=e.find(".".concat(pR));n.length&&(null===(i=oe.getInstance(n))||void 0===i||i.option("visible",!1));var o=e.find(".".concat(CR));t?o.show():(o.removeClass(CR),e.addClass(gR))},_emptyMessageContainer:function(){var e=this.getScrollable();return e?(0,o.Z)(e.content()):this.callBase()},_renderContent:function(){var e=this.option("items");e&&e.length&&(this._contentAlreadyRendered=!0),this.callBase()},_renderSelectAllItem:function(e){e=e||this.$element().find(".".concat(hR)).first(),this._$selectAllItem=(0,o.Z)("<div>").addClass(TR);var t=this._dataAdapter.isAllSelected();this._createComponent(this._$selectAllItem,ry,{value:t,tabIndex:1,text:this.option("selectAllText"),onValueChanged:this._onSelectAllCheckboxValueChanged.bind(this)}),this._toggleSelectedClass(this._$selectAllItem,t),e.before(this._$selectAllItem)},_onSelectAllCheckboxValueChanged:function(e){this._toggleSelectAll(e),this._fireSelectAllValueChanged(e.value)},_toggleSelectAll:function(e){this._dataAdapter.toggleSelectAll(e.value),this._updateItemsUI(),this._fireSelectionChanged()},_renderCheckBox:function(e,t){var i=(0,o.Z)("<div>").appendTo(e);this._createComponent(i,ry,{value:t.internalFields.selected,onValueChanged:this._changeCheckboxValue.bind(this),focusStateEnabled:!1,disabled:this._disabledGetter(t)})},_toggleSelectedClass:function(e,t){e.toggleClass(ER,!!t)},_toggleNodeDisabledState:function(e,t){var i=this._getNodeElement(e),n=i.find("."+mR).eq(0);if(this._dataAdapter.toggleNodeDisabledState(e.internalFields.key,t),n.toggleClass(IR,!!t),this._showCheckboxes()){var o=this._getCheckBoxInstance(i);o.option("disabled",!!t)}},_itemOptionChanged:function(e,t,i){var n=this._dataAdapter.getNodeByItem(e);t===this.option("disabledExpr")&&this._toggleNodeDisabledState(n,i)},_changeCheckboxValue:function(e){var t=(0,o.Z)(e.element).parent("."+cR),i=t.children("."+mR),n=this._getItemData(i),r=this._getNodeByElement(i),a=e.value;r&&r.internalFields.selected===a||this._updateItemSelection(a,n,e.event)},_isSingleSelection:function(){return"single"===this.option("selectionMode")},_isRecursiveSelection:function(){return this.option("selectNodesRecursive")&&"single"!==this.option("selectionMode")},_isLastSelectedBranch:function(e,t,i){var n=t.indexOf(e.key);return n>=0&&t.splice(n,1),i&&(0,E.S6)(e.children,function(e,i){this._isLastSelectedBranch(i,t,!0)}.bind(this)),e.parent&&this._isLastSelectedBranch(e.parent,t),0===t.length},_isLastRequired:function(e){var t=this.option("selectionRequired"),i=this._isSingleSelection(),n=this.getSelectedNodeKeys();if(t)return i?1===n.length:this._isLastSelectedBranch(e.internalFields.publicNode,n.slice(),!0)},_updateItemSelection:function(e,t,i){var n=this._getNode(t);if(!n||!1===n.visible)return!1;if(n.internalFields.selected===e)return!0;if(!e&&this._isLastRequired(n)){if(this._showCheckboxes()){var o=this._getNodeElement(n);this._getCheckBoxInstance(o).option("value",!0)}return!1}if(e&&this._isSingleSelection()){var r=this.getSelectedNodeKeys();(0,E.S6)(r,((e,t)=>{this._dataAdapter.toggleSelection(t,!1),this._updateItemsUI(),this._fireItemSelectionChanged(this._getNode(t))}))}this._dataAdapter.toggleSelection(n.internalFields.key,e);var a=this._dataAdapter.isAllSelected(),s=this._selectAllEnabled()&&this._$selectAllItem.dxCheckBox("instance").option("value")!==a;return this._updateItemsUI(),this._fireItemSelectionChanged(n,i),this._fireSelectionChanged(),s&&this._fireSelectAllValueChanged(a),!0},_fireItemSelectionChanged:function(e,t){var i=t||this._findItemElementByItem(e.internalFields.item),n=t?this._itemDXEventHandler:this._itemEventHandler;n.call(this,i,"onItemSelectionChanged",{node:this._dataAdapter.getPublicNode(e),itemData:e.internalFields.item})},_getCheckBoxInstance:function(e){return e.children(".dx-checkbox").dxCheckBox("instance")},_updateItemsUI:function(){var e={};if((0,E.S6)(this._dataAdapter.getData(),((t,i)=>{var n=this._getNodeElement(i,e),o=i.internalFields.selected;n.length&&(this._toggleSelectedClass(n,o),this.setAria("selected",o,n),this._showCheckboxes()&&this._getCheckBoxInstance(n).option("value",o))})),this._selectAllEnabled()){var t=this._$selectAllItem.dxCheckBox("instance");t.option("onValueChanged",void 0),t.option("value",this._dataAdapter.isAllSelected()),t.option("onValueChanged",this._onSelectAllCheckboxValueChanged.bind(this))}},_updateParentsState:function(e,t){if(t){var i=this._dataAdapter.getNodeByKey(e.internalFields.parentKey),n=(0,o.Z)(t.parents("."+cR)[0]);if(this._showCheckboxes()){var r=i.internalFields.selected;this._getCheckBoxInstance(n).option("value",r),this._toggleSelectedClass(n,r)}i.internalFields.parentKey!==this.option("rootValue")&&this._updateParentsState(i,n)}},_itemEventHandlerImpl:function(e,t,i){var n=(0,o.Z)(e).closest("."+cR).children("."+mR);return t((0,a.l)(this._extendActionArgs(n),i))},_itemContextMenuHandler:function(e){this._createEventHandler("onItemContextMenu",e)},_itemHoldHandler:function(e){this._createEventHandler("onItemHold",e)},_createEventHandler:function(e,t){var i=this._getNodeByElement(t.currentTarget);this._itemDXEventHandler(t,e,{node:this._dataAdapter.getPublicNode(i)})},_itemClass:function(){return mR},_itemDataKey:function(){return yR},_attachClickEvent:function(){var e="."+this._itemClass(),t="."+cR+", ."+TR,i=(0,R.V4)(A.u,this.NAME),n=(0,R.V4)(B.Z.down,this.NAME),r=this._itemContainer(),a=this;re.Z.off(r,i,e),re.Z.off(r,n,t),re.Z.on(r,i,e,(function(e){a._itemClickHandler(e,(0,o.Z)(this))})),re.Z.on(r,n,t,(function(e){a._itemPointerDownHandler(e)}))},_itemClickHandler:function(e,t){var i=this._getItemData(t),n=this._getNodeByElement(t);this._itemDXEventHandler(e,"onItemClick",{node:this._dataAdapter.getPublicNode(n)}),this.option("selectByClick")&&!e.isDefaultPrevented()&&this._updateItemSelection(!n.internalFields.selected,i,e)},_updateSelectionToFirstItem:function(e,t){var i=t;while(i>=0){var n=(0,o.Z)(e[i]);this._updateItemSelection(!0,n.find("."+mR).get(0)),i--}},_updateSelectionToLastItem:function(e,t){var i=e.length,n=t;while(n<i){var r=(0,o.Z)(e[n]);this._updateItemSelection(!0,r.find("."+mR).get(0)),n++}},_focusInHandler:function(e){this._updateFocusState(e,!0);var t=(0,o.Z)(e.target).hasClass(TR);if(t||this.option("focusedElement")){clearTimeout(this._setFocusedItemTimeout);var i=t?(0,se.u)(this._$selectAllItem):(0,o.Z)(this.option("focusedElement"));this._setFocusedItemTimeout=setTimeout((()=>{this._setFocusedItem(i)}))}else{var n=this._getActiveItem();this.option("focusedElement",(0,se.u)(n.closest("."+cR)))}},_setFocusedItem:function(e){e&&e.length&&(e.children().hasClass(IR)||this.callBase(e))},_itemPointerDownHandler:function(e){if(this.option("focusStateEnabled")){var t=(0,o.Z)(e.target).closest("."+cR+", ."+TR);if(t.length){var i=t.hasClass(IR)?null:t;this.option("focusedElement",(0,se.u)(i))}}},_findNonDisabledNodes:function(e){return e.not((function(){return(0,o.Z)(this).children("."+mR).hasClass(IR)}))},_moveFocus:function(e,t){var i="up",n="down",o="first",r="last",a=this.option("rtlEnabled")?"right":"left",s=this.option("rtlEnabled")?"left":"right";this.$element().find(".".concat(hR)).each((function(){Ut.stop(this,!0)}));var l=this._findNonDisabledNodes(this._nodeElements());if(l&&l.length)switch(e){case i:var d=this._prevItem(l);this.option("focusedElement",(0,se.u)(d));var u=this._getNodeItemElement(d);this.getScrollable().scrollToElement(u),t.shiftKey&&this._showCheckboxes()&&this._updateItemSelection(!0,u);break;case n:var c=this._nextItem(l);this.option("focusedElement",(0,se.u)(c));var h=this._getNodeItemElement(c);this.getScrollable().scrollToElement(h),t.shiftKey&&this._showCheckboxes()&&this._updateItemSelection(!0,h);break;case o:var p=l.first();t.shiftKey&&this._showCheckboxes()&&this._updateSelectionToFirstItem(l,l.index(this._prevItem(l))),this.option("focusedElement",(0,se.u)(p)),this.getScrollable().scrollToElement(this._getNodeItemElement(p));break;case r:var f=l.last();t.shiftKey&&this._showCheckboxes()&&this._updateSelectionToLastItem(l,l.index(this._nextItem(l))),this.option("focusedElement",(0,se.u)(f)),this.getScrollable().scrollToElement(this._getNodeItemElement(f));break;case s:this._expandFocusedContainer();break;case a:this._collapseFocusedContainer();break;default:return void this.callBase.apply(this,arguments)}},_getNodeItemElement:function(e){return e.find("."+mR).get(0)},_nodeElements:function(){return this.$element().find("."+cR).not(":hidden")},_expandFocusedContainer:function(){var e=(0,o.Z)(this.option("focusedElement"));if(e.length&&!e.hasClass(gR)){var t=e.find(".".concat(hR)).eq(0);if(t.hasClass(fR)){var i=this._nextItem(this._findNonDisabledNodes(this._nodeElements()));return this.option("focusedElement",(0,se.u)(i)),void this.getScrollable().scrollToElement(this._getNodeItemElement(i))}var n=this._getNodeByElement(e.children("."+mR));this._toggleExpandedState(n,!0)}},_getClosestNonDisabledNode:function(e){do{e=e.parent().closest("."+cR)}while(e.children(".dx-treeview-item.dx-state-disabled").length);return e},_collapseFocusedContainer:function(){var e=(0,o.Z)(this.option("focusedElement"));if(e.length){var t=e.find(".".concat(hR)).eq(0);if(!e.hasClass(gR)&&t.hasClass(fR)){var i=this._getNodeByElement(e.children("."+mR));this._toggleExpandedState(i,!1)}else{var n=this._getClosestNonDisabledNode(e);n.length&&this.option("focusedElement",(0,se.u)(n)),this.getScrollable().scrollToElement(this._getNodeItemElement(n))}}},_encodeString:function(e){return(0,l.HD)(e)?encodeURI(e):e},_decodeString:function(e){return(0,l.HD)(e)?decodeURI(e):e},getScrollable:function(){return this._scrollable},updateDimensions:function(){var e=new ot.BH,t=this.getScrollable();return t?t.update().done((()=>{e.resolveWith(this)})):e.resolveWith(this),e.promise()},selectItem:function(e){return this._updateItemSelection(!0,e)},unselectItem:function(e){return this._updateItemSelection(!1,e)},expandItem:function(e){return this._toggleExpandedState(e,!0)},collapseItem:function(e){return this._toggleExpandedState(e,!1)},getNodes:function(){return this._dataAdapter.getTreeNodes()},getSelectedNodes:function(){return this.getSelectedNodeKeys().map((e=>{var t=this._dataAdapter.getNodeByKey(e);return this._dataAdapter.getPublicNode(t)}))},getSelectedNodeKeys:function(){return this._dataAdapter.getSelectedNodesKeys()},selectAll:function(){this._selectAllEnabled()?this._$selectAllItem.dxCheckBox("instance").option("value",!0):this._toggleSelectAll({value:!0})},unselectAll:function(){this._selectAllEnabled()?this._$selectAllItem.dxCheckBox("instance").option("value",!1):this._toggleSelectAll({value:!1})},expandAll:function(){var e=this._dataAdapter;(0,E.S6)(e.getData(),((t,i)=>e.toggleExpansion(i.internalFields.key,!0))),this.repaint()},collapseAll:function(){(0,E.S6)(this._dataAdapter.getExpandedNodesKeys(),function(e,t){this._toggleExpandedState(t,!1)}.bind(this))},scrollToItem:function(e){var t=this._getNode(e);if(!t)return(new ot.BH).reject().promise();var i=[],n=t.internalFields.publicNode.parent;while(null!=n)n.expanded||i.push(n.key),n=n.parent;var o=new ot.BH;return this._expandNodes(i.reverse()).always((()=>{var e=this._getNodeElement(t);e&&e.length?(this.scrollToElementTopLeft(e.get(0)),o.resolve()):o.reject()})),o.promise()},scrollToElementTopLeft:function(e){var t=this.getScrollable(),{scrollDirection:i,rtlEnabled:n}=this.option(),r={top:0,left:0},a=Tp(Dp,e);if(i!==Sp){var s=(0,o.Z)(t.container()).get(0);r.left=n?a.left+e.offsetWidth-s.clientWidth:a.left}i!==Ip&&(r.top=a.top),t.scrollTo(r)},_expandNodes:function(e){if(!e||0===e.length)return(new ot.BH).resolve().promise();var t=new ot.BH,i=e.map((e=>this.expandItem(e)));return ot.gx.apply(o.Z,i).done((()=>t.resolve())).fail((()=>t.reject())),t.promise()},_dispose:function(){this.callBase(),clearTimeout(this._setFocusedItemTimeout)}}),AR=OR;vw.setEditorClass(f_);var PR="dx-treeview",MR="".concat(PR,"-node-container"),RR=AR.inherit(vw).inherit({_addWidgetPrefix:function(e){return"".concat(PR,"-").concat(e)},_optionChanged:function(e){switch(e.name){case"searchValue":this._showCheckboxes()&&this._isRecursiveSelection()&&this._removeSelection(),this._initDataAdapter(),this._updateSearch(),this._repaintContainer(),this.option("focusedElement",null);break;case"searchExpr":this._initDataAdapter(),this.repaint();break;case"searchMode":this.option("expandNodesRecursive")?this._updateDataAdapter():this._initDataAdapter(),this.repaint();break;default:this.callBase(e)}},_updateDataAdapter:function(){this._setOptionWithoutOptionChange("expandNodesRecursive",!1),this._initDataAdapter(),this._setOptionWithoutOptionChange("expandNodesRecursive",!0)},_getDataAdapterOptions:function(){return(0,a.l)(this.callBase(),{searchValue:this.option("searchValue"),searchMode:this.option("searchMode")||"contains",searchExpr:this.option("searchExpr")})},_updateSearch:function(){if(this._searchEditor){var e=this._getSearchEditorOptions();this._searchEditor.option(e)}},_repaintContainer:function(){var e,t=this.$element().find(".".concat(MR)).first();t.length&&(t.empty(),e=this._dataAdapter.getRootNodes(),this._renderEmptyMessage(e),this._renderItems(t,e),this._fireContentReadyAction())},_itemContainer:function(e){return this._scrollable&&e?(0,o.Z)(this._scrollable.content()):this.callBase()},_addWidgetClass:function(){this.$element().addClass(this._widgetClass())},_clean:function(){this.callBase(),this._removeSearchBox()}});(0,C.Z)("dxTreeView",RR);var BR=RR,VR=BR,FR="column-chooser",HR="column-chooser-button",LR="notouch-action",NR="column-chooser-list",ZR="column-chooser-plain",$R="column-chooser-mode-drag",WR="column-chooser-mode-select",KR="column-chooser",zR="dx-column-chooser-item",jR=".dx-treeview-node",UR=".dx-checkbox",GR=300,qR=function(e,t){var i=[],n="select"===e.option("columnChooser.mode");return t.length&&(0,E.S6)(t,(function(e,t){var o={text:t.caption,cssClass:t.cssClass,allowHiding:t.allowHiding,expanded:!0,id:t.index,disabled:!1,disableCheckBox:!1===t.allowHiding,parentId:(0,l.$K)(t.ownerBand)?t.ownerBand:null};n&&(o.selected=t.visible),i.push(o)})),i},YR=KO.ViewController.inherit({renderShowColumnChooserButton:function(e){var t,i=this,n=i.addWidgetPrefix(HR),r=i.option("columnChooser.enabled"),a=e.find("."+n);r?a.length?a.show():(t=(0,o.Z)("<div>").addClass(n).appendTo(e),i._createComponent(t,cd,{icon:KR,onClick:function(){i.getView("columnChooserView").showColumnChooser()},hint:i.option("columnChooser.title"),integrationOptions:{}})):a.hide()},getPosition:function(){var e=this.getView("rowsView");return{my:"right bottom",at:"right bottom",of:e&&e.element(),collision:"fit",offset:"-2 -2",boundaryOffset:"2 2"}}}),XR=xA.inherit({_resizeCore:v.ZT,_isWinDevice:function(){return!!w.Z.real().win},_updateList:function(e){var t,i=this._popupContainer.$content(),n="select"===this.option("columnChooser.mode"),o=this._columnChooserList,r=this._columnsController.getChooserColumns(n);if(this._popupContainer.setAria({role:"dialog",label:y.Z.format("dxDataGrid-columnChooserTitle")}),n&&o&&e&&"selection"===e.changeType){t=qR(this,r);for(var a=0;a<t.length;a++){var s=t[a].selected,l=t[a].id;l===e.columnIndex&&(s?o.selectItem(l,s):o.unselectItem(l,s))}}else n&&o&&"full"!==e||(this._popupContainer.$wrapper().toggleClass(this.addWidgetPrefix($R),!n).toggleClass(this.addWidgetPrefix(WR),n),t=qR(this,r),this._renderTreeView(i,t))},_initializePopupContainer:function(){var e=this,t=e.element().addClass(e.addWidgetPrefix(FR)),i=e.option("columnChooser"),n=(0,x.Vk)(),r=(0,x.OD)(n),s=(0,x.x2)(n),d={visible:!1,shading:!1,showCloseButton:!1,dragEnabled:!0,resizeEnabled:!0,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,toolbarItems:[{text:i.title,toolbar:"top",location:r||s?"before":"center"}],position:e.getController("columnChooser").getPosition(),width:i.width,height:i.height,rtlEnabled:e.option("rtlEnabled"),onHidden:function(){e._isWinDevice()&&(0,o.Z)("body").removeClass(e.addWidgetPrefix(LR))},container:i.container};r||s?(0,a.l)(d,{showCloseButton:!0}):d.toolbarItems[d.toolbarItems.length]={shortcut:"cancel"},(0,l.$K)(this._popupContainer)?this._popupContainer.option(d):(e._popupContainer=e._createComponent(t,Tc,d),e._popupContainer.on("optionChanged",(function(t){"visible"===t.name&&e.renderCompleted.fire()})))},_renderCore:function(e){this._popupContainer&&this._updateList(e)},_renderTreeView:function(e,t){var i=this,n=this.option("columnChooser"),r="select"===n.mode,s={items:t,dataStructure:"plain",activeStateEnabled:!0,focusStateEnabled:!0,hoverStateEnabled:!0,itemTemplate:"item",showCheckBoxesMode:"none",rootValue:null,searchEnabled:n.allowSearch,searchTimeout:n.searchTimeout,onItemRendered:function(e){if(e.itemData.disableCheckBox){var t,i=(0,o.Z)(e.itemElement).closest(jR);if(i.length&&(t=i.find(UR),t.length)){var n=t.data("dxCheckBox");n&&n.option("disabled",!0)}}}},l=e.find(".dx-scrollable").data("dxScrollable"),d=l&&l.scrollTop();r&&!this._columnsController.isBandColumnsUsed()&&e.addClass(this.addWidgetPrefix(ZR)),s.onContentReady=function(e){(0,v.Su)((function(){if(d){var t=(0,o.Z)(e.element).find(".dx-scrollable").data("dxScrollable");t&&t.scrollTo({y:d})}i.renderCompleted.fire()}))},this._isWinDevice()&&(s.useNativeScrolling=!1),(0,a.l)(s,r?this._prepareSelectModeConfig():this._prepareDragModeConfig()),this._columnChooserList?(s.searchEnabled||(s.searchValue=""),this._columnChooserList.option(s)):(this._columnChooserList=this._createComponent(e,VR,s),e.addClass(this.addWidgetPrefix(NR)))},_prepareDragModeConfig:function(){var e=this.option("columnChooser");return{noDataText:e.emptyPanelText,activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,itemTemplate:function(e,t,i){(0,o.Z)(i).text(e.text).parent().addClass(e.cssClass).addClass(zR)}}},_prepareSelectModeConfig:function(){var e=this;return{selectNodesRecursive:!1,showCheckBoxesMode:"normal",onItemSelectionChanged:function(t){var i=e._columnsController.getVisibleColumns().filter((function(e){return!e.command})),n=1===i.length&&!t.itemData.selected;n?t.component.selectItem(t.itemElement):setTimeout((function(){e._columnsController.columnOption(t.itemData.id,"visible",t.itemData.selected)}),GR)}}},_columnOptionChanged:function(e){var t=e.changeTypes,i=e.optionNames,n="select"===this.option("columnChooser.mode");if(this.callBase(e),n){var o=i.visible&&1===i.length&&void 0!==e.columnIndex,r=i.showInColumnChooser||i.caption||i.visible||t.columns&&i.all;o?this.render(null,{changeType:"selection",columnIndex:e.columnIndex}):r&&this.render(null,"full")}},optionChanged:function(e){switch(e.name){case"columnChooser":this._initializePopupContainer(),this.render(null,"full");break;default:this.callBase(e)}},getColumnElements:function(){var e,t=[],i="select"===this.option("columnChooser.mode"),n=this._columnsController.getChooserColumns(i),r=this._popupContainer&&this._popupContainer.$content(),a=r&&r.find(".dx-treeview-node");return a&&n.forEach((function(i){e=a.filter("[data-item-id = '"+i.index+"']");var n=e.length?e.children("."+zR).get(0):null;t.push(n)})),(0,o.Z)(t)},getName:function(){return"columnChooser"},getColumns:function(){return this._columnsController.getChooserColumns()},allowDragging:function(e,t){var i=e&&e.allowHiding&&("columnChooser"!==t||!e.visible&&this._columnsController.isParentColumnVisible(e.index));return this.isColumnChooserVisible()&&i},getBoundingRect:function(){var e=this._popupContainer&&this._popupContainer.$overlayContent();if(e&&e.is(":visible")){var t=e.offset();return{left:t.left,top:t.top,right:t.left+(0,n.Y_)(e),bottom:t.top+(0,n.zp)(e)}}return null},showColumnChooser:function(){this._popupContainer||(this._initializePopupContainer(),this.render()),this._popupContainer.show(),this._isWinDevice()&&(0,o.Z)("body").addClass(this.addWidgetPrefix(LR))},hideColumnChooser:function(){this._popupContainer&&this._popupContainer.hide()},isColumnChooserVisible:function(){var e=this._popupContainer;return e&&e.option("visible")},publicMethods:function(){return["showColumnChooser","hideColumnChooser"]}}),JR={defaultOptions:function(){return{columnChooser:{enabled:!1,allowSearch:!1,searchTimeout:500,mode:"dragAndDrop",width:250,height:260,title:y.Z.format("dxDataGrid-columnChooserTitle"),emptyPanelText:y.Z.format("dxDataGrid-columnChooserEmptyText"),container:void 0}}},controllers:{columnChooser:YR},views:{columnChooserView:XR},extenders:{views:{headerPanel:{_getToolbarItems:function(){var e=this.callBase();return this._appendColumnChooserItem(e)},_appendColumnChooserItem:function(e){var t=this,i=t.option("columnChooser.enabled");if(i){var n=t.option("columnChooser.title"),r={widget:"dxButton",options:{icon:KR,onClick:function(){t.component.getView("columnChooserView").showColumnChooser()},hint:n,text:n,onInitialized:function(e){(0,o.Z)(e.element).addClass(t._getToolbarButtonClass(t.addWidgetPrefix(HR)))},elementAttr:{"aria-haspopup":"dialog"}},showText:"inMenu",location:"after",name:"columnChooserButton",locateInMenu:"auto",sortIndex:40};e.push(r)}return e},optionChanged:function(e){switch(e.name){case"columnChooser":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}},isVisible:function(){var e=this.option("columnChooser.enabled");return this.callBase()||e}}},controllers:{columns:{allowMoveColumn:function(e,t,i,n){var o=this.option("columnChooser.mode"),r="select"===o&&"columnChooser"===n;return!r&&this.callBase(e,t,i,n)}}}}};zO.registerModule("columnChooser",JR);var QR="dx-master-detail-cell",eB="dx-master-detail-row",tB="dx-cell-focus-disabled",iB="dx-row-lines",nB={defaultOptions:function(){return{masterDetail:{enabled:!1,autoExpandAll:!1,template:null}}},extenders:{controllers:{columns:{_getExpandColumnsCore:function(){var e=this.callBase();return this.option("masterDetail.enabled")&&e.push({type:"detailExpand",cellTemplate:FD.getExpandCellTemplate()}),e}},data:function(){var e=function(e){e._expandedItems=[],e._isExpandAll=e.option("masterDetail.autoExpandAll")};return{init:function(){e(this),this.callBase()},expandAll:function(e){var t=this;e<0?(t._isExpandAll=!0,t._expandedItems=[],t.updateItems()):t.callBase.apply(t,arguments)},collapseAll:function(e){var t=this;e<0?(t._isExpandAll=!1,t._expandedItems=[],t.updateItems()):t.callBase.apply(t,arguments)},isRowExpanded:function(e){var t=this,i=FD.getIndexByKey(e,t._expandedItems);return Array.isArray(e)?t.callBase.apply(t,arguments):!!(t._isExpandAll^(i>=0&&t._expandedItems[i].visible))},_getRowIndicesForExpand:function(e){var t=this.getRowIndexByKey(e);return[t,t+1]},_changeRowExpandCore:function(e){var t,i=this;if(Array.isArray(e))t=i.callBase.apply(i,arguments);else{var n=FD.getIndexByKey(e,i._expandedItems);if(n>=0){var o=i._expandedItems[n].visible;i._expandedItems[n].visible=!o}else i._expandedItems.push({key:e,visible:!0});i.updateItems({changeType:"update",rowIndices:i._getRowIndicesForExpand(e)}),t=(new ot.BH).resolve()}return t},_processDataItem:function(e,t){var i=this,n=i.callBase.apply(i,arguments);return n.isExpanded=i.isRowExpanded(n.key),void 0===t.detailColumnIndex&&(t.detailColumnIndex=-1,(0,E.S6)(t.visibleColumns,(function(e,i){if("expand"===i.command&&!(0,l.$K)(i.groupIndex))return t.detailColumnIndex=e,!1}))),t.detailColumnIndex>=0&&(n.values[t.detailColumnIndex]=n.isExpanded),n},_processItems:function(e,t){var i=this,n=t.changeType,o=[];return e=i.callBase.apply(i,arguments),"loadingAll"===n?e:("refresh"===n&&(i._expandedItems=(0,v.h3)(i._expandedItems,(function(e){return e.visible}))),(0,E.S6)(e,(function(e,t){o.push(t);var n=FD.getIndexByKey(t.key,i._expandedItems);"data"===t.rowType&&(t.isExpanded||n>=0)&&!t.isNewRow&&o.push({visible:t.isExpanded,rowType:"detail",key:t.key,data:t.data,values:[]})})),o)},optionChanged:function(t){var i,n;if("masterDetail"===t.name){switch(t.name="dataSource",t.fullName){case"masterDetail":var o=t.value||{},r=t.previousValue||{};i=o.enabled!==r.enabled,n=o.autoExpandAll!==r.autoExpandAll;break;case"masterDetail.template":e(this);break;case"masterDetail.enabled":i=!0;break;case"masterDetail.autoExpandAll":n=!0}(i||n)&&e(this)}this.callBase(t)}}}(),resizing:{fireContentReadyAction:function(){this.callBase.apply(this,arguments),this._updateParentDataGrids(this.component.$element())},_updateParentDataGrids:function(e){var t=e.closest("."+eB);t.length&&(0,ot.gx)(this._updateMasterDataGrid(t,e)).done((()=>{this._updateParentDataGrids(t.parent())}))},_updateMasterDataGrid:function(e,t){var i=(0,o.Z)(e).data("options"),n=(0,o.Z)(e).closest("."+this.getWidgetContainerClass()).parent().data("dxDataGrid");if(i&&n)return this._updateMasterDataGridCore(n,i)},_updateMasterDataGridCore:function(e,t){var i=(0,ot.BH)();if(e.getView("rowsView").isFixedColumns())this._updateFixedMasterDetailGrids(e,t.rowIndex,(0,o.Z)(t.rowElement)).done(i.resolve);else{if(!0===e.option("scrolling.useNative"))return void e.updateDimensions().done((()=>i.resolve(!0)));var n=e.getScrollable();n?null===n||void 0===n||n.update().done((()=>i.resolve())):i.resolve()}return i.promise()},_updateFixedMasterDetailGrids:function(e,t,i){var r=(0,ot.BH)(),a=(0,o.Z)(e.getRowElement(t)),s=(0,o.Z)(e.getView("rowsView").getTableElements()),l=2===(null===a||void 0===a?void 0:a.length)&&(0,n.Cr)(a.eq(0))!==(0,n.Cr)(a.eq(1)),d=2===(null===s||void 0===s?void 0:s.length)&&(0,n.Cr)(s.eq(0))!==(0,n.Cr)(s.eq(1));if(l||d){var u=(0,n.dz)(i);return e.updateDimensions().done((()=>{var t=this.option("columnAutoWidth")&&!0===e.option("scrolling.useNative"),o=t&&u!==(0,n.dz)(i);t&&o?this.updateDimensions().done((()=>r.resolve(!0))):r.resolve(!0)})),r.promise()}return(0,ot.BH)().resolve()},_toggleBestFitMode:function(e){if(this.callBase.apply(this,arguments),this.option("masterDetail.template")){var t=this._rowsView.getTableElement();t&&t.find(".dx-master-detail-cell").css("maxWidth",e?0:"")}}}},views:{rowsView:{_getCellTemplate:function(e){var t,i=this,n=e.column,o=i.getController("editing"),r=o&&o.isEditRow(e.rowIndex);return t="detail"!==n.command||r?i.callBase.apply(i,arguments):i.option("masterDetail.template")||{allowRenderToDetachedContainer:!1,render:i._getDefaultTemplate(n)},t},_isDetailRow:function(e){return e&&e.rowType&&0===e.rowType.indexOf("detail")},_createRow:function(e){var t=this.callBase.apply(this,arguments);return e&&this._isDetailRow(e)&&(this.option("showRowLines")&&t.addClass(iB),t.addClass(eB),(0,l.$K)(e.visible)&&t.toggle(e.visible)),t},_renderCells:function(e,t){var i,n=t.row,o=this._columnsController.getVisibleColumns();n.rowType&&this._isDetailRow(n)?this._needRenderCell(0,t.columnIndices)&&(i=this._renderCell(e,{value:null,row:n,rowIndex:n.rowIndex,column:{command:"detail"},columnIndex:0,change:t.change}),i.addClass(tB).addClass(QR).attr("colSpan",o.length)):this.callBase.apply(this,arguments)}}}}};zO.registerModule("masterDetail",(0,a.l)(!0,{},nB,{extenders:{controllers:{data:{isRowExpanded:function(){return this.callBase.apply(this,arguments)},_processItems:function(){return this.callBase.apply(this,arguments)},_processDataItem:function(){return this.callBase.apply(this,arguments)}}}}}));var{isWrapped:oB}=$f.Z,rB="checkbox-size",aB="dx-editor-inline-block",sB=function(){var e=function(e,t){return(0,a.l)(e,{readOnly:t.readOnly,placeholder:t.placeholder,inputAttr:{id:t.id},tabIndex:t.tabIndex},t.editorOptions)},t=function(){return Me.Z.mozilla||w.Z.real().ios},i=function(i){var n={},r=t(),a=i.sharedData||n;return e({placeholder:i.placeholder,width:i.width,value:i.value,onValueChanged:function(e){var t="filterRow"===i.parentType||"searchPanel"===i.parentType,o=e.event&&("input"===e.event.type||"keyup"===e.event.type),r=function(e,t){i&&i.setValue(e.value,t)};clearTimeout(n.valueChangeTimeout),o&&t?a.valueChangeTimeout=n.valueChangeTimeout=setTimeout((function(){r(e,n.valueChangeTimeout!==a.valueChangeTimeout)}),(0,l.$K)(i.updateValueTimeout)?i.updateValueTimeout:0):r(e)},onKeyDown:function(e){r&&"enter"===(0,R.EV)(e.event)&&re.Z.trigger((0,o.Z)(e.component._input()),"change")},valueChangeEvent:"change"+("filterRow"===i.parentType?" keyup input":"")},i)},n=function(t){"filterRow"===t.parentType||"filterBuilder"===t.parentType?s((0,a.l)(t,{lookup:{displayExpr:function(e){return!0===e?t.trueText||"true":!1===e?t.falseText||"false":void 0},dataSource:[!0,!1]}})):function(t){t.editorName="dxCheckBox",t.editorOptions=e({elementAttr:{id:t.id},value:(0,l.$K)(t.value)?t.value:void 0,hoverStateEnabled:!t.readOnly,focusStateEnabled:!t.readOnly,activeStateEnabled:!1,onValueChanged:function(e){t.setValue&&t.setValue(e.value,e)}},t)}(t)};function s(t){var i,n,o,a=t.lookup,s="filterRow"===t.parentType;if(a){i=(0,r.vb)(a.displayExpr),n=a.dataSource,(0,l.mf)(n)&&!oB(n)&&(n=n(t.row||{}),function(e){if(e.row&&e.row.watch&&"dataRow"===e.parentType){var t,i=e.editorOptions||{};e.editorOptions=i;var n,o=i.onInitialized;i.onInitialized=function(e){o&&o.apply(this,arguments),t=e.component,t.on("disposing",r)};var r=e.row.watch((()=>(n=e.lookup.dataSource(e.row),n&&n.filter)),(()=>{t.option("dataSource",n)}),(t=>{e.row=t}))}}(t)),((0,l.Kn)(n)||Array.isArray(n))&&(n=(0,hu.aN)(n),s&&(o=n.postProcess,n.postProcess=function(e){return 0===this.pageIndex()&&(e=e.slice(0),e.unshift(null)),o?o.call(this,e):e}));var d=Boolean(a.allowClearing&&!s);t.editorName="dxSelectBox",t.editorOptions=e({searchEnabled:!0,value:t.value,valueExpr:t.lookup.valueExpr,searchExpr:t.lookup.searchExpr||t.lookup.displayExpr,allowClearing:d,showClearButton:d,displayExpr:function(e){return null===e?t.showAllText:i(e)},dataSource:n,onValueChanged:function(e){var i=[e.value];!s&&i.push(e.component.option("text")),t.setValue.apply(this,i)}},t)}}return{createEditor:function(r,a){if(a.cancel=!1,a.editorElement=(0,se.u)(r),(0,l.$K)(a.tabIndex)||(a.tabIndex=this.option("tabIndex")),a.lookup)s(a);else switch(a.dataType){case"date":case"datetime":!function(i){i.editorName="dxDateBox",i.editorOptions=e({value:i.value,onValueChanged:function(e){i.setValue(e.value)},onKeyDown:function(e){var{component:i,event:n}=e,o=i.option("useMaskBehavior");(t()||o)&&"enter"===(0,R.EV)(n)&&(i.blur(),i.focus())},displayFormat:i.format,type:i.dataType,dateSerializationFormat:null,width:"filterBuilder"===i.parentType?void 0:"auto"},i)}(a);break;case"boolean":n(a);break;case"number":!function(e){var t=i(e);t.value=(0,l.$K)(e.value)?e.value:null,e.editorName="dxNumberBox",e.editorOptions=t}(a);break;default:!function(e){var t,n=i(e),o="searchPanel"===e.parentType;e.editorType&&"dxTextBox"!==e.editorType?n.value=e.value:n.value=(t=e.value,(0,l.$K)(t)?t.toString():""),n.valueChangeEvent+=o?" keyup input search":"",n.mode=n.mode||(o?"search":"text"),e.editorName="dxTextBox",e.editorOptions=n}(a)}"dataRow"===a.parentType&&a.editorType&&(a.editorName=a.editorType),this.executeAction("onEditorPreparing",a),a.cancel||("dataRow"!==a.parentType||a.isOnForm||(0,l.$K)(a.editorOptions.showValidationMark)||(a.editorOptions.showValidationMark=!1),function(e,t){var i=(0,o.Z)(t.editorElement);if(t.editorName&&t.editorOptions&&i[t.editorName]){if("dxCheckBox"!==t.editorName&&"dxSwitch"!==t.editorName||t.isOnForm||(i.addClass(e.addWidgetPrefix(rB)),i.parent().addClass(aB)),e._createComponent(i,t.editorName,t.editorOptions),"dxDateBox"===t.editorName){var n=i.dxDateBox("instance"),r=n._supportedKeys().enter;n.registerKeyHandler("enter",(e=>(n.option("opened")&&r(e),!0)))}"dxTextArea"===t.editorName&&i.dxTextArea("instance").registerKeyHandler("enter",(function(e){"enter"!==(0,R.EV)(e)||e.ctrlKey||e.shiftKey||e.stopPropagation()}))}}(this,a),this.executeAction("onEditorPrepared",a))}}}(),lB=sB,dB="dx-editor-inline-block",uB="dx-cell-focus-disabled",cB="focus-overlay",hB="content",pB="dx-focused",fB="dx-row",gB="dxDataGridEditorFactory",mB=(0,R.V4)([B.Z.down,"focusin",A.u].join(" "),gB),_B="dx-hidden",vB=KO.ViewController.inherit({_getFocusedElement:function(e){var t=this.option("focusedRowEnabled")?"tr[tabindex]:focus":"tr[tabindex]:not(.dx-data-row):focus",i="td[tabindex]:focus, ".concat(t,", input:focus, textarea:focus, .dx-lookup-field:focus, .dx-checkbox:focus, .dx-switch:focus, .dx-dropdownbutton .dx-buttongroup:focus"),n=e.find(i);return this.elementIsInsideGrid(n)&&n},_getFocusCellSelector:function(){return".dx-row > td"},_updateFocusCore:function(){var e,t,i=this.component&&this.component.$element();if(i){var n=this._getFocusedElement(i);if(n&&n.length&&(n.hasClass(uB)||n.hasClass(fB)||(e=n.closest(this._getFocusCellSelector()+", ."+uB),t=e.get(0)!==n.get(0)&&e.hasClass(dB),n=e),n.length&&!n.hasClass(uB)))return void this.focus(n,t)}this.loseFocus()},_updateFocus:function(e){var t=this,i=e&&e.event&&(0,o.Z)(e.event.target).hasClass(t.addWidgetPrefix(cB));t._isFocusOverlay=t._isFocusOverlay||i,clearTimeout(t._updateFocusTimeoutID),t._updateFocusTimeoutID=setTimeout((function(){delete t._updateFocusTimeoutID,t._isFocusOverlay||t._updateFocusCore(),t._isFocusOverlay=!1}))},_updateFocusOverlaySize:function(e,t){e.hide();var i=it.calculate(e,(0,a.l)({collision:"fit"},t));i.h.oversize>0&&(0,n.Ns)(e,(0,n.Y_)(e)-i.h.oversize),i.v.oversize>0&&(0,n.qt)(e,(0,n.zp)(e)-i.v.oversize),e.show()},callbackNames:function(){return["focused"]},focus:function(e,t){var i=this;if(void 0===e)return i._$focusedElement;e&&(e.is(i._$focusedElement)||i._$focusedElement&&i._$focusedElement.removeClass(pB),i._$focusedElement=e,clearTimeout(i._focusTimeoutID),i._focusTimeoutID=setTimeout((function(){delete i._focusTimeoutID,i.renderFocusOverlay(e,t),e.addClass(pB),i.focused.fire(e)})))},refocus:function(){var e=this.focus();this.focus(e)},renderFocusOverlay:function(e,t){if(FD.isElementInCurrentGrid(this,e))if(this._$focusOverlay||(this._$focusOverlay=(0,o.Z)("<div>").addClass(this.addWidgetPrefix(cB))),t)this._$focusOverlay.addClass(_B);else if(e.length){var i=Me.Z.mozilla?"right bottom":"left top",r=e.closest("."+this.addWidgetPrefix(hB)),a=Pe(e.get(0));this._$focusOverlay.removeClass(_B).appendTo(r),(0,n.qt)(this._$focusOverlay,a.bottom-a.top+1),(0,n.Ns)(this._$focusOverlay,a.right-a.left+1);var s={precise:!0,my:i,at:i,of:e,boundary:r.length&&r};this._updateFocusOverlaySize(this._$focusOverlay,s),it.setup(this._$focusOverlay,s),this._$focusOverlay.css("visibility","visible")}},resize:function(){var e=this._$focusedElement;e&&this.focus(e)},loseFocus:function(){this._$focusedElement&&this._$focusedElement.removeClass(pB),this._$focusedElement=null,this._$focusOverlay&&this._$focusOverlay.addClass(_B)},init:function(){this.createAction("onEditorPreparing",{excludeValidators:["disabled","readOnly"],category:"rendering"}),this.createAction("onEditorPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering"}),this._updateFocusHandler=this._updateFocusHandler||this.createAction(this._updateFocus.bind(this)),re.Z.on(this._getContainerRoot(),mB,this._updateFocusHandler),this._attachContainerEventHandlers()},_getContainerRoot:function(){var e,t=null===(e=this.component)||void 0===e?void 0:e.$element(),i=ke["default"].getRootNode(null===t||void 0===t?void 0:t.get(0));return i.nodeType!==Node.DOCUMENT_FRAGMENT_NODE||i.host?i:ke["default"].getDocument()},_attachContainerEventHandlers:function(){var e=this,t=e.component&&e.component.$element();t&&re.Z.on(t,(0,R.V4)("keydown",gB),(function(t){"tab"===(0,R.EV)(t)&&e._updateFocusHandler(t)}))},dispose:function(){clearTimeout(this._focusTimeoutID),clearTimeout(this._updateFocusTimeoutID),re.Z.off(this._getContainerRoot(),mB,this._updateFocusHandler)}}).include(lB),yB={defaultOptions:function(){return{}},controllers:{editorFactory:vB}};zO.registerModule("editorFactory",yB);var CB=(0,s.Jj)(),bB={text:"OK",onClick:function(){return!0}},xB="dx-dialog",wB="".concat(xB,"-wrapper"),TB="".concat(xB,"-root"),SB="".concat(xB,"-content"),IB="".concat(xB,"-message"),EB="".concat(xB,"-buttons"),DB="".concat(xB,"-button"),kB="dx-button",OB=f.w.inherit({ctor:function(e,t){this.callBase(t)},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{width:276}}])}}),AB=function(e){var t,i=new ot.BH,r=(new OB).option();e=(0,a.l)(r,e);var s=(0,o.Z)("<div>").addClass(xB).appendTo((0,Yt.S3)()),l="message"in e,d="messageHtml"in e;l&&Xt.Z.log("W1013");var u=String(d?e.messageHtml:e.message),c=(0,o.Z)("<div>").addClass(IB).html(u),h=[];(0,E.S6)(e.buttons||[bB],(function(){var e=new T.Z(this.onClick,{context:p});h.push({toolbar:"bottom",location:w.Z.current().android?"after":"center",widget:"dxButton",options:(0,a.l)({},this,{onClick:function(){var t=e.execute(...arguments);f(t)}})})}));var p=new Tc(s,(0,a.l)({title:null!==(t=e.title)&&void 0!==t?t:"",showTitle:(0,v.IS)(e.showTitle,!0),dragEnabled:(0,v.IS)(e.dragEnabled,!0),height:"auto",width:e.width,showCloseButton:e.showCloseButton||!1,ignoreChildEvents:!1,container:s,visualContainer:CB,dragAndResizeArea:CB,onContentReady:function(e){e.component.$content().addClass(SB).append(c)},onShowing:function(e){e.component.bottomToolbar().addClass(EB).find(".".concat(kB)).addClass(DB),(0,M.M3)()},onShown:function(e){var t=e.component.bottomToolbar().find(".".concat(kB)).first();re.Z.trigger(t,"focus")},onHiding:function(){i.reject()},toolbarItems:h,animation:{show:{type:"pop",duration:400},hide:{type:"pop",duration:400,to:{opacity:0,scale:0},from:{opacity:1,scale:1}}},rtlEnabled:(0,Oe.Z)().rtlEnabled,position:{boundaryOffset:{h:10,v:0}}},e.popupOptions));function f(e){i.resolve(e),p.hide().done((function(){p.$element().remove()}))}return p.$wrapper().addClass(wB),e.position&&p.option("position",e.position),p.$wrapper().addClass(TB),{show:function(){if("android"===w.Z.real().platform){var e=(0,n.Cr)(CB)>(0,n.dz)(CB),t=e?"80%":"60%";p.option({width:t})}return p.show(),i.promise()},hide:f}},PB=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,n=(0,l.PO)(e)?e:{title:t,messageHtml:e,showTitle:i,buttons:[{text:y.Z.format("Yes"),onClick:function(){return!0}},{text:y.Z.format("No"),onClick:function(){return!1}}],dragEnabled:i};return AB(n).show()},MB="dx-editor-cell",RB="dx-row",BB="dx-selection",VB="edit-form",FB="insert",HB="remove",LB="editing.popup",NB="editing.form",ZB="editing.editRowKey",$B="editing.editColumnName",WB="targetComponent",KB="input:not([type='hidden'])",zB="[tabindex], "+KB,jB="batch",UB="row",GB="cell",qB="form",YB="popup",XB="first",JB="last",QB="pageBottom",eV="pageTop",tV="viewportBottom",iV="viewportTop",nV=[jB,UB,GB,qB,YB],oV=[UB,qB,YB],rV=[UB,qB],aV="readonly",sV="dx-link",lV="dx-selection",dV="dx-edit-button",uV="dx-command-edit",cV=uV+"-with-icons",hV="__DX_INSERT_INDEX__",pV="dx-row-inserted",fV="dx-row-modified",gV="dx-cell-modified",mV="dxDataGridEditing",_V="dx-cell-focus-disabled",vV="update",yV="click",CV={save:"dx-link-save",cancel:"dx-link-cancel",edit:"dx-link-edit",undelete:"dx-link-undelete",delete:"dx-link-delete",add:"dx-link-add"},bV={save:"save",cancel:"revert",edit:"edit",undelete:"revert",delete:"trash",add:"add"},xV={edit:"editRow",delete:"deleteRow",undelete:"undeleteRow",save:"saveEditData",cancel:"cancelEditData",add:"addRowByRowIndex"},wV={add:"allowAdding",edit:"allowUpdating",delete:"allowDeleting"},TV=["edit","save","cancel","delete","undelete"],SV="editing.changes",IV=function(e){return function(t){var i=t instanceof Error?t:new Error(t&&String(t)||"Unknown error");e.reject(i)}},EV=function(e,t){return t.isEditing||e&&t.column.allowEditing},DV=function(e,t){var i=!!t.column.command,n=EV(e,t),o=!i&&(n||t.column.showEditorAlways);return"data"===t.rowType&&o},kV=KO.ViewController.inherit(function(){var e=(e,i)=>{var n=-1;return e.some(((e,o)=>{if(t(e)===i)return n=o,!0})),n};function t(e){return(0,l.Kn)(e)?e.name:e}return{init:function(){this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._rowsView=this.getView("rowsView"),this._lastOperation=null,this._deferreds&&this._deferreds.forEach((e=>e.reject("cancel"))),this._deferreds=[],this._dataChangedHandler||(this._dataChangedHandler=this._handleDataChanged.bind(this),this._dataController.changed.add(this._dataChangedHandler)),this._saveEditorHandler||(this.createAction("onInitNewRow",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowInserting",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowInserted",{excludeValidators:["disabled","readOnly"]}),this.createAction("onEditingStart",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowUpdating",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowUpdated",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowRemoving",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowRemoved",{excludeValidators:["disabled","readOnly"]}),this.createAction("onSaved",{excludeValidators:["disabled","readOnly"]}),this.createAction("onSaving",{excludeValidators:["disabled","readOnly"]}),this.createAction("onEditCanceling",{excludeValidators:["disabled","readOnly"]}),this.createAction("onEditCanceled",{excludeValidators:["disabled","readOnly"]})),this._updateEditColumn(),this._updateEditButtons(),this._internalState||(this._internalState=[]),this.component._optionsByReference[ZB]=!0,this.component._optionsByReference[SV]=!0},getEditMode:function(){var e=this.option("editing.mode");return-1!==nV.indexOf(e)?e:UB},_getDefaultEditorTemplate:function(){return(e,t)=>{var i=(0,o.Z)("<div>").appendTo(e);this.getController("editorFactory").createEditor(i,(0,a.l)({},t.column,{value:t.value,setValue:t.setValue,row:t.row,parentType:"dataRow",width:null,readOnly:!t.setValue,isOnForm:t.isOnForm,id:t.id}))}},_getNewRowPosition:function(){var e=this.option("editing.newRowPosition"),t=this.option("scrolling.mode");if("virtual"===t)switch(e){case eV:return iV;case QB:return tV;default:return e}return e},getChanges:function(){return this.option(SV)},getInsertRowCount:function(){var e=this.option(SV);return e.filter((e=>"insert"===e.type)).length},resetChanges:function(){var e=this.getChanges(),t=null===e||void 0===e?void 0:e.length;t&&this._silentOption(SV,[])},_getInternalData:function(e){return this._internalState.filter((t=>(0,v.bY)(t.key,e)))[0]},_addInternalData:function(e){var t=this._getInternalData(e.key);return t?(0,a.l)(t,e):(this._internalState.push(e),e)},_getOldData:function(e){var t;return null===(t=this._getInternalData(e))||void 0===t?void 0:t.oldData},getUpdatedData:function(e){var t=this._dataController.keyOf(e),i=this.getChanges(),n=FD.getIndexByKey(t,i);return i[n]?(0,qc.FL)(e,i[n].data):e},getInsertedData:function(){return this.getChanges().filter((e=>e.data&&e.type===FB)).map((e=>e.data))},getRemovedData:function(){return this.getChanges().filter((e=>this._getOldData(e.key)&&e.type===HB)).map((e=>this._getOldData(e.key)))},_fireDataErrorOccurred:function(e){if("cancel"!==e){var t=this.getPopupContent();this._dataController.dataErrorOccurred.fire(e,t)}},_needToCloseEditableCell:v.ZT,_closeEditItem:v.ZT,_handleDataChanged:v.ZT,_isDefaultButtonVisible:function(e,t){var i=!0;switch(e.name){case"delete":i=this.allowDeleting(t);break;case"undelete":i=!1}return i},_isButtonVisible:function(e,t){var i=e.visible;return(0,l.$K)(i)?(0,l.mf)(i)?i.call(e,{component:t.component,row:t.row,column:t.column}):i:this._isDefaultButtonVisible(e,t)},_isButtonDisabled:function(e,t){var i=e.disabled;return(0,l.mf)(i)?i.call(e,{component:t.component,row:t.row,column:t.column}):!!i},_getButtonConfig:function(e,i){var n=(0,l.Kn)(e)?e:{},o=t(e),r=(e=>{var t=e.component.option("editing.texts")||{};return{save:t.saveRowChanges,cancel:t.cancelRowChanges,edit:t.editRow,undelete:t.undeleteRow,delete:t.deleteRow,add:t.addRowToNode}})(i),s=xV[o],d=this.option("editing"),u=wV[o],c=!u||d[u];return(0,a.l)({name:o,text:r[o],cssClass:CV[o]},{onClick:s&&(e=>{var t=e.event;t.stopPropagation(),t.preventDefault(),setTimeout((()=>{i.row&&c&&this[s]&&this[s](i.row.rowIndex)}))})},n)},_getEditingButtons:function(t){var i,n=!!t.column.buttons,o=(t.column.buttons||[]).slice();return n?(i=e(o,"edit"),i>=0&&(e(o,"save")<0&&o.splice(i+1,0,"save"),e(o,"cancel")<0&&o.splice(e(o,"save")+1,0,"cancel")),i=e(o,"delete"),i>=0&&e(o,"undelete")<0&&o.splice(i+1,0,"undelete")):o=TV.slice(),o.map((e=>this._getButtonConfig(e,t)))},_renderEditingButtons:function(e,t,i,n){t.forEach((t=>{this._isButtonVisible(t,i)&&this._createButton(e,t,i,n)}))},_getEditCommandCellTemplate:function(){return(e,t,i)=>{var n=(0,o.Z)(e);if("data"===t.rowType){var r=this._getEditingButtons(t);this._renderEditingButtons(n,r,t,i),t.watch&&t.watch((()=>r.map((e=>this._isButtonVisible(e,t)))),(()=>{n.empty(),this._renderEditingButtons(n,r,t)}))}else FD.setEmptyText(n)}},isRowBasedEditMode:function(){var e=this.getEditMode();return-1!==oV.indexOf(e)},getFirstEditableColumnIndex:function(){var e,t=this.getController("columns"),i=t.getVisibleColumns();return(0,E.S6)(i,(function(t,i){if(i.allowEditing)return e=t,!1})),e},getFirstEditableCellInRow:function(e){var t=this.getView("rowsView");return t&&t._getCellElement(e||0,this.getFirstEditableColumnIndex())},getFocusedCellInRow:function(e){return this.getFirstEditableCellInRow(e)},getIndexByKey:function(e,t){return FD.getIndexByKey(e,t)},hasChanges:function(e){for(var t=this.getChanges(),i=!1,n=0;n<(null===t||void 0===t?void 0:t.length);n++)if(t[n].type&&(!(0,l.$K)(e)||this._dataController.getRowIndexByKey(t[n].key)===e)){i=!0;break}return i},dispose:function(){this.callBase(),clearTimeout(this._inputFocusTimeoutID),re.Z.off(ke["default"].getDocument(),B.Z.up,this._pointerUpEditorHandler),re.Z.off(ke["default"].getDocument(),B.Z.down,this._pointerDownEditorHandler),re.Z.off(ke["default"].getDocument(),A.u,this._saveEditorHandler)},optionChanged:function(e){if("editing"===e.name){var t=e.fullName;t===ZB?this._handleEditRowKeyChange(e):t===SV?this._handleChangesChange(e):e.handled||(this._columnsController.reinit(),this.init(),this.resetChanges(),this._resetEditColumnName(),this._resetEditRowKey()),e.handled=!0}else this.callBase(e)},_handleEditRowKeyChange:function(e){var t=this._dataController.getRowIndexByKey(e.value),i=this._getEditRowIndexCorrection(),n=this._dataController.getRowIndexByKey(e.previousValue)+i;(0,l.$K)(e.value)?e.value!==e.previousValue&&this._editRowFromOptionChanged(t,n):this.cancelEditData()},_handleChangesChange:function(e){var t=this._dataController,i=e.value;(e.value.length||e.previousValue.length)&&(i.forEach((e=>{if("insert"===e.type)this._addInsertInfo(e);else{var i,n=t.items(),o=t.getRowIndexByKey(e.key);this._addInternalData({key:e.key,oldData:null===(i=n[o])||void 0===i?void 0:i.data})}})),t.updateItems({repaintChangesOnly:!0,isLiveUpdate:!1,isOptionChanged:!0}))},publicMethods:function(){return["addRow","deleteRow","undeleteRow","editRow","saveEditData","cancelEditData","hasEditData"]},refresh:function(){(0,l.$K)(this._pageIndex)&&this._refreshCore.apply(this,arguments)},_refreshCore:v.ZT,isEditing:function(){var e=(0,l.$K)(this.option(ZB));return e},isEditRow:function(){return!1},_setEditRowKey:function(e,t){t?this._silentOption(ZB,e):this.option(ZB,e)},_setEditRowKeyByIndex:function(e,t){var i=this._dataController.getKeyByRowIndex(e);void 0!==i?this._setEditRowKey(i,t):this._dataController.fireError("E1043")},getEditRowIndex:function(){return this._getVisibleEditRowIndex()},getEditFormRowIndex:function(){return-1},isEditRowByIndex(e){var t=this._dataController.getKeyByRowIndex(e),i=(0,l.$K)(t)&&(0,v.bY)(this.option(ZB),t);return i?this._getVisibleEditRowIndex()===e:i},isEditCell:function(e,t){return this.isEditRowByIndex(e)&&this._getVisibleEditColumnIndex()===t},getPopupContent:v.ZT,_isProcessedItem:function(e){return!1},_getInsertRowIndex:function(e,t,i){var n=-1,o=this._dataController,r=this._getInsertAfterOrBeforeKey(t);return(0,l.$K)(r)||0!==e.length?(0,l.$K)(r)&&e.some(((a,s)=>{var d=i||this._isProcessedItem(a);if((0,l.Kn)(a)&&(d||(0,l.$K)(a[hV])?(0,v.bY)(a.key,r)&&(n=s):(0,v.bY)(o.keyOf(a),r)&&(n=s)),n>=0){var u=e[n+1];if(u&&("detail"===u.rowType||"detailAdaptive"===u.rowType)&&(0,l.$K)(t.insertAfterKey))return;return(0,l.$K)(t.insertAfterKey)&&(n+=1),!0}})):n=0,n},_generateNewItem:function(e){var t,i={key:e},n=null===(t=this._getInternalData(e))||void 0===t?void 0:t.insertInfo;return null!==n&&void 0!==n&&n[hV]&&(i[hV]=n[hV]),i},_getLoadedRowIndex:function(e,t,i){var n=this._getInsertRowIndex(e,t,i),o=this._dataController;if(n<0){var r=this._getNewRowPosition(),a=o.pageIndex(),s=this._getInsertAfterOrBeforeKey(t);r===JB||0!==a||(0,l.$K)(s)?r===JB&&o.isLastPageLoaded()&&(n=e.length):n=0}return n},processItems:function(e,t){var i=t.changeType;this.update(i);var n=this.getChanges();return n.forEach((t=>{var i,n=t.type===FB;if(n){var o=t.key,r=null===(i=this._getInternalData(o))||void 0===i?void 0:i.insertInfo;(0,l.$K)(o)&&(0,l.$K)(r)||(r=this._addInsertInfo(t),o=r.key);var a=this._getLoadedRowIndex(e,t),s=this._generateNewItem(o);a>=0&&e.splice(a,0,s)}})),e},processDataItem:function(e,t,i){var n=t.visibleColumns,o=e.data[hV]?e.data.key:e.key,r=this.getChanges(),a=FD.getIndexByKey(o,r);e.isEditing=!1,a>=0&&this._processDataItemCore(e,r[a],o,n,i)},_processDataItemCore:function(e,t,i,n,o){var{data:r,type:a}=t;switch(a){case FB:e.isNewRow=!0,e.key=i,e.data=r;break;case vV:e.modified=!0,e.oldData=e.data,e.data=(0,qc.FL)(e.data,r),e.modifiedValues=o(r,n,!0);break;case HB:e.removed=!0}},_initNewRow:function(e){if(this.executeAction("onInitNewRow",e),e.promise){var t=new ot.BH;return(0,ot.gx)((0,ot.p4)(e.promise)).done(t.resolve).fail(IV(t)).fail((e=>this._fireDataErrorOccurred(e))),t}},_createInsertInfo:function(){var e={};return e[hV]=this._getInsertIndex(),e},_addInsertInfo:function(e,t){var i,n,{key:o}=e;if((0,l.$K)(o)||(o=String(new Li.Z),e.key=o),n=null===(i=this._getInternalData(o))||void 0===i?void 0:i.insertInfo,!(0,l.$K)(n)){var r=this._getInsertAfterOrBeforeKey(e);n=this._createInsertInfo(),(0,l.$K)(r)||this._setInsertAfterOrBeforeKey(e,t)}return this._addInternalData({insertInfo:n,key:o}),{insertInfo:n,key:o}},_setInsertAfterOrBeforeKey:function(e,t){var i=this._dataController,n=i.items(!0),o=this.getView("rowsView"),r=this._getNewRowPosition();switch(r){case XB:case JB:break;case eV:case QB:if(n.length){var a=r===eV?0:n.length-1;e[0===a?"insertBeforeKey":"insertAfterKey"]=n[a].key}break;default:var s=r===tV,d=s?null===o||void 0===o?void 0:o.getBottomVisibleItemIndex():null===o||void 0===o?void 0:o.getTopVisibleItemIndex(),u=i.getVisibleRows()[d];u&&(!u.isEditing&&"detail"===u.rowType||"detailAdaptive"===u.rowType)&&d++;var c=i.getKeyByRowIndex(d);(0,l.$K)(c)&&(e.insertBeforeKey=c)}},_getInsertIndex:function(){var e=0;return this.getChanges().forEach((t=>{var i,n=null===(i=this._getInternalData(t.key))||void 0===i?void 0:i.insertInfo;(0,l.$K)(n)&&t.type===FB&&n[hV]>e&&(e=n[hV])})),e+1},_getInsertAfterOrBeforeKey:function(e){var t;return null!==(t=e.insertAfterKey)&&void 0!==t?t:e.insertBeforeKey},_getPageIndexToInsertRow:function(){var e=this._getNewRowPosition(),t=this._dataController,i=t.pageIndex(),n=t.pageCount()-1;return e===XB&&0!==i?0:e===JB&&i!==n?n:-1},addRow:function(e){var t=this._dataController,i=t.store();return i?this._addRow(e):(t.fireError("E1052",this.component.NAME),(new ot.BH).reject())},_addRow:function(e){var t=this._dataController,i=t.store(),n=i&&i.key(),o={data:{}},r=this._getVisibleEditRowIndex(),a=new ot.BH;return this.refresh({allowCancelEditing:!0}),this._allowRowAdding()?(n||(o.data.__KEY__=String(new Li.Z)),(0,ot.gx)(this._initNewRow(o,e)).done((()=>{this._allowRowAdding()?(0,ot.gx)(this._addRowCore(o.data,e,r)).done(a.resolve).fail(a.reject):a.reject("cancel")})).fail(a.reject),a.promise()):((0,ot.gx)(this._navigateToNewRow(r)).done(a.resolve).fail(a.reject),a.promise())},_allowRowAdding:function(){var e=this._getInsertIndex();return!(e>1)},_addRowCore:function(e,t,i){var n={data:e,type:FB},o=this._getVisibleEditRowIndex(),r=this._addInsertInfo(n,t),a=r.key;return this._setEditRowKey(a,!0),this._addChange(n),this._navigateToNewRow(i,n,o)},_navigateToNewRow:function(e,t,i){var n,o,r=new ot.BH,a=this._dataController,s=this.getController("focus");if(i=null!==(n=i)&&void 0!==n?n:-1,t=null!==(o=t)&&void 0!==o?o:this.getChanges().filter((e=>e.type===FB))[0],!t)return r.reject("cancel").promise();var d=this._getPageIndexToInsertRow(),u=this._getLoadedRowIndex(a.items(),t,!0),c=e=>{(0,ot.gx)(null===s||void 0===s?void 0:s.navigateToRow(e)).done((()=>{u=a.getRowIndexByKey(t.key),r.resolve()}))},h=this._getInsertAfterOrBeforeKey(t);return d>=0?a.pageIndex(d).done((()=>{c(t.key)})).fail(r.reject):u<0&&(0,l.$K)(h)?c(h):(a.updateItems({changeType:"update",rowIndices:[e,i,u]}),u=a.getRowIndexByKey(t.key),u<0?c(t.key):r.resolve()),r.done((()=>{this._showAddedRow(u),this._afterInsertRow(t.key)})),r.promise()},_showAddedRow:function(e){this._focusFirstEditableCellInRow(e)},_beforeFocusElementInRow:v.ZT,_focusFirstEditableCellInRow:function(e){var t=this._dataController,i=t.getKeyByRowIndex(e),n=this.getFirstEditableCellInRow(e);this._editCellInProgress=!0,this._delayedInputFocus(n,(()=>{e=t.getRowIndexByKey(i),this._editCellInProgress=!1,this._beforeFocusElementInRow(e)}))},_isEditingStart:function(e){return this.executeAction("onEditingStart",e),e.cancel},_beforeUpdateItems:v.ZT,_getVisibleEditColumnIndex:function(){var e=this.option($B);return(0,l.$K)(e)?this._columnsController.getVisibleColumnIndex(e):-1},_setEditColumnNameByIndex:function(e,t){var i,n=this._columnsController.getVisibleColumns();this._setEditColumnName(null===(i=n[e])||void 0===i?void 0:i.name,t)},_setEditColumnName:function(e,t){t?this._silentOption($B,e):this.option($B,e)},_resetEditColumnName:function(){this._setEditColumnName(null,!0)},_getEditColumn:function(){var e=this.option($B);return this._getColumnByName(e)},_getColumnByName:function(e){var t,i=this._columnsController.getVisibleColumns();return(0,l.$K)(e)&&i.some((i=>{if(i.name===e)return t=i,!0})),t},_getVisibleEditRowIndex:function(e){var t=this._dataController,i=this.option(ZB),n=t.getRowIndexByKey(i);return-1===n?n:n+this._getEditRowIndexCorrection(e)},_getEditRowIndexCorrection:function(e){var t=e?this._getColumnByName(e):this._getEditColumn(),i="adaptiveHidden"===(null===t||void 0===t?void 0:t.visibleWidth);return i?1:0},_resetEditRowKey:function(){this._setEditRowKey(null,!0)},_resetEditIndices:function(){this._resetEditColumnName(),this._resetEditRowKey()},editRow:function(e){var t,i=this._dataController,n=i.items(),o=n[e],r={data:o&&o.data,cancel:!1},a=this._getVisibleEditRowIndex();if(o)return e===a||void(void 0!==o.key?(o.isNewRow||(r.key=o.key),this._isEditingStart(r)||(this.resetChanges(),this.init(),this._resetEditColumnName(),this._pageIndex=i.pageIndex(),this._addInternalData({key:o.key,oldData:null!==(t=o.oldData)&&void 0!==t?t:o.data}),this._setEditRowKey(o.key))):this._dataController.fireError("E1043"))},_editRowFromOptionChanged:function(e,t){var i=[t,e];this._beforeUpdateItems(i,e,t),this._editRowFromOptionChangedCore(i,e)},_editRowFromOptionChangedCore:function(e,t,i){this._needFocusEditor=!0,this._dataController.updateItems({changeType:"update",rowIndices:e,cancel:i})},_focusEditorIfNeed:v.ZT,_showEditPopup:v.ZT,_repaintEditPopup:v.ZT,_getEditPopupHiddenHandler:function(){return e=>{this.isEditing()&&this.cancelEditData()}},_getPopupEditFormTemplate:v.ZT,_getSaveButtonConfig:function(){return{text:this.option("editing.texts.saveRowChanges"),onClick:this.saveEditData.bind(this)}},_getCancelButtonConfig:function(){return{text:this.option("editing.texts.cancelRowChanges"),onClick:this.cancelEditData.bind(this)}},_removeInternalData:function(e){var t=this._getInternalData(e),i=this._internalState.indexOf(t);i>-1&&this._internalState.splice(i,1)},_updateInsertAfterOrBeforeKeys:function(e,t){var i=e[t];e.forEach((e=>{var t=this._getInsertAfterOrBeforeKey(e);(0,v.bY)(t,i.key)&&(e[(0,l.$K)(e.insertAfterKey)?"insertAfterKey":"insertBeforeKey"]=this._getInsertAfterOrBeforeKey(i))}))},_removeChange:function(e){if(e>=0){var t=[...this.getChanges()],i=t[e].key;this._removeInternalData(i),this._updateInsertAfterOrBeforeKeys(t,e),t.splice(e,1),this._silentOption(SV,t),(0,v.bY)(this.option(ZB),i)&&this._resetEditIndices()}},executeOperation:function(e,t){this._lastOperation&&this._lastOperation.reject(),this._lastOperation=e,this.waitForDeferredOperations().done((()=>{"rejected"!==e.state()&&(t(),this._lastOperation=null)})).fail((()=>{e.reject(),this._lastOperation=null}))},waitForDeferredOperations:function(){return(0,ot.gx)(...this._deferreds)},_processCanceledEditingCell:v.ZT,_repaintEditCell:function(e,t,i){this._needFocusEditor=!0,!e||!e.showEditorAlways||t&&!t.showEditorAlways?(this._editCellInProgress=!0,this.getController("editorFactory").loseFocus(),this._dataController.updateItems({changeType:"update",rowIndices:[i,this._getVisibleEditRowIndex()]})):e!==t&&this._dataController.updateItems({changeType:"update",rowIndices:[]})},_delayedInputFocus:function(e,t,i){var n=()=>{if(t&&t(),e){var i=e.find(zB).first();FD.focusAndSelectElement(this,i)}this._beforeFocusCallback=null};w.Z.real().ios||w.Z.real().android?n():(this._beforeFocusCallback&&this._beforeFocusCallback(),clearTimeout(this._inputFocusTimeoutID),i&&(this._beforeFocusCallback=t),this._inputFocusTimeoutID=setTimeout(n))},_focusEditingCell:function(e,t,i){var n=this.getView("rowsView"),o=this._getVisibleEditColumnIndex();t=t||n&&n._getCellElement(this._getVisibleEditRowIndex(),o),t&&this._delayedInputFocus(t,e,i)},deleteRow:function(e){this._checkAndDeleteRow(e)},_checkAndDeleteRow:function(e){var t=this.option("editing"),i=null===t||void 0===t?void 0:t.texts,n=null===t||void 0===t?void 0:t.confirmDelete,o=null===i||void 0===i?void 0:i.confirmDeleteMessage,r=this._dataController.items()[e],a=!this.isEditing()||r.isNewRow;if(r&&a)if(n&&o){var s=i&&i.confirmDeleteTitle,d=(0,l.$K)(s)&&s.length>0;PB(o,s,d).done((t=>{t&&this._deleteRowCore(e)}))}else this._deleteRowCore(e)},_deleteRowCore:function(e){var t=this._dataController,i=t.items()[e],n=i&&i.key,o=this._getVisibleEditRowIndex();this.refresh();var r=this.getChanges(),a=FD.getIndexByKey(n,r);return a>=0?r[a].type===FB?this._removeChange(a):this._addChange({key:n,type:HB}):this._addChange({key:n,oldData:i.data,type:HB}),this._afterDeleteRow(e,o)},_afterDeleteRow:function(e,t){return this.saveEditData()},undeleteRow:function(e){var t=this._dataController,i=t.items()[e],n=this._getVisibleEditRowIndex(),o=i&&i.key,r=this.getChanges();if(i){var a=FD.getIndexByKey(o,r);if(a>=0){var{data:s}=r[a];(0,l.Qr)(s)?this._removeChange(a):this._addChange({key:o,type:vV}),t.updateItems({changeType:"update",rowIndices:[n,e]})}}},_fireOnSaving:function(){var e={cancel:!1,promise:null,changes:[...this.getChanges()]};this.executeAction("onSaving",e);var t=new ot.BH;return(0,ot.gx)((0,ot.p4)(e.promise)).done((()=>{t.resolve(e)})).fail((e=>{IV(t),this._fireDataErrorOccurred(e),t.resolve({cancel:!0})})),t},_executeEditingAction:function(e,t,i){if(this.component._disposed)return null;var n=new ot.BH;return this.executeAction(e,t),(0,ot.gx)((0,ot.p4)(t.cancel)).done((function(e){e?setTimeout((function(){n.resolve("cancel")})):i(t).done(n.resolve).fail(IV(n))})).fail(IV(n)),n},_processChanges:function(e,t,i,n){var o=this._dataController.store();(0,E.S6)(n,((r,a)=>{var s,d,u=this._getOldData(a.key),{data:c,type:h}=a,p=(0,hn.Z)({},a);if(!this._beforeSaveEditData(a,r)){switch(h){case HB:d={data:u,key:a.key,cancel:!1},s=this._executeEditingAction("onRowRemoving",d,(function(){return o.remove(a.key).done((function(e){i.push({type:"remove",key:e})}))}));break;case FB:d={data:c,cancel:!1},s=this._executeEditingAction("onRowInserting",d,(function(){return o.insert(d.data).done((function(e,t){(0,l.$K)(t)&&(p.key=t),e&&(0,l.Kn)(e)&&e!==d.data&&(p.data=e),i.push({type:"insert",data:e,index:0})}))}));break;case vV:d={newData:c,oldData:u,key:a.key,cancel:!1},s=this._executeEditingAction("onRowUpdating",d,(function(){return o.update(a.key,d.newData).done((function(e,t){e&&(0,l.Kn)(e)&&e!==d.newData&&(p.data=e),i.push({type:"update",key:t,data:e})}))}))}if(n[r]=p,s){var f=new ot.BH;s.always((function(e){t.push({key:a.key,result:e})})).always(f.resolve),e.push(f.promise())}}}))},_processRemoveIfError:function(e,t){var i=e[t];return(null===i||void 0===i?void 0:i.type)===HB&&t>=0&&e.splice(t,1),!0},_processRemove:function(e,t,i){var n=e[t];if(!i||!n||n.type===HB)return this._processRemoveCore(e,t,!i||!n)},_processRemoveCore:function(e,t){return t>=0&&e.splice(t,1),!0},_processSaveEditDataResult:function(e){for(var t=!1,i=[...this.getChanges()],n=i.length,o=0;o<e.length;o++){var r=e[o].result,a="cancel"===r,s=FD.getIndexByKey(e[o].key,i),l=i[s],d=r&&r instanceof Error;if(d){if(l&&this._addInternalData({key:l.key,error:r}),this._fireDataErrorOccurred(r),this._processRemoveIfError(i,s))break}else this._processRemove(i,s,a)&&(t=!a)}return i.length<n&&this._silentOption(SV,i),t},_fireSaveEditDataEvents:function(e){(0,E.S6)(e,((e,t)=>{var{data:i,key:n,type:o}=t,r=this._addInternalData({key:n}),s={key:n,data:i};switch(r.error&&(s.error=r.error),o){case HB:this.executeAction("onRowRemoved",(0,a.l)({},s,{data:r.oldData}));break;case FB:this.executeAction("onRowInserted",s);break;case vV:this.executeAction("onRowUpdated",s)}})),this.executeAction("onSaved",{changes:e})},saveEditData:function(){var e=new ot.BH;return this.waitForDeferredOperations().done((()=>{this.isSaving()?this._resolveAfterSave(e):(0,ot.gx)(this._beforeSaveEditData()).done((t=>{if(t)this._resolveAfterSave(e,{cancel:t});else{this._saving=!0;var i={};this._saveEditDataInner(i).always((()=>{this._saving=!1,i.needFocusEditCell&&this._focusEditingCell()})).done(e.resolve).fail(e.reject)}})).fail(e.reject)})).fail(e.reject),e.promise()},_resolveAfterSave:function(e){var{cancel:t,error:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,ot.gx)(this._afterSaveEditData(t)).done((function(){e.resolve(i)})).fail(e.reject)},_saveEditDataInner:function(e){var t=[],i=[],n=[],o=this._dataController,r=o.dataSource(),a=new ot.BH;return(0,ot.gx)(this._fireOnSaving()).done((o=>{var{cancel:s,changes:l}=o;return s?a.resolve().promise():(this._processChanges(i,t,n,l),i.length?(null===r||void 0===r||r.beginLoading(),(0,ot.gx)(...i).done((()=>{this._processSaveEditDataResult(t)?this._endSaving(n,l,a):(null===r||void 0===r||r.endLoading(),a.resolve())})).fail((e=>{null===r||void 0===r||r.endLoading(),a.resolve(e)})),a.always((()=>{e.needFocusEditCell=!0})).promise()):void this._cancelSaving(a))})).fail(a.reject),a.promise()},_beforeEndSaving:function(e){this._resetEditIndices()},_endSaving:function(e,t,i){var n=this._dataController.dataSource();this._beforeEndSaving(t),null===n||void 0===n||n.endLoading(),this._refreshDataAfterSave(e,t,i)},_cancelSaving:function(e){this.executeAction("onSaved",{changes:[]}),this._resolveAfterSave(e)},_refreshDataAfterSave:function(e,t,i){var n=this._dataController,o=this.option("editing.refreshMode"),r="reshape"!==o&&"repaint"!==o;r||n.push(e),(0,ot.gx)(n.refresh({selection:r,reload:r,load:"reshape"===o,changesOnly:this.option("repaintChangesOnly")})).always((()=>{this._fireSaveEditDataEvents(t)})).done((()=>{this._resolveAfterSave(i)})).fail((e=>{this._resolveAfterSave(i,{error:e})}))},isSaving:function(){return this._saving},_updateEditColumn:function(){var e=this._isEditColumnVisible(),t=this.option("editing.useIcons"),i=uV+(t?" "+cV:"");this._columnsController.addCommandColumn({type:"buttons",command:"edit",visible:e,cssClass:i,width:"auto",alignment:"center",cellTemplate:this._getEditCommandCellTemplate(),fixedPosition:"right"}),this._columnsController.columnOption("command:edit",{visible:e,cssClass:i})},_isEditColumnVisible:function(){var e=this.option("editing");return e.allowDeleting},_isEditButtonDisabled:function(){var e=this.hasChanges(),t=(0,l.$K)(this.option("editing.editRowKey"));return!(t||e)},_updateEditButtons:function(){var e=this.getView("headerPanel"),t=this._isEditButtonDisabled();e&&(e.setToolbarItemDisabled("saveButton",t),e.setToolbarItemDisabled("revertButton",t))},_applyModified:function(e){e&&e.addClass(gV)},_beforeCloseEditCellInBatchMode:v.ZT,cancelEditData:function(){var e=this.getChanges(),t={cancel:!1,changes:e};this.executeAction("onEditCanceling",t),t.cancel||(this._cancelEditDataCore(),this.executeAction("onEditCanceled",{changes:e}))},_cancelEditDataCore:function(){var e=this._getVisibleEditRowIndex();this._beforeCancelEditData(),this.init(),this.resetChanges(),this._resetEditColumnName(),this._resetEditRowKey(),this._afterCancelEditData(e)},_afterCancelEditData:function(e){var t=this._dataController;t.updateItems({repaintChangesOnly:this.option("repaintChangesOnly")})},_hideEditPopup:v.ZT,hasEditData:function(){return this.hasChanges()},update:function(e){var t=this._dataController;t&&this._pageIndex!==t.pageIndex()&&("refresh"===e&&this.refresh({isPageChanged:!0}),this._pageIndex=t.pageIndex()),this._updateEditButtons()},_getRowIndicesForCascadeUpdating:function(e,t){return t?[]:[e.rowIndex]},addDeferred:function(e){this._deferreds.indexOf(e)<0&&(this._deferreds.push(e),e.always((()=>{var t=this._deferreds.indexOf(e);t>=0&&this._deferreds.splice(t,1)})))},_prepareChange:function(e,t,i){var n,o={},r=null===(n=e.row)||void 0===n?void 0:n.data,s=e.key,d=new ot.BH;if(void 0!==s){e.value=t;var u=(0,ot.p4)(e.column.setCellValue(o,t,(0,a.l)(!0,{},r),i));u.done((function(){d.resolve({data:o,key:s,oldData:r,type:vV})})).fail(IV(d)).fail((e=>this._fireDataErrorOccurred(e))),(0,l.$K)(i)&&e.column.displayValueMap&&(e.column.displayValueMap[t]=i),this._updateRowValues(e),this.addDeferred(d)}return d},_updateRowValues:function(e){if(e.values){var t=this._dataController,i=t.getRowIndexByKey(e.key),n=t.getVisibleRows()[i];n&&(e.row.values=n.values,e.values=n.values),e.values[e.columnIndex]=e.value}},updateFieldValue:function(e,t,i,n){var o=e.key,r=new ot.BH;return void 0===o&&this._dataController.fireError("E1043"),e.column.setCellValue?this._prepareChange(e,t,i).done((t=>{(0,ot.gx)(this._applyChange(e,t,n)).always((()=>{r.resolve()}))})):r.resolve(),r.promise()},_focusPreviousEditingCellIfNeed:function(e){if(this.hasEditData()&&!this.isEditCell(e.rowIndex,e.columnIndex))return this._focusEditingCell(),this._updateEditRow(e.row,!0),!0},_needUpdateRow:function(e){var t=this._columnsController.getVisibleColumns();e||(e=this._getEditColumn());var i=e&&e.setCellValue!==e.defaultSetCellValue,n=t.some((e=>e.calculateCellValue!==e.defaultCalculateCellValue));return i||n},_applyChange:function(e,t,i){var n=(0,hn.Z)({},e,{forceUpdateRow:i});return this._addChange(t,n),this._updateEditButtons(),this._applyChangeCore(e,n.forceUpdateRow)},_applyChangeCore:function(e,t){var i=e.column.setCellValue!==e.column.defaultSetCellValue,n=e.row;n&&(t||i?this._updateEditRow(n,t,i):n.update&&n.update())},_updateEditRowCore:function(e,t,i){this._dataController.updateItems({changeType:"update",rowIndices:this._getRowIndicesForCascadeUpdating(e,t)})},_updateEditRow:function(e,t,i){t?this._updateRowImmediately(e,t,i):this._updateRowWithDelay(e,i)},_updateRowImmediately:function(e,t,i){this._updateEditRowCore(e,!t,i),this._validateEditFormAfterUpdate(e,i),t||this._focusEditingCell()},_updateRowWithDelay:function(e,t){var i=new ot.BH;this.addDeferred(i),setTimeout((()=>{var n,r=(null===(n=this._editForm)||void 0===n?void 0:n.element())||this.component.$element().get(0),a=(0,o.Z)(ke["default"].getActiveElement(r)),s=this._rowsView.getCellIndex(a,e.rowIndex),l=a.get(0),d=FD.getSelectionRange(l);if(this._updateEditRowCore(e,!1,t),this._validateEditFormAfterUpdate(e,t),s>=0){var u=this._rowsView._getCellElement(e.rowIndex,s);this._delayedInputFocus(u,(()=>{setTimeout((()=>{var e;l=ke["default"].getActiveElement(null===(e=this.component.$element())||void 0===e?void 0:e.get(0)),d.selectionStart>=0&&FD.setSelectionRange(l,d)}))}))}i.resolve()}))},_validateEditFormAfterUpdate:v.ZT,_addChange:function(e,t){var i,n=null===t||void 0===t?void 0:t.row,o=[...this.getChanges()],r=FD.getIndexByKey(e.key,o);r<0&&(r=o.length,this._addInternalData({key:e.key,oldData:e.oldData}),delete e.oldData,o.push(e));var a=(0,hn.Z)({},o[r]);return a&&(e.data&&(a.data=(0,qc.FL)(a.data,e.data)),a.type&&e.data||!e.type||(a.type=e.type),n&&(n.oldData=this._getOldData(n.key),n.data=(0,qc.FL)(n.data,e.data))),o[r]=a,this._silentOption(SV,o),t&&a!==(null===(i=this.getChanges())||void 0===i?void 0:i[r])&&(t.forceUpdateRow=!0),a},_getFormEditItemTemplate:function(e,t){return t.editCellTemplate||this._getDefaultEditorTemplate()},getColumnTemplate:function(e){var t,i,n=e.column,o=e.row&&e.row.rowIndex,r=this.isRowBasedEditMode(),a=this.isEditRow(o),s=this.isEditCell(o,e.columnIndex);if(!(n.showEditorAlways||n.setCellValue&&(a&&n.allowEditing||s))||"data"!==e.rowType&&"detailAdaptive"!==e.rowType||n.command)"detail"===n.command&&"detail"===e.rowType&&a&&(t=null===this||void 0===this?void 0:this.getEditFormTemplate(e));else{var l=this.allowUpdating(e);!((l||a)&&n.allowEditing||s)||!a&&r||(n.showEditorAlways&&!r&&(i={cancel:!1,key:e.row.isNewRow?void 0:e.row.key,data:e.row.data,column:n},this._isEditingStart(i)),i&&i.cancel||(e.setValue=(t,i)=>{this.updateFieldValue(e,t,i)})),t=n.editCellTemplate||this._getDefaultEditorTemplate()}return t},_createButton:function(e,t,i,n){var r=bV[t.name],s=this.option("editing.useIcons"),d=this.option("useLegacyColumnButtonTemplate"),u=(0,o.Z)("<a>").attr("href","#").addClass(sV).addClass(t.cssClass);if(t.template&&d)this._rowsView.renderTemplate(e,t.template,i,!0);else{if(t.template)u=(0,o.Z)("<span>").addClass(t.cssClass);else if(s&&r||t.icon){r=t.icon||r;var c=Ms(r);"image"===c||"svg"===c?u=Rs(r).addClass(t.cssClass):u.addClass("dx-icon"+("dxIcon"===c?"-":" ")+r).attr("title",t.text),u.addClass("dx-link-icon"),e.addClass(cV);var h=this.getButtonLocalizationNames()[t.name];h&&u.attr("aria-label",y.Z.format(h))}else u.text(t.text);(0,l.$K)(t.hint)&&u.attr("title",t.hint),this._isButtonDisabled(t,i)?u.addClass("dx-state-disabled"):t.template&&!t.onClick||re.Z.on(u,(0,R.V4)("click",mV),this.createAction((function(e){var n;null===(n=t.onClick)||void 0===n||n.call(t,(0,a.l)({},e,{row:i.row,column:i.column})),e.event.preventDefault(),e.event.stopPropagation()}))),e.append(u,"&nbsp;"),t.template&&this._rowsView.renderTemplate(u,t.template,(0,hn.Z)({},i,{column:void 0}),!0,n)}},getButtonLocalizationNames:()=>({edit:"dxDataGrid-editingEditRow",save:"dxDataGrid-editingSaveRowChanges",delete:"dxDataGrid-editingDeleteRow",undelete:"dxDataGrid-editingUndeleteRow",cancel:"dxDataGrid-editingCancelRowChanges"}),prepareButtonItem:function(e,t,i,n){var r=this.option("editing.texts")||{},a={revert:r.cancelAllChanges,save:r.saveAllChanges,addRow:r.addRow},s={revert:"cancel",save:"save",addRow:"addrow"}[t],l=a[t],d=("save"===s||"cancel"===s)&&this._isEditButtonDisabled();return{widget:"dxButton",options:{onInitialized:t=>{(0,o.Z)(t.element).addClass(e._getToolbarButtonClass(dV+" "+this.addWidgetPrefix(s)+"-button"))},icon:"edit-button-"+s,disabled:d,onClick:()=>{setTimeout((()=>{this[i]()}))},text:l,hint:l},showText:"inMenu",name:t+"Button",location:"after",locateInMenu:"auto",sortIndex:n}},prepareEditButtons:function(e){var t=this.option("editing")||{},i=[];return t.allowAdding&&i.push(this.prepareButtonItem(e,"addRow","addRow",20)),i},highlightDataCell:function(e,t){this.shouldHighlightCell(t)&&e.addClass(gV)},_afterInsertRow:v.ZT,_beforeSaveEditData:function(e){if(e&&!(0,l.$K)(e.key)&&(0,l.$K)(e.type))return!0},_afterSaveEditData:v.ZT,_beforeCancelEditData:v.ZT,_allowEditAction:function(e,t){var i=this.option("editing."+e);return(0,l.mf)(i)&&(i=i({component:this.component,row:t.row})),i},allowUpdating:function(e,t){var i=this.option("editing.startEditAction")||yV,n=!(arguments.length>1)||(i===t||"down"===t);return n&&this._allowEditAction("allowUpdating",e)},allowDeleting:function(e){return this._allowEditAction("allowDeleting",e)},isCellModified:function(e){var t=e.columnIndex,i=e.row&&(e.row.isNewRow?e.row.values:e.row.modifiedValues);return!!i&&void 0!==i[t]},isNewRowInEditMode:function(){var e=this._getVisibleEditRowIndex(),t=this._dataController.items();return e>=0&&t[e].isNewRow},shouldHighlightCell:function(e){var t=this.isCellModified(e);return t&&e.column.setCellValue&&(this.getEditMode()!==UB||!e.row.isEditing)}}}()),OV={defaultOptions:function(){return{editing:{mode:"row",refreshMode:"full",newRowPosition:iV,allowAdding:!1,allowUpdating:!1,allowDeleting:!1,useIcons:!1,selectTextOnEditStart:!1,confirmDelete:!0,texts:{editRow:y.Z.format("dxDataGrid-editingEditRow"),saveAllChanges:y.Z.format("dxDataGrid-editingSaveAllChanges"),saveRowChanges:y.Z.format("dxDataGrid-editingSaveRowChanges"),cancelAllChanges:y.Z.format("dxDataGrid-editingCancelAllChanges"),cancelRowChanges:y.Z.format("dxDataGrid-editingCancelRowChanges"),addRow:y.Z.format("dxDataGrid-editingAddRow"),deleteRow:y.Z.format("dxDataGrid-editingDeleteRow"),undeleteRow:y.Z.format("dxDataGrid-editingUndeleteRow"),confirmDeleteMessage:y.Z.format("dxDataGrid-editingConfirmDeleteMessage"),confirmDeleteTitle:""},form:{colCount:2},popup:{},startEditAction:"click",editRowKey:null,editColumnName:null,changes:[]},useLegacyColumnButtonTemplate:!1}},controllers:{editing:kV},extenders:{controllers:{data:{init:function(){this._editingController=this.getController("editing"),this.callBase()},reload:function(e,t){return!t&&this._editingController.refresh(),this.callBase.apply(this,arguments)},repaintRows:function(){if(!this.getController("editing").isSaving())return this.callBase.apply(this,arguments)},_updateEditRow:function(e){var t,i=this.option(ZB),n=FD.getIndexByKey(i,e),o=e[n];o&&(o.isEditing=!0,null===(t=this._updateEditItem)||void 0===t||t.call(this,o))},_updateItemsCore:function(e){this.callBase(e),this._updateEditRow(this.items(!0))},_applyChangeUpdate:function(e){this._updateEditRow(e.items),this.callBase(e)},_applyChangesOnly:function(e){this._updateEditRow(e.items),this.callBase(e)},_processItems:function(e,t){return e=this._editingController.processItems(e,t),this.callBase(e,t)},_processDataItem:function(e,t){return this._editingController.processDataItem(e,t,this.generateDataValues),this.callBase(e,t)},_processItem:function(e,t){return e=this.callBase(e,t),e.isNewRow&&(t.dataIndex--,delete e.dataIndex),e},_getChangedColumnIndices:function(e,t,i,n){if(e.isNewRow===t.isNewRow&&e.removed===t.removed)return this.callBase.apply(this,arguments)},_isCellChanged:function(e,t,i,n,o){var r=this.getController("editing"),a=e.cells&&e.cells[n],s=r&&r.isEditCell(i,n);return(!o||!s)&&(!(!a||!a.column||a.column.showEditorAlways||a.isEditing===s)||this.callBase.apply(this,arguments))},needToRefreshOnDataSourceChange:function(e){var t=this.getController("editing"),i=Array.isArray(e.value)&&e.value===e.previousValue&&t.isSaving();return!i},_handleDataSourceChange(e){var t=this.callBase(e),i=this.option("editing.changes"),n=e.value;if(Array.isArray(n)&&i.length){var o=n.map((e=>this.keyOf(e))),r=i.filter((e=>"insert"===e.type||o.some((t=>(0,v.bY)(e.key,t)))));r.length!==i.length&&this.option("editing.changes",r);var a=this.option("editing.editRowKey"),s=r.some((e=>"insert"===e.type&&(0,v.bY)(a,e.key)));!s&&o.every((e=>!(0,v.bY)(a,e)))&&this.option("editing.editRowKey",null)}return t}}},views:{rowsView:{init:function(){this.callBase(),this._editingController=this.getController("editing")},getCellIndex:function(e,t){if(!e.is("td")&&t>=0){var i=this.getCellElements(t),n=-1;return(0,E.S6)(i,(function(t,i){(0,o.Z)(i).find(e).length&&(n=t)})),n}return this.callBase.apply(this,arguments)},publicMethods:function(){return this.callBase().concat(["cellValue"])},_getCellTemplate:function(e){var t=this._editingController.getColumnTemplate(e);return t||this.callBase(e)},_createRow:function(e){var t=this.callBase.apply(this,arguments);if(e){var i=!!e.removed,n=!!e.isNewRow,o=!!e.modified;n&&t.addClass(pV),o&&t.addClass(fV),(n||i)&&t.removeClass(lV)}return t},_getColumnIndexByElement:function(e){var t=e.closest("table"),i=this.getTableElements();while(t.length&&!i.filter(t).length)e=t.closest("td"),t=e.closest("table");return this._getColumnIndexByElementCore(e)},_getColumnIndexByElementCore:function(e){var t=e.closest("."+RB+"> td:not(.dx-master-detail-cell)");return this.getCellIndex(t)},_editCellByClick:function(e,t){var i=this._editingController,n=(0,o.Z)(e.event.target),r=this._getColumnIndexByElement(n),a=this._dataController.items()[e.rowIndex],s=i.allowUpdating({row:a},t)||a&&a.isNewRow,l=this._columnsController.getVisibleColumns()[r],d=i.isEditCell(e.rowIndex,r),u=s&&l&&(l.allowEditing||d),c=this.option("editing.startEditAction")||"click";if("down"===t)return!w.Z.real().ios&&!w.Z.real().android||d||(0,M.M3)(),l&&l.showEditorAlways&&u&&i.editCell(e.rowIndex,r);if("click"===t&&"dblClick"===c&&!d){var h=null===a||void 0===a?void 0:a.isNewRow;i.closeEditCell(!1,h)}return u&&t===c?i.editCell(e.rowIndex,r)||i.isEditRow(e.rowIndex):void 0},_rowPointerDown:function(e){this._pointerDownTimeout=setTimeout((()=>{this._editCellByClick(e,"down")}))},_rowClick:function(e){var t=(0,o.Z)(e.rowElement).hasClass(this.addWidgetPrefix(VB));e.event[WB]=this.component,this._editCellByClick(e,"click")||t||this.callBase.apply(this,arguments)},_rowDblClick:function(e){this._editCellByClick(e,"dblClick")||this.callBase.apply(this,arguments)},_cellPrepared:function(e,t){var i,n=this._editingController,o=!!t.column.command,r=t.setValue,a=n.isEditRow(t.rowIndex),s=EV(a,t);if(DV(a,t)){var l=t.column.alignment;e.toggleClass(this.addWidgetPrefix(aV),!r).toggleClass(_V,!r),l&&e.find(KB).first().css("textAlign",l)}s&&this._editCellPrepared(e);var d=!(null===(i=t.column)||void 0===i||!i.cellTemplate);!t.column||o||d&&!n.shouldHighlightCell(t)||n.highlightDataCell(e,t),this.callBase.apply(this,arguments)},_editCellPrepared:v.ZT,_formItemPrepared:v.ZT,_getCellOptions:function(e){var t=this.callBase(e);return t.isEditing=this._editingController.isEditCell(t.rowIndex,t.columnIndex),t},_createCell:function(e){var t=this.callBase(e),i=this._editingController.isEditRow(e.rowIndex);return DV(i,e)&&t.addClass(MB),t},cellValue:function(e,t,i,n){var o=this.getCellOptions(e,t);if(o){if(void 0===i)return o.value;this._editingController.updateFieldValue(o,i,n,!0)}},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._pointerDownTimeout)},_renderCore:function(e){this.callBase.apply(this,arguments),this._waitAsyncTemplates(e,!0).done((()=>{this._editingController._focusEditorIfNeed()}))}},headerPanel:{_getToolbarItems:function(){var e=this.callBase(),t=this.getController("editing").prepareEditButtons(this);return t.concat(e)},optionChanged:function(e){var t=e.fullName;switch(e.name){case"editing":var i=[LB,SV,$B,ZB],n=t&&!i.some((e=>e===t));n&&this._invalidate(),this.callBase(e);break;case"useLegacyColumnButtonTemplate":e.handled=!0;break;default:this.callBase(e)}},isVisible:function(){var e=this.getController("editing").option("editing");return this.callBase()||(null===e||void 0===e?void 0:e.allowAdding)}}}}},AV="dx-treelist-icon-container",PV="dx-select-checkbox",MV="insert",RV=OV.controllers.editing.inherit({_generateNewItem:function(e){var t=this.callBase(e);return t.data={key:e},t.children=[],t.level=0,t.parentKey=this.option("rootValue"),t},_isProcessedItem:function(){return!0},_setInsertAfterOrBeforeKey:function(e,t){void 0!==t&&t!==this.option("rootValue")?e.insertAfterKey=t:this.callBase.apply(this,arguments)},_getLoadedRowIndex:function(e,t){var i=this.getController("data"),n=i.dataSource(),o=null===n||void 0===n?void 0:n.parentKeyOf(t.data);if(void 0!==o&&o!==this.option("rootValue")){var r=FD.getIndexByKey(o,e);return r>=0&&this._dataController.isRowExpanded(o)?r+1:-1}return this.callBase.apply(this,arguments)},_isEditColumnVisible:function(){var e=this.callBase.apply(this,arguments),t=this.option("editing");return e||t.allowAdding},_isDefaultButtonVisible:function(e,t){var i=this.callBase.apply(this,arguments),n=t.row;return"add"===e.name?this.allowAdding(t)&&n.rowIndex!==this._getVisibleEditRowIndex()&&!(n.removed||n.isNewRow):i},_getEditingButtons:function(e){var t=this.callBase.apply(this,arguments);return e.column.buttons||t.unshift(this._getButtonConfig("add",e)),t},_beforeSaveEditData:function(e){var t=this._dataController,i=this.callBase.apply(this,arguments);if(e&&e.type!==MV){var n=null===t||void 0===t?void 0:t.store(),o=null===n||void 0===n?void 0:n.key();if(!(0,l.$K)(o))throw Xt.Z.Error("E1045")}return i},addRowByRowIndex:function(e){var t=this.getController("data"),i=t.getVisibleRows()[e];return this.addRow(i?i.key:void 0)},addRow:function(e){return void 0===e&&(e=this.option("rootValue")),this.callBase.call(this,e)},_addRowCore:function(e,t,i){var n=this.callBase,o=this.option("rootValue"),r=this.getController("data"),a=r.dataSource(),s=a.createParentIdGetter();if(t=s(e),void 0!==t&&t!==o&&!r.isRowExpanded(t)){var l=new ot.BH;return r.expandRow(t).done((()=>{setTimeout((()=>{n.call(this,e,t,i).done(l.resolve).fail(l.reject)}))})).fail(l.reject),l.promise()}return n.call(this,e,t,i)},_initNewRow:function(e,t){var i=this.getController("data"),n=i.dataSource(),o=n.createParentIdSetter();return o(e.data,t),this.callBase.apply(this,arguments)},allowAdding:function(e){return this._allowEditAction("allowAdding",e)},_needToCloseEditableCell:function(e){return this.callBase.apply(this,arguments)||e.closest("."+AV).length&&this.isEditing()},getButtonLocalizationNames(){var e=this.callBase.apply(this);return e.add="dxTreeList-editingAddRowToNode",e}}),BV=OV.extenders.views.rowsView._rowClick,VV=OV.extenders.views.rowsView._rowDblClick,FV=function(e){var t=(0,o.Z)(e.event.target),i="dxdblclick"===e.event.type?VV:BV;return!t.closest("."+PV).length&&!HV.call(this,e,i)};function HV(e,t){var i=(0,o.Z)(e.event.target);return!i.closest("."+AV).length&&(t.call(this,e),!0)}var LV=(0,a.l)({},OV.extenders.views.rowsView,{_renderCellCommandContent:function(e,t){var i=this._editingController,n=t.row&&i.isEditRow(t.row.rowIndex),o=t.isEditing||n;return!o&&this.callBase.apply(this,arguments)},_rowClick:function(e){FV.call(this,e)&&this.callBase.apply(this,arguments)},_rowDblClick:function(e){FV.call(this,e)&&this.callBase.apply(this,arguments)}});zO.registerModule("editing",{defaultOptions:function(){return(0,a.l)(!0,OV.defaultOptions(),{editing:{texts:{addRowToNode:y.Z.format("dxTreeList-editingAddRowToNode")}}})},controllers:{editing:RV},extenders:{controllers:(0,a.l)(!0,{},OV.extenders.controllers,{data:{changeRowExpand:function(){return this._editingController.refresh(),this.callBase.apply(this,arguments)}}}),views:{rowsView:LV,headerPanel:OV.extenders.views.headerPanel}}});var NV="dx-edit-row",ZV={extenders:{controllers:{editing:{isRowEditMode:function(){return this.getEditMode()===UB},_afterCancelEditData:function(e){var t=this._dataController;this.isRowBasedEditMode()&&e>=0?t.updateItems({changeType:"update",rowIndices:[e,e+1]}):this.callBase.apply(this,arguments)},_isDefaultButtonVisible:function(e,t){var i=this.isRowBasedEditMode(),n=t.row&&t.row.rowIndex===this._getVisibleEditRowIndex();if(i)switch(e.name){case"edit":return!n&&this.allowUpdating(t);case"delete":return this.callBase.apply(this,arguments)&&!n;case"save":case"cancel":return n;default:return this.callBase.apply(this,arguments)}return this.callBase.apply(this,arguments)},isEditRow:function(e){return this.isRowBasedEditMode()&&this.isEditRowByIndex(e)},_cancelSaving:function(){this.isRowBasedEditMode()&&(this.hasChanges()||this._cancelEditDataCore()),this.callBase.apply(this,arguments)},_refreshCore:function(e){var{allowCancelEditing:t}=null!==e&&void 0!==e?e:{};if(this.isRowBasedEditMode()){var i=this.getChanges().filter((e=>"update"===e.type)).length>0;this.init(),t&&i&&this._cancelEditDataCore()}this.callBase.apply(this,arguments)},_isEditColumnVisible:function(){var e=this.callBase.apply(this,arguments),t=this.option("editing"),i=this.isRowEditMode(),n=t.allowUpdating||t.allowAdding;return e||i&&n},_focusEditorIfNeed:function(){var e=this.getEditMode();if(this._needFocusEditor){if(-1!==rV.indexOf(e)){var t=this.getFocusedCellInRow(this._getVisibleEditRowIndex());this._delayedInputFocus(t,(()=>{t&&this.component.focus(t)}))}this._needFocusEditor=!1}}},data:{_getChangedColumnIndices:function(e,t,i,n){var o=this.getController("editing");if(!o.isRowBasedEditMode()||e.isEditing===t.isEditing)return this.callBase.apply(this,arguments)}}},views:{rowsView:{_createRow:function(e){var t=this.callBase.apply(this,arguments);if(e){var i=this._editingController,n=i.isEditRow(e.rowIndex);n&&(t.addClass(NV),t.removeClass(BB),"detail"===e.rowType&&t.addClass(this.addWidgetPrefix(VB)))}return t},_update:function(e){this.callBase(e),"updateSelection"===e.changeType&&this.getTableElements().children("tbody").children("."+NV).removeClass(BB)}}}}};zO.registerModule("editingRowBased",ZV);var $V=!!$p.IS_RENOVATED_WIDGET,WV="edit-form-item",KV="edit-popup",zV="edit-popup-form",jV=$V?"dx-scrollable":"dx-scrollable-container",UV="dx-button",GV="form-buttons-container",qV=e=>{var t,i=e.column;return e.isCustomEditorType?e.editorType:null===(t=i.formItem)||void 0===t?void 0:t.editorType},YV=(e,t)=>{e.forEach((e=>{e.items||e.tabs?YV(e.items||e.tabs,t):t(e)}))},XV={extenders:{controllers:{editing:{init:function(){this._editForm=null,this._updateEditFormDeferred=null,this.callBase.apply(this,arguments)},isFormOrPopupEditMode:function(){return this.isPopupEditMode()||this.isFormEditMode()},isPopupEditMode:function(){var e=this.option("editing.mode");return e===YB},isFormEditMode:function(){var e=this.option("editing.mode");return e===qB},getFirstEditableColumnIndex:function(){var e=this._firstFormItem;if(this.isFormEditMode()&&e){var t=this.option(ZB),i=this._dataController.getRowIndexByKey(t),n=this._rowsView.getCellElements(i);return this._rowsView._getEditFormEditorVisibleIndex(n,e.column)}return this.callBase.apply(this,arguments)},getEditFormRowIndex:function(){return this.isFormOrPopupEditMode()?this._getVisibleEditRowIndex():this.callBase.apply(this,arguments)},_isEditColumnVisible:function(){var e=this.callBase.apply(this,arguments),t=this.option("editing");return this.isFormOrPopupEditMode()&&t.allowUpdating||e},_handleDataChanged:function(e){if(this.isPopupEditMode()){var t,i,n=this.option("editing.editRowKey"),o=null===e||void 0===e||null===(t=e.items)||void 0===t?void 0:t.some((e=>(0,v.bY)(e.key,n))),r=(null===(i=e.changeTypes)||void 0===i?void 0:i.length)&&e.changeTypes.every((e=>"insert"===e));("refresh"===e.changeType||o&&e.isOptionChanged)&&!r&&this._repaintEditPopup()}this.callBase.apply(this,arguments)},getPopupContent:function(){var e,t=null===(e=this._editPopup)||void 0===e?void 0:e.option("visible");if(this.isPopupEditMode()&&t)return this._$popupContent},_showAddedRow:function(e){this.isPopupEditMode()?this._showEditPopup(e):this.callBase.apply(this,arguments)},_cancelEditDataCore:function(){this.callBase.apply(this,arguments),this.isPopupEditMode()&&this._hideEditPopup()},_updateEditRowCore:function(e,t,i){var n,o=this._editForm;this.isPopupEditMode()?this.option("repaintChangesOnly")?(null===(n=e.update)||void 0===n||n.call(e,e),this._rowsView.renderDelayedTemplates()):o&&(this._updateEditFormDeferred=(new ot.BH).done((()=>o.repaint())),this._updateLockCount||this._updateEditFormDeferred.resolve()):this.callBase.apply(this,arguments)},_showEditPopup:function(e,t){var i="desktop"!==w.Z.current().deviceType,n=(0,a.l)({showTitle:!1,fullScreen:i,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:this._getSaveButtonConfig()},{toolbar:"bottom",location:"after",widget:"dxButton",options:this._getCancelButtonConfig()}],contentTemplate:this._getPopupEditFormTemplate(e)},this.option(LB));if(!this._editPopup){var r=(0,o.Z)("<div>").appendTo(this.component.$element()).addClass(this.addWidgetPrefix(KV));this._editPopup=this._createComponent(r,Tc,{copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0}),this._editPopup.on("hiding",this._getEditPopupHiddenHandler()),this._editPopup.on("shown",(e=>{var i;(re.Z.trigger(e.component.$content().find(zB).not(".".concat(jV)).first(),"focus"),t)&&(null===(i=this._editForm)||void 0===i||i.repaint())}))}this._editPopup.option(n),this._editPopup.show(),this.callBase.apply(this,arguments)},_getPopupEditFormTemplate:function(e){var t=this.component.getVisibleRows()[e],i={row:t,values:t.values,rowType:t.rowType,key:t.key,rowIndex:e};return this._rowsView._addWatchMethod(i,t),e=>{var t=this.getEditFormTemplate(),n=this._createComponent((0,o.Z)("<div>").appendTo(e),$p);this._$popupContent=(0,o.Z)(n.content()),t(this._$popupContent,i,{isPopupForm:!0}),this._rowsView.renderDelayedTemplates()}},_repaintEditPopup:function(){var e=this._getVisibleEditRowIndex();if(e>=0){var t,i,n=null===(t=this._editPopup)||void 0===t?void 0:t.option("animation");null===(i=this._editPopup)||void 0===i||i.option("animation",null),this._showEditPopup(e,!0),void 0!==n&&this._editPopup.option("animation",n)}},_hideEditPopup:function(){var e;null===(e=this._editPopup)||void 0===e||e.option("visible",!1)},optionChanged:function(e){if("editing"===e.name&&this.isFormOrPopupEditMode()){var t=e.fullName;0===t.indexOf(NB)?(this._handleFormOptionChange(e),e.handled=!0):0===t.indexOf(LB)&&(this._handlePopupOptionChange(e),e.handled=!0)}this.callBase.apply(this,arguments)},_handleFormOptionChange:function(e){var t;if(this.isFormEditMode()){var i=this._getVisibleEditRowIndex();i>=0&&this._dataController.updateItems({changeType:"update",rowIndices:[i]})}else null!==(t=this._editPopup)&&void 0!==t&&t.option("visible")&&0===e.fullName.indexOf(NB)&&this._repaintEditPopup()},_handlePopupOptionChange:function(e){var t=this._editPopup;if(t){var i=e.fullName.slice(LB.length+1);i?t.option(i,e.value):t.option(e.value)}},renderFormEditTemplate:function(e,t,i,n,r){var s=this,l=(0,o.Z)(n),d=t.column,u=qV(t),c=null===e||void 0===e?void 0:e.row.data,h=i.component,{label:p,labelMark:f,labelMode:g}=i.editorOptions||{},m=(0,a.l)({},e,{data:c,cellElement:null,isOnForm:!0,item:t,id:h.getItemID(t.name||t.dataField),column:(0,a.l)({},d,{editorType:u,editorOptions:(0,a.l)({label:p,labelMark:f,labelMode:g},d.editorOptions,t.editorOptions)}),columnIndex:d.index,setValue:!r&&d.allowEditing&&function(e){s.updateFieldValue(m,e)}});m.value=d.calculateCellValue(c);var _=this._getFormEditItemTemplate.bind(this)(m,d);return this._rowsView.renderTemplate(l,_,m,!!(0,M.al)(l)).done((()=>{this._rowsView._updateCell(l,m)})),m},getFormEditorTemplate:function(e,t){var i=this.component.columnOption(t.dataField);return(n,r)=>{var a,s,l=(0,o.Z)(r);null===(a=(s=e.row).watch)||void 0===a||a.call(s,(function(){return i.selector(e.row.data)}),(()=>{var i,o=l.find(".dx-widget").first(),r=o.data("dxValidator"),a=null===(i=r)||void 0===i?void 0:i.option();l.contents().remove(),e=this.renderFormEditTemplate.bind(this)(e,t,n,l),o=l.find(".dx-widget").first(),r=o.data("dxValidator"),a&&!r&&o.dxValidator({validationRules:a.validationRules,validationGroup:a.validationGroup,dataGetter:a.dataGetter})})),e=this.renderFormEditTemplate.bind(this)(e,t,n,l)}},getEditFormOptions:function(e){var t,i=null===(t=this._getValidationGroupsInForm)||void 0===t?void 0:t.call(this,e),n=this.option("editing.form.customizeItem"),o=this.addWidgetPrefix(WV),r=this.option("editing.form.items"),s={};if(r)YV(r,(e=>{var t=(null===e||void 0===e?void 0:e.name)||(null===e||void 0===e?void 0:e.dataField);t&&(s[t]=!!e.editorType)}));else{var d=this.getController("columns").getColumns();r=[],(0,E.S6)(d,(function(e,t){t.isBand||t.type||r.push({column:t,name:t.name,dataField:t.dataField})}))}return(0,a.l)({},i,{items:r,formID:"dx-"+new Li.Z,customizeItem:t=>{var i,r=t.name||t.dataField;if((t.column||r)&&(i=t.column||this._columnsController.columnOption(t.name?"name:"+t.name:"dataField:"+t.dataField)),i){if(t.label=t.label||{},t.label.text=t.label.text||i.caption,"boolean"===i.dataType&&void 0===t.label.visible){var d=this.option("editing.form.labelMode");"floating"!==d&&"static"!==d||(t.label.visible=!0)}t.template=t.template||this.getFormEditorTemplate(e,t),t.column=i,t.isCustomEditorType=s[r],i.formItem&&(0,a.l)(t,i.formItem),void 0===t.isRequired&&i.validationRules&&(t.isRequired=i.validationRules.some((function(e){return"required"===e.type})),t.validationRules=[]);var u=!(0,l.$K)(t.visible)||t.visible;!this._firstFormItem&&u&&(this._firstFormItem=t)}null===n||void 0===n||n.call(this,t),t.cssClass=(0,l.HD)(t.cssClass)?t.cssClass+" "+o:o}})},getEditFormTemplate:function(){return(e,t,i)=>{var n=this.option(NB),r=this.getEditFormOptions(t),s=(0,o.Z)("<div>").appendTo(e),l=null===i||void 0===i?void 0:i.isPopupForm;if(this._firstFormItem=void 0,l&&s.addClass(this.addWidgetPrefix(zV)),this._editForm=this._createComponent(s,cI,(0,a.l)({},n,r)),!l){var d=(0,o.Z)("<div>").addClass(this.addWidgetPrefix(GV)).appendTo(e);this._createComponent((0,o.Z)("<div>").appendTo(d),cd,this._getSaveButtonConfig()),this._createComponent((0,o.Z)("<div>").appendTo(d),cd,this._getCancelButtonConfig())}this._editForm.on("contentReady",(()=>{var e;this._rowsView.renderDelayedTemplates(),null===(e=this._editPopup)||void 0===e||e.repaint()}))}},getEditForm:function(){return this._editForm},_endUpdateCore:function(){var e;null===(e=this._updateEditFormDeferred)||void 0===e||e.resolve()},_beforeEndSaving:function(){var e;(this.callBase.apply(this,arguments),this.isPopupEditMode())&&(null===(e=this._editPopup)||void 0===e||e.hide())},_processDataItemCore:function(e,t){var{type:i}=t;this.isPopupEditMode()&&i===FB&&(e.visible=!1),this.callBase.apply(this,arguments)},_editRowFromOptionChangedCore:function(e,t){var i=this.isPopupEditMode();this.callBase(e,t,i),i&&this._showEditPopup(t)}},data:{_updateEditItem:function(e){this._editingController.isFormEditMode()&&(e.rowType="detail")},_getChangedColumnIndices:function(e,t,i,n){if(!1!==n||!t.isEditing||!this._editingController.isFormEditMode())return this.callBase.apply(this,arguments)}}},views:{rowsView:{_renderCellContent:function(e,t){"data"===t.rowType&&this._editingController.isPopupEditMode()&&!1===t.row.visible||this.callBase.apply(this,arguments)},getCellElements:function(e){var t=this.callBase(e),i=this._editingController,n=i.getEditForm(),o=i.getEditFormRowIndex();return o===e&&t&&n?n.$element().find("."+this.addWidgetPrefix(WV)+", ."+UV):t},_getVisibleColumnIndex:function(e,t,i){var n=this._editingController.getEditFormRowIndex();if(n===t&&(0,l.HD)(i)){var o=this._columnsController.columnOption(i);return this._getEditFormEditorVisibleIndex(e,o)}return this.callBase.apply(this,arguments)},_getEditFormEditorVisibleIndex:function(e,t){var i=-1;return(0,E.S6)(e,(function(e,n){var r=(0,o.Z)(n).find(".dx-field-item-content").data("dx-form-item");if(null!==r&&void 0!==r&&r.column&&t&&r.column.index===t.index)return i=e,!1})),i},_isFormItem:function(e){var t="detail"===e.rowType||"detailAdaptive"===e.rowType,i="data"===e.rowType&&this._editingController.isPopupEditMode();return(t||i)&&e.item},_updateCell:function(e,t){this._isFormItem(t)?this._formItemPrepared(t,e):this.callBase(e,t)}}}}};zO.registerModule("editingFormBased",XV);var JV="focus-overlay",QV="addrow-button",eF="dx-dropdowneditor-overlay",tF="dx-editor-cell",iF="dx-row",nF="dx-cell-modified",oF="dx-data-row",rF="dx-row-removed",aF="editing.editRowKey",sF="editing.editColumnName",lF="remove",dF={extenders:{controllers:{editing:{init:function(){var e,t,i=!this._saveEditorHandler;(this.callBase.apply(this,arguments),i)&&(this._pointerUpEditorHandler=()=>{var e;t=null===(e=this.getController("columnsResizer"))||void 0===e?void 0:e.isResizing()},this._pointerDownEditorHandler=t=>e=(0,o.Z)(t.target),this._saveEditorHandler=this.createAction((function(i){var n=i.event,r=(0,o.Z)(n.target),a=n[WB],s=this.component;if((!e||!e.is("input")||e.is(r))&&this.isCellOrBatchEditMode()&&!this._editCellInProgress){var l=p(r)||p(null===a||void 0===a?void 0:a.$element()),d=a&&!a._disposed&&a!==this.component,u=!!r.closest(".".concat(this.addWidgetPrefix(QV))).length,c=r.hasClass(this.addWidgetPrefix(JV)),h=this.isCellEditMode();t||l||c||u&&h&&this.isEditing()||!(0,M.al)(r)&&!d||this._closeEditItem.bind(this)(r)}function p(e){if(!e)return!1;var t=e.closest(".".concat(eF)),i=s.$element();return t.length>0&&0===i.closest(t).length}})),re.Z.on(ke["default"].getDocument(),B.Z.up,this._pointerUpEditorHandler),re.Z.on(ke["default"].getDocument(),B.Z.down,this._pointerDownEditorHandler),re.Z.on(ke["default"].getDocument(),A.u,this._saveEditorHandler))},isCellEditMode:function(){return this.option("editing.mode")===GB},isBatchEditMode:function(){return this.option("editing.mode")===jB},isCellOrBatchEditMode:function(){return this.isCellEditMode()||this.isBatchEditMode()},_needToCloseEditableCell:function(e){var t=this.component.$element(),i=this.isEditing(),n=!t||!!e.closest(t).length;if(n){var o=e.closest("."+oF).length;if(o){var r=this.getView("rowsView"),a=e.closest("."+iF+"> td"),s=r.getRowIndex(a.parent()),l=r.getCellElements(s).index(a),d=this._columnsController.getVisibleColumns(),u=d[l]&&d[l].allowEditing;i=i&&!u&&!this.isEditCell(s,l)}}return i||this.callBase.apply(this,arguments)},_closeEditItem:function(e){this._needToCloseEditableCell(e)&&this.closeEditCell()},_focusEditorIfNeed:function(){if(this._needFocusEditor&&this.isCellOrBatchEditMode()){var e,t=this._getVisibleEditColumnIndex(),i=null===(e=this._rowsView)||void 0===e?void 0:e._getCellElement(this._getVisibleEditRowIndex(),t);i&&!i.find(":focus").length?this._focusEditingCell((()=>{this._editCellInProgress=!1}),i,!0):this._editCellInProgress=!1,this._needFocusEditor=!1}else this.callBase.apply(this,arguments)},isEditing:function(){if(this.isCellOrBatchEditMode()){var e=(0,l.$K)(this.option(aF)),t=(0,l.$K)(this.option(sF));return e&&t}return this.callBase.apply(this,arguments)},_handleEditColumnNameChange:function(e){var t=this._getVisibleEditRowIndex(e.previousValue);if(this.isCellOrBatchEditMode()&&-1!==t&&(0,l.$K)(e.value)&&e.value!==e.previousValue){var i=this._columnsController.getVisibleColumnIndex(e.value),n=this._columnsController.getVisibleColumnIndex(e.previousValue);this._editCellFromOptionChanged(i,n,t)}},_addRow:function(e,t){if(this.isCellEditMode()&&this.hasChanges()){var i=new ot.BH;return this.saveEditData().done((()=>{this.hasChanges()?i.reject("cancel"):this.addRow(e).done(i.resolve).fail(i.reject)})),i.promise()}return this.callBase.apply(this,arguments)},editCell:function(e,t){return this._editCell({rowIndex:e,columnIndex:t})},_editCell:function(e){var t,i=new ot.BH;return this.executeOperation(i,(()=>{t=this._editCellCore(e),(0,ot.gx)(t).done(i.resolve).fail(i.reject)})),void 0!==t?t:i.promise()},_editCellCore:function(e){var t=this._dataController,i=(0,l.$K)(e.oldColumnIndex)||(0,l.$K)(e.oldRowIndex),{columnIndex:n,rowIndex:o,column:r,item:a}=this._getNormalizedEditCellOptions(e),s={data:null===a||void 0===a?void 0:a.data,cancel:!1,column:r};if(void 0!==a.key){if(r&&("data"===a.rowType||"detailAdaptive"===a.rowType)&&!a.removed&&this.isCellOrBatchEditMode()){if(!i&&this.isEditCell(o,n))return!0;var d=o+t.getRowIndexOffset();return(0,ot.gx)(this._beforeEditCell(o,n,a)).done((e=>{e||this._prepareEditCell(s,a,n,d)||this._processCanceledEditingCell()}))}return!1}this._dataController.fireError("E1043")},_beforeEditCell:function(e,t,i){if(this.isCellEditMode()&&!i.isNewRow&&this.hasChanges()){var n=new ot.BH;return this.saveEditData().always((()=>{n.resolve(this.hasChanges())})),n}},publicMethods:function(){var e=this.callBase.apply(this,arguments);return e.concat(["editCell","closeEditCell"])},_getNormalizedEditCellOptions:function(e){var t,{oldColumnIndex:i,oldRowIndex:n,columnIndex:o,rowIndex:r}=e,a=this._columnsController,s=a.getVisibleColumns(),d=this._dataController.items(),u=d[r];t=(0,l.$K)(i)?s[i]:this._getEditColumn(),(0,l.$K)(n)||(n=this._getVisibleEditRowIndex()),(0,l.HD)(o)&&(o=a.columnOption(o,"index"),o=a.getVisibleIndex(o));var c=s[o];return{oldColumn:t,columnIndex:o,oldRowIndex:n,rowIndex:r,column:c,item:u}},_prepareEditCell:function(e,t,i,n){if(t.isNewRow||(e.key=t.key),this._isEditingStart(e))return!1;var o;(this._pageIndex=this._dataController.pageIndex(),this._setEditRowKey(t.key),this._setEditColumnNameByIndex(i),e.column.showEditorAlways)||this._addInternalData({key:t.key,oldData:null!==(o=t.oldData)&&void 0!==o?o:t.data});return!0},closeEditCell:function(e,t){var i=(0,ot.gx)(),n=this._getVisibleEditRowIndex();if(this.isCellOrBatchEditMode()){var o=new ot.BH;i=new ot.BH,this.executeOperation(o,(()=>{this._closeEditCellCore(e,n,t).always(i.resolve)}))}return i.promise()},_closeEditCellCore:function(e,t,i){var n=this._dataController,o=new ot.BH,r=o.promise();if(this.isCellEditMode()&&this.hasChanges()){if(!i)return this.saveEditData().done((e=>{this.hasChanges()?o.resolve():this.closeEditCell(!!e).always(o.resolve)})),r}else if(this._resetEditRowKey(),this._resetEditColumnName(),t>=0){var a=[t];this._beforeCloseEditCellInBatchMode(a),e||n.updateItems({changeType:"update",rowIndices:a})}return o.resolve(),r},_resetModifiedClassCells:function(e){if(this.isBatchEditMode()){var t=this._columnsController.getVisibleColumns().length;e.forEach((e=>{var{key:i}=e,n=this._dataController.getRowIndexByKey(i);if(-1!==n)for(var o=0;o<t;o++)this._rowsView._getCellElement(n,o).removeClass(nF)}))}},_prepareChange:function(e,t,i){var n=(0,o.Z)(e.cellElement);return this.isBatchEditMode()&&void 0!==e.key&&this._applyModified(n,e),this.callBase.apply(this,arguments)},_cancelSaving:function(){var e=this._dataController;this.isCellOrBatchEditMode()&&(this.isBatchEditMode()&&this._resetEditIndices(),e.updateItems()),this.callBase.apply(this,arguments)},optionChanged:function(e){var t=e.fullName;"editing"===e.name&&t===sF?(this._handleEditColumnNameChange(e),e.handled=!0):this.callBase(e)},_editCellFromOptionChanged:function(e,t,i){var n=this._columnsController.getVisibleColumns();e>-1&&(0,v.g0)((()=>{this._repaintEditCell(n[e],n[t],i)}))},_handleEditRowKeyChange:function(e){if(this.isCellOrBatchEditMode()){var t,i=this._getVisibleEditColumnIndex(),n=this._getEditRowIndexCorrection(),o=this._dataController.getRowIndexByKey(e.previousValue)+n;if((0,l.$K)(e.value)&&e.value!==e.previousValue)null===(t=this._editCellFromOptionChanged)||void 0===t||t.call(this,i,i,o)}else this.callBase.apply(this,arguments)},deleteRow:function(e){if(this.isCellEditMode()&&this.isEditing()){var t=this._dataController.items()[e].isNewRow,i=this._dataController.getKeyByRowIndex(e);this.closeEditCell(null,t).always((()=>{e=this._dataController.getRowIndexByKey(i),this._checkAndDeleteRow(e)}))}else this.callBase.apply(this,arguments)},_checkAndDeleteRow:function(e){this.isBatchEditMode()?this._deleteRowCore(e):this.callBase.apply(this,arguments)},_refreshCore:function(e){var{isPageChanged:t}=null!==e&&void 0!==e?e:{},i=this.isBatchEditMode()||t&&"virtual"!==this.option("scrolling.mode");this.isCellOrBatchEditMode()?i&&(this._resetEditColumnName(),this._resetEditRowKey()):this.callBase.apply(this,arguments)},_allowRowAdding:function(e){return!!this.isBatchEditMode()||this.callBase.apply(this,arguments)},_afterDeleteRow:function(e,t){var i=this._dataController;return this.isBatchEditMode()?(i.updateItems({changeType:"update",rowIndices:[t,e]}),(new ot.BH).resolve()):this.callBase.apply(this,arguments)},_updateEditRow:function(e,t,i){this.isCellOrBatchEditMode()?this._updateRowImmediately(e,t,i):this.callBase.apply(this,arguments)},_isDefaultButtonVisible:function(e,t){if(this.isCellOrBatchEditMode()){var i=this.isBatchEditMode();switch(e.name){case"save":case"cancel":case"edit":return!1;case"delete":return this.callBase.apply(this,arguments)&&(!i||!t.row.removed);case"undelete":return i&&this.allowDeleting(t)&&t.row.removed;default:return this.callBase.apply(this,arguments)}}return this.callBase.apply(this,arguments)},_isRowDeleteAllowed:function(){var e=this.callBase.apply(this,arguments);return e||this.isBatchEditMode()},_beforeEndSaving:function(e){var t;this.isCellEditMode()?"update"!==(null===(t=e[0])||void 0===t?void 0:t.type)&&this.callBase.apply(this,arguments):(this.isBatchEditMode()&&this._resetModifiedClassCells(e),this.callBase.apply(this,arguments))},prepareEditButtons:function(e){var t=this.option("editing")||{},i=this.callBase.apply(this,arguments);return(t.allowUpdating||t.allowAdding||t.allowDeleting)&&this.isBatchEditMode()&&(i.push(this.prepareButtonItem(e,"save","saveEditData",21)),i.push(this.prepareButtonItem(e,"revert","cancelEditData",22))),i},_saveEditDataInner:function(){var e,t,i=this._dataController.getVisibleRows()[this.getEditRowIndex()],n=this._getEditColumn(),o=null===n||void 0===n?void 0:n.showEditorAlways,r=this.isCellEditMode()&&!(null!==i&&void 0!==i&&i.isNewRow);return r&&o&&(t=new ot.BH,this.addDeferred(t)),this.callBase.apply(this,arguments).always(null===(e=t)||void 0===e?void 0:e.resolve)},_applyChange:function(e,t,i){var n=this.isCellEditMode()&&e.row&&!e.row.isNewRow,o=e.column.showEditorAlways,r=e.column.setCellValue!==e.column.defaultSetCellValue,a=o&&!i&&n&&this.hasEditData()&&!this.isEditCell(e.rowIndex,e.columnIndex);return a?(this._focusEditingCell(),void this._updateEditRow(e.row,!0,r)):this.callBase.apply(this,arguments)},_applyChangeCore:function(e,t){var i=e.column.showEditorAlways,n=this.isCellEditMode()&&e.row&&!e.row.isNewRow;if(i&&!t){if(n)return this._setEditRowKey(e.row.key,!0),this._setEditColumnNameByIndex(e.columnIndex,!0),this.saveEditData();if(this.isBatchEditMode())return t=this._needUpdateRow(e.column),this.callBase(e,t)}return this.callBase.apply(this,arguments)},_processDataItemCore:function(e,t){var{data:i,type:n}=t;this.isBatchEditMode()&&n===lF&&(e.data=(0,qc.FL)(e.data,i)),this.callBase.apply(this,arguments)},_processRemoveCore:function(e,t,i){if(!this.isBatchEditMode()||i)return this.callBase.apply(this,arguments)},_processRemoveIfError:function(){if(!this.isBatchEditMode())return this.callBase.apply(this,arguments)},_beforeFocusElementInRow:function(e){this.callBase.apply(this,arguments);var t=e>=0?e:0,i=this.getFirstEditableColumnIndex();i>=0&&this.editCell(t,i)}}},views:{rowsView:{_createTable:function(){var e=this.callBase.apply(this,arguments),t=this._editingController;return t.isCellOrBatchEditMode()&&this.option("editing.allowUpdating")&&re.Z.on(e,(0,R.V4)(Sd.name,"dxDataGridRowsView"),"td:not(."+tF+")",this.createAction((()=>{t.isEditing()&&t.closeEditCell()}))),e},_createRow:function(e){var t=this.callBase.apply(this,arguments);if(e){var i=this._editingController,n=!!e.removed;i.isBatchEditMode()&&n&&t.addClass(rF)}return t}},headerPanel:{isVisible:function(){var e=this.getController("editing").option("editing");return this.callBase()||e&&(e.allowUpdating||e.allowDeleting)&&e.mode===jB}}}}};zO.registerModule("editingCellBased",dF);var uF="invalid",cF="revert-tooltip",hF="rowsview",pF="dx-invalid-message",fF="invalid-message",gF="dx-invalid-message-always",mF="dx-revert-button",_F="validator",vF="dx-pending-indicator",yF="dx-validation-pending",CF="content",bF="__DX_INSERT_INDEX__",xF=2,wF="row",TF="form",SF="batch",IF="cell",EF="popup",DF="dx-group-cell",kF=[EF,TF],OF="transparent",AF={valid:"valid",invalid:"invalid",pending:"pending"},PF="insert",MF="remove",RF="cancel",BF=function(e){return(0,l.$K)(e)&&e!==RF},VF=function(e,t){return void 0!==e||void 0===e&&t&&!t.isNewRow},FF=KO.Controller.inherit({init:function(){this._editingController=this.getController("editing"),this.createAction("onRowValidating"),this._validationState||this.initValidationState()},initValidationState(){this._validationState=[],this._validationStateCache={}},_rowIsValidated:function(e){var t=this._getValidationData(null===e||void 0===e?void 0:e.key);return!!t&&!!t.validated},_getValidationData:function(e,t){var i,n=(0,v.k3)(e),o=(0,l.Kn)(n);return i=o?this._validationState.filter((t=>(0,v.bY)(t.key,e)))[0]:this._validationStateCache[n],!i&&t&&(i={key:e,isValid:!0},this._validationState.push(i),o||(this._validationStateCache[n]=i)),i},_getBrokenRules:function(e,t){var i;return i=t?t.brokenRules||t.brokenRule&&[t.brokenRule]:e.brokenRules||[],i},_rowValidating:function(e,t){var i=new ot.BH,n=this._editingController.getChangeByKey(null===e||void 0===e?void 0:e.key),o=this._getBrokenRules(e,t),r=t?t.isValid:e.isValid,a={brokenRules:o,isValid:r,key:n.key,newData:n.data,oldData:this._editingController._getOldData(n.key),promise:null,errorText:this.getHiddenValidatorsErrorText(o)};return this.executeAction("onRowValidating",a),(0,ot.gx)((0,ot.p4)(a.promise)).always((function(){e.isValid=a.isValid,e.errorText=a.errorText,i.resolve(a)})),i.promise()},getHiddenValidatorsErrorText:function(e){var t=[];return(0,E.S6)(e,(function(e,i){var n=i.column,o=n&&void 0!==n.groupIndex&&!n.showWhenGrouped,r=n&&n.visible;i.validator.$element().parent().length||r&&!o||t.push(i.message)})),t.join(", ")},validate:function(e){var t=!0,i=this._editingController,n=new ot.BH,o=[],r=i.getEditMode();if(e=e||r===wF,this._isValidationInProgress)return n.resolve(!1).promise();if(this._isValidationInProgress=!0,e){i.addDeferred(n);var a=i.getChanges();(0,E.S6)(a,((e,i)=>{var{type:n,key:r}=i;if("remove"!==n){var a=this._getValidationData(r,!0),s=this.validateGroup(a);o.push(s),s.done((e=>{a.validated=!0,t=t&&e.isValid}))}}))}else if(this._currentCellValidator){var s=this.validateGroup(this._currentCellValidator._findGroup());o.push(s),s.done((e=>{t=e.isValid}))}return(0,ot.gx)(...o).done((()=>{this._isValidationInProgress=!1,n.resolve(t)})),n.promise()},validateGroup:function(e){var t,i,n=new ot.BH,o=e&&Kn.getGroupConfig(e);return null!==o&&void 0!==o&&o.validators.length&&(this.resetRowValidationResults(e),i=Kn.validateGroup(e)),(0,ot.gx)((null===(t=i)||void 0===t?void 0:t.complete)||i).done((t=>{(0,ot.gx)(this._rowValidating(e,t)).done(n.resolve)})),n.promise()},isRowDataModified:e=>!(0,l.Qr)(e.data),updateValidationState:function(e){var t=this._editingController.getEditMode(),i=e.key,n=this._getValidationData(i,!0);if(-1===kF.indexOf(t)){if(e.type===PF&&!this.isRowDataModified(e))return void(n.isValid=!0);this.setDisableApplyValidationResults(!0);var o=Kn.getGroupConfig(n);if(o){var r=Kn.validateGroup(n);(0,ot.gx)(r.complete||r).done((e=>{n.isValid=e.isValid,n.brokenRules=e.brokenRules}))}else n.brokenRules&&n.brokenRules.length||(n.isValid=!0);this.setDisableApplyValidationResults(!1)}else n.isValid=!0},setValidator:function(e){this._currentCellValidator=e},renderCellPendingIndicator:function(e){var t=e.find("."+vF);if(!t.length){var i=e;t=(0,o.Z)("<div>").appendTo(i).addClass(vF),this._createComponent(t,oe),e.addClass(yF)}},disposeCellPendingIndicator:function(e){var t=e.find("."+vF);if(t.length){var i=oe.getInstance(t);i&&(i.dispose(),i.$element().remove()),e.removeClass(yF)}},validationStatusChanged:function(e){var t=e.validator,i=t.option("validationGroup"),n=t.option("dataGetter")().column;this.updateCellValidationResult({rowKey:i.key,columnIndex:n.index,validationResult:e})},validatorInitialized:function(e){e.component.on("validating",this.validationStatusChanged.bind(this)),e.component.on("validated",this.validationStatusChanged.bind(this))},validatorDisposing:function(e){var t=e.component,i=t.option("validationGroup"),n=t.option("dataGetter")().column,o=this.getCellValidationResult({rowKey:null===i||void 0===i?void 0:i.key,columnIndex:n.index});BF(o)&&o.status===AF.pending&&this.cancelCellValidationResult({change:i,columnIndex:n.index})},applyValidationResult:function(e,t){var i=t.validator,n=i.option("validationGroup"),o=i.option("dataGetter")().column;if(t.brokenRules&&t.brokenRules.forEach((e=>{e.columnIndex=o.index,e.column=o})),e){var r=this.getCellValidationResult({rowKey:n.key,columnIndex:o.index}),a=BF(r)&&r.disabledPendingId===t.id;if(this._disableApplyValidationResults||a)return;if(t.status===AF.invalid){var s=e.find(":focus");(0,D.si)(s)||(re.Z.trigger(s,"focus"),re.Z.trigger(s,B.Z.down))}var l=!o.editCellTemplate&&this.getController("editorFactory").getEditorInstance(e);t.status===AF.pending?l?l.option("validationStatus",AF.pending):this.renderCellPendingIndicator(e):l?l.option("validationStatus",AF.valid):this.disposeCellPendingIndicator(e),e.toggleClass(this.addWidgetPrefix(uF),t.status===AF.invalid)}},_syncInternalEditingData:function(e){var t,i=this._editingController,n=i.getChangeByKey(e.key),o=i._getOldData(e.key),r=null===(t=e.row)||void 0===t?void 0:t.oldData;n&&r&&!o&&i._addInternalData({key:e.key,oldData:r})},createValidator:function(e,t){var i=this._editingController,n=e.column,r=n.showEditorAlways;if(!(0,l.$K)(n.command)&&n.validationRules&&Array.isArray(n.validationRules)&&n.validationRules.length){var s=i.getIndexByKey(e.key,i.getChanges()),d=s>-1;if(!d){if(!r){var u=this.getController("columns"),c=(null===u||void 0===u?void 0:u.getVisibleColumns())||[];r=c.some((function(e){return e.showEditorAlways}))}var h,p,f=(0,v.bY)(this.option("editing.editRowKey"),e.key),g=i.isCellOrBatchEditMode()&&i.allowUpdating({row:e.row});if(d=f||g&&r,g&&r)i._addInternalData({key:e.key,oldData:null!==(h=null===(p=e.row)||void 0===p?void 0:p.oldData)&&void 0!==h?h:e.data})}if(d){if(t&&!t.length)return void Xt.Z.log("E1050");this._syncInternalEditingData(e);var m=this._getValidationData(e.key,!0),_=()=>{var t=i.getChangeByKey(null===m||void 0===m?void 0:m.key),o=n.calculateCellValue((null===t||void 0===t?void 0:t.data)||{});return void 0!==o?o:e.value},y=t&&t.hasClass("dx-widget");t&&t.addClass(this.addWidgetPrefix(_F));var C=new aS(t||(0,o.Z)("<div>"),{name:n.caption,validationRules:(0,a.l)(!0,[],n.validationRules),validationGroup:m,adapter:y?null:{getValue:_,applyValidationResults:e=>{this.applyValidationResult(t,e)}},dataGetter:function(){var e=null===m||void 0===m?void 0:m.key,t=i.getChangeByKey(e),o=i._getOldData(e);return{data:(0,qc.FL)(o,null===t||void 0===t?void 0:t.data),column:n}},onInitialized:this.validatorInitialized.bind(this),onDisposing:this.validatorDisposing.bind(this)});if(y){var b=C.option("adapter");b&&(b.getValue=_,b.validationRequestsCallbacks=[],b.bypass=()=>e.row.isNewRow&&!this._isValidationInProgress&&!i.isCellModified(e))}return C}}},setDisableApplyValidationResults:function(e){this._disableApplyValidationResults=e},getDisableApplyValidationResults:function(){return this._disableApplyValidationResults},isCurrentValidatorProcessing:function(e){var{rowKey:t,columnIndex:i}=e;return this._currentCellValidator&&(0,v.bY)(this._currentCellValidator.option("validationGroup").key,t)&&this._currentCellValidator.option("dataGetter")().column.index===i},validateCell:function(e){var t={rowKey:e.option("validationGroup").key,columnIndex:e.option("dataGetter")().column.index},i=this.getCellValidationResult(t),n=BF(i);n||(i=e.validate());var o=new ot.BH,r=e.option("adapter");return n&&i.status===AF.pending&&(this.updateCellValidationResult(t),r.applyValidationResults(i)),(0,ot.gx)(i.complete||i).done((e=>{n&&r.applyValidationResults(e),o.resolve(e)})),o.promise()},updateCellValidationResult:function(e){var{rowKey:t,columnIndex:i,validationResult:n}=e,o=this._getValidationData(t);if(o){var r;if(o.validationResults||(o.validationResults={}),n){if(r=(0,a.l)({},n),o.validationResults[i]=r,n.status===AF.pending&&(this._editingController.getEditMode()===IF&&(r.deferred=new ot.BH,r.complete.always((()=>{r.deferred.resolve()})),this._editingController.addDeferred(r.deferred)),this._disableApplyValidationResults))return void(r.disabledPendingId=n.id)}else r=o.validationResults[i];r&&r.disabledPendingId&&delete r.disabledPendingId}},getCellValidationResult:function(e){var t,{rowKey:i,columnIndex:n}=e,o=this._getValidationData(i,!0);return null===o||void 0===o||null===(t=o.validationResults)||void 0===t?void 0:t[n]},removeCellValidationResult:function(e){var{change:t,columnIndex:i}=e,n=this._getValidationData(null===t||void 0===t?void 0:t.key);n&&n.validationResults&&(this.cancelCellValidationResult({change:t,columnIndex:i}),delete n.validationResults[i])},cancelCellValidationResult:function(e){var{change:t,columnIndex:i}=e,n=this._getValidationData(t.key);if(t&&n.validationResults){var o=n.validationResults[i];o&&(o.deferred&&o.deferred.reject(RF),n.validationResults[i]=RF)}},resetRowValidationResults:function(e){e&&(e.validationResults&&delete e.validationResults,delete e.validated)},isInvalidCell:function(e){var{rowKey:t,columnIndex:i}=e,n=this.getCellValidationResult({rowKey:t,columnIndex:i});return BF(n)&&n.status===AF.invalid},getCellValidator:function(e){var{rowKey:t,columnIndex:i}=e,n=this._getValidationData(t),o=n&&Kn.getGroupConfig(n),r=o&&o.validators;return r&&r.filter((e=>{var t=e.option("dataGetter")().column;return!!t&&t.index===i}))[0]},setCellValidationStatus:function(e){var t=this.getCellValidationResult({rowKey:e.key,columnIndex:e.column.index});(0,l.$K)(t)?e.validationStatus=t!==RF?t.status:RF:delete e.validationStatus}}),HF={defaultOptions:function(){return{editing:{texts:{validationCancelChanges:y.Z.format("dxDataGrid-validationCancelChanges")}}}},controllers:{validating:FF},extenders:{controllers:{editing:{_addChange:function(e){var t=this.callBase.apply(this,arguments),i=this.getController("validating");return t&&e.type!==MF&&i.updateValidationState(t),t},_handleChangesChange:function(e){this.callBase.apply(this,arguments);var t=this.getController("validating");e.value.forEach((e=>{void 0===t._getValidationData(e.key)&&t.updateValidationState(e)}))},_updateRowAndPageIndices:function(){var e=this,t=e.getView("rowsView").getTopVisibleItemIndex(),i=t;(0,E.S6)(e.getChanges(),((n,o)=>{var{key:r,type:a}=o,s=this.getController("validating")._getValidationData(r);s&&!s.isValid&&s.pageIndex!==e._pageIndex&&(s.pageIndex=e._pageIndex,s.rowIndex=a===PF?t:i,i++)}))},_getValidationGroupsInForm:function(e){var t=this.getController("validating"),i=t._getValidationData(e.key,!0);return{validationGroup:i}},_validateEditFormAfterUpdate:function(e,t){t&&this._editForm&&this._editForm.validate(),this.callBase.apply(this,arguments)},_prepareEditCell:function(e){var t=this.callBase.apply(this,arguments),i=this.getController("validating");return t&&e.column.showEditorAlways&&i.updateValidationState({key:e.key}),t},processItems:function(e,t){var i=this.getChanges(),n=this.getController("data"),o=this.getController("validating");e=this.callBase(e,t);var r=e.length,a=function(t,i){var o={key:t.key},a=function(e,t){var i=-1,o=e.type===PF,r=e.key;return(0,E.S6)(t,(function(e,t){if((0,v.bY)(r,o?t.key:n.keyOf(t)))return i=e,!1})),i}(t,e);if(!(a>=0)){i.rowIndex=i.rowIndex>r?i.rowIndex%r:i.rowIndex;var s=i.rowIndex;o[bF]=1,e.splice(s,0,o)}};return this.getEditMode()===SF&&"prepend"!==t&&"append"!==t&&i.forEach((e=>{var t=e.key,i=o._getValidationData(t);i&&e.type&&i.pageIndex===this._pageIndex&&(null===e||void 0===e?void 0:e.pageIndex)!==this._pageIndex&&a(e,i)})),e},processDataItem:function(e){var t=e.data[bF],i=t?e.data.key:e.key,n=this.getEditMode();if(n===SF&&t&&i){var o=this.getChanges(),r=FD.getIndexByKey(i,o);if(r>=0){var s=o[r];if(s.type!==PF){var l=this._getOldData(s.key);e.data=(0,a.l)(!0,{},l,s.data),e.key=i}}}this.callBase.apply(this,arguments)},_createInvisibleColumnValidators:function(e){var t=this,i=this.getController("validating"),n=this.getController("columns"),o=n.getColumns(),r=n.getInvisibleColumns().filter((e=>!e.isBand)),a=n.getGroupColumns().filter((e=>!e.showWhenGrouped&&-1===r.indexOf(e))),s=[],l=(e,t)=>this._dataController.getRowIndexByKey(t)>=0&&r.indexOf(e)<0;return r.push(...a),-1===kF.indexOf(this.getEditMode())&&(0,E.S6)(o,(function(n,o){e.forEach((function(e){var n;if(!l(o,e.key)){if(e.type===PF)n=e.data;else if("update"===e.type){var r=t._getOldData(e.key);n=(0,qc.FL)(r,e.data)}if(n){var a=i.createValidator({column:o,key:e.key,value:o.calculateCellValue(n)});a&&s.push(a)}}}))})),function(){s.forEach((function(e){e.dispose()}))}},_beforeSaveEditData:function(e,t){var i=this.callBase.apply(this,arguments),n=this.getController("validating"),o=n._getValidationData(null===e||void 0===e?void 0:e.key);if(e){var r="remove"===e.type||o.isValid;i=i||!r}else{var a=this._createInvisibleColumnValidators(this.getChanges());i=new ot.BH,this.executeOperation(i,(()=>{n.validate(!0).done((e=>{switch(a(),this._updateRowAndPageIndices(),this.getEditMode()){case IF:e||this._focusEditingCell();break;case SF:e||(this._resetEditRowKey(),this._resetEditColumnName(),this.getController("data").updateItems())}i.resolve(!e)}))}))}return i.promise?i.promise():i},_beforeEditCell:function(e,t,i){var n=this.callBase(e,t,i);if(this.getEditMode()===IF){var o=this._rowsView._getCellElement(e,t),r=o&&o.data("dxValidator"),a=o&&o.closest(".dx-row").data("options"),s=r&&r.option("adapter").getValue();if(r&&VF(s,a)){var l=this.getController("validating"),d=new ot.BH;return(0,ot.gx)(l.validateCell(r),n).done(((e,t)=>{d.resolve(e.status===AF.valid&&t)})),d.promise()}if(!r)return n}},_afterSaveEditData:function(e){var t,i=this.getEditMode()===IF;if((0,E.S6)(this.getChanges(),((e,i)=>{var n=this._showErrorRow(i);t=t||n})),t){var n=this._rowsView.getScrollable();n&&(n.update(),n.scrollToElement(t))}if(e&&i&&this._needUpdateRow()){var o=this.getEditRowIndex();this._dataController.updateItems({changeType:"update",rowIndices:[o]}),this._focusEditingCell()}else if(!e){var r=!0;if(i){var a=this.getController("columns").getColumns(),s=a.filter((e=>{var t;return e.showEditorAlways&&(null===(t=e.validationRules)||void 0===t?void 0:t.length)>0})).length>0;r=!s}r&&this.getController("validating").initValidationState()}},_handleDataChanged:function(e){var t=this.getController("validating")._validationState;"standard"===this.option("scrolling.mode")&&this.resetRowAndPageIndices(),"prepend"===e.changeType&&(0,E.S6)(t,(function(t,i){i.rowIndex+=e.items.length})),this.callBase(e)},resetRowAndPageIndices:function(){var e=this.getController("validating")._validationState;(0,E.S6)(e,((e,t)=>{t.pageIndex!==this._pageIndex&&(delete t.pageIndex,delete t.rowIndex)}))},_beforeCancelEditData:function(){this.getController("validating").initValidationState(),this.callBase()},_showErrorRow:function(e){var t,i=this.getController("errorHandling"),n=this.getController("data").items(),o=this.getIndexByKey(e.key,n),r=this.getController("validating")._getValidationData(e.key);if((null===r||void 0===r||!r.isValid)&&null!==r&&void 0!==r&&r.errorText&&o>=0)return t=this.getPopupContent(),i&&i.renderErrorRow(null===r||void 0===r?void 0:r.errorText,o,t)},updateFieldValue:function(e){var t=this.getController("validating"),i=new ot.BH;return t.removeCellValidationResult({change:this.getChangeByKey(e.key),columnIndex:e.column.index}),this.callBase.apply(this,arguments).done((()=>{var n=t.getCellValidator({rowKey:e.key,columnIndex:e.column.index});(0,ot.gx)(n&&t.validateCell(n)).done((e=>{this.getController("editorFactory").refocus(),i.resolve(e)}))})),i.promise()},highlightDataCell:function(e,t){this.callBase.apply(this,arguments);var i=this.getController("validating");i.setCellValidationStatus(t);var n=!!t.setValue,o=this.isCellModified(t),r=(0,l.$K)(t.validationStatus),a=o&&t.column.setCellValue||n&&!o&&!(t.row.isNewRow||!r);if(a){var s=e.data("dxValidator");s&&(0,ot.gx)(this.getController("validating").validateCell(s)).done((()=>{i.setCellValidationStatus(t)}))}},getChangeByKey:function(e){var t=this.getChanges();return t[FD.getIndexByKey(e,t)]},isCellModified:function(e){var t=this.callBase(e),i=this.getChangeByKey(e.key),n=!!e.row&&this.getController("validating").isInvalidCell({rowKey:e.key,columnIndex:e.column.index});return t||this.getController("validating")._rowIsValidated(i)&&n}},editorFactory:{_showRevertButton:function(e){if(e&&e.length){var t=this._rowsView.element().find("."+this.addWidgetPrefix(cF)),i=e.closest(".".concat(this.addWidgetPrefix(CF)));t&&t.remove(),t=(0,o.Z)("<div>").addClass(this.addWidgetPrefix(cF)).appendTo(e);var n={animation:null,visible:!0,width:"auto",height:"auto",shading:!1,container:i,propagateOutsideClick:!0,hideOnOutsideClick:!1,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,contentTemplate:()=>{var e=(0,o.Z)("<div>").addClass(mF),t={icon:"revert",hint:this.option("editing.texts.validationCancelChanges"),onClick:()=>{this._editingController.cancelEditData()}};return new cd(e,t).$element()},position:{my:"left top",at:"right top",offset:"1 0",collision:"flip",boundaryOffset:"0 0",boundary:this._rowsView.element(),of:e},onPositioned:this._positionedHandler.bind(this)};return new ki(t,n)}},_hideFixedGroupCell:function(e,t){var i,n,r=this._rowsView.isFixedColumns(),a=this._editingController.isFormOrPopupEditMode();if(r&&!a){var s=e.closest(".dx-row").next().data("options");s&&"group"===s.rowType&&(i=(0,o.Z)(this._rowsView.getRowElement(s.rowIndex)).last(),n=i.find("."+DF),n.length&&"hidden"!==n.get(0).style.visibility&&(n.css("visibility","hidden"),t.onDisposing=function(){n.css("visibility","")}))}},_positionedHandler:function(e,t){if(!e.component.__skipPositionProcessing){var i=(0,o.Z)(e.element).hasClass(this.addWidgetPrefix(cF)),n=!i&&this._rowsView.updateFreeSpaceRowHeight(),r=this._normalizeValidationMessagePositionAndMaxWidth(e,i,t);e.component.__skipPositionProcessing=!(!n&&!r),r?e.component.option(r):n&&e.component.repaint()}},_showValidationMessage:function(e,t,i,n){var r=e.find(".dx-dropdowneditor-overlay").data("dxPopup"),a=r&&r.option("visible"),s=a?"top right":"top "+i,l=a?"top left":"bottom "+i,d=e.closest(".".concat(this.addWidgetPrefix(CF))),u="";t&&t.forEach((function(e){u+=(u.length?"<br/>":"")+(0,Ic.HZ)(e)}));var c=this.addWidgetPrefix(fF);this._rowsView.element().find("."+c).remove();var h=(0,o.Z)("<div>").addClass(pF).addClass(gF).addClass(c).html(u).appendTo(e),p={container:d,shading:!1,width:"auto",height:"auto",visible:!0,animation:!1,propagateOutsideClick:!0,hideOnOutsideClick:!1,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,position:{collision:"flip",boundary:this._rowsView.element(),boundaryOffset:"0 0",offset:{x:0,y:!a&&Me.Z.mozilla?-1:0},my:s,at:l,of:e},onPositioned:t=>{this._positionedHandler(t,a),this._shiftValidationMessageIfNeed(t.component.$content(),n&&n.$content(),e)}};this._hideFixedGroupCell(e,p),new ki(h,p)},_normalizeValidationMessagePositionAndMaxWidth:function(e,t,i){var r=this._columnsController.getFixedColumns();if(r&&r.length){var a,s,l,d,u,c=!t&&(s=this,l=e.element,d=(0,o.Z)(l).closest("tr").index(),u=(0,o.Z)(s._rowsView.getRowElement(d)).first().children().filter(":not(.dx-hidden-cell)"),s._rowsView._getWidths(u).reduce(((e,t)=>e+t),0)),h=e.component.$content(),p=(0,n.Y_)(h,!0),f=!t&&p>c,g=this._rowsView.getCellIndex((0,o.Z)(e.element).closest("td")),m=function(e){var t,i;return e.some(((n,o)=>{if(n.command===OF)return t=0===o?-1:o,i=o===e.length-1?-1:o+n.colspan-1,!0})),{startColumnIndex:t,endColumnIndex:i}}(r);return t||g!==m.startColumnIndex&&!f?g===m.endColumnIndex&&(a={collision:"none flip",my:"top right",at:t||i?"top left":"bottom right"},t&&(a.offset="-1 0")):a={collision:"none flip",my:"top left",at:i?"top right":"bottom left"},a&&{position:a,maxWidth:f?c-2:void 0}}},_shiftValidationMessageIfNeed:function(e,t,i){if(t){var o=e.offset(),r=t.offset();if(o.top===r.top&&o.left+(0,n.dz)(e)>r.left){var a=(0,n.dz)(t)+xF;e.css("left",r.left<i.offset().left?-a:a)}}},_getTooltipsSelector:function(){var e=this.addWidgetPrefix(fF),t=this.addWidgetPrefix(cF);return".dx-editor-cell ."+t+", .dx-editor-cell ."+e+", .dx-cell-modified ."+e},init:function(){this.callBase(),this._editingController=this.getController("editing"),this._columnsController=this.getController("columns"),this._rowsView=this.getView("rowsView")},loseFocus:function(e){e||this.getController("validating").setValidator(null),this.callBase()},updateCellState:function(e,t,i){var n,o,r=null===e||void 0===e?void 0:e.closest(this._getFocusCellSelector()),a=null!==r&&void 0!==r&&r.is("td")?r:null,s=null===r||void 0===r?void 0:r.closest(".dx-row").data("options"),l=s?this.getController("editing").getChangeByKey(s.key):null,d=a&&this.getController("columns").getVisibleColumns()[a.index()],u=void 0!==(null===l||void 0===l||null===(n=l.data)||void 0===n?void 0:n[null===d||void 0===d?void 0:d.name])&&!this._editingController.isSaving();((null===t||void 0===t?void 0:t.status)===AF.invalid||u)&&this._editingController.getEditMode()===IF&&(o=this._showRevertButton(r));var c=t&&t.status===AF.invalid;if(c&&a&&d&&t&&t.brokenRules){var h=[];t.brokenRules.forEach((function(e){e.message&&h.push(e.message)})),h.length&&this._showValidationMessage(r,h,d.alignment||"left",o)}!i&&this._rowsView.element()&&this._rowsView.updateFreeSpaceRowHeight()},focus:function(e,t){if(!arguments.length)return this.callBase();var i=e&&e.closest("."+this.addWidgetPrefix(hF)).find(this._getTooltipsSelector());if(i&&i.remove(),null!==e&&void 0!==e&&e.hasClass("dx-row")||null!==e&&void 0!==e&&e.hasClass("dx-master-detail-cell"))return this.callBase(e,t);var n,o=null===e||void 0===e?void 0:e.closest(this._getFocusCellSelector()),r=this.callBase,a=o&&(o.data("dxValidator")||e.find("."+this.addWidgetPrefix(_F)).eq(0).data("dxValidator")),s=o&&o.closest(".dx-row").data("options"),l=this.getController("editing"),d=s?l.getChangeByKey(s.key):null,u=this.getController("validating");if(a){u.setValidator(a);var c=a.option("adapter").getValue();if(VF(c,s)||u._rowIsValidated(d))return l.waitForDeferredOperations().done((()=>{(0,ot.gx)(u.validateCell(a)).done((i=>{n=i;var o=n.validator.option("dataGetter")().column;d&&o&&!u.isCurrentValidatorProcessing({rowKey:d.key,columnIndex:o.index})||(n.status===AF.invalid&&(t=!0),this.updateCellState(e,n,t),r.call(this,e,t))}))})),this.callBase(e,t)}return this.updateCellState(e,n,t),this.callBase(e,t)},getEditorInstance:function(e){var t=e.find(".dx-texteditor").eq(0);return FD.getWidgetInstance(t)}},data:{_isCellChanged:function(e,t,i,n,r){var a,s,l=null===(a=e.cells)||void 0===a?void 0:a[n],d=l&&l.validationStatus,u=this.getController("validating"),c=u.getCellValidationResult({rowKey:e.key,columnIndex:n}),h=u._getValidationData(e.key),p=BF(c)?c.status:c,f=JSON.stringify(t.modifiedValues)!==JSON.stringify(e.modifiedValues),g=(0,o.Z)(null===l||void 0===l?void 0:l.cellElement).hasClass(this.addWidgetPrefix(uF)),m=e.isEditing!==t.isEditing,_=null===l||void 0===l||null===(s=l.column.validationRules)||void 0===s?void 0:s.length;return!!(m&&_||d!==p&&f||h.isValid&&g)||this.callBase.apply(this,arguments)}}},views:{rowsView:{updateFreeSpaceRowHeight:function(e){var t,i,o,r=this.element(),a=r&&r.find("."+this.addWidgetPrefix(fF)+" .dx-overlay-content");if(this.callBase(e),a&&a.length&&(t=this._getRowElements(),o=this._getFreeSpaceRowElements(e),i=o.first(),i&&1===t.length&&(!i.is(":visible")||(0,n.zp)(a)>(0,n.zp)(i))))return o.show(),(0,n.QQ)(o,(0,n.zp)(a)),!0},_formItemPrepared:function(e,t){this.callBase.apply(this,arguments),(0,v.Su)((()=>{var i=t.find(".dx-widget").first(),n=i.length&&!i.children().length;n||this.getController("validating").createValidator(e,i)}))},_cellPrepared:function(e,t){this.getController("editing").isFormOrPopupEditMode()||this.getController("validating").createValidator(t,e),this.callBase.apply(this,arguments)},_restoreErrorRow:function(e){var t=this.getController("editing");t&&t.hasChanges()&&this._getRowElements(e).each(((e,i)=>{var n=(0,o.Z)(i).data("options");if(n){var r=t.getChangeByKey(n.key);r&&t._showErrorRow(r)}}))}}}}},LF=(0,a.l)({},HF.extenders.controllers.editing);delete LF.processItems,delete LF.processDataItem,zO.registerModule("validating",{defaultOptions:HF.defaultOptions,controllers:HF.controllers,extenders:{controllers:{editing:LF,editorFactory:HF.extenders.controllers.editorFactory},views:HF.extenders.views}});var NF="scrolling.legacyMode",ZF=e=>e.option("scrolling.loadTwoPagesOnStart")||e._controller.isVirtual()||e._controller.getViewportItemIndex()>0,$F=e=>e._cache.length?e._cache[0].pageIndex:-1,WF=e=>e._cache.length?e._cache[e._cache.length-1].pageIndex:-1,KF=(e,t,i)=>{e._isChangedFiring=!0,t(i),e._isChangedFiring=!1},zF=(e,t,i)=>{if(e._isDelayChanged)return e._isDelayChanged=!1,KF(e,t,i),!0},jF=e=>{var t=e._dataOptions.pageSize(),i=e.option("scrolling.preventPreload");if(i)return 0;var n=e._controller.viewportSize();if(e._controller.isVirtualMode()&&e.option("scrolling.removeInvisiblePages")){n=0;for(var o=e._controller.viewportSize()*e._controller.viewportItemSize(),r=e._controller.getContentOffset(),a=e._controller.getViewportPosition(),s=e._controller.virtualItemsCount(),l=e._dataOptions.totalItemsCount(),d=s.begin;d<l;d++){if(r>=a+o)break;var u=e._controller.getItemSizes()[d]||e._controller.viewportItemSize();r+=u,r>=a&&n++}}return t&&n>0?Math.ceil(n/t):1},UF=(e,t)=>{var i=e.option("scrolling.preloadEnabled"),n=jF(e),o=e._controller.isAppendMode();return n&&(t?n=i?1:0:(i&&n++,!o&&ZF(e)||n--)),n},GF=e=>{var t=-1,i=$F(e),n=e._dataOptions;if(i<0)t=e._pageIndex;else if(e._cache[e._pageIndex-i]){if(i>=0&&e._controller.viewportSize()>=0){if(i>0){var o=WF(e)+1===n.pageCount()&&e._cache.length<UF(e)+1,r=o||e._pageIndex===i&&UF(e,!0);r&&(t=i-1)}if(t<0){var a=i+e._cache.length<=e._pageIndex+UF(e);a&&(t=i+e._cache.length)}}}else t=e._pageIndex;return e._loadingPageIndexes[t]&&(t=-1),t},qF=(e,t)=>{var i=e._dataOptions;if(t===e.pageIndex()||!i.isLoading()&&t<i.pageCount()||!i.hasKnownLastPage()&&t===i.pageCount())return i.pageIndex(t),e._loadingPageIndexes[t]=!0,(0,ot.gx)(i.load()).always((()=>{e._loadingPageIndexes[t]=!1}))},YF=(e,t,i,n,o)=>{var r=e._dataOptions,a=r.items().slice(),s=(0,l.Kn)(i)?i:void 0,d="prepend"===i,u=r.viewportItems();i&&(0,l.HD)(i)&&!e._isDelayChanged&&(s={changeType:i,items:a},o&&(s.removeCount=o.itemsCount,s.removeCount&&r.correctCount&&(s.removeCount=r.correctCount(u,s.removeCount,d))));var c=o?o.itemsLength:0;c&&r.correctCount&&(c=r.correctCount(u,c,d)),"append"===i?(u.push.apply(u,a),o&&u.splice(0,c)):d?(u.unshift.apply(u,a),o&&u.splice(-c)):e._dataOptions.viewportItems(a),r.updateLoading(),e._lastPageIndex=e.pageIndex(),e._isDelayChanged=n,n||KF(e,t,s)};class XF{constructor(e,t){this._controller=e,this._dataOptions=t,this._pageIndex=this._lastPageIndex=t.pageIndex(),this._cache=[],this._loadingPageIndexes={}}option(){return this._controller.option.apply(this._controller,arguments)}viewportItemIndexChanged(e){var t,i=this._dataOptions.pageSize(),n=this._dataOptions.pageCount(),o=this._controller.isVirtualMode(),r=this._controller.isAppendMode(),a=this._dataOptions.totalItemsCount();if(i&&(o||r)&&a>=0){var s=this._controller.viewportSize();if(s&&e+s>=a&&!this._controller.isVirtual())if(this._dataOptions.hasKnownLastPage()){t=n-1;var l=a%i;t>0&&l>0&&l<s&&t--}else t=n;else{t=Math.floor(e/i);var d=n-1;t=Math.max(t,0),t=Math.min(t,d)}return this.pageIndex(t),this.load()}}pageIndex(e){var t=this._controller.isVirtualMode(),i=this._controller.isAppendMode();return!1!==this.option(NF)&&(t||i)?(void 0!==e&&(this._pageIndex=e),this._pageIndex):this._dataOptions.pageIndex(e)}beginPageIndex(e){var t=$F(this);return t<0&&(t=void 0!==e?e:this.pageIndex()),t}endPageIndex(){var e=WF(this);return e>0?e:this._lastPageIndex}pageSize(){return this._dataOptions.pageSize()}load(){var e,t=this._dataOptions,i=this._controller.isVirtualMode(),n=this._controller.isAppendMode();if(!1!==this.option(NF)&&(i||n)){var o=GF(this);if(o>=0){var r=qF(this,o);r&&(e=new ot.BH,r.done((()=>{var t=this._delayDeferred;t?t.done(e.resolve).fail(e.reject):e.resolve()})).fail(e.reject),t.updateLoading())}}else e=t.load();return e||this._lastPageIndex===this.pageIndex()||this._dataOptions.onChanged({changeType:"pageIndex"}),e||(new ot.BH).resolve()}loadIfNeed(){var e=this._controller.isVirtualMode(),t=this._controller.isAppendMode();if((e||t)&&!this._dataOptions.isLoading()&&(!this._isChangedFiring||this._controller.isVirtual())){var i=this._controller.getViewportPosition();i>0?this._controller._setViewportPositionCore(i):this.load()}}handleDataChanged(e,t){var i,n,o=this._dataOptions,r=this._cache.length,a=this._controller.isVirtualMode(),s=this._controller.isAppendMode();if(t&&t.changes)KF(this,e,t);else if(!1!==this.option(NF)&&(a||s)){var l=$F(this);if(l>=0&&(a&&l+this._cache.length!==o.pageIndex()&&l-1!==o.pageIndex()&&(r=0,this._cache=[]),s))if(0===o.pageIndex())this._cache=[];else if(o.pageIndex()<WF(this))return void KF(this,e,{changeType:"append",items:[]});var d,u={pageIndex:o.pageIndex(),itemsLength:o.items(!0).length,itemsCount:this.itemsCount(!0)};this.option("scrolling.removeInvisiblePages")&&a?n=this._cache.length>Math.max(UF(this)+(this.option("scrolling.preloadEnabled")?1:0),2):zF(this,e,{isDelayed:!0}),l===o.pageIndex()+1?(n&&(d=this._cache.pop()),i="prepend",this._cache.unshift(u)):(n&&(d=this._cache.shift()),i="append",this._cache.push(u));var c=a&&0===r&&ZF(this);YF(this,e,this._cache.length>1?i:void 0,c,d),this._delayDeferred=this.load().done((()=>{zF(this,e)&&this.load()}))}else YF(this,e,t)}getDelayDeferred(){return this._delayDeferred}itemsCount(e){var t=0,i=this._controller.isVirtualMode();return!e&&i?this._cache.forEach((e=>{t+=e.itemsCount})):t=this._dataOptions.itemsCount(),t}virtualItemsCount(){var e=$F(this);e<0&&(e=this._dataOptions.pageIndex());var t=e*this._dataOptions.pageSize(),i=this._cache.length*this._dataOptions.pageSize(),n=Math.max(0,this._dataOptions.totalItemsCount()-i-t);return{begin:t,end:n}}reset(){this._loadingPageIndexes={},this._cache=[]}}var JF="infinite",QF="virtual",eH="scrolling.legacyMode",tH=e=>e.option("scrolling.mode")===QF||e._isVirtual,iH=e=>e.option("scrolling.mode")===JF&&!e._isVirtual;function nH(e,t,i){var n,r=[],a=[],l=[];function d(t){var i=t.element?t.$element():t,n=it.offset(i);return n?t.scrollTop()-(n.top-e.offset().top):e.offset().top}i=i||e;var u={on:function(e,t,i){e.on("scroll",i)},off:function(e,t,i){e.off("scroll",i)}};function c(e){var i="#document"===e.get(0).nodeName,n=e.get(0).nodeType===(0,s.Jj)().Node.ELEMENT_NODE,c=e.data("dxScrollable"),h=u;if(c||(c=i&&(0,o.Z)((0,s.Jj)())||n&&"auto"===e.css("overflowY")&&e,h=re.Z,c)){var p=function(e){return function(){var i=e.scrollTop()-d(e);i=i>0?i:0,t(i)}}(c);h.on(c,"scroll",p),a.push((function(e){var t=d(c),i=c.scrollTo?"scrollTo":"scrollTop";e-t>=0&&c[i](e+t)})),r.push(c),l.push((function(){h.off(c,"scroll",p)}))}}var h=e=>{var t;return(0,o.Z)(null!==(t=e.get(0).parentNode)&&void 0!==t?t:e.get(0).host)};for(n=i.parent();n.length;n=h(n))c(n);return{scrollTo:function(e){(0,E.S6)(a,(function(t,i){i(e)}))},dispose:function(){(0,E.S6)(l,(function(e,t){t()}))}}}var oH=P.Z.inherit(function(){var e={ctor:function(e,t,i){this._dataOptions=t,this.component=e,this._viewportSize=!1===e.option(eH)?15:0,this._viewportItemSize=20,this._viewportItemIndex=0,this._position=0,this._isScrollingBack=!1,this._contentSize=0,this._itemSizes={},this._sizeRatio=1,this._isVirtual=i,this.positionChanged=(0,Sc["default"])(),this._dataLoader=new XF(this,this._dataOptions)},getItemSizes:function(){return this._itemSizes},option:function(){return this.component.option.apply(this.component,arguments)},isVirtual:function(){return this._isVirtual},virtualItemsCount:function(){if(tH(this)){var e=this._dataOptions,t=e.totalItemsCount();if(!1===this.option(eH)&&-1!==t){var i=this.getViewportParams(),n=e.loadedOffset(),o=e.loadedItemCount(),r=Math.max(i.skip,n),a=Math.min(i.take,o),s=Math.max(t-(r+a),0);return{begin:r,end:s}}return this._dataLoader.virtualItemsCount.apply(this._dataLoader,arguments)}},getScrollingTimeout:function(){var e=this.option("scrolling.renderAsync"),t=0;if((0,l.$K)(e)){if(e){var i;t=null!==(i=this.option("scrolling.timeout"))&&void 0!==i?i:0}}else t=Math.min(this.option("scrolling.timeout")||0,this._dataOptions.changingDuration()),t<this.option("scrolling.renderingThreshold")&&(t=this.option("scrolling.minTimeout")||0);return t},setViewportPosition:function(e){var t=new ot.BH,i=this.getScrollingTimeout();return clearTimeout(this._scrollTimeoutID),i>0?this._scrollTimeoutID=setTimeout((()=>{this._setViewportPositionCore(e),t.resolve()}),i):(this._setViewportPositionCore(e),t.resolve()),t.promise()},getViewportPosition:function(){return this._position},getItemIndexByPosition:function(e,t,i){var n;e=null!==(n=e)&&void 0!==n?n:this._position;for(var o=this.getItemSize(),r=0,a=0,s=Object.keys(this._itemSizes).concat(-1),d=0;d<s.length&&r<e;d++){var u=parseInt(s[d]),c=(e-r)/o;if(u<0||a+c<u){a+=c,this._sizeRatio<1&&(0,l.$K)(t)&&(a=t+i/this._viewportItemSize);break}c=u-a,r+=c*o,a+=c;var h=this._itemSizes[u];r+=h,a+=r<e?1:(e-r+h)/h}return Math.round(50*a)/50},isScrollingBack:function(){return this._isScrollingBack},_setViewportPositionCore:function(e){var t=this._position||0;this._position=e,t!==this._position&&(this._isScrollingBack=this._position<t);var i=this.getItemIndexByPosition(),n=this.setViewportItemIndex(i);return this.positionChanged.fire(),n},setContentItemSizes:function(e){var t=this.virtualItemsCount();if(this._contentSize=e.reduce(((e,t)=>e+t),0),t){e.forEach(((e,i)=>{this._itemSizes[t.begin+i]=e}));var i=(t.begin+t.end+this.itemsCount())*this._viewportItemSize,n=FD.getContentHeightLimit(Me.Z);this._sizeRatio=i>n?n/i:1}},getItemSize:function(){return this._viewportItemSize*this._sizeRatio},getItemOffset:function(e,t){var i=this.virtualItemsCount(),n=e;if(!i)return 0;var o=0,r=this._dataOptions.totalItemsCount();return Object.keys(this._itemSizes).forEach((i=>{n&&(t?i>=r-e:i<e)&&(o+=this._itemSizes[i],n--)})),Math.floor(o+n*this._viewportItemSize*this._sizeRatio)},getContentOffset:function(e){var t="end"===e,i=this.virtualItemsCount();return i?this.getItemOffset(t?i.end:i.begin,t):0},getVirtualContentSize:function(){var e=this.virtualItemsCount();return e?this.getContentOffset("begin")+this.getContentOffset("end")+this._contentSize:0},getViewportItemIndex:function(){return this._viewportItemIndex},setViewportItemIndex:function(e){if(this._viewportItemIndex=e,!1!==this.option(eH))return this._dataLoader.viewportItemIndexChanged.apply(this._dataLoader,arguments)},viewportItemSize:function(e){return void 0!==e&&(this._viewportItemSize=e),this._viewportItemSize},viewportSize:function(e){return void 0!==e&&(this._viewportSize=e),this._viewportSize},viewportHeight:function(e,t){var i=null!==t&&void 0!==t?t:this._position,n=this.getItemIndexByPosition(i),o=this.getItemIndexByPosition(i+e,n,e);this.viewportSize(Math.ceil(o-n)),(0,l.$K)(t)||this._viewportItemIndex===n||this._setViewportPositionCore(i)},reset:function(e){this._dataLoader.reset(),e||(this._itemSizes={})},subscribeToWindowScrollEvents:function(e){this._windowScroll=this._windowScroll||nH(e,(e=>{this.viewportItemSize()&&this.setViewportPosition(e)}))},dispose:function(){clearTimeout(this._scrollTimeoutID),this._windowScroll&&this._windowScroll.dispose(),this._windowScroll=null},scrollTo:function(e){this._windowScroll&&this._windowScroll.scrollTo(e)},isVirtualMode:function(){return tH(this)},isAppendMode:function(){return iH(this)},getViewportParams:function(){var e,t=this.option("scrolling.mode")===QF,i=this._dataOptions.totalItemsCount(),n=this._dataOptions.hasKnownLastPage(),o=n&&this._viewportItemIndex>i?i:this._viewportItemIndex,r=this._viewportSize+o,a=this.option("scrolling.prerenderedRowChunkSize")||1,s=this.isScrollingBack(),l=null!==(e=this.option("scrolling.prerenderedRowCount"))&&void 0!==e?e:1,d=s?l:0,u=s?0:l,c=Math.floor(Math.max(0,o-d)/a)*a,h=Math.ceil((r+u-c)/a)*a;if(t){var p=Math.max(0,i-c);h=Math.min(h,p)}return{skip:c,take:h}},itemsCount:function(){var e=0;return e=this.option(eH)?this._dataLoader.itemsCount.apply(this._dataLoader,arguments):this._dataOptions.itemsCount(),e}};return["pageIndex","beginPageIndex","endPageIndex","pageSize","load","loadIfNeed","handleDataChanged","getDelayDeferred"].forEach((function(t){e[t]=function(){return this._dataLoader[t].apply(this._dataLoader,arguments)}})),e}()),rH="bottom-load-panel",aH="table-content",sH="group-space",lH="content",dH="dx-freespace-row",uH="dx-column-lines",cH="dx-virtual-row",hH="dx-row-inserted",pH="infinite",fH="virtual",gH=300,mH="scrolling.legacyMode",_H="paging.pageIndex",vH=function(e){return e.option("scrolling.mode")===fH},yH=function(e){return e.option("scrolling.mode")===pH},CH=function(e){return vH(e)||yH(e)},bH=function(e,t,i,n){for(var o=0;o<t+1;o++){var r=e[i?e.length-1-o:o];r&&!n(r,o===t,i)&&t++}return t},xH=function(e,t){return"data"===e.rowType&&!e.isNewRow||"group"===e.rowType&&t.isGroupItemCountable(e.data)},wH=function(e){return e.forEach((function(e,t){e.rowIndex=t})),e},TH=function(){var e=function(e){var t=e._virtualScrollController.beginPageIndex(-1);vH(e)&&(t<0||e.viewportSize()>=0&&e.getViewportItemIndex()>=0&&(t*e.pageSize()>e.getViewportItemIndex()||t*e.pageSize()+e.itemsCount()<e.getViewportItemIndex()+e.viewportSize())&&e._dataSource.isLoading()?e._isLoading||(e._isLoading=!0,e.loadingChanged.fire(!0)):e._isLoading&&(e._isLoading=!1,e.loadingChanged.fire(!1)))},t={init:function(){this.callBase.apply(this,arguments),this._items=[],this._totalCount=-1,this._isLoaded=!0,this._loadPageCount=1,this._virtualScrollController=new oH(this.component,this._getVirtualScrollDataOptions())},_getVirtualScrollDataOptions:function(){var t=this;return{pageSize:function(){return t.pageSize()},totalItemsCount:function(){return t.totalItemsCount()},hasKnownLastPage:function(){return t.hasKnownLastPage()},pageIndex:function(e){return t._dataSource.pageIndex(e)},isLoading:function(){return t._dataSource.isLoading()&&!t.isCustomLoading()},pageCount:function(){return t.pageCount()},load:function(){return t._dataSource.load()},updateLoading:function(){e(t)},itemsCount:function(){return t.itemsCount(!0)},items:function(){return t._dataSource.items()},viewportItems:function(e){return e&&(t._items=e),t._items},onChanged:function(e){t.changed.fire(e)},changingDuration:function(e){return t.isLoading()?gH:t._renderTime||0}}},_handleLoadingChanged:function(e){!1!==this.option(mH)?(vH(this)&&!this._isLoadingAll||(this._isLoading=e,this.callBase.apply(this,arguments)),this._startLoadTime=e?new Date:void 0):this.callBase.apply(this,arguments)},_handleLoadError:function(){!1!==this.option(mH)&&(this._isLoading=!1,this.loadingChanged.fire(!1)),this.callBase.apply(this,arguments)},_handleDataChanged:function(e){if(!1===this.option(mH))return this._items=this._dataSource.items().slice(),this._totalCount=this._dataSourceTotalCount(!0),void this.callBase.apply(this,arguments);var t=this.callBase.bind(this);this._virtualScrollController.handleDataChanged(t,e)},_customizeRemoteOperations:function(e,t){var i=!1===this.option(mH),n=this.option("scrolling.renderAsync");(0,l.$K)(n)||(n=this._renderTime>=this.option("scrolling.renderingThreshold")),!(vH(this)||yH(this)&&i)||t.reload||!t.skip&&!i||n||(e.delay=void 0),this.callBase.apply(this,arguments)},items:function(){return this._items},_dataSourceTotalCount:function(e){return!1===this.option(mH)&&vH(this)&&!e?this._totalCount:this.callBase()},itemsCount:function(e){return e||!1===this.option(mH)?this.callBase():this._virtualScrollController.itemsCount()},load:function(e){return!1===this.option(mH)||e?this.callBase(e):this._virtualScrollController.load()},isLoading:function(){return!1===this.option(mH)?this._dataSource.isLoading():this._isLoading},isLoaded:function(){return this._dataSource.isLoaded()&&this._isLoaded},resetPagesCache:function(e){e||this._virtualScrollController.reset(!0),this.callBase.apply(this,arguments)},_changeRowExpandCore:function(){var t=this.callBase.apply(this,arguments);return!1===this.option(mH)||(this.resetPagesCache(),e(this)),t},reload:function(){this._dataSource.pageIndex(this.pageIndex());var e=this._virtualScrollController;if(!1!==this.option(mH)&&e){var t=new ot.BH;return this.callBase.apply(this,arguments).done((function(i){var n=e.getDelayDeferred();n?n.done(t.resolve).fail(t.reject):t.resolve(i)})).fail(t.reject),t}return this.callBase.apply(this,arguments)},refresh:function(t,i){if(!1!==this.option(mH)){var n=t.storeLoadOptions,o=this._dataSource;i.reload?(this._virtualScrollController.reset(),o.items().length=0,this._isLoaded=!1,e(this),this._isLoaded=!0,yH(this)?(this.pageIndex(0),o.pageIndex(0),n.pageIndex=0,t.pageIndex=0,n.skip=0):(o.pageIndex(this.pageIndex()),o.paginate()&&(t.pageIndex=this.pageIndex(),n.skip=this.pageIndex()*this.pageSize()))):yH(this)&&n.skip&&this._totalCountCorrection<0&&(n.skip+=this._totalCountCorrection)}return this.callBase.apply(this,arguments)},dispose:function(){this._virtualScrollController.dispose(),this.callBase.apply(this,arguments)},loadPageCount:function(e){if(!(0,l.$K)(e))return this._loadPageCount;this._loadPageCount=e},_handleDataLoading:function(e){var t=this.loadPageCount(),i=this.pageSize(),n=!1===this.option(mH),o=e.storeLoadOptions,r=(0,l.$K)(o.take);e.loadPageCount=t,!e.isCustomLoading&&n&&r&&t>1&&i>0&&(o.take=t*i),this.callBase.apply(this,arguments)},_loadPageSize:function(){return this.callBase.apply(this,arguments)*this.loadPageCount()}};return["beginPageIndex","endPageIndex","pageIndex"].forEach((function(e){t[e]=function(){if(!1===this.option(mH)){var t=this._dataSource;return t.pageIndex.apply(t,arguments)}var i=this._virtualScrollController;return i[e].apply(i,arguments)}})),["virtualItemsCount","getContentOffset","getVirtualContentSize","setContentItemSizes","setViewportPosition","getViewportItemIndex","setViewportItemIndex","getItemIndexByPosition","viewportSize","viewportItemSize","getItemSize","getItemSizes","loadIfNeed"].forEach((function(e){t[e]=function(){var t=this._virtualScrollController;return t[e].apply(t,arguments)}})),t}(),SH=function(){var e=function(e,t){var i=e.toArray().map((e=>(0,o.Z)(e).parent("."+t).get(0))).filter((e=>e));i.length&&(e=(0,o.Z)(i));for(var n=t===dH?e.length-1:e.length,r=0;r<n;r++)e.eq(r).remove()};return{init:function(){var e,t=this.getController("data");this.callBase(),t.pageChanged.add((e=>{var i=this._scrollTop;this.scrollToPage(null!==e&&void 0!==e?e:t.pageIndex()),!1===this.option(mH)&&this._scrollTop===i&&t.updateViewport()})),t.dataSourceChanged.add((()=>{!this._scrollTop&&this._scrollToCurrentPageOnResize()})),null===(e=t.stateLoaded)||void 0===e||e.add((()=>{this._scrollToCurrentPageOnResize()})),this._scrollToCurrentPageOnResize()},_scrollToCurrentPageOnResize:function(){var e=this.getController("data");if(e.pageIndex()>0){var t=()=>{this.resizeCompleted.remove(t),this.scrollToPage(e.pageIndex())};this.resizeCompleted.add(t)}},scrollToPage:function(e){var t,i=this._dataController,n=i?i.pageSize():0;if(vH(this)||yH(this)){var o=i.getItemSize(),r=i.getItemSizes(),a=e*n;for(var s in t=a*o,r)s<a&&(t+=r[s]-o)}else t=0;this.scrollTo({y:t,x:this._scrollLeft})},renderDelayedTemplates:function(e){this._waitAsyncTemplates(e).done((()=>{this._updateContentPosition(!0)})),this.callBase.apply(this,arguments)},_renderCore:function(e){var t=new Date;this.callBase.apply(this,arguments);var i=this._dataController._dataSource;if(i&&e){var n=e.items?e.items.length:20,o=this._dataController.viewportSize()||20;FD.isVirtualRowRendering(this)&&n>0&&!1!==this.option(mH)?i._renderTime=(new Date-t)*o/n:i._renderTime=new Date-t}},_getRowElements:function(e){var t=this.callBase(e);return t&&t.not("."+cH)},_removeRowsElements:function(e,t,i){var n=this._getRowElements(e).toArray();n="append"===i?n.slice(0,t):n.slice(-t);var r=this.getController("errorHandling");n.map((e=>{var t=(0,o.Z)(e);r&&r.removeErrorRow(t.next()),t.remove()}))},_updateContent:function(t,i){var n,o=this._findContentElement(),r=i&&i.changeType,a=(0,ot.BH)(),s=o.children().first();return"append"===r||"prepend"===r?this._waitAsyncTemplates(i).done((()=>{var o=this._getBodies(t);1===o.length?this._getBodies(s)["append"===r?"append":"prepend"](o.children()):o["append"===r?"appendTo":"prependTo"](s),t.remove(),n=this._getFreeSpaceRowElements(s),e(n,dH),i.removeCount&&this._removeRowsElements(s,i.removeCount,r),this._restoreErrorRow(s),a.resolve()})).fail(a.reject):this.callBase.apply(this,arguments).done((()=>{"update"===r&&this._restoreErrorRow(s),a.resolve()})).fail(a.reject),a.promise().done((()=>{this._updateBottomLoading()}))},_addVirtualRow:function(e,t,i,n){if(n){var o=this._createEmptyRow(cH,t,n);o=this._wrapRowIfNeed(e,o),this._appendEmptyRow(e,o,i)}},_updateContentItemSizes:function(){var e=this._getRowHeights(),t=this._correctRowHeights(e);this._dataController.setContentItemSizes(t)},_updateViewportSize:function(e,t){(0,l.$K)(e)||(e=this._hasHeight?(0,n.zp)(this.element()):(0,n.zp)((0,s.Jj)())),this._dataController.viewportHeight(e,t)},_getRowHeights:function(){var e,t,i=null===(e=this.getController("editing"))||void 0===e||null===(t=e.isPopupEditMode)||void 0===t?void 0:t.call(e),n=this._getRowElements(this._tableElement).toArray();return i&&(n=n.filter((e=>!(0,o.Z)(e).hasClass(hH)))),n.map((e=>Pe(e).height))},_correctRowHeights:function(e){for(var t=this._dataController,i=t._dataSource,n=[],o=t.getVisibleRows(),r=0,a=!0,s=-1,d=0;d<e.length;d++){var u=o[d];(0,l.$K)(u)&&(!1===this.option(mH)?(s>=0&&s!==u.loadIndex&&(n.push(r),r=0),s=u.loadIndex):xH(u,i)&&(a?a=!1:(n.push(r),r=0)),r+=e[d])}return r>0&&n.push(r),n},_updateContentPosition:function(t){var i=this._dataController,n=this._rowHeight||20;if(i.viewportItemSize(n),vH(this)||FD.isVirtualRowRendering(this)){t||this._updateContentItemSizes();var r=i.getContentOffset("begin"),a=i.getContentOffset("end"),s=this.getTableElements(),l=s.children("tbody").children("."+cH);e(l,cH),s.each(((e,t)=>{var i=e>0,n=this._isFixedTableRendering;this._isFixedTableRendering=i,this._addVirtualRow((0,o.Z)(t),i,"top",r),this._addVirtualRow((0,o.Z)(t),i,"bottom",a),this._isFixedTableRendering=n}))}},_isTableLinesDisplaysCorrect:function(e){var t=e.find("."+uH).length>0;return t===this.option("showColumnLines")},_isColumnElementsEqual:function(e,t){var i=e.length===t.length;return i&&(0,E.S6)(e,(function(e,n){if(n.style.width!==t[e].style.width)return i=!1,i})),i},_getCellClasses:function(e){var t=[],i=e.cssClass,n="expand"===e.command;return i&&t.push(i),n&&t.push(this.addWidgetPrefix(sH)),t},_findBottomLoadPanel:function(e){var t=e||this.element(),i=t&&t.find("."+this.addWidgetPrefix(rH));if(i&&i.length)return i},_updateBottomLoading:function(){var e=vH(this),t=yH(this),i=!this._dataController.hasKnownLastPage()&&this._dataController.isLoaded()&&(e||t),n=this._findContentElement(),r=this._findBottomLoadPanel(n);i?r||(0,o.Z)("<div>").addClass(this.addWidgetPrefix(rH)).append(this._createComponent((0,o.Z)("<div>"),oe).$element()).appendTo(n):r&&r.remove()},_handleScroll:function(e){var t=!0===this.option(mH),i=0===e.scrollOffset.top,n=this._scrollTop!==e.scrollOffset.top;(n||e.forceUpdateScrollPosition)&&(this._hasHeight||!t&&i)&&this._rowHeight&&(this._scrollTop=e.scrollOffset.top,vH(this)&&!1===this.option(mH)&&(this._updateContentItemSizes(),this._updateViewportSize(null,this._scrollTop)),this._dataController.setViewportPosition(e.scrollOffset.top)),this.callBase.apply(this,arguments)},_needUpdateRowHeight:function(e){return this.callBase.apply(this,arguments)||e>0&&yH(this)&&!FD.isVirtualRowRendering(this)},_updateRowHeight:function(){if(this.callBase.apply(this,arguments),this._rowHeight){this._updateContentPosition();var e=this._hasHeight?(0,n.zp)(this.element()):(0,n.zp)((0,s.Jj)()),t=this._dataController;!1===this.option(mH)?(this._updateViewportSize(e),t.updateViewport()):t.viewportSize(Math.ceil(e/this._rowHeight))}},updateFreeSpaceRowHeight:function(){var e=this.callBase.apply(this,arguments);return e&&this._updateContentPosition(),e},setLoading:function(e,t){var i=this._dataController,n=i.pageIndex()>0&&i.isLoaded()&&!!this._findBottomLoadPanel();!1===this.option(mH)&&e&&i.isViewportChanging()||(n&&(e=!1),this.callBase.call(this,e,t))},_resizeCore:function(){var e=this,t=e.element();e.callBase(),e.component.$element()&&!e._windowScroll&&(0,M.al)(t)&&(e._windowScroll=nH(t,(function(t){!e._hasHeight&&e._rowHeight&&e._dataController.setViewportPosition(t)}),e.component.$element()),e.on("disposing",(function(){e._windowScroll.dispose()}))),!1!==this.option(mH)&&e.loadIfNeed()},loadIfNeed:function(){var e,t=this._dataController;null===t||void 0===t||null===(e=t.loadIfNeed)||void 0===e||e.call(t)},setColumnWidths:function(e){var t,i=this.getScrollable();this.callBase.apply(this,arguments),"virtual"===this.option("scrolling.mode")&&(t=i?(0,o.Z)(i.content()):this.element(),this.callBase(e,t.children("."+this.addWidgetPrefix(lH)).children(":not(."+this.addWidgetPrefix(aH)+")")))},_restoreErrorRow:function(){if(!1===this.option(mH)){var e=this.getController("errorHandling");null===e||void 0===e||e.removeErrorRow()}this.callBase.apply(this,arguments)},dispose:function(){clearTimeout(this._scrollTimeoutID),this.callBase()}}}(),IH={defaultOptions:function(){return{scrolling:{timeout:300,updateTimeout:300,minTimeout:0,renderingThreshold:100,removeInvisiblePages:!0,rowPageSize:5,prerenderedRowChunkSize:1,mode:"standard",preloadEnabled:!1,rowRenderingMode:"standard",loadTwoPagesOnStart:!1,legacyMode:!1,prerenderedRowCount:1}}},extenders:{dataSourceAdapter:TH,controllers:{data:function(){var e={_refreshDataSource:function(){var e=this.callBase.apply(this,arguments)||(new ot.BH).resolve().promise();return e.done(this.initVirtualRows.bind(this)),e},_loadDataSource:function(){if(this._rowsScrollController&&CH(this)){var e,{loadPageCount:t}=(0,l.$K)(this._loadViewportParams)?this.getLoadPageParams():{};t>=1&&(null===(e=this._dataSource)||void 0===e||e.loadPageCount(t))}return this.callBase.apply(this,arguments)},getRowPageSize:function(){var e=this.option("scrolling.rowPageSize"),t=this.pageSize();return t&&t<e?t:e},reload:function(){var e=this._rowsScrollController||this._dataSource,t=e&&e.getItemIndexByPosition(),i=this.callBase.apply(this,arguments);return i&&i.done((()=>{if(vH(this)||FD.isVirtualRowRendering(this)){var e=this.getRowIndexOffset(),i=Math.floor(t)-e,r=this.component,a=r.getScrollable&&r.getScrollable(),s=this.dataSource().operationTypes().sorting;if(a&&!s&&i>=0){var l=r.getRowElement(i),d=l&&l[0]&&(0,o.Z)(l[0]),u=d&&d.position().top,c=Me.Z.chrome&&Me.Z.version>=91,h=Me.Z.mozilla||c?1:0;u>h&&(u=Math.round(u+(0,n.zp)(d)*(t%1)),a.scrollTo({y:u}))}}}))},initVirtualRows:function(){var e=FD.isVirtualRowRendering(this);if(this._allItems=null,this._loadViewportParams=null,"virtual"!==this.option("scrolling.mode")&&!0!==e||!1===e||!1!==this.option(mH)&&!this.option("scrolling.rowPageSize"))return this._visibleItems=null,void(this._rowsScrollController=null);var t=!vH(this)&&this.pageIndex()>=this.pageCount()?this.pageCount()-1:this.pageIndex();this._rowPageIndex=Math.ceil(t*this.pageSize()/this.getRowPageSize()),this._visibleItems=!1===this.option(mH)?null:[],this._viewportChanging=!1,this._needUpdateViewportAfterLoading=!1,this._rowsScrollController||(this._rowsScrollController=new oH(this.component,this._getRowsScrollDataOptions(),!0),this._rowsScrollController.positionChanged.add((()=>{var e;if(!1===this.option(mH))return this._viewportChanging=!0,this.loadViewport(),void(this._viewportChanging=!1);null===(e=this._dataSource)||void 0===e||e.setViewportItemIndex(this._rowsScrollController.getViewportItemIndex())}))),!1===this.option(mH)&&this._updateLoadViewportParams(),this.isLoaded()&&!1!==this.option(mH)&&this._rowsScrollController.load()},isViewportChanging:function(){return this._viewportChanging},_getRowsScrollDataOptions:function(){var e=this,t=function(t){return xH(t,e._dataSource)};return{pageSize:function(){return e.getRowPageSize()},loadedOffset:function(){var t;return vH(e)&&(null===(t=e._dataSource)||void 0===t?void 0:t.lastLoadOptions().skip)||0},loadedItemCount:function(){return e._itemCount},totalItemsCount:function(){return CH(e)?e.totalItemsCount():!1===e.option(mH)?e._itemCount:e._items.filter(t).length},hasKnownLastPage:function(){return!1!==e.option(mH)||e.hasKnownLastPage()},pageIndex:function(t){return void 0!==t&&(e._rowPageIndex=t),e._rowPageIndex},isLoading:function(){return e.isLoading()},pageCount:function(){var e=Math.ceil(this.totalItemsCount()/this.pageSize());return e||1},load:function(){e._rowsScrollController.pageIndex()>=this.pageCount()&&(e._rowPageIndex=this.pageCount()-1,e._rowsScrollController.pageIndex(e._rowPageIndex)),!this.items().length&&this.totalItemsCount()||e._rowsScrollController.handleDataChanged((t=>{t=t||{},t.changeType=t.changeType||"refresh",t.items=t.items||e._visibleItems,e._visibleItems.forEach(((e,t)=>{e.rowIndex=t})),e._fireChanged(t)}))},updateLoading:function(){},itemsCount:function(){return this.items(!0).length},correctCount:function(e,i,n){return bH(e,i,n,((e,i,n)=>e.isNewRow?i&&!n:i&&n?!e.isNewRow:t(e)))},items:function(i){var n=e._items;if(e.option(mH)){var o=e.dataSource(),r=null===o||void 0===o?void 0:o.virtualItemsCount(),a=r?r.begin:0,s=e.getRowPageSize(),l=e._rowPageIndex*s-a,d=s;if(l<0)return[];l&&(l=this.correctCount(n,l),n=n.slice(l)),d&&(d=this.correctCount(n,d),n=n.slice(0,d))}return i?n.filter(t):n},viewportItems:function(t){return t&&!1!==e.option(mH)&&(e._visibleItems=t),e._visibleItems},onChanged:function(){},changingDuration:function(t){var i=e.dataSource();return null!==i&&void 0!==i&&i.isLoading()&&!1!==e.option(mH)?gH:(null===i||void 0===i?void 0:i._renderTime)||0}}},_updateItemsCore:function(e){var t=this.getRowIndexDelta();if(this.callBase.apply(this,arguments),!1===this.option(mH)&&FD.isVirtualRowRendering(this))"update"===e.changeType&&0===e.rowIndices.length&&e.cancelEmptyChanges&&(e.cancel=!0);else{var i=this._rowsScrollController;if(i){var n=this._visibleItems,o="refresh"===e.changeType||e.isLiveUpdate;if("append"===e.changeType&&e.items&&!e.items.length)return;o||"append"===e.changeType||"prepend"===e.changeType?(e.cancel=!0,o&&i.reset(!0),i.load()):("update"===e.changeType?e.rowIndices.forEach(((t,i)=>{var o=e.changeTypes[i],r=e.items[i];"update"===o?n[t]=r:"insert"===o?n.splice(t,0,r):"remove"===o&&n.splice(t,1)})):(n.forEach(((e,i)=>{n[i]=this._items[i+t]||n[i]})),e.items=n),wH(n))}}},_updateLoadViewportParams:function(){var e=this._rowsScrollController.getViewportParams(),t=this.pageSize();if(e&&!CH(this)&&t>0){var i=this.pageIndex()*t;e.skip+=i}this._loadViewportParams=e},_processItems:function(e){var t=this.callBase.apply(this,arguments);if(!1===this.option(mH)){var i,n,o,r,a=this._dataSource,s=null!==(i=null===a||void 0===a?void 0:a.lastLoadOptions().skip)&&void 0!==i?i:0,d=!1;t.forEach((e=>{var t=e.rowType,i=xH(e,a),u="group"===t&&(n||i||"group"!==o&&s>0),c="data"===t&&i&&(n||"group"!==o);if(!e.isNewRow&&(0,l.$K)(n)){var h=r&&!d;!u&&!c||h||s++}(u||c)&&(d=!0),e.loadIndex=s,n=i,o=t,r=e.isNewRow}))}return t},_afterProcessItems:function(e){if(this._itemCount=e.filter((e=>xH(e,this._dataSource))).length,(0,l.$K)(this._loadViewportParams)){this._updateLoadViewportParams();var t=e;if(this._allItems=e,e.length){var{skipForCurrentPage:i}=this.getLoadPageParams(!0),n=e[0].loadIndex+i,o=this._loadViewportParams.take;t=e.filter((e=>{var t=e.isNewRow&&e.loadIndex>=n-1,i=e.isNewRow&&e.loadIndex===n&&0===o,r=e.loadIndex>=n||t,a=e.loadIndex<n+o||i;return r&&a}))}return t}return this.callBase.apply(this,arguments)},_applyChange:function(e){var t=this,i=e.items,n=e.changeType,o=e.removeCount;if(o){var r="prepend"===n;o=bH(t._items,o,r,(function(e,i){return"data"===e.rowType&&!e.isNewRow||"group"===e.rowType&&(t._dataSource.isGroupItemCountable(e.data)||i)})),e.removeCount=o}switch(n){case"prepend":t._items.unshift.apply(t._items,i),o&&t._items.splice(-o);break;case"append":t._items.push.apply(t._items,i),o&&t._items.splice(0,o);break;default:t.callBase(e)}},items:function(e){return e?this._allItems||this._items:this._visibleItems||this._items},getRowIndexDelta:function(){var e=0;if(this.option(mH)){var t=this._visibleItems;t&&t[0]&&(e=this._items.indexOf(t[0]))}return e<0?0:e},getRowIndexOffset:function(e){var t=0,i=this.dataSource(),n=this._rowsScrollController,o=!1===this.option(mH),r=CH(this);if(n&&!e)if(o&&(0,l.$K)(this._loadViewportParams)){var{skipForCurrentPage:a,pageIndex:s}=this.getLoadPageParams(!0),d=this.items(!0);if(t=r?s*this.pageSize():0,d.length){var u=d[0].loadIndex;t+=d.filter((e=>e.loadIndex<u+a)).length}}else t=n.beginPageIndex()*n.pageSize();else if(r&&o&&i){var c;t=null!==(c=i.lastLoadOptions().skip)&&void 0!==c?c:0}else vH(this)&&i&&(t=i.beginPageIndex()*i.pageSize());return t},viewportSize:function(){var e=this._rowsScrollController,t=this._dataSource,i=null===e||void 0===e?void 0:e.viewportSize.apply(e,arguments);return!1===this.option(mH)?i:null===t||void 0===t?void 0:t.viewportSize.apply(t,arguments)},viewportHeight:function(e,t){var i;null===(i=this._rowsScrollController)||void 0===i||i.viewportHeight(e,t)},viewportItemSize:function(){var e=this._rowsScrollController,t=this._dataSource,i=null===e||void 0===e?void 0:e.viewportItemSize.apply(e,arguments);return!1===this.option(mH)?i:null===t||void 0===t?void 0:t.viewportItemSize.apply(t,arguments)},setViewportPosition:function(){var e=this._rowsScrollController,t=this._dataSource;this._isPaging=!1,e?e.setViewportPosition.apply(e,arguments):null===t||void 0===t||t.setViewportPosition.apply(t,arguments)},setContentItemSizes:function(e){var t=this._rowsScrollController,i=this._dataSource,n=null===t||void 0===t?void 0:t.setContentItemSizes(e);return!1===this.option(mH)?n:null===i||void 0===i?void 0:i.setContentItemSizes(e)},getPreloadedRowCount:function(){var e=this.option("scrolling.preloadedRowCount"),t=this.option("scrolling.preloadEnabled");if((0,l.$K)(e))return e;var i=this.viewportSize();return t?2*i:i},getLoadPageParams:function(e){var t,i,n=this.pageSize(),o=this._loadViewportParams,r=null===(t=this._dataSource)||void 0===t?void 0:t.lastLoadOptions(),a=(null===r||void 0===r?void 0:r.pageIndex)||0,s=(null===r||void 0===r?void 0:r.take)||0,l=this._rowsScrollController.isScrollingBack(),d=l?this.getPreloadedRowCount():0,u=l?0:this.getPreloadedRowCount(),c=(null===(i=this._dataSource)||void 0===i?void 0:i.totalCountCorrection())||0,h=Math.max(0,o.skip-d),p=e?a:Math.floor(n?h/n:0),f=p*n,g=o.skip-f,m=o.take+g+u-c,_=e?s:m,v=Math.ceil(n?_/n:0);return{pageIndex:p,loadPageCount:Math.max(1,v),skipForCurrentPage:Math.max(0,g)}},_updateVisiblePageIndex:function(e){if(this._rowsScrollController){if((0,l.$K)(e))return this._silentOption(_H,e),void this.pageChanged.fire();var t=this._rowsScrollController.getViewportItemIndex(),i=Math.floor(t/this.pageSize());this.pageIndex()!==i&&(this._silentOption(_H,i),this.updateItems({changeType:"pageIndex"}))}},_getChangedLoadParams:function(){var e=this.getLoadPageParams(!0),{pageIndex:t,loadPageCount:i}=this.getLoadPageParams(),n=this._pageIndexIsValid(t),o=null;return this._isLoading||!n||t===e.pageIndex&&i===e.loadPageCount||(o={pageIndex:t,loadPageCount:i}),o},_pageIndexIsValid:function(e){var t=!0;return(yH(this)&&this.hasKnownLastPage()||vH(this))&&(t=e*this.pageSize()<this.totalItemsCount()),t},_loadItems:function(e,t){var i,n,o=CH(this),r=this._dataSource,a=this._getChangedLoadParams(),s=null!==(i=null===r||void 0===r?void 0:r.loadPageCount())&&void 0!==i?i:0,l=this.pageSize()*s,d=null!==(n=null===r||void 0===r?void 0:r.pageIndex())&&void 0!==n?n:0,u=(null===a||void 0===a?void 0:a.pageIndex)===d,c=yH(this)&&this.totalItemsCount()<l,h="repaint"===this.option("editing.refreshMode"),p=(null===a||void 0===a?void 0:a.pageIndex)>d,f=!1;if(!r||o&&e&&(h&&t||p||u&&c))return f;if(o&&this._isLoading&&(this._needUpdateViewportAfterLoading=!0),o&&a){f=!0,r.pageIndex(a.pageIndex),r.loadPageCount(a.loadPageCount),this._repaintChangesOnly=!0,this._needUpdateDimensions=!0;var g=this._viewportChanging;this.load().always((()=>{this._repaintChangesOnly=void 0,this._needUpdateDimensions=void 0})).done((()=>{var e=this.pageCount()>0&&this.pageIndex()===this.pageCount()-1;(g||e)&&this._updateVisiblePageIndex(),this._needUpdateViewportAfterLoading&&(this._needUpdateViewportAfterLoading=!1,this.loadViewport({checkLoadedParamsOnly:!0}))}))}return f},loadViewport:function(e){var{checkLoadedParamsOnly:t,checkLoading:i,viewportIsNotFilled:n}=null!==e&&void 0!==e?e:{},o=CH(this);if(o||FD.isVirtualRowRendering(this)){this._updateLoadViewportParams();var r=this._loadItems(i,!n);r||this._isLoading&&i||t||this.updateItems({repaintChangesOnly:!0,needUpdateDimensions:!0,useProcessedItemsCache:!0,cancelEmptyChanges:!0})}},updateViewport:function(){var e,t,i=this.viewportSize(),n=this.items().length,o=i>n,r=null!==(e=null===(t=this._loadViewportParams)||void 0===t?void 0:t.take)&&void 0!==e?e:0,a=this._rowsScrollController,s=null===a||void 0===a?void 0:a.getViewportParams().take;(o||r<s)&&!this._isPaging&&n&&this.loadViewport({checkLoading:!0,viewportIsNotFilled:o})},loadIfNeed:function(){if(!1!==this.option(mH)){var e=this._rowsScrollController;e&&e.loadIfNeed();var t=this._dataSource;return t&&t.loadIfNeed()}},getItemSize:function(){var e=this._rowsScrollController;if(e)return e.getItemSize.apply(e,arguments);var t=this._dataSource;return t&&t.getItemSize.apply(t,arguments)},getItemSizes:function(){var e=this._rowsScrollController;if(e)return e.getItemSizes.apply(e,arguments);var t=this._dataSource;return t&&t.getItemSizes.apply(t,arguments)},getContentOffset:function(){var e=this._rowsScrollController;if(e)return e.getContentOffset.apply(e,arguments);var t=this._dataSource;return t&&t.getContentOffset.apply(t,arguments)},refresh:function(e){var t=this._dataSource;return t&&e&&e.load&&yH(this)&&t.resetCurrentTotalCount(),this.callBase.apply(this,arguments)},dispose:function(){var e=this._rowsScrollController;e&&e.dispose(),this.callBase.apply(this,arguments)},topItemIndex:function(){var e;return null===(e=this._loadViewportParams)||void 0===e?void 0:e.skip},bottomItemIndex:function(){var e=this._loadViewportParams;return e&&e.skip+e.take},virtualItemsCount:function(){var e=this._rowsScrollController;if(e)return e.virtualItemsCount.apply(e,arguments);var t=this._dataSource;return null===t||void 0===t?void 0:t.virtualItemsCount.apply(t,arguments)},pageIndex:function(e){var t,i=CH(this),n=this._rowsScrollController;if(!1===this.option(mH)&&i&&n&&void 0===e)return null!==(t=this.option(_H))&&void 0!==t?t:0;return this.callBase.apply(this,arguments)},_fireChanged:function(e){this.callBase.apply(this,arguments);var{operationTypes:t}=e;if(!1===this.option(mH)&&CH(this)&&t){var{fullReload:i,pageIndex:n}=t;e.isDataChanged&&!i&&n&&this._updateVisiblePageIndex(this._dataSource.pageIndex())}},_getPagingOptionValue:function(e){var t=this.callBase.apply(this,arguments);return!1===this.option(mH)&&CH(this)&&(t=this[e]()),t},isEmpty:function(){return!1===this.option(mH)?!this.items(!0).length:this.callBase(this,arguments)},isLastPageLoaded:function(){var e=!1;if(!1===this.option(mH)&&CH(this)){var{pageIndex:t,loadPageCount:i}=this.getLoadPageParams(!0),n=this.pageCount();e=t+i>=n}else e=this.callBase.apply(this,arguments);return e},reset:function(){this._itemCount=0,this._allItems=null,this.callBase.apply(this,arguments)},_applyFilter:function(){var e;null===(e=this._dataSource)||void 0===e||e.loadPageCount(1),this.callBase.apply(this,arguments)}};return FD.proxyMethod(e,"getVirtualContentSize"),FD.proxyMethod(e,"setViewportItemIndex"),e}(),resizing:{_updateMasterDataGridCore:function(e){return(0,ot.gx)(this.callBase.apply(this,arguments)).done((t=>{var i=vH(e)&&!1===e.option(mH);if(!t&&i){var n=e.getScrollable();n&&e.updateDimensions()}}))},resize:function(){var e,t=this,i=t.callBase;if(vH(t)||FD.isVirtualRowRendering(t)){clearTimeout(t._resizeTimeout);var n=new Date-t._lastTime,o=t.option("scrolling.updateTimeout");t._lastTime&&n<o?(e=new ot.BH,t._resizeTimeout=setTimeout((function(){i.apply(t).done(e.resolve).fail(e.reject),t._lastTime=new Date}),o),t._lastTime=new Date):(e=i.apply(t),t._dataController.isLoaded()&&(t._lastTime=new Date))}else e=i.apply(t);return e},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._resizeTimeout)}}},views:{rowsView:SH}}},EH=IH.defaultOptions,DH=IH.extenders.controllers.data,kH=IH.extenders.dataSourceAdapter;IH.extenders.controllers.data=(0,a.l)({},DH,{_loadOnOptionChange:function(){var e=this._dataSource&&this._dataSource._virtualScrollController;e&&e.reset(),this.callBase()}}),IH.extenders.dataSourceAdapter=(0,a.l)({},kH,{changeRowExpand:function(){return this.callBase.apply(this,arguments).done((()=>{var e=this.getViewportItemIndex();e>=0&&this.setViewportItemIndex(e)}))}}),zO.registerModule("virtualScrolling",(0,a.l)({},IH,{defaultOptions:function(){return(0,a.l)(!0,EH(),{scrolling:{mode:"virtual"}})}})),kP.extend(IH.extenders.dataSourceAdapter);var OH=.9,AH=(e,t)=>{var i,r=(0,o.Z)((0,s.Jj)()),{top:a}=e.offset();if((0,l.kE)(t)){if(t<a)return a-t;i=(0,n.fA)(r)-t+r.scrollTop()}else{var d=a-r.scrollTop(),u=(0,n.fA)(r)-d-(0,n.zp)(e);i=Math.max(d,u)}return i*OH},PH="dx-context-menu-content-delimiter",MH="dx-submenu";class RH extends OO{_getDefaultOptions(){return(0,a.l)(super._getDefaultOptions(),{orientation:"horizontal",tabIndex:null,onHoverStart:v.ZT})}_initDataAdapter(){this._dataAdapter=this.option("_dataAdapter"),this._dataAdapter||super._initDataAdapter()}_renderContentImpl(){this._renderContextMenuOverlay(),super._renderContentImpl();var e=this._dataAdapter.getNodeByKey(this.option("_parentKey"));e&&this._renderItems(this._getChildNodes(e)),this._renderDelimiter()}_renderDelimiter(){this.$contentDelimiter=(0,o.Z)("<div>").appendTo(this._itemContainer()).addClass(PH)}_getOverlayOptions(){return(0,a.l)(super._getOverlayOptions(),{onPositioned:this._overlayPositionedActionHandler.bind(this)})}_overlayPositionedActionHandler(e){this._showDelimiter(e)}_hoverEndHandler(e){super._hoverEndHandler(e),this._toggleFocusClass(!1,e.currentTarget)}_isMenuHorizontal(){return"horizontal"===this.option("orientation")}_hoverStartHandler(e){var t=this.option("onHoverStart");t(e),super._hoverStartHandler(e),this._toggleFocusClass(!0,e.currentTarget)}_drawSubmenu(e){this._actions.onShowing({rootItem:(0,se.u)(e),submenu:this}),super._drawSubmenu(e),this._actions.onShown({rootItem:(0,se.u)(e),submenu:this})}_hideSubmenu(e){this._actions.onHiding({cancel:!0,rootItem:(0,se.u)(e),submenu:this}),super._hideSubmenu(e),this._actions.onHidden({rootItem:(0,se.u)(e),submenu:this})}_showDelimiter(e){if(this.$contentDelimiter){var t=this._itemContainer().children(".".concat(MH)).eq(0),i=this.option("position").of,o={of:t},r=e.position,a=r.v.location,s=r.h.location,l=i.offset(),d=Math.round(l.left),u=Math.round(l.top),c=(0,n.dz)(i),h=(0,n.Cr)(i),p=(0,n.dz)(t),f=(0,n.Cr)(t);this.$contentDelimiter.css("display","block"),(0,n.cl)(this.$contentDelimiter,this._isMenuHorizontal()?c<p?c-2:p:2),(0,n.QQ)(this.$contentDelimiter,this._isMenuHorizontal()?2:h<f?h-2:f),this._isMenuHorizontal()?a>u?Math.round(s)===d?(o.offset="1 -1",o.at=o.my="left top"):(o.offset="-1 -1",o.at=o.my="right top"):((0,n.QQ)(this.$contentDelimiter,5),Math.round(s)===d?(o.offset="1 4",o.at=o.my="left bottom"):(o.offset="-1 2",o.at=o.my="right bottom")):s>d?Math.round(a)===u?(o.offset="-1 1",o.at=o.my="left top"):(o.offset="-1 -1",o.at=o.my="left bottom"):Math.round(a)===u?(o.offset="1 1",o.at=o.my="right top"):(o.offset="1 -1",o.at=o.my="right bottom"),it.setup(this.$contentDelimiter,o)}}_getContextMenuPosition(){return this.option("position")}isOverlayVisible(){return this._overlay.option("visible")}getOverlayContent(){return this._overlay.$content()}}var BH=RH,VH="dx-menu",FH=VH+"-vertical",HH=VH+"-horizontal",LH=VH+"-item",NH=VH+"-items-container",ZH=LH+"-expanded",$H="dx-context-menu",WH=$H+"-container-border",KH="dx-context-menu-content-delimiter",zH="dx-submenu",jH="dx-state-disabled",UH="dx-state-hover",GH="dx-state-active",qH=VH+"-adaptive-mode",YH=VH+"-hamburger-button",XH=qH+"-overlay-wrapper",JH="up",QH="down",eL="left",tL="right",iL="showSubmenu",nL="nextItem",oL="prevItem",rL={show:50,hide:300},aL=["onSubmenuShowing","onSubmenuShown","onSubmenuHiding","onSubmenuHidden","onItemContextMenu","onItemClick","onSelectionChanged","onItemRendered"];class sL extends oO{_getDefaultOptions(){return(0,a.l)(super._getDefaultOptions(),{orientation:"horizontal",submenuDirection:"auto",showFirstSubmenuMode:{name:"onClick",delay:{show:50,hide:300}},hideSubmenuOnMouseLeave:!1,onSubmenuShowing:null,onSubmenuShown:null,onSubmenuHiding:null,onSubmenuHidden:null,adaptivityEnabled:!1})}_setOptionsByReference(){super._setOptionsByReference(),(0,a.l)(this._optionsByReference,{animation:!0,selectedItem:!0})}_itemElements(){var e=super._itemElements(),t=this._submenuItemElements();return e.add(t)}_submenuItemElements(){var e=[],t=".".concat(LH),i=this._submenus.length&&this._submenus[0];return i&&i.itemsContainer()&&(e=i.itemsContainer().find(t)),e}_focusTarget(){return this.$element()}_isMenuHorizontal(){return"horizontal"===this.option("orientation")}_moveFocus(e){var t,i,n,o,r=this._getAvailableItems(),a=this._isMenuHorizontal(),s=this._getActiveItem(!0);switch(e){case JH:i=a?iL:this._getItemsNavigationOperation(oL),t=a?s:r,n=this._getKeyboardNavigationAction(i,t),o=n();break;case QH:i=a?iL:this._getItemsNavigationOperation(nL),t=a?s:r,n=this._getKeyboardNavigationAction(i,t),o=n();break;case tL:i=a?this._getItemsNavigationOperation(nL):iL,t=a?r:s,n=this._getKeyboardNavigationAction(i,t),o=n();break;case eL:i=a?this._getItemsNavigationOperation(oL):iL,t=a?r:s,n=this._getKeyboardNavigationAction(i,t),o=n();break;default:return super._moveFocus(e)}o&&0!==o.length&&this.option("focusedElement",(0,se.u)(o))}_getItemsNavigationOperation(e){var t=e;return this.option("rtlEnabled")&&(t=e===oL?nL:oL),t}_getKeyboardNavigationAction(e,t){var i=v.ZT;switch(e){case iL:t.hasClass(jH)||(i=this._showSubmenu.bind(this,t));break;case nL:i=this._nextItem.bind(this,t);break;case oL:i=this._prevItem.bind(this,t)}return i}_clean(){super._clean(),this.option("templatesRenderAsynchronously")&&clearTimeout(this._resizeEventTimer)}_visibilityChanged(e){e&&(this._menuItemsWidth||this._updateItemsWidthCache(),this._dimensionChanged())}_isAdaptivityEnabled(){return this.option("adaptivityEnabled")&&"horizontal"===this.option("orientation")}_updateItemsWidthCache(){var e=this.$element().find("ul").first().children("li").children(".".concat(LH));this._menuItemsWidth=this._getSummaryItemsWidth(e,!0)}_dimensionChanged(){if(this._isAdaptivityEnabled()){var e=(0,n.Y_)(this.$element());this._toggleAdaptiveMode(this._menuItemsWidth>e)}}_init(){super._init(),this._submenus=[]}_initActions(){this._actions={},(0,E.S6)(aL,((e,t)=>{this._actions[t]=this._createActionByOption(t)}))}_initMarkup(){this._visibleSubmenu=null,this.$element().addClass(VH),super._initMarkup(),this._addCustomCssClass(this.$element()),this.setAria("role","menubar")}_render(){super._render(),this._initAdaptivity()}_renderHamburgerButton(){return this._hamburger=new cd((0,o.Z)("<div>").addClass(YH),{icon:"menu",activeStateEnabled:!1,onClick:this._toggleTreeView.bind(this)}),this._hamburger.$element()}_toggleTreeView(e){(0,l.PO)(e)&&(e=!this._overlay.option("visible")),this._overlay.option("visible",e),this._toggleHamburgerActiveState(e)}_toggleHamburgerActiveState(e){this._hamburger&&this._hamburger.$element().toggleClass(GH,e)}_toggleAdaptiveMode(e){var t=this.$element().find(".".concat(HH)),i=this.$element().find(".".concat(qH));e?this._hideVisibleSubmenu():(this._treeView&&this._treeView.collapseAll(),this._overlay&&this._toggleTreeView(e)),t.toggle(!e),i.toggle(e)}_removeAdaptivity(){this._$adaptiveContainer&&(this._toggleAdaptiveMode(!1),this._$adaptiveContainer.remove(),this._$adaptiveContainer=null,this._treeView=null,this._hamburger=null,this._overlay=null)}_treeviewItemClickHandler(e){this._actions.onItemClick(e),e.node.children.length||this._toggleTreeView(!1)}_getAdaptiveOverlayOptions(){var e=this.option("rtlEnabled"),t=e?"right":"left";return{_ignoreFunctionValueDeprecation:!0,maxHeight:()=>AH(this.$element()),deferRendering:!1,shading:!1,animation:!1,hideOnParentScroll:!0,onHidden:()=>{this._toggleHamburgerActiveState(!1)},height:"auto",hideOnOutsideClick:e=>!(0,o.Z)(e.target).closest(".".concat(YH)).length,position:{collision:"flipfit",at:"bottom "+t,my:"top "+t,of:this._hamburger.$element()}}}_getTreeViewOptions(){var e={};return(0,E.S6)(["rtlEnabled","width","accessKey","activeStateEnabled","animation","dataSource","disabled","displayExpr","displayExpr","focusStateEnabled","hint","hoverStateEnabled","itemsExpr","items","itemTemplate","selectedExpr","selectionMode","tabIndex","visible"],((t,i)=>{e[i]=this.option(i)})),(0,E.S6)(["onItemContextMenu","onSelectionChanged","onItemRendered"],((t,i)=>{e[i]=e=>{this._actions[i](e)}})),(0,a.l)(e,{dataSource:this.getDataSource(),animationEnabled:!!this.option("animation"),onItemClick:this._treeviewItemClickHandler.bind(this),onItemExpanded:e=>{this._overlay.repaint(),this._actions.onSubmenuShown(e)},onItemCollapsed:e=>{this._overlay.repaint(),this._actions.onSubmenuHidden(e)},selectNodesRecursive:!1,selectByClick:this.option("selectByClick"),expandEvent:"click"})}_initAdaptivity(){if(this._isAdaptivityEnabled()){this._$adaptiveContainer=(0,o.Z)("<div>").addClass(qH);var e=this._renderHamburgerButton();this._treeView=this._createComponent((0,o.Z)("<div>"),VR,this._getTreeViewOptions()),this._overlay=this._createComponent((0,o.Z)("<div>"),ki,this._getAdaptiveOverlayOptions()),this._overlay.$content().append(this._treeView.$element()).addClass(qH).addClass(this.option("cssClass")),this._overlay.$wrapper().addClass(XH),this._$adaptiveContainer.append(e),this._$adaptiveContainer.append(this._overlay.$element()),this.$element().append(this._$adaptiveContainer),this._updateItemsWidthCache(),this._dimensionChanged()}}_getDelay(e){var t=this.option("showFirstSubmenuMode").delay;return(0,l.$K)(t)?(0,l.Kn)(t)?t[e]:t:rL[e]}_keyboardHandler(e){return super._keyboardHandler(e,!!this._visibleSubmenu)}_renderContainer(){var e=(0,o.Z)("<div>");return e.appendTo(this.$element()).addClass(this._isMenuHorizontal()?HH:FH),super._renderContainer(e)}_renderSubmenuItems(e,t){var i=this._createSubmenu(e,t);return this._submenus.push(i),this._renderBorderElement(t),i}_getKeyboardListeners(){return super._getKeyboardListeners().concat(this._visibleSubmenu)}_createSubmenu(e,t){var i=(0,o.Z)("<div>").addClass($H).appendTo(t),n=this._getChildNodes(e),r=this._createComponent(i,BH,(0,a.l)(this._getSubmenuOptions(),{_dataAdapter:this._dataAdapter,_parentKey:e.internalFields.key,items:n,onHoverStart:this._clearTimeouts.bind(this),position:this.getSubmenuPosition(t)}));return this._attachSubmenuHandlers(t,r),r}_getSubmenuOptions(){var e=(0,o.Z)("<div>"),t=this._isMenuHorizontal();return{itemTemplate:this.option("itemTemplate"),target:e,orientation:this.option("orientation"),selectionMode:this.option("selectionMode"),cssClass:this.option("cssClass"),selectByClick:this.option("selectByClick"),hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),focusStateEnabled:this.option("focusStateEnabled"),animation:this.option("animation"),showSubmenuMode:this.option("showSubmenuMode"),displayExpr:this.option("displayExpr"),disabledExpr:this.option("disabledExpr"),selectedExpr:this.option("selectedExpr"),itemsExpr:this.option("itemsExpr"),onFocusedItemChanged:e=>{e.component.option("visible")&&this.option("focusedElement",e.component.option("focusedElement"))},onSelectionChanged:this._nestedItemOnSelectionChangedHandler.bind(this),onItemClick:this._nestedItemOnItemClickHandler.bind(this),onItemRendered:this._nestedItemOnItemRenderedHandler.bind(this),onLeftFirstItem:t?null:this._moveMainMenuFocus.bind(this,oL),onLeftLastItem:t?null:this._moveMainMenuFocus.bind(this,nL),onCloseRootSubmenu:this._moveMainMenuFocus.bind(this,t?oL:null),onExpandLastSubmenu:t?this._moveMainMenuFocus.bind(this,nL):null}}_getShowFirstSubmenuMode(){if(!this._isDesktopDevice())return"onClick";var e=this.option("showFirstSubmenuMode");return(0,l.Kn)(e)?e.name:e}_moveMainMenuFocus(e){var t=this._getAvailableItems(),i=t.length,n=t.filter(".".concat(ZH)).eq(0),o=t.index(n);this._hideSubmenu(this._visibleSubmenu),o+=e===oL?-1:1,o>=i?o=0:o<0&&(o=i-1);var r=t.eq(o);this.option("focusedElement",(0,se.u)(r))}_nestedItemOnSelectionChangedHandler(e){var t=e.addedItems.length&&e.addedItems[0],i=BH.getInstance(e.element),n=this._actions.onSelectionChanged;n(e),t&&this._clearSelectionInSubmenus(t[0],i),this._clearRootSelection(),this._setOptionWithoutOptionChange("selectedItem",t)}_clearSelectionInSubmenus(e,t){var i=!arguments.length;(0,E.S6)(this._submenus,((e,n)=>{var o=n._itemContainer(),r=!o.is(t&&t._itemContainer()),a=o.find(".".concat(this._selectedItemClass()));if(r&&a.length||i){a.removeClass(this._selectedItemClass());var s=this._getItemData(a);s&&(s.selected=!1),n._clearSelectedItems()}}))}_clearRootSelection(){var e=this.$element().find(".".concat(NH)).first().children().children().filter(".".concat(this._selectedItemClass()));if(e.length){var t=this._getItemData(e);t.selected=!1,e.removeClass(this._selectedItemClass())}}_nestedItemOnItemClickHandler(e){this._actions.onItemClick(e)}_nestedItemOnItemRenderedHandler(e){this._actions.onItemRendered(e)}_attachSubmenuHandlers(e,t){var i=t.getOverlayContent(),n=i.find(".".concat(zH)),o=(0,R.V4)(z.u,this.NAME+"_submenu");t.option({onShowing:this._submenuOnShowingHandler.bind(this,e,t),onShown:this._submenuOnShownHandler.bind(this,e,t),onHiding:this._submenuOnHidingHandler.bind(this,e,t),onHidden:this._submenuOnHiddenHandler.bind(this,e,t)}),(0,E.S6)(n,((t,i)=>{re.Z.off(i,o),re.Z.on(i,o,null,this._submenuMouseLeaveHandler.bind(this,e))}))}_submenuOnShowingHandler(e,t){var i=e.children(".".concat(WH));this._actions.onSubmenuShowing({rootItem:(0,se.u)(e),submenu:t}),i.show(),e.addClass(ZH)}_submenuOnShownHandler(e,t){this._actions.onSubmenuShown({rootItem:(0,se.u)(e),submenu:t})}_submenuOnHidingHandler(e,t,i){var n=e.children(".".concat(WH)),o=i;o.rootItem=(0,se.u)(e),o.submenu=t,this._actions.onSubmenuHiding(o),i=o,i.cancel||(this._visibleSubmenu===t&&(this._visibleSubmenu=null),n.hide(),e.removeClass(ZH))}_submenuOnHiddenHandler(e,t){this._actions.onSubmenuHidden({rootItem:(0,se.u)(e),submenu:t})}_submenuMouseLeaveHandler(e,t){var i=(0,o.Z)(t.relatedTarget).parents(".".concat($H))[0],n=this._getSubmenuByRootElement(e).getOverlayContent()[0];this.option("hideSubmenuOnMouseLeave")&&i!==n&&(this._clearTimeouts(),setTimeout(this._hideSubmenuAfterTimeout.bind(this),this._getDelay("hide")))}_hideSubmenuAfterTimeout(){if(this._visibleSubmenu){var e=(0,o.Z)(this._visibleSubmenu.$element().context).hasClass(UH),t=this._visibleSubmenu.getOverlayContent().find(".".concat(UH)).length,i=this._visibleSubmenu.getOverlayContent().get(0).querySelector(":hover");i||t||e||this._visibleSubmenu.hide()}}_getSubmenuByRootElement(e){if(!e)return!1;var t=e.children(".".concat($H));return t.length&&BH.getInstance(t)}getSubmenuPosition(e){var t=this._isMenuHorizontal(),i=this.option("submenuDirection").toLowerCase(),n=this.option("rtlEnabled"),o={collision:"flip",of:e};switch(i){case"leftortop":o.at="left top",o.my=t?"left bottom":"right top";break;case"rightorbottom":o.at=t?"left bottom":"right top",o.my="left top";break;default:t?(o.at=n?"right bottom":"left bottom",o.my=n?"right top":"left top"):(o.at=n?"left top":"right top",o.my=n?"right top":"left top")}return o}_renderBorderElement(e){(0,o.Z)("<div>").appendTo(e).addClass(WH).hide()}_itemPointerDownHandler(e){var t=(0,o.Z)(e.target),i=t.closest(this._itemElements());i.hasClass("dx-menu-item-has-submenu")?this.option("focusedElement",null):super._itemPointerDownHandler(e)}_hoverStartHandler(e){var t=(0,R.V4)(B.Z.move,this.NAME),i=this._getItemElementByEventArgs(e),n=this._dataAdapter.getNodeByItem(this._getItemData(i)),o=(0,l.$K)(e.buttons)&&1===e.buttons||!(0,l.$K)(e.buttons)&&1===e.which;if(!this._isItemDisabled(i))if(re.Z.off(i,t),this._hasChildren(n)){if("onHover"===this._getShowFirstSubmenuMode()&&!o){var r=this._getSubmenuByElement(i);this._clearTimeouts(),r.isOverlayVisible()||(re.Z.on(i,t,this._itemMouseMoveHandler.bind(this)),this._showSubmenuTimer=this._getDelay("hide"))}}else this._showSubmenuTimer=setTimeout(this._hideSubmenuAfterTimeout.bind(this),this._getDelay("hide"))}_hoverEndHandler(e){var t=this._getItemElementByEventArgs(e),i=(0,o.Z)(e.relatedTarget);super._hoverEndHandler(e),this._clearTimeouts(),this._isItemDisabled(t)||i.hasClass(KH)||this.option("hideSubmenuOnMouseLeave")&&!i.hasClass(NH)&&(this._hideSubmenuTimer=setTimeout((()=>{this._hideSubmenuAfterTimeout()}),this._getDelay("hide")))}_hideVisibleSubmenu(){return!!this._visibleSubmenu&&(this._hideSubmenu(this._visibleSubmenu),!0)}_showSubmenu(e){var t=this._getSubmenuByElement(e);this._visibleSubmenu!==t&&this._hideVisibleSubmenu(),t&&(this._clearTimeouts(),this.focus(),t.show(),this.option("focusedElement",t.option("focusedElement"))),this._visibleSubmenu=t,this._hoveredRootItem=e}_hideSubmenu(e){e&&e.hide(),this._visibleSubmenu===e&&(this._visibleSubmenu=null),this._hoveredRootItem=null}_itemMouseMoveHandler(e){if(!e.pointers||!e.pointers.length){var t=(0,o.Z)(e.currentTarget);(0,l.$K)(this._showSubmenuTimer)&&(this._clearTimeouts(),this._showSubmenuTimer=setTimeout((()=>{var e=this._getSubmenuByElement(t);e&&!e.isOverlayVisible()&&this._showSubmenu(t)}),this._getDelay("show")))}}_clearTimeouts(){clearTimeout(this._hideSubmenuTimer),clearTimeout(this._showSubmenuTimer)}_getSubmenuByElement(e,t){var i=this._getSubmenuByRootElement(e);if(i)return i;t=t||this._getItemData(e);var n=this._dataAdapter.getNodeByItem(t);return this._hasChildren(n)&&this._renderSubmenuItems(n,e)}_updateSubmenuVisibilityOnClick(e){var t=e.args.length&&e.args[0];if(t&&!this._disabledGetter(t.itemData)){var i=(0,o.Z)(t.itemElement),n=this._getSubmenuByElement(i,t.itemData);if(this._updateSelectedItemOnClick(e),this._visibleSubmenu){if(this._visibleSubmenu===n)return void("onClick"===this.option("showFirstSubmenuMode")&&this._hideSubmenu(this._visibleSubmenu));this._hideSubmenu(this._visibleSubmenu)}n&&(n.isOverlayVisible()||this._showSubmenu(i))}}_optionChanged(e){if(aL.indexOf(e.name)>=0)this._initActions();else switch(e.name){case"orientation":case"submenuDirection":this._invalidate();break;case"showFirstSubmenuMode":case"hideSubmenuOnMouseLeave":break;case"showSubmenuMode":this._changeSubmenusOption(e.name,e.value);break;case"adaptivityEnabled":e.value?this._initAdaptivity():this._removeAdaptivity();break;case"width":this._isAdaptivityEnabled()&&(this._treeView.option(e.name,e.value),this._overlay.option(e.name,e.value)),super._optionChanged(e),this._dimensionChanged();break;case"animation":this._isAdaptivityEnabled()&&this._treeView.option("animationEnabled",!!e.value),super._optionChanged(e);break;default:!this._isAdaptivityEnabled()||e.name!==e.fullName&&"items"!==e.name||this._treeView.option(e.fullName,e.value),super._optionChanged(e)}}_changeSubmenusOption(e,t){(0,E.S6)(this._submenus,((i,n)=>{n.option(e,t)}))}selectItem(e){this._hideSubmenu(this._visibleSubmenu),super.selectItem(e)}unselectItem(e){this._hideSubmenu(this._visibleSubmenu),super.selectItem(e)}}(0,C.Z)("dxMenu",sL);var lL=sL,dL=lL,uL={"=":"filter-operation-equals","<>":"filter-operation-not-equals","<":"filter-operation-less","<=":"filter-operation-less-equal",">":"filter-operation-greater",">=":"filter-operation-greater-equal",default:"filter-operation-default",notcontains:"filter-operation-not-contains",contains:"filter-operation-contains",startswith:"filter-operation-starts-with",endswith:"filter-operation-ends-with",between:"filter-operation-between"},cL={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",between:"between"},hL=700,pL=1,fL="filter-row",gL="filter-range-overlay",mL="filter-range-start",_L="filter-range-end",vL="dx-menu",yL="dx-editor-with-menu",CL="dx-editor-container",bL="dx-editor-cell",xL="dx-filter-menu",wL="dx-apply-button",TL="dx-highlight-outline",SL="dx-focused",IL="dx-cell-focus-disabled",EL="dx-filter-range-content",DL="dx-filter-modified",kL="input:not([type='hidden'])",OL=["date","datetime","number"];function AL(e){return"onClick"===e.option("filterRow.applyFilter")}var PL=function(e){var t=e&&e.children(),i=t&&t.data("dxComponents"),n=i&&i.length&&t.data(i[0]);if(n instanceof zc)return n},ML=function(){var e=function(e,i){var n="",o="",r=t(e,i),a=FD.getFormatOptionsByColumn(i,"filterRow");return Array.isArray(r)?(n=FD.formatValue(r[0],a),o=FD.formatValue(r[1],a),""!==o&&(n+=" - "+o)):(0,l.$K)(r)&&(n=FD.formatValue(r,a)),n};function t(e,t){if(t)return AL(e)&&void 0!==t.bufferedFilterValue?t.bufferedFilterValue:t.filterValue}var i=function(e,t){if(t)return AL(e)&&void 0!==t.bufferedSelectedFilterOperation?t.bufferedSelectedFilterOperation:t.selectedFilterOperation},r=function(e,n,o){var r=e._columnsController.columnOption(n),a=t(e,r),s=o.closest("."+e.addWidgetPrefix(gL)).length,l=o.hasClass(e.addWidgetPrefix(mL));return a&&Array.isArray(a)&&"between"===i(e,r)?l?a[0]:a[1]:!s&&function(e,t){return!(t&&OL.indexOf(t.dataType)>=0&&Array.isArray(e))&&void 0!==e}(a,r)?a:null},s=function(e,n){var o=""===n.value?null:n.value,a=n.container,s=e._columnsController.columnOption(n.column.index),d=r(e,s.index,a);if((0,l.$K)(d)||(0,l.$K)(o)){e._applyFilterViewController.setHighLight(a,d!==o);var u=AL(e)?"bufferedFilterValue":"filterValue",c=function(e,n,o,r){if("between"===i(e,o)){var a=t(e,o);return r.hasClass(e.addWidgetPrefix(mL))?[n,Array.isArray(a)?a[1]:void 0]:[Array.isArray(a)?a[0]:a,n]}return n}(e,o,s,a),h="between"===i(e,s),p=n.notFireEvent||h&&Array.isArray(c)&&c.indexOf(void 0)>=0;e._columnsController.columnOption(s.index,u,c,p)}};return{_updateEditorValue:function(e,t){var i=PL(t);i&&i.option("value",r(this,e.index,t))},_columnOptionChanged:function(t){var n,r,a,s,l=t.optionNames;if(FD.checkChanges(l,["filterValue","bufferedFilterValue","selectedFilterOperation","bufferedSelectedFilterOperation","filterValues","filterType"])&&void 0!==t.columnIndex){var d=this._columnsController.getVisibleIndex(t.columnIndex),u=this._columnsController.columnOption(t.columnIndex);if(n=this._getCellElement(this.element().find("."+this.addWidgetPrefix(fL)).index(),d)||(0,o.Z)(),r=n.find("."+CL).first(),l.filterValue||l.bufferedFilterValue){this._updateEditorValue(u,r);var c=n.find("."+this.addWidgetPrefix(gL)).data("dxOverlay");c&&(a=c.$content().find("."+CL),this._updateEditorValue(u,a.first()),this._updateEditorValue(u,a.last())),c&&c.option("visible")||this._updateFilterRangeContent(n,e(this,u))}(l.selectedFilterOperation||l.bufferedSelectedFilterOperation)&&d>=0&&u&&(s=n.find("."+vL),s.length&&(this._updateFilterOperationChooser(s,u,r),"between"===i(this,u)?this._renderFilterRangeContent(n,u):r.find("."+EL).length&&(this._renderEditor(r,this._getEditorOptions(r,u)),this._hideFilterRange())))}else this.callBase(t)},_renderCore:function(){this._filterRangeOverlayInstance=null,this.callBase.apply(this,arguments)},_resizeCore:function(){this.callBase.apply(this,arguments),this._filterRangeOverlayInstance&&this._filterRangeOverlayInstance.repaint()},isFilterRowVisible:function(){return this._isElementVisible(this.option("filterRow"))},isVisible:function(){return this.callBase()||this.isFilterRowVisible()},init:function(){this.callBase(),this._applyFilterViewController=this.getController("applyFilter")},_initFilterRangeOverlay:function(t,n){var r=this,a={},s=t.find(".dx-editor-container"),l=(0,o.Z)("<div>").addClass(r.addWidgetPrefix(gL)).appendTo(t);return r._createComponent(l,ki,{height:"auto",shading:!1,showTitle:!1,focusStateEnabled:!1,hideOnOutsideClick:!0,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,animation:!1,position:{my:"top",at:"top",of:s.length&&s||t,offset:"0 -1"},contentTemplate:function(e){var i,s=(0,o.Z)("<div>").addClass(CL+" "+r.addWidgetPrefix(mL)).appendTo(e);return n=r._columnsController.columnOption(n.index),i=r._getEditorOptions(s,n),i.sharedData=a,r._renderEditor(s,i),re.Z.on(s.find(kL),"keydown",(function(e){var i=t.find("[tabindex]").not(e.target).first();"tab"===(0,R.EV)(e)&&e.shiftKey&&(e.preventDefault(),r._hideFilterRange(),i.length||(i=t.prev().find("[tabindex]").last()),re.Z.trigger(i,"focus"))})),s=(0,o.Z)("<div>").addClass(CL+" "+r.addWidgetPrefix(_L)).appendTo(e),i=r._getEditorOptions(s,n),i.sharedData=a,r._renderEditor(s,i),re.Z.on(s.find(kL),"keydown",(function(e){"tab"!==(0,R.EV)(e)||e.shiftKey||(e.preventDefault(),r._hideFilterRange(),re.Z.trigger(t.next().find("[tabindex]").first(),"focus"))})),(0,o.Z)(e).addClass(r.getWidgetContainerClass())},onShown:function(e){var t=e.component.$content().find("."+CL).first();re.Z.trigger(t.find(kL),"focus")},onHidden:function(){n=r._columnsController.columnOption(n.index),t.find("."+vL).parent().addClass(yL),"between"===i(r,n)&&(r._updateFilterRangeContent(t,e(r,n)),r.component.updateDimensions())}})},_updateFilterRangeOverlay:function(e){var t=this._filterRangeOverlayInstance;t&&t.option(e)},_showFilterRange:function(e,t){var i=e.children("."+this.addWidgetPrefix(gL)),o=i.length&&i.data("dxOverlay");!o&&t&&(o=this._initFilterRangeOverlay(e,t)),o.option("visible")||(this._filterRangeOverlayInstance&&this._filterRangeOverlayInstance.hide(),this._filterRangeOverlayInstance=o,this._updateFilterRangeOverlay({width:(0,n.Y_)(e,!0)+pL}),this._filterRangeOverlayInstance&&this._filterRangeOverlayInstance.show())},_hideFilterRange:function(){var e=this._filterRangeOverlayInstance;e&&e.hide()},getFilterRangeOverlayInstance:function(){return this._filterRangeOverlayInstance},_createRow:function(e){var t=this.callBase(e);return"filter"===e.rowType&&(t.addClass(this.addWidgetPrefix(fL)),this.option("useLegacyKeyboardNavigation")||re.Z.on(t,"keydown",(e=>zA("filterRow",this,e)))),t},_getRows:function(){var e=this.callBase();return this.isFilterRowVisible()&&e.push({rowType:"filter"}),e},_renderFilterCell:function(e,t){var n=t.column,r=(0,o.Z)(e);this.component.option("showColumnHeaders")&&this.setAria("describedby",n.headerId,r),this.setAria("label",y.Z.format("dxDataGrid-ariaFilterCell"),r),r.addClass(bL);var a=(0,o.Z)("<div>").appendTo(r),s=(0,o.Z)("<div>").addClass(CL).appendTo(a);if("between"===i(this,n))this._renderFilterRangeContent(r,n);else{var l=this._getEditorOptions(s,n);this._renderEditor(s,l)}var d=n.alignment;d&&"center"!==d&&r.find(kL).first().css("textAlign",n.alignment),n.filterOperations&&n.filterOperations.length&&this._renderFilterOperationChooser(a,n,s)},_renderCellContent:function(e,t){var i=this,n=t.column;if("filter"===t.rowType)if(n.command)e.html("&nbsp;");else if(n.allowFiltering)return void i.renderTemplate(e,i._renderFilterCell.bind(i),t).done((()=>{i._updateCell(e,t)}));this.callBase.apply(this,arguments)},_getEditorOptions:function(e,t){var n=this,o={editorOptions:{inputAttr:n._getFilterInputAccessibilityAttributes(t)}},l=(0,a.l)(o,t,{value:r(n,t.index,e),parentType:"filterRow",showAllText:n.option("filterRow.showAllText"),updateValueTimeout:"onClick"===n.option("filterRow.applyFilter")?0:hL,width:null,setValue:function(i,o){s(n,{column:t,value:i,container:e,notFireEvent:o})}});return"between"===i(n,t)&&(e.hasClass(n.addWidgetPrefix(mL))?l.placeholder=n.option("filterRow.betweenStartText"):l.placeholder=n.option("filterRow.betweenEndText")),l},_getFilterInputAccessibilityAttributes:function(e){var t=y.Z.format("dxDataGrid-ariaFilterCell");return this.component.option("showColumnHeaders")?{"aria-label":t,"aria-describedby":e.headerId}:{"aria-label":t}},_renderEditor:function(e,t){e.empty();var i=(0,o.Z)("<div>").appendTo(e),n=this.getController("editorFactory"),r=this.getController("data").dataSource(),a=this.getController("applyFilter");if(t.lookup&&this.option("syncLookupFilterValues")){a.setCurrentColumnForFiltering(t);var s=this.getController("data").getCombinedFilter();a.setCurrentColumnForFiltering(null);var l=FD.getWrappedLookupDataSource(t,r,s),d=(0,hn.Z)({},t,{lookup:(0,hn.Z)({},t.lookup,{dataSource:l})});return n.createEditor(i,d)}return n.createEditor(i,t)},_renderFilterRangeContent:function(t,i){var n=this,r=t.find("."+CL).first();r.empty();var a=(0,o.Z)("<div>").addClass(EL).attr("tabindex",this.option("tabIndex"));re.Z.on(a,"focusin",(function(){n._showFilterRange(t,i)})),a.appendTo(r),n._updateFilterRangeContent(t,e(n,i))},_updateFilterRangeContent:function(e,t){var i=e.find("."+EL);i.length&&(""===t?i.html("&nbsp;"):i.text(t))},_updateFilterOperationChooser:function(e,t,n){var o,r=this,a=function(){var t=dL.getInstance(e);t&&t.option("focusedElement",null),o&&r._focusEditor(n)};r._createComponent(e,dL,{integrationOptions:{},activeStateEnabled:!1,selectionMode:"single",cssClass:r.getWidgetContainerClass()+" "+IL+" "+xL,showFirstSubmenuMode:"onHover",hideSubmenuOnMouseLeave:!0,items:[{disabled:!t.filterOperations||!t.filterOperations.length,icon:uL[i(r,t)||"default"],selectable:!1,items:r._getFilterOperationMenuItems(t)}],onItemClick:function(e){var o=e.itemData.name,a=i(r,t),s=!1,l=AL(r),d={};if(!(e.itemData.items||o&&o===a)){if(o?(d[l?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=o,"between"!==o&&"between"!==a||(s="between"===o,d[l?"bufferedFilterValue":"filterValue"]=null)):(d[l?"bufferedFilterValue":"filterValue"]=null,d[l?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=t.defaultSelectedFilterOperation||null),r._columnsController.columnOption(t.index,d),r._applyFilterViewController.setHighLight(n,!0),!o){var u=PL(n);u&&"dxDateBox"===u.NAME&&!u.option("isValid")&&(u.reset(),u.option("isValid",!0))}s?r._showFilterRange(n.closest("."+bL),t):r._focusEditor(n)}},onSubmenuShowing:function(){o=r._isEditorFocused(n),r.getController("editorFactory").loseFocus()},onSubmenuHiding:function(){re.Z.trigger(e,"blur"),a()},onContentReady:function(t){re.Z.on(e,"blur",(()=>{var e=t.component;e._hideSubmenuAfterTimeout(),a()}))},rtlEnabled:r.option("rtlEnabled")})},_isEditorFocused:function(e){return e.hasClass(SL)||e.parents("."+SL).length},_focusEditor:function(e){this.getController("editorFactory").focus(e),re.Z.trigger(e.find(kL),"focus")},_renderFilterOperationChooser:function(e,t,i){var n;this.option("filterRow.showOperationChooser")&&(e.addClass(yL),n=(0,o.Z)("<div>").prependTo(e),this._updateFilterOperationChooser(n,t,i))},_getFilterOperationMenuItems:function(e){var t=this,n=[{}],o=t.option("filterRow"),r=o&&o.operationDescriptions||{};if(e.filterOperations&&e.filterOperations.length){var a=e.filterOperations.filter((function(e){return(0,l.$K)(cL[e])}));n=(0,E.UI)(a,(function(n){var o=cL[n];return{name:n,selected:(i(t,e)||e.defaultFilterOperation)===n,text:r[o],icon:uL[n]}})),n.push({name:null,text:o&&o.resetOperationText,icon:uL.default})}return n},_handleDataChanged:function(e){var t,i,n;(this.callBase.apply(this,arguments),null!==(t=e.operationTypes)&&void 0!==t&&t.filtering||null!==(i=e.operationTypes)&&void 0!==i&&i.fullReload)&&this.updateLookupDataSource(null===(n=e.operationTypes)||void 0===n?void 0:n.filtering)},updateLookupDataSource:function(e){if(this.option("syncLookupFilterValues")&&this.element()){var t=this._columnsController.getVisibleColumns(),i=this._dataController.dataSource(),n=this._applyFilterViewController,o=this.element().find("."+this.addWidgetPrefix(fL)).index();-1!==o&&t.forEach(((t,r)=>{if(t.lookup&&t.calculateCellValue===t.defaultCalculateCellValue){var a=this._getCellElement(o,r),s=PL(null===a||void 0===a?void 0:a.find(".dx-editor-container"));if(s){n.setCurrentColumnForFiltering(t);var l=this._dataController.getCombinedFilter()||null;n.setCurrentColumnForFiltering(null);var d=s.option("dataSource"),u=!e||!(0,v.bY)(d.__dataGridSourceFilter,l);if(u){var c=FD.getWrappedLookupDataSource(t,i,l);s.option("dataSource",c)}}}}))}},optionChanged:function(e){switch(e.name){case"filterRow":case"showColumnLines":this._invalidate(!0,!0),e.handled=!0;break;case"syncLookupFilterValues":e.value?this.updateLookupDataSource():this.render(),e.handled=!0;break;default:this.callBase(e)}}}}(),RL={skipCalculateColumnFilters:function(){return!1},_calculateAdditionalFilter:function(){if(this.skipCalculateColumnFilters())return this.callBase();var e=[this.callBase()],t=this._columnsController.getVisibleColumns(null,!0),i=this.getController("applyFilter");return(0,E.S6)(t,(function(){var t,n=(null===(t=i.getCurrentColumnForFiltering())||void 0===t?void 0:t.index)===this.index;if(this.allowFiltering&&this.calculateFilterExpression&&(0,l.$K)(this.filterValue)&&!n){var o=this.createFilterExpression(this.filterValue,this.selectedFilterOperation||this.defaultFilterOperation,"filterRow");e.push(o)}})),FD.combineFilters(e)}},BL=KO.ViewController.inherit({_getHeaderPanel:function(){return this._headerPanel||(this._headerPanel=this.getView("headerPanel")),this._headerPanel},setHighLight:function(e,t){AL(this)&&(e&&e.toggleClass(TL,t)&&e.closest("."+bL).toggleClass(DL,t),this._getHeaderPanel().enableApplyButton(t))},applyFilter:function(){var e=this.getController("columns"),t=e.getColumns();e.beginUpdate();for(var i=0;i<t.length;i++){var n=t[i];void 0!==n.bufferedFilterValue&&(e.columnOption(i,"filterValue",n.bufferedFilterValue),n.bufferedFilterValue=void 0),void 0!==n.bufferedSelectedFilterOperation&&(e.columnOption(i,"selectedFilterOperation",n.bufferedSelectedFilterOperation),n.bufferedSelectedFilterOperation=void 0)}e.endUpdate(),this.removeHighLights()},removeHighLights:function(){if(AL(this)){var e=this.getView("columnHeadersView").element();e.find("."+this.addWidgetPrefix(fL)+" ."+TL).removeClass(TL),e.find("."+this.addWidgetPrefix(fL)+" ."+DL).removeClass(DL),this._getHeaderPanel().enableApplyButton(!1)}},setCurrentColumnForFiltering:function(e){this._currentColumn=e},getCurrentColumnForFiltering:function(){return this._currentColumn}}),VL={defaultOptions:function(){return{syncLookupFilterValues:!0,filterRow:{visible:!1,showOperationChooser:!0,showAllText:y.Z.format("dxDataGrid-filterRowShowAllText"),resetOperationText:y.Z.format("dxDataGrid-filterRowResetOperationText"),applyFilter:"auto",applyFilterText:y.Z.format("dxDataGrid-applyFilterText"),operationDescriptions:{equal:y.Z.format("dxDataGrid-filterRowOperationEquals"),notEqual:y.Z.format("dxDataGrid-filterRowOperationNotEquals"),lessThan:y.Z.format("dxDataGrid-filterRowOperationLess"),lessThanOrEqual:y.Z.format("dxDataGrid-filterRowOperationLessOrEquals"),greaterThan:y.Z.format("dxDataGrid-filterRowOperationGreater"),greaterThanOrEqual:y.Z.format("dxDataGrid-filterRowOperationGreaterOrEquals"),startsWith:y.Z.format("dxDataGrid-filterRowOperationStartsWith"),contains:y.Z.format("dxDataGrid-filterRowOperationContains"),notContains:y.Z.format("dxDataGrid-filterRowOperationNotContains"),endsWith:y.Z.format("dxDataGrid-filterRowOperationEndsWith"),between:y.Z.format("dxDataGrid-filterRowOperationBetween"),isBlank:y.Z.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:y.Z.format("dxFilterBuilder-filterOperationIsNotBlank")},betweenStartText:y.Z.format("dxDataGrid-filterRowOperationBetweenStartText"),betweenEndText:y.Z.format("dxDataGrid-filterRowOperationBetweenEndText")}}},controllers:{applyFilter:BL},extenders:{controllers:{data:RL,columnsResizer:{_startResizing:function(){var e=this;if(e.callBase.apply(e,arguments),e.isResizing()){var t=e._columnHeadersView.getFilterRangeOverlayInstance();if(t){var i=t.$element().closest("td").index();i!==e._targetPoint.columnIndex&&i!==e._targetPoint.columnIndex+1||t.$content().hide()}}},_endResizing:function(){var e,t=this;if(t.isResizing()){var i=t._columnHeadersView.getFilterRangeOverlayInstance();i&&(e=i.$element().closest("td"),t._columnHeadersView._updateFilterRangeOverlay({width:(0,n.Y_)(e,!0)+pL}),i.$content().show())}t.callBase.apply(t,arguments)}},editing:{updateFieldValue(e){return e.column.lookup&&(this._needUpdateLookupDataSource=!0),this.callBase.apply(this,arguments)},_afterSaveEditData(e){var t;this._needUpdateLookupDataSource&&!e&&(null===(t=this.getView("columnHeadersView"))||void 0===t||t.updateLookupDataSource());return this._needUpdateLookupDataSource=!1,this.callBase.apply(this,arguments)},_afterCancelEditData(){return this._needUpdateLookupDataSource=!1,this.callBase.apply(this,arguments)}}},views:{columnHeadersView:ML,headerPanel:{_getToolbarItems:function(){var e=this.callBase(),t=this._prepareFilterItem(e);return t.concat(e)},_prepareFilterItem:function(){var e=this,t=[];if(e._isShowApplyFilterButton()){var i=e.option("filterRow.applyFilterText"),n=e._columnsController.getColumns(),r=!n.filter((function(e){return void 0!==e.bufferedFilterValue})).length,a={widget:"dxButton",options:{icon:"apply-filter",disabled:r,onClick:function(){e._applyFilterViewController.applyFilter()},hint:i,text:i,onInitialized:function(t){(0,o.Z)(t.element).addClass(e._getToolbarButtonClass(wL))}},showText:"inMenu",name:"applyFilterButton",location:"after",locateInMenu:"auto",sortIndex:10};t.push(a)}return t},_isShowApplyFilterButton:function(){var e=this.option("filterRow");return e&&e.visible&&"onClick"===e.applyFilter},init:function(){this.callBase(),this._dataController=this.getController("data"),this._applyFilterViewController=this.getController("applyFilter")},enableApplyButton:function(e){this.setToolbarItemDisabled("applyFilterButton",!e)},isVisible:function(){return this.callBase()||this._isShowApplyFilterButton()},optionChanged:function(e){"filterRow"===e.name?(this._invalidate(),e.handled=!0):this.callBase(e)}}}}};zO.registerModule("filterRow",VL),vw.setEditorClass(f_);var FL="dx-header-filter",HL="dx-header-filter-menu",LL="text";function NL(e){e=e||[];for(var t=0;t<e.length;t++)e[t].selected=!1,NL(e[t].items)}function ZL(e,t){if(!e.component.option("searchValue")){var i=(0,o.Z)(e.element).find(".dx-list-select-all-checkbox").data("dxCheckBox");i&&t&&t.length&&i.option("value",void 0)}}function $L(e,t){var i=t.headerFilter;return i&&(0,l.$K)(i.allowSearch)?i.allowSearch:e.option("headerFilter.allowSearch")}function WL(e,t,i){if(t^i){if(e.selected=!0,i&&e.items)for(var n=0;n<e.items.length;n++)if(!e.items[n].selected){e.selected=void 0;break}}else(i||e.selected)&&(e.selected=!1,NL(e.items))}var KL=KO.View.inherit({getPopupContainer:function(){return this._popupContainer},getListContainer:function(){return this._listContainer},applyHeaderFilter:function(e){var t=this.getListContainer(),i=t.option("searchValue"),n=!i&&!e.isFilterBuilder&&t.$element().find(".dx-checkbox").eq(0).hasClass("dx-checkbox-checked"),o=[];n?("tree"===e.type&&(e.filterType="exclude"),Array.isArray(e.filterValues)&&(e.filterValues=[])):"tree"===e.type&&(e.filterType&&(e.filterType="include"),function e(n,o,r){(0,E.S6)(o,(function(o,a){if(void 0!==a.selected&&!!a.selected^r){var s=t._getNode(a),l=t._hasChildren(s),d=l&&a.items&&a.items.some((e=>e.selected));if(!i||!d)return void n.push(a.value)}a.items&&a.items.length&&e(n,a.items,r)}))}(o,t.option("items"),!1),e.filterValues=o),e.filterValues&&!e.filterValues.length&&(e.filterValues=null),e.apply(),this.hideHeaderFilterMenu()},showHeaderFilterMenu:function(e,t){if(t){this._initializePopupContainer(t);var i=this.getPopupContainer();this.hideHeaderFilterMenu(),this.updatePopup(e,t),i.show()}},hideHeaderFilterMenu:function(){var e=this.getPopupContainer();e&&e.hide()},updatePopup:function(e,t){var i=this.option("showColumnLines"),n="right"===t.alignment^!i?"left":"right";this._popupContainer.setAria({role:"dialog",label:y.Z.format("dxDataGrid-headerFilterLabel")}),this._popupContainer&&(this._cleanPopupContent(),this._popupContainer.option("position",{my:n+" top",at:n+" bottom",of:e,collision:"flip fit"}))},_getSearchExpr:function(e){var t=e.lookup,i=e.useDefaultSearchExpr,n=e.headerFilter&&e.headerFilter.dataSource;if(i||(0,l.$K)(n)&&!(0,l.mf)(n))return LL;if(t)return t.displayExpr||"this";if(e.dataSource){var o=e.dataSource.group;if(Array.isArray(o)&&o.length>0)return o[0].selector;if((0,l.mf)(o)&&!e.remoteFiltering)return o}return e.dataField||e.selector},_cleanPopupContent:function(){this._popupContainer&&this._popupContainer.$content().empty()},_initializePopupContainer:function(e){var t=this,i=t.element(),n=t.option("headerFilter"),o=e.headerFilter&&e.headerFilter.width||n&&n.width,r=e.headerFilter&&e.headerFilter.height||n&&n.height,a={width:o,height:r,visible:!1,shading:!1,showTitle:!1,showCloseButton:!1,hideOnParentScroll:!1,dragEnabled:!1,hideOnOutsideClick:!0,focusStateEnabled:!1,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:n.texts.ok,onClick:function(){t.applyHeaderFilter(e)}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:n.texts.cancel,onClick:function(){t.hideHeaderFilterMenu()}}}],resizeEnabled:!0,onShowing:function(i){i.component.$content().parent().addClass("dx-dropdowneditor-overlay"),t._initializeListContainer(e),e.onShowing&&e.onShowing(i)},onShown:function(){t.getListContainer().focus()},onHidden:e.onHidden,onInitialized:function(e){var t=e.component;t.option("animation",t._getDefaultOptions().animation)}};(0,l.$K)(t._popupContainer)?t._popupContainer.option(a):t._popupContainer=t._createComponent(i,Tc,a)},_initializeListContainer:function(e){var t=this,i=t._popupContainer.$content(),n={searchEnabled:$L(t,e),searchTimeout:t.option("headerFilter.searchTimeout"),searchMode:e.headerFilter&&e.headerFilter.searchMode||"",dataSource:e.dataSource,onContentReady:function(){t.renderCompleted.fire()},itemTemplate:function(t,i,n){var r=(0,o.Z)(n);return e.encodeHtml?r.text(t.text):r.html(t.text)}};function r(i){"searchValue"!==i.fullName||e.isFilterBuilder||!1===t.option("headerFilter.hideSelectAllOnSearch")||("tree"===e.type?i.component.option("showCheckBoxesMode",i.value?"normal":"selectAll"):i.component.option("selectionMode",i.value?"multiple":"all"))}"tree"===e.type?t._listContainer=t._createComponent((0,o.Z)("<div>").appendTo(i),VR,(0,a.l)(n,{showCheckBoxesMode:e.isFilterBuilder?"normal":"selectAll",onOptionChanged:r,keyExpr:"id"})):t._listContainer=t._createComponent((0,o.Z)("<div>").appendTo(i),bw,(0,a.l)(n,{searchExpr:t._getSearchExpr(e),pageLoadMode:"scrollBottom",showSelectionControls:!0,selectionMode:e.isFilterBuilder?"multiple":"all",onOptionChanged:r,onSelectionChanged:function(t){var i=t.component.option("items"),n=t.component.option("selectedItems");if(!t.component._selectedItemsUpdating&&!t.component.option("searchValue")&&!e.isFilterBuilder){var o=e.filterValues||[],r="exclude"===e.filterType;0===n.length&&i.length&&(o.length<=1||r&&o.length===i.length-1)?(e.filterType="include",e.filterValues=[]):n.length===i.length&&(e.filterType="exclude",e.filterValues=[])}(0,E.S6)(i,(function(t,i){var o=FD.getIndexByKey(i,n,null)>=0,r=!!i.selected;if(r!==o){i.selected=o,e.filterValues=e.filterValues||[];var a=FD.getIndexByKey(i.value,e.filterValues,null);a>=0&&e.filterValues.splice(a,1),o^"exclude"===e.filterType&&e.filterValues.push(i.value)}})),ZL(t,e.filterValues)},onContentReady:function(t){var i=t.component,n=i.option("items"),o=[];(0,E.S6)(n,(function(){this.selected&&o.push(this)})),i._selectedItemsUpdating=!0,i.option("selectedItems",o),i._selectedItemsUpdating=!1,ZL(t,e.filterValues)}}))},_renderCore:function(){this.element().addClass(HL)}}),zL=function(e){return(0,l.$K)(e.allowHeaderFiltering)?e.allowHeaderFiltering:e.allowFiltering},jL={_applyColumnState:function(e){var t,i=e.rootElement,n=e.column;if("headerFilter"===e.name){if(i.find("."+FL).remove(),zL(n)){t=this.callBase(e).toggleClass("dx-header-filter-empty",this._isHeaderFilterEmpty(n)),this.option("useLegacyKeyboardNavigation")||t.attr("tabindex",this.option("tabindex")||0);var o=y.Z.format("dxDataGrid-headerFilterIndicatorLabel",n.caption);t.attr("aria-label",o),t.attr("aria-haspopup","dialog"),t.attr("role","button")}return t}return this.callBase(e)},_isHeaderFilterEmpty:function(e){return!e.filterValues||!e.filterValues.length},_getIndicatorClassName:function(e){return"headerFilter"===e?FL:this.callBase(e)},_renderIndicator:function(e){var t=e.container,i=e.indicator;if("headerFilter"===e.name){var n=this.option("rtlEnabled");if(t.children().length&&(!n&&"right"===e.columnAlignment||n&&"left"===e.columnAlignment))return void t.prepend(i)}this.callBase(e)},optionChanged:function(e){if("headerFilter"===e.name){var t="columnHeadersView"===this.name;this._invalidate(t,t),e.handled=!0}else this.callBase(e)}},UL={month:function(e){return gy.Z.getMonthNames()[e-1]},quarter:function(e){return gy.Z.format(new Date(2e3,3*e-1),"quarter")}};function GL(e,t,i){return t=t||[],i=i||[],e.forEach((e=>{if((0,l.$K)(e.key)){var n=1===t.length;if(t.push(n?e.key-1:e.key),e.items)GL(e.items,t,i);else{var o=new Date(Date.UTC.apply(Date,t));i.push(o)}t.pop()}else i.push(null)})),i}function qL(e,t){var i=GL(e),n=(0,pu.Z)(i),o=FD.getHeaderFilterGroupParameters((0,hn.Z)({},t,{calculateCellValue:e=>e}));return hb.Z.queryByOptions(n,{group:o}).toArray()}function YL(e){return"Z"===(null===e||void 0===e?void 0:e.slice(-1))||"'Z'"===(null===e||void 0===e?void 0:e.slice(-3))}var XL=KO.ViewController.inherit({init:function(){this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._headerFilterView=this.getView("headerFilterView")},_updateSelectedState:function(e,t){var i=e.length,n="exclude"===t.filterType;while(i--){var o=e[i];"items"in e[i]&&this._updateSelectedState(e[i].items,t),WL(o,FD.getIndexByKey(e[i].value,t.filterValues,null)>-1,n)}},_normalizeGroupItem:function(e,t,i){var n,o,r=i.path,s=i.valueSelector,d=i.displaySelector,u=i.column;return s&&d?(n=s(e),o=d(e)):(n=e.key,o=n),e=(0,l.Kn)(e)?(0,a.l)({},e):{},r.push(n),1===r.length?e.value=r[0]:e.value=r.join("/"),e.text=this.getHeaderItemText(o,u,t,i.headerFilterOptions),e},getHeaderItemText:function(e,t,i,n){var o=FD.formatValue(e,function(e,t,i){var n=fD.getGroupInterval(t),o=FD.getFormatOptionsByColumn(t,"headerFilter");return n&&(o.groupInterval=n[i],FD.isDateType(t.dataType)?o.format=UL[n[i]]:"number"===t.dataType&&(o.getDisplayFormat=function(){var o={format:t.format,target:"headerFilter"},r=FD.formatValue(e,o),a=e+n[i],s=FD.formatValue(a,o);return r&&s?r+" - "+s:""})),o}(e,t,i));return o||(o=n.texts.emptyValue),o},_processGroupItems:function(e,t,i,n){var o,a,s=n.column,d=s.lookup,u=n.level;i=i||[],t=t||0,d&&(o=(0,r.vb)(d.displayExpr),a=(0,r.vb)(d.valueExpr));for(var c=0;c<e.length;c++)e[c]=this._normalizeGroupItem(e[c],t,{column:n.column,headerFilterOptions:n.headerFilterOptions,displaySelector:o,valueSelector:a,path:i}),"items"in e[c]&&(t!==u&&(0,l.$K)(e[c].value)?this._processGroupItems(e[c].items,t+1,i,n):delete e[c].items),i.pop()},getDataSource:function(e){var t,i=this._dataController.dataSource(),n=null===i||void 0===i?void 0:i.remoteOperations().grouping,o=FD.getHeaderFilterGroupParameters(e,n),r=null===(t=e.headerFilter)||void 0===t?void 0:t.dataSource,a=this.option("headerFilter"),s=!1,d={component:this.component};if(i){if((0,l.$K)(r)&&!(0,l.mf)(r))d.dataSource=(0,hu.aN)(r);else if(e.lookup)if(s=!0,this.option("syncLookupFilterValues")){this._currentColumn=e;var u=this._dataController.getCombinedFilter();this._currentColumn=null,d.dataSource=FD.getWrappedLookupDataSource(e,i,u)}else d.dataSource=FD.normalizeLookupDataSource(e.lookup);else{var c=Array.isArray(o)?o.length-1:0;this._currentColumn=e;var h=this._dataController.getCombinedFilter();this._currentColumn=null,d.dataSource={filter:h,group:o,useDefaultSearch:!0,load:t=>{var o=new ot.BH;return t.dataField=e.dataField||e.name,i.load(t).done((function(t){var i=n&&YL(e.serializationFormat)&&c>3;i&&(t=qL(t,e)),f._processGroupItems(t,null,null,{level:c,column:e,headerFilterOptions:a}),o.resolve(t)})).fail(o.reject),o}}}(0,l.mf)(r)&&r.call(e,d);var p=d.dataSource.postProcess,f=this;return d.dataSource.postProcess=function(t){var i=t;return s&&(0!==this.pageIndex()||this.searchValue()||(i=i.slice(0),i.unshift(null)),f._processGroupItems(i,null,null,{level:0,column:e,headerFilterOptions:a})),i=p&&p.call(this,i)||i,f._updateSelectedState(i,e),i},d.dataSource}},getCurrentColumn:function(){return this._currentColumn},showHeaderFilterMenu:function(e,t){var i=this._columnsController,n=(0,a.l)(!0,{},this._columnsController.getColumns()[e]);if(n){var o=i.getVisibleIndex(e),r=t?this.getView("headerPanel"):this.getView("columnHeadersView"),s=s||r.getColumnElements().eq(t?n.groupIndex:o);this.showHeaderFilterMenuBase({columnElement:s,column:n,applyFilter:!0,apply:function(){i.columnOption(e,{filterValues:this.filterValues,filterType:this.filterType})}})}},showHeaderFilterMenuBase:function(e){var t=this,i=e.column;if(i){var n=fD.getGroupInterval(i),o=t._dataController.dataSource(),r=o&&o.remoteOperations().filtering;(0,a.l)(e,i,{type:n&&n.length>1?"tree":"list",remoteFiltering:r,onShowing:function(i){var n=i.component.$overlayContent().dxResizable("instance");n&&n.option("onResizeEnd",(function(i){var n=t.getController("columns"),o=n.columnOption(e.dataField,"headerFilter");o=o||{},o.width=i.width,o.height=i.height,n.columnOption(e.dataField,"headerFilter",o,!0)}))},onHidden:()=>KA(this)}),e.dataSource=t.getDataSource(e),e.isFilterBuilder&&(e.dataSource.filter=null,e.alignment="right"),t._headerFilterView.showHeaderFilterMenu(e.columnElement,e)}},hideHeaderFilterMenu:function(){this._headerFilterView.hideHeaderFilterMenu()}}),JL=(0,a.l)({},jL,{_renderCellContent:function(e,t){var i,n=this,o=t.column;!o.command&&zL(o)&&n.option("headerFilter.visible")&&"header"===t.rowType&&(i=n._applyColumnState({name:"headerFilter",rootElement:e,column:o,showColumnLines:n.option("showColumnLines")}),i&&n._subscribeToIndicatorEvent(i,o,"headerFilter")),this.callBase.apply(this,arguments)},_subscribeToIndicatorEvent:function(e,t,i){var n=this;"headerFilter"===i&&re.Z.on(e,A.u,n.createAction((function(e){e.event.stopPropagation(),n.getController("headerFilter").showHeaderFilterMenu(t.index,!1)})))},_updateIndicator:function(e,t,i){var n=this.callBase(e,t,i);n&&this._subscribeToIndicatorEvent(n,t,i)},_updateHeaderFilterIndicators:function(){this.option("headerFilter.visible")&&this._updateIndicators("headerFilter")},_needUpdateFilterIndicators:function(){return!0},_columnOptionChanged:function(e){var t=e.optionNames;FD.checkChanges(t,["filterValues","filterType"])?this._needUpdateFilterIndicators()&&this._updateHeaderFilterIndicators():this.callBase(e)}}),QL=(0,a.l)({},jL,{_createGroupPanelItem:function(e,t){var i,n=this,o=n.callBase.apply(n,arguments);return!t.command&&zL(t)&&n.option("headerFilter.visible")&&(i=n._applyColumnState({name:"headerFilter",rootElement:o,column:{alignment:Ae(n.option("rtlEnabled")),filterValues:t.filterValues,allowHeaderFiltering:!0},showColumnLines:!0}),i&&re.Z.on(i,A.u,n.createAction((function(e){var i=e.event;i.stopPropagation(),n.getController("headerFilter").showHeaderFilterMenu(t.index,!0)})))),o}});var eN={skipCalculateColumnFilters:function(){return!1},_calculateAdditionalFilter:function(){if(this.skipCalculateColumnFilters())return this.callBase();var e=[this.callBase()],t=this._columnsController.getVisibleColumns(null,!0),i=this.getController("headerFilter"),n=i.getCurrentColumn();return(0,E.S6)(t,(function(t,i){var o;if((!n||n.index!==i.index)&&zL(i)&&i.calculateFilterExpression&&Array.isArray(i.filterValues)&&i.filterValues.length){var r=[];(0,E.S6)(i.filterValues,(function(e,t){Array.isArray(t)?o=t:(i.deserializeValue&&!FD.isDateType(i.dataType)&&"number"!==i.dataType&&(t=i.deserializeValue(t)),o=i.createFilterExpression(t,"=","headerFilter")),o&&(o.columnIndex=i.index),r.push(o)})),r=FD.combineFilters(r,"or"),e.push("exclude"===i.filterType?["!",r]:r)}})),FD.combineFilters(e)}},tN={defaultOptions:function(){return{syncLookupFilterValues:!0,headerFilter:{visible:!1,width:252,height:325,allowSearch:!1,searchTimeout:500,texts:{emptyValue:y.Z.format("dxDataGrid-headerFilterEmptyValue"),ok:y.Z.format("dxDataGrid-headerFilterOK"),cancel:y.Z.format("dxDataGrid-headerFilterCancel")}}}},controllers:{headerFilter:XL},views:{headerFilterView:KL},extenders:{controllers:{data:eN},views:{columnHeadersView:JL,headerPanel:QL}}};zO.registerModule("headerFilter",tN);var iN=i(74498),nN="dx-filterbuilder-range",oN=nN+"-start",rN=nN+"-end",aN=nN+"-separator",sN="–";function lN(e,t){var i=(0,o.Z)("<div>").addClass(oN),n=(0,o.Z)("<div>").addClass(rN),r=e.value||[],s=function(e){return e&&e.length>0?e[0]:null},l=function(e){return e&&2===e.length?e[1]:null};t.append(i),t.append((0,o.Z)("<span>").addClass(aN).text(sN)),t.append(n),t.addClass(nN),this._editorFactory.createEditor.call(this,i,(0,a.l)({},e.field,e,{value:s(r),parentType:"filterBuilder",setValue:function(t){r=[t,l(r)],e.setValue(r)}})),this._editorFactory.createEditor.call(this,n,(0,a.l)({},e.field,e,{value:l(r),parentType:"filterBuilder",setValue:function(t){r=[s(r),t],e.setValue(r)}}))}function dN(e,t){return{name:"between",caption:e,icon:"range",valueSeparator:sN,dataTypes:["number","date","datetime"],editorTemplate:lN.bind(t),notForLookup:!0}}var uN={"=":"equal","<>":"notequal","<":"less","<=":"lessorequal",">":"greater",">=":"greaterorequal",notcontains:"doesnotcontain",contains:"contains",startswith:"startswith",endswith:"endswith",isblank:"isblank",isnotblank:"isnotblank"},cN={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",isblank:"isBlank",isnotblank:"isNotBlank",between:"between"},hN={getIconByFilterOperation:function(e){return uN[e]},getNameByFilterOperation:function(e){return cN[e]}},pN="string",fN="icon-none",gN="and",mN="=",_N="<>",vN={number:["=","<>","<",">","<=",">=","isblank","isnotblank"],string:["contains","notcontains","startswith","endswith","=","<>","isblank","isnotblank"],date:["=","<>","<",">","<=",">=","isblank","isnotblank"],datetime:["=","<>","<",">","<=",">=","isblank","isnotblank"],boolean:["=","<>","isblank","isnotblank"],object:["isblank","isnotblank"]},yN={date:"shortDate",datetime:"shortDateShortTime"},CN=["=","<>","isblank","isnotblank"],bN=["caption","customizeText","dataField","dataType","editorTemplate","falseText","editorOptions","filterOperations","format","lookup","trueText","calculateFilterExpression","name"],xN="dx-filterbuilder",wN=xN+"-text",TN=wN+"-part",SN=wN+"-separator",IN=SN+"-empty";function EN(e,t){var i=e.format||yN[e.dataType];return gD.Z.format(t,i)}function DN(e){return e&&e.length>1&&"!"===e[0]&&!YN(e)}function kN(e){return DN(e)?e[1]:e}function ON(e,t){return DN(e)?e[1]=t:e=t,e}function AN(e,t){!function(e){return-1!==e.indexOf("!")}(t)?DN(e)&&function(e){var t=kN(e);e.length=0,[].push.apply(e,t)}(e):DN(e)||function(e){var t=e.slice(0);e.length=0,e.push("!",t)}(e)}function PN(e,t){AN(e,t);var i,n=kN(e);return t=function(e){return-1===e.indexOf("!")?e:e.substring(1)}(t),function(e,t){for(i=0;i<e.length;i++)Array.isArray(e[i])||(e[i]=t)}(n,t),e}function MN(e,t){var i=BN(e);return t.filter((function(e){return e.value===i}))[0]}function RN(e){if(YN(e))return gN;for(var t="",i=0;i<e.length;i++){var n=e[i];if(!Array.isArray(n)){if(t&&t!==n)throw new iN.R0.Error("E4019");"!"!==n&&(t=n)}}return t}function BN(e){var t=kN(e),i=RN(t);return i||(i=gN),t!==e&&(i="!"+i),i}function VN(e){return e.lookup&&CN||vN[e.dataType||pN]}function FN(e){return Array.isArray(e)&&e.length}function HN(e){var t=FN(e.filterOperations)?e.filterOperations:VN(e);return(0,a.l)([],t)}function LN(e,t){var i=hN.getNameByFilterOperation(e);return t&&t[i]?t[i]:i}function NN(e,t){for(var i=0;i<t.length;i++)if(t[i].value===e)return t[i];throw new Xt.Z.Error("E1048",e)}function ZN(e,t){var i=e.filter((function(e){return e.name===t}));return i.length?i[0]:null}function $N(e,t,i){var n=HN(e),o=!!e.lookup;return i.forEach((function(t){if(!e.filterOperations&&-1===n.indexOf(t.name)){var i=t&&t.dataTypes,r=!!o&&!!t.notForLookup;!r&&i&&i.indexOf(e.dataType||pN)>=0&&n.push(t.name)}})),n.map((function(e){var n=ZN(i,e);return n?{icon:n.icon||fN,text:n.caption||(0,sn.GK)(n.name),value:n.name,isCustom:!0}:{icon:hN.getIconByFilterOperation(e)||fN,text:LN(e,t),value:e}}))}function WN(e){return e.defaultFilterOperation||HN(e)[0]}function KN(e,t){var i=[e.dataField,"",""],n=WN(e);return bZ(i,n,t),i}function zN(e,t){var i=kN(e),n=i.indexOf(t);return i.splice(n,1),1!==i.length&&i.splice(n,1),e}function jN(e){var t=eZ(e),i=t?tZ(e):e;return t?["!",[i]]:[i]}function UN(e,t){var i=kN(t),n=BN(i);return 1===i.length?i.unshift(e):i.push(e,n),t}function GN(e,t){for(var i=0;i<t.length;i++){if(t[i].name===e)return t[i];if(t[i].dataField.toLowerCase()===e.toLowerCase())return t[i]}var n=_Z(t,!0).filter((function(t){return t.dataField.toLowerCase()===e.toLowerCase()}));if(n.length>0)return n[0];throw new Xt.Z.Error("E1047",e)}function qN(e){return!!Array.isArray(e)&&(e.length<2||Array.isArray(e[0])||Array.isArray(e[1]))}function YN(e){return!!Array.isArray(e)&&(e.length>1&&!Array.isArray(e[0])&&!Array.isArray(e[1]))}function XN(e,t,i){i=i||gN;for(var n=RN(e).toLowerCase()||i,o=[],r=0;r<e.length;r++)qN(e[r])?(o.push(oZ(e[r],t,i)),o=nZ(o,n)):YN(e[r])&&(o.push(QN(e[r],t)),o=nZ(o,n));return 0===o.length&&(o=nZ(o,n)),o}function JN(e,t){var i=ZN(t,e[1]);return i&&i.name===e[1]}function QN(e,t){return JN(e,t)||e.length<3&&(e[2]=e[1],e[1]=mN),e}function eZ(e){return-1!==e.indexOf("not")}function tZ(e){return e.substring(3).toLowerCase()}function iZ(e,t){var i=eZ(t);return t=i?tZ(t):t,i?["!",e,t]:[e,t]}function nZ(e,t){var i=eZ(t);t=i?tZ(t):t,e.push(t);var n=e;return i&&(n=["!",n]),n}function oZ(e,t,i){return i=i||gN,e?(e=(0,a.l)(!0,[],e),YN(e)?iZ(QN(e,t),i):DN(e)?["!",YN(e[1])?iZ(QN(e[1],t),i):DN(e[1])?iZ(oZ(e[1],t),i):XN(e[1],t,i)]:XN(e,t,i)):jN(i)}function rZ(e){return e.reduce((function(e,t){if((0,l.$K)(t.dataField)){var i={};for(var n in t)t[n]&&bN.indexOf(n)>-1&&(i[n]=t[n]);i.defaultCalculateFilterExpression=fD.defaultCalculateFilterExpression,(0,l.$K)(i.dataType)||(i.dataType=pN),(0,l.$K)(i.trueText)||(i.trueText=y.Z.format("dxDataGrid-trueText")),(0,l.$K)(i.falseText)||(i.falseText=y.Z.format("dxDataGrid-falseText")),e.push(i)}return e}),[])}function aZ(e,t,i,n){var o=GN(e[0],t),r=QN(e,i),a=i.length&&ZN(i,r[1]);return a&&a.calculateFilterExpression?a.calculateFilterExpression.apply(a,[r[2],o,t]):o.createFilterExpression?o.createFilterExpression.apply(o,[r[2],r[1],n]):o.calculateFilterExpression?o.calculateFilterExpression.apply(o,[r[2],r[1],n]):o.defaultCalculateFilterExpression.apply(o,[r[2],r[1],n])}function sZ(e,t,i,n){if(!(0,l.$K)(e))return null;if(DN(e)){var o=sZ(e[1],t,i,n);return["!",o]}var r=kN(e);if(YN(r))return aZ(r,t,i,n)||null;for(var a,s=[],d=BN(r),u=0;u<r.length;u++)qN(r[u])?(a=sZ(r[u],t,i,n),a&&(u&&s.push(d),s.push(a))):YN(r[u])&&(a=aZ(r[u],t,i,n),a&&(s.length&&s.push(d),s.push(a)));return 1===s.length&&(s=s[0]),s.length?s:null}function lZ(e){var t,i=kN(e);if(0===i.length)return null;var n=[];for(t=0;t<i.length;t++)if(qN(i[t])){var o=lZ(i[t]);o?i[t]=o:n.push(i[t])}else YN(i[t])&&(wZ(i[t])||n.push(i[t]));for(t=0;t<n.length;t++)zN(i,n[t]);return 1===i.length?null:(i.splice(i.length-1,1),1===i.length&&(e=ON(e,i[0])),0===e.length?null:e)}function dZ(e,t,i){if(""!==t){var n=e.lookup;if(n.items)i(n.calculateCellValue(t)||"");else{var o=(0,l.mf)(n.dataSource)?n.dataSource({}):n.dataSource,a=new cu.o(o);a.loadSingle(n.valueExpr,t).done((function(o){var a="";o&&(a=n.displayExpr?(0,r.vb)(n.displayExpr)(o):o),e.customizeText&&(a=e.customizeText({value:t,valueText:a})),i(a)})).fail((function(){i("")}))}}else i("")}function uZ(e,t,i,n,o){var r;return r=!0===t?e.trueText||y.Z.format("dxDataGrid-trueText"):!1===t?e.falseText||y.Z.format("dxDataGrid-falseText"):EN(e,t),e.customizeText&&(r=e.customizeText.call(e,{value:t,valueText:r,target:n})),i&&i.customizeText&&(r=i.customizeText.call(i,{value:t,valueText:r,field:e,target:n},o)),r}function cZ(e,t,i,n){var o={values:t};return t.map((t=>uZ(e,t,i,n,o)))}function hZ(e){return""===e||null===e}function pZ(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"filterBuilder";if(hZ(t))return"";if(Array.isArray(t)){var o=new ot.BH;return ot.gx.apply(this,cZ(e,t,i,n)).done((function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=t.some((e=>!hZ(e)))?t.map((e=>hZ(e)?"?":e)):"";o.resolve(n)})),o}return uZ(e,t,i,n)}function fZ(e,t){return e.some((function(e){return e.dataField===t}))}function gZ(e,t,i){var n=i.dataField;vZ(n)&&(i.parentId=yZ(n),fZ(t,i.parentId)||fZ(e,i.parentId)||gZ(e,t,{id:i.parentId,dataType:"object",dataField:i.parentId,caption:mZ(i.parentId,!0),filterOperations:["isblank","isnotblank"]})),t.push(i)}function mZ(e,t){var i="";if(t)e=e.substring(e.lastIndexOf(".")+1);else if(vZ(e))return e.split(".").forEach((function(e,t,n){i+=(0,sn.GK)(e),t!==n.length-1&&(i+=".")})),i;return(0,sn.GK)(e)}function _Z(e,t){for(var i=[],n=0;n<e.length;n++){var o=(0,a.l)(!0,{caption:mZ(e[n].dataField,t)},e[n]);o.id=o.name||o.dataField,t?gZ(e,i,o):i.push(o)}return i}function vZ(e){return-1!==e.lastIndexOf(".")}function yZ(e){return e.substring(0,e.lastIndexOf("."))}function CZ(e,t){if(vZ(e.dataField))for(var i=yZ(e.dataField),n=0;n<t.length;n++)if(t[n].dataField===i)return CZ(t[n],t)+"."+e.caption;return e.caption}function bZ(e,t,i){var n=ZN(i,t);return n?(!1===n.hasValue?(e[1]=t,e.length=2):(e[1]=t,e[2]=""),e):("isblank"===t?(e[1]=mN,e[2]=null):"isnotblank"===t?(e[1]=_N,e[2]=null):(n=ZN(i,e[1]),(n||2===e.length||null===e[2])&&(e[2]=""),e[1]=t),e)}function xZ(e){var t;return t=null===e[2]?e[1]===mN?"isblank":"isnotblank":e[1],t}function wZ(e){return""!==e[2]}function TZ(e,t,i){var n=(0,a.l)(!0,[],e),o=-1;return n.some((function(e,t){if("between"===e.name)return o=t,!0})),-1!==o?n[o]=(0,a.l)(dN(t,i),n[o]):n.unshift(dN(t,i)),n}function SZ(e,t){return e[0]===t}function IZ(e,t){if(!e||0===e.length)return null;if(YN(e)){var i=SZ(e,t);return i?null:e}return EZ(e,[t],!1)}function EZ(e,t,i){var n=[];return e.forEach((function(e){YN(e)?SZ(e,t[0])?i?(n.push(t),i=!1):n.splice(n.length-1,1):n.push(e):(n.length||qN(e))&&n.push(e)})),0===n.length?null:(i&&(n.push(gN),n.push(t)),1===n.length?n[0]:n)}function DZ(e,t){if(null===e||0===e.length)return t;if(YN(e))return SZ(e,t[0])?t:[e,gN,t];var i=BN(e);return i!==gN?[t,"and",e]:EZ(e,t,!0)}function kZ(e,t){if(null===e||0===e.length)return[];if(YN(e))return SZ(e,t)?[e]:[];var i=BN(e);if(i!==gN)return[];var n=e.filter((function(e){return YN(e)&&SZ(e,t)}));return n}function OZ(e,t){return null!==e&&0!==e.length&&(YN(e)?e[0]===t:e.some((function(e){return(YN(e)||qN(e))&&OZ(e,t)})))}var AZ=function(e,t,i){if(Array.isArray(t)){var n=t.length-1;e.empty(),t.forEach(((t,r)=>{(0,o.Z)("<span>").addClass(TN).text(t).appendTo(e),r!==n&&(0,o.Z)("<span>").addClass(SN).text(i&&i.valueSeparator?i.valueSeparator:"|").addClass(IN).appendTo(e)}))}else t?e.text(t):e.text(y.Z.format("dxFilterBuilder-enterValueText"))};function PZ(e){var t=function(e,t){return t?t+"/"+e:e},i=e&&e.getController("headerFilter");return{dataTypes:["string","date","datetime","number","boolean","object"],calculateFilterExpression:function(e,t,i){var n=[],o=e.length-1;return e&&e.forEach((function(e,r){if(YN(e)||qN(e)){var a=sZ(e,i,[],"headerFilter");n.push(a)}else n.push(sZ([t.dataField,"=",e],i,[],"headerFilter"));r!==o&&n.push("or")})),1===n.length&&(n=n[0]),n},editorTemplate:function(t,n){var r=(0,o.Z)("<div>").addClass("dx-filterbuilder-item-value-text").appendTo(n),s=(0,a.l)(!0,{},e.columnOption(t.field.dataField));return AZ(r,t.text&&t.text.split("|")),s.filterType="include",s.filterValues=t.value?t.value.slice():[],i.showHeaderFilterMenuBase({columnElement:r,column:s,apply:function(){var e;e=this.filterValues,t.setValue(e),i.hideHeaderFilterMenu(),t.closeEditor()},onHidden:function(){t.closeEditor()},isFilterBuilder:!0}),n},customizeText:function(n,o){o=o||{};var r=n.value,s=e.columnOption(n.field.dataField),l=s&&s.headerFilter,d=s&&s.lookup,u=o.values||[r];if(l&&l.dataSource||d&&d.dataSource){var c=new ot.BH,h=o.items||new ot.BH;if(!o.items){s=(0,a.l)({},s,{filterType:"include",filterValues:u});var p=i.getDataSource(s);p.paginate=!1;var f=new cu.o(p),g=f.store().key();if(g){var{values:m}=o;if(m&&m.length>1){var _=m.reduce(((e,t)=>(e.length&&e.push("or"),e.push([g,"=",t]),e)),[]);f.filter(_)}else f.filter([g,"=",n.value])}else n.field.calculateDisplayValue&&Xt.Z.log("W1017");o.items=h,f.load().done(h.resolve)}return h.done((e=>{var i=u.indexOf(n.value);c.resolve(function e(i,n){var o=[];return i.forEach((function(i){if(i.items){var r=e(i.items,t(i.text,n));o=o.concat(r)}i.selected&&o.push(t(i.text,n))})),o}(e)[i])})),c}var v=i.getHeaderItemText(r,s,0,e.option("headerFilter"));return v}}}function MZ(e){return(0,a.l)(PZ(e),{name:"anyof",icon:"selectall",caption:y.Z.format("dxFilterBuilder-filterOperationAnyOf")})}function RZ(e){var t=PZ(e);return(0,a.l)({},t,{calculateFilterExpression:function(e,i,n){var o=t.calculateFilterExpression(e,i,n);return o&&0!==o.length?"!"===o[0]?o:["!",o]:null},name:"noneof",icon:"unselectall",caption:y.Z.format("dxFilterBuilder-filterOperationNoneOf")})}var BZ=["=","<>","<","<=",">",">=","notcontains","contains","startswith","endswith","between"],VZ="include",FZ="exclude";function HZ(e){return e.name||e.dataField}function LZ(e){e.forEach((e=>{var t=HZ(e);if(!(0,l.$K)(t)&&e.allowFiltering)throw new Xt.Z.Error("E1049",e.caption)}))}var NZ=KO.Controller.inherit(function(){var e=function(){return{filterType:VZ,filterValues:void 0}},t=function(e){var t=e.filterValues||[];return!fD.getGroupInterval(e)&&!(e.headerFilter&&e.headerFilter.dataSource)||1===t.length&&null===t[0]},i=function(e){var t=e.filterValue;if((0,l.$K)(t)){var i=e.selectedFilterOperation||e.defaultFilterOperation||WN(e),n=[HZ(e),i,e.filterValue];return n}return null},n=function(e){var i,n,o=e.filterValues;return o?(1===o.length&&t(e)&&!Array.isArray(o[0])?(i=e.filterType===FZ?"<>":"=",n=o[0]):(i=e.filterType===FZ?"noneof":"anyof",n=o),[HZ(e),i,n]):null},o=function(i,n,o){var r=function(i,n){if(!i)return e();var o,r=i[1],a=i[2],s=Array.isArray(a);if(!s&&!t(n))return e();switch(r){case"anyof":case"=":o=VZ;break;case"noneof":case"<>":o=FZ;break;default:return e()}return{filterType:o,filterValues:s?a:[a]}}(o,n);i.columnOption(HZ(n),r)},r=function(e,t,i){var n,o=null===i||void 0===i?void 0:i[1],r=null===i||void 0===i?void 0:i[2],a=t.filterOperations||t.defaultFilterOperations;(!a||a.indexOf(o)>=0||o===t.defaultFilterOperation)&&BZ.indexOf(o)>=0&&null!==r?(o!==t.defaultFilterOperation||(0,l.$K)(t.selectedFilterOperation)||(o=t.selectedFilterOperation),n={filterValue:r,selectedFilterOperation:o}):n={filterValue:void 0,selectedFilterOperation:void 0},e.columnOption(HZ(t),n)};return{syncFilterValue:function(){var e=this,t=e.getController("columns"),i=t.getFilteringColumns();this._skipSyncColumnOptions=!0,i.forEach((function(i){var n=kZ(e.option("filterValue"),HZ(i));if(1===n.length){var a=n[0];o(t,i,a),r(t,i,a)}else(0,l.$K)(i.filterValues)&&o(t,i),(0,l.$K)(i.filterValue)&&r(t,i)})),this._skipSyncColumnOptions=!1},_initSync:function(){var e=this.getController("columns").getColumns(),t=this.getController("data"),i=t.pageIndex();if(LZ(e),!this.option("filterValue")){var n=this.getController("columns").getFilteringColumns(),o=this.getFilterValueFromColumns(n);this.option("filterValue",o)}this.syncFilterValue(),t.pageIndex(i)},init:function(){var e=this.getController("data");e.isFilterSyncActive()&&(this.getController("columns").isAllDataTypesDefined()?this._initSync():e.dataSourceChanged.add((()=>this._initSync())))},_getSyncFilterRow:function(e,t){var n=i(t);return(0,l.$K)(n)?DZ(e,n):IZ(e,HZ(t))},_getSyncHeaderFilter:function(e,t){var i=n(t);return i?DZ(e,i):IZ(e,HZ(t))},getFilterValueFromColumns:function(e){if(!this.getController("data").isFilterSyncActive())return null;var t=["and"];return e&&e.forEach((e=>{var o=n(e),r=i(e);o&&UN(o,t),r&&UN(r,t)})),lZ(t)},syncFilterRow:function(e,t){this.option("filterValue",this._getSyncFilterRow(this.option("filterValue"),e))},syncHeaderFilter:function(e){this.option("filterValue",this._getSyncHeaderFilter(this.option("filterValue"),e))},getCustomFilterOperations:function(){var e=this.option("filterBuilder.customOperations")||[];return[MZ(this.component),RZ(this.component)].concat(e)},publicMethods:function(){return["getCustomFilterOperations"]}}}()),ZZ={isFilterSyncActive:function(){var e=this.option("filterSyncEnabled");return"auto"===e?this.option("filterPanel.visible"):e},skipCalculateColumnFilters:function(){var e=this.getController("filterSync");return((0,l.$K)(this.option("filterValue"))||e._skipSyncColumnOptions)&&this.isFilterSyncActive()},_calculateAdditionalFilter:function(){if(!1===this.option("filterPanel.filterEnabled"))return this.callBase();var e=[this.callBase()],t=this.getController("columns").getFilteringColumns(),i=this.option("filterValue");if(this.isFilterSyncActive()){var n=this.getController("headerFilter").getCurrentColumn();n&&i&&(i=IZ(i,HZ(n)))}var o=this.getController("filterSync").getCustomFilterOperations(),r=sZ(i,t,o,"filterBuilder");return r&&e.push(r),FD.combineFilters(e)},_parseColumnPropertyName:function(e){var t=e.match(/.*\.(.*)/);return t?t[1]:null},clearFilter:function(e){this.component.beginUpdate(),arguments.length>0?("filterValue"===e&&this.option("filterValue",null),this.callBase(e)):(this.option("filterValue",null),this.callBase()),this.component.endUpdate()},optionChanged:function(e){switch(e.name){case"filterValue":this._applyFilter(),this.isFilterSyncActive()&&this.getController("filterSync").syncFilterValue(),e.handled=!0;break;case"filterSyncEnabled":e.handled=!0;break;case"columns":if(this.isFilterSyncActive()){var t=this.getController("columns").getColumnByPath(e.fullName),i=this.getController("filterSync");if(t&&!i._skipSyncColumnOptions){var n=this._parseColumnPropertyName(e.fullName);i._skipSyncColumnOptions=!0,"filterType"===n?FZ!==e.value&&FZ!==e.previousValue||i.syncHeaderFilter(t):"filterValues"===n?i.syncHeaderFilter(t):["filterValue","selectedFilterOperation"].indexOf(n)>-1&&i.syncFilterRow(t,t.filterValue),i._skipSyncColumnOptions=!1}}this.callBase(e);break;default:this.callBase(e)}}},$Z={_isHeaderFilterEmpty:function(e){return this.getController("data").isFilterSyncActive()?!OZ(this.option("filterValue"),HZ(e)):this.callBase(e)},_needUpdateFilterIndicators:function(){return!this.getController("data").isFilterSyncActive()},optionChanged:function(e){"filterValue"===e.name?this._updateHeaderFilterIndicators():this.callBase(e)}},WZ={defaultOptions:function(){return{filterValue:null,filterSyncEnabled:"auto"}},controllers:{filterSync:NZ},extenders:{controllers:{data:ZZ},views:{columnHeadersView:$Z}}};zO.registerModule("filterSync",WZ);var KZ="dx-filterbuilder",zZ=KZ+"-group",jZ=zZ+"-item",UZ=zZ+"-content",GZ=zZ+"-operations",qZ=zZ+"-operation",YZ=KZ+"-action",XZ=YZ+"-icon",JZ="dx-icon-plus",QZ="dx-icon-remove",e$=KZ+"-text",t$=KZ+"-item-field",i$=KZ+"-item-operation",n$=KZ+"-item-value",o$=KZ+"-item-value-text",r$=KZ+"-overlay",a$=KZ+"-operations",s$=KZ+"-fields",l$=KZ+"-add-condition",d$="dx-state-active",u$=KZ+"-menu-custom-operation",c$="filterBuilder",h$="dx-state-disabled",p$="tab",f$="enter",g$="escape",m$=[{name:"onEditorPreparing",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onEditorPrepared",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onValueChanged",config:{excludeValidators:["disabled","readOnly"]}}],_$={and:"and",or:"or",notAnd:"!and",notOr:"!or"},v$=P.Z.inherit(lB),y$=G.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{onEditorPreparing:null,onEditorPrepared:null,onValueChanged:null,fields:[],groupOperations:["and","or","notAnd","notOr"],maxGroupLevel:void 0,value:null,allowHierarchicalFields:!1,groupOperationDescriptions:{and:y.Z.format("dxFilterBuilder-and"),or:y.Z.format("dxFilterBuilder-or"),notAnd:y.Z.format("dxFilterBuilder-notAnd"),notOr:y.Z.format("dxFilterBuilder-notOr")},customOperations:[],closePopupOnTargetScroll:!0,filterOperationDescriptions:{between:y.Z.format("dxFilterBuilder-filterOperationBetween"),equal:y.Z.format("dxFilterBuilder-filterOperationEquals"),notEqual:y.Z.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:y.Z.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:y.Z.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:y.Z.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:y.Z.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:y.Z.format("dxFilterBuilder-filterOperationStartsWith"),contains:y.Z.format("dxFilterBuilder-filterOperationContains"),notContains:y.Z.format("dxFilterBuilder-filterOperationNotContains"),endsWith:y.Z.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:y.Z.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:y.Z.format("dxFilterBuilder-filterOperationIsNotBlank")}})},_optionChanged:function(e){switch(e.name){case"closePopupOnTargetScroll":break;case"onEditorPreparing":case"onEditorPrepared":case"onValueChanged":this._initActions();break;case"customOperations":this._initCustomOperations(),this._invalidate();break;case"fields":case"maxGroupLevel":case"groupOperations":case"allowHierarchicalFields":case"groupOperationDescriptions":case"filterOperationDescriptions":this._invalidate();break;case"value":if(e.value!==e.previousValue){var t=this._disableInvalidateForValue;t||(this._initModel(),this._invalidate()),this._disableInvalidateForValue=!1,this.executeAction("onValueChanged",{value:e.value,previousValue:e.previousValue}),this._disableInvalidateForValue=t}break;default:this.callBase(e)}},getFilterExpression:function(){var e=this._getNormalizedFields(),t=(0,a.l)(!0,[],this._model);return sZ(lZ(t),e,this._customOperations,c$)},_getNormalizedFields:function(){return rZ(this.option("fields"))},_updateFilter:function(){this._disableInvalidateForValue=!0;var e=(0,a.l)(!0,[],this._model),t=lZ(e),i=lZ(this._getModel(this.option("value")));JSON.stringify(i)!==JSON.stringify(t)&&this.option("value",t),this._disableInvalidateForValue=!1,this._fireContentReadyAction()},_init:function(){this._initCustomOperations(),this._initModel(),this._initEditorFactory(),this._initActions(),this.callBase()},_initEditorFactory:function(){this._editorFactory=new v$},_initCustomOperations:function(){this._customOperations=TZ(this.option("customOperations"),this.option("filterOperationDescriptions.between"),this)},_getDefaultGroupOperation:function(){var e,t;return null!==(e=null===(t=this.option("groupOperations"))||void 0===t?void 0:t[0])&&void 0!==e?e:_$.and},_getModel:function(e){return oZ(e,this._customOperations,this._getDefaultGroupOperation())},_initModel:function(){this._model=this._getModel(this.option("value"))},_initActions:function(){var e=this;e._actions={},m$.forEach((function(t){var i=(0,a.l)({},t.config);e._actions[t.name]=e._createActionByOption(t.name,i)}))},executeAction:function(e,t){var i=this._actions[e];return i&&i(t)},_initMarkup:function(){this.$element().addClass(KZ),this.callBase(),this._createGroupElementByCriteria(this._model).appendTo(this.$element())},_createConditionElement:function(e,t){return(0,o.Z)("<div>").addClass(zZ).append(this._createConditionItem(e,t))},_createGroupElementByCriteria:function(e,t){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=this._createGroupElement(e,t,i),o=n.find("."+UZ),r=kN(e),a=0;a<r.length;a++){var s=r[a];qN(s)?this._createGroupElementByCriteria(s,e,i+1).appendTo(o):YN(s)&&this._createConditionElement(s,e).appendTo(o)}return n},_createGroupElement:function(e,t,i){var n=(0,o.Z)("<div>").addClass(jZ),r=(0,o.Z)("<div>").addClass(UZ),a=(0,o.Z)("<div>").addClass(zZ).append(n).append(r);return null!=t&&this._createRemoveButton((()=>{zN(t,e),a.remove(),this._updateFilter()})).appendTo(n),this._createGroupOperationButton(e).appendTo(n),this._createAddButton((()=>{var t=jN(this._getDefaultGroupOperation());UN(t,e),this._createGroupElement(t,e,i+1).appendTo(r),this._updateFilter()}),(()=>{var t=this.option("fields")[0],i=KN(t,this._customOperations);UN(i,e),this._createConditionElement(i,e).appendTo(r),this._updateFilter()}),i).appendTo(n),a},_createButton:function(e){return(0,o.Z)("<div>").text(e)},_createGroupOperationButton:function(e){var t=this._getGroupOperations(e),i=MN(e,t),n=i.text,o=t&&t.length<2?this._createButton(n).addClass(h$):this._createButtonWithMenu({caption:n,menu:{items:t,displayExpr:"text",keyExpr:"value",onItemClick:t=>{i!==t.itemData&&(PN(e,t.itemData.value),o.text(t.itemData.text),i=t.itemData,this._updateFilter())},onContentReady:function(e){e.component.selectItem(i)},cssClass:GZ}});return o.addClass(e$).addClass(qZ).attr("tabindex",0)},_createButtonWithMenu:function(e){var t,i=this,n=function(){i.$element().find("."+d$).removeClass(d$),i.$element().find(".dx-overlay .dx-treeview").remove(),i.$element().find(".dx-overlay").remove()},r=this.option("rtlEnabled"),s=r?"right":"left",l=this._createButton(e.caption);return(0,a.l)(e.menu,{focusStateEnabled:!0,selectionMode:"single",onItemClick:(t=e.menu.onItemClick,function(e){t(e),"dxclick"===e.event.type&&n()}),onHiding:function(e){l.removeClass(d$)},position:{my:s+" top",at:s+" bottom",offset:"0 1",of:l,collision:"flip"},animation:null,onHidden:function(){n()},cssClass:r$+" "+e.menu.cssClass,rtlEnabled:r}),e.popup={onShown:function(t){var i=(0,o.Z)(t.component.content()).find(".dx-treeview"),n=i.dxTreeView("instance");re.Z.on(i,"keyup keydown",(function(i){var n=(0,R.EV)(i);("keydown"===i.type&&n===p$||"keyup"===i.type&&(n===g$||n===f$))&&(t.component.hide(),re.Z.trigger(e.menu.position.of,"focus"))})),n.focus(),n.option("focusedElement",null)}},this._subscribeOnClickAndEnterKey(l,(function(){n(),i._createPopupWithTreeView(e,i.$element()),l.addClass(d$)})),l},_hasValueButton:function(e){var t=ZN(this._customOperations,e[1]);return t?!1!==t.hasValue:null!==e[2]},_createOperationButtonWithMenu:function(e,t){var i=this,n=$N(t,this.option("filterOperationDescriptions"),this._customOperations),r=NN(xZ(e),n),a=this._createButtonWithMenu({caption:r.text,menu:{items:n,displayExpr:"text",onItemRendered:function(e){e.itemData.isCustom&&(0,o.Z)(e.itemElement).addClass(u$)},onContentReady:function(e){e.component.selectItem(r)},onItemClick:n=>{if(r!==n.itemData){r=n.itemData,bZ(e,r.value,i._customOperations);var o=a.siblings().filter("."+n$);i._hasValueButton(e)?(0!==o.length&&o.remove(),i._createValueButton(e,t).appendTo(a.parent())):o.remove(),a.html(r.text),this._updateFilter()}},cssClass:a$}}).addClass(e$).addClass(i$).attr("tabindex",0);return a},_createOperationAndValueButtons:function(e,t,i){this._createOperationButtonWithMenu(e,t).appendTo(i),this._hasValueButton(e)&&this._createValueButton(e,t).appendTo(i)},_createFieldButtonWithMenu:function(e,t,i){var n=this,o=this.option("allowHierarchicalFields"),r=_Z(e,o),a=GN(i.name||i.dataField,r),s=function(e,t){return o?CZ(e,t):e.caption},l=this._createButtonWithMenu({caption:s(a,r),menu:{items:r,dataStructure:"plain",keyExpr:"id",parentId:"parentId",displayExpr:"caption",onItemClick:e=>{if(a!==e.itemData){a=e.itemData,t[0]=a.name||a.dataField,t[2]="object"===a.dataType?null:"",bZ(t,WN(a),n._customOperations),l.siblings().filter("."+e$).remove(),n._createOperationAndValueButtons(t,a,l.parent());var i=s(a,e.component.option("items"));l.html(i),this._updateFilter()}},onContentReady:function(e){e.component.selectItem(a)},cssClass:s$}}).addClass(e$).addClass(t$).attr("tabindex",0);return l},_createConditionItem:function(e,t){var i=(0,o.Z)("<div>").addClass(jZ),n=this._getNormalizedFields(),r=GN(e[0],n);return this._createRemoveButton((()=>{zN(t,e);var n=1===i.parent().children().length;n?i.parent().remove():i.remove(),this._updateFilter()})).appendTo(i),this._createFieldButtonWithMenu(n,e,r).appendTo(i),this._createOperationAndValueButtons(e,r,i),i},_getGroupOperations:function(e){var t=this.option("groupOperations"),i=this.option("groupOperationDescriptions");return t&&t.length||(t=[BN(e).replace("!","not")]),t.map((e=>({text:i[e],value:_$[e]})))},_createRemoveButton:function(e){var t=(0,o.Z)("<div>").addClass(XZ).addClass(QZ).addClass(YZ).attr("tabindex",0);return this._subscribeOnClickAndEnterKey(t,e),t},_createAddButton:function(e,t,i){var n,o=this.option("maxGroupLevel");return(0,l.$K)(o)&&i>=o?(n=this._createButton(),this._subscribeOnClickAndEnterKey(n,t)):n=this._createButtonWithMenu({menu:{items:[{caption:y.Z.format("dxFilterBuilder-addCondition"),click:t},{caption:y.Z.format("dxFilterBuilder-addGroup"),click:e}],displayExpr:"caption",onItemClick:function(e){e.itemData.click()},cssClass:l$}}),n.addClass(XZ).addClass(JZ).addClass(YZ).attr("tabindex",0)},_createValueText:function(e,t,i){var n=this,r=(0,o.Z)("<div>").html("&nbsp;").addClass(o$).attr("tabindex",0).appendTo(i),a=e[2],s=ZN(n._customOperations,e[1]);return!s&&t.lookup?dZ(t,a,(function(e){AZ(r,e)})):(0,ot.gx)(pZ(t,a,s)).done((e=>{AZ(r,e,s)})),n._subscribeOnClickAndEnterKey(r,(function(o){"keyup"===o.type&&o.stopPropagation(),n._createValueEditorWithEvents(e,t,i)})),r},_updateConditionValue:function(e,t,i){var n=e[2]!==t;n&&(e[2]=t),i(),this._updateFilter()},_addDocumentKeyUp:function(e,t){var i=!1,n=!1,o=ke["default"].getDocument(),r=e=>{i||n?n=!1:t(e)};re.Z.on(o,"keyup",r);var a=e.find("input");re.Z.on(a,"compositionstart",(()=>{i=!0})),re.Z.on(a,"compositionend",(()=>{i=!1,n=!0})),re.Z.on(a,"keydown",(e=>{229!==e.which&&(n=!1)})),this._documentKeyUpHandler=r},_addDocumentClick:function(e,t){var i=ke["default"].getDocument(),n=i=>{this._isFocusOnEditorParts(e,i.target)||(re.Z.trigger(e.find("input"),"change"),t())};re.Z.on(i,"dxpointerdown",n),this._documentClickHandler=n},_isFocusOnEditorParts:function(e,t){var i=t||ke["default"].getActiveElement();return(0,o.Z)(i).closest(e.children()).length||(0,o.Z)(i).closest(".dx-dropdowneditor-overlay").length},_removeEvents:function(){var e=ke["default"].getDocument();(0,l.$K)(this._documentKeyUpHandler)&&re.Z.off(e,"keyup",this._documentKeyUpHandler),(0,l.$K)(this._documentClickHandler)&&re.Z.off(e,"dxpointerdown",this._documentClickHandler)},_dispose:function(){this._removeEvents(),this.callBase()},_createValueEditorWithEvents:function(e,t,i){var n=e[2],o=()=>(i.empty(),this._removeEvents(),this._createValueText(e,t,i)),r=()=>{this._updateConditionValue(e,n,(function(){o()}))},a={value:""===n?null:n,filterOperation:xZ(e),setValue:function(e){n=null===e?"":e},closeEditor:r,text:i.text()};i.empty();var s=this._createValueEditor(i,t,a);re.Z.trigger(s.find("input").not(":hidden").eq(0),"focus"),this._removeEvents(),this._addDocumentClick(s,r),this._addDocumentKeyUp(s,(t=>{var r=(0,R.EV)(t);if(r===p$){if(this._isFocusOnEditorParts(s))return;this._updateConditionValue(e,n,(function(){o(),t.shiftKey&&re.Z.trigger(i.prev(),"focus")}))}r===g$&&re.Z.trigger(o(),"focus"),r===f$&&this._updateConditionValue(e,n,(function(){re.Z.trigger(o(),"focus")}))})),this._fireContentReadyAction()},_createValueButton:function(e,t){var i=(0,o.Z)("<div>").addClass(e$).addClass(n$);return this._createValueText(e,t,i),i},_createValueEditor:function(e,t,i){var n=(0,o.Z)("<div>").attr("tabindex",0).appendTo(e),r=ZN(this._customOperations,i.filterOperation),s=r&&r.editorTemplate?r.editorTemplate:t.editorTemplate;if(s){var l=this._getTemplate(s);l.render({model:(0,a.l)({field:t},i),container:n})}else this._editorFactory.createEditor.call(this,n,(0,a.l)({},t,i,{parentType:c$}));return n},_createPopupWithTreeView:function(e,t){var i=this,n=(0,o.Z)("<div>").addClass(e.menu.cssClass).appendTo(t);this._createComponent(n,Tc,{onHiding:e.menu.onHiding,onHidden:e.menu.onHidden,rtlEnabled:e.menu.rtlEnabled,position:e.menu.position,animation:e.menu.animation,contentTemplate:function(t){var n=(0,o.Z)("<div>").appendTo(t);i._createComponent(n,VR,e.menu),this.repaint()},_ignoreFunctionValueDeprecation:!0,maxHeight:function(){return AH(e.menu.position.of)},visible:!0,focusStateEnabled:!1,hideOnParentScroll:this.option("closePopupOnTargetScroll"),hideOnOutsideClick:!0,onShown:e.popup.onShown,shading:!1,width:"auto",height:"auto",showTitle:!1,_wrapperClassExternal:e.menu.cssClass})},_subscribeOnClickAndEnterKey:function(e,t){re.Z.on(e,"dxclick",t),re.Z.on(e,"keyup",(function(e){(0,R.EV)(e)===f$&&t(e)}))}});(0,C.Z)("dxFilterBuilder",y$);var C$=y$,b$=C$,x$=KO.View.inherit({_renderCore:function(){this._updatePopupOptions()},_updatePopupOptions:function(){this.option("filterBuilderPopup.visible")?this._initPopup():this._filterBuilderPopup&&this._filterBuilderPopup.hide()},_disposePopup:function(){this._filterBuilderPopup&&(this._filterBuilderPopup.dispose(),this._filterBuilderPopup=void 0),this._filterBuilder&&(this._filterBuilder.dispose(),this._filterBuilder=void 0)},_initPopup:function(){var e=this;e._disposePopup(),e._filterBuilderPopup=e._createComponent(e.element(),Tc,(0,a.l)({title:y.Z.format("dxDataGrid-filterBuilderPopupTitle"),contentTemplate:function(t){return e._getPopupContentTemplate(t)},onOptionChanged:function(t){"visible"===t.name&&e.option("filterBuilderPopup.visible",t.value)},toolbarItems:e._getPopupToolbarItems()},e.option("filterBuilderPopup"),{onHidden:function(t){KA(e),e._disposePopup()}}))},_getPopupContentTemplate:function(e){var t=(0,o.Z)(e),i=(0,o.Z)("<div>").appendTo((0,o.Z)(e));this._filterBuilder=this._createComponent(i,b$,(0,a.l)({value:this.option("filterValue"),fields:this.getController("columns").getFilteringColumns()},this.option("filterBuilder"),{customOperations:this.getController("filterSync").getCustomFilterOperations()})),this._createComponent(t,Lx,{direction:"both"})},_getPopupToolbarItems:function(){var e=this;return[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:y.Z.format("OK"),onClick:function(t){var i=e._filterBuilder.option("value");e.option("filterValue",i),e._filterBuilderPopup.hide()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:y.Z.format("Cancel"),onClick:function(t){e._filterBuilderPopup.hide()}}}]},optionChanged:function(e){switch(e.name){case"filterBuilder":case"filterBuilderPopup":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}}}),w$={defaultOptions:function(){return{filterBuilder:{groupOperationDescriptions:{and:y.Z.format("dxFilterBuilder-and"),or:y.Z.format("dxFilterBuilder-or"),notAnd:y.Z.format("dxFilterBuilder-notAnd"),notOr:y.Z.format("dxFilterBuilder-notOr")},filterOperationDescriptions:{between:y.Z.format("dxFilterBuilder-filterOperationBetween"),equal:y.Z.format("dxFilterBuilder-filterOperationEquals"),notEqual:y.Z.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:y.Z.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:y.Z.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:y.Z.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:y.Z.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:y.Z.format("dxFilterBuilder-filterOperationStartsWith"),contains:y.Z.format("dxFilterBuilder-filterOperationContains"),notContains:y.Z.format("dxFilterBuilder-filterOperationNotContains"),endsWith:y.Z.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:y.Z.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:y.Z.format("dxFilterBuilder-filterOperationIsNotBlank")}},filterBuilderPopup:{}}},views:{filterBuilderView:x$}};zO.registerModule("filterBuilder",w$);var T$="filter-panel",S$=T$+"-text",I$=T$+"-checkbox",E$=T$+"-clear-filter",D$=T$+"-left",k$="filterPanel",O$=KO.View.inherit({isVisible:function(){return this.option("filterPanel.visible")&&this.getController("data").dataSource()},init:function(){this.getController("data").dataSourceChanged.add((()=>this.render()))},_renderCore:function(){var e=this.element();e.empty().addClass(this.addWidgetPrefix(T$));var t=(0,o.Z)("<div>").addClass(this.addWidgetPrefix(D$)).appendTo(e);this.option("filterValue")||this._filterValueBuffer?(t.append(this._getCheckElement()).append(this._getFilterElement()).append(this._getTextElement()),e.append(this._getRemoveButtonElement())):t.append(this._getFilterElement()).append(this._getTextElement())},_getCheckElement:function(){var e=this,t=(0,o.Z)("<div>").addClass(this.addWidgetPrefix(I$));return e._createComponent(t,ry,{value:e.option("filterPanel.filterEnabled"),onValueChanged:function(t){e.option("filterPanel.filterEnabled",t.value)}}),t.attr("title",this.option("filterPanel.texts.filterEnabledHint")),t},_getFilterElement:function(){var e=this,t=(0,o.Z)("<div>").addClass("dx-icon-filter");return re.Z.on(t,"click",(()=>e._showFilterBuilder())),jA("filterPanel",e,t,void 0,(()=>e._showFilterBuilder())),e._addTabIndexToElement(t),t},_getTextElement:function(){var e,t=this,i=(0,o.Z)("<div>").addClass(t.addWidgetPrefix(S$)),n=t.option("filterValue");return n?(0,ot.gx)(t.getFilterText(n,t.getController("filterSync").getCustomFilterOperations())).done((function(e){var o=t.option("filterPanel.customizeText");if(o){var r=o({component:t.component,filterValue:n,text:e});"string"===typeof r&&(e=r)}i.text(e)})):(e=t.option("filterPanel.texts.createFilter"),i.text(e)),re.Z.on(i,"click",(()=>t._showFilterBuilder())),jA("filterPanel",t,i,void 0,(()=>t._showFilterBuilder())),t._addTabIndexToElement(i),i},_showFilterBuilder:function(){this.option("filterBuilderPopup.visible",!0)},_getRemoveButtonElement:function(){var e=this,t=()=>e.option("filterValue",null),i=(0,o.Z)("<div>").addClass(e.addWidgetPrefix(E$)).text(e.option("filterPanel.texts.clearFilter"));return re.Z.on(i,"click",t),jA("filterPanel",this,i,void 0,t),e._addTabIndexToElement(i),i},_addTabIndexToElement:function(e){if(!this.option("useLegacyKeyboardNavigation")){var t=this.option("tabindex")||0;e.attr("tabindex",t)}},optionChanged:function(e){switch(e.name){case"filterValue":this._invalidate(),this.option("filterPanel.filterEnabled",!0),e.handled=!0;break;case"filterPanel":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}},_getConditionText:function(e,t,i){var n="[".concat(e,"] ").concat(t);return(0,l.$K)(i)&&(n+=i),n},_getValueMaskedText:function(e){return Array.isArray(e)?"('".concat(e.join("', '"),"')"):" '".concat(e,"'")},_getValueText:function(e,t,i){var n=new ot.BH,o=t&&t.customizeText;if((0,l.$K)(i)||o)if(!o&&e.lookup)dZ(e,i,(e=>{n.resolve(this._getValueMaskedText(e))}));else{var r=Array.isArray(i)?i:FD.getDisplayValue(e,i);(0,ot.gx)(pZ(e,r,t,k$)).done((e=>{n.resolve(this._getValueMaskedText(e))}))}else n.resolve("");return n.promise()},getConditionText:function(e,t){var i,n=this,o=e[1],r=new ot.BH,a=ZN(t.customOperations,o),s=GN(e[0],t.columns),l=s.caption||"",d=e[2];return i=a?a.caption||(0,sn.GK)(a.name):LN(null===d?"="===o?"isblank":"isnotblank":o,t.filterOperationDescriptions),this._getValueText(s,a,d).done((e=>{r.resolve(n._getConditionText(l,i,e))})),r},getGroupText:function(e,t,i){var n=this,o=new ot.BH,r=[],a=BN(e);return e.forEach((e=>{YN(e)?r.push(n.getConditionText(e,t)):qN(e)&&r.push(n.getGroupText(e,t,!0))})),ot.gx.apply(this,r).done((function(){for(var e,n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];if("!"===a[0]){var l=t.groupOperationDescriptions["not"+a.substring(1,2).toUpperCase()+a.substring(2)].split(" ");e="".concat(l[0]," ").concat(r[0])}else e=r.join(" ".concat(t.groupOperationDescriptions[a]," "));i&&(e="(".concat(e,")")),o.resolve(e)})),o},getFilterText:function(e,t){var i={customOperations:t,columns:this.getController("columns").getFilteringColumns(),filterOperationDescriptions:this.option("filterBuilder.filterOperationDescriptions"),groupOperationDescriptions:this.option("filterBuilder.groupOperationDescriptions")};return YN(e)?this.getConditionText(e,i):this.getGroupText(e,i)}}),A$={defaultOptions:function(){return{filterPanel:{visible:!1,filterEnabled:!0,texts:{createFilter:y.Z.format("dxDataGrid-filterPanelCreateFilter"),clearFilter:y.Z.format("dxDataGrid-filterPanelClearFilter"),filterEnabledHint:y.Z.format("dxDataGrid-filterPanelFilterEnabledHint")}}}},views:{filterPanelView:O$},extenders:{controllers:{data:{optionChanged:function(e){switch(e.name){case"filterPanel":this._applyFilter(),e.handled=!0;break;default:this.callBase(e)}}}}}};zO.registerModule("filterPanel",A$);class P$ extends Os{_optionChanged(e){switch(e.name){case"pageIndex":var t=this.option("pageIndexChanged");t&&t(e.value);break;case"pageSize":var i=this.option("pageSizeChanged");i&&i(e.value)}super._optionChanged(e)}}function M$(e,t){var i,n=null!==(i=Hv(t))&&void 0!==i?i:{};return $x(n[e])}function R$(e){var t=M$("paddingLeft",e)+M$("paddingRight",e),i=M$("width",e);return i-t}function B$(e){var t=M$("marginLeft",e)+M$("marginRight",e),i=M$("width",e);return t+i}function V$(e){return M$("minWidth",e)}var F$=["contentTemplate","pagerProps"],H$=e=>{var{contentAttributes:t,infoTextRef:i,infoTextVisible:n,isLargeDisplayMode:o,pageSizesRef:r,pagesRef:a,parentRef:s,props:{contentTemplate:l}}=e;return l((0,hn.Z)({rootElementRef:s,pageSizesRef:r,infoTextRef:i,pagesRef:a,infoTextVisible:n,isLargeDisplayMode:o},t))};function L$(e){var{pageSizes:t,pages:i,parent:n}=e;return n-(t+i)>0}function N$(e){var{info:t,pageSizes:i,pages:n,parent:o}=e,r=i+n+t;return o-r>0}function Z$(e){var{info:t,pageSizes:i,pages:n,parent:o}=e,r=R$(o),a=B$(i),s=B$(t),l=B$(n);return{parent:r,pageSizes:a,info:s+M$("marginLeft",t)+M$("marginRight",t),pages:l}}var $$={},W$=e=>e&&(e.defaultProps?t=>Po(ko(2,e,(0,hn.Z)({},t))):e);class K$ extends Ha{constructor(e){super(e),this.parentRef=kr(),this.pageSizesRef=kr(),this.infoTextRef=kr(),this.pagesRef=kr(),this.actualIsLargeDisplayMode=!0,this.actualInfoTextVisible=!0,this.state={infoTextVisible:!0,isLargeDisplayMode:!0},this.subscribeToResize=this.subscribeToResize.bind(this),this.effectUpdateChildProps=this.effectUpdateChildProps.bind(this),this.updateAdaptivityProps=this.updateAdaptivityProps.bind(this)}createEffects(){return[new $a(this.subscribeToResize,[this.state.infoTextVisible,this.state.isLargeDisplayMode]),new $a(this.effectUpdateChildProps,[this.props,this.state.infoTextVisible,this.state.isLargeDisplayMode,this.props.pagerProps,this.props.contentTemplate])]}updateEffects(){var e,t;null===(e=this._effects[0])||void 0===e||e.update([this.state.infoTextVisible,this.state.isLargeDisplayMode]),null===(t=this._effects[1])||void 0===t||t.update([this.props,this.state.infoTextVisible,this.state.isLargeDisplayMode,this.props.pagerProps,this.props.contentTemplate])}subscribeToResize(){var e=()=>{this.parentWidth>0&&this.updateAdaptivityProps()};return jl.Z.add(e),()=>{jl.Z.remove(e)}}effectUpdateChildProps(){this.parentWidth>0&&this.updateAdaptivityProps()}get contentAttributes(){var{className:e,displayMode:t,gridCompatibility:i,hasKnownLastPage:n,infoText:o,label:r,lightModeEnabled:a,maxPagesCount:s,onKeyDown:l,pageCount:d,pageIndex:u,pageIndexChange:c,pageSize:h,pageSizeChange:p,pageSizes:f,pagesCountText:g,pagesNavigatorVisible:m,rtlEnabled:_,showInfo:v,showNavigationButtons:y,showPageSizes:C,totalCount:b,visible:x}=this.props.pagerProps;return(0,hn.Z)({},this.restAttributes,{pageSize:h,pageIndex:u,pageIndexChange:c,pageSizeChange:p,gridCompatibility:i,className:e,showInfo:v,infoText:o,lightModeEnabled:a,displayMode:t,maxPagesCount:s,pageCount:d,pagesCountText:g,visible:x,hasKnownLastPage:n,pagesNavigatorVisible:m,showPageSizes:C,pageSizes:f,rtlEnabled:_,showNavigationButtons:y,totalCount:b,onKeyDown:l,label:r})}get parentWidth(){return this.parentRef.current?B$(this.parentRef.current):0}updateAdaptivityProps(){var e=Z$({parent:this.parentRef.current,pageSizes:this.pageSizesRef.current,info:this.infoTextRef.current,pages:this.pagesRef.current});if(this.actualInfoTextVisible===this.state.infoTextVisible&&this.actualIsLargeDisplayMode===this.state.isLargeDisplayMode){var t=!(0,l.$K)(this.elementsWidth);t&&(this.elementsWidth={}),(t||this.state.isLargeDisplayMode)&&(this.elementsWidth.pageSizes=e.pageSizes,this.elementsWidth.pages=e.pages),(t||this.state.infoTextVisible)&&(this.elementsWidth.info=e.info),this.actualIsLargeDisplayMode=L$((0,hn.Z)({parent:e.parent},{pageSizes:this.elementsWidth.pageSizes,pages:this.elementsWidth.pages})),this.actualInfoTextVisible=N$((0,hn.Z)({},e,{info:this.elementsWidth.info})),this.setState((e=>({infoTextVisible:this.actualInfoTextVisible}))),this.setState((e=>({isLargeDisplayMode:this.actualIsLargeDisplayMode})))}}get restAttributes(){var e=this.props,t=(0,Vs.Z)(e,F$);return t}render(){var e=this.props;return H$({props:(0,hn.Z)({},e,{contentTemplate:W$(e.contentTemplate)}),infoTextVisible:this.state.infoTextVisible,isLargeDisplayMode:this.state.isLargeDisplayMode,parentRef:this.parentRef,pageSizesRef:this.pageSizesRef,infoTextRef:this.infoTextRef,pagesRef:this.pagesRef,contentAttributes:this.contentAttributes,parentWidth:this.parentWidth,updateAdaptivityProps:this.updateAdaptivityProps,restAttributes:this.restAttributes})}}K$.defaultProps=$$;var z$={gridCompatibility:!0,showInfo:!1,displayMode:"adaptive",maxPagesCount:10,pageCount:10,visible:!0,hasKnownLastPage:!0,pagesNavigatorVisible:"auto",showPageSizes:!0,pageSizes:Object.freeze([5,10]),showNavigationButtons:!1,totalCount:0,get label(){return y.Z.format("dxPager-ariaLabel")}},j$=Object.create(Object.prototype,(0,hn.Z)(Object.getOwnPropertyDescriptors(z$),Object.getOwnPropertyDescriptors({defaultPageSize:5,pageSizeChange:()=>{},defaultPageIndex:1,pageIndexChange:()=>{}}))),U$=Object.create(Object.prototype,(0,hn.Z)(Object.getOwnPropertyDescriptors(z$),Object.getOwnPropertyDescriptors({pageSize:5,pageIndex:1}))),G$=["infoText","pageCount","pageIndex","rootElementRef","totalCount"],q$="dx-info",Y$=e=>{var{props:{rootElementRef:t},text:i}=e;return So(1,"div",q$,i,0,null,null,t)},X$={get pageIndex(){return U$.pageIndex},get pageCount(){return U$.pageCount},get totalCount(){return U$.totalCount}};class J$ extends Fa{constructor(e){super(e),this.state={}}get infoText(){var e;return(null!==(e=this.props.infoText)&&void 0!==e?e:"")||y.Z.getFormatter("dxPager-infoText")()}get text(){var{pageCount:e,pageIndex:t,totalCount:i}=this.props;return(0,Ic.WU)(this.infoText,(t+1).toString(),e.toString(),i.toString())}get restAttributes(){var e=this.props,t=(0,Vs.Z)(e,G$);return t}render(){var e=this.props;return Y$({props:(0,hn.Z)({},e),infoText:this.infoText,text:this.text,restAttributes:this.restAttributes})}}J$.defaultProps=X$;var Q$=Za(void 0),eW=["children","className","label","onClick","selected","tabIndex"],tW=e=>{var{props:{children:t,className:i,label:n,selected:o,tabIndex:r},widgetRef:a}=e;return So(1,"div",i,t,0,{tabIndex:r,role:"button","aria-label":n,"aria-current":o?"page":void 0},null,a)},iW={className:"",label:"",tabIndex:0,selected:!1};class nW extends Ha{constructor(e){super(e),this.state={},this.widgetRef=kr(),this.keyboardEffect=this.keyboardEffect.bind(this),this.subscribeToClick=this.subscribeToClick.bind(this)}get keyboardContext(){return"KeyboardActionContext"in this.context?this.context.KeyboardActionContext:Q$}createEffects(){return[new $a(this.keyboardEffect,[this.keyboardContext,this.props.onClick]),new $a(this.subscribeToClick,[this.props.onClick])]}updateEffects(){var e,t;null===(e=this._effects[0])||void 0===e||e.update([this.keyboardContext,this.props.onClick]),null===(t=this._effects[1])||void 0===t||t.update([this.props.onClick])}keyboardEffect(){return this.keyboardContext.registerKeyboardAction(this.widgetRef.current,this.props.onClick)}subscribeToClick(){return Ol(this.widgetRef.current,this.props.onClick)}get restAttributes(){var e=this.props,t=(0,Vs.Z)(e,eW);return t}render(){var e=this.props;return tW({props:(0,hn.Z)({},e),widgetRef:this.widgetRef,keyboardContext:this.keyboardContext,restAttributes:this.restAttributes})}}nW.defaultProps=iW;var oW="dx-pager",rW="dx-light-mode",aW="dx-pages",sW="dx-page-indexes",lW="dx-page",dW="dx-selection",uW="dx-page-size",cW="dx-page-sizes",hW="".concat(uW," ").concat(dW),pW="dx-first-child",fW=["className","index","onClick","selected"],gW=e=>{var{className:t,label:i,props:{onClick:n,selected:o},value:r}=e;return ko(2,nW,{className:t,label:i,onClick:n,selected:o,children:r})},mW={index:0,selected:!1,className:lW};class _W extends Fa{constructor(e){super(e),this.state={}}get label(){return(0,Ic.WU)(y.Z.getFormatter("dxPager-page"),this.value)}get value(){return this.props.index+1}get className(){var{selected:e}=this.props;return Hs({["".concat(this.props.className)]:!!this.props.className,[dW]:!!e})}get restAttributes(){var e=this.props,t=(0,Vs.Z)(e,fW);return t}render(){var e=this.props;return gW({props:(0,hn.Z)({},e),label:this.label,value:this.value,className:this.className,restAttributes:this.restAttributes})}}_W.defaultProps=mW;var vW=["pageIndexes"],yW=["maxPagesCount","pageCount","pageIndex","pageIndexChange"],CW="dx-separator",bW=e=>{var{pages:t}=e,i=t.map((e=>{var{key:t,pageProps:i}=e;return i?ko(2,_W,{index:i.index,selected:i.selected,onClick:i.onClick},t):So(1,"div",CW,". . .",16,null,t)}));return Ao(i,0)},xW=4;function wW(e,t,i){return 1===e?"high":e+t===i-1?"low":"both"}function TW(e,t,i){var n=[],o=[];switch(i){case"none":n=[...e];break;case"both":n=[0,"low",...e,"high",t-1],o=e.slice(1,-1);break;case"high":n=[0,...e,"high",t-1],o=e.slice(0,-1);break;case"low":n=[0,"low",...e,t-1],o=e.slice(1)}return{slidingWindowIndexes:e,indexesForReuse:o,pageIndexes:n}}function SW(e,t,i,n){for(var o=[],r=0;r<t;r+=1)o.push(r+e);return TW(o,i,n)}var IW={get pageIndex(){return U$.pageIndex},get maxPagesCount(){return U$.maxPagesCount},get pageCount(){return U$.pageCount}};class EW extends Fa{constructor(e){super(e),this.state={},this.canReuseSlidingWindow=this.canReuseSlidingWindow.bind(this),this.generatePageIndexes=this.generatePageIndexes.bind(this),this.isSlidingWindowMode=this.isSlidingWindowMode.bind(this),this.onPageClick=this.onPageClick.bind(this)}get config(){return"ConfigContext"in this.context?this.context.ConfigContext:Ll}get slidingWindowState(){var e=this.slidingWindowStateHolder;return e||{indexesForReuse:[],slidingWindowIndexes:[]}}canReuseSlidingWindow(e,t){var{indexesForReuse:i}=this.slidingWindowState,n=i.slice(-1)[0]<e-1,o=i.includes(t);return n&&o}generatePageIndexes(){var{pageCount:e,pageIndex:t}=this.props,i=0,{slidingWindowIndexes:n}=this.slidingWindowState;i=t===n[0]?t-1:t===n[n.length-1]?t+2-xW:t<xW?1:t>=e-xW?e-xW-1:t-1;var o=xW,r=wW(i,o,e),a=SW(i,o,e,r),{pageIndexes:s}=a,l=(0,Vs.Z)(a,vW);return this.slidingWindowStateHolder=l,s}isSlidingWindowMode(){var{maxPagesCount:e,pageCount:t}=this.props;return t<=xW||t<=e}onPageClick(e){this.props.pageIndexChange(e)}get pageIndexes(){var{pageCount:e}=this.props;if(this.isSlidingWindowMode())return SW(0,e,e,"none").pageIndexes;if(this.canReuseSlidingWindow(e,this.props.pageIndex)){var{slidingWindowIndexes:t}=this.slidingWindowState,i=wW(t[0],xW,e);return TW(t,e,i).pageIndexes}return this.generatePageIndexes()}get pages(){var e,{pageIndex:t}=this.props,i=e=>{var i="low"===e||"high"===e?null:{index:e,onClick:()=>this.onPageClick(e),selected:t===e};return{key:e.toString(),pageProps:i}},n=null!==(e=this.config)&&void 0!==e&&e.rtlEnabled?[...this.pageIndexes].reverse():this.pageIndexes;return n.map((e=>i(e)))}get restAttributes(){var e=this.props,t=(0,Vs.Z)(e,yW);return t}render(){var e=this.props;return bW({props:(0,hn.Z)({},e),config:this.config,pageIndexes:this.pageIndexes,pages:this.pages,restAttributes:this.restAttributes})}}EW.defaultProps=IW;var DW={hoverStateEnabled:!0,activeStateEnabled:!0,get focusStateEnabled(){return"desktop"===w.Z.real().deviceType&&!w.Z.isSimulator()}},kW={label:"",get labelMode(){return(0,x.x2)((0,x.Vk)())?"floating":"static"}},OW=["accessKey","activeStateEnabled","className","defaultValue","disabled","focusStateEnabled","height","hint","hoverStateEnabled","invalidValueMessage","isValid","label","labelMode","max","min","mode","name","onClick","onFocusIn","onKeyDown","readOnly","rtlEnabled","showSpinButtons","step","tabIndex","useLargeSpinButtons","validationError","validationErrors","validationMessageMode","validationMessagePosition","validationStatus","value","valueChange","visible","width"],AW=0,PW=e=>{var{componentProps:t,restAttributes:i}=e;return Po(ko(2,Ev,(0,hn.Z)({componentType:rv,componentProps:t,templateNames:[]},i)))},MW=Object.create(Object.prototype,(0,hn.Z)(Object.getOwnPropertyDescriptors(Bv),Object.getOwnPropertyDescriptors({defaultValue:AW,isReactComponentWrapper:!0}))),RW={get defaultValue(){return MW.defaultValue},get readOnly(){return MW.readOnly},get name(){return MW.name},get validationError(){return MW.validationError},get validationErrors(){return MW.validationErrors},get validationMessageMode(){return MW.validationMessageMode},get validationMessagePosition(){return MW.validationMessagePosition},get validationStatus(){return MW.validationStatus},get isValid(){return MW.isValid},get className(){return MW.className},get activeStateEnabled(){return DW.activeStateEnabled},get disabled(){return MW.disabled},get focusStateEnabled(){return DW.focusStateEnabled},get hoverStateEnabled(){return DW.hoverStateEnabled},get tabIndex(){return MW.tabIndex},get visible(){return MW.visible},get label(){return kW.label},get labelMode(){return kW.labelMode},isReactComponentWrapper:!0};class BW extends Fa{constructor(e){super(e),this.state={value:void 0!==this.props.value?this.props.value:this.props.defaultValue}}get componentProps(){return(0,hn.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value})}get restAttributes(){var e=(0,hn.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),t=(0,Vs.Z)(e,OW);return t}render(){var e=this.props;return PW({props:(0,hn.Z)({},e,{value:void 0!==this.props.value?this.props.value:this.state.value}),componentProps:this.componentProps,restAttributes:this.restAttributes})}}BW.defaultProps=RW;var VW=10;function FW(e,t){return e+VW*Math.max(...t).toString().length}var HW=["pageCount","pageIndex","pageIndexChange","pagesCountText"],LW="".concat(q$," dx-info-text"),NW="dx-page-index",ZW="dx-light-pages",$W="dx-pages-count",WW=e=>{var{pageIndexRef:t,pagesCountText:i,props:{pageCount:n},selectLastPageIndex:o,value:r,valueChange:a,width:s}=e;return So(1,"div",ZW,[ko(2,BW,{className:NW,min:1,max:n,width:s,value:r,valueChange:a}),So(1,"span",LW,i,0),ko(2,_W,{className:$W,selected:!1,index:n-1,onClick:o})],4,null,null,t)},KW={get pageIndex(){return U$.pageIndex},get pageCount(){return U$.pageCount}};class zW extends Ha{constructor(e){super(e),this.pageIndexRef=kr(),this.state={minWidth:10},this.updateWidth=this.updateWidth.bind(this),this.selectLastPageIndex=this.selectLastPageIndex.bind(this),this.valueChange=this.valueChange.bind(this)}createEffects(){return[new $a(this.updateWidth,[this.state.minWidth])]}updateEffects(){var e;null===(e=this._effects[0])||void 0===e||e.update([this.state.minWidth])}updateWidth(){var e,t=null===(e=this.pageIndexRef.current)||void 0===e?void 0:e.querySelector(".".concat(NW));this.setState((e=>({minWidth:t&&V$(t)||e.minWidth})))}get value(){return this.props.pageIndex+1}get width(){var{pageCount:e}=this.props;return FW(this.state.minWidth,[e])}get pagesCountText(){var e;return(null!==(e=this.props.pagesCountText)&&void 0!==e?e:"")||y.Z.getFormatter("dxPager-pagesCountText")()}selectLastPageIndex(){this.props.pageIndexChange(this.props.pageCount-1)}valueChange(e){this.props.pageIndexChange(e-1)}get restAttributes(){var e=this.props,t=(0,Vs.Z)(e,HW);return t}render(){var e=this.props;return WW({props:(0,hn.Z)({},e),pageIndexRef:this.pageIndexRef,value:this.value,width:this.width,pagesCountText:this.pagesCountText,selectLastPageIndex:this.selectLastPageIndex,valueChange:this.valueChange,restAttributes:this.restAttributes})}}zW.defaultProps=KW;var jW=["hasKnownLastPage","isLargeDisplayMode","maxPagesCount","pageCount","pageIndex","pageIndexChange","pagesCountText","showNavigationButtons","totalCount"],UW="dx-navigate-button",GW="dx-prev-button",qW="dx-next-button",YW="dx-button-disable",XW=()=>y.Z.getFormatter("dxPager-nextPage")(),JW=()=>y.Z.getFormatter("dxPager-prevPage")(),QW={nextEnabledClass:"".concat(UW," ").concat(qW),prevEnabledClass:"".concat(UW," ").concat(GW),nextDisabledClass:"".concat(YW," ").concat(UW," ").concat(qW),prevDisabledClass:"".concat(YW," ").concat(UW," ").concat(GW)},eK={next:"prev",prev:"next"},tK=e=>{var{nextButtonProps:t,pageIndexChange:i,prevButtonProps:n,props:{isLargeDisplayMode:o,maxPagesCount:r,pageCount:a,pageIndex:s,pagesCountText:l},renderNextButton:d,renderPrevButton:u}=e;return Ao([u&&ko(2,nW,{label:JW(),className:n.className,tabIndex:n.tabIndex,onClick:n.navigate}),o&&ko(2,EW,{maxPagesCount:r,pageCount:a,pageIndex:s,pageIndexChange:i}),!o&&ko(2,zW,{pageCount:a,pageIndex:s,pageIndexChange:i,pagesCountText:l}),d&&ko(2,nW,{label:XW(),className:t.className,tabIndex:t.tabIndex,onClick:t.navigate})],0)};function iK(e){return"next"===e?1:-1}var nK={isLargeDisplayMode:!0},oK={get pageIndex(){return U$.pageIndex},get maxPagesCount(){return U$.maxPagesCount},get pageCount(){return U$.pageCount},get hasKnownLastPage(){return U$.hasKnownLastPage},get showNavigationButtons(){return U$.showNavigationButtons},get totalCount(){return U$.totalCount},get isLargeDisplayMode(){return nK.isLargeDisplayMode}};class rK extends Fa{constructor(e){super(e),this.state={},this.__getterCache={},this.pageIndexChange=this.pageIndexChange.bind(this),this.getButtonProps=this.getButtonProps.bind(this),this.canNavigateToPage=this.canNavigateToPage.bind(this),this.getNextPageIndex=this.getNextPageIndex.bind(this),this.canNavigateTo=this.canNavigateTo.bind(this),this.navigateToPage=this.navigateToPage.bind(this)}get config(){return"ConfigContext"in this.context?this.context.ConfigContext:Ll}pageIndexChange(e){this.canNavigateToPage(e)&&this.props.pageIndexChange(e)}getButtonProps(e){var t,i=null!==(t=this.config)&&void 0!==t&&t.rtlEnabled?eK[e]:e,n=this.canNavigateTo(i),o=QW["".concat(e).concat(n?"Enabled":"Disabled","Class")];return{className:o,tabIndex:n?0:-1,navigate:()=>this.navigateToPage(i)}}canNavigateToPage(e){return this.props.hasKnownLastPage?e>=0&&e<=this.props.pageCount-1:e>=0}getNextPageIndex(e){return this.props.pageIndex+iK(e)}canNavigateTo(e){return this.canNavigateToPage(this.getNextPageIndex(e))}navigateToPage(e){this.pageIndexChange(this.getNextPageIndex(e))}get renderPrevButton(){var{isLargeDisplayMode:e,showNavigationButtons:t}=this.props;return!e||t}get renderNextButton(){return this.renderPrevButton||!this.props.hasKnownLastPage}get prevButtonProps(){return void 0!==this.__getterCache.prevButtonProps?this.__getterCache.prevButtonProps:this.__getterCache.prevButtonProps=(()=>this.getButtonProps("prev"))()}get nextButtonProps(){return void 0!==this.__getterCache.nextButtonProps?this.__getterCache.nextButtonProps:this.__getterCache.nextButtonProps=(()=>this.getButtonProps("next"))()}get restAttributes(){var e=this.props,t=(0,Vs.Z)(e,jW);return t}componentWillUpdate(e,t,i){this.context.ConfigContext===i.ConfigContext&&this.props.hasKnownLastPage===e.hasKnownLastPage&&this.props.pageCount===e.pageCount&&this.props.pageIndex===e.pageIndex&&this.props.pageIndexChange===e.pageIndexChange||(this.__getterCache.prevButtonProps=void 0),this.context.ConfigContext===i.ConfigContext&&this.props.hasKnownLastPage===e.hasKnownLastPage&&this.props.pageCount===e.pageCount&&this.props.pageIndex===e.pageIndex&&this.props.pageIndexChange===e.pageIndexChange||(this.__getterCache.nextButtonProps=void 0)}render(){var e=this.props;return tK({props:(0,hn.Z)({},e),config:this.config,pageIndexChange:this.pageIndexChange,renderPrevButton:this.renderPrevButton,renderNextButton:this.renderNextButton,prevButtonProps:this.prevButtonProps,nextButtonProps:this.nextButtonProps,restAttributes:this.restAttributes})}}rK.defaultProps=oK;var aK=["accessKey","activeStateEnabled","className","dataSource","defaultValue","disabled","displayExpr","focusStateEnabled","height","hint","hoverStateEnabled","isValid","label","labelMode","name","onClick","onFocusIn","onKeyDown","placeholder","readOnly","rtlEnabled","searchEnabled","tabIndex","validationError","validationErrors","validationMessageMode","validationMessagePosition","validationStatus","value","valueChange","valueExpr","visible","width"],sK=e=>{var{componentProps:t,restAttributes:i}=e;return Po(ko(2,Ev,(0,hn.Z)({componentType:uT,componentProps:t,templateNames:["dropDownButtonTemplate","groupTemplate","itemTemplate"]},i)))},lK=Object.create(Object.prototype,(0,hn.Z)(Object.getOwnPropertyDescriptors(Bv),Object.getOwnPropertyDescriptors({placeholder:"",hoverStateEnabled:!0,searchEnabled:!1,defaultValue:null,isReactComponentWrapper:!0}))),dK={get placeholder(){return lK.placeholder},get hoverStateEnabled(){return DW.hoverStateEnabled},get searchEnabled(){return lK.searchEnabled},get defaultValue(){return lK.defaultValue},get readOnly(){return lK.readOnly},get name(){return lK.name},get validationError(){return lK.validationError},get validationErrors(){return lK.validationErrors},get validationMessageMode(){return lK.validationMessageMode},get validationMessagePosition(){return lK.validationMessagePosition},get validationStatus(){return lK.validationStatus},get isValid(){return lK.isValid},get className(){return lK.className},get activeStateEnabled(){return DW.activeStateEnabled},get disabled(){return lK.disabled},get focusStateEnabled(){return DW.focusStateEnabled},get tabIndex(){return lK.tabIndex},get visible(){return lK.visible},get label(){return kW.label},get labelMode(){return kW.labelMode},isReactComponentWrapper:!0};class uK extends Fa{constructor(e){super(e),this.state={value:void 0!==this.props.value?this.props.value:this.props.defaultValue}}get componentProps(){return(0,hn.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value})}get restAttributes(){var e=(0,hn.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),t=(0,Vs.Z)(e,aK);return t}render(){var e=this.props;return sK({props:(0,hn.Z)({},e,{value:void 0!==this.props.value?this.props.value:this.state.value}),componentProps:this.componentProps,restAttributes:this.restAttributes})}}uK.defaultProps=dK;var cK=["pageSize","pageSizeChange","pageSizes","parentRef"],hK=e=>{var{props:{pageSize:t,pageSizeChange:i,pageSizes:n},width:o}=e;return ko(2,uK,{displayExpr:"text",valueExpr:"value",dataSource:n,value:t,valueChange:i,width:o})},pK={get pageSize(){return U$.pageSize}};class fK extends Ha{constructor(e){super(e),this.state={minWidth:10},this.updateWidth=this.updateWidth.bind(this)}createEffects(){return[new $a(this.updateWidth,[this.props,this.state.minWidth,this.props.pageSize,this.props.pageSizeChange,this.props.pageSizes])]}updateEffects(){var e;null===(e=this._effects[0])||void 0===e||e.update([this.props,this.state.minWidth,this.props.pageSize,this.props.pageSizeChange,this.props.pageSizes])}updateWidth(){this.setState((e=>({minWidth:V$(this.props.parentRef.current)||e.minWidth})))}get width(){return FW(this.state.minWidth,this.props.pageSizes.map((e=>e.value)))}get restAttributes(){var e=this.props,t=(0,Vs.Z)(e,cK);return t}render(){var e=this.props;return hK({props:(0,hn.Z)({},e),width:this.width,restAttributes:this.restAttributes})}}fK.defaultProps=pK;var gK=["pageSize","pageSizeChange","pageSizes"],mK=e=>{var{pageSizesText:t}=e;return Ao(t.map((e=>{var{className:t,click:i,label:n,text:o}=e;return ko(2,nW,{className:t,label:n,onClick:i,children:o},o)})),0)},_K={get pageSize(){return U$.pageSize}};class vK extends Fa{constructor(e){super(e),this.state={},this.__getterCache={},this.onPageSizeChange=this.onPageSizeChange.bind(this)}get pageSizesText(){return void 0!==this.__getterCache.pageSizesText?this.__getterCache.pageSizesText:this.__getterCache.pageSizesText=(()=>{var{pageSize:e,pageSizes:t}=this.props;return t.map(((t,i)=>{var{text:n,value:o}=t,r=o===e,a=Hs({[r?hW:uW]:!0,[pW]:0===i});return{className:a,click:this.onPageSizeChange(o),label:(0,Ic.WU)(y.Z.getFormatter("dxPager-pageSize"),o||y.Z.getFormatter("dxPager-pageSizesAllText")),text:n}}))})()}onPageSizeChange(e){return()=>(this.props.pageSizeChange(e),this.props.pageSize)}get restAttributes(){var e=this.props,t=(0,Vs.Z)(e,gK);return t}componentWillUpdate(e,t,i){this.props.pageSize===e.pageSize&&this.props.pageSizes===e.pageSizes&&this.props.pageSizeChange===e.pageSizeChange||(this.__getterCache.pageSizesText=void 0)}render(){var e=this.props;return mK({props:(0,hn.Z)({},e),pageSizesText:this.pageSizesText,restAttributes:this.restAttributes})}}vK.defaultProps=_K;var yK=["isLargeDisplayMode","pageSize","pageSizeChange","pageSizes","rootElementRef"],CK=e=>{var{htmlRef:t,normalizedPageSizes:i,props:{isLargeDisplayMode:n,pageSize:o,pageSizeChange:r}}=e;return So(1,"div",cW,[n&&ko(2,vK,{pageSizes:i,pageSize:o,pageSizeChange:r}),!n&&ko(2,fK,{parentRef:t,pageSizes:i,pageSize:o,pageSizeChange:r})],0,null,null,t)};function bK(){return y.Z.getFormatter("dxPager-pageSizesAllText")()}var xK={isLargeDisplayMode:!0},wK={get pageSize(){return U$.pageSize},get pageSizes(){return U$.pageSizes},get isLargeDisplayMode(){return xK.isLargeDisplayMode}};class TK extends Ha{constructor(e){super(e),this.state={},this.htmlRef=kr(),this.__getterCache={},this.setRootElementRef=this.setRootElementRef.bind(this)}createEffects(){return[new $a(this.setRootElementRef,[])]}setRootElementRef(){var{rootElementRef:e}=this.props;e&&(e.current=this.htmlRef.current)}get normalizedPageSizes(){return void 0!==this.__getterCache.normalizedPageSizes?this.__getterCache.normalizedPageSizes:this.__getterCache.normalizedPageSizes=(()=>{var{pageSizes:e}=this.props;return e.map((e=>"all"===e||0===e?{text:bK(),value:0}:{text:String(e),value:e}))})()}get restAttributes(){var e=this.props,t=(0,Vs.Z)(e,yK);return t}componentWillUpdate(e,t,i){super.componentWillUpdate(),this.props.pageSizes!==e.pageSizes&&(this.__getterCache.normalizedPageSizes=void 0)}render(){var e=this.props;return CK({props:(0,hn.Z)({},e),htmlRef:this.htmlRef,normalizedPageSizes:this.normalizedPageSizes,restAttributes:this.restAttributes})}}TK.defaultProps=wK;var SK=["className","displayMode","gridCompatibility","hasKnownLastPage","infoText","infoTextRef","infoTextVisible","isLargeDisplayMode","label","lightModeEnabled","maxPagesCount","onKeyDown","pageCount","pageIndex","pageIndexChange","pageSize","pageSizeChange","pageSizes","pageSizesRef","pagesCountText","pagesNavigatorVisible","pagesRef","rootElementRef","rtlEnabled","showInfo","showNavigationButtons","showPageSizes","totalCount","visible"],IK=e=>{var{aria:t,classes:i,infoVisible:n,isLargeDisplayMode:o,pageIndexSelectorVisible:r,pagesContainerVisibility:a,pagesContainerVisible:s,props:{hasKnownLastPage:l,infoText:d,infoTextRef:u,maxPagesCount:c,pageCount:h,pageIndex:p,pageIndexChange:f,pageSize:g,pageSizeChange:m,pageSizes:_,pageSizesRef:v,pagesCountText:y,pagesRef:C,rtlEnabled:b,showNavigationButtons:x,showPageSizes:w,totalCount:T,visible:S},restAttributes:I,widgetRootElementRef:E}=e;return Po(ko(2,Ql,(0,hn.Z)({rootElementRef:E,rtlEnabled:b,classes:i,visible:S,aria:t},I,{children:[w&&ko(2,TK,{rootElementRef:v,isLargeDisplayMode:o,pageSize:g,pageSizeChange:m,pageSizes:_}),s&&So(1,"div",aW,[n&&ko(2,J$,{rootElementRef:u,infoText:d,pageCount:h,pageIndex:p,totalCount:T}),r&&So(1,"div",sW,ko(2,rK,{hasKnownLastPage:l,isLargeDisplayMode:o,maxPagesCount:c,pageCount:h,pageIndex:p,pageIndexChange:f,pagesCountText:y,showNavigationButtons:x,totalCount:T}),2,null,null,C)],0,{style:ys({visibility:a})})]})))},EK=Object.create(Object.prototype,(0,hn.Z)(Object.getOwnPropertyDescriptors(U$),Object.getOwnPropertyDescriptors({infoTextVisible:!0,isLargeDisplayMode:!0})));class DK extends Ha{constructor(e){super(e),this.state={},this.widgetRootElementRef=kr(),this.__getterCache={},this.setRootElementRef=this.setRootElementRef.bind(this),this.createFakeInstance=this.createFakeInstance.bind(this)}createEffects(){return[new $a(this.setRootElementRef,[])]}getChildContext(){return(0,hn.Z)({},this.context,{KeyboardActionContext:this.keyboardAction})}setRootElementRef(){var{rootElementRef:e}=this.props;e&&(e.current=this.widgetRootElementRef.current)}createFakeInstance(){return{option:()=>!1,element:()=>this.widgetRootElementRef.current,_createActionByOption:()=>e=>{var t,i;null===(t=(i=this.props).onKeyDown)||void 0===t||t.call(i,e)}}}get keyboardAction(){return void 0!==this.__getterCache.keyboardAction?this.__getterCache.keyboardAction:this.__getterCache.keyboardAction=(()=>({registerKeyboardAction:(e,t)=>{var i=this.createFakeInstance();return WA("pager",i,e,void 0,t)}}))()}get infoVisible(){var{infoTextVisible:e,showInfo:t}=this.props;return t&&e}get pageIndexSelectorVisible(){return 0!==this.props.pageSize}get normalizedDisplayMode(){var{displayMode:e,lightModeEnabled:t}=this.props;return"adaptive"===e&&void 0!==t?t?"compact":"full":e}get pagesContainerVisible(){return!!this.props.pagesNavigatorVisible&&this.props.pageCount>0}get pagesContainerVisibility(){if("auto"===this.props.pagesNavigatorVisible&&1===this.props.pageCount&&this.props.hasKnownLastPage)return"hidden"}get isLargeDisplayMode(){var e=this.normalizedDisplayMode,t=!1;return t="adaptive"===e?this.props.isLargeDisplayMode:"full"===e,t}get classes(){var e={["".concat(this.props.className)]:!!this.props.className,[oW]:!0,[rW]:!this.isLargeDisplayMode};return Hs(e)}get aria(){return{role:"navigation",label:this.props.label}}get restAttributes(){var e=this.props,t=(0,Vs.Z)(e,SK);return t}componentWillUpdate(e,t,i){super.componentWillUpdate(),this.props.onKeyDown!==e.onKeyDown&&(this.__getterCache.keyboardAction=void 0)}render(){var e=this.props;return IK({props:(0,hn.Z)({},e),widgetRootElementRef:this.widgetRootElementRef,keyboardAction:this.keyboardAction,infoVisible:this.infoVisible,pageIndexSelectorVisible:this.pageIndexSelectorVisible,pagesContainerVisible:this.pagesContainerVisible,pagesContainerVisibility:this.pagesContainerVisibility,isLargeDisplayMode:this.isLargeDisplayMode,classes:this.classes,aria:this.aria,restAttributes:this.restAttributes})}}DK.defaultProps=EK;var kK=["className","defaultPageIndex","defaultPageSize","displayMode","gridCompatibility","hasKnownLastPage","infoText","label","lightModeEnabled","maxPagesCount","onKeyDown","pageCount","pageIndex","pageIndexChange","pageSize","pageSizeChange","pageSizes","pagesCountText","pagesNavigatorVisible","rtlEnabled","showInfo","showNavigationButtons","showPageSizes","totalCount","visible"],OK=e=>{var{pagerProps:t,restAttributes:i}=e;return Po(ko(2,K$,(0,hn.Z)({contentTemplate:DK,pagerProps:t},i)))};class AK extends La{constructor(e){super(e),this.__getterCache={},this.state={pageSize:void 0!==this.props.pageSize?this.props.pageSize:this.props.defaultPageSize,pageIndex:void 0!==this.props.pageIndex?this.props.pageIndex:this.props.defaultPageIndex},this.pageIndexChange=this.pageIndexChange.bind(this),this.pageSizeChange=this.pageSizeChange.bind(this)}createEffects(){return[Wa()]}pageIndexChange(e){var t,i;this.props.gridCompatibility?(this.setState((i=>(t=e+1,{pageIndex:t}))),this.props.pageIndexChange(t)):(this.setState((t=>(i=e,{pageIndex:i}))),this.props.pageIndexChange(i))}get pageIndex(){return this.props.gridCompatibility?(void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex)-1:void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex}pageSizeChange(e){var t;this.setState((i=>(t=e,{pageSize:t}))),this.props.pageSizeChange(t)}get className(){return this.props.gridCompatibility?Hs({"dx-datagrid-pager":!0,["".concat(this.props.className)]:!!this.props.className}):this.props.className}get pagerProps(){return void 0!==this.__getterCache.pagerProps?this.__getterCache.pagerProps:this.__getterCache.pagerProps=(()=>(0,hn.Z)({},(0,hn.Z)({},this.props,{pageSize:void 0!==this.props.pageSize?this.props.pageSize:this.state.pageSize,pageIndex:void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex}),{className:this.className,pageIndex:this.pageIndex,pageIndexChange:e=>this.pageIndexChange(e),pageSizeChange:e=>this.pageSizeChange(e)}))()}get restAttributes(){var e=(0,hn.Z)({},this.props,{pageSize:void 0!==this.props.pageSize?this.props.pageSize:this.state.pageSize,pageIndex:void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex}),t=(0,Vs.Z)(e,kK);return t}componentWillUpdate(e,t,i){super.componentWillUpdate(),this.props===e&&this.props.gridCompatibility===e.gridCompatibility&&this.props.className===e.className&&this.state.pageIndex===t.pageIndex&&this.props.pageIndex===e.pageIndex&&this.props.pageIndexChange===e.pageIndexChange&&this.props.pageSizeChange===e.pageSizeChange||(this.__getterCache.pagerProps=void 0)}render(){var e=this.props;return OK({props:(0,hn.Z)({},e,{pageSize:void 0!==this.props.pageSize?this.props.pageSize:this.state.pageSize,pageIndex:void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex}),pageIndexChange:this.pageIndexChange,pageIndex:this.pageIndex,pageSizeChange:this.pageSizeChange,className:this.className,pagerProps:this.pagerProps,restAttributes:this.restAttributes})}}AK.defaultProps=j$;class PK extends P${getProps(){var e=super.getProps();return e.onKeyDown=this._wrapKeyDownHandler(e.onKeyDown),e}get _propsInfo(){return{twoWay:[["pageSize","defaultPageSize","pageSizeChange"],["pageIndex","defaultPageIndex","pageIndexChange"]],allowNull:[],elements:[],templates:[],props:["defaultPageSize","pageSizeChange","defaultPageIndex","pageIndexChange","gridCompatibility","className","showInfo","infoText","lightModeEnabled","displayMode","maxPagesCount","pageCount","pagesCountText","visible","hasKnownLastPage","pagesNavigatorVisible","showPageSizes","pageSizes","rtlEnabled","showNavigationButtons","totalCount","label","onKeyDown","pageSize","pageIndex"]}}get _viewComponent(){return AK}}(0,C.Z)("dxPager",PK);var MK=PK,RK="pager",BK=10,VK=function(e){return 1+(parseInt(e.pageIndex())||0)},FK=KO.View.inherit({init:function(){var e=this.getController("data");e.changed.add((t=>{if(t&&t.repaintChangesOnly){var i=this._pager;i?i.option({pageIndex:VK(e),pageSize:e.pageSize(),pageCount:e.pageCount(),totalCount:e.totalCount(),hasKnownLastPage:e.hasKnownLastPage()}):this.render()}else(!t||"update"!==t.changeType&&"updateSelection"!==t.changeType&&"updateFocusedRow"!==t.changeType)&&(this._pager=null,this.render())}))},_renderCore:function(){var e=this.element().addClass(this.addWidgetPrefix(RK)),t=this.option("pager")||{},i=this.getController("data"),n=this.getController("keyboardNavigation"),o={maxPagesCount:BK,pageIndex:VK(i),pageCount:i.pageCount(),pageSize:i.pageSize(),showPageSizes:t.showPageSizeSelector,showInfo:t.showInfo,displayMode:t.displayMode,pagesNavigatorVisible:t.visible,showNavigationButtons:t.showNavigationButtons,label:t.label,pageSizes:this.getPageSizes(),totalCount:i.totalCount(),hasKnownLastPage:i.hasKnownLastPage(),pageIndexChanged:function(e){i.pageIndex()!==e-1&&i.pageIndex(e-1)},pageSizeChanged:function(e){i.pageSize(e)},onKeyDown:e=>n&&n.executeAction("onKeyDown",e),useLegacyKeyboardNavigation:this.option("useLegacyKeyboardNavigation"),useKeyboard:this.option("keyboardNavigation.enabled")};(0,l.$K)(t.infoText)&&(o.infoText=t.infoText),this._pager?this._pager.repaint():(0,s.Ym)()?this._pager=this._createComponent(e,MK,o):e.addClass("dx-pager").html('<div class="dx-pages"><div class="dx-page"></div></div>')},getPager:function(){return this._pager},getPageSizes:function(){var e=this.getController("data"),t=this.option("pager"),i=t&&t.allowedPageSizes,n=e.pageSize();return(0,l.$K)(this._pageSizes)&&this._pageSizes.includes(n)||(this._pageSizes=[],t&&(Array.isArray(i)?this._pageSizes=i:i&&n>1&&(this._pageSizes=[Math.floor(n/2),n,2*n]))),this._pageSizes},isVisible:function(){var e=this.getController("data"),t=this.option("pager"),i=t&&t.visible,n=this.option("scrolling");return"auto"===i&&(i=(!n||"virtual"!==n.mode&&"infinite"!==n.mode)&&(e.pageCount()>1||e.isLoaded()&&!e.hasKnownLastPage())),i},getHeight:function(){return this.getElementHeight()},optionChanged:function(e){var t=e.name,i="pager"===t,n="paging"===t,o="dataSource"===t,r="scrolling"===t,a=this.getController("data");if(i||n||r||o){if(e.handled=!0,a.skipProcessingPagingChange(e.fullName))return;(i||n)&&(this._pageSizes=null),o||(this._pager=null,this._invalidate(),(0,s.Ym)()&&i&&this.component&&this.component.resize())}},dispose:function(){this._pager=null}}),HK={defaultOptions:function(){return{pager:{visible:"auto",showPageSizeSelector:!1,allowedPageSizes:"auto",label:y.Z.format("dxPager-ariaLabel")}}},views:{pagerView:FK}};zO.registerModule("pager",HK);var LK="columns-separator",NK="columns-separator-transparent",ZK="drag-header",$K="text-content",WK="drag-action",KK="tracker",zK="drop-highlight",jK="dx-block-separator",UK="dx-header-row",GK="dx-widget",qK="dx-drag-command-cell",YK="dxDataGridResizingReordering",XK=10,JK=5,QK=.5,ez=function(e){return e.option("allowColumnResizing")||e.getController("columns").isColumnOptionUsed("allowResizing")},tz=function(e){return e.option("allowColumnReordering")||e.getController("columns").isColumnOptionUsed("allowReordering")},iz=KO.View.inherit({_renderCore:function(){this.callBase(),this.element().addClass(this.addWidgetPrefix(KK)),this.hide()},_unsubscribeFromCallback:function(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)},_subscribeToCallback:function(){var e=this;e._positionChanged=function(t){var i=e.element();i&&i.hasClass(e.addWidgetPrefix(KK))&&(i.css({top:t.top}),(0,n.QQ)(i,t.height))},this._tablePositionController.positionChanged.add(e._positionChanged)},optionChanged:function(e){"allowColumnResizing"===e.name&&(this._unsubscribeFromCallback(),e.value&&(this._subscribeToCallback(),this._invalidate())),this.callBase(e)},init:function(){this.callBase(),this._tablePositionController=this.getController("tablePosition"),this._subscribeToCallback()},isVisible:function(){return ez(this)},show:function(){this.element().show()},hide:function(){this.element()&&this.element().hide()},setHeight:function(e){(0,n.QQ)(this.element(),e)},dispose:function(){this._unsubscribeFromCallback(),this.callBase()}}),nz=KO.View.inherit({_renderSeparator:function(){},_renderCore:function(e){this.callBase(e),this._isShown=!0,this._renderSeparator(),this.hide()},show:function(){this._isShown=!0},hide:function(){this._isShown=!1},height:function(e){var t=this.element();if(t){if(!(0,l.$K)(e))return(0,n.Cr)(t);(0,n.QQ)(t,e)}},width:function(e){var t=this.element();if(t){if(!(0,l.$K)(e))return(0,n.dz)(t);(0,n.cl)(t,e)}}}),oz=nz.inherit({_renderSeparator:function(){this.callBase();var e=this.element();e.addClass(this.addWidgetPrefix(LK))},_subscribeToCallback:function(){var e,t=this;t._positionChanged=function(i){e=t.element(),e&&(e.css({top:i.top}),(0,n.QQ)(e,i.height))},t._tablePositionController.positionChanged.add(t._positionChanged)},_unsubscribeFromCallback:function(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)},_init:function(){this._isTransparent=ez(this),this.isVisible()&&this._subscribeToCallback()},isVisible:function(){return this.option("showColumnHeaders")&&(tz(this)||ez(this))},optionChanged:function(e){"allowColumnResizing"===e.name&&(e.value?(this._init(),this._invalidate(),this.hide(!0)):(this._unsubscribeFromCallback(),this._isTransparent=ez(this),this.hide(!0))),this.callBase(e)},init:function(){this.callBase(),this._tablePositionController=this.getController("tablePosition"),this._init()},show:function(){var e=this.element();e&&!this._isShown&&(this._isTransparent?e.removeClass(this.addWidgetPrefix(NK)):e.show()),this.callBase()},hide:function(e){var t=this.element(),i=this.addWidgetPrefix(NK);t&&(this._isShown||e)&&(this._isTransparent?(t.addClass(i),t.css("left",""),t.show()):(t.hasClass(i)&&t.removeClass(i),t.hide())),this.callBase()},moveByX:function(e){var t=this.element();t&&t.css("left",null===e?0:e-this._parentElement().offset().left)},changeCursor:function(e){e=(0,l.$K)(e)?e:"";var t=this.element();t&&t.css("cursor",e)},dispose:function(){this._unsubscribeFromCallback(),this.callBase()}}),rz=nz.inherit({init:function(){var e=this;this.callBase(),this.getController("data").loadingChanged.add((function(t){t||e.hide()}))},_renderSeparator:function(){this.callBase(),this.element().addClass(jK).html("&nbsp;")},hide:function(){var e=this._parentElement(),t=this.element();t&&this._isShown&&t.css("display","none"),e&&!e.children("."+jK).length&&e.prepend(this.element()),this.callBase()},isVisible:function(){var e=this.option("groupPanel"),t=this.option("columnChooser");return e&&e.visible||t&&t.enabled},show:function(e){var t=this.element(),i=function(e){Ut.stop(t,!0),Ut.animate(t,{type:"slide",from:{width:0,display:e.display},to:e,duration:300,easing:"swing"})};if(t&&!this._isShown)switch(e){case"group":i({width:"50px",display:"inline-block"});break;case"columnChooser":i({width:"100%",display:"block"});break;default:t.css("display","")}this.callBase()}}),az=KO.View.inherit({_isDragging:!1,isDragging:function(){return this._isDragging},_getDraggingPanelByPos:function(e){var t;return(0,E.S6)(this._dragOptions.draggingPanels,(function(i,n){if(n){var o=n.getBoundingRect();if(o&&(void 0===o.bottom||e.y<o.bottom)&&(void 0===o.top||e.y>o.top)&&(void 0===o.left||e.x>o.left)&&(void 0===o.right||e.x<o.right))return t=n,!1}})),t},_renderCore:function(){this.element().addClass(this.addWidgetPrefix(ZK)+" "+this.addWidgetPrefix($K)+" "+GK).hide()},_resetTargetColumnOptions:function(){var e=this._dropOptions;e.targetColumnIndex=-1,delete e.targetColumnElement,delete e.isLast,delete e.posX,delete e.posY},_getVisibleIndexObject:function(e,t){return(0,l.$K)(e)?{columnIndex:t,rowIndex:e}:t},dispose:function(){var e=this.element();this._dragOptions=null,e&&e.parent().find("."+this.addWidgetPrefix(ZK)).remove()},isVisible:function(){var e=this.getController("columns"),t=e.getCommonSettings();return this.option("showColumnHeaders")&&(tz(this)||t.allowGrouping||t.allowHiding)},init:function(){var e=this;this.callBase(),this._controller=this.getController("draggingHeader"),this._columnsResizerViewController=this.getController("columnsResizer"),this.getController("data").loadingChanged.add((function(t){var i=e.element();!t&&i&&i.hide()}))},dragHeader:function(e){var t=e.columnElement,i=!!e.sourceColumn.type;this._isDragging=!0,this._dragOptions=e,this._dropOptions={sourceIndex:e.index,sourceColumnIndex:this._getVisibleIndexObject(e.rowIndex,e.columnIndex),sourceColumnElement:e.columnElement,sourceLocation:e.sourceLocation};var o=ke["default"].getDocument();this._onSelectStart=o.onselectstart,o.onselectstart=function(){return!1},this._controller.drag(this._dropOptions),this.element().css({textAlign:t&&t.css("textAlign"),height:t&&(i&&t.get(0).clientHeight||(0,n.Cr)(t)),width:t&&(i&&t.get(0).clientWidth||(0,n.dz)(t)),whiteSpace:t&&t.css("whiteSpace")}).addClass(this.addWidgetPrefix(WK)).toggleClass(qK,i).text(i?"":e.sourceColumn.caption),this.element().appendTo(di.getSwatchContainer(t))},moveHeader:function(e){var t=e.event,i=t.data.that,n=(0,R.a0)(t),o=!!i._columnsResizerViewController&&i._columnsResizerViewController.isResizing(),r=i._dragOptions;if(i._isDragging&&!o){var a=i.element(),s=Math.abs(n.x-r.columnElement.offset().left-r.deltaX),l=Math.abs(n.y-r.columnElement.offset().top-r.deltaY);if(a.is(":visible")||s>JK||l>JK){a.show();var d=n.x-r.deltaX,u=n.y-r.deltaY;a.css({left:d,top:u}),i.dockHeader(n)}t.preventDefault()}},dockHeader:function(e){var t=this._getDraggingPanelByPos(e),i=this._controller,n=this._dropOptions,r=this._dragOptions;if(t){var s=this.option("rtlEnabled"),l="columnChooser"===t.getName(),d=l?"y":"x",u=t.getName(),c="headers"===u?r.rowIndex:void 0,h=r.sourceColumn,p=t.getColumnElements(c,null===h||void 0===h?void 0:h.ownerBand)||[],f=r.pointsByTarget=r.pointsByTarget||{},g="columnChooser"===u?[]:f[u]||i._generatePointsByColumns((0,a.l)({},r,{targetDraggingPanel:t,columns:t.getColumns(c),columnElements:p,isVerticalOrientation:l,startColumnIndex:"headers"===u&&(0,o.Z)(p[0]).index()}));if(f[u]=g,n.targetLocation=u,g.length>0)for(var m=0;m<g.length;m++){var _=g[m+1]&&(g[m][d]+g[m+1][d])/2;if(void 0===_||(s&&"x"===d?e[d]>_:e[d]<_)){n.targetColumnIndex=this._getVisibleIndexObject(c,g[m].columnIndex),p[m]?(n.targetColumnElement=p.eq(m),n.isLast=!1):(n.targetColumnElement=p.last(),n.isLast=!0),n.posX=g[m].x,n.posY=g[m].y,i.dock(n);break}}else this._resetTargetColumnOptions(),i.dock(n)}},dropHeader:function(e){var t=e.event,i=t.data.that,n=i._controller;i.element().hide(),n&&i._isDragging&&n.drop(i._dropOptions),i.element().appendTo(i._parentElement()),i._dragOptions=null,i._dropOptions=null,i._isDragging=!1,ke["default"].getDocument().onselectstart=i._onSelectStart||null}}),sz=function(e){return"widget"!==e.option("columnResizingMode")},lz=KO.ViewController.inherit({_isHeadersRowArea:function(e){if(this._columnHeadersView){var t=this._columnHeadersView.element();if(t){var i=t.offset().top,n=this._columnHeadersView.getHeadersRowHeight();return e>=i&&e<=i+n}}return!1},_isRtlParentStyle:function(){var e;return this.option("rtlEnabled")&&"rtl"===(null===(e=this._$parentContainer)||void 0===e?void 0:e.parent().css("direction"))},_pointCreated:function(e,t,i){var n=sz(this),o=this.option("rtlEnabled"),r=this._isRtlParentStyle(),a=n||!o||r?1:0;if(e.index>=a&&e.index<t+(n||o&&!r?0:1)){e.columnIndex-=a;var s=i[e.columnIndex]||{},l=i[e.columnIndex+1]||{};return!(n?s.allowResizing&&l.allowResizing:s.allowResizing)}return!0},_getTargetPoint:function(e,t,i){if(e)for(var n=0;n<e.length;n++)if((e[n].x!==e[0].x||!e[n+1]||e[n].x!==e[n+1].x)&&e[n].x-i<=t&&t<=e[n].x+i)return e[n];return null},_moveSeparator:function(e){var t,i=e.event,o=i.data,r=o._columnsSeparatorView.width(),a=sz(o),s=r/2,l=o._$parentContainer.offset(),d=l.left,u=(0,R.a0)(i),c=o.option("rtlEnabled"),h=this._isRtlParentStyle(),p=null===(t=o._draggingHeaderView)||void 0===t?void 0:t.isDragging();if(o._isResizing&&o._resizingInfo){if((d<=u.x||!a&&h)&&(!a||u.x<=d+(0,n.dz)(o._$parentContainer))&&o._updateColumnsWidthIfNeeded(u.x)){var f=o._columnHeadersView.getColumnElements().eq(o._resizingInfo.currentColumnIndex),g=f[0];if(g){var m=g.getBoundingClientRect().width;o._columnsSeparatorView.moveByX(f.offset().left+((a||h)&&c?0:m)),o._tablePositionController.update(o._targetPoint.y),i.preventDefault()}}}else p||(o._isHeadersRowArea(u.y)?(o._previousParentOffset&&(o._previousParentOffset.left===l.left&&o._previousParentOffset.top===l.top||o.pointsByColumns(null)),o._targetPoint=o._getTargetPoint(o.pointsByColumns(),u.x,r),o._previousParentOffset=l,o._isReadyResizing=!1,o._targetPoint?(o._columnsSeparatorView.changeCursor("col-resize"),o._columnsSeparatorView.moveByX(o._targetPoint.x-s),o._tablePositionController.update(o._targetPoint.y),o._isReadyResizing=!0,i.preventDefault()):(o._columnsSeparatorView.changeCursor(),o._columnsSeparatorView.moveByX(null))):(o.pointsByColumns(null),o._isReadyResizing=!1,o._columnsSeparatorView.changeCursor(),o._columnsSeparatorView.moveByX(null)))},_endResizing:function(e){var t=e.event,i=t.data;i._isResizing&&(i.pointsByColumns(null),i._resizingInfo=null,i._columnsSeparatorView.hide(),i._columnsSeparatorView.changeCursor(),i._trackerView.hide(),i._isReadyResizing=!1,i._isResizing=!1)},_getNextColumnIndex:function(e){return e+1},_setupResizingInfo:function(e){var t=this._targetPoint.columnIndex,i=this._getNextColumnIndex(t),n=this._columnHeadersView.getHeaderElement(t),o=this._columnHeadersView.getHeaderElement(i);this._resizingInfo={startPosX:e,currentColumnIndex:t,currentColumnWidth:n&&n.length>0?Pe(n[0]).width:0,nextColumnIndex:i,nextColumnWidth:o&&o.length>0?Pe(o[0]).width:0}},_startResizing:function(e){var t=e.event,i=t.data,o=(0,R.a0)(t);if((0,R.z6)(t)&&(i._isHeadersRowArea(o.y)?(i._targetPoint=i._getTargetPoint(i.pointsByColumns(),o.x,XK),i._targetPoint&&(i._columnsSeparatorView.moveByX(i._targetPoint.x-i._columnsSeparatorView.width()/2),i._isReadyResizing=!0)):i._isReadyResizing=!1),i._isReadyResizing){i._setupResizingInfo(o.x),i._isResizing=!0,i._tablePositionController.update(i._targetPoint.y),i._columnsSeparatorView.show(),i._trackerView.show();var r=i.component.getScrollable();r&&i._isRtlParentStyle()&&(i._scrollRight=(0,n.dz)(r.$content())-(0,n.dz)(r.container())-r.scrollLeft()),t.preventDefault(),t.stopPropagation()}this.isResizing()&&this.getController("editorFactory").loseFocus()},_generatePointsByColumns:function(){var e=this,t=e._columnsController?e._columnsController.getVisibleColumns():[],i=e._columnHeadersView.getColumnElements(),n=[];i&&i.length>0&&(n=FD.getPointsByColumns(i,(function(n){return e._pointCreated(n,i.length,t)}))),e._pointsByColumns=n},_unsubscribeFromEvents:function(){this._moveSeparatorHandler&&re.Z.off(ke["default"].getDocument(),(0,R.V4)(B.Z.move,YK),this._moveSeparatorHandler),this._startResizingHandler&&re.Z.off(this._$parentContainer,(0,R.V4)(B.Z.down,YK),this._startResizingHandler),this._endResizingHandler&&(re.Z.off(this._columnsSeparatorView.element(),(0,R.V4)(B.Z.up,YK),this._endResizingHandler),re.Z.off(ke["default"].getDocument(),(0,R.V4)(B.Z.up,YK),this._endResizingHandler))},_subscribeToEvents:function(){this._moveSeparatorHandler=this.createAction(this._moveSeparator),this._startResizingHandler=this.createAction(this._startResizing),this._endResizingHandler=this.createAction(this._endResizing),re.Z.on(ke["default"].getDocument(),(0,R.V4)(B.Z.move,YK),this,this._moveSeparatorHandler),re.Z.on(this._$parentContainer,(0,R.V4)(B.Z.down,YK),this,this._startResizingHandler),re.Z.on(this._columnsSeparatorView.element(),(0,R.V4)(B.Z.up,YK),this,this._endResizingHandler),re.Z.on(ke["default"].getDocument(),(0,R.V4)(B.Z.up,YK),this,this._endResizingHandler)},_updateColumnsWidthIfNeeded:function(e){var t,i,o=this._rowsView.contentWidth(),r=this._resizingInfo,a=this._columnsController,s=a.getVisibleColumns(),d=this._columnsSeparatorView.width(),u=sz(this),c=u&&this.option("adaptColumnWidthByRatio")&&!this.option("columnAutoWidth"),h=this.option("rtlEnabled"),p=this._isRtlParentStyle(),f=s[r.currentColumnIndex],g=s[r.nextColumnIndex];function m(e){return(0,l.HD)(e)&&"%"===e.slice(-1)}function _(e,t,i,n){if(e){var o=e.width;o&&(n=m(o)),n?(a.columnOption(e.index,"visibleWidth",t),a.columnOption(e.index,"width",(t/i*100).toFixed(3)+"%")):(a.columnOption(e.index,"visibleWidth",null),a.columnOption(e.index,"width",t))}}t=e-r.startPosX,(u||p)&&h&&(t=-t);var{cellWidth:v,nextCellWidth:y}=function(e){var t,i,n,o=r.currentColumnWidth+e,a=f&&f.minWidth||d,s={};return o>=a?s.cellWidth=o:(s.cellWidth=a,n=!0),u&&(i=r.nextColumnWidth-e,t=g&&g.minWidth||d,i>=t?s.nextCellWidth=n?r.nextColumnWidth-(e+a-o):i:(s.nextCellWidth=t,s.cellWidth=r.currentColumnWidth+(e-t+i))),s}(t);if(i=f.width!==v,i){if(a.beginUpdate(),v=Math.floor(v),o=function(e,t){var i=t.every((e=>e.width));if(i){var n=t.reduce(((e,t)=>(m(t.width)&&(e+=parseFloat(t.width)),e)),0);n>100&&(e=e/n*100)}return e}(o,s),_(f,v,o,c),u)y=Math.floor(y),_(g,y,o,c);else{var C=this._columnHeadersView.getColumnWidths();C[r.currentColumnIndex]=v;var b=C.reduce(((e,t)=>e+t),0)>this._rowsView.contentWidth();if(!b){var x=FD.getLastResizableColumnIndex(s);x>=0&&a.columnOption(s[x].index,"visibleWidth","auto")}for(var w=0;w<C.length;w++)s[w]&&s[w]!==f&&void 0===s[w].width&&a.columnOption(s[w].index,"width",C[w])}if(a.endUpdate(),!u){this.component.updateDimensions();var T=this.component.getScrollable();if(T&&p){var S=(0,n.dz)(T.$content())-(0,n.dz)(T.container())-this._scrollRight;T.scrollTo({left:S})}}}return i},_subscribeToCallback:function(e,t){e.add(t),this._subscribesToCallbacks.push({callback:e,handler:t})},_unsubscribeFromCallbacks:function(){for(var e=0;e<this._subscribesToCallbacks.length;e++){var t=this._subscribesToCallbacks[e];t.callback.remove(t.handler)}this._subscribesToCallbacks=[]},_unsubscribes:function(){this._unsubscribeFromEvents(),this._unsubscribeFromCallbacks()},_init:function(){var e=this,t=function(){e._isResizing||e.pointsByColumns(null)},i=function(t){e._scrollLeft!==t.left&&(e._scrollLeft=t.left,e.pointsByColumns(null))};e._columnsSeparatorView=e.getView("columnsSeparatorView"),e._columnHeadersView=e.getView("columnHeadersView"),e._trackerView=e.getView("trackerView"),e._rowsView=e.getView("rowsView"),e._columnsController=e.getController("columns"),e._tablePositionController=e.getController("tablePosition"),e._$parentContainer=e.component.$element(),e._draggingHeaderView=e.component.getView("draggingHeaderView"),e._subscribeToCallback(e._columnHeadersView.renderCompleted,t),e._subscribeToCallback(e._columnHeadersView.resizeCompleted,t),e._subscribeToCallback(e._columnsSeparatorView.renderCompleted,(function(){e._unsubscribeFromEvents(),e._subscribeToEvents()})),e._subscribeToCallback(e._rowsView.renderCompleted,(function(){e._rowsView.scrollChanged.remove(i),e._rowsView.scrollChanged.add(i)}));var n=0!==e._rowsView.getScrollbarWidth(),o=0;e._subscribeToCallback(e.getController("tablePosition").positionChanged,(function(t){if(e._isResizing&&!e._rowsView.isResizing){var i=0!==e._rowsView.getScrollbarWidth();n!==i||o&&o!==t.height?(n=i,o=t.height,e.component.updateDimensions()):e._rowsView.updateFreeSpaceRowHeight()}o=t.height}))},optionChanged:function(e){this.callBase(e),"allowColumnResizing"===e.name&&(e.value?(this._init(),this._subscribeToEvents()):this._unsubscribes())},isResizing:function(){return this._isResizing},init:function(){this._subscribesToCallbacks=[],ez(this)&&this._init()},pointsByColumns:function(e){if(void 0===e)return this._pointsByColumns||this._generatePointsByColumns(),this._pointsByColumns;this._pointsByColumns=e},dispose:function(){this._unsubscribes(),this.callBase()}}),dz=KO.ViewController.inherit({update:function(e){var t={},i=this._columnHeadersView.element(),n=i&&i.offset(),o=n&&n.top||0,r=(0,l.$K)(e)?Math.abs(e-o):0,a=this._columnHeadersView?this._columnHeadersView.getHeight():0,s=this._rowsView.getScrollbarWidth(!0),d=this._rowsView?this._rowsView.height()-s:0,u=this.component.getController("columnsResizer"),c=this.component.getView("draggingHeaderView");t.height=a;var h=!1!==u.isResizing()||c.isDragging();h&&(t.height+=d-r),null!==e&&i&&i.length&&(t.top=i[0].offsetTop+r),this.positionChanged.fire(t)},init:function(){var e=this;e.callBase(),e._columnHeadersView=this.getView("columnHeadersView"),e._rowsView=this.getView("rowsView"),e._pagerView=this.getView("pagerView"),e._rowsView.resizeCompleted.add((function(){if(e.option("allowColumnResizing")){var t=e.getController("columnsResizer")._targetPoint;e.update(t?t.y:null)}}))},ctor:function(e){this.callBase(e),this.positionChanged=(0,Sc["default"])()}}),uz=KO.ViewController.inherit({_generatePointsByColumns:function(e){var t=this;return FD.getPointsByColumns(e.columnElements,(function(i){return t._pointCreated(i,e.columns,e.targetDraggingPanel.getName(),e.sourceColumn)}),e.isVerticalOrientation,e.startColumnIndex)},_pointCreated:function(e,t,i,n){var o=t[e.columnIndex],r=t[e.columnIndex-1];switch(i){case"columnChooser":return!0;case"headers":return n&&!n.allowReordering||(!o||!o.allowReordering)&&(!r||!r.allowReordering);default:return 0===t.length}},_subscribeToEvents:function(e,t){var i=this;(0,E.S6)(t,(function(n,r){if(r)for(var a,s=r.getRowCount?r.getRowCount():1,l=r.getName(),d=function(n,s){if(s){var d=(0,o.Z)(s),u=a[n];r.allowDragging(u,l,t)&&(d.addClass(i.addWidgetPrefix(WK)),re.Z.on(d,(0,R.V4)(Jt.BL,YK),i.createAction((function(r){var a=r.event,s=(0,R.a0)(a);e.dragHeader({deltaX:s.x-(0,o.Z)(a.currentTarget).offset().left,deltaY:s.y-(0,o.Z)(a.currentTarget).offset().top,sourceColumn:u,index:u.index,columnIndex:n,columnElement:d,sourceLocation:l,draggingPanels:t,rowIndex:i._columnsController.getRowIndex(u.index,!0)})}))),re.Z.on(d,(0,R.V4)(Jt.pB,YK),{that:e},i.createAction(e.moveHeader)),re.Z.on(d,(0,R.V4)(Jt.ut,YK),{that:e},i.createAction(e.dropHeader)))}},u=0;u<s;u++){var c=r.getColumnElements(u)||[];c.length&&(a=r.getColumns(u)||[],(0,E.S6)(c,d))}}))},_unsubscribeFromEvents:function(e,t){var i=this;(0,E.S6)(t,(function(e,t){if(t){var n=t.getColumnElements()||[];(0,E.S6)(n,(function(e,t){var n=(0,o.Z)(t);re.Z.off(n,(0,R.V4)(Jt.BL,YK)),re.Z.off(n,(0,R.V4)(Jt.pB,YK)),re.Z.off(n,(0,R.V4)(Jt.ut,YK)),n.removeClass(i.addWidgetPrefix(WK))}))}}))},_getSeparator:function(e){return"headers"===e?this._columnsSeparatorView:this._blockSeparatorView},hideSeparators:function(e){var t=this._blockSeparatorView,i=this._columnsSeparatorView;this._animationColumnIndex=null,t&&t.hide(),"block"!==e&&i&&i.hide()},init:function(){var e=this;e.callBase(),e._columnsController=e.getController("columns"),e._columnHeadersView=e.getView("columnHeadersView"),e._columnsSeparatorView=e.getView("columnsSeparatorView"),e._draggingHeaderView=e.getView("draggingHeaderView"),e._rowsView=e.getView("rowsView"),e._blockSeparatorView=e.getView("blockSeparatorView"),e._headerPanelView=e.getView("headerPanel"),e._columnChooserView=e.getView("columnChooserView");var t=function(){if(e._draggingHeaderView){var t=[e._columnChooserView,e._columnHeadersView,e._headerPanelView];e._unsubscribeFromEvents(e._draggingHeaderView,t),e._subscribeToEvents(e._draggingHeaderView,t)}};e._columnHeadersView.renderCompleted.add(t),e._headerPanelView&&e._headerPanelView.renderCompleted.add(t),e._columnChooserView&&e._columnChooserView.renderCompleted.add(t)},allowDrop:function(e){return this._columnsController.allowMoveColumn(e.sourceColumnIndex,e.targetColumnIndex,e.sourceLocation,e.targetLocation)},drag:function(e){var t=e.sourceIndex,i=e.sourceLocation,n=e.sourceColumnElement,o=this._columnHeadersView,r=this._rowsView;n&&(n.css({opacity:QK}),"headers"===i&&(o&&o.setRowsOpacity(t,QK),r&&r.setRowsOpacity(t,QK)))},dock:function(e){var t=this,i=(0,l.Kn)(e.targetColumnIndex)?e.targetColumnIndex.columnIndex:e.targetColumnIndex,n=e.sourceLocation,o=e.targetLocation,r=t._getSeparator(o),a=i>=0;t._columnHeadersView.element().find("."+UK).toggleClass(t.addWidgetPrefix(zK),"headers"!==n&&"headers"===o&&!a),r&&(t.allowDrop(e)&&a?"group"===o||"columnChooser"===o?function(){t._animationColumnIndex!==i&&(t.hideSeparators(),r.element()[e.isLast?"insertAfter":"insertBefore"](e.targetColumnElement),t._animationColumnIndex=i,r.show(o))}():(t.hideSeparators("block"),t.getController("tablePosition").update(e.posY),r.moveByX(e.posX-r.width()),r.show()):t.hideSeparators())},drop:function(e){var t=e.sourceColumnElement;if(t&&(t.css({opacity:""}),this._columnHeadersView.setRowsOpacity(e.sourceIndex,""),this._rowsView.setRowsOpacity(e.sourceIndex,""),this._columnHeadersView.element().find("."+UK).removeClass(this.addWidgetPrefix(zK))),this.allowDrop(e)){var i=this._getSeparator(e.targetLocation);i&&i.hide(),this._columnsController.moveColumn(e.sourceColumnIndex,e.targetColumnIndex,e.sourceLocation,e.targetLocation)}},dispose:function(){this._draggingHeaderView&&this._unsubscribeFromEvents(this._draggingHeaderView,[this._columnChooserView,this._columnHeadersView,this._headerPanelView])}}),cz={views:{columnsSeparatorView:oz,blockSeparatorView:rz,draggingHeaderView:az,trackerView:iz},controllers:{draggingHeader:uz,tablePosition:dz,columnsResizer:lz},extenders:{views:{rowsView:{_needUpdateRowHeight:function(e){var t=this.option("wordWrapEnabled"),i=this.getController("columnsResizer"),n=i.isResizing();return this.callBase.apply(this,arguments)||e>0&&t&&n}}},controllers:{editorFactory:{renderFocusOverlay:function(){if(!this.getController("columnsResizer").isResizing())return this.callBase.apply(this,arguments)}}}}};zO.registerModule("columnsResizingReordering",cz);var hz="content",pz="content-fixed",fz="dx-master-detail-cell",gz="dx-first-cell",mz="dx-last-cell",_z="dx-state-hover",vz="dx-col-fixed",yz="dx-fixed-columns",Cz="dx-pointer-events-none",bz="transparent",xz="dx-group-row",wz="dx-master-detail-row",Tz=function(e){var t=-1;return(0,E.S6)(e,(function(e,i){if(i.command===bz)return t=e,!1})),t},Sz=function(e,t,i){var n=0;if(e&&t&&i)for(var o=0;o<e.length;o++)e[o].command===bz?n+=e[o].colspan:(t[n]<i[o]&&(t[n]=i[o]),n++);return t},Iz={init:function(){this.callBase(),this._isFixedTableRendering=!1,this._isFixedColumns=!1},_createCol:function(e){return this.callBase(e).toggleClass(vz,!(!this._isFixedTableRendering||!(e.fixed||e.command&&e.command!==bz)))},_correctColumnIndicesForFixedColumns:function(e,t){var i=Tz(e),n=e[i].colspan,o=t&&t.columnIndices;o&&(t.columnIndices=o.map((function(e){if(e)return e.map((function(e){return e<i?e:e>=i+n?e-n+1:-1})).filter((function(e){return e>=0}))})))},_partialUpdateFixedTable(e){var t=this._fixedTableElement,i=this._getRowElementsCore(t),n=t.children("colgroup");n.replaceWith(this._createColGroup(e));for(var r=0;r<i.length;r++)this._partialUpdateFixedRow((0,o.Z)(i[r]),e)},_partialUpdateFixedRow(e,t){var i,n=e.get(0).childNodes,o=Tz(t),r=t[o],a=this._columnsController.getColumnIndexOffset(),s=a+1,l=r.colspan;if(e.hasClass(wz)){var d;n[0].setAttribute("colspan",null===(d=this._columnsController.getVisibleColumns())||void 0===d?void 0:d.length)}else{e.hasClass(xz)&&(i=this._getGroupCellOptions({row:e.data("options"),columns:this._columnsController.getVisibleColumns()}),l=i.colspan-Math.max(0,n.length-(i.columnIndex+2)));for(var u=0;u<n.length;u++){var c=i?u===i.columnIndex+1:u===o;n[u].setAttribute("aria-colindex",s),c?(n[u].setAttribute("colspan",l),s+=l):s++}}},_renderTable:function(e){var t,i=this.getFixedColumns();this._isFixedColumns=!!i.length;var n=this.callBase(e);if(this._isFixedColumns){var o=null===e||void 0===e?void 0:e.change;if(this._isFixedTableRendering=!0,null!==o&&void 0!==o&&o.virtualColumnsScrolling&&!0!==this.option("scrolling.legacyMode"))this._partialUpdateFixedTable(i),this._isFixedTableRendering=!1;else{var r=null===o||void 0===o?void 0:o.columnIndices;this._correctColumnIndicesForFixedColumns(i,o),t=this._createTable(i),this._renderRows(t,(0,a.l)({},e,{columns:i})),(0,ot.gx)(this._updateContent(t,o)).done((()=>{this._isFixedTableRendering=!1})),r&&(o.columnIndices=r)}}else this._fixedTableElement&&this._fixedTableElement.parent().remove(),this._fixedTableElement=null;return n},_renderRow:function(e,t){var i,n=t.row.cells;if(this.callBase.apply(this,arguments),this._isFixedTableRendering&&n&&n.length){i=0;var o=t.row.cells||[];n=n.slice(),t.row.cells=n;for(var r=0;r<o.length;r++)o[r].column&&o[r].column.command===bz?i=(o[r].column.colspan||1)-1:n[r+i]=o[r]}},_createCell:function(e){var t,i,n,o=this,r=e.column,a=r&&r.command,s=e.rowType,l=o.callBase.apply(o,arguments);(o._isFixedTableRendering||"filter"===s)&&(t=o.getFixedColumns(),n=Tz(t),i=t[n-1]),o._isFixedTableRendering?a===bz&&(l.addClass(Cz).toggleClass(gz,0===n||i&&"expand"===i.command).toggleClass(mz,t.length&&n===t.length-1),"freeSpace"!==s&&FD.setEmptyText(l)):"filter"===s&&l.toggleClass(gz,e.columnIndex===n);var d=o.option("rowAlternationEnabled")&&e.isAltRow;return Me.Z.mozilla&&e.column.fixed&&"group"!==e.rowType&&!d&&l.addClass(vz),l},_wrapTableInScrollContainer:function(){var e=this.callBase.apply(this,arguments);return this._isFixedTableRendering&&e.addClass(this.addWidgetPrefix(pz)),e},_renderCellContent:function(e,t){var i,n=t.column,o=this._isFixedTableRendering,r="group"===t.rowType&&(0,l.$K)(n.groupIndex);if(o&&r&&!n.command&&!n.groupCellTemplate&&e.css("pointerEvents","none"),!o&&this._isFixedColumns){if(i=n.fixed||n.command&&!1!==n.fixed,r&&(i=!1,t.row.summaryCells&&t.row.summaryCells.length)){var a=this._columnsController.getVisibleColumns(),s=this._getAlignByColumnCellCount?this._getAlignByColumnCellCount(n.colspan,{columns:a,row:t.row,isFixed:!0}):0;if(s>0){var d=Tz(this._columnsController.getFixedColumns());i=a.length-s<d}}if(i){if(n.command&&"buttons"!==n.type||"group"===t.rowType)return void e.html("&nbsp;").addClass(n.cssClass);e.addClass("dx-hidden-cell")}}n.command!==bz&&this.callBase.apply(this,arguments)},_getCellElementsCore:function(e){var t=this.callBase.apply(this,arguments),i=t.parent().hasClass(xz),n="columnHeadersView"===this.name?e:void 0;if(this._fixedTableElement&&t){var o=this.getFixedColumns(n),r=this._getRowElements(this._fixedTableElement).eq(e).children("td");(0,E.S6)(r,((e,a)=>{if(i)t[e]&&"hidden"!==a.style.visibility&&(t[e]=a);else{var s=o[e];if(s)if(s.command===bz)r.eq(e).hasClass(fz)&&(t[e]=a||t[e]);else{var l=this._columnsController.getVisibleIndexByColumn(s,n);t[l]=a||t[l]}}}))}return t},getColumnWidths:function(){var e,t=this.callBase(),i=this.getFixedColumns();return this._fixedTableElement&&t.length&&(e=this.callBase(this._fixedTableElement)),Sz(i,t,e)},getTableElement:function(){var e=this._isFixedTableRendering?this._fixedTableElement:this.callBase();return e},setTableElement:function(e){this._isFixedTableRendering?this._fixedTableElement=e.addClass(Cz):this.callBase(e)},getColumns:function(e,t){return t=t||this.getTableElement(),this._isFixedTableRendering||t&&t.closest("table").parent("."+this.addWidgetPrefix(pz)).length?this.getFixedColumns(e):this.callBase(e,t)},getRowIndex:function(e){var t=this._fixedTableElement;return t&&t.find(e).length?this._getRowElements(t).index(e):this.callBase(e)},getTableElements:function(){var e=this.callBase.apply(this,arguments);return this._fixedTableElement&&(e=(0,o.Z)([e.get(0),this._fixedTableElement.get(0)])),e},getFixedColumns:function(e){return this._columnsController.getFixedColumns(e)},getFixedColumnsOffset:function(){var e,t={left:0,right:0};if(this._fixedTableElement){e=this.getTransparentColumnElement();var i=e.position();t={left:i.left,right:(0,n.Y_)(this.element(),!0)-((0,n.Y_)(e,!0)+i.left)}}return t},getTransparentColumnElement:function(){return this._fixedTableElement&&this._fixedTableElement.find("."+Cz).first()},getFixedTableElement:function(){return this._fixedTableElement},isFixedColumns:function(){return this._isFixedColumns},_resizeCore:function(){this.callBase(),this.synchronizeRows()},setColumnWidths:function(e){var t,i=this._columnsController.getVisibleColumns(),n=e.widths,o=n&&n.length&&(0,l.$K)(i[0].visibleWidth),r=e.optionNames,s=r&&r.width,d=!1;if(this.callBase.apply(this,arguments),this._fixedTableElement){var u=n&&n.some((function(e){return"auto"===e}));d=u&&(!o||!this.isScrollbarVisible(!0)),d&&(t=i),this.callBase((0,a.l)({},e,{$tableElement:this._fixedTableElement,columns:t,fixed:!0}))}(o||s&&this.option("wordWrapEnabled"))&&this.synchronizeRows()},_createColGroup:function(e){if(this._isFixedTableRendering&&!this.option("columnAutoWidth")){var t=this._columnsController.getVisibleColumns(),i=t.filter((function(e){return!e.width})).length;i&&(e=t)}return this.callBase(e)},_getClientHeight:function(e){var t=e.getBoundingClientRect&&Pe(e);return t&&t.height?t.height:e.clientHeight},synchronizeRows:function(){var e,t,i,n,o=[],r=[];if(this._isFixedColumns&&this._tableElement&&this._fixedTableElement){var a=this._getClientHeight(this._tableElement.get(0)),s=this._getClientHeight(this._fixedTableElement.get(0));if(t=this._getRowElements(this._tableElement),i=this._getRowElements(this._fixedTableElement),n=this._findContentElement(),a!==s){for(n&&n.css("height",a),t.css("height",""),i.css("height",""),e=0;e<t.length;e++)o.push(this._getClientHeight(t.get(e))),r.push(this._getClientHeight(i.get(e)));for(e=0;e<t.length;e++){var l=o[e],d=r[e];l>d?i.eq(e).css("height",l):l<d&&t.eq(e).css("height",d)}n&&n.css("height","")}}},setScrollerSpacing:function(e){var t=this.option("rtlEnabled");this.callBase(e),this.element().children("."+this.addWidgetPrefix(pz)).css({paddingLeft:t?e:"",paddingRight:t?"":e})}},Ez=(0,a.l)({},Iz,{_getRowVisibleColumns:function(e){return this._isFixedTableRendering?this.getFixedColumns(e):this.callBase(e)},getContextMenuItems:function(e){var t=e.column,i=this.option("columnFixing"),n=this.callBase(e);if(e.row&&"header"===e.row.rowType&&!0===i.enabled&&t&&t.allowFixing){var o=e=>{switch(e.itemData.value){case"none":this._columnsController.columnOption(t.index,"fixed",!1);break;case"left":this._columnsController.columnOption(t.index,{fixed:!0,fixedPosition:"left"});break;case"right":this._columnsController.columnOption(t.index,{fixed:!0,fixedPosition:"right"})}};n=n||[],n.push({text:i.texts.fix,beginGroup:!0,items:[{text:i.texts.leftPosition,value:"left",disabled:t.fixed&&(!t.fixedPosition||"left"===t.fixedPosition),onItemClick:o},{text:i.texts.rightPosition,value:"right",disabled:t.fixed&&"right"===t.fixedPosition,onItemClick:o}]},{text:i.texts.unfix,value:"none",disabled:!t.fixed,onItemClick:o})}return n},getFixedColumnElements:function(e){if((0,l.$K)(e))return this._fixedTableElement&&this._getRowElements(this._fixedTableElement).eq(e).children();var t=this.getColumnElements(),i=this.getTransparentColumnElement();if(t&&i&&i.length){var n=Tz(this.getFixedColumns());t.splice(n,i.get(0).colSpan,i.get(0))}return t},getColumnWidths:function(){var e,t=this.callBase(),i=this.getFixedColumnElements(),n=this.getFixedColumns();return this._fixedTableElement&&(e=i&&i.length?this._getWidths(i):this.callBase(this._fixedTableElement)),Sz(n,t,e)}}),Dz=(0,a.l)({},Iz,{_detachHoverEvents:function(){this._fixedTableElement&&re.Z.off(this._fixedTableElement,"mouseover mouseout",".dx-data-row"),this._tableElement&&re.Z.off(this._tableElement,"mouseover mouseout",".dx-data-row")},_attachHoverEvents:function(){var e=this,t=function(t){re.Z.on(t,"mouseover mouseout",".dx-data-row",e.createAction((function(t){var i=t.event,n=e.getRowIndex((0,o.Z)(i.target).closest(".dx-row")),r="mouseover"===i.type;n>=0&&(e._tableElement&&e._getRowElements(e._tableElement).eq(n).toggleClass(_z,r),e._fixedTableElement&&e._getRowElements(e._fixedTableElement).eq(n).toggleClass(_z,r))})))};e._fixedTableElement&&e._tableElement&&(t(e._fixedTableElement),t(e._tableElement))},_findContentElement:function(){var e,t,i=this,n=i.addWidgetPrefix(hz),r=i.element(),a=Me.Z.mozilla?60:0;if(r&&i._isFixedTableRendering){e=r.children("."+n);var s=i.getScrollable();return!e.length&&s&&(e=(0,o.Z)("<div>").addClass(n),re.Z.on(e,"scroll",(function(e){var n=e.target;clearTimeout(i._fixedScrollTimeout),i._fixedScrollTimeout=setTimeout((function(){t=(0,o.Z)(n).scrollTop(),s.scrollTo({y:t})}),a)})),re.Z.on(e,$g.u,(function(e){var n=(0,o.Z)(e.target).closest(".dx-scrollable"),r=!1;if(s&&s.$element().is(n))r=!0;else{var a=n.length&&$p.getInstance(n.get(0)),l=a&&a.scrollHeight()-a.clientHeight()>0;r=a&&!l}if(r&&(t=s.scrollTop(),s.scrollTo({y:t-e.delta}),s.scrollTop()>0&&s.scrollTop()+s.clientHeight()<s.scrollHeight()+i.getScrollbarWidth()))return!1})),e.appendTo(r)),e}return i.callBase()},_updateScrollable:function(){this.callBase();var e=this.getScrollable();if(null===e||void 0===e||!e._disposed){var t=e&&e.scrollOffset().top;this._updateFixedTablePosition(t)}},_renderContent:function(e,t){return this._isFixedTableRendering?e.empty().addClass(this.addWidgetPrefix(hz)+" "+this.addWidgetPrefix(pz)).append(t):this.callBase(e,t)},_getGroupCellOptions:function(e){return this._isFixedTableRendering?this.callBase((0,a.l)({},e,{columns:this._columnsController.getVisibleColumns()})):this.callBase(e)},_renderGroupedCells:function(e,t){return this.callBase(e,(0,a.l)({},t,{columns:this._columnsController.getVisibleColumns()}))},_renderGroupSummaryCells:function(e,t){this._isFixedTableRendering?this.callBase(e,(0,a.l)({},t,{columns:this._columnsController.getVisibleColumns()})):this.callBase(e,t)},_hasAlignByColumnSummaryItems:function(e,t){var i=this.callBase.apply(this,arguments),n=t.columns[e];return t.isFixed?n.fixed&&(i||"right"===n.fixedPosition):i&&(!this._isFixedColumns||!n.fixed)},_renderGroupSummaryCellsCore:function(e,t,i,n){var o;if(this._isFixedTableRendering){t.isFixed=!0,o=this._getAlignByColumnCellCount(i,t),t.isFixed=!1;var r=t.columns.length-o;t=(0,a.l)({},t,{columns:this.getFixedColumns()});var s=Tz(t.columns);r<s?(o-=t.columns[s].colspan-1||0,i-=t.columns[s].colspan-1||0):n>0&&e.css("visibility","hidden"),n=o}this.callBase(e,t,i,n)},_getSummaryCellIndex:function(e,t){if(this._isFixedTableRendering){var i=Tz(t);return e>i&&(e+=t[i].colspan-1),e}return this.callBase.apply(this,arguments)},_renderCore:function(e){this._detachHoverEvents(),this.callBase(e);var t=this._isFixedColumns;this.element().toggleClass(yz,t),this.option("hoverStateEnabled")&&t&&this._attachHoverEvents()},setRowsOpacity:function(e,t){this.callBase(e,t);var i=this._getRowElements(this._fixedTableElement);this._setRowsOpacityCore(i,this.getFixedColumns(),e,t)},optionChanged:function(e){this.callBase(e),"hoverStateEnabled"===e.name&&this._isFixedColumns&&(e.value?this._attachHoverEvents():this._detachHoverEvents())},getCellIndex:function(e){var t=this._fixedTableElement,i=0;if(t&&e.is("td")&&e.closest(t).length){var n=this.getFixedColumns();return(0,E.S6)(n,(function(t,n){if(t===e[0].cellIndex)return!1;n.colspan?i+=n.colspan:i++})),i}return this.callBase.apply(this,arguments)},_updateFixedTablePosition:function(e,t){if(this._fixedTableElement&&this._tableElement){var i,n=this.getController("editorFactory");this._fixedTableElement.parent().scrollTop(e),t&&n&&(i=n.focus(),i&&n.focus(i))}},setScrollerSpacing:function(e,t){var i={marginBottom:0},n=this.element().children("."+this.addWidgetPrefix(pz));if(n.length&&this._fixedTableElement){n.css(i),this._fixedTableElement.css(i),i[this.option("rtlEnabled")?"marginLeft":"marginRight"]=e,i.marginBottom=t;var o=this._scrollable&&this._scrollable.option("useNative");(o?n:this._fixedTableElement).css(i)}},_getElasticScrollTop:function(e){var t=0;if(e.scrollOffset.top<0)t=-e.scrollOffset.top;else if(e.reachedBottom){var i=(0,o.Z)(e.component.content()),n=(0,o.Z)(e.component.container()),r=Math.max(i.get(0).clientHeight-n.get(0).clientHeight,0);t=r-e.scrollOffset.top}return Math.floor(t)},_applyElasticScrolling:function(e){if(this._fixedTableElement){var t=this._getElasticScrollTop(e);0!==Math.ceil(t)?ve(this._fixedTableElement,{top:t}):this._fixedTableElement.css("transform","")}},_handleScroll:function(e){this._updateFixedTablePosition(e.scrollOffset.top,!0),this._applyElasticScrolling(e),this.callBase(e)},_updateContentPosition:function(e){this.callBase.apply(this,arguments),e||this._updateFixedTablePosition(this._scrollTop)},_afterRowPrepared:function(e){this._isFixedTableRendering||this.callBase(e)},_scrollToElement:function(e){this.callBase(e,this.getFixedColumnsOffset())},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._fixedScrollTimeout)}}),kz=Iz,Oz={defaultOptions:function(){return{columnFixing:{enabled:!1,texts:{fix:y.Z.format("dxDataGrid-columnFixingFix"),unfix:y.Z.format("dxDataGrid-columnFixingUnfix"),leftPosition:y.Z.format("dxDataGrid-columnFixingLeftPosition"),rightPosition:y.Z.format("dxDataGrid-columnFixingRightPosition")}}}},extenders:{views:{columnHeadersView:Ez,rowsView:Dz,footerView:kz},controllers:{draggingHeader:{_generatePointsByColumns:function(e){var t=e.columns,i=e.targetDraggingPanel;if(i&&"headers"===i.getName()&&i.isFixedColumns()&&e.sourceColumn.fixed){e.rowIndex||(e.columnElements=i.getFixedColumnElements(0)),e.columns=i.getFixedColumns(e.rowIndex);var n=this.callBase(e);return function(e,t,i){var n=Tz(t),o=e.length-t.length;(0,E.S6)(i,(function(e,t){t.index>n&&(t.columnIndex+=o,t.index+=o)}))}(t,e.columns,n),n}return this.callBase(e)},_pointCreated:function(e,t,i,n){var o=this.callBase.apply(this,arguments),r=t[e.columnIndex],a=this._columnHeadersView.getTransparentColumnElement();if(!o&&"headers"===i&&a&&a.length){var s=Pe(a.get(0));return n&&n.fixed?"right"===n.fixedPosition?e.x<s.right:e.x>s.left:!(!r||!r.fixed||"right"===r.fixedPosition)||(e.x<s.left||e.x>s.right)}return o}},columnsResizer:{_generatePointsByColumns:function(){var e=this,t=e._columnsController,i=t&&e._columnsController.getVisibleColumns(),n=t&&e._columnsController.getFixedColumns(),o=Tz(n),r=i.length-n.length,a=e._columnHeadersView.getFixedColumnElements();e.callBase(),a&&a.length>0&&(e._pointsByFixedColumns=FD.getPointsByColumns(a,(function(t){return t.index>o&&(t.columnIndex+=r,t.index+=r),e._pointCreated(t,i.length,i)})))},_getTargetPoint:function(e,t,i){var n=this._columnHeadersView.getTransparentColumnElement();if(n&&n.length){var o=Pe(n.get(0));if(t<=o.left||t>=o.right)return this.callBase(this._pointsByFixedColumns,t,i)}return this.callBase(e,t,i)}}}}};zO.registerModule("columnFixing",Oz);var Az="columnHeadersView",Pz="rowsView",Mz="footerView",Rz=[Az,Pz,Mz],Bz="dxDataGridAdaptivity",Vz="adaptiveHidden",Fz="detailAdaptive",Hz="dx-field-item-content",Lz="dx-item-modified",Nz="hidden-column",Zz="adaptive-more",$z="dx-command-adaptive",Wz="dx-command-adaptive-hidden",Kz="dx-adaptive-detail-row",zz="dx-adaptive-item-text",jz="dx-master-detail-cell",Uz="dx-last-data-cell",Gz="adaptive",qz="batch",Yz="row",Xz="form",Jz="popup",Qz="revert-tooltip",ej="dx-group-cell",tj="dx-group-row",ij="dxDataGrid-ariaAdaptiveExpand",nj="dxDataGrid-ariaAdaptiveCollapse",oj="scrolling.legacyMode";function rj(e,t){return e._columnsController.getColumnId(t)}function aj(e){return e.find("td:not(.dx-datagrid-hidden-column):not([class*='dx-command-'])")}function sj(e,t){var i,n=(0,o.Z)(e),r=t.component.getController("adaptiveColumns");"data"===t.rowType?(i=(0,o.Z)("<span>").addClass(r.addWidgetPrefix(Zz)),re.Z.on(i,(0,R.V4)(A.u,Bz),r.createAction((function(){r.toggleExpandAdaptiveDetailRow(t.key)}))),i.appendTo(n)):FD.setEmptyText(n)}var lj=KO.ViewController.inherit({_isRowEditMode:function(){var e=this._getEditMode();return e===Yz},_isItemModified:function(e,t){var i=this._columnsController.getVisibleIndex(e.column.index),n=this._dataController.getRowIndexByKey(t.key),o=this._dataController.items()[n+1];return o&&o.modifiedValues&&(0,l.$K)(o.modifiedValues[i])},_renderFormViewTemplate:function(e,t,i){var n=e.column,o=this.createAction((function(){re.Z.trigger(i,A.u)})),r=t.row.data,s=n.calculateCellValue(r),d=FD.getDisplayValue(n,s,r,t.rowType),u=FD.formatValue(d,n),c=this._editingController.isCellOrBatchEditMode(),h=this._rowsView;if(n.allowEditing&&this.getController("keyboardNavigation").isKeyboardEnabled()&&(i.attr("tabIndex",this.option("tabIndex")),c&&(re.Z.off(i,"focus",o),re.Z.on(i,"focus",o))),n.cellTemplate){var p=(0,a.l)({},t,{value:s,displayValue:d,text:u,column:n});h.renderTemplate(i,n.cellTemplate,p,(0,M.al)(i)).done((()=>{h._cellPrepared(i,t)}))}else{var f=i.get(0);n.encodeHtml?f.textContent=u:f.innerHTML=u,i.addClass(zz),(0,l.$K)(u)&&""!==u||i.html("&nbsp;"),this._isRowEditMode()||this._isItemModified(e,t)&&i.addClass(Lz),h._cellPrepared(i,t)}},_getTemplate:function(e,t){var i=this,n=e.column,r=this.getController("editing");return function(s,l){var d=(0,o.Z)(l),u=i._columnsController.getVisibleIndex(n.index),c=(0,a.l)({},t),h=function(){var o=i._isItemEdited(e);c.value=t.row.values[u],o||n.showEditorAlways?r.renderFormEditTemplate(c,e,s,d,!o):(c.column=n,c.columnIndex=u,i._renderFormViewTemplate(e,c,d))};h(),c.watch&&c.watch((function(){return{isItemEdited:i._isItemEdited(e),value:t.row.values[u]}}),(function(){d.contents().remove(),d.removeClass(zz),h()}))}},_isVisibleColumnsValid:function(e){return!(e<2)&&!(e.length-function(){for(var t=0,i=0;i<e.length;i++){var n=e[i];n.command&&t++}return t}()<=1)},_calculatePercentWidths:function(e,t){var i=this,n=0;return t.forEach((function(t,o){e[o]!==Vz&&(n+=i._getItemPercentWidth(t))})),n},_isPercentWidth:function(e){return(0,l.HD)(e)&&"%"===e.slice(-1)},_isColumnHidden:function(e){return this._hiddenColumns.filter((function(t){return t.index===e.index})).length>0},_getAverageColumnsWidth:function(e,t,i){var n=this,o=0,r=0;return t.forEach((function(a){if(!n._isColumnHidden(a)){var s=a.width;(0,l.$K)(s)&&!isNaN(parseFloat(s))?o+=n._isPercentWidth(s)?n._calculatePercentWidth({visibleIndex:a.visibleIndex,columnsCount:t.length,columnsCanFit:i,bestFitWidth:a.bestFitWidth,columnWidth:s,containerWidth:e}):parseFloat(s):r++}})),(e-o)/r},_calculateColumnWidth:function(e,t,i,n){var o,r=rj(this,e),a=this._columnsController.columnOption(r,"width"),s=this._columnsController.columnOption(r,"bestFitWidth"),l=i.length;if(a&&"auto"!==a){if(!this._isPercentWidth(a))return parseFloat(a);o=this._calculatePercentWidth({visibleIndex:e.visibleIndex,columnsCount:l,columnsCanFit:n,bestFitWidth:s,columnWidth:a,containerWidth:t})}else{var d=this.option("columnAutoWidth");o=d||e.command?s:this._getAverageColumnsWidth(t,i,n)}return o},_calculatePercentWidth:function(e){var t=e.visibleIndex<e.columnsCount-1&&e.columnsCanFit,i=e.containerWidth*parseFloat(e.columnWidth)/100,n=e.columnsCanFit&&i<e.bestFitWidth?e.bestFitWidth:i;return t?e.containerWidth*parseFloat(e.columnWidth)/100:n},_getNotTruncatedColumnWidth:function(e,t,i,n){var o=rj(this,e),r=this._columnsController.columnOption(o,"width"),a=this._columnsController.columnOption(o,"bestFitWidth");if(r&&"auto"!==r&&!this._isPercentWidth(r))return parseFloat(r);var s=this._calculateColumnWidth(e,t,i,n);return s<a?null:s},_getItemPercentWidth:function(e){var t=0;return e.width&&this._isPercentWidth(e.width)&&(t=parseFloat(e.width)),t},_getCommandColumnsWidth:function(){var e=this,t=e._columnsController.getVisibleColumns(),i=0;return(0,E.S6)(t,(function(t,n){(n.index<0||n.command)&&(i+=e._columnsController.columnOption(rj(e,n),"bestFitWidth")||0)})),i},_isItemEdited:function(e){if(this.isFormOrPopupEditMode())return!1;if(!this._isRowEditMode()){var t=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,i=this._columnsController.getVisibleIndex(e.column.index);return this._editingController.isEditCell(t,i)}var n=this.option("editing.editRowKey");return!!(0,v.bY)(n,this._dataController.adaptiveExpandedKey())||void 0},_getFormItemsByHiddenColumns:function(e){var t=[];return(0,E.S6)(e,(function(e,i){t.push({column:i,name:i.name,dataField:i.dataField,visibleIndex:i.visibleIndex})})),t},_getAdaptiveColumnVisibleIndex:function(e){for(var t=0;t<e.length;t++){var i=e[t];if(i.command===Gz)return t}},_hideAdaptiveColumn:function(e,t){var i=this._getAdaptiveColumnVisibleIndex(t);(0,l.$K)(i)&&(e[i]=Vz,this._hideVisibleColumn({isCommandColumn:!0,visibleIndex:i}))},_showHiddenCellsInView:function(e){var{$cells:t,isCommandColumn:i}=e,n=this.addWidgetPrefix(Nz);i?(n=Wz,t.attr({tabIndex:0,"aria-hidden":null}).removeClass(n)):t.removeClass(n)},_showHiddenColumns:function(){for(var e=0;e<Rz.length;e++){var t=this.getView(Rz[e]);if(t&&t.isVisible()&&t.element()){var i=t.name,n=t.element().find("."+Wz);this._showHiddenCellsInView({viewName:i,$cells:n,isCommandColumn:!0});var o=t.element().find("."+this.addWidgetPrefix(Nz));this._showHiddenCellsInView({viewName:i,$cells:o})}}},_isCellValid:function(e){return e&&e.length&&!e.hasClass(jz)&&!e.hasClass(ej)},_hideVisibleColumn:function(e){var{isCommandColumn:t,visibleIndex:i}=e,n=this;Rz.forEach((function(e){var o=n.getView(e);o&&n._hideVisibleColumnInView({view:o,isCommandColumn:t,visibleIndex:i})}))},_hideVisibleColumnInView:function(e){var t,{view:i,isCommandColumn:n,visibleIndex:o}=e,r=i.name,a=this._columnsController.getVisibleColumns()[o],s=this._editingController&&this._editingController.getEditFormRowIndex();if(i&&i.isVisible()&&a)for(var l=i.getRowsCount(),d=i._getRowElements(),u=0;u<l;u++){var c=u===s&&r===Pz&&"popup"!==this.option("editing.mode");if(!c){var h=r===Az?this._columnsController.getVisibleIndex(a.index,u):o;if(h>=0){var p=d.eq(u);t=this._findCellElementInRow(p,h),this._isCellValid(t)&&this._hideVisibleCellInView({viewName:r,isCommandColumn:n,$cell:t})}}}},_findCellElementInRow(e,t){var i=e.children(),n=t,o=!1;if(e.hasClass(tj)){var r=e.find(".".concat(ej)),a=r.attr("colspan");if(r.length&&(0,l.$K)(a)){var s=parseInt(a),d=r.index()+s-1;t>d?n=t-s+1:o=!0}}var u=o?void 0:i.eq(n);return u},_hideVisibleCellInView:function(e){var{$cell:t,isCommandColumn:i}=e,n=i?Wz:this.addWidgetPrefix(Nz);t.attr({tabIndex:-1,"aria-hidden":!0}).addClass(n)},_getEditMode:function(){return this._editingController.getEditMode()},isFormOrPopupEditMode:function(){var e=this._getEditMode();return e===Xz||e===Jz},hideRedundantColumns:function(e,t,i){if(this._hiddenColumns=[],this._isVisibleColumnsValid(t)&&i.length){var o,r,a,s=0,l=this.component.$element(),d=(0,n.dz)(l)-this._getCommandColumnsWidth(),u=function(){return t.filter((e=>!e.command&&0===this._hiddenColumns.filter((t=>t.index===e.index)).length))}.bind(this),c=u(),h=c.length;do{a=!1,s=0;var p=this._calculatePercentWidths(e,t),f=p<100&&0!==p;for(o=0;o<t.length;o++){var g=t[o],m=this._getNotTruncatedColumnWidth(g,d,c,f),_=rj(this,g),v=this._columnsController.columnOption(_,"width"),y=this._columnsController.columnOption(_,"minWidth"),C=this._columnsController.columnOption(_,"bestFitWidth");if(e[o]!==Vz){if(!m&&!g.command&&!g.fixed){a=!0;break}v&&"auto"!==v||(m=Math.max(C||0,y||0)),(g.command!==Gz||r)&&(s+=m)}else r=!0}if(a=a||s>(0,n.dz)(l),a){var b=i.pop(),x=this._columnsController.getVisibleIndex(b.index);d+=this._calculateColumnWidth(b,d,c,f),this._hideVisibleColumn({visibleIndex:x}),e[x]=Vz,this._hiddenColumns.push(b),c=u()}}while(a&&c.length>1&&i.length);h===c.length&&this._hideAdaptiveColumn(e,t)}else this._hideAdaptiveColumn(e,t)},getItemContentByColumnIndex:function(e){for(var t,i=0;i<this._$itemContents.length;i++){t=this._$itemContents.eq(i);var n=t.data("dx-form-item");if(n&&n.column&&this._columnsController.getVisibleIndex(n.column.index)===e)return t}},toggleExpandAdaptiveDetailRow:function(e,t){this.isFormOrPopupEditMode()&&this._editingController.isEditing()||this.getController("data").toggleExpandAdaptiveDetailRow(e,t)},createFormByHiddenColumns:function(e,t){var i=this,n=(0,o.Z)(e),r={items:i._getFormItemsByHiddenColumns(i._hiddenColumns),formID:"dx-"+new Li.Z},s=(0,x.x2)()?{colCount:2}:{};this.executeAction("onAdaptiveDetailRowPreparing",{formOptions:r}),i._$itemContents=null,i._form=i._createComponent((0,o.Z)("<div>").appendTo(n),cI,(0,a.l)(s,r,{customizeItem:function(e){var n=e.column||i._columnsController.columnOption(e.name||e.dataField);n&&(e.label=e.label||{},e.label.text=e.label.text||n.caption,e.column=n,e.template=i._getTemplate(e,t,i.updateForm.bind(i))),r.customizeItem&&r.customizeItem.call(this,e)},onContentReady:function(e){r.onContentReady&&r.onContentReady.call(this,e),i._$itemContents=n.find("."+Hz)}}))},hasAdaptiveDetailRowExpanded:function(){return(0,l.$K)(this._dataController.adaptiveExpandedKey())},updateForm:function(e){this.hasAdaptiveDetailRowExpanded()&&this._form&&(0,l.$K)(this._form._contentReadyAction)&&(e&&e.length?this._form.option("items",this._getFormItemsByHiddenColumns(e)):this._form.repaint())},updateHidingQueue:function(e){var t,i,n=e.filter((function(e){return e.visible&&!e.type&&!e.fixed&&!((0,l.$K)(e.groupIndex)&&e.groupIndex>=0)}));if(this._hidingColumnsQueue=[],this.option("allowColumnResizing")&&"widget"===this.option("columnResizingMode"))return this._hidingColumnsQueue;for(i=0;i<n.length;i++)(0,l.$K)(n[i].hidingPriority)&&n[i].hidingPriority>=0&&(t=!0,this._hidingColumnsQueue[n[i].hidingPriority]=n[i]);if(t)this._hidingColumnsQueue.reverse();else if(this.option("columnHidingEnabled"))for(i=0;i<n.length;i++){var o=this._columnsController.getVisibleIndex(n[i].index);this._hidingColumnsQueue[o]=n[i]}return this._hidingColumnsQueue=this._hidingColumnsQueue.filter(Object),this._hidingColumnsQueue},getHiddenColumns:function(){return this._hiddenColumns},hasHiddenColumns:function(){return this._hiddenColumns.length>0},getHidingColumnsQueue:function(){return this._hidingColumnsQueue},init:function(){var e=this;e._columnsController=e.getController("columns"),e._dataController=e.getController("data"),e._rowsView=e.getView("rowsView"),e._columnsController.addCommandColumn({type:Gz,command:Gz,visible:!0,adaptiveHidden:!0,cssClass:$z,alignment:"center",width:"auto",cellTemplate:sj,fixedPosition:"right"}),e._columnsController.columnsChanged.add((function(){var t=!!e.updateHidingQueue(e._columnsController.getColumns()).length;e._columnsController.columnOption("command:adaptive","adaptiveHidden",!t,!0)})),e._editingController=e.getController("editing"),e._hidingColumnsQueue=[],e._hiddenColumns=[],e.createAction("onAdaptiveDetailRowPreparing"),e.callBase()},optionChanged:function(e){"columnHidingEnabled"===e.name&&this._columnsController.columnOption("command:adaptive","adaptiveHidden",!e.value),this.callBase(e)},publicMethods:function(){return["isAdaptiveDetailRowExpanded","expandAdaptiveDetailRow","collapseAdaptiveDetailRow"]},isAdaptiveDetailRowExpanded:function(e){return this._dataController.adaptiveExpandedKey()&&(0,v.bY)(this._dataController.adaptiveExpandedKey(),e)},expandAdaptiveDetailRow:function(e){this.hasAdaptiveDetailRowExpanded()||this.toggleExpandAdaptiveDetailRow(e)},collapseAdaptiveDetailRow:function(){this.hasAdaptiveDetailRowExpanded()&&this.toggleExpandAdaptiveDetailRow()},updateCommandAdaptiveAriaLabel:function(e,t){var i=this._dataController.getRowIndexByKey(e);if(-1!==i){var n=(0,o.Z)(this.component.getRowElement(i));this.setCommandAdaptiveAriaLabel(n,t)}},setCommandAdaptiveAriaLabel:function(e,t){var i=e.find(".dx-command-adaptive");i.attr("aria-label",y.Z.format(t))}}),dj={defaultOptions:function(){return{columnHidingEnabled:!1,onAdaptiveDetailRowPreparing:null}},controllers:{adaptiveColumns:lj},extenders:{views:{rowsView:{_getCellTemplate:function(e){var t=this,i=e.column;return e.rowType===Fz&&"detail"===i.command?function(e,i){t._adaptiveColumnsController.createFormByHiddenColumns((0,o.Z)(e),i)}:t.callBase(e)},_createRow:function(e){var t=this.callBase.apply(this,arguments);return e&&e.rowType===Fz&&e.key===this._dataController.adaptiveExpandedKey()&&t.addClass(Kz),t},_renderCells:function(e,t){this.callBase(e,t);var i=this._adaptiveColumnsController,n=i.getHidingColumnsQueue().length,o=i.getHiddenColumns().length;n&&!o&&aj(e).last().addClass(Uz),"data"===t.row.rowType&&i.setCommandAdaptiveAriaLabel(e,ij)},_getColumnIndexByElementCore:function(e){var t=e.closest("."+Hz);if(t.length&&t.closest(this.component.$element()).length){var i=t.length?t.first().data("dx-form-item"):null;return i&&i.column&&this._columnsController.getVisibleIndex(i.column.index)}return this.callBase(e)},_cellPrepared:function(e,t){this.callBase.apply(this,arguments),t.row.rowType!==Fz&&t.column.visibleWidth===Vz&&e.addClass(this.addWidgetPrefix(Nz))},_getCellElement:function(e,t){var i=this._dataController.items()[e];return i&&i.rowType===Fz?this._adaptiveColumnsController.getItemContentByColumnIndex(t):this.callBase.apply(this,arguments)},getContextMenuItems:function(e){if(e.row&&"detailAdaptive"===e.row.rowType){var t=this.component.getView("columnHeadersView"),i=(0,o.Z)(e.targetElement).closest(".dx-field-item-label").next().data("dx-form-item");return e.column=i?i.column:e.column,t.getContextMenuItems&&t.getContextMenuItems(e)}return this.callBase&&this.callBase(e)},isClickableElement:function(e){var t=!!this.callBase&&this.callBase(e);return t||!!e.closest("."+$z).length},init:function(){this.callBase(),this._adaptiveColumnsController=this.getController("adaptiveColumns")}}},controllers:{export:{_updateColumnWidth:function(e,t){this.callBase(e,e.visibleWidth===Vz?e.bestFitWidth:t)}},columnsResizer:{_pointCreated:function(e,t,i){var n=this.callBase(e,t,i),o=i[e.columnIndex]||{},r=this._getNextColumnIndex(e.columnIndex),a=i[r]||{},s=r!==e.columnIndex+1&&a.command,l=o.visibleWidth===Vz||s;return n||l},_getNextColumnIndex:function(e){var t=this._columnsController.getVisibleColumns(),i=this.callBase(e);while(t[i]&&t[i].visibleWidth===Vz)i++;return i}},draggingHeader:{_pointCreated:function(e,t,i,n){var o=this.callBase(e,t,i,n),r=t[e.columnIndex-1]||{},a=r.visibleWidth===Vz;return o||a}},editing:{_isRowEditMode:function(){return this.getEditMode()===Yz},_getFormEditItemTemplate:function(e,t){return this.getEditMode()!==Yz&&"detailAdaptive"===e.rowType?(e.columnIndex=this._columnsController.getVisibleIndex(t.index),this.getColumnTemplate(e)):this.callBase(e,t)},_closeEditItem:function(e){var t=e.closest("."+Hz),i=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,n=t.length?t.first().data("dx-form-item"):null,o=n&&n.column&&this._columnsController.getVisibleIndex(n.column.index);this.isEditCell(i,o)||this.callBase(e)},_beforeUpdateItems:function(e,t){if(!this._adaptiveController.isFormOrPopupEditMode()&&this._adaptiveController.hasHiddenColumns()){var i=this._dataController.items(),n=i[t],o=FD.getIndexByKey(this._dataController.adaptiveExpandedKey(),i);this._isForceRowAdaptiveExpand=!this._adaptiveController.hasAdaptiveDetailRowExpanded(),o>=0&&e.push(o+1),e.push(t+1),this._dataController.adaptiveExpandedKey(n.key)}},_afterInsertRow:function(e){this.callBase.apply(this,arguments),this._adaptiveController.hasHiddenColumns()&&(this._adaptiveController.toggleExpandAdaptiveDetailRow(e,this.isRowEditMode()),this._isForceRowAdaptiveExpand=!0)},_collapseAdaptiveDetailRow:function(){this._isRowEditMode()&&this._isForceRowAdaptiveExpand&&(this._adaptiveController.collapseAdaptiveDetailRow(),this._isForceRowAdaptiveExpand=!1)},_cancelEditAdaptiveDetailRow:function(){this._adaptiveController.hasHiddenColumns()&&this._collapseAdaptiveDetailRow()},_afterSaveEditData:function(){this.callBase.apply(this,arguments);var e=new ot.BH;return this._isRowEditMode()&&this._adaptiveController.hasHiddenColumns()?(0,ot.gx)(this.getController("validating").validate(!0)).done((t=>{t&&this._cancelEditAdaptiveDetailRow(),e.resolve()})):e.resolve(),e.promise()},_beforeCancelEditData:function(){this.callBase(),this._cancelEditAdaptiveDetailRow()},_getRowIndicesForCascadeUpdating:function(e){var t=this.callBase.apply(this,arguments);return this._adaptiveController.isAdaptiveDetailRowExpanded(e.key)&&t.push(e.rowType===Fz?e.rowIndex-1:e.rowIndex+1),t},_beforeCloseEditCellInBatchMode:function(e){var t=this._dataController._adaptiveExpandedKey;if(t){var i=FD.getIndexByKey(t,this._dataController.items());i>-1&&e.unshift(i)}},editRow:function(e){this._adaptiveController.isFormOrPopupEditMode()&&this._adaptiveController.collapseAdaptiveDetailRow(),this.callBase(e)},deleteRow:function(e){var t=this._dataController.getKeyByRowIndex(e);this.getEditMode()===qz&&this._adaptiveController.isAdaptiveDetailRowExpanded(t)&&this._adaptiveController.collapseAdaptiveDetailRow(),this.callBase(e)},init:function(){this.callBase(),this._adaptiveController=this.getController("adaptiveColumns")}},resizing:{_needBestFit:function(){return this.callBase()||!!this._adaptiveColumnsController.getHidingColumnsQueue().length},_correctColumnWidths:function(e,t){var i=this._adaptiveColumnsController,n=i.getHiddenColumns(),o=i.updateHidingQueue(this._columnsController.getColumns());i.hideRedundantColumns(e,t,o);var r=i.getHiddenColumns();return i.hasAdaptiveDetailRowExpanded()&&n.length!==r.length&&i.updateForm(r),!r.length&&i.collapseAdaptiveDetailRow(),this.callBase.apply(this,arguments)},_toggleBestFitMode:function(e){e&&this._adaptiveColumnsController._showHiddenColumns(),this.callBase(e)},_needStretch:function(){var e=this._adaptiveColumnsController;return this.callBase.apply(this,arguments)||e.getHidingColumnsQueue().length||e.hasHiddenColumns()},init:function(){this._adaptiveColumnsController=this.getController("adaptiveColumns"),this.callBase()},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._updateScrollableTimeoutID)}},data:{_processItems:function(e,t){var i=t.changeType;if(e=this.callBase.apply(this,arguments),"loadingAll"===i||!(0,l.$K)(this._adaptiveExpandedKey))return e;var n=FD.getIndexByKey(this._adaptiveExpandedKey,e),o=!1===this.option(oj);if(n>=0){var r=e[n];e.splice(n+1,0,{visible:!0,rowType:Fz,key:r.key,data:r.data,node:r.node,modifiedValues:r.modifiedValues,isNewRow:r.isNewRow,values:r.values})}else"refresh"!==i||o&&t.repaintChangesOnly||(this._adaptiveExpandedKey=void 0);return e},_getRowIndicesForExpand:function(e){var t=this.callBase.apply(this,arguments);if(this.getController("adaptiveColumns").isAdaptiveDetailRowExpanded(e)){var i=t[t.length-1];t.push(i+1)}return t},adaptiveExpandedKey:function(e){if(!(0,l.$K)(e))return this._adaptiveExpandedKey;this._adaptiveExpandedKey=e},toggleExpandAdaptiveDetailRow:function(e,t){var i=FD.getIndexByKey(this._adaptiveExpandedKey,this._items),n=FD.getIndexByKey(e,this._items);i>=0&&i===n&&!t&&(e=void 0,n=-1);var o=this._adaptiveExpandedKey;this._adaptiveExpandedKey=e,i>=0&&i++,n>=0&&n++;var r=this.getRowIndexDelta();this.updateItems({allowInvisibleRowIndices:!0,changeType:"update",rowIndices:[i-r,n-r]});var a=this.getController("adaptiveColumns");a.updateCommandAdaptiveAriaLabel(e,nj),a.updateCommandAdaptiveAriaLabel(o,ij)},init:function(){this.callBase(),this._adaptiveExpandedKey=void 0}},editorFactory:{_getFocusCellSelector:function(){return this.callBase()+", .dx-adaptive-detail-row .dx-field-item > .dx-field-item-content"},_getTooltipsSelector:function(){return this.callBase()+", .dx-field-item-content ."+this.addWidgetPrefix(Qz)}},columns:{_isColumnVisible:function(e){return this.callBase(e)&&!e.adaptiveHidden}},keyboardNavigation:{_isCellValid:function(e){return this.callBase.apply(this,arguments)&&!e.hasClass(this.addWidgetPrefix(Nz))&&!e.hasClass(Wz)},_processNextCellInMasterDetail:function(e){this.callBase(e);var t=this._editingController.isCellOrBatchEditMode();!this._isInsideEditForm(e)&&e&&t&&re.Z.on(e,"focus",(function t(){re.Z.off(e,"focus",t),re.Z.trigger(e,"dxclick")}))},_handleTabKeyOnMasterDetailCell:function(e,t){var i=this.callBase(e,t),n=this._getFocusedCell(),o=n&&n.parent();if(!i&&o&&o.length){var r=aj(o),a="next"===t?r.last():r.first(),s=o.get(0).rowIndex,l=this._adaptiveController,d=this._dataController.getKeyByRowIndex("next"===t?s:s-1),u=n&&a&&n.get(0)===a.get(0);return l.isAdaptiveDetailRowExpanded(d)&&u}return i},init:function(){this.callBase(),this._adaptiveController=this.getController("adaptiveColumns")}}}}};zO.registerModule("adaptivity",dj);var uj="dx-editor-cell",cj="dx-row",hj="dx-selection",pj="dx-select-checkbox",fj="dx-select-checkboxes-hidden",gj="dx-command-select",mj="dx-selection-disabled",_j="dx-data-row",vj="selection.showCheckBoxesMode",yj="selection.mode",Cj=function(e,t){var i=e.getController("selection"),n=e.getView("rowsView"),r=(0,o.Z)(t.target).closest("."+_j),a=n.getRowIndex(r);a<0||("onLongTap"===e.option(vj)?i.isSelectionWithCheckboxes()?i.stopSelectionWithCheckboxes():i.startSelectionWithCheckboxes():("onClick"===e.option(vj)&&i.startSelectionWithCheckboxes(),"always"!==e.option(vj)&&i.changeItemSelection(a,{control:!0})))},bj=wP.Controller.inherit(function(){var e=(e,t)=>{var i=t.component,n=i.getView("rowsView");i.option("renderAsync")&&!i.option("selection.deferred")&&(t.value=i.isRowSelected(t.row.key)),n.renderSelectCheckBoxContainer((0,o.Z)(e),t)},t=(e,t)=>{var i=t.column,n=(0,o.Z)(e),r=t.component.getView("columnHeadersView");n.addClass(uj),r._renderSelectAllCheckBox(n,i),r._attachSelectAllCheckBoxClickEvent(n)};return{init:function(){var{deferred:e,selectAllMode:t,mode:i}=this.option("selection")||{};"infinite"!==this.option("scrolling.mode")||e||"multiple"!==i||"allPages"!==t||Xt.Z.log("W1018"),this._dataController=this.getController("data"),this._selectionMode=i,this._isSelectionWithCheckboxes=!1,this._selection=this._createSelection(),this._updateSelectColumn(),this.createAction("onSelectionChanged",{excludeValidators:["disabled","readOnly"]}),this._dataController&&this._dataController.pushed.add(this._handleDataPushed.bind(this))},_handleDataPushed:function(e){var t=e.filter((e=>"remove"===e.type)).map((e=>e.key));t.length&&this.deselectRows(t)},_getSelectionConfig:function(){var e=this._dataController,t=this.getController("columns"),i=this.option("selection")||{},n=i.deferred,o=this.option("scrolling.mode"),r="virtual"===o||"infinite"===o,a=this.option("selection.allowSelectAll"),s=this.option("scrolling.legacyMode");return{selectedKeys:this.option("selectedRowKeys"),mode:this._selectionMode,deferred:n,maxFilterLengthInRequest:i.maxFilterLengthInRequest,selectionFilter:this.option("selectionFilter"),ignoreDisabledItems:!0,allowLoadByRange:function(){var e=t.getGroupColumns().length>0;return r&&!s&&!e&&a&&!n},key:function(){return null===e||void 0===e?void 0:e.key()},keyOf:function(t){return null===e||void 0===e?void 0:e.keyOf(t)},dataFields:function(){var t;return null===(t=e.dataSource())||void 0===t?void 0:t.select()},load:function(t){var i;return(null===(i=e.dataSource())||void 0===i?void 0:i.load(t))||(new ot.BH).resolve([])},plainItems:function(){return e.items(!0)},isItemSelected:function(e){return e.selected},isSelectableItem:function(e){return"data"===(null===e||void 0===e?void 0:e.rowType)&&!e.isNewRow},getItemData:function(e){return(null===e||void 0===e?void 0:e.oldData)||(null===e||void 0===e?void 0:e.data)||e},filter:function(){return e.getCombinedFilter(n)},totalCount:()=>e.totalCount(),getLoadOptions:function(t,i,n){var o,r,{sort:a,filter:s}=null!==(o=null===(r=e.dataSource())||void 0===r?void 0:r.lastLoadOptions())&&void 0!==o?o:{},d=Math.min(t,i),u=Math.max(t,i);(0,l.$K)(n)&&(d=Math.min(n,d),u=Math.max(n,u));var c=u-d+1;return{skip:d,take:c,filter:s,sort:a}},onSelectionChanged:this._updateSelectedItems.bind(this)}},_updateSelectColumn:function(){var i=this.getController("columns"),n=this.isSelectColumnVisible();i.addCommandColumn({type:"selection",command:"select",visible:n,visibleIndex:-1,dataType:"boolean",alignment:"center",cssClass:gj,width:"auto",cellTemplate:e,headerCellTemplate:t}),i.columnOption("command:select","visible",n)},_createSelection:function(){var e=this._getSelectionConfig();return new wu(e)},_fireSelectionChanged:function(e){var t=this.option("selection.deferred")?{selectionFilter:this.option("selectionFilter")}:{selectedRowKeys:this.option("selectedRowKeys")};this.selectionChanged.fire(t),e&&this.executeAction("onSelectionChanged",e)},_updateCheckboxesState:function(e){var t=e.isDeferredMode,i=e.selectionFilter,n=e.selectedItemKeys,o=e.removedItemKeys;"onClick"===this.option(vj)&&((t?i&&function(e,t){var i=0,n=e._dataController.store(),o=n&&n.key(),r=Array.isArray(o);if(!t.length)return!1;if(r&&Array.isArray(t[0])&&"and"===t[1]){for(var a=0;a<t.length;a++)if(Array.isArray(t[a])){if(t[a][0]!==o[i]||"="!==t[a][1])return!0;i++}return!1}return o!==t[0]}(this,i):n.length>1)?this.startSelectionWithCheckboxes():(t?i&&!i.length:0===n.length&&o.length)&&this.stopSelectionWithCheckboxes())},_updateSelectedItems:function(e){var t,i=this.option("selection.deferred"),n=this._selection.selectionFilter(),o=this._dataController,r=o.items(!0),a=o.items();if(r){var s=this.isSelectionWithCheckboxes(),l=this.getChangedItemIndexes(r),d=this.getChangedItemIndexes(a);this._updateCheckboxesState({selectedItemKeys:e.selectedItemKeys,removedItemKeys:e.removedItemKeys,selectionFilter:n,isDeferredMode:i}),(l.length||s!==this.isSelectionWithCheckboxes())&&o.updateItems({changeType:"updateSelection",itemIndexes:d}),i?(this.option("selectionFilter",n),t={}):(e.addedItemKeys.length||e.removedItemKeys.length)&&(this._selectedItemsInternalChange=!0,this.option("selectedRowKeys",e.selectedItemKeys.slice(0)),this._selectedItemsInternalChange=!1,t={selectedRowsData:e.selectedItems.slice(0),selectedRowKeys:e.selectedItemKeys.slice(0),currentSelectedRowKeys:e.addedItemKeys.slice(0),currentDeselectedRowKeys:e.removedItemKeys.slice(0)}),this._fireSelectionChanged(t)}},getChangedItemIndexes:function(e){for(var t=[],i=this.option("selection.deferred"),n=0,o=e.length;n<o;n++){var r=e[n],a=this.isRowSelected(i?r.data:r.key);this._selection.isDataItem(r)&&r.isSelected!==a&&t.push(n)}return t},callbackNames:function(){return["selectionChanged"]},optionChanged:function(e){switch(this.callBase(e),e.name){case"selection":var t=this._selectionMode;if(this.init(),"selection.showCheckBoxesMode"!==e.fullName){var i=this._selectionMode,n=this.option("selectedRowKeys");t!==i&&("single"===i?n.length>1&&(n=[n[0]]):"multiple"!==i&&(n=[])),this.selectRows(n).always((()=>{this._fireSelectionChanged()}))}this.getController("columns").updateColumns(),e.handled=!0;break;case"selectionFilter":this._selection.selectionFilter(e.value),e.handled=!0;break;case"selectedRowKeys":var o=e.value||[];!Array.isArray(o)||this._selectedItemsInternalChange||!this.component.getDataSource()&&o.length||this.selectRows(o),e.handled=!0}},publicMethods:function(){return["selectRows","deselectRows","selectRowsByIndexes","getSelectedRowKeys","getSelectedRowsData","clearSelection","selectAll","deselectAll","startSelectionWithCheckboxes","stopSelectionWithCheckboxes","isRowSelected"]},isRowSelected:function(e){return this._selection.isItemSelected(e)},isSelectColumnVisible:function(){return"multiple"===this.option(yj)&&("always"===this.option(vj)||"onClick"===this.option(vj)||this._isSelectionWithCheckboxes)},_isOnePageSelectAll:function(){return"page"===this.option("selection.selectAllMode")},isSelectAll:function(){return this._selection.getSelectAllState(this._isOnePageSelectAll())},selectAll:function(){return"onClick"===this.option(vj)&&this.startSelectionWithCheckboxes(),this._selection.selectAll(this._isOnePageSelectAll())},deselectAll:function(){return this._selection.deselectAll(this._isOnePageSelectAll())},clearSelection:function(){return this.selectedItemKeys([])},refresh:function(){var e=this.option("selectedRowKeys")||[];return!this.option("selection.deferred")&&e.length?this.selectedItemKeys(e):(new ot.BH).resolve().promise()},selectedItemKeys:function(e,t,i,n){return this._selection.selectedItemKeys(e,t,i,n)},getSelectedRowKeys:function(){return this._selection.getSelectedItemKeys()},selectRows:function(e,t){return this.selectedItemKeys(e,t)},deselectRows:function(e){return this.selectedItemKeys(e,!0,!0)},selectRowsByIndexes:function(e){var t=this._dataController.items(),i=[];return Array.isArray(e)||(e=Array.prototype.slice.call(arguments,0)),(0,E.S6)(e,(function(){var e=t[this];e&&"data"===e.rowType&&i.push(e.key)})),this.selectRows(i)},getSelectedRowsData:function(){return this._selection.getSelectedItems()},changeItemSelection:function(e,t,i){t=t||{},this.isSelectionWithCheckboxes()&&(t.control=!0);var n=e+this._dataController.getRowIndexOffset()-this._dataController.getRowIndexOffset(!0);return this._selection.changeItemSelection(n,t,i)},focusedItemIndex:function(e){if(!(0,l.$K)(e))return this._selection._focusedItemIndex;this._selection._focusedItemIndex=e},isSelectionWithCheckboxes:function(){return"multiple"===this.option(yj)&&("always"===this.option(vj)||this._isSelectionWithCheckboxes)},startSelectionWithCheckboxes:function(){return"multiple"===this.option(yj)&&!this.isSelectionWithCheckboxes()&&(this._isSelectionWithCheckboxes=!0,this._updateSelectColumn(),!0)},stopSelectionWithCheckboxes:function(){return!!this._isSelectionWithCheckboxes&&(this._isSelectionWithCheckboxes=!1,this._updateSelectColumn(),!0)}}}()),xj={defaultOptions:function(){return{selection:{mode:"none",showCheckBoxesMode:"onClick",allowSelectAll:!0,selectAllMode:"allPages",maxFilterLengthInRequest:1500,deferred:!1},selectionFilter:[],selectedRowKeys:[]}},controllers:{selection:bj},extenders:{controllers:{data:{init:function(){var e=this.getController("selection"),t=this.option("selection.deferred");this.callBase.apply(this,arguments),t&&e._updateCheckboxesState({isDeferredMode:!0,selectionFilter:this.option("selectionFilter")})},_loadDataSource:function(){var e=this;return e.callBase().done((function(){e.getController("selection").refresh()}))},_processDataItem:function(e,t){var i=this,n=i.getController("selection"),o=n.isSelectColumnVisible(),r=t.isDeferredSelection=void 0===t.isDeferredSelection?this.option("selection.deferred"):t.isDeferredSelection,a=this.callBase.apply(this,arguments);if(a.isSelected=n.isRowSelected(r?a.data:a.key),o&&a.values)for(var s=0;s<t.visibleColumns.length;s++)if("select"===t.visibleColumns[s].command){a.values[s]=a.isSelected;break}return a},refresh:function(e){var t=this,i=new ot.BH;return this.callBase.apply(this,arguments).done((function(){!e||e.selection?t.getController("selection").refresh().done(i.resolve).fail(i.reject):i.resolve()})).fail(i.reject),i.promise()},_handleDataChanged:function(e){this.callBase.apply(this,arguments),e&&"refresh"!==e.changeType||this._repaintChangesOnly||this.getController("selection").focusedItemIndex(-1)},_applyChange:function(e){if(!e||"updateSelection"!==e.changeType)return this.callBase.apply(this,arguments);e.items.forEach(((e,t)=>{var i=this._items[t];i&&(i.isSelected=e.isSelected,i.values=e.values)}))},_endUpdateCore:function(){var e=this._changes,t=e.length>1&&e.every((e=>"updateSelection"===e.changeType));if(t){var i=e.map((e=>e.itemIndexes||[])).reduce(((e,t)=>e.concat(t)));this._changes=[{changeType:"updateSelection",itemIndexes:i}]}this.callBase.apply(this,arguments)}},contextMenu:{_contextMenuPrepared:function(e){var t=e.event;t.originalEvent&&"dxhold"!==t.originalEvent.type||e.items&&e.items.length>0||Cj(this,t)}}},views:{columnHeadersView:{init:function(){this.callBase(),this.getController("selection").selectionChanged.add(this._updateSelectAllValue.bind(this))},_updateSelectAllValue:function(){var e=this.element(),t=e&&e.find("."+pj);if(e&&t.length&&"multiple"===this.option("selection.mode")){var i=this.getController("selection").isSelectAll(),n=!1!==i,o=this.option("selection.allowSelectAll")?!this.getController("data").isEmpty():n;t.dxCheckBox("instance").option({visible:o,value:i})}},_handleDataChanged:function(e){this.callBase(e),(!e||"refresh"===e.changeType||e.repaintChangesOnly&&"update"===e.changeType)&&this._updateSelectAllValue()},_renderSelectAllCheckBox:function(e,t){var i=this,n=i.getController("selection"),r=i.getController("data").isEmpty(),s=(0,o.Z)("<div>").appendTo(e).addClass(pj);return i.setAria("label",y.Z.format("dxDataGrid-ariaSelectAll"),s),i.getController("editorFactory").createEditor(s,(0,a.l)({},t,{parentType:"headerRow",dataType:"boolean",value:n.isSelectAll(),editorOptions:{visible:!r&&(i.option("selection.allowSelectAll")||!1!==n.isSelectAll())},tabIndex:i.option("useLegacyKeyboardNavigation")?-1:i.option("tabIndex")||0,setValue:function(e,t){var o=i.option("selection.allowSelectAll");t.component.option("visible",o||!1!==t.component.option("value")),t.event&&n.isSelectAll()!==e&&(t.value&&!o?t.component.option("value",!1):t.value?n.selectAll():n.deselectAll(),t.event.preventDefault())}})),s},_attachSelectAllCheckBoxClickEvent:function(e){re.Z.on(e,A.u,this.createAction((function(e){var t=e.event;(0,o.Z)(t.target).closest("."+pj).length||re.Z.trigger((0,o.Z)(t.currentTarget).children("."+pj),A.u),t.preventDefault()})))}},rowsView:{renderSelectCheckBoxContainer:function(e,t){"data"!==t.rowType||t.row.isNewRow?FD.setEmptyText(e):(e.addClass(uj),this._attachCheckBoxClickEvent(e),this._renderSelectCheckBox(e,t))},_renderSelectCheckBox:function(e,t){var i=(0,o.Z)("<div>").addClass(pj).appendTo(e);return this.setAria("label",y.Z.format("dxDataGrid-ariaSelectRow"),i),this.getController("editorFactory").createEditor(i,(0,a.l)({},t.column,{parentType:"dataRow",dataType:"boolean",lookup:null,value:t.value,setValue:function(e,t){var i;"keydown"===(null===t||void 0===t||null===(i=t.event)||void 0===i?void 0:i.type)&&re.Z.trigger(t.element,A.u,t)},row:t.row})),i},_attachCheckBoxClickEvent:function(e){re.Z.on(e,A.u,this.createAction((function(e){var t=this.getController("selection"),i=e.event,n=this.getRowIndex((0,o.Z)(i.currentTarget).closest("."+cj));n>=0&&(t.startSelectionWithCheckboxes(),t.changeItemSelection(n,{shift:i.shiftKey}),(0,o.Z)(i.target).closest("."+pj).length&&this.getController("data").updateItems({changeType:"updateSelection",itemIndexes:[n]}))})))},_update:function(e){var t=this,i=t.getTableElements();"updateSelection"===e.changeType?i.length>0&&((0,E.S6)(i,(function(i,n){(0,E.S6)(e.itemIndexes||[],(function(i,r){var a;if(e.items[r]&&(a=t._getRowElements((0,o.Z)(n)).eq(r),a.length)){var s=e.items[r].isSelected;a.toggleClass(hj,void 0!==s&&s).find("."+pj).dxCheckBox("option","value",s),t.setAria("selected",s,a)}}))})),t._updateCheckboxesClass()):t.callBase(e)},_createTable:function(){var e=this,t=e.option("selection.mode"),i=e.callBase.apply(e,arguments);return"none"!==t&&("onLongTap"!==e.option(vj)&&b.touch||re.Z.on(i,(0,R.V4)(Sd.name,"dxDataGridRowsView"),"."+_j,e.createAction((function(t){Cj(e.component,t.event),t.event.stopPropagation()}))),re.Z.on(i,"mousedown selectstart",e.createAction((function(e){var t=e.event;t.shiftKey&&t.preventDefault()})))),i},_createRow:function(e){var t=this.callBase.apply(this,arguments);if(e){var i=e.isSelected;i&&t.addClass(hj);var n=this.option(yj);"none"!==n&&this.setAria("selected",i,t)}return t},_rowClick:function(e){var t=e.event,i=(0,o.Z)(t.target).closest("."+mj).length;this.isClickableElement((0,o.Z)(t.target))||(i||"multiple"===this.option(yj)&&"always"===this.option(vj)||this.getController("selection").changeItemSelection(e.rowIndex,{control:(0,R.j1)(t),shift:t.shiftKey})&&(t.preventDefault(),e.handled=!0),this.callBase(e))},isClickableElement:function(e){var t=e.closest("."+gj).length;return!!t},_renderCore:function(e){this.callBase(e),this._updateCheckboxesClass()},_updateCheckboxesClass:function(){var e=this.getTableElements(),t=this.getController("selection"),i=t.isSelectColumnVisible()&&!t.isSelectionWithCheckboxes();(0,E.S6)(e,(function(e,t){(0,o.Z)(t).toggleClass(fj,i)}))}}}}},wj="dx-treelist-select-all",Tj="dx-cell-focus-disabled",Sj="dx-select-checkbox",Ij=xj.extenders.views.rowsView._rowClick,Ej=xj.extenders.controllers.data._handleDataChanged,Dj=function(e,t){return!!e.filter((function(e){return e===t})).length};zO.registerModule("selection",(0,a.l)(!0,{},xj,{defaultOptions:function(){return(0,a.l)(!0,xj.defaultOptions(),{selection:{showCheckBoxesMode:"always",recursive:!1}})},extenders:{controllers:{data:{_handleDataChanged:function(e){var t=this.getController("selection"),i=t.isRecursiveSelection();!i||e&&"updateSelectionState"===e.changeType||t.updateSelectionState({selectedItemKeys:this.option("selectedRowKeys")}),Ej.apply(this,arguments)},loadDescendants:function(){var e=this,t=e.callBase.apply(e,arguments),i=e.getController("selection"),n=i.isRecursiveSelection();return n&&t.done((function(){i.updateSelectionState({selectedItemKeys:e.option("selectedRowKeys")})})),t}},selection:{init:function(){this.callBase.apply(this,arguments),this._selectionStateByKey={}},_getSelectionConfig:function(){var e=this.callBase.apply(this,arguments),t=e.plainItems;return e.plainItems=e=>{var i;return e&&(i=this._dataController.getCachedStoreData()),i||(i=t.apply(this,arguments).map((e=>e.data))),i||[]},e.isItemSelected=e=>{var t=this._dataController.keyOf(e);return this.isRowSelected(t)},e.isSelectableItem=e=>!!e,e.getItemData=e=>e,e.allowLoadByRange=()=>!1,e},renderSelectCheckBoxContainer:function(e,t){var i=this.component.getView("rowsView");e.addClass(Tj);var n=i._renderSelectCheckBox(e,{value:t.row.isSelected,row:t.row,column:t.column});i._attachCheckBoxClickEvent(n)},_updateSelectColumn:v.ZT,_getSelectAllNodeKeys:function(){var e=this.component,t=e.getRootNode(),i={},n=[],o=this.isRecursiveSelection();return t&&zO.foreachNodes(t.children,(function(t){return void 0!==t.key&&(t.visible||o)&&n.push(t.key),!t.visible||!o&&e.isRowExpanded(t.key,i)})),n},isSelectAll:function(){var e=this.option("selectedRowKeys")||[];if(0===e.length)return!1;var t=this.component,i=this._getSelectAllNodeKeys(),n=this.isRecursiveSelection(),o=!1,r=i.filter((function(e){var i=t.isRowSelected(e,n);return void 0===i&&(o=!0),i}));return r.length?r.length===i.length||void 0:!!o&&void 0},selectAll:function(){var e=this._getSelectAllNodeKeys().filter((e=>!this.isRowSelected(e)));return this.focusedItemIndex(-1),this.selectRows(e,!0)},deselectAll:function(){var e=this._getSelectAllNodeKeys();return this.focusedItemIndex(-1),this.deselectRows(e)},selectedItemKeys:function(e,t,i,n){var o=this,r=o.option("selectedRowKeys"),a=this.isRecursiveSelection(),s=a&&o._normalizeSelectionArgs({keys:(0,l.$K)(e)?e:[]},t,!i);return s&&!(0,v.bY)(s.selectedRowKeys,r)?(o._isSelectionNormalizing=!0,this.callBase(s.selectedRowKeys,!1,!1,!1).always((function(){o._isSelectionNormalizing=!1})).done((function(e){s.selectedRowsData=e,o._fireSelectionChanged(s)}))):this.callBase(e,t,i,n)},changeItemSelection:function(e,t){var i=this.isRecursiveSelection();if(i&&!t.shift){var n=this._dataController.getKeyByRowIndex(e);return this.selectedItemKeys(n,!0,this.isRowSelected(n)).done((()=>{this.isRowSelected(n)&&this.callBase(e,t,!0)}))}return this.callBase.apply(this,arguments)},_updateParentSelectionState:function(e,t){var i=this,n=t,o=e.parent;if(o){if(o.children.length>1)if(!1===t){var r=o.children.some((function(e,t,n){return i._selectionStateByKey[e.key]}));n=!!r&&void 0}else if(!0===t){var a=o.children.some((function(e){return!i._selectionStateByKey[e.key]}));n=!a||void 0}this._selectionStateByKey[o.key]=n,o.parent&&o.parent.level>=0&&this._updateParentSelectionState(o,n)}},_updateChildrenSelectionState:function(e,t){var i=this,n=e.children;n&&n.forEach((function(e){i._selectionStateByKey[e.key]=t,e.children.length>0&&i._updateChildrenSelectionState(e,t)}))},_updateSelectionStateCore:function(e,t){for(var i=this._dataController,n=0;n<e.length;n++){this._selectionStateByKey[e[n]]=t;var o=i.getNodeByKey(e[n]);o&&(this._updateParentSelectionState(o,t),this._updateChildrenSelectionState(o,t))}},_getSelectedParentKeys:function(e,t,i){var n,o=this._dataController.getNodeByKey(e),r=o&&o.parent,a=[];while(r&&r.level>=0){a.unshift(r.key);var s=i?!Dj(t,r.key)&&this.isRowSelected(r.key):t.indexOf(r.key)>=0;if(s){n=r,a=this._getSelectedParentKeys(n.key,t,i).concat(a);break}if(i)break;r=r.parent}return n&&a||[]},_getSelectedChildKeys:function(e,t){var i=[],n=this._dataController.getNodeByKey(e);return n&&zO.foreachNodes(n.children,(e=>{var n=t.indexOf(e.key);return n<0&&i.push(e.key),n>0||n<0&&void 0===this._selectionStateByKey[e.key]})),i},_normalizeParentKeys:function(e,t){var i=[e],n=this._getSelectedParentKeys(e,t.selectedRowKeys);if(n.length){i=i.concat(n),i.forEach((function(e){var i=t.selectedRowKeys.indexOf(e);i>=0&&t.selectedRowKeys.splice(i,1)}));var o=this._getSelectedChildKeys(n[0],i);t.selectedRowKeys=t.selectedRowKeys.concat(o)}},_normalizeChildrenKeys:function(e,t){var i=this._dataController.getNodeByKey(e);i&&i.children.forEach((e=>{var i=t.selectedRowKeys.indexOf(e.key);i>=0&&t.selectedRowKeys.splice(i,1),this._normalizeChildrenKeys(e.key,t)}))},_normalizeSelectedRowKeysCore:function(e,t,i,n){var o=this;e.forEach((function(e){if(!i||o.isRowSelected(e)!==n){o._normalizeChildrenKeys(e,t);var r=t.selectedRowKeys.indexOf(e);n?(r<0&&t.selectedRowKeys.push(e),t.currentSelectedRowKeys.push(e)):(r>=0&&t.selectedRowKeys.splice(r,1),t.currentDeselectedRowKeys.push(e),o._normalizeParentKeys(e,t))}}))},_normalizeSelectionArgs:function(e,t,i){var n,o=Array.isArray(e.keys)?e.keys:[e.keys],r=this.option("selectedRowKeys")||[];return o.length&&(n={currentSelectedRowKeys:[],currentDeselectedRowKeys:[],selectedRowKeys:t?r.slice(0):[]},this._normalizeSelectedRowKeysCore(o,n,t,i)),n},_updateSelectedItems:function(e){this.updateSelectionState(e),this.callBase(e)},_fireSelectionChanged:function(){this._isSelectionNormalizing||this.callBase.apply(this,arguments)},_isModeLeavesOnly:function(e){return"leavesOnly"===e},_removeDuplicatedKeys:function(e){var t=[],i={};return e.forEach((e=>{i[e]||(i[e]=!0,t.push(e))})),t},_getAllChildKeys(e){var t=[],i=this._dataController.getNodeByKey(e);return i&&zO.foreachNodes(i.children,(function(e){t.push(e.key)}),!0),t},_getAllSelectedRowKeys:function(e){var t=[];return e.forEach((e=>{var i=this._getSelectedParentKeys(e,[],!0),n=this._getAllChildKeys(e);t.push.apply(t,i.concat([e],n))})),t=this._removeDuplicatedKeys(t),t},_getParentSelectedRowKeys:function(e){var t=this,i=[];return e.forEach((n=>{var o=t._getSelectedParentKeys(n,e);!o.length&&i.push(n)})),i},_getLeafSelectedRowKeys:function(e){var t=[],i=this._dataController;return e.forEach((function(e){var n=i.getNodeByKey(e);n&&!n.hasChildren&&t.push(e)})),t},isRecursiveSelection:function(){var e=this.option("selection.mode"),t=this.option("selection.recursive");return"multiple"===e&&t},updateSelectionState:function(e){var t=e.removedItemKeys||[],i=e.selectedItemKeys||[];this.isRecursiveSelection()&&(this._updateSelectionStateCore(t,!1),this._updateSelectionStateCore(i,!0))},isRowSelected:function(e,t){var i,n=this.callBase.apply(this,arguments);return t=null!==(i=t)&&void 0!==i?i:this.isRecursiveSelection(),!n&&t?e in this._selectionStateByKey&&this._selectionStateByKey[e]:n},getSelectedRowKeys(e){if(!this._dataController)return[];var t=this.callBase.apply(this,arguments);return e&&(this.isRecursiveSelection()&&(t=this._getAllSelectedRowKeys(t)),"all"!==e&&("excludeRecursive"===e?t=this._getParentSelectedRowKeys(t):this._isModeLeavesOnly(e)&&(t=this._getLeafSelectedRowKeys(t)))),t},getSelectedRowsData:function(e){var t=this._dataController,i=this.getSelectedRowKeys(e)||[],n=[];return i.forEach((function(e){var i=t.getNodeByKey(e);i&&n.push(i.data)})),n},refresh:function(){return this._selectionStateByKey={},this.callBase.apply(this,arguments)}}},views:{columnHeadersView:{_processTemplate:function(e,t){var i,n=this,o=this.callBase(e,t),r=n._columnsController.getFirstDataColumnIndex();return i=o&&"header"===t.rowType&&t.column.index===r?{render:function(e){"multiple"===n.option("selection.mode")&&n.renderSelectAll(e.container,e.model),o.render(e)}}:o,i},renderSelectAll:function(e,t){e.addClass(wj),this._renderSelectAllCheckBox(e)},_isSortableElement:function(e){return this.callBase(e)&&!e.closest("."+Sj).length}},rowsView:{_renderIcons:function(e,t){return this.callBase.apply(this,arguments),t.row.isNewRow||"multiple"!==this.option("selection.mode")||this.getController("selection").renderSelectCheckBoxContainer(e,t),e},_rowClick:function(e){var t=(0,o.Z)(e.event.target);this.isExpandIcon(t)?this.callBase.apply(this,arguments):Ij.apply(this,arguments)}}}}}));var kj="search-panel",Oj="search-text",Aj="header-panel",Pj=700;function Mj(e){return(0,l.$K)(e.allowSearch)?e.allowSearch:e.allowFiltering}function Rj(e,t){var i=e.lookup;return e.parseValue?i?e.parseValue.call(i,t):e.parseValue(t):t}var Bj={defaultOptions:function(){return{searchPanel:{visible:!1,width:160,placeholder:y.Z.format("dxDataGrid-searchPanelPlaceholder"),highlightSearchText:!0,highlightCaseSensitive:!1,text:"",searchVisibleColumnsOnly:!1}}},extenders:{controllers:{data:{publicMethods:function(){return this.callBase().concat(["searchByText"])},_calculateAdditionalFilter:function(){var e=this.callBase(),t=function(e,t){var i,n,o,a=e._columnsController.getColumns(),s=e.option("searchPanel.searchVisibleColumnsOnly"),l=[];if(!t)return null;function d(e){for(var t=(0,r.vb)(o.valueExpr),i=0;i<e.length;i++){var a=t(e[i]);l.push(n.createFilterExpression(a,null,"search"))}}for(i=0;i<a.length;i++)if(n=a[i],(!s||n.visible)&&Mj(n)&&n.calculateFilterExpression){o=n.lookup;var u=Rj(n,t);o&&o.items?(0,pu.Z)(o.items).filter(n.createFilterExpression.call({dataField:o.displayExpr,dataType:o.dataType,calculateFilterExpression:n.calculateFilterExpression},u,null,"search")).enumerate().done(d):void 0!==u&&l.push(n.createFilterExpression(u,null,"search"))}return 0===l.length?["!"]:FD.combineFilters(l,"or")}(this,this.option("searchPanel.text"));return FD.combineFilters([e,t])},searchByText:function(e){this.option("searchPanel.text",e)},optionChanged:function(e){switch(e.fullName){case"searchPanel.text":case"searchPanel":this._applyFilter(),e.handled=!0;break;default:this.callBase(e)}}}},views:{headerPanel:function(){var e=function(e){return e.option("searchPanel")};return{_getToolbarItems:function(){var e=this.callBase();return this._prepareSearchItem(e)},_prepareSearchItem:function(t){var i=this,n=i.getController("data"),r=e(i);if(r&&r.visible){var a={template:function(e,t,a){var s=(0,o.Z)("<div>").addClass(i.addWidgetPrefix(kj)).appendTo(a);i.getController("editorFactory").createEditor(s,{width:r.width,placeholder:r.placeholder,parentType:"searchPanel",value:i.option("searchPanel.text"),updateValueTimeout:Pj,setValue:function(e){n.searchByText(e)},editorOptions:{inputAttr:{"aria-label":y.Z.format("".concat(i.component.NAME,"-ariaSearchInGrid"))}}}),i.resize()},name:"searchPanel",location:"after",locateInMenu:"never",sortIndex:40};t.push(a)}return t},getSearchTextEditor:function(){var e=this,t=e.element(),i=t.find("."+e.addWidgetPrefix(kj)).filter((function(){return(0,o.Z)(this).closest("."+e.addWidgetPrefix(Aj)).is(t)}));return i.length?i.dxTextBox("instance"):null},isVisible:function(){var t=e(this);return this.callBase()||t&&t.visible},optionChanged:function(e){if("searchPanel"===e.name){if("searchPanel.text"===e.fullName){var t=this.getSearchTextEditor();t&&t.option("value",e.value)}else this._invalidate();e.handled=!0}else this.callBase(e)}}}(),rowsView:{init:function(){this.callBase.apply(this,arguments),this._searchParams=[]},_getFormattedSearchText:function(e,t){var i=Rj(e,t),n=FD.getFormatOptionsByColumn(e,"search");return FD.formatValue(i,n)},_getStringNormalizer:function(){var e=this.option("searchPanel.highlightCaseSensitive");return function(t){return e?t:t.toLowerCase()}},_findHighlightingTextNodes:function(e,t,i){var n,r,a=t.parent(),s=this._getStringNormalizer(),l=s(i),d=[];if(a.length){if(e)if(e.groupIndex>=0&&!e.showWhenGrouped)r=t;else{var u=this._columnsController.getVisibleIndex(e.index);r=a.children("td").eq(u).find("*")}}else a=(0,o.Z)("<div>").append(t);return r=null!==(n=r)&&void 0!==n&&n.length?r:a.find("*"),r.each((function(e,t){for(var i=(0,o.Z)(t).contents(),n=0;n<i.length;n++){var r=i.get(n);if(3===r.nodeType){var a=s(r.textContent||r.nodeValue);a.indexOf(l)>-1&&d.push(r)}}})),d},_highlightSearchTextCore:function(e,t){var i=(0,o.Z)("<span>").addClass(this.addWidgetPrefix(Oj)),n=e.text(),r=e[0],a=this._getStringNormalizer(),s=a(n).indexOf(a(t));if(s>=0)return r.textContent?r.textContent=n.substr(0,s):r.nodeValue=n.substr(0,s),e.after(i.text(n.substr(s,t.length))),e=(0,o.Z)(ke["default"].createTextNode(n.substr(s+t.length))).insertAfter(i),this._highlightSearchTextCore(e,t)},_highlightSearchText:function(e,t,i){var n=this,r=this._getStringNormalizer(),a=n.option("searchPanel.text");if(t&&i&&(a=a&&n._getFormattedSearchText(i,a)),a&&n.option("searchPanel.highlightSearchText")){var s=n._findHighlightingTextNodes(i,e,a);s.forEach((e=>{t?r((0,o.Z)(e).text())===r(a)&&(0,o.Z)(e).replaceWith((0,o.Z)("<span>").addClass(n.addWidgetPrefix(Oj)).text((0,o.Z)(e).text())):n._highlightSearchTextCore((0,o.Z)(e),a)}))}},_renderCore:function(){this.callBase.apply(this,arguments),(this.option().rowTemplate||this.option("dataRowTemplate"))&&(this.option("templatesRenderAsynchronously")?(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(function(){this._highlightSearchText(this.getTableElement())}.bind(this))):this._highlightSearchText(this.getTableElement()))},_updateCell:function(e,t){var i=t.column,n=i.lookup&&i.lookup.dataType||i.dataType,o="string"!==n;Mj(i)&&!t.isOnForm&&(this.option("templatesRenderAsynchronously")?(this._searchParams.length||(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(function(){this._searchParams.forEach(function(e){this._highlightSearchText.apply(this,e)}.bind(this)),this._searchParams=[]}.bind(this))),this._searchParams.push([e,o,i])):this._highlightSearchText(e,o,i)),this.callBase(e,t)},dispose:function(){clearTimeout(this._highlightTimer),this.callBase()}}}}};zO.registerModule("search",Bj);var Vj="rowsview",Fj="edit-form",Hj="group-footer",Lj="dx-row",Nj="dx-data-row",Zj="dx-group-row",$j="dx-header-row",Wj="edit-form-item",Kj="dx-master-detail-row",zj="dx-freespace-row",jj="dx-virtual-row",Uj="dx-master-detail-cell",Gj="dx-editor-cell",qj="dx-dropdowneditor-overlay",Yj="dx-command-expand",Xj="dx-command-select",Jj="dx-command-edit",Qj="[class^=dx-command]",eU="dx-cell-focus-disabled",tU="dxDateBox",iU="dx-state-focused",nU="dx-widget",oU="dx-revert-button",rU="delete",aU="input:not([type='hidden']), textarea, a, select, button, [tabindex], .dx-checkbox",sU="".concat(aU,", .dx-dropdowneditor-icon"),lU="row",dU="form",uU="batch",cU="cell",hU="row",pU="cell",fU="columnHeadersView",gU=["shift","control","alt"];function mU(e){return e&&e.hasClass(Zj)}function _U(e){return e&&e.hasClass(Kj)}function vU(e){return e&&!mU(e)&&!_U(e)}function yU(e){return!e||e.hasClass(zj)||e.hasClass(jj)}function CU(e){return e.length&&"TD"===e[0].tagName}function bU(e,t){return!e._isRowEditMode()&&t&&!t.hasClass(Xj)&&t.hasClass(Gj)}function xU(e){return(0,l.$K)(e)&&e.length>0}function wU(){return"desktop"!==w.Z.current().deviceType}function TU(e){return!!e.parent(".".concat($j)).length}function SU(e,t){var i=e.option("rtlEnabled"),n=!1;return n=i?!("right"===t.fixedPosition||(0,l.$K)(t.command)&&!(0,l.$K)(t.fixedPosition)):!(!(0,l.$K)(t.fixedPosition)||"left"===t.fixedPosition),n}function IU(e){var t=e.getController("keyboardNavigation");return!!t._isVirtualScrolling()&&e.option("focusedRowIndex")===t.getRowIndex()}var EU=KO.ViewController.inherit({init:function(){this._dataController=this.getController("data"),this._selectionController=this.getController("selection"),this._editingController=this.getController("editing"),this._headerPanel=this.getView("headerPanel"),this._columnsController=this.getController("columns"),this._editorFactory=this.getController("editorFactory"),this.isKeyboardEnabled()&&(NA(),this._updateFocusTimeout=null,this._fastEditingStarted=!1,this._focusedCellPosition={},this._canceledCellPosition=null,this._editorFactory.focused.add((e=>{this.setupFocusedView(),this._isNeedScroll&&e.is(":visible")&&this._focusedView&&this._focusedView.getScrollable&&(this._focusedView._scrollToElement(e),this._isNeedScroll=!1)})),this._initViewHandlers(),this._initDocumentHandlers(),this.createAction("onKeyDown"))},_initViewHandlers:function(){var e=this.getView("rowsView"),t=t=>{var i=(0,o.Z)(t.target),n=(0,o.Z)(t.relatedTarget).closest(e.element()).length;if(t.relatedTarget&&this._isEventInCurrentGrid(t)&&!n){var r=this._getFocusedCell();r=xU(r)?r:e.getCellElements(0).filter("[tabindex]").eq(0),i.closest(r).length||(t.preventDefault(),re.Z.trigger(r,"focus"))}};e.renderCompleted.add((i=>{var n=e.element(),r=!i||"refresh"===i.changeType,a=this._focusedView&&this._focusedView.name===e.name,s=!1,l=i&&("append"===i.changeType||"prepend"===i.changeType),d=(0,o.Z)(ke["default"].getRootNode(n.get&&n.get(0))),u=d.find(":focus"),c=!u.length||u.closest(n).length;re.Z.off(n,"focusin",t),re.Z.on(n,"focusin",t),this._initPointerEventHandler(),this._initKeyDownHandler(),this._setRowsViewAttributes(),a&&c&&(s=this._isNeedFocus?!l:this._isHiddenFocus&&r&&!(null!==i&&void 0!==i&&i.virtualColumnsScrolling),s&&this._updateFocus(!0))}))},_initDocumentHandlers:function(){var e=ke["default"].getDocument();this._documentClickHandler=this.createAction((e=>{var t=(0,o.Z)(e.event.target),i=this._isEventInCurrentGrid(e.event)&&t.closest(".".concat(this.addWidgetPrefix(Vj))).length,n=t.closest(".".concat(qj)).length,r=this.getController("columnsResizer"),a=!!r&&r.isResizing();if(!i&&!n&&!a){var s=!!this._focusedView&&t.parents().filter(this._focusedView.element()).length>0;!s&&this._resetFocusedCell(!0),this._resetFocusedView()}})),re.Z.on(e,(0,R.V4)(B.Z.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler)},_setRowsViewAttributes:function(){var e=this._getRowsViewElement(),t=!this._dataController.getVisibleRows().length;t&&this._applyTabIndexToElement(e)},_initPointerEventHandler:function(){var e=wU()?A.u:B.Z.down,t=".".concat(Lj," > td, .").concat(Lj),i=this._getRowsViewElement();(0,l.$K)(this._pointerEventAction)||(this._pointerEventAction=this.createAction(this._pointerEventHandler)),re.Z.off(i,(0,R.V4)(e,"dxDataGridKeyboardNavigation"),this._pointerEventAction),re.Z.on(i,(0,R.V4)(e,"dxDataGridKeyboardNavigation"),t,this._pointerEventAction)},_initKeyDownHandler:function(){var e=this._getRowsViewElement();I.dG.off(this._keyDownListener),this._keyDownListener=I.dG.on(e,null,(e=>this._keyDownHandler(e)))},dispose:function(){this.callBase(),this._resetFocusedView(),I.dG.off(this._keyDownListener),re.Z.off(ke["default"].getDocument(),(0,R.V4)(B.Z.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler),clearTimeout(this._updateFocusTimeout),ZA()},optionChanged:function(e){switch(e.name){case"keyboardNavigation":case"useLegacyKeyboardNavigation":e.handled=!0;break;default:this.callBase(e)}},isRowFocusType:function(){return this.focusType===hU},isCellFocusType:function(){return this.focusType===pU},setRowFocusType:function(){this.option("focusedRowEnabled")&&(this.focusType=hU)},setCellFocusType:function(){this.focusType=pU},_keyDownHandler:function(e){var t,i=!0;this._isNeedFocus=!0,this._isNeedScroll=!0;var n=this._processOnKeyDown(e),o=null===(t=this._editingController)||void 0===t?void 0:t.isEditing(),r=e.originalEvent;if(r.isDefaultPrevented())return this._isNeedFocus=!1,void(this._isNeedScroll=!1);if(gU.indexOf(e.keyName)<0&&this._updateFocusedCellPositionByTarget(r.target),!n){switch(e.keyName){case"leftArrow":case"rightArrow":this._leftRightKeysHandler(e,o),n=!0;break;case"upArrow":case"downArrow":e.ctrl?zA("rowsView",this,r):this._upDownKeysHandler(e,o),n=!0;break;case"pageUp":case"pageDown":this._pageUpDownKeyHandler(e),n=!0;break;case"space":n=this._spaceKeyHandler(e,o);break;case"A":(0,R.j1)(e.originalEvent)?(this._ctrlAKeyHandler(e,o),n=!0):n=this._beginFastEditing(e.originalEvent);break;case"tab":this._tabKeyHandler(e,o),n=!0;break;case"enter":this._enterKeyHandler(e,o),n=!0;break;case"escape":this._escapeKeyHandler(e,o),n=!0;break;case"F":(0,R.j1)(e.originalEvent)?(this._ctrlFKeyHandler(e),n=!0):n=this._beginFastEditing(e.originalEvent);break;case"F2":this._f2KeyHandler(),n=!0;break;case"del":case"backspace":this._isFastEditingAllowed()&&!this._isFastEditingStarted()&&(n=this._beginFastEditing(r,!0))}n||this._beginFastEditing(r)||(this._isNeedFocus=!1,this._isNeedScroll=!1,i=!1),i&&r.stopPropagation()}},_processOnKeyDown:function(e){var t=e.originalEvent,i={handled:!1,event:t};return this.executeAction("onKeyDown",i),e.ctrl=t.ctrlKey,e.alt=t.altKey,e.shift=t.shiftKey,!!i.handled},_closeEditCell:function(){setTimeout((()=>{this._editingController.closeEditCell()}))},_leftRightKeysHandler:function(e,t){var i=this.getVisibleRowIndex(),n=e.originalEvent,o=this._focusedView&&this._focusedView.getRow(i),r=this._getDirectionCodeByKey(e.keyName),a=this._isFastEditingStarted(),s=(!t||a)&&vU(o);if(s){this.setCellFocusType(),a&&this._closeEditCell(),this._isVirtualColumnRender()&&this._processVirtualHorizontalPosition(r);var l=this._getNextCell(r);xU(l)&&this._arrowKeysHandlerFocusCell(n,l,r),n&&n.preventDefault()}},_upDownKeysHandler:function(e,t){var i,o,r=this.getVisibleRowIndex(),a=this._focusedView&&this._focusedView.getRow(r),s=e.originalEvent,l="upArrow"===e.keyName,d=this._dataController.dataSource(),u=null===(i=this._editingController)||void 0===i||null===(o=i.isEditRowByIndex)||void 0===o?void 0:o.call(i,r),c=this._isFastEditingStarted(),h=(!u||!t||c)&&a&&!_U(a);if(h){if(c&&this._closeEditCell(),!this._navigateNextCell(s,e.keyName)&&this._isVirtualRowRender()&&l&&d&&!d.isLoading()){var p=(0,n.zp)(a),f=this._focusedCellPosition.rowIndex-1;this._scrollBy(0,-p,f,s)}s&&s.preventDefault()}},_pageUpDownKeyHandler:function(e){var t=this._dataController.pageIndex(),i=this._dataController.pageCount(),o=this.option("paging.enabled"),r="pageUp"===e.keyName,a=r?-1:1,s=this.getView("rowsView").getScrollable();o&&!this._isVirtualScrolling()?(r?t>0:t<i-1)&&!this._isVirtualScrolling()&&(this._dataController.pageIndex(t+a),e.originalEvent.preventDefault()):s&&(0,n.Cr)(s.container())<(0,n.Cr)(s.$content())&&(this._scrollBy(0,(0,n.Cr)(s.container())*a),e.originalEvent.preventDefault())},_spaceKeyHandler:function(e,t){var i=this.getVisibleRowIndex(),n=(0,o.Z)(e.originalEvent&&e.originalEvent.target);if(this.option("selection")&&"none"!==this.option("selection").mode&&!t){var r="row"===this._getElementType(n)&&this.isRowFocusType()&&vU(n),a=n.hasClass(Xj);return a&&"onClick"===this.option("selection.showCheckBoxesMode")&&this._selectionController.startSelectionWithCheckboxes(),!!(r||n.parent().hasClass(Nj)||n.hasClass(this.addWidgetPrefix(Vj)))&&(this._selectionController.changeItemSelection(i,{shift:e.shift,control:e.ctrl}),e.originalEvent.preventDefault(),!0)}return this._beginFastEditing(e.originalEvent)},_ctrlAKeyHandler:function(e,t){t||e.alt||"multiple"!==this.option("selection.mode")||!this.option("selection.allowSelectAll")||(this._selectionController.selectAll(),e.originalEvent.preventDefault())},_tabKeyHandler:function(e,t){var i=this.option("editing"),n=e.shift?"previous":"next",r=(0,l.$K)(this._focusedCellPosition)&&!(0,l.Qr)(this._focusedCellPosition),a=!r||!e.shift&&this._isLastValidCell(this._focusedCellPosition)||e.shift&&this._isFirstValidCell(this._focusedCellPosition),s=e.originalEvent.target,d=this._focusedView&&this._focusedView.element();if(!this._handleTabKeyOnMasterDetailCell(s,n)){if((0,o.Z)(d).addClass(iU),i&&s&&!a)if((0,o.Z)(s).hasClass(this.addWidgetPrefix(Vj))&&this._resetFocusedCell(),this._isVirtualColumnRender()&&this._processVirtualHorizontalPosition(n),t){if(!this._editingCellTabHandler(e,n))return}else this._targetCellTabHandler(e,n)&&(a=!0);a?(this._editorFactory.loseFocus(),this._editingController.isEditing()&&!this._isRowEditMode()&&(this._resetFocusedCell(!0),this._resetFocusedView(),this._closeEditCell())):e.originalEvent.preventDefault()}},_getMaxHorizontalOffset:function(){var e=this.component.getScrollable(),t=this.getView("rowsView"),i=e?e.scrollWidth()-(0,n.dz)(t.element()):0;return i},_isColumnRendered:function(e){var t=this._columnsController.getVisibleColumns(null,!0),i=this._columnsController.getVisibleColumns(),n=t[e],o=!1;return n&&(o=i.indexOf(n)>=0),o},_isFixedColumn:function(e){var t=this._columnsController.getVisibleColumns(null,!0),i=t[e];return!!i&&!!i.fixed},_isColumnVirtual:function(e){var t=e-this._columnsController.getColumnIndexOffset(),i=this._columnsController.getVisibleColumns(),n=i[t];return!!n&&"virtual"===n.command},_processVirtualHorizontalPosition:function(e){var t,i=this.component.getScrollable(),n=this.getColumnIndex(),o=0,r=!1;switch(e){case"next":case"nextInRow":var a=this._getVisibleColumnCount();t=n+1,o=this.option("rtlEnabled")?this._getMaxHorizontalOffset():0,r="next"===e?a===t||this._isFixedColumn(n)&&!this._isColumnRendered(t):a>t&&this._isFixedColumn(n)&&!this._isColumnRendered(t);break;case"previous":case"previousInRow":if(t=n-1,o=this.option("rtlEnabled")?0:this._getMaxHorizontalOffset(),"previous"===e){var s=this._columnsController.getColumnIndexOffset(),d=t<0&&0===s;r=d||this._isFixedColumn(n)&&!this._isColumnRendered(t)}else r=t>=0&&this._isFixedColumn(n)&&!this._isColumnRendered(t)}r?i.scrollTo({left:o}):(0,l.$K)(t)&&(0,l.$K)(e)&&this._isColumnVirtual(t)&&(o=this._getHorizontalScrollPositionOffset(e),0!==o&&i.scrollBy({left:o,top:0}))},_getHorizontalScrollPositionOffset:function(e){var t=0,i=this._getCell(this._focusedCellPosition),o=i&&(0,n.Y_)(i);if(o>0){var r=this.option("rtlEnabled")?-1:1;t="nextInRow"===e||"next"===e?o*r:o*r*-1}return t},_editingCellTabHandler:function(e,t){var i,n=e.originalEvent.target,o=this._getCellElementFromTarget(n),r=e.originalEvent,a=this._getElementType(n);if(o.is(Qj))return!this._targetCellTabHandler(e,t);this._updateFocusedCellPosition(o);var s=this._getNextCellByTabKey(r,t,a);if(o=s.$cell,!o||this._handleTabKeyOnMasterDetailCell(o,t))return!1;var l=this._columnsController,d=this.getView("rowsView").getCellIndex(o),u=d+l.getColumnIndexOffset(),c=l.getVisibleColumns(null,!0)[u],h=o.parent(),p=this._getRowIndex(h),f=this._dataController.items()[p],g=this._editingController;if(c&&c.allowEditing){var m=!f||"data"===f.rowType;i=g.allowUpdating({row:f})?m:f&&f.isNewRow}return i||this._closeEditCell(),this._focusCell(o,!s.isHighlighted)&&(!this._isRowEditMode()&&i?this._editFocusedCell():this._focusInteractiveElement(o,e.shift)),!0},_targetCellTabHandler:function(e,t){var i,n=e.originalEvent,r=n.target,a=this._getCellElementFromTarget(r),s=this._getInteractiveElement(a,!e.shift),l=!1;if(!bU(this,a)&&s.length&&r!==s.get(0))l=!0;else{void 0===this._focusedCellPosition.rowIndex&&(0,o.Z)(r).hasClass(Lj)&&this._updateFocusedCellPosition(a),i=this._getElementType(r),this.isRowFocusType()&&(this.setCellFocusType(),"row"===i&&vU((0,o.Z)(r))&&(r=this.getFirstValidCellInRow((0,o.Z)(r)),i=this._getElementType(r)));var d=this._getNextCellByTabKey(n,t,i);if(a=d.$cell,!a)return!1;if(a=this._checkNewLineTransition(n,a),!a)return!1;this._focusCell(a,!d.isHighlighted),bU(this,a)||this._focusInteractiveElement(a,e.shift)}return l},_getNextCellByTabKey:function(e,t,i){var n=this._getNextCell(t,i),o=n&&this._fireFocusedCellChanging(e,n,!0);return!o||o.cancel?{}:(o.$newCellElement&&(n=o.$newCellElement),{$cell:n,isHighlighted:o.isHighlighted})},_checkNewLineTransition:function(e,t){var i=this.getVisibleRowIndex(),n=t.parent();if(i!==this._getRowIndex(n)){var o=this._getCellPosition(t),r=this._fireFocusedRowChanging(e,n);if(r.cancel)return;r.rowIndexChanged&&(this.setFocusedColumnIndex(o.columnIndex),t=this._getFocusedCell())}return t},_enterKeyHandler:function(e,t){var i=this._getFocusedCell(),n=this.getVisibleRowIndex(),o=this._focusedView&&this._focusedView.getRow(n);if(this.option("grouping.allowCollapsing")&&mU(o)||this.option("masterDetail.enabled")&&i&&i.hasClass(Yj)){var r=this._dataController.getKeyByRowIndex(n),a=this._dataController.items()[n];void 0!==r&&a&&a.data&&!a.data.isContinuation&&this._dataController.changeRowExpand(r)}else this._processEnterKeyForDataCell(e,t)},_processEnterKeyForDataCell:function(e,t){var i=this._getEnterKeyDirection(e),n=this._allowEditingOnEnterKey();t||!n&&i?(this._handleEnterKeyEditingCell(e.originalEvent),"next"===i||"previous"===i?this._targetCellTabHandler(e,i):"upArrow"!==i&&"downArrow"!==i||this._navigateNextCell(e.originalEvent,i)):n&&this._startEditing(e)},_getEnterKeyDirection:function(e){var t=this.option("keyboardNavigation.enterKeyDirection"),i=e.shift;return"column"===t?i?"upArrow":"downArrow":"row"===t?i?"previous":"next":void 0},_handleEnterKeyEditingCell:function(e){var t=e.target,i=this._getCellElementFromTarget(t),n=this._isRowEditMode();this._updateFocusedCellPosition(i),n?(this._focusEditFormCell(i),setTimeout(this._editingController.saveEditData.bind(this._editingController))):(re.Z.trigger((0,o.Z)(t),"change"),this._closeEditCell(),e.preventDefault())},_escapeKeyHandler:function(e,t){var i=this._getCellElementFromTarget(e.originalEvent.target);t&&(this._updateFocusedCellPosition(i),this._isRowEditMode()?(this._focusEditFormCell(i),this._editingController.cancelEditData(),0===this._dataController.items().length&&(this._resetFocusedCell(),this._editorFactory.loseFocus())):"cell"===this._editingController.getEditMode()?this._editingController.cancelEditData():this._closeEditCell(),e.originalEvent.preventDefault())},_ctrlFKeyHandler:function(e){if(this.option("searchPanel.visible")){var t=this._headerPanel.getSearchTextEditor();t&&(t.focus(),e.originalEvent.preventDefault())}},_f2KeyHandler:function(){var e=this._editingController.isEditing(),t=this.getVisibleRowIndex(),i=this._focusedView&&this._focusedView.getRow(t);!e&&vU(i)&&this._startEditing()},_navigateNextCell:function(e,t){var i=this._getNextCell(t),n=this._getDirectionCodeByKey(t),o=i&&this._isCellValid(i),r=!!o&&this._arrowKeysHandlerFocusCell(e,i,n);return r},_arrowKeysHandlerFocusCell:function(e,t,i){var n="prevRow"===i||"nextRow"===i,o=this._fireFocusChangingEvents(e,t,n,!0);return t=o.$newCellElement,!(o.cancel||!this._isCellValid(t))&&(this._focus(t,!o.isHighlighted),!0)},_beginFastEditing:function(e,t){if(!this._isFastEditingAllowed()||e.altKey||e.ctrlKey||this._editingController.isEditing())return!1;if(t)this._startEditing(e,rU);else{var i=e.key,n=e.keyCode||e.which,o=i||n&&String.fromCharCode(n);!o||1!==o.length&&o!==rU||this._startEditing(e,o)}return!0},_pointerEventHandler:function(e){var t=e.event||e,i=(0,o.Z)(t.currentTarget),n=this.getView("rowsView"),r=n&&n.element(),a=i.parent(),s=(0,o.Z)(t.target).is(aU),l=!!(0,o.Z)(t.target).closest(".".concat(oU)).length,d=i.hasClass(Yj);this._isEventInCurrentGrid(t)&&(l||!this._isCellValid(i,!s)&&!d?i.is("td")&&this._resetFocusedCell():(i=this._isInsideEditForm(i)?(0,o.Z)(t.target):i,this._focusView(),(0,o.Z)(r).removeClass(iU),a.hasClass(zj)?(this._updateFocusedCellPosition(i),this._applyTabIndexToElement(this._focusedView.element()),this._focusedView.focus(!0)):this._isMasterDetailCell(i)?this._updateFocusedCellPosition(i):this._clickTargetCellHandler(t,i)))},_clickTargetCellHandler:function(e,t){var i=this.getView("rowsView").getCellIndex(t),n=this._columnsController.getVisibleColumns()[i],r=this._isCellEditMode();this.setCellFocusType();var a=this._fireFocusChangingEvents(e,t,!0);if(t=a.$newCellElement,a.cancel)this.setRowFocusType(),this.setFocusedRowIndex(a.prevRowIndex),this._editingController.isEditing()&&r&&this._closeEditCell();else{if(a.resetFocusedRow)return void this.getController("focus")._resetFocusedRow();if(a.rowIndexChanged&&(t=this._getFocusedCell()),a.isHighlighted||r||this.setRowFocusType(),this._updateFocusedCellPosition(t),this._allowRowUpdating()&&r&&n&&n.allowEditing)this._isNeedFocus=!1,this._isHiddenFocus=!1;else{t=this._getFocusedCell();var s=e&&(0,o.Z)(e.target).closest(sU+", td"),l=s&&s.not(t).is(sU),d=!!n&&!n.command&&t.hasClass(Gj),u=!d&&(!a.isHighlighted||l);this._focus(t,u,l)}}},_allowRowUpdating:function(){var e=this.getVisibleRowIndex(),t=this._dataController.items()[e];return this._editingController.allowUpdating({row:t},"click")},focus:function(e){var t,i=this.option("focusedRowEnabled"),n=CU((0,o.Z)(e));e||(t=".dx-datagrid-rowsview .dx-row[tabindex]",i||(t+=", .dx-datagrid-rowsview .dx-row > td[tabindex]"),e=this.component.$element().find(t).first()),e&&this._focusElement((0,o.Z)(e),n)},getFocusedView:function(){return this._focusedView},setupFocusedView:function(){this.isKeyboardEnabled()&&!(0,l.$K)(this._focusedView)&&this._focusView()},_focusElement:function(e,t){var i=(0,o.Z)(this._getRowsViewElement()),n=e.closest(i),r=this.isRowFocusType(),a={};!n.length||CU(e)&&!this._isCellValid(e)||(this._focusView(),this._isNeedFocus=!0,this._isNeedScroll=!0,(CU(e)||mU(e))&&(this.setCellFocusType(),a=this._fireFocusChangingEvents(null,e,!1,t),e=a.$newCellElement,r&&!a.isHighlighted&&this.setRowFocusType()),a.cancel||(this._focus(e,!a.isHighlighted),this._focusInteractiveElement(e)))},_getFocusedViewByElement:function(e){var t=this.getFocusedView(),i=t&&(0,o.Z)(t.element());return e&&0!==e.closest(i).length},_focusView:function(){this._focusedView=this.getView("rowsView")},_resetFocusedView:function(){this.setRowFocusType(),this._focusedView=null},_focusInteractiveElement:function(e,t){if(e){var i=this._getInteractiveElement(e,t);FD.focusAndSelectElement(this,i)}},_focus:function(e,t,i){var n=e&&!e.hasClass(Lj)?e.closest(".".concat(Lj)):e;if(!n||!yU(n)){var o,r=this._focusedView,a=r&&r.element();this._isHiddenFocus=t;var s=mU(n)||this.isRowFocusType();s?(o=n,r&&this.setFocusedRowIndex(this._getRowIndex(n))):CU(e)&&(o=e,this._updateFocusedCellPosition(e)),o&&(a&&a.find(".dx-row[tabindex], .dx-row > td[tabindex]").not(o).removeClass(eU).removeAttr("tabindex"),re.Z.one(o,"blur",(e=>{e.relatedTarget&&o.removeClass(eU)})),i||(this._applyTabIndexToElement(o),re.Z.trigger(o,"focus")),t?(o.addClass(eU),s&&e.addClass(eU)):this._editorFactory.focus(o))}},_updateFocus:function(e){this._updateFocusTimeout=setTimeout((()=>{var t=this._editingController,i=t.getEditMode()===cU,n=t.getEditMode()===uU;if(i&&t.hasChanges()||n&&t.isNewRowInEditMode())t._focusEditingCell();else{var o=this._getFocusedCell(),r=t.isEditing();if(o&&(!this._isMasterDetailCell(o)||this._isRowEditMode())){if(this._hasSkipRow(o.parent())){var a=this._focusedCellPosition&&this._focusedCellPosition.rowIndex>0?"upArrow":"downArrow";o=this._getNextCell(a)}if(xU(o))if(o.is("td")||o.hasClass(this.addWidgetPrefix(Wj))){var s=o.is(Qj),l=o.find(":focus"),d=xU(l);if(!e&&s||!this._editorFactory.focus())d||!this._isNeedFocus&&!this._isHiddenFocus||this._focus(o,this._isHiddenFocus);else{if(s&&d)return void FD.focusAndSelectElement(this,l);!d&&this._focus(o)}r&&this._focusInteractiveElement.bind(this)(o)}else re.Z.trigger(o,"focus")}}}))},_getFocusedCell:function(){return(0,o.Z)(this._getCell(this._focusedCellPosition))},_updateFocusedCellPositionByTarget:function(e){var t,i=this._getElementType(e);if("row"===i&&(0,l.$K)(null===(t=this._focusedCellPosition)||void 0===t?void 0:t.columnIndex)){var n=(0,o.Z)(e);this._focusedView&&mU(n)&&this.setFocusedRowIndex(this._getRowIndex(n))}else this._updateFocusedCellPosition(this._getCellElementFromTarget(e))},_updateFocusedCellPosition:function(e,t){var i=this._getCellPosition(e,t);return i&&(!e.length||i.rowIndex>=0&&i.columnIndex>=0)&&this.setFocusedCellPosition(i.rowIndex,i.columnIndex),i},_getFocusedColumnIndexOffset:function(e){var t=0,i=this._columnsController.getVisibleColumns()[e];return i&&i.fixed?t=this._getFixedColumnIndexOffset(i):e>=0&&(t=this._columnsController.getColumnIndexOffset()),t},_getFixedColumnIndexOffset:function(e){var t=SU(this,e)?this._getVisibleColumnCount()-this._columnsController.getVisibleColumns().length:0;return t},_getCellPosition:function(e,t){var i,n=xU(e)&&e.closest("tr"),o=this.getView("rowsView");if(xU(n)){var r=this._getRowIndex(n);return i=o.getCellIndex(e,r),i+=this._getFocusedColumnIndexOffset(i),t&&(i="previous"===t?i-1:i+1,i=this._applyColumnIndexBoundaries(i)),{rowIndex:r,columnIndex:i}}},_focusCell:function(e,t){if(this._isCellValid(e))return this._focus(e,t),!0},_focusEditFormCell:function(e){e.hasClass(Uj)&&this._editorFactory.focus(e,!0)},_resetFocusedCell:function(e){var t,i=this._getFocusedCell();xU(i)&&i.removeAttr("tabindex"),this._isNeedFocus=!1,this._isNeedScroll=!1,this._focusedCellPosition={},clearTimeout(this._updateFocusTimeout),null===(t=this._focusedView)||void 0===t||t.renderFocusState({preventScroll:e})},restoreFocusableElement:function(e,t){var i,n,o=(0,l.$K)(e),r=this.getView("rowsView"),a=r.element(),s=this._focusedCellPosition.columnIndex,d=this._dataController.getRowIndexOffset();e=o?e:r.getTopVisibleItemIndex()+d,o?(n=r.getRow(e-d),i=this._fireFocusedRowChanging(t,n),!i.cancel&&i.rowIndexChanged&&(e=i.newRowIndex)):(this._editorFactory.loseFocus(),this._applyTabIndexToElement(a),re.Z.trigger(a,"focus")),o&&i.cancel||this.setFocusedCellPosition(e,s),o&&this._updateFocus()},_getNewPositionByCode:function(e,t,i){var n,o=e.columnIndex,r=e.rowIndex;if(void 0===e.rowIndex&&"next"===i)return{columnIndex:0,rowIndex:0};switch(i){case"nextInRow":case"next":n=this._getVisibleColumnCount(),o<n-1&&"row"!==t&&this._hasValidCellAfterPosition({columnIndex:o,rowIndex:r})?o++:this._isLastRow(r)||"next"!==i||(o=0,r++);break;case"previousInRow":case"previous":o>0&&"row"!==t&&this._hasValidCellBeforePosition({columnIndex:o,rowIndex:r})?o--:r>0&&"previous"===i&&(r--,n=this._getVisibleColumnCount(),o=n-1);break;case"upArrow":r=r>0?r-1:r;break;case"downArrow":r=this._isLastRow(r)?r:r+1}return{columnIndex:o,rowIndex:r}},setFocusedCellPosition:function(e,t){this.setFocusedRowIndex(e),this.setFocusedColumnIndex(t)},setFocusedRowIndex:function(e){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.rowIndex=e},setFocusedColumnIndex:function(e){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.columnIndex=e},getRowIndex:function(){return this._focusedCellPosition?this._focusedCellPosition.rowIndex:-1},getColumnIndex:function(){return this._focusedCellPosition?this._focusedCellPosition.columnIndex:-1},getVisibleRowIndex:function(){var e=this._focusedCellPosition&&this._focusedCellPosition.rowIndex;return!(0,l.$K)(e)||e<0?-1:e-this._dataController.getRowIndexOffset()},getVisibleColumnIndex:function(){var e=this._focusedCellPosition&&this._focusedCellPosition.columnIndex;return(0,l.$K)(e)?e-this._columnsController.getColumnIndexOffset():-1},_applyColumnIndexBoundaries:function(e){var t=this._getVisibleColumnCount();return e<0?e=0:e>=t&&(e=t-1),e},_isCellByPositionValid:function(e){var t=(0,o.Z)(this._getCell(e));return this._isCellValid(t)},_isLastRow:function(e){var t=this._dataController,i=t.items().filter((e=>!1!==e.visible));return this._isVirtualRowRender()?e>=t.getMaxRowIndex():e===i.length-1},_isFirstValidCell:function(e){var t=!1;return 0===e.rowIndex&&e.columnIndex>=0&&(t=t||!this._hasValidCellBeforePosition(e)),t},_hasValidCellBeforePosition:function(e){var t=e.columnIndex,i=!1;while(t>0&&!i){var n={columnIndex:--t,rowIndex:e.rowIndex};i=this._isCellByPositionValid(n)}return i},_hasValidCellAfterPosition:function(e){var t=e.columnIndex,i=!1,n=this._getVisibleColumnCount();while(t<n-1&&!i){var o={columnIndex:++t,rowIndex:e.rowIndex};i=this._isCellByPositionValid(o)}return i},_isLastValidCell:function(e){var t=e.columnIndex>=0?e.columnIndex+1:0,i=e.rowIndex,n={columnIndex:t,rowIndex:i},o=this._dataController.getVisibleRows(),r=o&&o[i],a=this._isLastRow(i);return!!a&&(!!(r&&"group"===r.rowType&&e.columnIndex>0)||(e.columnIndex===this._getVisibleColumnCount()-1||!this._isCellByPositionValid(n)&&this._isLastValidCell(n)))},_isCellValid:function(e,t){if(xU(e)){var i=this.getView("rowsView"),n=e.parent(),o=this._columnsController,r=i.getCellIndex(e)+o.getColumnIndexOffset(),a=o.getVisibleColumns(null,!0)[r],s=this._getVisibleColumnCount(),d=this._editingController,u=_U(n),c=a&&a.showWhenGrouped,h=a&&!e.hasClass(Yj)&&vU(n);if(this._isMasterDetailCell(e))return!0;if(s>r&&(!u&&a&&(!(0,l.$K)(a.groupIndex)||c&&h)||parseInt(e.attr("colspan"))>1)){var p=this._dataController.items(),f=i.getRowIndex(n),g=p[f],m=d&&this._isCellEditMode()&&d.isEditing(),_=d&&d.isEditRow(f),v=_||m;return a.command?this._isLegacyNavigation()?!v&&"expand"===a.command:!m&&(_?"select"!==a.command:!v):(!m||!g||"data"===g.rowType)&&(!v||a.allowEditing||t)}}},getFirstValidCellInRow:function(e,t){var i,n,o=e.find("> td");t=t||0;for(var r=t;r<o.length;++r)if(i=o.eq(r),this._isCellValid(i)){n=i;break}return n},_getNextCell:function(e,t,i){var n,r,a=i||this._focusedCellPosition,s=this.isRowFocusType(),l=s||["next","previous"].includes(e);if(this._focusedView&&a){var d=this._getNewPositionByCode(a,t,e);n=(0,o.Z)(this._getCell(d));var u="previous"===e?this._isFirstValidCell(d):this._isLastValidCell(d);if(xU(n)&&!this._isCellValid(n)&&this._isCellInRow(d,l)&&!u&&(n=s?this.getFirstValidCellInRow(n.parent(),d.columnIndex):this._getNextCell(e,"cell",d)),r=xU(n)&&n.parent(),this._hasSkipRow(r)){var c=this._getRowIndex(r);if(this._isLastRow(c))return null;n=this._getNextCell(e,"row",{columnIndex:a.columnIndex,rowIndex:c})}return xU(n)?n:null}return null},_startEditing:function(e,t){var i=this._focusedCellPosition,n=this.getVisibleRowIndex(),o=this.getVisibleColumnIndex(),r=this._dataController.items()[n],a=this._columnsController.getVisibleColumns()[o];this._isAllowEditing(r,a)&&(this._isRowEditMode()?this._editingController.editRow(n):i&&this._startEditCell(e,t))},_isAllowEditing:function(e,t){return this._editingController.allowUpdating({row:e})&&t&&t.allowEditing},_editFocusedCell:function(){var e=this.getVisibleRowIndex(),t=this.getVisibleColumnIndex();return this._editingController.editCell(e,t)},_startEditCell:function(e,t){this._fastEditingStarted=(0,l.$K)(t);var i=this._editFocusedCell();if(this._isFastEditingStarted())if(!0===i)this._editingCellHandler(e,t);else if(i&&i.done){var n=t!==rU?t:"";i.done((()=>this._editingCellHandler(e,n)))}},_editingCellHandler:function(e,t){var i,n,o=this._getFocusedCell().find(aU).eq(0),r=(0,R.yM)(e,{type:"keydown",target:o.get(0)}),a=(0,R.yM)(e,{type:"keypress",target:o.get(0)}),s=(0,R.yM)(e,{type:"input",target:o.get(0)});if(s.originalEvent&&(s.originalEvent=(0,R.yM)(s.originalEvent,{data:t})),null===(i=(n=o.get(0)).select)||void 0===i||i.call(n),re.Z.trigger(o,r),!r.isDefaultPrevented()&&(re.Z.trigger(o,a),!a.isDefaultPrevented())){var l=Me.Z.mozilla?25:0;setTimeout((()=>{o.val(t);var e=o.closest(".".concat(nU));re.Z.off(e,"focusout"),re.Z.one(e,"focusout",(function(){re.Z.trigger(o,"change")})),re.Z.trigger(o,s)}),l)}},_fireFocusChangingEvents:function(e,t,i,n){var r={},a=this._getCellPosition(t)||{};return this.isCellFocusType()&&(r=this._fireFocusedCellChanging(e,t,n),r.cancel||(a.columnIndex=r.newColumnIndex,a.rowIndex=r.newRowIndex,n=r.isHighlighted,t=(0,o.Z)(this._getCell(a)))),!r.cancel&&i&&t&&(r=this._fireFocusedRowChanging(e,t.parent()),r.cancel||(a.rowIndex=r.newRowIndex,r.isHighlighted=n)),r.$newCellElement=(0,o.Z)(this._getCell(a)),r.$newCellElement.length||(r.$newCellElement=t),r},_fireFocusedCellChanging:function(e,t,i){var n=this.option("focusedColumnIndex"),r=this.option("focusedRowIndex"),a=this._getCellPosition(t),s=a?a.columnIndex:-1,l=a?a.rowIndex:-1,d={cellElement:t,prevColumnIndex:n,prevRowIndex:r,newColumnIndex:s,newRowIndex:l,rows:this._dataController.getVisibleRows(),columns:this._columnsController.getVisibleColumns(),event:e,isHighlighted:i||!1,cancel:!1};return this._canceledCellPosition=null,this.executeAction("onFocusedCellChanging",d),d.newColumnIndex===s&&d.newRowIndex===l||(d.$newCellElement=(0,o.Z)(this._getCell({columnIndex:d.newColumnIndex,rowIndex:d.newRowIndex}))),d.cancel&&(this._canceledCellPosition={rowIndex:l,columnIndex:s}),d},_fireFocusedCellChanged:function(e,t,i){var n=this._dataController,o=this.getView("rowsView").getCellIndex(e),r=this._getRowIndex(e&&e.parent()),a=Math.min(r-n.getRowIndexOffset(),n.items().length-1),s=this._editingController.isEditCell(a,o),l=n.items()[a];s||t===o&&i===r||this.executeAction("onFocusedCellChanged",{cellElement:e,columnIndex:o,rowIndex:r,row:l,column:this._columnsController.getVisibleColumns()[o]})},_fireFocusedRowChanging:function(e,t){var i=this._getRowIndex(t),n=this._dataController,o=this.option("focusedRowIndex"),r=n.loadingOperationTypes(),a={rowElement:t,prevRowIndex:o,newRowIndex:i,event:e,rows:n.getVisibleRows(),cancel:!1};return!n||n.isLoading()&&(r.reload||r.paging)?(a.cancel=!0,a):(this.option("focusedRowEnabled")&&(this.executeAction("onFocusedRowChanging",a),a.cancel||a.newRowIndex===i||(a.resetFocusedRow=a.newRowIndex<0,a.resetFocusedRow||this.setFocusedRowIndex(a.newRowIndex),a.rowIndexChanged=!0)),a)},_fireFocusedRowChanged:function(e){var t,i=this.option("focusedRowKey"),n=this.getController("focus"),o=null===n||void 0===n?void 0:n.getFocusedRowIndexByKey(i);if(this.option("focusedRowEnabled")){if(o>=0){var r=this._dataController;t=o>=0&&r.getVisibleRows()[o-r.getRowIndexOffset()]}this.executeAction("onFocusedRowChanged",{rowElement:e,rowIndex:o,row:t})}},_isEventInCurrentGrid:function(e){return FD.isElementInCurrentGrid(this,(0,o.Z)(e.target))},_isRowEditMode:function(){var e=this._editingController.getEditMode();return e===lU||e===dU},_isCellEditMode:function(){var e=this._editingController.getEditMode();return e===cU||e===uU},_isFastEditingAllowed:function(){return this._isCellEditMode()&&this.option("keyboardNavigation.editOnKeyPress")},_getInteractiveElement:function(e,t){var i=e.find(aU).filter(":visible");return t?i.last():i.first()},_applyTabIndexToElement:function(e){var t=this.option("tabIndex")||0;e.attr("tabindex",(0,l.$K)(t)?t:0)},_getCell:function(e){if(this._focusedView&&e){var t=this._dataController.getRowIndexOffset(),i=this._columnsController.getVisibleColumns(null,!0)[e.columnIndex],n=i&&i.fixed?this._getFixedColumnIndexOffset(i):this._columnsController.getColumnIndexOffset(),o=e.rowIndex>=0?e.rowIndex-t:-1,r=e.columnIndex>=0?e.columnIndex-n:-1;return this._focusedView.getCell({rowIndex:o,columnIndex:r})}},_getRowIndex:function(e){var t=this.getView("rowsView"),i=t.getRowIndex(e);return i>=0&&(i+=this._dataController.getRowIndexOffset()),i},_hasSkipRow:function(e){var t=e&&e.get(0);return t&&("none"===t.style.display||e.hasClass(this.addWidgetPrefix(Hj))||_U(e)&&!e.hasClass(this.addWidgetPrefix(Fj)))},_allowEditingOnEnterKey:function(){return"startEdit"===this.option("keyboardNavigation.enterKeyAction")},_isLegacyNavigation:function(){return this.option("useLegacyKeyboardNavigation")},_getDirectionCodeByKey:function(e){var t;switch(e){case"upArrow":t="prevRow";break;case"downArrow":t="nextRow";break;case"leftArrow":t=this.option("rtlEnabled")?"nextInRow":"previousInRow";break;case"rightArrow":t=this.option("rtlEnabled")?"previousInRow":"nextInRow"}return t},_isVirtualScrolling:function(){var e=this.option("scrolling.mode");return"virtual"===e||"infinite"===e},_isVirtualRowRender:function(){return this._isVirtualScrolling()||FD.isVirtualRowRendering(this)},_isVirtualColumnRender:function(){return"virtual"===this.option("scrolling.columnRenderingMode")},_scrollBy:function(e,t,i,n){var o=this,r=this.getView("rowsView").getScrollable();return o._focusedCellPosition&&r.on("scroll",(function e(){r.off("scroll",e),setTimeout(o.restoreFocusableElement.bind(o,i,n))})),r.scrollBy({left:e,top:t})},_isInsideEditForm:function(e){var t=(0,o.Z)(e).closest("."+this.addWidgetPrefix(Fj));return t.length&&this.elementIsInsideGrid(t)},_isMasterDetailCell:function(e){var t=(0,o.Z)(e).closest("."+Uj);return t.length&&this.elementIsInsideGrid(t)},_processNextCellInMasterDetail:function(e){!this._isInsideEditForm(e)&&e&&this._applyTabIndexToElement(e)},_handleTabKeyOnMasterDetailCell:function(e,t){if(this._isMasterDetailCell(e)){this._updateFocusedCellPosition((0,o.Z)(e),t);var i=this._getNextCell(t,"row");return this._processNextCellInMasterDetail(i),!0}return!1},_getElementType:function(e){return(0,o.Z)(e).is("tr")?"row":"cell"},_isFastEditingStarted:function(){return this._isFastEditingAllowed()&&this._fastEditingStarted},_getVisibleColumnCount:function(){return this._columnsController.getVisibleColumns(null,!0).length},_isCellInRow:function(e,t){var i=e.columnIndex,n=this._getVisibleColumnCount();return t?i>=0&&i<=n-1:i>0&&i<n-1},_getCellElementFromTarget:function(e){var t,i=this._getElementType(e),n=(0,o.Z)(e);return t="cell"===i?n.closest(".".concat(Lj," > td")):n.children().not("."+Yj).first(),t},_getRowsViewElement:function(){var e=this.getView("rowsView");return e&&e.element()},isKeyboardEnabled:function(){return this.option("keyboardNavigation.enabled")},_processCanceledEditCellPosition:function(e,t){if(this._canceledCellPosition){var i=this._canceledCellPosition.rowIndex===e&&this._canceledCellPosition.columnIndex===t;return this._canceledCellPosition=null,i}},updateFocusedRowIndex:function(){var e=this._dataController,t=this.getVisibleRowIndex(),i=e.items(),n=i.length?i.length-1:-1,o=e.getRowIndexOffset();n>=0&&t>n&&this.setFocusedRowIndex(n+o)}}),DU={defaultOptions:function(){return{useLegacyKeyboardNavigation:!1,keyboardNavigation:{enabled:!0,enterKeyAction:"startEdit",enterKeyDirection:"none",editOnKeyPress:!1}}},controllers:{keyboardNavigation:EU},extenders:{views:{rowsView:{_rowClick:function(e){var t=this.getController("editing").getEditRowIndex(),i=this.getController("keyboardNavigation"),n=i.isKeyboardEnabled();t===e.rowIndex&&i.setCellFocusType();var o=(wU()||!n)&&this.option("focusedRowEnabled");o&&this._triggerPointerDownEventHandler(e,!n),this.callBase.apply(this,arguments)},_triggerPointerDownEventHandler:function(e,t){var i=e.event.originalEvent;if(i){var n=this.getController("keyboardNavigation"),r=(0,o.Z)(i.target),a=this.getCellIndex(r),s=this.getController("columns").getVisibleColumns()[a],l=this.getController("data").items()[e.rowIndex];if(n._isAllowEditing(l,s)||t){var d=(0,R.yM)(i,{currentTarget:i.target});n._pointerEventHandler(d)}}},renderFocusState:function(e){var{preventScroll:t,pageSizeChanged:i}=null!==e&&void 0!==e?e:{},n=this.getController("keyboardNavigation"),o=this.element();o&&!(0,D.si)(o)&&o.attr("tabindex",null),i&&n.updateFocusedRowIndex();var r=n.getVisibleRowIndex();(!(0,l.$K)(r)||r<0)&&(r=0);var a=this.getCellElements(r);n.isKeyboardEnabled()&&a.length&&this.updateFocusElementTabIndex(a,t)},updateFocusElementTabIndex:function(e){var t=this.getController("keyboardNavigation"),i=e.eq(0).parent();if(mU(i))t._applyTabIndexToElement(i);else{var n=t.getColumnIndex();(!(0,l.$K)(n)||n<0)&&(n=0),this._updateFocusedCellTabIndex(e,n)}},_updateFocusedCellTabIndex:function(e,t){var i=this.getController("keyboardNavigation"),n=e?e.length:-1,r=function(e){var t=i._isMasterDetailCell(e),n=i._isCellValid(e);if(!t&&n&&CU(e))return i._applyTabIndexToElement(e),i.setCellFocusType(),!0},a=e.filter("[aria-colindex='".concat(t+1,"']"));if(a.length)r(a);else{n<=t&&(t=n-1);for(var s=t;s<n;++s)if(r((0,o.Z)(e[s])))break}},renderDelayedTemplates:function(e){this.callBase.apply(this,arguments),this._renderFocusByChange(e)},_renderFocusByChange(e){var{operationTypes:t,repaintChangesOnly:i}=null!==e&&void 0!==e?e:{},{fullReload:n,pageSize:o}=null!==t&&void 0!==t?t:{};if(!e||!i||n||o){var r=IU(this);this.renderFocusState({preventScroll:r,pageSizeChanged:o})}},_renderCore:function(e){this.callBase.apply(this,arguments),this._renderFocusByChange(e)},_editCellPrepared:function(e){var t=this._getEditorInstance(e),i=this.getController("keyboardNavigation"),n=i&&i._isFastEditingStarted();t&&n&&this._handleEditingNavigationMode(t),this.callBase.apply(this,arguments)},_handleEditingNavigationMode:function(e){["downArrow","upArrow"].forEach((function(t){var i=e._supportedKeys()[t];e.registerKeyHandler(t,(t=>{var n="true"===e._input().attr("aria-expanded");if(n)return i&&i.call(e,t)}))})),e.registerKeyHandler("leftArrow",v.ZT),e.registerKeyHandler("rightArrow",v.ZT);var t=e.NAME===tU&&e.option("useMaskBehavior");t&&e.registerKeyHandler("enter",v.ZT)},_getEditorInstance:function(e){var t=e.find(".dx-texteditor").eq(0);return FD.getWidgetInstance(t)}}},controllers:{editing:{editCell:function(e,t){var i=this.getController("keyboardNavigation");if(i._processCanceledEditCellPosition(e,t))return!1;var n=this.callBase(e,t);return n&&i.setupFocusedView(),n},editRow:function(e){var t=this.getController("keyboardNavigation"),i=t.getVisibleColumnIndex(),n=this._columnsController.getVisibleColumns()[i];(n&&n.type||this.option("editing.mode")===dU)&&t._resetFocusedCell(),this.callBase(e)},addRow:function(e){var t=this.getController("keyboardNavigation");return t.setupFocusedView(),t.setCellFocusType(),this.callBase.apply(this,arguments)},getFocusedCellInRow:function(e){var t=this.getController("keyboardNavigation"),i=this.callBase(e);if(t.isKeyboardEnabled()&&t._focusedCellPosition.rowIndex===e){var n=t._getFocusedCell();xU(n)&&!n.hasClass(Jj)&&(i=n)}return i},_processCanceledEditingCell:function(){this.closeEditCell().done((()=>{var e=this.getController("keyboardNavigation");e._updateFocus()}))},init:function(){this.callBase(),this._keyboardNavigationController=this.getController("keyboardNavigation")},closeEditCell:function(){var e=this._keyboardNavigationController;e._fastEditingStarted=!1;var t=this.callBase.apply(this,arguments);return e._updateFocus(),t},_delayedInputFocus:function(){this._keyboardNavigationController._isNeedScroll=!0,this.callBase.apply(this,arguments)},_isEditingStart:function(){var e=this.getController("keyboardNavigation"),t=this.callBase.apply(this,arguments);if(t&&!e._isNeedFocus){var i=e._getFocusedCell();e._focus(i,!0)}return t}},data:{_correctRowIndices:function(e){var t=this,i=t.getController("keyboardNavigation"),n=t.getController("editorFactory"),o=i._focusedCellPosition;if(t.callBase.apply(t,arguments),o&&o.rowIndex>=0){var r=e(o.rowIndex);r&&(o.rowIndex+=r,n.refocus())}},getMaxRowIndex:function(){var e=this.items().length-1,t=this.virtualItemsCount();if(t){var i=this.getRowIndexOffset();e+=i+t.end}return e}},adaptiveColumns:{_showHiddenCellsInView:function(e){var{viewName:t,$cells:i,isCommandColumn:n}=e;this.callBase.apply(this,arguments),t===fU&&!n&&i.each(((e,t)=>{var i=(0,o.Z)(t);TU(i)&&i.attr("tabindex",0)}))},_hideVisibleCellInView:function(e){var{viewName:t,$cell:i,isCommandColumn:n}=e;this.callBase.apply(this,arguments),t===fU&&!n&&TU(i)&&i.removeAttr("tabindex")}}}}};function kU(e,t,i,n,o,r){i=i||0,n=n||[],r=r||[],n[i]=n[i]||0;var a,s=e[i],l=r[i]+1||0,d=0;if(s){for(a=l;a<s.length;a++){var u=s[a],c=a+n[i],h=u.colspan||1;if(kU(e,t,i+(u.rowspan||1),n,h,r),n[i]+=h-1,d+=h,u.rowspan)for(var p=i+1;p<i+u.rowspan;p++)n[p]=n[p]||0,n[p]+=u.colspan||1;if(!1===t(u,c,i,a))break;if(void 0!==o&&d>=o)break}r[i]=a}}function OU(e,t,i){var n=[];kU(e,(function(e,o,r){var s,l=e,d=l.colspan||1,u=o+d-1>=t&&o<i;if(n[r]=n[r]||[],u)o<t?(s=d-(t-o),o=t):s=d,o+s>i&&(s=i-o),s!==d&&(l=(0,a.l)({},l,{colspan:s})),n[r].push(l);else if(o>i)return!1}));for(var o=0;o<n.length;o++)n[o]=n[o]||[];return n}zO.registerModule("keyboardNavigation",(0,a.l)(!0,{},DU,{extenders:{controllers:{keyboardNavigation:{_leftRightKeysHandler:function(e,t){var i=this.getVisibleRowIndex(),n=this._dataController;if(!e.ctrl)return this.callBase.apply(this,arguments);var o=this._getDirectionCodeByKey(e.keyName),r=n.getKeyByRowIndex(i);"nextInRow"===o?n.expandRow(r):n.collapseRow(r)}}}}}));var AU=50,PU={_resizeCore:function(){this.callBase.apply(this,arguments),this._columnsController.resize()},_handleScroll:function(e){var t=this,i=this.getScrollable(),o=e.scrollOffset.left;t.callBase.apply(t,arguments),t.option("rtlEnabled")&&i&&(o=(0,n.dz)(i.$content())-(0,n.dz)(i.$element())-o),t._columnsController.setScrollPosition(o)}},MU={_renderCore:function(){this.callBase.apply(this,arguments),this._columnsController.isVirtualMode()&&this._updateScrollLeftPosition()}},RU=function(){var e=function(e){return e.map((e=>e.visibleWidth||parseFloat(e.width)||AU))},t={init:function(){var e=this;e.callBase.apply(this,arguments),e._beginPageIndex=null,e._endPageIndex=null,e._position=0,e._virtualVisibleColumns={}},resetColumnsCache:function(){this.callBase(),this._virtualVisibleColumns={}},getBeginPageIndex:function(t){for(var i=this.getVisibleColumns(void 0,!0),n=e(i),o=0,r=0;r<n.length;r++){if(o>=t)return Math.floor(r/this.getColumnPageSize());o+=n[r]}return 0},getTotalWidth:function(){var e=this.option("width");return"number"===typeof e?e:this.getController("resizing")._lastWidth||(0,n.Y_)(this.component.$element())},getEndPageIndex:function(t){var i=this.getVisibleColumns(void 0,!0),n=e(i),o=0;t+=this.getTotalWidth();for(var r=0;r<n.length;r++){if(o>=t)return Math.ceil(r/this.getColumnPageSize());o+=n[r]}return Math.ceil(n.length/this.getColumnPageSize())},getColumnPageSize:function(){return this.option("scrolling.columnPageSize")},_fireColumnsChanged:function(){var e=new Date;this.columnsChanged.fire({optionNames:{all:!0,length:1},changeTypes:{columns:!0,virtualColumnsScrolling:!0,length:2}}),this._renderTime=new Date-e},getScrollingTimeout:function(){var e=this.option("scrolling.columnRenderingThreshold"),t=this.option("scrolling.renderAsync"),i=0;return(!(0,l.$K)(t)&&this._renderTime>e||t)&&(i=this.option("scrolling.timeout")),i},setScrollPosition:function(e){var t=this.getScrollingTimeout();t>0?(clearTimeout(this._changedTimeout),this._changedTimeout=setTimeout((()=>{this._setScrollPositionCore(e)}),t)):this._setScrollPositionCore(e)},isVirtualMode:function(){return(0,s.Ym)()&&"virtual"===this.option("scrolling.columnRenderingMode")},resize:function(){this._setScrollPositionCore(this._position)},_setScrollPositionCore:function(e){if(this.isVirtualMode()){var t=this.getBeginPageIndex(e),i=this.getEndPageIndex(e),n=e<this._position?this._beginPageIndex>t:this._endPageIndex<i;this._position=e,n&&(this._beginPageIndex=t,this._endPageIndex=i,this._fireColumnsChanged())}},getFixedColumns:function(e,t){var i=this.callBase(e);if(this.isVirtualMode()&&!t&&i.length){var n=i.map((e=>e.command)).indexOf("transparent");return i[n].colspan=this.getVisibleColumns().length-this.callBase().length+1,i}return i},_compileVisibleColumns:function(t,i){var n;if(i||!this.isVirtualMode()||!this._shouldReturnVisibleColumns())return this.callBase(t);null===(n=this._columns)||void 0===n||!n.length||(0,l.$K)(this._beginPageIndex)||(0,l.$K)(this._endPageIndex)||(this._beginPageIndex=this.getBeginPageIndex(this._position),this._endPageIndex=this.getEndPageIndex(this._position));var o=this._beginPageIndex,r=this._endPageIndex,a=t+"-"+o+"-"+r;if(this._virtualVisibleColumns[a])return this._virtualVisibleColumns[a];var s=this.callBase(),d=this.getRowCount(),u=this.getColumnPageSize(),c=o*u,h=r*u,p=this.getFixedColumns(void 0,!0),f=p.map((e=>e.command)).indexOf("transparent"),g=p.length?f:0,m=s.slice(0,g),_=s.slice(g,c),v=e(_).reduce(((e,t)=>e+t),0);v||(c=0);var y=p.length?p.length-f-1:0,C=s.slice(s.length-y),b=s.slice(h,s.length-y),x=e(b).reduce(((e,t)=>e+t),0);if(x||(h=s.length),d>1&&"number"===typeof t){for(var w=[],T=0;T<d;T++)w.push(this.callBase(T));m=OU(w,0,m.length)[t]||[],C=OU(w,s.length-C.length,s.length)[t]||[],s=OU(w,c,h)[t]||[]}else s=s.slice(c,h);return v&&(s.unshift({command:"virtual",width:v}),s=m.concat(s)),x&&(s.push({command:"virtual",width:x}),s=s.concat(C)),this._virtualVisibleColumns[a]=s,s},getColumnIndexOffset:function(){var e=0;if(this._beginPageIndex>0){var t=this.getFixedColumns(),i=t.map((e=>e.command)).indexOf("transparent"),n=i>=0?i:0;e=this._beginPageIndex*this.getColumnPageSize()-n-1}return e>0?e:0},dispose:function(){clearTimeout(this._changedTimeout),this.callBase.apply(this,arguments)}};return t}(),BU={defaultOptions:function(){return{scrolling:{columnRenderingMode:"standard",columnPageSize:5,columnRenderingThreshold:300}}},extenders:{controllers:{columns:RU},views:{columnHeadersView:MU,rowsView:PU}}};zO.registerModule("virtualColumns",BU);var VU="dx-row-focused",FU=".dx-row."+VU,HU="table",LU="dx-cell-focus-disabled",NU=KO.ViewController.inherit({init:function(){this._dataController=this.getController("data"),this._keyboardController=this.getController("keyboardNavigation"),this.component._optionsByReference.focusedRowKey=!0},optionChanged:function(e){if("focusedRowIndex"===e.name){var t=this.option("focusedRowKey");this._focusRowByIndex(e.value),this._triggerFocusedRowChangedIfNeed(t,e.value),e.handled=!0}else if("focusedRowKey"===e.name){if(e.handled=!0,Array.isArray(e.value)&&JSON.stringify(e.value)===JSON.stringify(e.previousValue))return;var i=this.option("focusedRowIndex");this._focusRowByKey(e.value),this._triggerFocusedRowChangedIfNeed(e.value,i)}else"focusedColumnIndex"===e.name||"focusedRowEnabled"===e.name||"autoNavigateToFocusedRow"===e.name?e.handled=!0:this.callBase(e)},_triggerFocusedRowChangedIfNeed:function(e,t){var i=this.getFocusedRowIndexByKey(e);if(t===i){var n=this._dataController.getRowIndexByKey(e);if(n>=0){var r=(0,o.Z)(this.getView("rowsView").getRowElement(n));this.getController("keyboardNavigation")._fireFocusedRowChanged(r,t)}}},isAutoNavigateToFocusedRow:function(){return"infinite"!==this.option("scrolling.mode")&&this.option("autoNavigateToFocusedRow")},_focusRowByIndex:function(e,t){this.option("focusedRowEnabled")&&(e=void 0!==e?e:this.option("focusedRowIndex"),e<0?this.isAutoNavigateToFocusedRow()&&this._resetFocusedRow():this._focusRowByIndexCore(e,t))},_focusRowByIndexCore:function(e,t){var i=this.getController("data"),n=i.pageSize(),o=()=>{if(this._isValidFocusedRowIndex(e)){var n=e-i.getRowIndexOffset(!0);if(!t||t.paging&&!t.filtering){var o=i._getLastItemIndex();n=Math.min(n,o)}var r=i.getKeyByRowIndex(n,!0);(0,l.$K)(r)&&!this.isRowFocused(r)&&this.option("focusedRowKey",r)}};if(n>=0)if(this._isLocalRowIndex(e))o();else{var r=Math.floor(e/i.pageSize());(0,ot.gx)(i.pageIndex(r),i.waitReady()).done((()=>{o()}))}},_isLocalRowIndex(e){var t=this.getController("data"),i=this.getController("keyboardNavigation")._isVirtualScrolling();if(i){var n=Math.floor(e/t.pageSize()),o=t.virtualItemsCount(),r=o?o.begin:-1,a=t.getVisibleRows().length+t.getRowIndexOffset(),s=Math.ceil(a/t.pageSize());return r<=e&&s>n}return!0},_setFocusedRowKeyByIndex:function(e){var t=this.getController("data");if(this._isValidFocusedRowIndex(e)){var i=Math.min(e-t.getRowIndexOffset(),t.items().length-1),n=t.getKeyByRowIndex(i);(0,l.$K)(n)&&!this.isRowFocused(n)&&this.option("focusedRowKey",n)}},_focusRowByKey:function(e){(0,l.$K)(e)?this._navigateToRow(e,!0):this._resetFocusedRow()},_resetFocusedRow:function(){var e=this.option("focusedRowKey"),t=(0,l.$K)(e);if(t||!(this.option("focusedRowIndex")<0)){var i=this.getController("keyboardNavigation");t&&this.option("focusedRowKey",null),i.setFocusedRowIndex(-1),this.option("focusedRowIndex",-1),this.getController("data").updateItems({changeType:"updateFocusedRow",focusedRowKey:null}),i._fireFocusedRowChanged(void 0,-1)}},_isValidFocusedRowIndex:function(e){var t=this.getController("data"),i=t.getVisibleRows()[e];return!i||"data"===i.rowType||"group"===i.rowType},publicMethods:function(){return["navigateToRow","isRowFocused"]},navigateToRow:function(e){return this.isAutoNavigateToFocusedRow()||this.option("focusedRowIndex",-1),this._navigateToRow(e)},_navigateToRow:function(e,t){var i=this,n=i.getController("data"),o=i.isAutoNavigateToFocusedRow(),r=new ot.BH;if(void 0===e||!n.dataSource())return r.reject().promise();var a=i.getFocusedRowIndexByKey(e);return!o&&t||a>=0?i._navigateTo(e,r,t):n.getPageIndexByKey(e).done((function(o){o<0?r.resolve(-1):o===n.pageIndex()?n.reload().done((function(){i.isRowFocused(e)&&n.getRowIndexByKey(e)>=0?r.resolve(i.getFocusedRowIndexByKey(e)):i._navigateTo(e,r,t)})).fail(r.reject):n.pageIndex(o).done((function(){i._navigateTo(e,r,t)})).fail(r.reject)})).fail(r.reject),r.promise()},_navigateTo:function(e,t,i){var n=this.getController("data").getRowIndexByKey(e),o=FD.isVirtualRowRendering(this),r=this.isAutoNavigateToFocusedRow();r&&o&&n<0?this._navigateToVirtualRow(e,t,i):this._navigateToVisibleRow(e,t,i)},_navigateToVisibleRow:function(e,t,i){if(i)this._triggerUpdateFocusedRow(e,t);else{var n=this.getFocusedRowIndexByKey(e);this.getView("rowsView").scrollToRowElement(e,t).done((function(){t.resolve(n)}))}},_navigateToVirtualRow:function(e,t,i){var n=this,o=this.getController("data"),r=o._rowsScrollController,a=FD.getIndexByKey(e,o.items(!0)),s=n.getView("rowsView").getScrollable();if(r&&s&&a>=0){var l=a+o.getRowIndexOffset(!0),d=r.getItemOffset(l);n.component.on("contentReady",(function o(){n.component.off("contentReady",o),i?n._triggerUpdateFocusedRow(e,t):t.resolve(l)})),this.getView("rowsView").scrollTopPosition(d)}else t.resolve(-1)},_triggerUpdateFocusedRow:function(e,t){var i,n=this.getController("data"),o=this.getFocusedRowIndexByKey(e);this._isValidFocusedRowIndex(o)?(this.option("focusedRowEnabled")?n.updateItems({changeType:"updateFocusedRow",focusedRowKey:e}):i=this.getView("rowsView").scrollToRowElement(e),(0,ot.gx)(i).done((()=>{this.getController("keyboardNavigation").setFocusedRowIndex(o),t&&t.resolve(o)}))):t&&t.resolve(-1)},getFocusedRowIndexByKey:function(e){var t=this.getController("data"),i=t.getRowIndexByKey(e,!0);return i>=0?i+t.getRowIndexOffset(!0):-1},_focusRowByKeyOrIndex:function(){var e=this.option("focusedRowKey"),t=this.option("focusedRowIndex"),i=this.getController("keyboardNavigation"),n=this.getController("data");if((0,l.$K)(e)){var o=n.getRowIndexByKey(e);o>=0?(i._isVirtualScrolling()&&(t=o+n.getRowIndexOffset()),i.setFocusedRowIndex(t),this._triggerUpdateFocusedRow(e)):this._navigateToRow(e,!0).done((e=>{t>=0&&e<0?this._focusRowByIndex():t<0&&e>=0&&i.setFocusedRowIndex(e)}))}else t>=0&&this.getController("focus")._focusRowByIndex(t)},isRowFocused:function(e){var t=this.option("focusedRowKey");if((0,l.$K)(t))return(0,v.bY)(e,this.option("focusedRowKey"))},updateFocusedRow:function(e){var t,i,n=this,r=n._dataController.getRowIndexByKey(e.focusedRowKey),a=n.getView("rowsView");(0,E.S6)(a.getTableElements(),(function(e,a){var s=0===e;t=(0,o.Z)(a),n._clearPreviousFocusedRow(t,r);var l=n._prepareFocusedRow({changedItem:n._dataController.getVisibleRows()[r],$tableElement:t,focusedRowIndex:r});s&&(i=l)})),i&&a.scrollToElementVertically(i)},_clearPreviousFocusedRow:function(e,t){var i=e.find(FU).filter(((t,i)=>{var n=(0,o.Z)(i).closest(".".concat(this.addWidgetPrefix(HU)));return e.is(n)}));if(i.removeClass(VU).removeClass(LU).removeAttr("tabindex"),i.children("td").removeAttr("tabindex"),0!==t){var n=(0,o.Z)(this.getView("rowsView").getRowElement(0));n.removeClass(LU).removeAttr("tabIndex")}},_prepareFocusedRow:function(e){var t,i=e.changedItem;if(i&&("data"===i.rowType||"group"===i.rowType)){var n=e.focusedRowIndex,r=e.$tableElement,a=this.option("tabindex")||0,s=this.getView("rowsView");t=(0,o.Z)(s._getRowElements(r).eq(n)),t.addClass(VU).attr("tabindex",a)}return t}}),ZU={defaultOptions:function(){return{focusedRowEnabled:!1,autoNavigateToFocusedRow:!0,focusedRowKey:null,focusedRowIndex:-1,focusedColumnIndex:-1}},controllers:{focus:NU},extenders:{controllers:{keyboardNavigation:{init:function(){var e=this.option("focusedRowIndex"),t=this.option("focusedColumnIndex");this.createAction("onFocusedRowChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedRowChanged",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedCellChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedCellChanged",{excludeValidators:["disabled","readOnly"]}),this.callBase(),this.setRowFocusType(),this._focusedCellPosition={},(0,l.$K)(e)&&e>=0&&(this._focusedCellPosition.rowIndex=e),(0,l.$K)(t)&&t>=0&&(this._focusedCellPosition.columnIndex=t)},setFocusedRowIndex:function(e){var t=this.getController("data");this.callBase(e);var i=e-t.getRowIndexOffset(),n=t.getVisibleRows()[i];n&&n.isNewRow||this.option("focusedRowIndex",e)},setFocusedColumnIndex:function(e){this.callBase(e),this.option("focusedColumnIndex",e)},_escapeKeyHandler:function(e,t){!t&&this.option("focusedRowEnabled")?this.isCellFocusType()&&(this.setRowFocusType(),this._focus(this._getCellElementFromTarget(e.originalEvent.target),!0)):this.callBase(e,t)},_updateFocusedCellPosition:function(e,t){var i=this.option("focusedRowIndex"),n=this.option("focusedColumnIndex"),o=this.callBase(e,t);o&&o.columnIndex>=0&&this._fireFocusedCellChanged(e,n,i)}},editorFactory:{renderFocusOverlay:function(e,t){var i,n=this.getController("keyboardNavigation"),o=this.option("focusedRowEnabled"),r=this.getController("editing");if(o&&null!==n&&void 0!==n&&n.isRowFocusType()&&!r.isEditing()){if(o){var a="row"===n._getElementType(e);a&&!e.hasClass(VU)&&(i=n.getFirstValidCellInRow(e),n.focus(i))}}else this.callBase(e,t)}},columns:{getSortDataSourceParameters:function(e,t){var i=this.callBase.apply(this,arguments),n=this.getController("data"),o=n._dataSource,r=n.store(),a=r&&r.key(),s=o&&o.remoteOperations()||{},l=Object.keys(s).every((e=>!s[e]));if(a&&(this.option("focusedRowEnabled")&&!1!==this.getController("focus").isAutoNavigateToFocusedRow()||t)){a=Array.isArray(a)?a:[a];var d=a.filter((e=>!this.columnOption(e,"sortOrder")));d.length&&(i=i||[],l?i.push({selector:o.getDataIndexGetter(),desc:!1}):d.forEach((e=>i.push({selector:e,desc:!1}))))}return i}},data:{_applyChange:function(e){if(!e||"updateFocusedRow"!==e.changeType)return this.callBase.apply(this,arguments)},_fireChanged:function(e){if(this.callBase(e),this.option("focusedRowEnabled")&&this._dataSource){var t="update"===e.changeType&&e.repaintChangesOnly,i=t&&e.changeTypes&&e.changeTypes.indexOf("remove")>=0;"refresh"===e.changeType&&e.items.length||i?(this._updatePageIndexes(),this.processUpdateFocusedRow(e)):"append"===e.changeType||"prepend"===e.changeType?this._updatePageIndexes():"update"===e.changeType&&e.repaintChangesOnly&&this.processUpdateFocusedRow(e)}},_updatePageIndexes:function(){var e=this._lastRenderingPageIndex||0,t=this._rowsScrollController?this._rowsScrollController.pageIndex():0;this._lastRenderingPageIndex=t,this._isPagingByRendering=t!==e},isPagingByRendering:function(){return this._isPagingByRendering},processUpdateFocusedRow:function(e){var t=e.operationTypes||{},i=this.getController("focus"),{reload:n,fullReload:o}=t,r=this.getController("keyboardNavigation"),a=r._isVirtualScrolling(),s=this.option("focusedRowKey"),d=i.isAutoNavigateToFocusedRow();if(n&&!o&&(0,l.$K)(s))i._navigateToRow(s,!0).done((function(e){e<0&&i._focusRowByIndex(void 0,t)}));else if(t.paging&&!a)if(d){var u=this.getRowIndexByKey(s),c=u>=0,h=this.option("focusedRowIndex"),p=h>=0&&(h===u||!c);p&&i._focusRowByIndex(void 0,t)}else this.getRowIndexByKey(s)<0&&this.option("focusedRowIndex",-1);else t.fullReload&&i._focusRowByKeyOrIndex()},getPageIndexByKey:function(e){var t=this,i=new ot.BH;return t.getGlobalRowIndexByKey(e).done((function(e){i.resolve(e>=0?Math.floor(e/t.pageSize()):-1)})).fail(i.reject),i.promise()},getGlobalRowIndexByKey:function(e){return this._dataSource.group()?this._calculateGlobalRowIndexByGroupedData(e):this._calculateGlobalRowIndexByFlatData(e)},_calculateGlobalRowIndexByFlatData:function(e,t,i){var n=this,o=new ot.BH,r=n._dataSource;if(Array.isArray(e))return o.resolve(-1).promise();var a=n._generateFilterByKey(e);return r.load({filter:n._concatWithCombinedFilter(a),skip:0,take:1}).done((function(s){s.length>0?(a=n._generateOperationFilterByKey(e,s[0],i),r.load({filter:n._concatWithCombinedFilter(a,t),skip:0,take:1,requireTotalCount:!0}).done((function(e,t){o.resolve(t.totalCount)}))):o.resolve(-1)})),o.promise()},_concatWithCombinedFilter:function(e,t){var i=this.getCombinedFilter();return FD.combineFilters([e,i,t])},_generateBooleanFilter:function(e,t,i){var n;return!1===t?n=[e,"=",!!i.desc||null]:(!0===t?!i.desc:i.desc)&&(n=[e,"<>",t]),n},_generateOperationFilterByKey:function(e,t,i){var n=this,o=n._dataSource,r=n._generateFilterByKey(e,"<"),a=n._columnsController.getSortDataSourceParameters(!o.remoteOperations().filtering,!0);if(i){var s=n._columnsController.getGroupDataSourceParameters(!o.remoteOperations().filtering);s&&(a=a?s.concat(a):s)}return a&&a.slice().reverse().forEach((function(e){var i,o=e.selector;i="function"===typeof o?o:n._columnsController.columnOption(o,"selector");var a=i?i(t):t[o];if(r=[[o,"=",a],"and",r],null===a||(0,l.jn)(a)){var s=n._generateBooleanFilter(o,a,e);s&&(r=[s,"or",r])}else{var d,u=e.desc?">":"<";e.compare?d=t=>"<"===u?e.compare(a,i(t))>=1:e.compare(a,i(t))<=-1:(d=[o,u,a],e.desc||(d=[d,"or",[o,"=",null]])),r=[d,"or",r]}})),r},_generateFilterByKey:function(e,t){var i=this._dataSource.key(),n=[];if(t||(t="="),Array.isArray(i))for(var o=0;o<i.length;++o){var r=e[i[o]];r&&(n.length>0&&n.push("and"),n.push([i[o],t,r]))}else n=[i,t,e];return n},_getLastItemIndex:function(){return this.items(!0).length-1}},editing:{_deleteRowCore:function(e){var t=this.callBase.apply(this,arguments),i=this.getController("data"),n=i.getKeyByRowIndex(e);t.done((()=>{var e=i.getRowIndexByKey(n),t=i.getVisibleRows();-1!==e||t.length||this.getController("focus")._resetFocusedRow()}))}}},views:{rowsView:{_createRow:function(e){var t=this.callBase.apply(this,arguments);return this.option("focusedRowEnabled")&&e&&this.getController("focus").isRowFocused(e.key)&&t.addClass(VU),t},_checkRowKeys:function(e){if(this.callBase.apply(this,arguments),this.option("focusedRowEnabled")&&this.option("dataSource")){var t=this._dataController.store();t&&!t.key()&&this._dataController.fireError("E1042","Row focusing")}},_update:function(e){"updateFocusedRow"===e.changeType?this.option("focusedRowEnabled")&&this.getController("focus").updateFocusedRow(e):this.callBase(e)},updateFocusElementTabIndex:function(e,t){var i=this.getController("keyboardNavigation").getVisibleRowIndex(),n=this._dataController.getVisibleRows()[i];!this.option("focusedRowEnabled")||null!==n&&void 0!==n&&n.isNewRow?this.callBase(e):this._setFocusedRowElementTabIndex(t)},_setFocusedRowElementTabIndex:function(e){var t=this.option("focusedRowKey"),i=this.option("tabIndex")||0,n=this._dataController,o=this._columnsController,r=n.getRowIndexByKey(t),a=this.option("focusedColumnIndex"),s=this._findRowElementForTabIndex();if((0,l.$K)(this._scrollToFocusOnResize)||(this._scrollToFocusOnResize=()=>{this.scrollToElementVertically(this._findRowElementForTabIndex()),this.resizeCompleted.remove(this._scrollToFocusOnResize)}),s.attr("tabIndex",i),r>=0&&!e&&(a<0&&(a=0),r+=n.getRowIndexOffset(),a+=o.getColumnIndexOffset(),this.getController("keyboardNavigation").setFocusedCellPosition(r,a),this.getController("focus").isAutoNavigateToFocusedRow())){var d=n.dataSource(),u=d&&d.operationTypes();!u||u.paging||n.isPagingByRendering()||(this.resizeCompleted.remove(this._scrollToFocusOnResize),this.resizeCompleted.add(this._scrollToFocusOnResize))}},_findRowElementForTabIndex:function(){var e=this.option("focusedRowKey"),t=this._dataController.getRowIndexByKey(e);return(0,o.Z)(this.getRowElement(t>=0?t:0))},scrollToRowElement:function(e){var t=this.getController("data").getRowIndexByKey(e),i=(0,o.Z)(this.getRow(t));return this.scrollToElementVertically(i)},scrollToElementVertically:function(e){var t=this.getScrollable();if(t&&e.length){var i=t.getScrollElementPosition(e,"vertical");return this.scrollTopPosition(i)}return(new ot.BH).resolve()},scrollTopPosition:function(e){var t=new ot.BH,i=this.getScrollable();if(i){var n=i.scrollTop(),o=()=>{i.off("scroll",o),t.resolve()};if(e!==n)return i.on("scroll",o),this._dataController.resetFilterApplying(),i.scrollTo({top:e}),t.promise()}return t.resolve()}}}}};function $U(e,t){var i=-1;return e.forEach((function(e,n){t(e)&&(i=n)})),i}zO.registerModule("focus",(0,a.l)(!0,{},ZU,{extenders:{controllers:{data:{changeRowExpand:function(e){return this.option("focusedRowEnabled")&&this.isRowExpanded(e)&&this._isFocusedRowInside(e)&&this.option("focusedRowKey",e),this.callBase.apply(this,arguments)},_isFocusedRowInside:function(e){var t=this.option("focusedRowKey"),i=this.getRowIndexByKey(t),n=i>=0&&this.getVisibleRows()[i],o=n&&n.node.parent;while(o){if(o.key===e)return!0;o=o.parent}return!1},getParentKey:function(e){var t=this._dataSource,i=this.getNodeByKey(e),n=new ot.BH;return i?n.resolve(i.parent?i.parent.key:void 0):t.load({filter:[t.getKeyExpr(),"=",e]}).done((function(e){var i=e[0];i?n.resolve(t.parentKeyOf(i)):n.reject()})).fail(n.reject),n.promise()},expandAscendants:function(e){var t=this,i=t._dataSource,n=new ot.BH;return t.getParentKey(e).done((function(e){i&&void 0!==e&&e!==t.option("rootValue")?(i._isNodesInitializing=!0,t.expandRow(e),i._isNodesInitializing=!1,t.expandAscendants(e).done(n.resolve).fail(n.reject)):n.resolve()})).fail(n.reject),n.promise()},getPageIndexByKey:function(e){var t=this,i=t._dataSource,n=new ot.BH;return t.expandAscendants(e).done((function(){i.load({parentIds:[]}).done((function(i){var o=$U(i,(function(i){return t.keyOf(i.data)===e})),r=-1;o>=0&&(r=Math.floor(o/t.pageSize())),n.resolve(r)})).fail(n.reject)})).fail(n.reject),n.promise()}}}}}));var WU,KU,zU=(0,s.Jj)(),jU="dxDraggable",UU=(0,R.V4)(Jt.BL,jU),GU=(0,R.V4)(Jt.pB,jU),qU=(0,R.V4)(Jt.ut,jU),YU=(0,R.V4)(Jt.IO,jU),XU=(0,R.V4)(Jt.Zu,jU),JU=(0,R.V4)(B.Z.down,jU),QU="clone",eG="content",tG=e=>({x:e.pageX-(0,o.Z)(zU).scrollLeft(),y:e.pageY-(0,o.Z)(zU).scrollTop()}),iG="dx-gesture-cover",nG="dx-overlay-wrapper",oG="dx-overlay-content";class rG{constructor(e,t){this._preventScroll=!0,this._component=t,"vertical"===e?(this._scrollValue="scrollTop",this._overFlowAttr="overflowY",this._sizeAttr="height",this._scrollSizeProp="scrollHeight",this._clientSizeProp="clientHeight",this._limitProps={start:"top",end:"bottom"}):(this._scrollValue="scrollLeft",this._overFlowAttr="overflowX",this._sizeAttr="width",this._scrollSizeProp="scrollWidth",this._clientSizeProp="clientWidth",this._limitProps={start:"left",end:"right"})}updateScrollable(e,t){var i=!1;e.some((e=>{var n=(0,o.Z)(e),r=n.hasClass(nG),a=n.hasClass(oG);return!(!r&&!a)||(i=this._trySetScrollable(e,t),i)})),i||(this._$scrollableAtPointer=null,this._scrollSpeed=0)}isScrolling(){return!!this._scrollSpeed}isScrollable(e){return("auto"===e.css(this._overFlowAttr)||e.hasClass("dx-scrollable-container"))&&e.prop(this._scrollSizeProp)>Math.ceil("width"===this._sizeAttr?(0,n.dz)(e):(0,n.Cr)(e))}_trySetScrollable(e,t){var i,n=(0,o.Z)(e),r=this._component.option("scrollSensitivity"),a=this.isScrollable(n);return a&&(i=this._calculateDistanceToBorders(n,t),r>i[this._limitProps.start]?this._preventScroll||(this._scrollSpeed=-this._calculateScrollSpeed(i[this._limitProps.start]),this._$scrollableAtPointer=n):r>i[this._limitProps.end]?this._preventScroll||(this._scrollSpeed=this._calculateScrollSpeed(i[this._limitProps.end]),this._$scrollableAtPointer=n):(a=!1,this._preventScroll=!1)),a}_calculateDistanceToBorders(e,t){var i,n=e.get(0);return n?(i=Pe(n),{left:t.x-i.left,top:t.y-i.top,right:i.right-t.x,bottom:i.bottom-t.y}):{}}_calculateScrollSpeed(e){var t=this._component,i=t.option("scrollSensitivity"),n=t.option("scrollSpeed");return Math.ceil(Math.pow((i-e)/i,2)*n)}scrollByStep(){if(this._$scrollableAtPointer&&this._scrollSpeed){if(this._$scrollableAtPointer.hasClass("dx-scrollable-container")){var e=this._$scrollableAtPointer.closest(".dx-scrollable"),t=e.data("dxScrollable")||e.data("dxScrollView");if(t){var i=t.scrollOffset()[this._limitProps.start]+this._scrollSpeed;t.scrollTo({[this._limitProps.start]:i})}}else{var n=this._$scrollableAtPointer[this._scrollValue]()+this._scrollSpeed;this._$scrollableAtPointer[this._scrollValue](n)}var o=this._component._dragMoveArgs;o&&this._component._dragMoveHandler(o)}}reset(){this._$scrollableAtPointer=null,this._scrollSpeed=0,this._preventScroll=!0}isOutsideScrollable(e,t){if(!e)return!1;var i=Pe(e.get(0)),n=i[this._limitProps.start],o=i[this._sizeAttr],r=tG(t),a="width"===this._sizeAttr?r.x:r.y;return a<n||a>n+o}}var aG=kh.inherit({ctor:function(e){this.callBase(),this._strategy=e},_step:function(){var e=this._strategy._horizontalScrollHelper,t=this._strategy._verticalScrollHelper;e&&e.scrollByStep(),t&&t.scrollByStep()}}),sG=S.Z.inherit({reset:v.ZT,dragMove:v.ZT,dragEnter:v.ZT,dragLeave:v.ZT,dragEnd:function(e){var t=this._getSourceDraggable();return t._fireRemoveEvent(e),(new ot.BH).resolve()},_fireRemoveEvent:v.ZT,_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{onDragStart:null,onDragMove:null,onDragEnd:null,onDragEnter:null,onDragLeave:null,onDrop:null,immediate:!0,dragDirection:"both",boundary:void 0,boundOffset:0,allowMoveByClick:!1,itemData:null,container:void 0,dragTemplate:void 0,contentTemplate:"content",handle:"",filter:"",clone:!1,autoScroll:!0,scrollSpeed:30,scrollSensitivity:60,group:void 0,data:void 0})},_setOptionsByReference:function(){this.callBase.apply(this,arguments),(0,a.l)(this._optionsByReference,{component:!0,group:!0,itemData:!0,data:!0})},_init:function(){this.callBase(),this._attachEventHandlers(),this._scrollAnimator=new aG(this),this._horizontalScrollHelper=new rG("horizontal",this),this._verticalScrollHelper=new rG("vertical",this)},_normalizeCursorOffset:function(e){return(0,l.Kn)(e)&&(e={h:e.x,v:e.y}),e=(0,v.Um)(e).map((e=>parseFloat(e))),{left:e[0],top:1===e.length?e[0]:e[1]}},_getNormalizedCursorOffset:function(e,t){return(0,l.mf)(e)&&(e=e.call(this,t)),this._normalizeCursorOffset(e)},_calculateElementOffset:function(e){var t,i,n=e.event,r=(0,o.Z)(e.itemElement),a=(0,o.Z)(e.dragElement),s=this._dragElementIsCloned(),l=this.option("cursorOffset"),d={left:0,top:0},u=this._initialLocate=he(a);return(s||e.initialOffset||l)&&(t=e.initialOffset||r.offset(),l&&(d=this._getNormalizedCursorOffset(l,e),isFinite(d.left)&&(t.left=n.pageX),isFinite(d.top)&&(t.top=n.pageY)),i=a.offset(),t.top-=i.top+(d.top||0)-u.top,t.left-=i.left+(d.left||0)-u.left),t},_initPosition:function(e){var t=(0,o.Z)(e.dragElement),i=this._calculateElementOffset(e);i&&this._move(i,t),this._startPosition=he(t)},_startAnimator:function(){this._scrollAnimator.inProgress()||this._scrollAnimator.start()},_stopAnimator:function(){this._scrollAnimator.stop()},_addWidgetPrefix:function(e){var t=this.NAME;return(0,sn.H0)(t)+(e?"-"+e:"")},_getItemsSelector:function(){return this.option("filter")||""},_$content:function(){var e=this.$element(),t=e.children(".dx-template-wrapper");return t.length?t:e},_attachEventHandlers:function(){if(!this.option("disabled")){var e=this._$content(),t=this._getItemsSelector(),i=this.option("allowMoveByClick"),n={direction:this.option("dragDirection"),immediate:this.option("immediate"),checkDropTarget:(e,t)=>{var i=this.option("group"),n=this._getSourceDraggable().option("group"),o=this._getScrollable(e);return!this._verticalScrollHelper.isOutsideScrollable(o,t)&&!this._horizontalScrollHelper.isOutsideScrollable(o,t)&&(n&&n===i)}};i&&(e=this._getArea(),re.Z.on(e,JU,n,this._pointerDownHandler.bind(this))),">"===t[0]&&(t=t.slice(1)),re.Z.on(e,UU,t,n,this._dragStartHandler.bind(this)),re.Z.on(e,GU,n,this._dragMoveHandler.bind(this)),re.Z.on(e,qU,n,this._dragEndHandler.bind(this)),re.Z.on(e,YU,n,this._dragEnterHandler.bind(this)),re.Z.on(e,XU,n,this._dragLeaveHandler.bind(this))}},_dragElementIsCloned:function(){return this._$dragElement&&this._$dragElement.hasClass(this._addWidgetPrefix(QU))},_getDragTemplateArgs:function(e,t){return{container:(0,se.u)(t),model:{itemData:this.option("itemData"),itemElement:(0,se.u)(e)}}},_createDragElement:function(e){var t=e,i=this.option("clone"),n=this._getContainer(),r=this.option("dragTemplate");return r?(r=this._getTemplate(r),t=(0,o.Z)("<div>").appendTo(n),r.render(this._getDragTemplateArgs(e,t))):i&&(t=(0,o.Z)("<div>").appendTo(n),e.clone().css({width:e.css("width"),height:e.css("height")}).appendTo(t)),t.toggleClass(this._addWidgetPrefix(QU),t.get(0)!==e.get(0)).toggleClass("dx-rtl",this.option("rtlEnabled"))},_resetDragElement:function(){this._dragElementIsCloned()?this._$dragElement.remove():this._toggleDraggingClass(!1),this._$dragElement=null},_resetSourceElement:function(){this._toggleDragSourceClass(!1),this._$sourceElement=null},_detachEventHandlers:function(){re.Z.off(this._$content(),"."+jU),re.Z.off(this._getArea(),"."+jU)},_move:function(e,t){ve(t||this._$dragElement,e)},_getDraggableElement:function(e){var t=this._getSourceElement();if(t)return t;var i=this.option("allowMoveByClick");if(i)return this.$element();var n=(0,o.Z)(e&&e.target),r=this._getItemsSelector();if(">"===r[0]){var a=this._$content().find(r);a.is(n)||(n=n.closest(a))}return n},_getSourceElement:function(){var e=this._getSourceDraggable();return e._$sourceElement},_pointerDownHandler:function(e){if(!(0,R.r1)(e)){var t={},i=this.$element(),o=this.option("dragDirection");"horizontal"!==o&&"both"!==o||(t.left=e.pageX-i.offset().left+he(i).left-(0,n.dz)(i)/2),"vertical"!==o&&"both"!==o||(t.top=e.pageY-i.offset().top+he(i).top-(0,n.Cr)(i)/2),this._move(t,i),this._getAction("onDragMove")(this._getEventArgs(e))}},_isValidElement:function(e,t){var i=this.option("handle"),n=(0,o.Z)(e.originalEvent&&e.originalEvent.target);return!(i&&!n.closest(i).length)&&(!!t.length&&!t.is(".dx-state-disabled, .dx-state-disabled *"))},_dragStartHandler:function(e){var t=this._getDraggableElement(e);if(this._isValidElement(e,t)){if(!this._$sourceElement){var i=this._getDragStartArgs(e,t);if(this._getAction("onDragStart")(i),i.cancel)e.cancel=!0;else{this.option("itemData",i.itemData),this._setSourceDraggable(),this._$sourceElement=t;var o=t.offset(),r=this._$dragElement=this._createDragElement(t);this._toggleDraggingClass(!0),this._toggleDragSourceClass(!0),this._setGestureCoverCursor(r.children());var s="fixed"===r.css("position");this._initPosition((0,a.l)({},i,{dragElement:r.get(0),initialOffset:s&&o})),this._getAction("onDraggableElementShown")((0,hn.Z)({},i,{dragElement:r}));var l=this._getArea(),d=this._getAreaOffset(l),u=this._getBoundOffset(),c=(0,n.Y_)(l),h=(0,n.zp)(l),p=(0,n.dz)(r),f=(0,n.Cr)(r),g=r.offset().left-d.left,m=r.offset().top-d.top;l.length&&(e.maxLeftOffset=g-u.left,e.maxRightOffset=c-g-p-u.right,e.maxTopOffset=m-u.top,e.maxBottomOffset=h-m-f-u.bottom),this.option("autoScroll")&&this._startAnimator()}}}else e.cancel=!0},_getAreaOffset:function(e){var t=e&&it.offset(e);return t||{left:0,top:0}},_toggleDraggingClass:function(e){this._$dragElement&&this._$dragElement.toggleClass(this._addWidgetPrefix("dragging"),e)},_toggleDragSourceClass:function(e,t){var i=t||this._$sourceElement;i&&i.toggleClass(this._addWidgetPrefix("source"),e)},_setGestureCoverCursor:function(e){(0,o.Z)(".".concat(iG)).css("cursor",e.css("cursor"))},_getBoundOffset:function(){var e=this.option("boundOffset");return(0,l.mf)(e)&&(e=e.call(this)),(0,Ic.$b)(e)},_getArea:function(){var e=this.option("boundary");return(0,l.mf)(e)&&(e=e.call(this)),(0,o.Z)(e)},_getContainer:function(){var e=this.option("container");return void 0===e&&(e=(0,Yt.S3)()),(0,o.Z)(e)},_dragMoveHandler:function(e,t){if(this._dragMoveArgs=e,this._$dragElement){var i=e.offset,n=this._startPosition;this._move({left:n.left+i.x,top:n.top+i.y}),t||this._updateScrollable(e);var o=this._getEventArgs(e);if(this._getAction("onDragMove")(o),!0!==o.cancel){var r=this._getTargetDraggable();r.dragMove(e,t)}}else e.cancel=!0},_updateScrollable:function(e){if(this.option("autoScroll")){var t=tG(e),i=ke["default"].elementsFromPoint(t.x,t.y,this.$element().get(0));this._verticalScrollHelper.updateScrollable(i,t),this._horizontalScrollHelper.updateScrollable(i,t)}},_getScrollable:function(e){var t;return e.parents().toArray().some((e=>{var i=(0,o.Z)(e);if(this._horizontalScrollHelper.isScrollable(i)||this._verticalScrollHelper.isScrollable(i))return t=i,!0})),t},_defaultActionArgs:function(){var e=this.callBase.apply(this,arguments),t=this.option("component");return t&&(e.component=t,e.element=t.element()),e},_getEventArgs:function(e){var t=this._getSourceDraggable(),i=this._getTargetDraggable();return{event:e,itemData:t.option("itemData"),itemElement:(0,se.u)(t._$sourceElement),fromComponent:t.option("component")||t,toComponent:i.option("component")||i,fromData:t.option("data"),toData:i.option("data")}},_getDragStartArgs:function(e,t){var i=this._getEventArgs(e);return{event:i.event,itemData:i.itemData,itemElement:t,fromData:i.fromData}},_revertItemToInitialPosition:function(){!this._dragElementIsCloned()&&this._move(this._initialLocate,this._$sourceElement)},_dragEndHandler:function(e){var t=new ot.BH,i=this._getEventArgs(e),n=this._getEventArgs(e),o=this._getTargetDraggable(),r=!0;try{this._getAction("onDragEnd")(i)}finally{(0,ot.gx)((0,ot.p4)(i.cancel)).done((e=>{if(!e&&(o!==this&&o._getAction("onDrop")(n),!n.cancel))return r=!1,void(0,ot.gx)((0,ot.p4)(o.dragEnd(i))).always(t.resolve);t.resolve()})).fail(t.resolve),t.done((()=>{r&&this._revertItemToInitialPosition(),this.reset(),o.reset(),this._stopAnimator(),this._horizontalScrollHelper.reset(),this._verticalScrollHelper.reset(),this._resetDragElement(),this._resetSourceElement(),this._resetTargetDraggable(),this._resetSourceDraggable()}))}},_isTargetOverAnotherDraggable:function(e){var t=this._getSourceDraggable();if(this===t)return!1;var i=t._$dragElement,n=t.$element(),r=this.$element(),a=tG(e),s=ke["default"].elementsFromPoint(a.x,a.y,this.element()),l=s.filter((e=>{var t=(0,o.Z)(e);if(t.hasClass(this._addWidgetPrefix()))return!t.closest(i).length}))[0],d=this._getSourceElement(),u=l===n.get(0),c=(0,o.Z)(l).closest(d).length;return!l||l===r.get(0)&&!u&&!c},_dragEnterHandler:function(e){this._fireDragEnterEvent(e),this._isTargetOverAnotherDraggable(e)&&this._setTargetDraggable();var t=this._getSourceDraggable();t.dragEnter(e)},_dragLeaveHandler:function(e){this._fireDragLeaveEvent(e),this._resetTargetDraggable(),this!==this._getSourceDraggable()&&this.reset();var t=this._getSourceDraggable();t.dragLeave(e)},_getAction:function(e){return this["_"+e+"Action"]||this._createActionByOption(e)},_getAnonymousTemplateName:function(){return eG},_initTemplates:function(){this.option("contentTemplate")&&(this._templateManager.addDefaultTemplates({content:new Gt.s}),this.callBase.apply(this,arguments))},_render:function(){this.callBase(),this.$element().addClass(this._addWidgetPrefix());var e=this._templateManager.anonymousTemplateName===this.option("contentTemplate"),t=this._getTemplateByOption("contentTemplate");t&&(0,o.Z)(t.render({container:this.element(),transclude:e}))},_optionChanged:function(e){var t=e.name;switch(t){case"onDragStart":case"onDragMove":case"onDragEnd":case"onDrop":case"onDragEnter":case"onDragLeave":case"onDraggableElementShown":this["_"+t+"Action"]=this._createActionByOption(t);break;case"dragTemplate":case"contentTemplate":case"container":case"clone":break;case"allowMoveByClick":case"dragDirection":case"disabled":case"boundary":case"filter":case"immediate":this._resetDragElement(),this._detachEventHandlers(),this._attachEventHandlers();break;case"autoScroll":this._verticalScrollHelper.reset(),this._horizontalScrollHelper.reset();break;case"scrollSensitivity":case"scrollSpeed":case"boundOffset":case"handle":case"group":case"data":case"itemData":break;default:this.callBase(e)}},_getTargetDraggable:function(){return WU||this},_getSourceDraggable:function(){return KU||this},_setTargetDraggable:function(){var e=this.option("group"),t=this._getSourceDraggable();e&&e===t.option("group")&&(WU=this)},_setSourceDraggable:function(){KU=this},_resetSourceDraggable:function(){KU=null},_resetTargetDraggable:function(){WU=null},_dispose:function(){this.callBase(),this._detachEventHandlers(),this._resetDragElement(),this._resetTargetDraggable(),this._resetSourceDraggable(),this._$sourceElement=null,this._stopAnimator()},_fireDragEnterEvent:function(e){var t=this._getEventArgs(e);this._getAction("onDragEnter")(t)},_fireDragLeaveEvent:function(e){var t=this._getEventArgs(e);this._getAction("onDragLeave")(t)}});(0,C.Z)(jU,sG);var lG=sG,dG=(0,s.Jj)(),uG="dxSortable",cG="placeholder",hG="clone",pG=e=>(0,o.Z)(e).is(":visible"),fG=(e,t)=>{var i,n;if(e){var o=(null===(i=t.to)||void 0===i?void 0:i.left)||0,r=(null===(n=t.to)||void 0===n?void 0:n.top)||0;e.style.transform="translate(".concat(o,"px,").concat(r,"px)"),e.style.transition=Ut.off?"":"transform ".concat(t.duration,"ms ").concat(t.easing)}},gG=e=>{e&&(e.style.transform="",e.style.transition="")};function mG(e){var t=e.offset(),i=e[0].style,o=parseFloat(i.paddingLeft)||0,r=parseFloat(i.paddingRight)||0,a=parseFloat(i.paddingTop)||0,s=e[0].clientWidth-(o+r),l=(0,n.Cr)(e),d=t.left+o,u=t.top+a;return{left:d,right:d+s,top:u,bottom:u+l}}var _G=lG.inherit({_init:function(){this.callBase(),this._sourceScrollHandler=this._handleSourceScroll.bind(this),this._sourceScrollableInfo=null},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{clone:!0,filter:"> *",itemOrientation:"vertical",dropFeedbackMode:"push",allowDropInsideItem:!1,allowReordering:!0,moveItemOnDrop:!1,onDragChange:null,onAdd:null,onRemove:null,onReorder:null,onPlaceholderPrepared:null,animation:{type:"slide",duration:300,easing:"ease"},fromIndex:null,toIndex:null,dropInsideItem:!1,itemPoints:null,fromIndexOffset:0,offset:0,autoUpdate:!1,draggableElementSize:0})},reset:function(){this.option({dropInsideItem:!1,toIndex:null,fromIndex:null,itemPoints:null,fromIndexOffset:0,draggableElementSize:0}),this._$placeholderElement&&this._$placeholderElement.remove(),this._$placeholderElement=null,!this._isIndicateMode()&&this._$modifiedItem&&(this._$modifiedItem.css("marginBottom",this._modifiedItemMargin),this._$modifiedItem=null)},_getPrevVisibleItem:function(e,t){return e.slice(0,t).reverse().filter(pG)[0]},_dragStartHandler:function(e){if(this.callBase.apply(this,arguments),!0!==e.cancel){var t=this._getSourceElement();this._updateItemPoints(),this._subscribeToSourceScroll(e),this.option("fromIndex",this._getElementIndex(t)),this.option("fromIndexOffset",this.option("offset"))}},_subscribeToSourceScroll:function(e){var t=this._getScrollable((0,o.Z)(e.target));t&&(this._sourceScrollableInfo={element:t,scrollLeft:t.scrollLeft(),scrollTop:t.scrollTop()},re.Z.off(t,"scroll",this._sourceScrollHandler),re.Z.on(t,"scroll",this._sourceScrollHandler))},_unsubscribeFromSourceScroll:function(){this._sourceScrollableInfo&&(re.Z.off(this._sourceScrollableInfo.element,"scroll",this._sourceScrollHandler),this._sourceScrollableInfo=null)},_handleSourceScroll:function(e){var t=this._sourceScrollableInfo;t&&["scrollLeft","scrollTop"].forEach((i=>{if(e.target[i]!==t[i]){var n=e.target[i]-t[i];this._correctItemPoints(n),this._movePlaceholder(),t[i]=e.target[i]}}))},_dragEnterHandler:function(e){if(this.callBase.apply(this,arguments),this!==this._getSourceDraggable()&&(this._subscribeToSourceScroll(e),this._updateItemPoints(),this.option("fromIndex",-1),!this._isIndicateMode())){var t=this.option("itemPoints"),i=t[t.length-1];if(i){var r=this.$element(),a=this._getSourceElement(),s=this._isVerticalOrientation(),l=s?(0,n.zp)(a,!0):(0,n.Y_)(a,!0),d=r.get(0)[s?"scrollHeight":"scrollWidth"],u=r.get(0)[s?"scrollTop":"scrollLeft"],c=s?"top":"left",h=i[c],p=r.offset()[c],f=p+d-u-h;if(f<l&&s){var g=this._getItems(),m=(0,o.Z)(this._getPrevVisibleItem(g));this._$modifiedItem=m,this._modifiedItemMargin=m.get(0).style.marginBottom,m.css("marginBottom",l-f);var _=m.closest(".dx-sortable"),v=_.data("dxScrollable")||_.data("dxScrollView");v&&v.update()}}}},_dragLeaveHandler:function(){this.callBase.apply(this,arguments),this!==this._getSourceDraggable()&&this._unsubscribeFromSourceScroll()},dragEnter:function(){this!==this._getTargetDraggable()&&this.option("toIndex",-1)},dragLeave:function(){this!==this._getTargetDraggable()&&this.option("toIndex",this.option("fromIndex"))},_allowDrop:function(e){var t=this._getTargetDraggable(),i=t.$element(),n=this._getScrollable(i);if(n){var{left:o,right:r,top:a,bottom:s}=mG(n),l=this.option("toIndex"),d=this.option("itemPoints"),u=null===d||void 0===d?void 0:d.filter((e=>e.index===l))[0];if(u&&void 0!==u.top){var c=this._isVerticalOrientation();return c?a<=Math.ceil(u.top)&&Math.floor(u.top)<=s:o<=Math.ceil(u.left)&&Math.floor(u.left)<=r}}return!0},dragEnd:function(e){this._unsubscribeFromSourceScroll();var t,i,n=this._getSourceElement(),o=this._getSourceDraggable(),r=o.NAME!==this.NAME,a=this.option("toIndex"),s=e.event,l=this._allowDrop(s);if(null!==a&&a>=0&&l&&(o!==this&&(t=this._fireAddEvent(s),t||(i=this._fireRemoveEvent(s))),r&&ye(n),this.option("moveItemOnDrop")&&!t&&this._moveItem(n,a,i),o===this))return this._fireReorderEvent(s);return(new ot.BH).resolve()},dragMove:function(e){var t=this.option("itemPoints");if(t){for(var i,n=this._isVerticalOrientation(),o=n?"top":"left",r=n?e.pageY:e.pageX,a=this.option("rtlEnabled"),s=t.length-1;s>=0;s--){var l=t[s+1]&&(t[s][o]+t[s+1][o])/2;if(!(!n&&a?r>l:l>r)&&void 0!==l)break;i=t[s]}i&&(this._updatePlaceholderPosition(e,i),this._verticalScrollHelper.isScrolling()&&this._isIndicateMode()&&this._movePlaceholder())}},_isIndicateMode:function(){return"indicate"===this.option("dropFeedbackMode")||this.option("allowDropInsideItem")},_createPlaceholder:function(){var e;return this._isIndicateMode()&&(e=(0,o.Z)("<div>").addClass(this._addWidgetPrefix(cG)).insertBefore(this._getSourceDraggable()._$dragElement)),this._$placeholderElement=e,e},_getItems:function(){var e=this._getItemsSelector();return this._$content().find(e).not("."+this._addWidgetPrefix(cG)).not("."+this._addWidgetPrefix(hG)).toArray()},_allowReordering:function(){var e=this._getSourceDraggable(),t=this._getTargetDraggable();return e!==t||this.option("allowReordering")},_isValidPoint:function(e,t,i){var n=this.option("allowDropInsideItem"),o=i||this._allowReordering();return!!(o||0===e&&n)&&(!this._isIndicateMode()||(-1===t||e!==t&&(i||e!==t+1)))},_getItemPoints:function(){var e,t,i,r=[],s=this.option("rtlEnabled"),l=this._isVerticalOrientation(),d=this._getItems(),u=d.filter(pG),c=u.length,h=this._getDraggableElement(),p=u.indexOf(h.get(0));if(c){for(var f=0;f<=c;f++){var g=!l&&s^f===c,m=l&&f===c;f<c&&(e=(0,o.Z)(u[f]),t=e.offset(),i=(0,n.Y_)(e)),r.push({dropInsideItem:!1,left:t.left+(g?i:0),top:t.top+(m?r[f-1].height:0),index:f===c?d.length:d.indexOf(e.get(0)),$item:e,width:(0,n.Y_)(e),height:(0,n.zp)(e),isValid:this._isValidPoint(f,p)})}if(this.option("allowDropInsideItem")){var _=r;r=[];for(var v=0;v<_.length;v++)r.push(_[v]),_[v+1]&&r.push((0,a.l)({},_[v],{dropInsideItem:!0,top:Math.floor((_[v].top+_[v+1].top)/2),left:Math.floor((_[v].left+_[v+1].left)/2),isValid:this._isValidPoint(v,p,!0)}))}}else r.push({dropInsideItem:!1,index:0,isValid:!0});return r},_updateItemPoints:function(e){(e||this.option("autoUpdate")||!this.option("itemPoints"))&&this.option("itemPoints",this._getItemPoints())},_correctItemPoints:function(e){var t=this.option("itemPoints");if(e&&t&&!this.option("autoUpdate")){var i=this._isVerticalOrientation(),n=i?"top":"left";t.forEach((t=>{t[n]-=e}))}},_getElementIndex:function(e){return this._getItems().indexOf(e.get(0))},_getDragTemplateArgs:function(e){var t=this.callBase.apply(this,arguments);return t.model.fromIndex=this._getElementIndex(e),t},_togglePlaceholder:function(e){this._$placeholderElement&&this._$placeholderElement.toggle(e)},_isVerticalOrientation:function(){return"vertical"===this.option("itemOrientation")},_normalizeToIndex:function(e,t){var i=this._getSourceDraggable()!==this._getTargetDraggable(),n=this.option("fromIndex");return null===e?n:Math.max(i||n>=e||t?e:e-1,0)},_updatePlaceholderPosition:function(e,t){var i=this._getSourceDraggable(),n=this._normalizeToIndex(t.index,t.dropInsideItem),o=(0,a.l)(this._getEventArgs(e),{toIndex:n,dropInsideItem:t.dropInsideItem});t.isValid&&this._getAction("onDragChange")(o),!o.cancel&&t.isValid?(this.option({dropInsideItem:t.dropInsideItem,toIndex:t.index}),this._getAction("onPlaceholderPrepared")((0,a.l)(this._getEventArgs(e),{placeholderElement:(0,se.u)(this._$placeholderElement),dragElement:(0,se.u)(i._$dragElement)})),this._updateItemPoints()):t.isValid||this.option({dropInsideItem:!1,toIndex:null})},_makeWidthCorrection:function(e,t){if(this._$scrollable=this._getScrollable(e),this._$scrollable){var i=(0,n.dz)(this._$scrollable),o=this._$scrollable.offset().left-e.offset().left,r=(0,n.Y_)(e)-o-i;o>0&&(t-=o),r>0&&(t-=r)}return t},_updatePlaceholderSizes:function(e,t){var i=this.option("dropInsideItem"),r=(0,o.Z)(t),a=this._isVerticalOrientation(),s="",l="";e.toggleClass(this._addWidgetPrefix("placeholder-inside"),i),(a||i)&&(s=(0,n.Y_)(r)),a&&!i||(l=(0,n.zp)(r)),s=this._makeWidthCorrection(r,s),e.css({width:s,height:l})},_moveItem:function(e,t,i){var n,o=this._getItems(),r=o[t],a=this._getSourceDraggable();i&&(e=e.clone(),a._toggleDragSourceClass(!1,e)),r||(n=o[t-1]),this._moveItemCore(e,r,n)},_moveItemCore:function(e,t,i){t||i?i?e.insertAfter((0,o.Z)(i)):e.insertBefore((0,o.Z)(t)):e.appendTo(this.$element())},_getDragStartArgs:function(e,t){return(0,a.l)(this.callBase.apply(this,arguments),{fromIndex:this._getElementIndex(t)})},_getEventArgs:function(e){var t=this._getSourceDraggable(),i=this._getTargetDraggable(),n=i.option("dropInsideItem");return(0,a.l)(this.callBase.apply(this,arguments),{fromIndex:t.option("fromIndex"),toIndex:this._normalizeToIndex(i.option("toIndex"),n),dropInsideItem:n})},_optionChanged:function(e){var t=e.name;switch(t){case"onDragChange":case"onPlaceholderPrepared":case"onAdd":case"onRemove":case"onReorder":this["_"+t+"Action"]=this._createActionByOption(t);break;case"itemOrientation":case"allowDropInsideItem":case"moveItemOnDrop":case"dropFeedbackMode":case"itemPoints":case"animation":case"allowReordering":case"fromIndexOffset":case"offset":case"draggableElementSize":case"autoUpdate":break;case"fromIndex":[!1,!0].forEach((t=>{var i=t?e.value:e.previousValue;if(null!==i){var n=(0,o.Z)(this._getItems()[i]);this._toggleDragSourceClass(t,n)}}));break;case"dropInsideItem":this._optionChangedDropInsideItem(e);break;case"toIndex":this._optionChangedToIndex(e);break;default:this.callBase(e)}},_optionChangedDropInsideItem:function(){this._isIndicateMode()&&this._$placeholderElement&&this._movePlaceholder()},_isPositionVisible:function(e){var t,i=this.$element();if("hidden"!==i.css("overflow")?t=i.get(0):i.parents().each((function(){if("visible"!==(0,o.Z)(this).css("overflow"))return t=this,!1})),t){var n=Pe(t),r=this._isVerticalOrientation(),a=r?"top":"left",s=r?"bottom":"right",l=r?dG.pageYOffset:dG.pageXOffset;if(e[a]<n[a]+l||e[a]>n[s]+l)return!1}return!0},_optionChangedToIndex:function(e){var t=e.value;if(this._isIndicateMode()){var i=null!==t&&t>=0;this._togglePlaceholder(i),i&&this._movePlaceholder()}else this._moveItems(e.previousValue,e.value,e.fullUpdate)},update:function(){if(null!==this.option("fromIndex")||null!==this.option("toIndex")){this._updateItemPoints(!0),this._updateDragSourceClass();var e=this.option("toIndex");this._optionChangedToIndex({value:e,fullUpdate:!0})}},_updateDragSourceClass:function(){var e=this._getActualFromIndex(),t=(0,o.Z)(this._getItems()[e]);t.length&&(this._$sourceElement=t,this._toggleDragSourceClass(!0,t))},_makeLeftCorrection:function(e){var t=this._$scrollable;if(t&&this._isVerticalOrientation()){var i=t.offset().left-e;i>0&&(e+=i)}return e},_movePlaceholder:function(){var e=this._$placeholderElement||this._createPlaceholder();if(e){var t=this._getItems(),i=this.option("toIndex"),r=this._isVerticalOrientation(),a=this.option("rtlEnabled"),s=this.option("dropInsideItem"),l=null,d=t[i];if(d){var u=(0,o.Z)(d);l=u.offset(),r||!a||s||(l.left+=(0,n.Y_)(u,!0))}else{var c=d=this._getPrevVisibleItem(t,i);c&&(l=(0,o.Z)(c).offset(),r?l.top+=(0,n.zp)(c,!0):a||(l.left+=(0,n.Y_)(c,!0)))}this._updatePlaceholderSizes(e,d),l&&!this._isPositionVisible(l)&&(l=null),l&&(l.left=this._makeLeftCorrection(l.left),this._move(l,e)),e.toggle(!!l)}},_getPositions:function(e,t,i,n){for(var o=[],r=0;r<e.length;r++){var a=0;null!==n&&null!==i?(-1===i?r>=n&&(a=t):-1===n?r>i&&(a=-t):i<n?r>i&&r<n&&(a=-t):i>n&&r>=n&&r<i&&(a=t),o.push(a)):o.push(a)}return o},_getDraggableElementSize:function(e){var t=this._getDraggableElement(),i=this.option("draggableElementSize");return i||(i=e?((0,n.zp)(t)+(0,n.zp)(t,!0))/2:((0,n.Y_)(t)+(0,n.Y_)(t,!0))/2,this.option("autoUpdate")||this.option("draggableElementSize",i)),i},_getActualFromIndex:function(){var{fromIndex:e,fromIndexOffset:t,offset:i}=this.option();return null==e?null:e+t-i},_moveItems:function(e,t,i){for(var n=this._getActualFromIndex(),o=this._isVerticalOrientation(),r=o?"top":"left",s=this._getDraggableElementSize(o),l=this._getItems(),d=this._getPositions(l,s,n,e),u=this._getPositions(l,s,n,t),c=this.option("animation"),h=this.option("rtlEnabled"),p=0;p<l.length;p++){var f=l[p],g=d[p],m=u[p];null===t||null===n?gG(f):(g!==m||i&&m)&&fG(f,(0,a.l)({},c,{to:{[r]:!o&&h?-m:m}}))}},_toggleDragSourceClass:function(e,t){var i=t||this._$sourceElement;this.callBase.apply(this,arguments),this._isIndicateMode()||i&&i.toggleClass(this._addWidgetPrefix("source-hidden"),e)},_dispose:function(){this.reset(),this.callBase()},_fireAddEvent:function(e){var t=this._getEventArgs(e);return this._getAction("onAdd")(t),t.cancel},_fireRemoveEvent:function(e){var t=this._getSourceDraggable(),i=this._getEventArgs(e);return t._getAction("onRemove")(i),i.cancel},_fireReorderEvent:function(e){var t=this._getEventArgs(e);return this._getAction("onReorder")(t),t.promise||(new ot.BH).resolve()}});(0,C.Z)(uG,_G);var vG=_G,yG="dx-command-drag",CG="dx-cell-focus-disabled",bG="drag-icon",xG="rowsview",wG="dx-sortable-without-handle",TG={init:function(){this.callBase.apply(this,arguments),this._updateHandleColumn()},_allowReordering:function(){var e=this.option("rowDragging");return!(!e||!(e.allowReordering||e.allowDropInsideItem||e.group))},_updateHandleColumn:function(){var e=this.option("rowDragging"),t=this._allowReordering(),i=this._columnsController,n=t&&e.showDragIcons;i&&i.addCommandColumn({type:"drag",command:"drag",visibleIndex:-2,alignment:"center",cssClass:yG,width:"auto",cellTemplate:this._getHandleTemplate(),visible:n}),i.columnOption("type:drag","visible",n)},_renderContent:function(){var e=this.option("rowDragging"),t=this._allowReordering(),i=this.callBase.apply(this,arguments),n=this._isFixedTableRendering,r="_sortable",s="_sortableFixed",l=n?s:r,d=n?r:s,u=e=>{var t;null===(t=this[s])||void 0===t||t.$element().css("pointerEvents",e?"auto":"")},c=".dx-row:not(.dx-freespace-row):not(.dx-virtual-row):not(.dx-header-row):not(.dx-footer-row)",h=this.option("dataRowTemplate")?"> table > tbody".concat(c):"> table > tbody > ".concat(c);return(t||this[l])&&i.length&&(this[l]=this._createComponent(i,vG,(0,a.l)({component:this.component,contentTemplate:null,filter:h,cursorOffset:e=>{var t=e.event,i=(0,o.Z)(this.element()).offset();return{x:t.pageX-i.left}},onDraggableElementShown:t=>{if(!e.dragTemplate){var i=(0,o.Z)(t.dragElement),n=i.children(".dx-widget").data(this.component.NAME);this._synchronizeScrollLeftPosition(n)}},dragTemplate:this._getDraggableRowTemplate(),handle:e.showDragIcons&&".".concat(yG),dropFeedbackMode:"indicate"},e,{onDragStart:i=>{var n,o;null===(n=this.getController("keyboardNavigation"))||void 0===n||n._resetFocusedCell();var r=i.component.getVisibleRows()[i.fromIndex];i.itemData=r&&r.data;var a=r&&"data"===r.rowType;i.cancel=!t||!a,null===(o=e.onDragStart)||void 0===o||o.call(e,i)},onDragEnter:()=>{u(!0)},onDragLeave:()=>{u(!1)},onDragEnd:t=>{var i;u(!1),null===(i=e.onDragEnd)||void 0===i||i.call(e,t)},onAdd:t=>{var i;u(!1),null===(i=e.onAdd)||void 0===i||i.call(e,t)},dropFeedbackMode:e.dropFeedbackMode,onOptionChanged:e=>{var t=this[s];t&&("fromIndex"!==e.name&&"toIndex"!==e.name||this[d].option(e.name,e.value))}})),i.toggleClass("dx-scrollable-container",n),i.toggleClass(wG,t&&!e.showDragIcons)),i},_renderCore(e){this.callBase.apply(this,arguments),e&&"update"===e.changeType&&e.repaintChangesOnly&&FD.isVirtualRowRendering(this)&&(0,v.Su)((()=>{this._updateSortable()}))},_updateSortable(){var e=this._dataController.getRowIndexOffset();[this._sortable,this._sortableFixed].forEach((t=>{null===t||void 0===t||t.option("offset",e),null===t||void 0===t||t.update()}))},_resizeCore:function(){this.callBase.apply(this,arguments),this._updateSortable()},_getDraggableGridOptions:function(e){var t=this.option(),i=this.getColumns(),n=(0,o.Z)(this.getRowElement(e.rowIndex));return{dataSource:[{id:1,parentId:0}],showBorders:!0,showColumnHeaders:!1,scrolling:{useNative:!1,showScrollbar:"never"},pager:{visible:!1},loadingTimeout:null,columnFixing:t.columnFixing,columnAutoWidth:t.columnAutoWidth,showColumnLines:t.showColumnLines,columns:i.map((e=>({width:e.width||e.visibleWidth,fixed:e.fixed,fixedPosition:e.fixedPosition}))),onRowPrepared:e=>{var t=e.component.getView("rowsView");(0,o.Z)(e.rowElement).replaceWith(n.eq(t._isFixedTableRendering?1:0).clone())}}},_synchronizeScrollLeftPosition:function(e){var t=null===e||void 0===e?void 0:e.getScrollable();null===t||void 0===t||t.scrollTo({x:this._scrollLeft})},_getDraggableRowTemplate:function(){return e=>{var t=this.component.$element(),i=(0,o.Z)("<div>");(0,n.cl)(i,(0,n.dz)(t));var r=this._dataController.items(),a=r&&r[e.fromIndex],s=this._getDraggableGridOptions(a);return this._createComponent(i,this.component.NAME,s),i.find(".dx-gridbase-container").children(":not(.".concat(this.addWidgetPrefix(xG),")")).hide(),i}},_getHandleTemplate:function(){return(e,t)=>{if("data"===t.rowType)return(0,o.Z)(e).addClass(CG),(0,o.Z)("<span>").addClass(this.addWidgetPrefix(bG));FD.setEmptyText((0,o.Z)(e))}},optionChanged:function(e){"rowDragging"===e.name&&(this._updateHandleColumn(),this._invalidate(!0,!0),e.handled=!0),this.callBase.apply(this,arguments)}},SG={defaultOptions:function(){return{rowDragging:{showDragIcons:!0,dropFeedbackMode:"indicate",allowReordering:!1,allowDropInsideItem:!1}}},extenders:{views:{rowsView:TG}}};zO.registerModule("rowDragging",SG);var IG=QM,EG=IG,DG="tasks",kG="dx-gantt-collapsable-row",OG=34;class AG{constructor(e){this._gantt=e,this._$treeList=this._gantt._$treeList}getTreeList(){var{keyExpr:e,parentIdExpr:t}=this._gantt.option(DG);return this._treeList=this._gantt._createComponent(this._$treeList,EG,{dataSource:this.createDataSource(this._gantt._tasksRaw,e),keyExpr:e,filterSyncEnabled:!0,parentIdExpr:t,columns:this.getColumns(),columnResizingMode:"nextColumn",height:this._getHeight(),width:this._gantt.option("taskListWidth"),selection:{mode:on.getSelectionMode(this._gantt.option("allowSelection"))},selectedRowKeys:on.getArrayFromOneElement(this._gantt.option("selectedRowKey")),sorting:this._gantt.option("sorting"),filterRow:this._gantt.option("filterRow"),headerFilter:this._gantt.option("headerFilter"),scrolling:{showScrollbar:"onHover",mode:"virtual"},allowColumnResizing:!0,autoExpandAll:!0,showRowLines:this._gantt.option("showRowLines"),rootValue:this._gantt.option("rootValue"),onContentReady:e=>{this._onContentReady(e)},onSelectionChanged:e=>{this._onSelectionChanged(e)},onRowCollapsed:e=>{this._onRowCollapsed(e)},onRowExpanded:e=>{this._onRowExpanded(e)},onRowPrepared:e=>{this._onRowPrepared(e)},onContextMenuPreparing:e=>{this._onContextMenuPreparing(e)},onRowClick:e=>{this.onRowClick(e)},onRowDblClick:e=>{this.onRowDblClick(e)},onNodesInitialized:e=>{this._onNodesInitialized(e)}}),this._treeList}onAfterTreeListCreate(){this._postponedGanttInitRequired&&(this._initGanttOnContentReady({component:this._treeList}),delete this._postponedGanttInitRequired)}_onContentReady(e){var t=!!this._treeList;t?this._initGanttOnContentReady(e):this._postponedGanttInitRequired=!0,this._gantt._onTreeListContentReady(e)}_initGanttOnContentReady(e){e.component.getDataSource()&&(this._gantt._initGanttView(),this._initScrollSync(e.component)),this._gantt._sortAndFilter(),this._gantt._sizeHelper.updateGanttRowHeights()}_onSelectionChanged(e){var t=e.currentSelectedRowKeys[0];this._gantt._setGanttViewOption("selectedRowKey",t),this._gantt._setOptionWithoutOptionChange("selectedRowKey",t),this._gantt._actionsManager.raiseSelectionChangedAction(t)}_onRowCollapsed(e){this._gantt._onTreeListRowExpandChanged(e,!1)}_onRowExpanded(e){this._gantt._onTreeListRowExpandChanged(e,!0)}_onRowPrepared(e){"data"===e.rowType&&e.node.children.length>0&&(0,o.Z)(e.rowElement).addClass(kG)}_onContextMenuPreparing(e){var t,i;if("header"!==e.target){"data"===(null===(t=e.row)||void 0===t?void 0:t.rowType)&&this.setOption("selectedRowKeys",[e.row.data[this._gantt.option("tasks.keyExpr")]]),e.items=[];var n={cancel:!1,event:e.event,type:"task",key:null===(i=e.row)||void 0===i?void 0:i.key,position:{x:e.event.pageX,y:e.event.pageY}};this._gantt._showPopupMenu(n)}}_getHeight(){return(0,n.Cr)(this._$treeList)?(0,n.Cr)(this._$treeList):(this._gantt._hasHeight=(0,l.$K)(this._gantt.option("height"))&&""!==this._gantt.option("height"),this._gantt._hasHeight?"100%":"")}_initScrollSync(e){var t=e.getScrollable();t&&(t.off("scroll"),t.on("scroll",(e=>{this._onScroll(e)})))}_onScroll(e){var t=this._gantt._ganttView.getTaskAreaContainer();t.scrollTop!==e.component.scrollTop()&&(t.scrollTop=e.component.scrollTop())}_correctRowsViewRowHeight(e){var t=this._treeList._views&&this._treeList._views.rowsView;(null===t||void 0===t?void 0:t._rowHeight)!==e&&(t._rowHeight=e)}_skipUpdateTreeListDataSource(){return this._gantt.option("validation.autoUpdateParentTasks")}selectRows(e){this.setOption("selectedRowKeys",e)}scrollBy(e){var t=this._treeList.getScrollable();if(t){var i=e-t.scrollTop();0!==i&&t.scrollBy({left:0,top:i})}}updateDataSource(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this._skipUpdateTreeListDataSource()||t)this.setDataSource(e);else if(i){var n=this._treeList.option("dataSource");this._gantt._onParentTasksRecalculated(n)}}setDataSource(e){this.setOption("dataSource",this.createDataSource(e))}createDataSource(e,t){return e&&new cu.o({store:new xw.Z({data:e,key:t||this.getOption("keyExpr")})})}onRowClick(e){this._gantt._actionsManager.raiseTaskClickAction(e.key,e.event)}onRowDblClick(e){this._gantt._actionsManager.raiseTaskDblClickAction(e.key,e.event)&&this._gantt._ganttView._ganttViewCore.showTaskEditDialog()}saveExpandedKeys(){var e=this.getOption("expandedRowKeys");(null===e||void 0===e?void 0:e.length)>0&&(this._savedExpandedKeys=e)}_onNodesInitialized(e){var t,i=null===(t=this._savedExpandedKeys)||void 0===t?void 0:t.filter((e=>!!this._treeList.getNodeByKey(e)));(null===i||void 0===i?void 0:i.length)>0&&this.setOption("expandedRowKeys",this._savedExpandedKeys),delete this._savedExpandedKeys}getOffsetHeight(){return this._gantt._treeList._$element.get(0).offsetHeight}getRowHeight(){var e=this._treeList._$element.find(".dx-data-row"),t=e.length?Pe(e.last().get(0)).height:OG;return t||(t=OG),this._correctRowsViewRowHeight(t),t}getHeaderHeight(){return Pe(this._treeList._$element.find(".dx-treelist-headers").get(0)).height}getColumns(){var e=this._gantt.option("columns");if(e)for(var t=0;t<e.length;t++){var i=e[t],n=i.dataField===this._gantt.option("".concat(DG,".keyExpr"))||i.dataField===this._gantt.option("".concat(DG,".parentIdExpr"));n&&!i.dataType&&(i.dataType="object")}return e}getSievedItems(){var e=this._treeList.getRootNode();if(e){var t=[];on.convertTreeToList(e,t);var i=on.compileGettersByOption(this._gantt.option(DG)),n=this._gantt._validateSourceData(DG,t),o=n.map(on.prepareMapHandler(i));return o}}setOption(e,t){this._treeList&&this._treeList.option(e,t)}getOption(e){return this._treeList.option(e)}onTaskInserted(e,t){if((0,l.$K)(t)){var i=this.getOption("expandedRowKeys");-1===i.indexOf(t)&&(i.push(t),this.setOption("expandedRowKeys",i))}this.selectRows(on.getArrayFromOneElement(e)),this.setOption("focusedRowKey",e)}getDataSource(){var e;return null===(e=this._treeList)||void 0===e?void 0:e.getDataSource()}}var PG=i(709),MG=i.n(PG);function RG(){if(!MG())throw Xt.Z.Error("E1041","devexpress-gantt");return MG()}class BG{constructor(e,t){this._element=e,this._scrollView=t._createComponent(this._element,Lx,{scrollByContent:!1,scrollByThumb:!0,showScrollbar:"onHover",direction:"both",onScroll:()=>{t.updateView()}})}get scrollTop(){return this._scrollView.scrollTop()}set scrollTop(e){var t=e-this._scrollView.scrollTop();0!==t&&this._scrollView.scrollBy({left:0,top:t})}get scrollLeft(){return this._scrollView.scrollLeft()}set scrollLeft(e){var t=e-this._scrollView.scrollLeft();0!==t&&this._scrollView.scrollBy({left:t,top:0})}get scrollWidth(){return this._scrollView.scrollWidth()}get scrollHeight(){return this._scrollView.scrollHeight()}get isExternal(){return!0}getWidth(){return this._element.offsetWidth}getHeight(){return this._element.offsetHeight}getElement(){return this._element}}var VG=i(57495);class FG extends G{_init(){super._init(),this._onSelectionChanged=this._createActionByOption("onSelectionChanged"),this._onScroll=this._createActionByOption("onScroll"),this._onDialogShowing=this._createActionByOption("onDialogShowing"),this._onPopupMenuShowing=this._createActionByOption("onPopupMenuShowing"),this._onPopupMenuHiding=this._createActionByOption("onPopupMenuHiding"),this._expandAll=this._createActionByOption("onExpandAll"),this._collapseAll=this._createActionByOption("onCollapseAll"),this._taskClick=this._createActionByOption("onTaskClick"),this._taskDblClick=this._createActionByOption("onTaskDblClick"),this._onAdjustControl=this._createActionByOption("onAdjustControl")}_initMarkup(){var e=RG();this._ganttViewCore=new e(this.$element().get(0),this,{showResources:this.option("showResources"),showDependencies:this.option("showDependencies"),taskTitlePosition:this._getTaskTitlePosition(this.option("taskTitlePosition")),firstDayOfWeek:this._getFirstDayOfWeek(this.option("firstDayOfWeek")),allowSelectTask:this.option("allowSelection"),startDateRange:this.option("startDateRange"),endDateRange:this.option("endDateRange"),editing:this._parseEditingSettings(this.option("editing")),validation:this.option("validation"),stripLines:{stripLines:this.option("stripLines")},areHorizontalBordersEnabled:this.option("showRowLines"),areAlternateRowsEnabled:!1,viewType:this._getViewTypeByScaleType(this.option("scaleType")),viewTypeRange:this._parseViewTypeRangeSettings(this.option("scaleTypeRange")),cultureInfo:this._getCultureInfo(),taskTooltipContentTemplate:this.option("taskTooltipContentTemplate"),taskProgressTooltipContentTemplate:this.option("taskProgressTooltipContentTemplate"),taskTimeTooltipContentTemplate:this.option("taskTimeTooltipContentTemplate"),taskContentTemplate:this.option("taskContentTemplate"),sieve:this.option("sieve")}),this._selectTask(this.option("selectedRowKey")),this.updateBarItemsState()}_getFirstDayOfWeek(e){return(0,l.$K)(e)?e:gy.Z.firstDayOfWeekIndex()}getTaskAreaContainer(){return this._ganttViewCore.getTaskAreaContainer()}getBarManager(){return this._ganttViewCore.barManager}executeCoreCommand(e){var t=this._ganttViewCore.getCommandByKey(e);t&&t.execute()}changeTaskExpanded(e,t){this._ganttViewCore.changeTaskExpanded(e,t)}updateView(){var e;null===(e=this._ganttViewCore)||void 0===e||e.updateView()}updateBarItemsState(){this._ganttViewCore.barManager.updateItemsState([])}setWidth(e){this._ganttViewCore.setWidth(e)}_onDimensionChanged(){this._ganttViewCore.onBrowserWindowResize()}_selectTask(e){this._ganttViewCore.selectTaskById(e)}_update(e){var t;null===(t=this._ganttViewCore)||void 0===t||t.updateWithDataReload(e)}_getCultureInfo(){return{monthNames:gy.Z.getMonthNames("wide"),dayNames:gy.Z.getDayNames("wide"),abbrMonthNames:gy.Z.getMonthNames("abbreviated"),abbrDayNames:gy.Z.getDayNames("abbreviated"),quarterNames:this._getQuarterNames(),amText:this._getAmText(),pmText:this._getPmText(),start:y.Z.format("dxGantt-dialogStartTitle"),end:y.Z.format("dxGantt-dialogEndTitle"),progress:y.Z.format("dxGantt-dialogProgressTitle")}}_getAmText(){return this._hasAmPM()?gy.Z.getPeriodNames()[0]:""}_getPmText(){return this._hasAmPM()?gy.Z.getPeriodNames()[1]:""}_hasAmPM(){var e=new Date(Date.UTC(2012,11,12,3,0,0)),t=e.toLocaleTimeString(VG.Z.locale());return t.match(/am|pm/i)||e.toString().match(/am|pm/i)}_getQuarterNames(){var e=y.Z.format("dxGantt-quarter");return e?[(0,Ic.WU)(e,1),(0,Ic.WU)(e,2),(0,Ic.WU)(e,3),(0,Ic.WU)(e,4)]:gy.Z.getQuarterNames()}_getTaskTitlePosition(e){switch(e){case"outside":return 1;case"none":return 2;default:return 0}}_getViewTypeByScaleType(e){switch(e){case"minutes":return 0;case"hours":return 1;case"sixHours":return 2;case"days":return 3;case"weeks":return 4;case"months":return 5;case"quarters":return 6;case"years":return 7;default:return}}_parseEditingSettings(e){return{enabled:e.enabled,allowDependencyDelete:e.allowDependencyDeleting,allowDependencyInsert:e.allowDependencyAdding,allowTaskDelete:e.allowTaskDeleting,allowTaskInsert:e.allowTaskAdding,allowTaskUpdate:e.allowTaskUpdating,allowResourceDelete:e.allowResourceDeleting,allowResourceInsert:e.allowResourceAdding,allowResourceUpdate:e.allowResourceUpdating,allowTaskResourceUpdate:e.allowTaskResourceUpdating}}_parseViewTypeRangeSettings(e){return{min:this._getViewTypeByScaleType(e.min),max:this._getViewTypeByScaleType(e.max)}}_optionChanged(e){switch(e.name){case"width":super._optionChanged(e),this._ganttViewCore.setWidth(e.value);break;case"height":this._ganttViewCore.setHeight(e.value);break;case"tasks":case"dependencies":case"resources":case"resourceAssignments":this._sieveOptions=void 0,this._update(!0);break;case"showResources":this._ganttViewCore.setShowResources(e.value);break;case"showDependencies":this._ganttViewCore.setShowDependencies(e.value);break;case"taskTitlePosition":this._ganttViewCore.setTaskTitlePosition(this._getTaskTitlePosition(e.value));break;case"firstDayOfWeek":this._ganttViewCore.setFirstDayOfWeek(this._getFirstDayOfWeek(e.value));break;case"startDateRange":this._ganttViewCore.setStartDateRange(e.value);break;case"endDateRange":this._ganttViewCore.setEndDateRange(e.value);break;case"allowSelection":this._ganttViewCore.setAllowSelection(e.value);break;case"selectedRowKey":this._selectTask(e.value);break;case"editing":this._ganttViewCore.setEditingSettings(this._parseEditingSettings(e.value));break;case"validation":this._ganttViewCore.setValidationSettings(e.value),this._update(!0);break;case"showRowLines":this._ganttViewCore.setRowLinesVisible(e.value);break;case"scaleType":this._ganttViewCore.setViewType(this._getViewTypeByScaleType(e.value));break;case"scaleTypeRange":this._ganttViewCore.setViewTypeRange(this._getViewTypeByScaleType(e.value.min),this._getViewTypeByScaleType(e.value.max));break;case"stripLines":this._ganttViewCore.setStripLines({stripLines:e.value});break;case"taskTooltipContentTemplate":this._ganttViewCore.setTaskTooltipContentTemplate(e.value);break;case"taskProgressTooltipContentTemplate":this._ganttViewCore.setTaskProgressTooltipContentTemplate(e.value);break;case"taskTimeTooltipContentTemplate":this._ganttViewCore.setTaskTimeTooltipContentTemplate(e.value);break;case"taskContentTemplate":this._ganttViewCore.setTaskContentTemplate(e.value);break;case"sieve":this._sortAndFilter(e.value);break;default:super._optionChanged(e)}}get bars(){return this.option("bars")}getRowHeight(){return this.option("rowHeight")}getHeaderHeight(){return this.option("headerHeight")}getGanttTasksData(){var e=this.option("tasks"),t=this.getSieveOptions();return null!==t&&void 0!==t&&t.sievedItems&&null!==t&&void 0!==t&&t.sieveColumn?t.sievedItems:e}_sortAndFilter(e){this._sieveOptions=e,this._update(!(null!==e&&void 0!==e&&e.expandTasks));var t=this.option("selectedRowKey");this._selectTask(t)}getSieveOptions(){return this._sieveOptions}getGanttDependenciesData(){return this.option("dependencies")}getGanttResourcesData(){return this.option("resources")}getGanttResourceAssignmentsData(){return this.option("resourceAssignments")}getGanttWorkTimeRules(){return null}getExternalTaskAreaContainer(e){return this._taskAreaContainer||(this._taskAreaContainer=new BG(e,this)),this._taskAreaContainer}prepareExternalTaskAreaContainer(e,t){null!==t&&void 0!==t&&t.height&&this._taskAreaContainer._scrollView.option("height",t.height)}changeGanttTaskSelection(e,t){this._onSelectionChanged({id:e,selected:t})}onGanttScroll(e){this._onScroll({scrollTop:e})}showDialog(e,t,i,n){this._onDialogShowing({name:e,parameters:t,callback:i,afterClosing:n})}getModelChangesListener(){return this.option("modelChangesListener")}getExportInfo(){return this.option("exportInfo")}showPopupMenu(e){this._onPopupMenuShowing(e)}hidePopupMenu(e){this._onPopupMenuHiding(e)}getMainElement(){return this.option("mainElement").get(0)}adjustControl(){this._onAdjustControl()}getRequireFirstLoadParentAutoCalc(){return this.option("validation.autoUpdateParentTasks")}collapseAll(){this._collapseAll()}expandAll(){this._expandAll()}onTaskClick(e,t){return this._taskClick({key:e,event:t}),!0}onTaskDblClick(e,t){return this._taskDblClick({key:e,event:t})}onGanttViewContextMenu(e,t,i){return!0}getFormattedDateText(e){var t="";if(e){var i=gy.Z.format(e,"shortDate"),n=gy.Z.format(e,"hh:mm");t=i+" "+n}return t}destroyTemplate(e){(0,o.Z)(e).empty()}onTaskAreaSizeChanged(e){var t=this._taskAreaContainer._scrollView;if((0,l.$K)(null===e||void 0===e?void 0:e.height)){var i=(null===e||void 0===e?void 0:e.height)>this._taskAreaContainer.getHeight()?"both":"horizontal";t.option("direction",i)}}getTreeListTableStyle(){return this.callExportHelperMethod("getTreeListTableStyle")}getTreeListColCount(){return this.callExportHelperMethod("getTreeListColCount")}getTreeListHeaderInfo(e){return this.callExportHelperMethod("getTreeListHeaderInfo",e)}getTreeListCellInfo(e,t,i){return this.callExportHelperMethod("getTreeListCellInfo",i,t)}getTreeListEmptyDataCellInfo(){return this.callExportHelperMethod("getTreeListEmptyDataCellInfo")}callExportHelperMethod(e){for(var t=this.option("exportHelper"),i=arguments.length,n=new Array(i>1?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];return t[e](...n)}}var HG=(0,s.Jj)(),LG="dx-gantt",NG="dx-gantt-view",ZG="dx-gantt-treelist-wrapper",$G="dx-gantt-toolbar-wrapper",WG="dx-gantt-main-wrapper",KG="tasks",zG="dependencies",jG="resources",UG="resourceAssignments",GG="gantt_new_task_key";class qG extends G{_init(){super._init(),this._initGantt(),this._isGanttRendered=!1,this._initHelpers()}_initGantt(){this._refreshDataSources()}_initMarkup(){super._initMarkup(),this.$element().addClass(LG),this._$toolbarWrapper=(0,o.Z)("<div>").addClass($G).appendTo(this.$element()),this._$toolbar=(0,o.Z)("<div>").appendTo(this._$toolbarWrapper),this._$mainWrapper=(0,o.Z)("<div>").addClass(WG).appendTo(this.$element()),this._$treeListWrapper=(0,o.Z)("<div>").addClass(ZG).appendTo(this._$mainWrapper),this._$treeList=(0,o.Z)("<div>").appendTo(this._$treeListWrapper),this._$splitter=(0,o.Z)("<div>").appendTo(this._$mainWrapper),this._$ganttView=(0,o.Z)("<div>").addClass(NG).appendTo(this._$mainWrapper),this._$dialog=(0,o.Z)("<div>").appendTo(this.$element()),this._$loadPanel=(0,o.Z)("<div>").appendTo(this.$element()),this._$contextMenu=(0,o.Z)("<div>").appendTo(this.$element())}_clean(){var e;null===(e=this._ganttView)||void 0===e||e._ganttViewCore.cleanMarkup(),delete this._ganttView,delete this._dialogInstance,delete this._loadPanel,delete this._exportHelper,super._clean()}_refresh(){this._isGanttRendered=!1,this._contentReadyRaised=!1,super._refresh()}_fireContentReadyAction(){this._contentReadyRaised||super._fireContentReadyAction(),this._contentReadyRaised=!0}_dimensionChanged(){var e;null===(e=this._ganttView)||void 0===e||e._onDimensionChanged()}_visibilityChanged(e){e&&this._refreshGantt()}_refreshGantt(){this._refreshDataSources(),this._refresh()}_refreshDataSources(){this._refreshDataSource(KG),this._refreshDataSource(zG),this._refreshDataSource(jG),this._refreshDataSource(UG)}_renderContent(){this._isMainElementVisible=this.$element().is(":visible"),this._isMainElementVisible&&!this._isGanttRendered&&(this._isGanttRendered=!0,this._renderBars(),this._renderTreeList(),this._renderSplitter())}_renderTreeList(){this._ganttTreeList=new AG(this),this._treeList=this._ganttTreeList.getTreeList(),this._ganttTreeList.onAfterTreeListCreate()}_renderSplitter(){this._splitter=this._createComponent(this._$splitter,Gi,{container:this.$element(),leftElement:this._$treeListWrapper,rightElement:this._$ganttView,onApplyPanelSize:e=>{this._sizeHelper.onApplyPanelSize(e)}}),this._splitter.option("initialLeftPanelWidth",this.option("taskListWidth"))}_renderBars(){this._bars=[],this._toolbar=new RO(this._$toolbar,this),this._updateToolbarContent(),this._bars.push(this._toolbar),this._contextMenuBar=new BO(this._$contextMenu,this),this._updateContextMenu(),this._bars.push(this._contextMenuBar)}_initHelpers(){this._mappingHelper=new KD(this),this._customFieldsManager=new an(this),this._actionsManager=new tn(this),this._ganttTemplatesManager=new jD(this),this._sizeHelper=new zD(this)}_initGanttView(){this._ganttView||(this._ganttView=this._createComponent(this._$ganttView,FG,{width:"100%",height:this._ganttTreeList.getOffsetHeight(),rowHeight:this._ganttTreeList.getRowHeight(),headerHeight:this._ganttTreeList.getHeaderHeight(),tasks:this._tasks,dependencies:this._dependencies,resources:this._resources,resourceAssignments:this._resourceAssignments,allowSelection:this.option("allowSelection"),selectedRowKey:this.option("selectedRowKey"),showResources:this.option("showResources"),showDependencies:this.option("showDependencies"),startDateRange:this.option("startDateRange"),endDateRange:this.option("endDateRange"),taskTitlePosition:this.option("taskTitlePosition"),firstDayOfWeek:this.option("firstDayOfWeek"),showRowLines:this.option("showRowLines"),scaleType:this.option("scaleType"),scaleTypeRange:this.option("scaleTypeRange"),editing:this.option("editing"),validation:this.option("validation"),stripLines:this.option("stripLines"),bars:this._bars,mainElement:this.$element(),onSelectionChanged:e=>{this._ganttTreeList.selectRows(on.getArrayFromOneElement(e.id))},onScroll:e=>{this._ganttTreeList.scrollBy(e.scrollTop)},onDialogShowing:this._showDialog.bind(this),onPopupMenuShowing:this._showPopupMenu.bind(this),onPopupMenuHiding:this._hidePopupMenu.bind(this),onExpandAll:this._expandAll.bind(this),onCollapseAll:this._collapseAll.bind(this),modelChangesListener:p.create(this),exportHelper:this._getExportHelper(),taskTooltipContentTemplate:this._ganttTemplatesManager.getTaskTooltipContentTemplateFunc(this.option("taskTooltipContentTemplate")),taskProgressTooltipContentTemplate:this._ganttTemplatesManager.getTaskProgressTooltipContentTemplateFunc(this.option("taskProgressTooltipContentTemplate")),taskTimeTooltipContentTemplate:this._ganttTemplatesManager.getTaskTimeTooltipContentTemplateFunc(this.option("taskTimeTooltipContentTemplate")),taskContentTemplate:this._ganttTemplatesManager.getTaskContentTemplateFunc(this.option("taskContentTemplate")),onTaskClick:e=>{this._ganttTreeList.onRowClick(e)},onTaskDblClick:e=>{this._ganttTreeList.onRowDblClick(e)},onAdjustControl:()=>{this._sizeHelper.onAdjustControl()},onContentReady:this._onGanttViewContentReady.bind(this)}))}_onGanttViewContentReady(e){this._isParentAutoUpdateMode()||this._fireContentReadyAction()}_isParentAutoUpdateMode(){return this.option("validation.autoUpdateParentTasks")}_onTreeListContentReady(e){this._isParentAutoUpdateMode()&&this._treeListParentRecalculatedDataUpdating&&this._fireContentReadyAction(),delete this._treeListParentRecalculatedDataUpdating}_refreshDataSource(e){var t=this["_".concat(e,"Option")];t&&(t.dispose(),delete this["_".concat(e,"Option")],delete this["_".concat(e)]),t=new _(e,this._getLoadPanel.bind(this),((e,t)=>{this._dataSourceChanged(e,t)})),t.option("dataSource",this._getSpecificDataSourceOption(e)),t._refreshDataSource(),this["_".concat(e,"Option")]=t}_getSpecificDataSourceOption(e){var t=this.option("".concat(e,".dataSource"));return!t||Array.isArray(t)?{store:{type:"array",data:null!==t&&void 0!==t?t:[],key:this.option("".concat(e,".keyExpr"))}}:t}_dataSourceChanged(e,t){var i=on.compileGettersByOption(this.option(e)),n=this._validateSourceData(e,t),o=n.map(on.prepareMapHandler(i));if(this["_".concat(e)]=o,this._setGanttViewOption(e,o),e===KG){var r,a,s;this._tasksRaw=n;var l=!(null!==(r=this._ganttTreeList)&&void 0!==r&&r.getDataSource())&&!this._ganttView;null===(a=this._ganttTreeList)||void 0===a||a.saveExpandedKeys(),null===(s=this._ganttTreeList)||void 0===s||s.updateDataSource(n,l)}}_validateSourceData(e,t){return t&&e===KG?this._validateTaskData(t):t}_validateTaskData(e){for(var t,i=(0,r.vb)(this.option("".concat(KG,".keyExpr"))),n=(0,r.vb)(this.option("".concat(KG,".parentIdExpr"))),o=null!==(t=this.option("rootValue"))&&void 0!==t?t:"dx_dxt_gantt_default_root_value",a={},s=0;s<e.length;s++){var l=e[s];if(l){var d,u=i(l),c=u===o,h=null!==(d=a[u])&&void 0!==d?d:a[u]={key:u,children:[]};if(!c){var p,f,g=null!==(p=n(l))&&void 0!==p?p:o,m=null!==(f=a[g])&&void 0!==f?f:a[g]={key:g,children:[]};m.children.push(h),h.parent=m}}}var _=[o];return this._appendChildKeys(a[o],_),e.filter((e=>_.indexOf(i(e))>-1))}_appendChildKeys(e,t){for(var i=null===e||void 0===e?void 0:e.children,n=0;n<(null===i||void 0===i?void 0:i.length);n++){var o=i[n];t.push(o.key),this._appendChildKeys(o,t)}}_onRecordInserted(e,t,i){var n=this["_".concat(e,"Option")];if(n){var o=on.getStoreObject(this.option(e),t),a=e===KG;a&&this._customFieldsManager.addCustomFieldsDataFromCache(GG,o),n.insert(o,(s=>{var l=(0,r.vb)(this.option("".concat(e,".keyExpr"))),d=l(s);i(d),this._ganttTreeList.saveExpandedKeys(),n._reloadDataSource().done((e=>{a&&this._ganttTreeList.onTaskInserted(d,t.parentId)})),this._actionsManager.raiseInsertedAction(e,o,d)}))}}_onRecordUpdated(e,t,i){var n=this["_".concat(e,"Option")],o=e===KG;if(n){var r=this._mappingHelper.convertCoreToMappedData(e,i),a=o&&this._customFieldsManager.cache.hasData(t);a&&this._customFieldsManager.addCustomFieldsDataFromCache(t,r),n.update(t,r,(()=>{this._ganttTreeList.saveExpandedKeys(),n._reloadDataSource(),this._actionsManager.raiseUpdatedAction(e,r,t)}))}}_onRecordRemoved(e,t,i){var n=this["_".concat(e,"Option")];n&&n.remove(t,(()=>{this._ganttTreeList.saveExpandedKeys(),n._reloadDataSource(),this._actionsManager.raiseDeletedAction(e,t,this._mappingHelper.convertCoreToMappedData(e,i))}))}_onParentTaskUpdated(e){var t=this.getTaskDataByCoreData(e);this._actionsManager.raiseUpdatedAction(KG,t,e.id)}_onParentTasksRecalculated(e){if(!this.isSieving){var t=on.compileSettersByOption(this.option(KG)),i=this._customFieldsManager.appendCustomFields(e.map(on.prepareSetterMapHandler(t)));setTimeout((()=>{var e;this._treeListParentRecalculatedDataUpdating=!0,null===(e=this._ganttTreeList)||void 0===e||e.setDataSource(i)}))}this.isSieving=!1}_sortAndFilter(){var e,t,i,n=this._treeList,o=n.getVisibleColumns(),r=o.filter((e=>e.sortIndex>-1)),a=r.map((e=>({sortIndex:e.sortIndex,sortOrder:e.sortOrder}))),s=!this._compareSortedState(null===(e=this._savedSortFilterState)||void 0===e?void 0:e.sort,a),d=n.option("filterValue"),u=n.option("expandNodesOnFiltering")&&d!==(null===(t=this._savedSortFilterState)||void 0===t?void 0:t.filter),c=r[0]||o.filter((e=>{var t;return(0,l.$K)(e.filterValue)||(null===(t=e.filterValues)||void 0===t?void 0:t.length)}))[0],h=(null===(i=this._savedSortFilterState)||void 0===i?void 0:i.sieveColumn)&&!c;if(c||h){var p=c&&{sievedItems:this._ganttTreeList.getSievedItems(),sieveColumn:c,expandTasks:u||d&&s};this.isSieving=!h,this._setGanttViewOption("sieve",p)}this._savedSortFilterState={sort:a,filter:d,sieveColumn:c}}_compareSortedState(e,t){return!(!e||!t||e.length!==t.length)&&e.every(((e,i)=>e.sortIndex===t[i].sortIndex&&e.sortOrder===t[i].sortOrder))}_getToolbarItems(){var e=this.option("toolbar.items");return e||[]}_updateToolbarContent(){var e=this._getToolbarItems();e.length?this._$toolbarWrapper.show():this._$toolbarWrapper.hide(),this._toolbar&&this._toolbar.createItems(e),this._updateBarItemsState()}_updateContextMenu(){var e=this.option("contextMenu");e.enabled&&this._contextMenuBar&&(this._contextMenuBar.createItems(e.items),this._updateBarItemsState())}_updateBarItemsState(){this._ganttView&&this._ganttView.updateBarItemsState()}_showDialog(e){this._dialogInstance||(this._dialogInstance=new oD(this,this._$dialog)),this._dialogInstance.show(e.name,e.parameters,e.callback,e.afterClosing,this.option("editing"))}_showPopupMenu(e){if(this.option("contextMenu.enabled")){this._ganttView.getBarManager().updateContextMenu();var t={cancel:!1,event:e.event,targetType:e.type,targetKey:e.key,items:(0,a.l)(!0,[],this._contextMenuBar._items),data:"task"===e.type?this.getTaskData(e.key):this.getDependencyData(e.key)};this._actionsManager.raiseContextMenuPreparing(t),t.cancel||this._contextMenuBar.show(e.position,t.items)}}_hidePopupMenu(){this._contextMenuBar.hide()}_getLoadPanel(){return this._loadPanel||(this._loadPanel=this._createComponent(this._$loadPanel,Hi,{position:{of:this.$element()}})),this._loadPanel}_getTaskKeyGetter(){return(0,r.vb)(this.option("".concat(KG,".keyExpr")))}_findTaskByKey(e){var t,i=null===(t=this._tasksOption)||void 0===t?void 0:t._getItems(),n=this._getTaskKeyGetter();return i.find((t=>n(t)===e))}_setGanttViewOption(e,t){this._ganttView&&this._ganttView.option(e,t)}_getGanttViewOption(e,t){var i;return null===(i=this._ganttView)||void 0===i?void 0:i.option(e)}_getExportHelper(){var e;return null!==(e=this._exportHelper)&&void 0!==e||(this._exportHelper=new ZD(this)),this._exportHelper}_executeCoreCommand(e){this._ganttView.executeCoreCommand(e)}_expandAll(){this._changeExpandAll(!0)}_collapseAll(){this._changeExpandAll(!1)}_onTreeListRowExpandChanged(e,t){this._lockRowExpandEvent||(this._ganttView.changeTaskExpanded(e.key,t),this._sizeHelper.adjustHeight())}_changeExpandAll(e,t,i){var n,o,r=[],a=[];if(this._treeList.forEachNode((e=>{var t;null!==(t=e.children)&&void 0!==t&&t.length&&r.push(e)})),i){var s=this._treeList.getNodeByKey(i);on.getAllParentNodesKeys(s,a)}this._lockRowExpandEvent=r.length>0;var l=r.reduce(((n,s,l)=>{i?e=a.includes(s.key):t&&(e=s.level<t),n[s.key]=e;var d=e?this._treeList.expandRow:this._treeList.collapseRow,u=l===r.length-1;return u?o=d(s.key):d(s.key),n}),{});null===(n=o)||void 0===n||n.then((()=>{this._ganttView._ganttViewCore.applyTasksExpandedState(l),this._sizeHelper.adjustHeight(),delete this._lockRowExpandEvent}))}getTaskResources(e){if(!(0,l.$K)(e))return null;var t=this._ganttView._ganttViewCore.getTaskResources(e);return t.map((e=>this._mappingHelper.convertCoreToMappedData(jG,e)))}getVisibleTaskKeys(){return this._ganttView._ganttViewCore.getVisibleTaskKeys()}getVisibleDependencyKeys(){return this._ganttView._ganttViewCore.getVisibleDependencyKeys()}getVisibleResourceKeys(){return this._ganttView._ganttViewCore.getVisibleResourceKeys()}getVisibleResourceAssignmentKeys(){return this._ganttView._ganttViewCore.getVisibleResourceAssignmentKeys()}getTaskData(e){if(!(0,l.$K)(e))return null;var t=this._ganttView._ganttViewCore.getTaskData(e),i=this.getTaskDataByCoreData(t);return i}getTaskDataByCoreData(e){var t=e?this._mappingHelper.convertCoreToMappedData(KG,e):null;return this._customFieldsManager.addCustomFieldsData(e.id,t),t}insertTask(e){this._customFieldsManager.saveCustomFieldsDataToCache(GG,e),this._ganttView._ganttViewCore.insertTask(this._mappingHelper.convertMappedToCoreData(KG,e))}deleteTask(e){this._ganttView._ganttViewCore.deleteTask(e)}updateTask(e,t){var i=this._mappingHelper.convertMappedToCoreData(KG,t),n=!Object.keys(i).length;if(this._customFieldsManager.saveCustomFieldsDataToCache(e,t,!0,n),n){var o=this._customFieldsManager._getCustomFieldsData(t);Object.keys(o).length>0&&this._actionsManager.raiseUpdatingAction(KG,{cancel:!1,key:e,newValues:{}})}else this._ganttView._ganttViewCore.updateTask(e,i)}getDependencyData(e){if(!(0,l.$K)(e))return null;var t=this._ganttView._ganttViewCore.getDependencyData(e);return t?this._mappingHelper.convertCoreToMappedData(zG,t):null}insertDependency(e){this._ganttView._ganttViewCore.insertDependency(this._mappingHelper.convertMappedToCoreData(zG,e))}deleteDependency(e){this._ganttView._ganttViewCore.deleteDependency(e)}getResourceData(e){var t=this._ganttView._ganttViewCore.getResourceData(e);return t?this._mappingHelper.convertCoreToMappedData(jG,t):null}deleteResource(e){this._ganttView._ganttViewCore.deleteResource(e)}insertResource(e,t){this._ganttView._ganttViewCore.insertResource(this._mappingHelper.convertMappedToCoreData(jG,e),t)}getResourceAssignmentData(e){var t=this._ganttView._ganttViewCore.getResourceAssignmentData(e);return t?this._mappingHelper.convertCoreToMappedData(UG,t):null}assignResourceToTask(e,t){this._ganttView._ganttViewCore.assignResourceToTask(e,t)}unassignResourceFromTask(e,t){this._ganttView._ganttViewCore.unassignResourceFromTask(e,t)}unassignAllResourcesFromTask(e){this._ganttView._ganttViewCore.unassignAllResourcesFromTask(e)}updateDimensions(){this._sizeHelper.onAdjustControl()}scrollToDate(e){this._ganttView._ganttViewCore.scrollToDate(e)}showResourceManagerDialog(){this._ganttView._ganttViewCore.showResourcesDialog()}showTaskDetailsDialog(e){this._ganttView._ganttViewCore.showTaskDetailsDialog(e)}exportToPdf(e){return this._exportToPdf(e)}_exportToPdf(e){var t,i,n,o,r;this._exportHelper.reset();var s=(0,a.l)({},e);return s.createDocumentMethod&&(s.docCreateMethod=s.createDocumentMethod),null!==(t=s.pdfDocument)&&void 0!==t||(s.pdfDocument=s.jsPDFDocument),null!==(i=s.docCreateMethod)&&void 0!==i||(s.docCreateMethod=null!==(n=null===(o=HG.jspdf)||void 0===o?void 0:o.jsPDF)&&void 0!==n?n:HG.jsPDF),null!==(r=s.format)&&void 0!==r||(s.format="a4"),new Promise((e=>{var t,i=null===(t=this._ganttView)||void 0===t?void 0:t._ganttViewCore.exportToPdf(s);e(i)}))}refresh(){return new Promise(((e,t)=>{try{this._refreshGantt(),e()}catch(i){t(i.message)}}))}expandAll(){this._expandAll()}collapseAll(){this._collapseAll()}expandAllToLevel(e){this._changeExpandAll(!1,e)}expandToTask(e){var t,i=this._treeList.getNodeByKey(e);this._changeExpandAll(!1,0,null===i||void 0===i||null===(t=i.parent)||void 0===t?void 0:t.key)}collapseTask(e){this._treeList.collapseRow(e)}expandTask(e){this._treeList.expandRow(e)}showResources(e){this.option("showResources",e)}showDependencies(e){this.option("showDependencies",e)}zoomIn(){this._ganttView._ganttViewCore.zoomIn()}zoomOut(){this._ganttView._ganttViewCore.zoomOut()}_getDefaultOptions(){return(0,a.l)(super._getDefaultOptions(),on.getDefaultOptions())}_optionChanged(e){var t,i,o,r,a,s,l,d,u,c,h,p,f,g,m,_,v,y,C,b,x,w,T,S,I,E,D,k,O,A,P,M,R,B,V,F,H,L,N,Z,$,W;switch(e.name){case"tasks":this._refreshDataSource(KG);break;case"dependencies":this._refreshDataSource(zG);break;case"resources":this._refreshDataSource(jG);break;case"resourceAssignments":this._refreshDataSource(UG);break;case"columns":null===(t=this._ganttTreeList)||void 0===t||t.setOption("columns",this._ganttTreeList.getColumns());break;case"taskListWidth":null===(i=this._sizeHelper)||void 0===i||i.setInnerElementsWidth();break;case"showResources":this._setGanttViewOption("showResources",e.value);break;case"showDependencies":this._setGanttViewOption("showDependencies",e.value);break;case"taskTitlePosition":this._setGanttViewOption("taskTitlePosition",e.value);break;case"firstDayOfWeek":this._setGanttViewOption("firstDayOfWeek",e.value);break;case"startDateRange":this._setGanttViewOption("startDateRange",e.value);break;case"endDateRange":this._setGanttViewOption("endDateRange",e.value);break;case"selectedRowKey":null===(o=this._ganttTreeList)||void 0===o||o.selectRows(on.getArrayFromOneElement(e.value));break;case"onSelectionChanged":null===(r=this._actionsManager)||void 0===r||r.createSelectionChangedAction();break;case"onTaskClick":null===(a=this._actionsManager)||void 0===a||a.createTaskClickAction();break;case"onTaskDblClick":null===(s=this._actionsManager)||void 0===s||s.createTaskDblClickAction();break;case"onTaskInserting":null===(l=this._actionsManager)||void 0===l||l.createTaskInsertingAction();break;case"onTaskInserted":null===(d=this._actionsManager)||void 0===d||d.createTaskInsertedAction();break;case"onTaskDeleting":null===(u=this._actionsManager)||void 0===u||u.createTaskDeletingAction();break;case"onTaskDeleted":null===(c=this._actionsManager)||void 0===c||c.createTaskDeletedAction();break;case"onTaskUpdating":null===(h=this._actionsManager)||void 0===h||h.createTaskUpdatingAction();break;case"onTaskUpdated":null===(p=this._actionsManager)||void 0===p||p.createTaskUpdatedAction();break;case"onTaskMoving":null===(f=this._actionsManager)||void 0===f||f.createTaskMovingAction();break;case"onTaskEditDialogShowing":null===(g=this._actionsManager)||void 0===g||g.createTaskEditDialogShowingAction();break;case"onResourceManagerDialogShowing":null===(m=this._actionsManager)||void 0===m||m.createResourceManagerDialogShowingAction();break;case"onDependencyInserting":null===(_=this._actionsManager)||void 0===_||_.createDependencyInsertingAction();break;case"onDependencyInserted":null===(v=this._actionsManager)||void 0===v||v.createDependencyInsertedAction();break;case"onDependencyDeleting":null===(y=this._actionsManager)||void 0===y||y.createDependencyDeletingAction();break;case"onDependencyDeleted":null===(C=this._actionsManager)||void 0===C||C.createDependencyDeletedAction();break;case"onResourceInserting":null===(b=this._actionsManager)||void 0===b||b.createResourceInsertingAction();break;case"onResourceInserted":null===(x=this._actionsManager)||void 0===x||x.createResourceInsertedAction();break;case"onResourceDeleting":null===(w=this._actionsManager)||void 0===w||w.createResourceDeletingAction();break;case"onResourceDeleted":null===(T=this._actionsManager)||void 0===T||T.createResourceDeletedAction();break;case"onResourceAssigning":null===(S=this._actionsManager)||void 0===S||S.createResourceAssigningAction();break;case"onResourceAssigned":null===(I=this._actionsManager)||void 0===I||I.createResourceAssignedAction();break;case"onResourceUnassigning":null===(E=this._actionsManager)||void 0===E||E.createResourceUnassigningAction();break;case"onResourceUnassigned":null===(D=this._actionsManager)||void 0===D||D.createResourceUnassignedAction();break;case"onCustomCommand":null===(k=this._actionsManager)||void 0===k||k.createCustomCommandAction();break;case"onContextMenuPreparing":null===(O=this._actionsManager)||void 0===O||O.createContextMenuPreparingAction();break;case"onScaleCellPrepared":null===(A=this._actionsManager)||void 0===A||A.createScaleCellPreparedAction();break;case"allowSelection":null===(P=this._ganttTreeList)||void 0===P||P.setOption("selection.mode",on.getSelectionMode(e.value)),this._setGanttViewOption("allowSelection",e.value);break;case"showRowLines":null===(M=this._ganttTreeList)||void 0===M||M.setOption("showRowLines",e.value),this._setGanttViewOption("showRowLines",e.value);break;case"stripLines":this._setGanttViewOption("stripLines",e.value);break;case"scaleType":this._setGanttViewOption("scaleType",e.value);break;case"scaleTypeRange":this._setGanttViewOption("scaleTypeRange",this.option(e.name));break;case"editing":this._setGanttViewOption("editing",this.option(e.name));break;case"validation":this._setGanttViewOption("validation",this.option(e.name));break;case"toolbar":this._updateToolbarContent();break;case"contextMenu":this._updateContextMenu();break;case"taskTooltipContentTemplate":this._setGanttViewOption("taskTooltipContentTemplate",null===(R=this._ganttTemplatesManager)||void 0===R?void 0:R.getTaskTooltipContentTemplateFunc(e.value));break;case"taskProgressTooltipContentTemplate":this._setGanttViewOption("taskProgressTooltipContentTemplate",null===(B=this._ganttTemplatesManager)||void 0===B?void 0:B.getTaskProgressTooltipContentTemplateFunc(e.value));break;case"taskTimeTooltipContentTemplate":this._setGanttViewOption("taskTimeTooltipContentTemplate",null===(V=this._ganttTemplatesManager)||void 0===V?void 0:V.getTaskTimeTooltipContentTemplateFunc(e.value));break;case"taskContentTemplate":this._setGanttViewOption("taskContentTemplate",null===(F=this._ganttTemplatesManager)||void 0===F?void 0:F.getTaskContentTemplateFunc(e.value));break;case"rootValue":null===(H=this._ganttTreeList)||void 0===H||H.setOption("rootValue",e.value);break;case"width":super._optionChanged(e),null===(L=this._sizeHelper)||void 0===L||L.updateGanttWidth();break;case"height":super._optionChanged(e),null===(N=this._sizeHelper)||void 0===N||N.setGanttHeight((0,n.Cr)(this._$element));break;case"sorting":null===(Z=this._ganttTreeList)||void 0===Z||Z.setOption("sorting",this.option(e.name));break;case"filterRow":null===($=this._ganttTreeList)||void 0===$||$.setOption("filterRow",this.option(e.name));break;case"headerFilter":null===(W=this._ganttTreeList)||void 0===W||W.setOption("headerFilter",this.option(e.name));break;default:super._optionChanged(e)}}}(0,C.Z)("dxGantt",qG);var YG=qG,XG=YG},53970:function(e,t,i){"use strict";i.d(t,{Vk:function(){return Z},f5:function(){return G},OD:function(){return U},x2:function(){return j},Ih:function(){return Y}});var n,o,r,a,s,l,d=i(30057),u=i(30390),c=i(71389),h=i(57678),p=i(79303),f=i(8825),g=i(63419),m=i(90268),_=i(12454),v=i(18274),y=i(94795),C=(0,y["default"])(),b=i(27238),x=(0,v.Jj)(),w=m.Z.add,T=_.S3,S=_.Wg,I=new p.BH,E="link[rel=dx-theme]",D="data-theme",k="data-active",O="dx-hairlines",A="any",P=15e3,M="dx.";function R(){if(!(0,v.Ym)())return null;var e,t=(0,h.Z)("<div>",n).addClass("dx-theme-marker").appendTo(n.documentElement);try{return e=x.getComputedStyle(t.get(0)).fontFamily,e?(e=e.replace(/["']/g,""),e.substr(0,M.length)!==M?null:e.substr(M.length)):null}finally{t.remove()}}function B(e){var t,i,n=!0;function o(){s=null,clearInterval(i),n=!0,C.fire(),C.empty(),I.resolve()}if(s=e,V()||!P)o();else{if(!n)return void(s&&(s=e));t=Date.now(),n=!1,i=setInterval((function(){var e=V(),i=!e&&Date.now()-t>P;i&&b.Z.log("W0004",s),(e||i)&&o()}),10)}}function V(){if(!s)return!0;var e=s===A;if("resolved"===I.state()&&e)return!0;var t=R();return!(!t||!e)||t===s}function F(){var e=(0,h.Z)(E,n);e.length&&(r={},o=(0,h.Z)((0,f.r)("<link rel=stylesheet>"),n),e.each((function(){var e=(0,h.Z)(this,n),t=e.attr(D),i=e.attr("href"),o="true"===e.attr(k);r[t]={url:i,isActive:o}})),e.last().after(o),e.remove())}function H(e){var t=e?e.split("."):[],i=null;if(r){if(e in r)return e;(0,g.S6)(r,(function(e,n){var o=e.split(".");if((!t[0]||o[0]===t[0])&&(!t[1]||t[1]===o[1])&&(!t[2]||t[2]===o[2]))return i&&!n.isActive||(i=e),!n.isActive&&void 0}))}return i}function L(e){try{e!==n&&(r=null)}catch(t){r=null}n=e}function N(e){e=e||{},L(e.context||c["default"].getDocument()),n&&(F(),a=void 0,Z(e))}function Z(e){if(!arguments.length)return a=a||R(),a;K(T()),e=e||{},"string"===typeof e&&(e={theme:e});var t,i=e._autoInit,n=e.loadCallback;if(a=H(e.theme||a),a&&(t=r[a]),n&&C.add(n),t)o.attr("href",r[a].url),(C.has()||"resolved"!==I.state()||e._forceTimeout)&&B(a);else{if(!i)throw b.Z.Error("E0021",a);(0,v.Ym)()&&B(A),C.fire(),C.empty()}I.done((()=>W((0,_.In)(),a)))}function $(e){e=e||Z();var t=[],i=e&&e.split(".");return i&&(t.push("dx-theme-"+i[0],"dx-theme-"+i[0]+"-typography"),i.length>1&&t.push("dx-color-scheme-"+i[1]+(j(e)?"-"+i[2]:""))),t}function W(e,t){l=$(t).join(" "),(0,h.Z)(e).addClass(l),function(){var t=(0,v.Ym)()&&x.devicePixelRatio;if(t&&!(t<2)){var i=(0,h.Z)("<div>");i.css("border",".5px solid transparent"),(0,h.Z)("body").append(i),1===(0,d.zp)(i)&&((0,h.Z)(e).addClass(O),l+=" "+O),i.remove()}}()}function K(e){(0,h.Z)(e).removeClass(l)}function z(e,t){return t||(t=a||R()),new RegExp(e).test(t)}function j(e){return z("material",e)}function U(e){return z("generic",e)}function G(e){return z("compact",e)}function q(e,t){var i=c["default"].getDocument(),n=i.createElement("span");n.style.position="absolute",n.style.top="-9999px",n.style.left="-9999px",n.style.visibility="hidden",n.style.fontFamily="Arial",n.style.fontSize="250px",n.style.fontWeight=t,n.innerHTML=e,i.body.appendChild(n);var o=n.offsetWidth;n.style.fontFamily="Roboto, RobotoFallback, Arial";var r=n.offsetWidth;return n.parentNode.removeChild(n),o!==r}function Y(e,t){return new Promise((i=>{var n=()=>{clearInterval(o),clearTimeout(r),i()},o=setInterval((()=>{q(e,t)&&n()}),15),r=setTimeout(n,2e3)}))}function X(){if(N({_autoInit:!0,_forceTimeout:!0}),(0,h.Z)(E,n).length)throw b.Z.Error("E0022")}(0,v.Ym)()?X():w(X),S.add((function(e,t){I.done((function(){K(t),W(e)}))})),u.Z.changed.add((function(){N({_autoInit:!0})}))},23191:function(e,t,i){"use strict";i.d(t,{KW:function(){return s},ht:function(){return l},si:function(){return d}});var n=i(57678),o=i(71389),r=function(e,t){if(!a(e))return!1;var i,n=e.nodeName.toLowerCase(),o=!isNaN(t),r=e.disabled,s=/^(input|select|textarea|button|object|iframe)$/.test(n),l="a"===n,d=e.isContentEditable;return i=s||d?!r:l&&e.href||o,i};function a(e){var t=(0,n.Z)(e);return t.is(":visible")&&"hidden"!==t.css("visibility")&&"hidden"!==t.parents().css("visibility")}var s=function(e,t){return r(t,(0,n.Z)(t).attr("tabIndex"))},l=function(e,t){var i=(0,n.Z)(t).attr("tabIndex");return(isNaN(i)||i>=0)&&r(t,i)},d=function(e){var t=(0,n.Z)(e).get(0);return o["default"].getActiveElement(t)===t}},27238:function(e,t,i){"use strict";var n=i(2695),o=i(33734);t["Z"]=(0,n.Z)(o.Z.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"',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: {0}",E1037:"Invalid structure of grouped data",E1038:"The browser does not support local storages for local web pages",E1039:"A cell's position cannot be calculated",E1040:"The '{0}' key value is not unique within the data array",E1041:"The '{0}' script is referenced after the DevExtreme scripts or not referenced at all",E1042:"{0} requires the key field to be specified",E1043:"Changes cannot be processed due to the incorrectly set key",E1044:"The key field specified by the keyExpr option does not match the key field specified in the data store",E1045:"Editing requires the key field to be specified in the data store",E1046:"The '{0}' key field is not found in data objects",E1047:'The "{0}" field is not found in the fields array',E1048:'The "{0}" operation is not found in the filterOperations array',E1049:"Column '{0}': filtering is allowed but the 'dataField' or 'name' option is not specified",E1050:"The validationRules option does not apply to third-party editors defined in the editCellTemplate",E1051:'HtmlEditor\'s valueType is "{0}", but the {0} converter was not imported.',E1052:'{0} should have the "dataSource" option specified',E1053:'The "buttons" option accepts an array that contains only objects or string values',E1054:"All text editor buttons must have names",E1055:'One or several text editor buttons have invalid or non-unique "name" values',E1056:'The {0} widget does not support buttons of the "{1}" type',E1058:'The "startDayHour" must be earlier than the "endDayHour"',E1059:"The following column names are not unique: {0}",E1060:"All editable columns must have names",W1001:'The "key" option cannot be modified after initialization',W1002:"An item with the key '{0}' does not exist",W1003:"A group with the key '{0}' in which you are trying to select items does not exist",W1004:"The item '{0}' you are trying to select in the group '{1}' does not exist",W1005:"Due to column data types being unspecified, data has been loaded twice in order to apply initial filter settings. To resolve this issue, specify data types for all grid columns.",W1006:"The map service returned the following error: '{0}'",W1007:"No item with key {0} was found in the data source, but this key was used as the parent key for item {1}",W1008:"Cannot scroll to the '{0}' date because it does not exist on the current view",W1009:"Searching works only if data is specified using the dataSource option",W1010:"The capability to select all items works with source data of plain structure only",W1011:'The "keyExpr" option is not applied when dataSource is not an array',W1012:"The '{0}' key field is not found in data objects",W1013:'The "message" field in the dialog component was renamed to "messageHtml". Change your code correspondingly. In addition, if you used HTML code in the message, make sure that it is secure',W1014:"The Floating Action Button exceeds the recommended speed dial action count. If you need to display more speed dial actions, increase the maxSpeedDialActionCount option value in the global config.",W1015:'The "cellDuration" should divide the range from the "startDayHour" to the "endDayHour" into even intervals',W1016:"The '{0}' field in the HTML Editor toolbar item configuration was renamed to '{1}'. Please make a corresponding change in your code.",W1017:"The 'key' property is not specified for a lookup data source. Please specify it to prevent requests for the entire dataset when users filter data.",W1018:"Infinite scrolling may not work properly with multiple selection. To use these features together, set 'selection.deferred' to true or set 'selection.selectAllMode' to 'page'.",W1019:"Filter query string exceeds maximum length limit of {0} characters.",W1020:"hideEvent is ignored when the shading property is true",W1021:"The '{0}' is not rendered because none of the DOM elements match the value of the \"container\" property."})},73905:function(e,t,i){"use strict";i.d(t,{Z:function(){return c}});var n=i(42240),o=i(16878),r=i(53016),a=i(74338),s=i(7550),l=i(96669),d=i(75352),u=i(67678),c=(0,u.Z)(o.Z,r.Z,s.Z,a.Z,l.Z).extend({name:"v-rating",props:{backgroundColor:{type:String,default:"accent"},color:{type:String,default:"primary"},clearable:Boolean,dense:Boolean,emptyIcon:{type:String,default:"$ratingEmpty"},fullIcon:{type:String,default:"$ratingFull"},halfIcon:{type:String,default:"$ratingHalf"},halfIncrements:Boolean,hover:Boolean,length:{type:[Number,String],default:5},readonly:Boolean,size:[Number,String],value:{type:Number,default:0},iconLabel:{type:String,default:"$vuetify.rating.ariaLabel.icon"}},data(){return{hoverIndex:-1,internalValue:this.value}},computed:{directives(){return this.readonly||!this.ripple?[]:[{name:"ripple",value:{circle:!0}}]},iconProps(){const{dark:e,large:t,light:i,medium:n,small:o,size:r,xLarge:a,xSmall:s}=this.$props;return{dark:e,large:t,light:i,medium:n,size:r,small:o,xLarge:a,xSmall:s}},isHovering(){return this.hover&&this.hoverIndex>=0}},watch:{internalValue(e){e!==this.value&&this.$emit("input",e)},value(e){this.internalValue=e}},methods:{createClickFn(e){return t=>{if(this.readonly)return;const i=this.genHoverIndex(t,e);this.clearable&&this.internalValue===i?this.internalValue=0:this.internalValue=i}},createProps(e){const t={index:e,value:this.internalValue,click:this.createClickFn(e),isFilled:Math.floor(this.internalValue)>e,isHovered:Math.floor(this.hoverIndex)>e};return this.halfIncrements&&(t.isHalfHovered=!t.isHovered&&(this.hoverIndex-e)%1>0,t.isHalfFilled=!t.isFilled&&(this.internalValue-e)%1>0),t},genHoverIndex(e,t){let i=this.isHalfEvent(e);return this.halfIncrements&&this.$vuetify.rtl&&(i=!i),t+(i?.5:1)},getIconName(e){const t=this.isHovering?e.isHovered:e.isFilled,i=this.isHovering?e.isHalfHovered:e.isHalfFilled;return t?this.fullIcon:i?this.halfIcon:this.emptyIcon},getColor(e){if(this.isHovering){if(e.isHovered||e.isHalfHovered)return this.color}else if(e.isFilled||e.isHalfFilled)return this.color;return this.backgroundColor},isHalfEvent(e){if(this.halfIncrements){const t=e.target&&e.target.getBoundingClientRect();if(t&&e.pageX-t.left<t.width/2)return!0}return!1},onMouseEnter(e,t){this.runDelay("open",(()=>{this.hoverIndex=this.genHoverIndex(e,t)}))},onMouseLeave(){this.runDelay("close",(()=>this.hoverIndex=-1))},genItem(e){const t=this.createProps(e);if(this.$scopedSlots.item)return this.$scopedSlots.item(t);const i={click:t.click};return this.hover&&(i.mouseenter=t=>this.onMouseEnter(t,e),i.mouseleave=this.onMouseLeave,this.halfIncrements&&(i.mousemove=t=>this.onMouseEnter(t,e))),this.$createElement(n.Z,this.setTextColor(this.getColor(t),{attrs:{"aria-label":this.$vuetify.lang.t(this.iconLabel,e+1,Number(this.length))},directives:this.directives,props:this.iconProps,on:i}),[this.getIconName(t)])}},render(e){const t=(0,d.MT)(Number(this.length)).map((e=>this.genItem(e)));return e("div",{staticClass:"v-rating",class:{"v-rating--readonly":this.readonly,"v-rating--dense":this.dense}},t)}})},7550:function(e,t,i){"use strict";var n=i(37069),o=i(20144);t["Z"]=o["default"].extend({name:"rippleable",directives:{ripple:n.Z},props:{ripple:{type:[Boolean,Object],default:!0}},methods:{genRipple(e={}){return this.ripple?(e.staticClass="v-input--selection-controls__ripple",e.directives=e.directives||[],e.directives.push({name:"ripple",value:{center:!0}}),this.$createElement("div",e)):null}}})},23575:function(e,t,i){"use strict";i(30381);t["Z"]={title:"gantff",methods:{date_watch(e,t){let i=[{},{text:"days",num:14},{text:"weeks",num:84},{text:"months",num:500},{text:"quarters",num:1260},{text:"years",num:99999999999999}],n=Math.ceil(Math.abs(new Date(e).getTime()-new Date(t).getTime())/864e5);for(let o=0;o<i.length;o++)if(n<=i[o].num)return i[o-1].text},changeddialog(e){this.dialoginfo=e},rebuild(){setTimeout(this.reb,5)},reb(){this.gantt.repaint()},stype_starter(){return this.date_watch(this.getTaskdatestart(),this.getTaskdateend(),this.$refs.ganttRef)},onSelectionChanged(e){this.disableContextMenu="p-0"==e.selectedRowKey},onContextMenuPreparing(e){if(void 0!=e.targetKey&&"parent"!=e.targetKey.split("-")[0]){let t=this.tasks.find((t=>t.id==e.targetKey)),i=this.resourceAssignments.find((e=>e.taskId==t.id));[1,3].includes(t.status.id)||-1==this.resources.findIndex((e=>e.id==i.resourceId))?(this.contextMenuItems=this.getContextMenuItems(e.targetKey.split("-")[0]),e.cancel=this.disableContextMenu,this.selectedkey=e.data):e.cancel=!0}else e.cancel=!0},onPreventContextMenuShowing(e){this.disableContextMenu=e.value},onCustomCommandClick(e){this[e.name]()},getContextMenuItems(e){return this[e]},saveit(){console.log(this.dialoginfo,"dialoginfo"),this.$emit("saver",{am:this.actionmethod,val:this.dialoginfo}),this.dialog=!1,this.deldialog=!1},topline(e,t,i){let{name:n,id:o,resp:r,parentId:a,start:s,end:l}={...e,parentId:0,start:new Date(t),end:new Date(i)},d=Object.assign({},{title:n,id:o,parentId:a,start:s,end:l,resp:r});return d.id=`parent-${d.id}`,console.log(d),d}}}},39299:function(e,t,i){"use strict";function n(){return n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},n.apply(this,arguments)}i.d(t,{Z:function(){return n}})},3802:function(e,t,i){"use strict";function n(e,t){if(null==e)return{};var i,n,o={},r=Object.keys(e);for(n=0;n<r.length;n++)i=r[n],t.indexOf(i)>=0||(o[i]=e[i]);return o}i.d(t,{Z:function(){return n}})},22233:function(e){"use strict";e.exports=JSON.parse('{"ru":{"Yes":"Да","No":"Нет","Cancel":"Отмена","Close":"Закрыть","Clear":"Очистить","Done":"Готово","Loading":"Загрузка...","Select":"Выбрать...","Search":"Поиск","Back":"Назад","OK":"OK","dxCollectionWidget-noDataText":"Нет данных для отображения","dxDropDownEditor-selectLabel":"Выбрать","validation-required":"Поле необходимо заполнить","validation-required-formatted":"Необходимо заполнить: {0}","validation-numeric":"Значение должно быть числом","validation-numeric-formatted":"Значение поля {0} должно быть числом","validation-range":"Значение поля не входит в диапазон","validation-range-formatted":"Значение поля {0} не входит в диапазон","validation-stringLength":"Неверная длина значения в поле","validation-stringLength-formatted":"Неверная длина значения в поле {0}","validation-custom":"Недопустимое значение","validation-custom-formatted":"Недопустимое значение: {0}","validation-async":"Недопустимое значение","validation-async-formatted":"Недопустимое значение: {0}","validation-compare":"Значения полей не соответствуют друг другу.","validation-compare-formatted":"Значение поля {0} не соответствует","validation-pattern":"Значение не соответствует шаблону","validation-pattern-formatted":"Значение поля {0} не соответствует шаблону","validation-email":"Недопустимое значение email","validation-email-formatted":"Недопустимое значениe {0}","validation-mask":"Недопустимое значение","dxLookup-searchPlaceholder":"Минимальное количество символов: {0}","dxList-pullingDownText":"Потяните, чтобы обновить...","dxList-pulledDownText":"Отпустите, чтобы обновить...","dxList-refreshingText":"Обновление...","dxList-pageLoadingText":"Загрузка...","dxList-nextButtonText":"Далее","dxList-selectAll":"Выбрать все","dxListEditDecorator-delete":"Удалить","dxListEditDecorator-more":"Еще","dxScrollView-pullingDownText":"Потяните, чтобы обновить...","dxScrollView-pulledDownText":"Отпустите, чтобы обновить...","dxScrollView-refreshingText":"Обновление...","dxScrollView-reachBottomText":"Загрузка...","dxDateBox-simulatedDataPickerTitleTime":"Выберите время","dxDateBox-simulatedDataPickerTitleDate":"Выберите дату","dxDateBox-simulatedDataPickerTitleDateTime":"Выберите дату и время","dxDateBox-validation-datetime":"Значение должно быть датой/временем","dxFileUploader-selectFile":"Выберите файл","dxFileUploader-dropFile":"или Перетащите файл сюда","dxFileUploader-bytes":"байт","dxFileUploader-kb":"кБ","dxFileUploader-Mb":"МБ","dxFileUploader-Gb":"ГБ","dxFileUploader-upload":"Загрузить","dxFileUploader-uploaded":"Загружено","dxFileUploader-readyToUpload":"Готово к загрузке","dxFileUploader-uploadAbortedMessage":"Загрузка отменена","dxFileUploader-uploadFailedMessage":"Загрузка не удалась","dxFileUploader-invalidFileExtension":"Недопустимое расширение файла","dxFileUploader-invalidMaxFileSize":"Файл слишком большой","dxFileUploader-invalidMinFileSize":"Файл слишком маленький","dxRangeSlider-ariaFrom":"От","dxRangeSlider-ariaTill":"До","dxSwitch-switchedOnText":"ВКЛ","dxSwitch-switchedOffText":"ВЫКЛ","dxForm-optionalMark":"необязательный","dxForm-requiredMessage":" Поле {0} должно быть заполнено","dxNumberBox-invalidValueMessage":"Значение должно быть числом","dxNumberBox-noDataText":"Нет данных","dxDataGrid-columnChooserTitle":"Выбор столбцов","dxDataGrid-columnChooserEmptyText":"Перетащите столбец сюда, чтобы скрыть его","dxDataGrid-groupContinuesMessage":"Продолжение на следующей странице","dxDataGrid-groupContinuedMessage":"Продолжение с предыдущей страницы","dxDataGrid-groupHeaderText":"Сгруппировать данные по этому столбцу","dxDataGrid-ungroupHeaderText":"Разгруппировать данные по этому столбцу","dxDataGrid-ungroupAllText":"Сбросить группирование","dxDataGrid-editingEditRow":"Редактировать","dxDataGrid-editingSaveRowChanges":"Сохранить","dxDataGrid-editingCancelRowChanges":"Отменить","dxDataGrid-editingDeleteRow":"Удалить","dxDataGrid-editingUndeleteRow":"Восстановить","dxDataGrid-editingConfirmDeleteMessage":"Вы уверены, что хотите удалить эту запись?","dxDataGrid-validationCancelChanges":"Отменить изменения","dxDataGrid-groupPanelEmptyText":"Перетащите столбец сюда, чтобы сгруппировать по нему","dxDataGrid-noDataText":"Нет данных","dxDataGrid-searchPanelPlaceholder":"Искать...","dxDataGrid-filterRowShowAllText":"(Все)","dxDataGrid-filterRowResetOperationText":"Сбросить","dxDataGrid-filterRowOperationEquals":"Равно","dxDataGrid-filterRowOperationNotEquals":"Не равно","dxDataGrid-filterRowOperationLess":"Меньше","dxDataGrid-filterRowOperationLessOrEquals":"Меньше или равно","dxDataGrid-filterRowOperationGreater":"Больше","dxDataGrid-filterRowOperationGreaterOrEquals":"Больше или равно","dxDataGrid-filterRowOperationStartsWith":"Начинается с","dxDataGrid-filterRowOperationContains":"Содержит","dxDataGrid-filterRowOperationNotContains":"Не содержит","dxDataGrid-filterRowOperationEndsWith":"Заканчивается на","dxDataGrid-filterRowOperationBetween":"В диапазоне","dxDataGrid-filterRowOperationBetweenStartText":"Начало","dxDataGrid-filterRowOperationBetweenEndText":"Конец","dxDataGrid-applyFilterText":"Применить фильтр","dxDataGrid-trueText":"Да","dxDataGrid-falseText":"Нет","dxDataGrid-sortingAscendingText":"Сортировать по возрастанию","dxDataGrid-sortingDescendingText":"Сортировать по убыванию","dxDataGrid-sortingClearText":"Сбросить сортировку","dxDataGrid-editingSaveAllChanges":"Сохранить изменения","dxDataGrid-editingCancelAllChanges":"Отменить изменения","dxDataGrid-editingAddRow":"Добавить строку","dxDataGrid-summaryMin":"Мин: {0}","dxDataGrid-summaryMinOtherColumn":"Мин по {1} : {0}","dxDataGrid-summaryMax":"Макс: {0}","dxDataGrid-summaryMaxOtherColumn":"Макс по {1} : {0}","dxDataGrid-summaryAvg":"Срзнач: {0}","dxDataGrid-summaryAvgOtherColumn":"Срзнач по {1} : {0}","dxDataGrid-summarySum":"Сумм: {0}","dxDataGrid-summarySumOtherColumn":"Сумм по {1} : {0}","dxDataGrid-summaryCount":"Кол-во: {0}","dxDataGrid-columnFixingFix":"Закрепить","dxDataGrid-columnFixingUnfix":"Открепить","dxDataGrid-columnFixingLeftPosition":"Налево","dxDataGrid-columnFixingRightPosition":"Направо","dxDataGrid-exportTo":"Экспортировать","dxDataGrid-exportToExcel":"Экспортировать в Excel файл","dxDataGrid-exporting":"Экспорт...","dxDataGrid-excelFormat":"Excel файл","dxDataGrid-selectedRows":"Выбранные строки","dxDataGrid-exportSelectedRows":"Экспортировать выбранные строки в {0}","dxDataGrid-exportAll":"Экспортировать всё в {0}","dxDataGrid-headerFilterLabel":"Фильтрация","dxDataGrid-headerFilterIndicatorLabel":"Открыть настройки фильтрации для столбца \'{0}\'","dxDataGrid-headerFilterEmptyValue":"(Пустое)","dxDataGrid-headerFilterOK":"ОК","dxDataGrid-headerFilterCancel":"Отменить","dxDataGrid-ariaAdaptiveCollapse":"Скрыть дополнительные данные","dxDataGrid-ariaAdaptiveExpand":"Показать дополнительные данные","dxDataGrid-ariaColumn":"Столбец","dxDataGrid-ariaValue":"Значение","dxDataGrid-ariaFilterCell":"Фильтр","dxDataGrid-ariaCollapse":"Свернуть","dxDataGrid-ariaExpand":"Развернуть","dxDataGrid-ariaDataGrid":"Таблица данных","dxDataGrid-ariaSearchInGrid":"Искать в таблице данных","dxDataGrid-ariaSelectAll":"Выбрать всё","dxDataGrid-ariaSelectRow":"Выбрать строку","dxDataGrid-ariaToolbar":"Панель инструментов таблицы данных","dxDataGrid-filterBuilderPopupTitle":"Конструктор фильтра","dxDataGrid-filterPanelCreateFilter":"Создать фильтр","dxDataGrid-filterPanelClearFilter":"Очистить","dxDataGrid-filterPanelFilterEnabledHint":"Активировать фильтр","dxTreeList-ariaTreeList":"Иерархическая таблица данных","dxTreeList-ariaSearchInGrid":"Искать в иерархической таблице данных","dxTreeList-ariaToolbar":"Панель инструментов иерархической таблицы данных","dxTreeList-editingAddRowToNode":"Добавить","dxPager-infoText":"Страница {0} из {1} (Всего элементов: {2})","dxPager-pagesCountText":"из","dxPager-pageSize":"Количество элементов на странице: {0}","dxPager-pageSizesAllText":"Все","dxPager-page":"Страница {0}","dxPager-prevPage":"Предыдущая страница","dxPager-nextPage":"Следующая страница","dxPager-ariaLabel":"Навигация по страницам","dxPivotGrid-grandTotal":"Итого","dxPivotGrid-total":"{0} Всего","dxPivotGrid-fieldChooserTitle":"Выбор полей","dxPivotGrid-showFieldChooser":"Показать выбор полей","dxPivotGrid-expandAll":"Раскрыть все","dxPivotGrid-collapseAll":"Свернуть все","dxPivotGrid-sortColumnBySummary":"Сортировать \\"{0}\\" по этой колонке","dxPivotGrid-sortRowBySummary":"Сортировать \\"{0}\\" по этой строке","dxPivotGrid-removeAllSorting":"Сбросить все сортировки","dxPivotGrid-dataNotAvailable":"Н/Д","dxPivotGrid-rowFields":"Поля строк","dxPivotGrid-columnFields":"Поля столбцов","dxPivotGrid-dataFields":"Поля данных","dxPivotGrid-filterFields":"Поля фильтров","dxPivotGrid-allFields":"Все поля","dxPivotGrid-columnFieldArea":"Перетащите поля колонок cюда","dxPivotGrid-dataFieldArea":"Перетащите поля данных cюда","dxPivotGrid-rowFieldArea":"Перетащите поля строк cюда","dxPivotGrid-filterFieldArea":"Перетащите поля фильтров cюда","dxScheduler-editorLabelTitle":"Название","dxScheduler-editorLabelStartDate":"Дата начала","dxScheduler-editorLabelEndDate":"Дата завершения","dxScheduler-editorLabelDescription":"Описание","dxScheduler-editorLabelRecurrence":"Повторение","dxScheduler-openAppointment":"Открыть задачу","dxScheduler-recurrenceNever":"Никогда","dxScheduler-recurrenceMinutely":"Ежеминутно","dxScheduler-recurrenceHourly":"Ежечасно","dxScheduler-recurrenceDaily":"Ежедневно","dxScheduler-recurrenceWeekly":"Еженедельно","dxScheduler-recurrenceMonthly":"Ежемесячно","dxScheduler-recurrenceYearly":"Ежегодно","dxScheduler-recurrenceRepeatEvery":"Интервал","dxScheduler-recurrenceRepeatOn":"Повторять по","dxScheduler-recurrenceEnd":"Завершить повторение","dxScheduler-recurrenceAfter":"После","dxScheduler-recurrenceOn":"Повторять до","dxScheduler-recurrenceRepeatMinutely":"минут(минуты)","dxScheduler-recurrenceRepeatHourly":"часов(часа)","dxScheduler-recurrenceRepeatDaily":"дней(дня)","dxScheduler-recurrenceRepeatWeekly":"недели(недель)","dxScheduler-recurrenceRepeatMonthly":"месяца(месяцев)","dxScheduler-recurrenceRepeatYearly":"года(лет)","dxScheduler-switcherDay":"День","dxScheduler-switcherWeek":"Неделя","dxScheduler-switcherWorkWeek":"Рабочая неделя","dxScheduler-switcherMonth":"Месяц","dxScheduler-switcherAgenda":"Расписание","dxScheduler-switcherTimelineDay":"Хронология дня","dxScheduler-switcherTimelineWeek":"Хронология недели","dxScheduler-switcherTimelineWorkWeek":"Хронология рабочей недели","dxScheduler-switcherTimelineMonth":"Хронология месяца","dxScheduler-recurrenceRepeatOnDate":"до даты","dxScheduler-recurrenceRepeatCount":"повторений","dxScheduler-allDay":"Весь день","dxScheduler-confirmRecurrenceEditMessage":"Вы хотите отредактировать только это событие или всю серию?","dxScheduler-confirmRecurrenceDeleteMessage":"Вы хотите удалить только это событие или всю серию?","dxScheduler-confirmRecurrenceEditSeries":"Всю серию","dxScheduler-confirmRecurrenceDeleteSeries":"Всю серию","dxScheduler-confirmRecurrenceEditOccurrence":"Только это событие","dxScheduler-confirmRecurrenceDeleteOccurrence":"Только это событие","dxScheduler-noTimezoneTitle":"Часовой пояс не выбран","dxScheduler-moreAppointments":"и еще {0}","dxCalendar-todayButtonText":"Сегодня","dxCalendar-ariaWidgetName":"Календарь","dxColorView-ariaRed":"Красный","dxColorView-ariaGreen":"Зеленый","dxColorView-ariaBlue":"Синий","dxColorView-ariaAlpha":"Прозрачность","dxColorView-ariaHex":"Код цвета","dxTagBox-selected":"{0} выбрано","dxTagBox-allSelected":"Выбрано все ({0})","dxTagBox-moreSelected":"и еще {0}","vizExport-printingButtonText":"Печать","vizExport-titleMenuText":"Экспорт/Печать","vizExport-exportButtonText":"{0} файл","dxFilterBuilder-and":"И","dxFilterBuilder-or":"Или","dxFilterBuilder-notAnd":"Не И","dxFilterBuilder-notOr":"Не Или","dxFilterBuilder-addCondition":"Добавить условие","dxFilterBuilder-addGroup":"Добавить группу","dxFilterBuilder-enterValueText":"<введите значение>","dxFilterBuilder-filterOperationEquals":"Равно","dxFilterBuilder-filterOperationNotEquals":"Не равно","dxFilterBuilder-filterOperationLess":"Меньше","dxFilterBuilder-filterOperationLessOrEquals":"Меньше или равно","dxFilterBuilder-filterOperationGreater":"Больше","dxFilterBuilder-filterOperationGreaterOrEquals":"Больше или равно","dxFilterBuilder-filterOperationStartsWith":"Начинается с","dxFilterBuilder-filterOperationContains":"Содержит","dxFilterBuilder-filterOperationNotContains":"Не содержит","dxFilterBuilder-filterOperationEndsWith":"Заканчивается на","dxFilterBuilder-filterOperationIsBlank":"Пусто","dxFilterBuilder-filterOperationIsNotBlank":"Не пусто","dxFilterBuilder-filterOperationBetween":"В диапазоне","dxFilterBuilder-filterOperationAnyOf":"Любой из","dxFilterBuilder-filterOperationNoneOf":"Ни один из","dxHtmlEditor-dialogColorCaption":"Изменить цвет текста","dxHtmlEditor-dialogBackgroundCaption":"Изменить цвет фона","dxHtmlEditor-dialogLinkCaption":"Добавить ссылку","dxHtmlEditor-dialogLinkUrlField":"URL","dxHtmlEditor-dialogLinkTextField":"Текст","dxHtmlEditor-dialogLinkTargetField":"Открыть в новом окне","dxHtmlEditor-dialogImageCaption":"Добавить изображение","dxHtmlEditor-dialogImageUrlField":"URL","dxHtmlEditor-dialogImageAltField":"Альтернативный текст","dxHtmlEditor-dialogImageWidthField":"Ширина (px)","dxHtmlEditor-dialogImageHeightField":"Высота (px)","dxHtmlEditor-dialogInsertTableRowsField":"Строки","dxHtmlEditor-dialogInsertTableColumnsField":"Колонки","dxHtmlEditor-dialogInsertTableCaption":"Вставить таблицу","dxHtmlEditor-dialogUpdateImageCaption":"Изменить Изображение","dxHtmlEditor-dialogImageUpdateButton":"Изменить","dxHtmlEditor-dialogImageAddButton":"Добавить","dxHtmlEditor-dialogImageSpecifyUrl":"Из интернета","dxHtmlEditor-dialogImageSelectFile":"С устройства","dxHtmlEditor-dialogImageKeepAspectRatio":"Сохранять пропорции","dxHtmlEditor-dialogImageEncodeToBase64":"Кодировать в Base64","dxHtmlEditor-heading":"Заголовок","dxHtmlEditor-normalText":"Обычный текст","dxHtmlEditor-background":"Цвет фона","dxHtmlEditor-bold":"Полужирный","dxHtmlEditor-color":"Цвет текста","dxHtmlEditor-font":"Шрифт","dxHtmlEditor-italic":"Курсив","dxHtmlEditor-link":"Добавить ссылку","dxHtmlEditor-image":"Добавить изображение","dxHtmlEditor-size":"Размер шрифта","dxHtmlEditor-strike":"Зачеркнутый","dxHtmlEditor-subscript":"Нижний индекс","dxHtmlEditor-superscript":"Верхний индекс","dxHtmlEditor-underline":"Подчеркнутый","dxHtmlEditor-blockquote":"Цитата","dxHtmlEditor-header":"Заголовок","dxHtmlEditor-increaseIndent":"Увеличить отступ","dxHtmlEditor-decreaseIndent":"Уменьшить отступ","dxHtmlEditor-orderedList":"Нумерованный список","dxHtmlEditor-bulletList":"Маркированный список","dxHtmlEditor-alignLeft":"Выравнивание по левому краю","dxHtmlEditor-alignCenter":"Выравнивание по центру","dxHtmlEditor-alignRight":"Выравнивание по правому краю","dxHtmlEditor-alignJustify":"Выравнивание по ширине","dxHtmlEditor-codeBlock":"Блок кода","dxHtmlEditor-variable":"Добавить переменную","dxHtmlEditor-undo":"Отменить","dxHtmlEditor-redo":"Повторить","dxHtmlEditor-clear":"Очистить форматирование","dxHtmlEditor-insertTable":"Вставить таблицу","dxHtmlEditor-insertHeaderRow":"Вставить строку заголовков","dxHtmlEditor-insertRowAbove":"Вставить строку сверху","dxHtmlEditor-insertRowBelow":"Вставить строку снизу","dxHtmlEditor-insertColumnLeft":"Вставить колонку слева","dxHtmlEditor-insertColumnRight":"Вставить колонку справа","dxHtmlEditor-deleteColumn":"Удалить колонку","dxHtmlEditor-deleteRow":"Удалить строку","dxHtmlEditor-deleteTable":"Удалить таблицу","dxHtmlEditor-cellProperties":"Свойства ячейки","dxHtmlEditor-tableProperties":"Свойства таблицы","dxHtmlEditor-insert":"Вставка","dxHtmlEditor-delete":"Удаление","dxHtmlEditor-border":"Граница","dxHtmlEditor-style":"Стиль","dxHtmlEditor-width":"Ширина","dxHtmlEditor-height":"Высота","dxHtmlEditor-borderColor":"Цвет","dxHtmlEditor-tableBackground":"Цвет фона","dxHtmlEditor-dimensions":"Размеры","dxHtmlEditor-alignment":"Выравнивание","dxHtmlEditor-horizontal":"Горизонтальное","dxHtmlEditor-vertical":"Вертикальное","dxHtmlEditor-paddingVertical":"Вертикальный отступ","dxHtmlEditor-paddingHorizontal":"Горизонтальный отступ","dxHtmlEditor-pixels":"Пиксели","dxHtmlEditor-list":"Список","dxHtmlEditor-ordered":"Нумерованный","dxHtmlEditor-bullet":"Маркированный","dxHtmlEditor-align":"Выравнивание","dxHtmlEditor-center":"По центру","dxHtmlEditor-left":"По левому краю","dxHtmlEditor-right":"По правому краю","dxHtmlEditor-indent":"Отступ","dxHtmlEditor-justify":"По ширине","dxFileManager-newDirectoryName":"Без названия","dxFileManager-rootDirectoryName":"Файлы","dxFileManager-errorNoAccess":"Доступ запрещён. Операция не может быть завершена.","dxFileManager-errorDirectoryExistsFormat":"Каталог {0} уже существует.","dxFileManager-errorFileExistsFormat":"Файл {0} уже существует.","dxFileManager-errorFileNotFoundFormat":"Файл {0} не найден.","dxFileManager-errorDirectoryNotFoundFormat":"Каталог \'{0}\' не найден.","dxFileManager-errorWrongFileExtension":"Неверное расширение файла.","dxFileManager-errorMaxFileSizeExceeded":"Размер файла превышает допустимое значение.","dxFileManager-errorInvalidSymbols":"Введённое имя содержит недопустимые символы.","dxFileManager-errorDefault":"Неизвестная ошибка","dxFileManager-errorDirectoryOpenFailed":"Не удалось открыть каталог","dxFileManager-commandCreate":"Новая папка","dxFileManager-commandRename":"Переименовать","dxFileManager-commandMove":"Переместить в","dxFileManager-commandCopy":"Копировать в","dxFileManager-commandDelete":"Удалить","dxFileManager-commandDownload":"Скачать","dxFileManager-commandUpload":"Загрузить файлы","dxFileManager-commandRefresh":"Обновить","dxFileManager-commandThumbnails":"Режим эксизов","dxFileManager-commandDetails":"Режим списка","dxFileManager-commandClearSelection":"Очистить выделение","dxFileManager-commandShowNavPane":"Переключить панель навигации","dxFileManager-dialogDirectoryChooserMoveTitle":"Переместить в","dxFileManager-dialogDirectoryChooserMoveButtonText":"Переместить","dxFileManager-dialogDirectoryChooserCopyTitle":"Копировать в","dxFileManager-dialogDirectoryChooserCopyButtonText":"Копировать","dxFileManager-dialogRenameItemTitle":"Переименовать","dxFileManager-dialogRenameItemButtonText":"Сохранить","dxFileManager-dialogCreateDirectoryTitle":"Новая папка","dxFileManager-dialogCreateDirectoryButtonText":"Создать","dxFileManager-dialogDeleteItemTitle":"Удаление элемента","dxFileManager-dialogDeleteItemButtonText":"Удалить","dxFileManager-dialogDeleteItemSingleItemConfirmation":"Вы действительно хотите удалить {0}?","dxFileManager-dialogDeleteItemMultipleItemsConfirmation":"Вы действительно хотите удалить {0} элементов?","dxFileManager-dialogButtonCancel":"Отмена","dxFileManager-editingCreateSingleItemProcessingMessage":"Создаётся папка в {0}","dxFileManager-editingCreateSingleItemSuccessMessage":"Создана папка в {0}","dxFileManager-editingCreateSingleItemErrorMessage":"Не удалось создать папку","dxFileManager-editingCreateCommonErrorMessage":"Не удалось создать папку","dxFileManager-editingRenameSingleItemProcessingMessage":"Переименовывается элемент в {0}","dxFileManager-editingRenameSingleItemSuccessMessage":"Переименован элемент в {0}","dxFileManager-editingRenameSingleItemErrorMessage":"Не удалось переименовать элемент","dxFileManager-editingRenameCommonErrorMessage":"Не удалось переименовать элемент","dxFileManager-editingDeleteSingleItemProcessingMessage":"Элемент удаляется из {0}","dxFileManager-editingDeleteMultipleItemsProcessingMessage":"Удаление {0} элементов из {1}","dxFileManager-editingDeleteSingleItemSuccessMessage":"Элемент удалён из {0}","dxFileManager-editingDeleteMultipleItemsSuccessMessage":"{0} элементов удалено из {1}","dxFileManager-editingDeleteSingleItemErrorMessage":"Не удалось удалить элемент","dxFileManager-editingDeleteMultipleItemsErrorMessage":"{0} элементов не были удалены","dxFileManager-editingDeleteCommonErrorMessage":"Некоторые элементы не были удалены","dxFileManager-editingMoveSingleItemProcessingMessage":"Элемент перемещается в {0}","dxFileManager-editingMoveMultipleItemsProcessingMessage":"Перемещение {0} элементов в {1}","dxFileManager-editingMoveSingleItemSuccessMessage":"Элемент перемещён в {0}","dxFileManager-editingMoveMultipleItemsSuccessMessage":"{0} элементов перемещено в {1}","dxFileManager-editingMoveSingleItemErrorMessage":"Не удалось переместить элемент","dxFileManager-editingMoveMultipleItemsErrorMessage":"{0} элементов не были перемещены","dxFileManager-editingMoveCommonErrorMessage":"Некоторые элементы не были перемещены","dxFileManager-editingCopySingleItemProcessingMessage":"Элемент копируется в {0}","dxFileManager-editingCopyMultipleItemsProcessingMessage":"Коипрование {0} элементов в {1}","dxFileManager-editingCopySingleItemSuccessMessage":"Элемент скопирован в {0}","dxFileManager-editingCopyMultipleItemsSuccessMessage":"{0} элементов скопировано в {1}","dxFileManager-editingCopySingleItemErrorMessage":"Не удалось скопировать элемент","dxFileManager-editingCopyMultipleItemsErrorMessage":"{0} элементов не были скопированы","dxFileManager-editingCopyCommonErrorMessage":"Некоторые элементы не были скопированы","dxFileManager-editingUploadSingleItemProcessingMessage":"Элемент загружается в {0}","dxFileManager-editingUploadMultipleItemsProcessingMessage":"Загрузка {0} элементов в {1}","dxFileManager-editingUploadSingleItemSuccessMessage":"Элемент загружен в {0}","dxFileManager-editingUploadMultipleItemsSuccessMessage":"{0} элементов загружено в {1}","dxFileManager-editingUploadSingleItemErrorMessage":"Не удалось загрузить элемент","dxFileManager-editingUploadMultipleItemsErrorMessage":"{0} элементов не были загружены","dxFileManager-editingUploadCanceledMessage":"Отменено","dxFileManager-editingDownloadSingleItemErrorMessage":"Не удалось скачать файл","dxFileManager-editingDownloadMultipleItemsErrorMessage":"Не удалось скачать {0} файлов","dxFileManager-listDetailsColumnCaptionName":"Название","dxFileManager-listDetailsColumnCaptionDateModified":"Дата изменения","dxFileManager-listDetailsColumnCaptionFileSize":"Размер файла","dxFileManager-listThumbnailsTooltipTextSize":"Размер","dxFileManager-listThumbnailsTooltipTextDateModified":"Дата изменения","dxFileManager-notificationProgressPanelTitle":"Прогресс","dxFileManager-notificationProgressPanelEmptyListText":"Операции отсутствуют","dxFileManager-notificationProgressPanelOperationCanceled":"Отменено","dxDiagram-categoryGeneral":"Общие","dxDiagram-categoryFlowchart":"Блок-схема","dxDiagram-categoryOrgChart":"Организационная схема","dxDiagram-categoryContainers":"Контейнеры","dxDiagram-categoryCustom":"Пользовательские","dxDiagram-commandExportToSvg":"Экспорт в SVG","dxDiagram-commandExportToPng":"Экспорт в PNG","dxDiagram-commandExportToJpg":"Экспорт в JPEG","dxDiagram-commandUndo":"Отменить","dxDiagram-commandRedo":"Повторить","dxDiagram-commandFontName":"Название шрифта","dxDiagram-commandFontSize":"Размер шрифта","dxDiagram-commandBold":"Полужирный","dxDiagram-commandItalic":"Курсив","dxDiagram-commandUnderline":"Подчеркнутый","dxDiagram-commandTextColor":"Цвет текста","dxDiagram-commandLineColor":"Цвет линии","dxDiagram-commandLineWidth":"Ширина линии","dxDiagram-commandLineStyle":"Стиль линии","dxDiagram-commandLineStyleSolid":"Сплошная","dxDiagram-commandLineStyleDotted":"Пунктирная","dxDiagram-commandLineStyleDashed":"Штриховая","dxDiagram-commandFillColor":"Цвет заливки","dxDiagram-commandAlignLeft":"Выравнивание по левому краю","dxDiagram-commandAlignCenter":"Выравнивание по центру","dxDiagram-commandAlignRight":"Выравнивание по правому краю","dxDiagram-commandConnectorLineType":"Тип соединителя","dxDiagram-commandConnectorLineStraight":"Прямой","dxDiagram-commandConnectorLineOrthogonal":"Ортогональный","dxDiagram-commandConnectorLineStart":"Тип начала соединителя","dxDiagram-commandConnectorLineEnd":"Тип конца соединителя","dxDiagram-commandConnectorLineNone":"Нет","dxDiagram-commandConnectorLineArrow":"Стрелка","dxDiagram-commandFullscreen":"Полноэкранный режим","dxDiagram-commandUnits":"Единицы измерения","dxDiagram-commandPageSize":"Размер страницы","dxDiagram-commandPageOrientation":"Ориентация страницы","dxDiagram-commandPageOrientationLandscape":"Альбомная","dxDiagram-commandPageOrientationPortrait":"Портретная","dxDiagram-commandPageColor":"Цвет страницы","dxDiagram-commandShowGrid":"Показывать сетку","dxDiagram-commandSnapToGrid":"Привязка к сетке","dxDiagram-commandGridSize":"Размер сетки","dxDiagram-commandZoomLevel":"Маштаб","dxDiagram-commandAutoZoom":"Автомаштаб","dxDiagram-commandFitToContent":"Вместить по содержимому","dxDiagram-commandFitToWidth":"Вместить по ширине","dxDiagram-commandAutoZoomByContent":"Автомаштаб по содержимому","dxDiagram-commandAutoZoomByWidth":"Автомаштаб по ширине","dxDiagram-commandSimpleView":"Упрощенный вид","dxDiagram-commandCut":"Вырезать","dxDiagram-commandCopy":"Копировать","dxDiagram-commandPaste":"Вставить","dxDiagram-commandSelectAll":"Выделить всё","dxDiagram-commandDelete":"Удалить","dxDiagram-commandBringToFront":"На передний план","dxDiagram-commandSendToBack":"На задний план","dxDiagram-commandLock":"Заблокировать","dxDiagram-commandUnlock":"Разблокировать","dxDiagram-commandInsertShapeImage":"Добавить изображение...","dxDiagram-commandEditShapeImage":"Изменить изображение...","dxDiagram-commandDeleteShapeImage":"Удалить изображение","dxDiagram-commandLayoutLeftToRight":"Слева направо","dxDiagram-commandLayoutRightToLeft":"Справа налево","dxDiagram-commandLayoutTopToBottom":"Сверху вниз","dxDiagram-commandLayoutBottomToTop":"Снизу вверх","dxDiagram-unitIn":"дюйм(а)","dxDiagram-unitCm":"см","dxDiagram-unitPx":"пиксель(я)","dxDiagram-dialogButtonOK":"ОК","dxDiagram-dialogButtonCancel":"Отмена","dxDiagram-dialogInsertShapeImageTitle":"Добавить изображение","dxDiagram-dialogEditShapeImageTitle":"Изменить изображение","dxDiagram-dialogEditShapeImageSelectButton":"Выберите изображение","dxDiagram-dialogEditShapeImageLabelText":"или перетащите файл сюда","dxDiagram-uiExport":"Экспорт","dxDiagram-uiProperties":"Свойства","dxDiagram-uiSettings":"Настройки","dxDiagram-uiShowToolbox":"Панель инструментов","dxDiagram-uiSearch":"Поиск","dxDiagram-uiStyle":"Стиль","dxDiagram-uiLayout":"Компоновка","dxDiagram-uiLayoutTree":"Древовидная","dxDiagram-uiLayoutLayered":"Многоуровневая","dxDiagram-uiDiagram":"Диаграмма","dxDiagram-uiText":"Текст","dxDiagram-uiObject":"Объект","dxDiagram-uiConnector":"Соединитель","dxDiagram-uiPage":"Страница","dxDiagram-shapeText":"Текст","dxDiagram-shapeRectangle":"Прямоугольник","dxDiagram-shapeEllipse":"Эллипс","dxDiagram-shapeCross":"Крест","dxDiagram-shapeTriangle":"Треугольник","dxDiagram-shapeDiamond":"Ромб","dxDiagram-shapeHeart":"Сердце","dxDiagram-shapePentagon":"Пятиугольник","dxDiagram-shapeHexagon":"Шестиугольник","dxDiagram-shapeOctagon":"Восьмиугольник","dxDiagram-shapeStar":"Звезда","dxDiagram-shapeArrowLeft":"Стрелка влево","dxDiagram-shapeArrowUp":"Стрелка вверх","dxDiagram-shapeArrowRight":"Стрелка вправо","dxDiagram-shapeArrowDown":"Стрелка вниз","dxDiagram-shapeArrowUpDown":"Стрелка вверх-вниз","dxDiagram-shapeArrowLeftRight":"Стрелка влево-вправо","dxDiagram-shapeProcess":"Процесс","dxDiagram-shapeDecision":"Решение","dxDiagram-shapeTerminator":"Терминатор","dxDiagram-shapePredefinedProcess":"Предопределенный процесс","dxDiagram-shapeDocument":"Документ","dxDiagram-shapeMultipleDocuments":"Документы","dxDiagram-shapeManualInput":"Ручной ввод","dxDiagram-shapePreparation":"Подготовка","dxDiagram-shapeData":"Данные","dxDiagram-shapeDatabase":"База данных","dxDiagram-shapeHardDisk":"Жесткий диск","dxDiagram-shapeInternalStorage":"Внутренняя память","dxDiagram-shapePaperTape":"Бумажная лента","dxDiagram-shapeManualOperation":"Ручная операция","dxDiagram-shapeDelay":"Задержка","dxDiagram-shapeStoredData":"Запоминаемые данные","dxDiagram-shapeDisplay":"Дисплей","dxDiagram-shapeMerge":"Слияние","dxDiagram-shapeConnector":"Соединитель","dxDiagram-shapeOr":"Или","dxDiagram-shapeSummingJunction":"Суммирование","dxDiagram-shapeContainerDefaultText":"Контейнер","dxDiagram-shapeVerticalContainer":"Вертикальный контейнер","dxDiagram-shapeHorizontalContainer":"Горизонтальный контейнер","dxDiagram-shapeCardDefaultText":"Имя человека","dxDiagram-shapeCardWithImageOnLeft":"Карточка с изображением слева","dxDiagram-shapeCardWithImageOnTop":"Карточка с изображением сверху","dxDiagram-shapeCardWithImageOnRight":"Карточка с изображением справа","dxGantt-dialogTitle":"Название","dxGantt-dialogStartTitle":"Начало","dxGantt-dialogEndTitle":"Окончание","dxGantt-dialogProgressTitle":"Прогресс","dxGantt-dialogResourcesTitle":"Ресурсы","dxGantt-dialogResourceManagerTitle":"Управление ресурсами","dxGantt-dialogTaskDetailsTitle":"Детали задачи","dxGantt-dialogEditResourceListHint":"Редактировать список ресурсов","dxGantt-dialogEditNoResources":"Список ресурсов пуст","dxGantt-dialogButtonAdd":"Добавить","dxGantt-contextMenuNewTask":"Новая задача","dxGantt-contextMenuNewSubtask":"Новая подзадача","dxGantt-contextMenuDeleteTask":"Удалить задачу","dxGantt-contextMenuDeleteDependency":"Удалить зависимость","dxGantt-dialogTaskDeleteConfirmation":"Удаление задачи приведет к удалению всех её зависимостей и подзадач. Вы уверены, что вы хотите удалить эту задачу?","dxGantt-dialogDependencyDeleteConfirmation":"Вы уверены, что хотите удалить эту зависимость из задачи?","dxGantt-dialogResourcesDeleteConfirmation":"Удаление ресурса также удалит его из всех задач, в которых он используется. Вы уверены, что хотите удалить эти ресурсы? Ресурсы: {0}","dxGantt-dialogConstraintCriticalViolationMessage":"Задача, которую вы передвигаете, имеет зависимость от другой задачи. Это изменение противоречит правилам валидации. Как вы хотите поступить?","dxGantt-dialogConstraintViolationMessage":"Задача, которую вы передвигаете, имеет зависимость от другой задачи. Как вы хотите поступить?","dxGantt-dialogCancelOperationMessage":"Отменить операцию","dxGantt-dialogDeleteDependencyMessage":"Удалить задачу","dxGantt-dialogMoveTaskAndKeepDependencyMessage":"Сохранить зависимость и передвинуть задачу","dxGantt-dialogConstraintCriticalViolationSeveralTasksMessage":"Вы передвигаете задачу, которая связана зависимостями с другими задачами. Это может вызвать конфликт с правилами зависимостей. Выберете дальнейшее действие:","dxGantt-dialogConstraintViolationSeveralTasksMessage":"Вы передвигаете задачу, которая связана зависимостями с другими задачами. Выберете дальнейшее действие:","dxGantt-dialogDeleteDependenciesMessage":"Удалить зависимости","dxGantt-dialogMoveTaskAndKeepDependenciesMessage":"Удалить задачу и сохранить зависимости","dxGantt-undo":"Отменить","dxGantt-redo":"Повторить","dxGantt-expandAll":"Развернуть все","dxGantt-collapseAll":"Свернуть все","dxGantt-addNewTask":"Добавить новую задачу","dxGantt-deleteSelectedTask":"Удалить выделенную задачу","dxGantt-zoomIn":"Увеличить масштаб","dxGantt-zoomOut":"Уменьшить масштаб","dxGantt-fullScreen":"Полноэкранный режим","dxGantt-quarter":"{0}-й кв.","dxGantt-sortingAscendingText":"Сортировать по возрастанию","dxGantt-sortingDescendingText":"Сортировать по убыванию","dxGantt-sortingClearText":"Сбросить сортировку","dxGantt-showResources":"Отображать Ресурсы","dxGantt-showDependencies":"Отображать Зависимости","dxGantt-dialogStartDateValidation":"Начальная дата должна быть позднее {0}","dxGantt-dialogEndDateValidation":"Конечная дата должна быть позднее {0}"}}')}}]);
//# sourceMappingURL=326.baf1129d.js.map