dhx-suite 8.2.2 → 8.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/codebase/suite.min.js +3 -3
- package/codebase/types/ts-grid/sources/types.d.ts +1 -1
- package/codebase/types/ts-grid/sources/ui/content/InputFilter.d.ts +5 -5
- package/codebase/types/ts-grid/sources/ui/content/SelectFilter.d.ts +4 -4
- package/package.json +1 -1
- package/readme.txt +1 -1
- package/whatsnew.txt +9 -0
package/codebase/suite.min.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
3
|
|
|
4
|
-
dhtmlxSuite v.8.2.
|
|
4
|
+
dhtmlxSuite v.8.2.3 GPL
|
|
5
5
|
|
|
6
6
|
This software is covered by GPL license.
|
|
7
7
|
To use it in non-GPL project, you need obtain Commercial or Enterprise license
|
|
@@ -9,7 +9,7 @@ Please contact sales@dhtmlx.com. Usage without proper license is prohibited.
|
|
|
9
9
|
(c) XB Software.
|
|
10
10
|
|
|
11
11
|
*/
|
|
12
|
-
if(window.dhx&&(window.dhx_legacy=dhx,delete window.dhx),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.dhx=e():t.dhx=e()}(window,function(){return n={},o.m=i=[function(t,o,r){"use strict";(function(t){Object.defineProperty(o,"__esModule",{value:!0});var e=r(120),n=r(3);function i(i){function e(t){var e=t.el.offsetHeight,t=t.el.offsetWidth;i(t,e)}var n=window.ResizeObserver;return n?o.el("div.dhx-resize-observer",{_hooks:{didInsert:function(t){new n(function(){return e(t)}).observe(t.el)}}}):o.el("iframe.dhx-resize-observer",{_hooks:{didInsert:function(t){t.el.contentWindow.onresize=function(){return e(t)},e(t)}}})}o.el=e.defineElement,o.sv=e.defineSvgElement,o.view=e.defineView,o.create=e.createView,o.inject=e.injectView,o.KEYED_LIST=e.KEYED_LIST,o.disableHelp=function(){e.DEVMODE.mutations=!1,e.DEVMODE.warnings=!1,e.DEVMODE.verbose=!1,e.DEVMODE.UNKEYED_INPUT=!1},o.resizer=i,o.resizeHandler=function(t,e){return o.create({render:function(){return i(e)}}).mount(t)},o.awaitRedraw=function(){return new t(function(t){requestAnimationFrame(function(){t()})})},o.setTheme=function(t,e){void 0===t&&(t="light");var i="data-dhx-theme";e||document.querySelectorAll("["+i+"]").forEach(function(t){return t.removeAttribute(i)}),e=e||document.documentElement,n.toNode(e).setAttribute(i,t)}}).call(this,r(17))},function(t,e,i){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r=i(3),n=(new Date).valueOf();e.uid=function(){return"u"+n++},e.extend=function t(e,i,n){if(void 0===n&&(n=!0),i)for(var o in i){var r=i[o],s=e[o];void 0===r?delete e[o]:!n||"object"!=typeof s||s instanceof Date||s instanceof Array?e[o]=r:t(s,r)}return e},e.copy=function(t,e){var i,n={};for(i in t)e&&i.startsWith("$")||(n[i]=t[i]);return n},e.naturalSort=function(t){return t.sort(function(t,e){return"string"==typeof t?t.localeCompare(e):t-e})},e.findIndex=function(t,e){for(var i=t.length,n=0;n<i;n++)if(e(t[n]))return n;return-1},e.isEqualString=function(t,e){if(t=t.toString(),e=e.toString(),t.length>e.length)return!1;for(var i=0;i<t.length;i++)if(t[i].toLowerCase()!==e[i].toLowerCase())return!1;return!0},e.singleOuterClick=function(e){var i=function(t){e(t)&&document.removeEventListener("click",i)};document.addEventListener("click",i)},e.detectWidgetClick=function(e,i){function t(t){return i(r.locate(t,"data-dhx-widget-id")===e)}return document.addEventListener("click",t),function(){return document.removeEventListener("click",t)}},e.unwrapBox=function(t){return Array.isArray(t)?t[0]:t},e.wrapBox=function(t){return Array.isArray(t)?t:[t]},e.isDefined=function(t){return null!=t},e.isId=function(t){return"number"==typeof t||"string"==typeof t&&""!==t},e.range=function(t,e){if(e<t)return[];for(var i=[];t<=e;)i.push(t++);return i},e.isNumeric=function(t){return!isNaN(t-parseFloat(t))},e.downloadFile=function(t,e,i){void 0===i&&(i="text/plain");var n,o,i=new Blob([t],{type:i});window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(i,e):(n=document.createElement("a"),o=URL.createObjectURL(i),n.href=o,n.download=e,document.body.appendChild(n),n.click(),setTimeout(function(){document.body.removeChild(n),window.URL.revokeObjectURL(o)},0))},e.debounce=function(o,r,s){var a;return function(){for(var t=this,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var n=s&&!a;clearTimeout(a),a=setTimeout(function(){a=null,s||o.apply(t,e)},r),n&&o.apply(this,e)}},e.compare=function t(e,i){for(var n in e){if(e.hasOwnProperty(n)!==i.hasOwnProperty(n))return!1;switch(typeof e[n]){case"object":if(!t(e[n],i[n]))return!1;break;case"function":if(void 0===i[n]||"compare"!==n&&e[n].toString()!==i[n].toString())return!1;break;default:if(e[n]!==i[n])return!1}}for(var n in i)if(!e.hasOwnProperty(n))return!1;return!0},e.isType=function(t){return((Object.prototype.toString.call(t).match(/^\[object (\S+?)\]$/)||[])[1]||"undefined").toLowerCase()},e.isEmptyObj=function(t){for(var e in t)return!1;return!0},e.getMaxArrayNumber=function(t){if(t.length){for(var e=-1/0,i=0,n=t.length;i<n;i++)t[i]>e&&(e=t[i]);return e}},e.getMinArrayNumber=function(t){if(t.length){for(var e=1/0,i=0,n=t.length;i<n;i++)t[i]<e&&(e=t[i]);return e}},e.getStringWidth=function(t,e){e=o({font:"normal 14px Roboto",lineHeight:20},e);var i=document.createElement("canvas"),n=i.getContext("2d");e.font&&(n.font=e.font);t=n.measureText(t).width;return r.isIE()||i.remove(),t},e.rgbToHex=function(t){if("#"===t.substr(0,1))return t;if("rgb"===t.substr(0,3)){t=/(.*?)rgb[a]?\((\d+), *(\d+), *(\d+),* *([\d+.]*)\)/.exec(t);return"#"+parseInt(t[2],10).toString(16).padStart(2,"0")+parseInt(t[3],10).toString(16).padStart(2,"0")+parseInt(t[4],10).toString(16).padStart(2,"0")}},e.getCloneObject=function t(e){if(!e)return e;var i,n=Array.isArray(e)?[]:{};for(i in e){var o=e[i];o instanceof Date?n[i]=new Date(o):n[i]="object"==typeof o?t(o):o}return n},e.getTextLines=function(t,e,i){for(var n=e.split(" "),o="",r="",s=[],a=0;a<n.length;a++)r+=n[a]+" ",i<t.measureText(r.trimEnd()).width&&0<a?(s.push(o),o=n[a]+" ",r=n[a]+" "):o+=n[a]+" ",a===n.length-1&&s.push(o);return s}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(o.prototype.on=function(t,e,i){t=t.toLowerCase();this.events[t]=this.events[t]||[],this.events[t].push({callback:e,context:i||this.context})},o.prototype.detach=function(t,e){var t=t.toLowerCase(),i=this.events[t];if(e&&i&&i.length)for(var n=i.length-1;0<=n;n--)i[n].context===e&&i.splice(n,1);else this.events[t]=[]},o.prototype.fire=function(t,e){void 0===e&&(e=[]);t=t.toLowerCase();return!this.events[t]||!this.events[t].map(function(t){return t.callback.apply(t.context,e)}).includes(!1)},o.prototype.clear=function(){this.events={}},o);function o(t){this.events={},this.context=t||this}e.EventSystem=n,e.EventsMixin=function(t){var e=new n(t=t||{});t.detachEvent=e.detach.bind(e),t.attachEvent=e.on.bind(e),t.callEvent=e.fire.bind(e)}},function(t,e,i){"use strict";var c=this&&this.__assign||function(){return(c=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function n(t,e,i){for(void 0===e&&(e="data-dhx-id"),void 0===i&&(i="target"),t instanceof Event&&(t=t[i]);t;){if(t.getAttribute&&t.getAttribute(e))return t;t=t.parentNode}}Object.defineProperty(e,"__esModule",{value:!0}),e.toNode=function(t){var e;return"string"==typeof t?document.getElementById(t)||document.querySelector("[data-cell-id="+t+"]")||document.querySelector(t)||(null===(e=document.querySelector("[data-dhx-root-id="+t+"]"))||void 0===e?void 0:e.parentElement)||document.body:t||document.body},e.eventHandler=function(s,a,l){var c=Object.keys(a);return function(t){var e=s(t);if(void 0!==e){var i=t.target;t:for(;i;){var n=i.getAttribute&&i.getAttribute("class")||"";if(n.length)for(var o=n.split(" "),r=0;r<c.length;r++)if(o.includes(c[r])){if(!1===a[c[r]](t,e)||t.cancelBubble)return!1;break t}i=i.parentNode}}return l&&l(t),!0}},e.locateNode=n,e.locate=function(t,e){return void 0===e&&(e="data-dhx-id"),(t=n(t,e))?t.getAttribute(e):""},e.locateNodeByClassName=function(t,e){for(t instanceof Event&&(t=t.target);t;){if(e){if(t.classList&&t.classList.contains(e))return t}else if(t.getAttribute&&t.getAttribute("data-dhx-id"))return t;t=t.parentNode}},e.getBox=function(t){var e=t.getBoundingClientRect(),i=document.body,n=window.pageYOffset||i.scrollTop,t=window.pageXOffset||i.scrollLeft;return{top:e.top+n,left:e.left+t,right:i.offsetWidth-e.right,bottom:i.offsetHeight-e.bottom,width:e.right-e.left,height:e.bottom-e.top}};var o=-1;e.getScrollbarWidth=function(){if(-1<o)return o;var t=document.createElement("div");return document.body.appendChild(t),t.style.cssText="position: absolute;left: -99999px;overflow:scroll;width: 100px;height: 100px;",o=t.offsetWidth-t.clientWidth,document.body.removeChild(t),o};var r=-1;function s(t){t=t.getBoundingClientRect();return{left:t.left+window.pageXOffset,right:t.right+window.pageXOffset,top:t.top+window.pageYOffset,bottom:t.bottom+window.pageYOffset}}function u(){return{rightBorder:window.pageXOffset+window.innerWidth,bottomBorder:window.pageYOffset+window.innerHeight}}function l(t,e){var i,n,o,r=u(),s=r.rightBorder,a=r.bottomBorder-t.bottom-e.height,l=t.top-e.height;if("bottom"===e.mode?0<=a?i=t.bottom:0<=l&&(i=l):0<=l?i=l:0<=a&&(i=t.bottom),a<0&&l<0){if(e.auto)return d(t,c(c({},e),{mode:"right",auto:!1}));i=l<a?t.bottom:l}return{left:e.centering?(n=t,o=e.width,r=s,a=(o-(n.right-n.left))/2,l=n.left-a,a=n.right+a,0<=l&&a<=r?l:l<0?0:r-o):(s=s-t.left-e.width,e=t.right-e.width,0<=s||!(0<=e)&&s<e?t.left:e),top:i}}function d(t,e){var i,n,o=u(),r=o.rightBorder,s=o.bottomBorder,a=r-t.right-e.width,o=t.left-e.width;if("right"===e.mode?0<=a?n=t.right:0<=o&&(n=o):0<=o?n=o:0<=a&&(n=t.right),o<0&&a<0){if(e.auto)return l(t,c(c({},e),{mode:"bottom",auto:!1}));n=a<o?o:t.right}return{left:n,top:e.centering?(a=t,i=e.height,o=r,n=(i-(a.bottom-a.top))/2,r=a.top-n,n=a.bottom+n,0<=r&&n<=o?r:r<0?0:o-i):(i=t.bottom-e.height,!(0<=(e=s-t.top-e.height))&&(0<i||e<i)?i:t.top)}}function a(t,e){var i=("bottom"===e.mode||"top"===e.mode?l:d)(t,e),t=i.left,i=i.top;return{left:Math.round(t)+"px",top:Math.round(i)+"px",minWidth:Math.round(e.width)+"px",position:"absolute"}}e.getScrollbarHeight=function(){if(-1<r)return r;var t=document.createElement("div");return document.body.appendChild(t),t.style.cssText="position: absolute;left: -99999px;overflow:scroll;width: 100px;height: 100px;",r=t.offsetHeight-t.clientHeight,document.body.removeChild(t),r},e.isIE=function(){var t=window.navigator.userAgent;return t.includes("MSIE ")||t.includes("Trident/")},e.isSafari=function(){function t(t){return t.test(window.navigator.userAgent)}var e=t(/Chrome/),i=t(/Firefox/);return!e&&!i&&t(/Safari/)},e.isFirefox=function(){function t(t){return t.test(window.navigator.userAgent)}var e=t(/Chrome/),i=t(/Safari/);return!e&&!i&&t(/Firefox/)},e.getRealPosition=s,e.calculatePosition=a,e.fitPosition=function(t,e){return a(s(t),e)},e.getPageCss=function(){for(var t=[],e=0;e<document.styleSheets.length;e++)for(var i=document.styleSheets[e],n=("cssRules"in i?i.cssRules:i.rules),o=0;o<n.length;o++){var r=n[o];"cssText"in r?t.push(r.cssText):t.push(r.selectorText+" {\n"+r.style.cssText+"\n}\n")}return t.join("\n")},e.getLabelStyle=function(t){var e=t.helpMessage,i=t.type,n=t.labelWidth,o=t.label,r=n&&n.toString().startsWith("0"),t="text"!==i&&t.required;return!!(e||t||!(!o||o&&r)||n&&!r)&&{style:(o||n)&&!r&&{width:n,"max-width":"100%"},label:o&&r?null:o}};var h=function(t){return t.href&&!t.href.startsWith(window.location.origin)};e.getPageInlineCss=function(){for(var t=[],e=0;e<document.styleSheets.length;e++){var i=document.styleSheets[e];if(!h(i))for(var n=("cssRules"in i&&i.cssRules.length?i.cssRules:i.rules),o=0;o<n.length;o++){var r=n[o];"cssText"in r?t.push(r.cssText):t.push(r.selectorText+" {\n"+r.style.cssText+"\n}\n")}}return t.join("\n")},e.getPageLinksCss=function(t){var e=[];if(t)t.forEach(function(t){return e.push('<link href="'+t+'" rel="stylesheet"/>')});else for(var i=0;i<document.styleSheets.length;i++){var n=document.styleSheets[i];h(n)&&e.push('<link href="'+n.href+'" rel="stylesheet"/>')}return e.join("\n")}},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.ClearMethod||(e.ClearMethod={})).value="value",n.validation="validation",(n=e.FormEvents||(e.FormEvents={})).beforeChange="beforeChange",n.change="change",n.click="click",n.focus="focus",n.blur="blur",n.keydown="keydown",n.beforeShow="beforeShow",n.afterShow="afterShow",n.beforeHide="beforeHide",n.afterHide="afterHide",n.afterValidate="afterValidate",n.beforeValidate="beforeValidate",n.beforeChangeProperties="beforeChangeProperties",n.afterChangeProperties="afterChangeProperties",n.beforeSend="beforesend",n.afterSend="aftersend",n.buttonClick="buttonClick",n.validationFail="validationfail",(n=e.ValidationStatus||(e.ValidationStatus={}))[n.pre=0]="pre",n[n.error=1]="error",n[n.success=2]="success",(e=e.ItemEvent||(e.ItemEvent={})).click="click",e.beforeChange="beforeChange",e.change="change",e.input="input",e.focus="focus",e.blur="blur",e.keydown="keydown",e.beforeChangeOptions="beforeChangeOptions",e.changeOptions="changeOptions",e.beforeShow="beforeShow",e.afterShow="afterShow",e.beforeHide="beforeHide",e.afterHide="afterHide",e.beforeValidate="beforeValidate",e.afterValidate="afterValidate",e.beforeUploadFile="beforeUploadFile",e.uploadFile="uploadfile",e.uploadBegin="uploadBegin",e.uploadComplete="uploadComplete",e.uploadFail="uploadFail",e.uploadProgress="uploadProgress",e.beforeChangeProperties="beforeChangeProperties",e.afterChangeProperties="afterChangeProperties"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(1),o=i(3),i=(r.prototype.mount=function(t,e){e&&(this._view=e),t&&this._view&&this._view.mount&&(this._container=o.toNode(t),this._container.tagName?this._view.mount(this._container):this._container.attach&&this._container.attach(this))},r.prototype.unmount=function(){var t=this.getRootView();t&&t.node&&(t.unmount(),this._view=null)},r.prototype.getRootView=function(){return this._view},r.prototype.getRootNode=function(){return this._view&&this._view.node&&this._view.node.el},r.prototype.paint=function(){this._view&&(this._view.node||this._container)&&(this._doNotRepaint=!1,this._view.redraw())},r);function r(t,e){this.config=e||{},this._uid=null!==(e=this.config.rootId)&&void 0!==e?e:n.uid()}e.View=i,e.toViewLike=function(e){return{getRootView:function(){return e},paint:function(){return e.node&&e.redraw()},mount:function(t){return e.mount(t)}}}},function(t,n,e){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0});var r,s,a=e(0),i=["#2A9D8F","#78586F","#E76F51","#E5A910","#11A3D0","#985F99","#217B70","#BD9391","#9C89B8","#734B5E","#D66BA0","#5C5D8D"],l=["#237396","#2780A8","#3892A3","#4DA3A0","#67BF99"];function c(e){var i={};return function(t){return i[t]||(i[t]=e(t))}}n.getDefaultColor=function(t,e){return void 0===t&&(t=0),(e?l:i)[t]},n.locator=function(e){return e?"string"==typeof e?function(t){return t[e]}:e:function(){return""}},n.log10=function(t){return Math.log(t)/Math.LN10},n.getTextWidth=(r=function(t,e){void 0===e&&(e="");var i=document.createElement("canvas").getContext("2d");return e&&(i.font=e),i.measureText(t).width},s={},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=s,n=0;n<t.length-1;n++)i[t[n]]=i[t[n]]||{},i=i[t[n]];var o=t.length-1;return i[o]||(i[o]=r.apply(void 0,t))});var u=c(function(t){var e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,e.fillRect(0,0,2,2),[(e=e.getImageData(1,1,1,1).data)[0],e[1],e[2]]});function d(t,e){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}n.getColorShade=function(t,e){return"rgb("+(t=u(t).map(function(t){return Math.floor(t*e+255*(1-e))}))[0]+","+t[1]+","+t[2]+")"},n.getFontStyle=c(function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("class","dhx_chart");var i=document.createElementNS("http://www.w3.org/2000/svg","text");i.setAttribute("class",t),e.setAttribute("visibility","hidden"),i.textContent="test",e.appendChild(i),document.body.appendChild(e);i=getComputedStyle(i),i=i.fontSize+" "+i.fontFamily;return document.body.removeChild(e),i}),n.linearGradient=function(t,e){return t=t.stops.map(function(t){return a.sv("stop",{offset:100*t.offset+"%","stop-color":t.color,"stop-opacity":t.opacity||1})}),a.sv("linearGradient",{id:e,gradientTransform:"rotate(90)"},t)},n.getRadialGradient=function(t,e,i){return e=e.map(function(t){return a.sv("stop",{offset:t.offset,"stop-color":t.color,"stop-opacity":t.opacity||1})}),a.sv("radialGradient",o({id:i,cx:0,cy:0,gradientUnits:"userSpaceOnUse"},t),e)},n.euclideanDistance=function(t,e,i,n){return Math.sqrt((t-i)*(t-i)+(e-n)*(e-n))},n.roundToTwoNumAfterPoint=function(t){return Math.round(100*(100*t+Number.EPSILON))/100},n.verticalCenteredText=function(t){return a.sv("tspan",{dy:"0.5ex",style:{pointerEvents:"none"}},t)},n.verticalTopText=function(t){return a.sv("tspan",{dy:"-0.5ex"},t)},n.verticalBottomText=function(t){return a.sv("tspan",{dy:"1.5ex"},t)},n.calcPointRef=function(t,e){return t+"_"+e},n.getClassesForRotateScale=function(t,e){var i="",n=[];switch("left"===t||"top"===t?n.push("start-text","end-text"):"right"!==t&&"bottom"!==t||n.push("end-text","start-text"),t){case"left":case"right":0===e?i=n[1]:0<e?180===e?i=n[0]:180<e?e<270?i=n[0]:270<e&&(i=n[1]):e<180&&(90<e?i=n[0]:e<90&&(i=n[1])):e<0&&(-180===e?i=n[0]:e<-180?-270<e?i=n[0]:e<-270&&(i=n[1]):-180<e&&(e<-90?i=n[0]:-90<e&&(i=n[1])));break;case"top":case"bottom":0<e?180<e?i=n[0]:e<180&&(i=n[1]):e<0&&(-180<e?i=n[0]:e<-180&&(i=n[1]))}return i},n.getScales=function(t){var e,i=[];for(e in t){var n=t[e];(n.min||n.max||n.maxTicks||n.text||n.value)&&i.push(e)}return i},n.getSizesSVGText=function(t,e){var i=[];return e=o({font:"normal 14px Roboto",lineHeight:18},e),i.push(n.getTextWidth(t,e.font)),i.push(e.lineHeight),i},n.superposition=d,n.checkPositions=function(t,e,i,n,o){d(t,e)&&(e=o.right?e.y-t.y+t.height:e.y-e.height-t.y,e=o.text1.y+e,Math.abs(e)+o.dy>n&&(e=0<e?n+o.dy:-n+o.dy,o.changeSector=!o.changeSector),n=Math.sqrt(Math.pow(i,2)-Math.pow((e-o.dy)*i/n,2)),n=o.right?n:-n,o.changeSector&&(n*=-1,o.line*=-1,t.class=o.right?"pie-value end-text":"pie-value start-text"),o.text1.x=n,o.text1.y=e,o.text2.x=n,o.text2.y=e+16)}},function(t,e,i){"use strict";var n=this&&this.__rest||function(t,e){var i={};for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(i[o[n]]=t[o[n]]);return i};Object.defineProperty(e,"__esModule",{value:!0});var l=i(4),o=i(39);e.getFormItemCss=function(t,e,i){void 0===i&&(i=!1);var n=t.labelPosition,o=t.required,r=t.disabled,s=t.hiddenLabel,a=t.$validationStatus,a=((t={})[l.ValidationStatus.pre]="",t[l.ValidationStatus.error]=" dhx_form-group--state_error",t[l.ValidationStatus.success]=" dhx_form-group--state_success",t[a]||""),n="left"===n?" dhx_form-group--inline":"",r=r?" dhx_form-group--disabled":"",s=s?" dhx_form-group--label_sr":"";return e?n+(i?"":a)+(o?" dhx_form-group--required":"")+r+s:n+r+s};var r=((i={})[o.Validation.validAlphaNumeric]=/^[a-zA-Z0-9_]+$/,i[o.Validation.validEmail]=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,i[o.Validation.validInteger]=/^-?\d+$/,i[o.Validation.validIPv4]=/\b((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.|$)){4}\b/,i[o.Validation.validNumeric]=/^-?\d+(\.\d+)?$/,i);function a(t){return"fieldset"!==t.type&&(Boolean(t.rows)||Boolean(t.cols))}e.getValidationMessage=function(t){var e;return(e={undefined:t.preMessage})[l.ValidationStatus.pre]=t.preMessage,e[l.ValidationStatus.error]=t.errorMessage,e[l.ValidationStatus.success]=t.successMessage,e[t.$validationStatus]||""},e.validateTemplate=function(t,e){return!r[t]||r[t].test(e)},e.isBlock=a,e.validateInput=function(t,e){var i=!0;return"function"==typeof e?i=e(t):(e=r[e])&&(i=e.test(t.toString())),i},e.baseInputValidate=function(t,e){var i=e.inputType,n=e.min,o=e.max,r=e.minlength,e=e.maxlength;return"number"===i?void 0!==n&&void 0!==o?Number(n)<=Number(o)&&Number(n)<=Number(t)&&Number(o)>=Number(t):void 0!==n?Number(n)<=Number(t):void 0!==o?Number(o)>=Number(t):0===t||"0"===t||!!t:void 0!==r&&void 0!==e?Number(r)<=String(t).length&&Number(e)>=String(t).length:void 0!==r?Number(r)<=String(t).length:void 0!==e?Number(e)>=String(t).length:"string"==typeof t&&!!t},e.isTimeFormat=function(t,e){return(12===e?/(^0?([1-9][0-2]?):[0-5][0-9]?([AP][M]?)$)/i:/(^(0[0-9]|1[0-9]|2[0-3]|[0-9]):[0-5][0-9]$)/i).test(t)},e.isVerify=function(e){return["required","validation","minlength","maxlength","min","max"].some(function(t){switch(t){case"required":return!!e[t];case"validation":return"function"==typeof e[t]||"email"===e[t]||"integer"===e[t]||"numeric"===e[t]||"alphanumeric"===e[t]||"IPv4"===e[t];case"minlength":case"maxlength":return"number"==typeof e[t]||"string"==typeof e[t];case"min":case"max":return("number"==typeof e[t]||"string"==typeof e[t])&&"number"===e.inputType}})},e.baseProps=["width","height","padding","css"],e.widgetConfig=function(t){t.width,t.type,t.id,t.name,t.hidden,t.editable,t.css,t.required,t.helpMessage,t.preMessage,t.successMessage,t.errorMessage,t.label,t.labelWidth,t.labelPosition,t.hiddenLabel,t.validation,t.icon;return n(t,["width","type","id","name","hidden","editable","css","required","helpMessage","preMessage","successMessage","errorMessage","label","labelWidth","labelPosition","hiddenLabel","validation","icon"])},e.setAttacments=function(t,e){var i,n;for(n in t){var o=t[n];"fieldset"===o.config.type?(o.setAttachments(function t(e,i,n){void 0===e&&(e=[]);for(var o=[],r=0;r<e.length;r++){var s=e[r];s.type&&(i[s.name].parent=n,o.push(i[s.name])),a(s)&&o.push.apply(o,t(s.rows||s.cols,i,n))}return o}(o.config.rows||o.config.cols,t,o)),o.setCell(e.getCell(n))):null!==(i=e.getCell(n))&&void 0!==i&&i.attach(o)}}},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(23)),n(e(61)),n(e(125)),n(e(126)),n(e(26)),n(e(162)),n(e(24)),n(e(64)),n(e(63)),n(e(163)),n(e(62)),n(e(41))},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(e.HeaderFilterEvent||(e.HeaderFilterEvent={})).change="change",(n=e.GridEvents||(e.GridEvents={})).scroll="scroll",n.expand="expand",n.filterChange="filterChange",n.beforeFilter="beforeFilter",n.beforeResizeStart="beforeResizeStart",n.resize="resize",n.afterResizeEnd="afterResizeEnd",n.cellClick="cellClick",n.cellRightClick="cellRightClick",n.cellMouseOver="cellMouseOver",n.cellMouseDown="cellMouseDown",n.cellDblClick="cellDblClick",n.headerCellClick="headerCellClick",n.footerCellClick="footerCellClick",n.headerCellMouseOver="headerCellMouseOver",n.footerCellMouseOver="footerCellMouseOver",n.headerCellMouseDown="headerCellMouseDown",n.footerCellMouseDown="footerCellMouseDown",n.headerCellDblClick="headerCellDblClick",n.footerCellDblClick="footerCellDblClick",n.headerCellRightClick="headerCellRightClick",n.footerCellRightClick="footerCellRightClick",n.beforeEditStart="beforeEditStart",n.afterEditStart="afterEditStart",n.beforeEditEnd="beforeEditEnd",n.afterEditEnd="afterEditEnd",n.beforeKeyDown="beforeKeyDown",n.afterKeyDown="afterKeyDown",n.beforeColumnHide="beforeColumnHide",n.afterColumnHide="afterColumnHide",n.beforeColumnShow="beforeColumnShow",n.afterColumnShow="afterColumnShow",n.beforeRowHide="beforeRowHide",n.afterRowHide="afterRowHide",n.beforeRowShow="beforeRowShow",n.afterRowShow="afterRowShow",n.beforeRowDrag="beforeRowDrag",n.dragRowStart="dragRowStart",n.dragRowOut="dragRowOut",n.dragRowIn="dragRowIn",n.canRowDrop="canRowDrop",n.cancelRowDrop="cancelRowDrop",n.beforeRowDrop="beforeRowDrop",n.afterRowDrop="afterRowDrop",n.afterRowDrag="afterRowDrag",n.beforeColumnDrag="beforeColumnDrag",n.dragColumnStart="dragColumnStart",n.dragColumnOut="dragColumnOut",n.dragColumnIn="dragColumnIn",n.canColumnDrop="canColumnDrop",n.cancelColumnDrop="cancelColumnDrop",n.beforeColumnDrop="beforeColumnDrop",n.afterColumnDrop="afterColumnDrop",n.afterColumnDrag="afterColumnDrag",n.beforeRowResize="beforeRowResize",n.afterRowResize="afterRowResize",n.beforeSort="beforeSort",n.afterSort="afterSort",(n=e.GridSystemEvents||(e.GridSystemEvents={})).cellTouchMove="cellTouchMove",n.cellTouchEnd="cellTouchEnd",n.headerCellTouchMove="headerCellTouchMove",n.headerCellTouchEnd="headerCellTouchEnd",(n=e.GridSelectionEvents||(e.GridSelectionEvents={})).beforeUnSelect="beforeUnSelect",n.afterUnSelect="afterUnSelect",n.beforeSelect="beforeSelect",n.afterSelect="afterSelect",(e=e.Split||(e.Split={})).left="leftSplit",e.right="rightSplit",e.top="topSplit",e.bottom="bottomSplit"},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(128)),n(e(129)),n(e(130)),n(e(67)),n(e(43))},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(46)),n(e(139)),n(e(47))},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(142)),n(e(69))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=i(19),s=i(3);function a(t){for(var e=t.toLowerCase().match(/\w+/g),i=0,n="",o=0;o<e.length;o++){var r=e[o];"ctrl"===r?i+=4:"shift"===r?i+=2:"alt"===r?i+=1:n=r}return i+n}var l={Up:"arrowUp",Down:"arrowDown",Right:"arrowRight",Left:"arrowLeft",Esc:"escape",Spacebar:"space"},i=(n.prototype.destructor=function(){document.removeEventListener("keydown",this._initHandler),this.removeHotKey()},n.prototype.addHotKey=function(t,e){t=a(t);this._keysStorage[t]||(this._keysStorage[t]=[]),this._keysStorage[t].push({handler:e})},n.prototype.removeHotKey=function(t,i){var n,o,r=this;t?t&&i?(n=a(t),o=function(t){return t.toString().replace(/\n/g,"").replace(/\s/g,"")},this._keysStorage[n].forEach(function(t,e){o(t.handler)===o(i)&&(delete r._keysStorage[n][e],r._keysStorage[n]=r._keysStorage[n].filter(function(t){return t}))})):(t=a(t),delete this._keysStorage[t]):this._keysStorage={}},n.prototype.exist=function(t){t=a(t);return!!this._keysStorage[t]},n.prototype.getKeyStorageLength=function(){return Object.keys(this._keysStorage).length},n);function n(t){var o=this;this._keysStorage={},this._initHandler=function(t){var e;e=48<=t.which&&t.which<=57||65<=t.which&&t.which<=90?String.fromCharCode(t.which):(e=32===t.which?t.code:t.key,s.isIE()&&l[e]||e);var i=o._keysStorage[(t.ctrlKey||t.metaKey?4:0)+(t.shiftKey?2:0)+(t.altKey?1:0)+(e&&e.toLowerCase())];if(i)for(var n=0;n<i.length;n++){if(o._beforeCall&&!1===o._beforeCall(t,r.focusManager.getFocusId()))return;i[n].handler(t)}},t&&(this._beforeCall=t),document.addEventListener("keydown",this._initHandler)}e.KeyManager=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(0),l=i(3),c=i(5),u=i(12),o=(s=c.View,o(d,s),d.prototype._destructor=function(){this._helper&&this._helper.destructor(),this.config=this._handlers=this._helper=null,this.unmount()},d.prototype._getHandlers=function(){return{}},d.prototype._init=function(){},d.prototype._draw=function(){return this._drawLabel()},d.prototype._drawLabel=function(){var t=this.config,e=t.id,i=t.helpMessage,n=t.required;this.config.helpMessage&&(this._helper||(this._helper=new u.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"})),this._helper.attachHTML(this.config.helpMessage));t=l.getLabelStyle(this.config);return t&&a.el((this.config.type.includes("group")?"legend":"label")+".dhx_label",{for:e||this._uid,class:i?"dhx_label--with-help":"",style:t.style},i?[(t.label||n)&&a.el("span.dhx_label__holder",t.label),a.el("span.dhx_label-help.dxi.dxi-help-circle-outline",{tabindex:"0",role:"button",onclick:this._handlers.showHelper,onfocus:this._handlers.showHelper,onblur:this._handlers.hideHelper,id:"dhx_label__help_"+(e||this._uid)})]:t.label)},d);function d(t,e){void 0===e&&(e={});var i=s.call(this,t,e)||this;i._handlers=r({showHelper:function(t){t.preventDefault(),t.stopPropagation(),i._helper.show(t.target,{mode:"left"===i.config.labelPosition?"bottom":"right",theme:t.target})},hideHelper:function(t){t.preventDefault(),t.stopPropagation(),i._helper.hide()}},i._getHandlers());return i.mount(t,a.create({render:function(){return i._draw()}})),i}e.Label=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(1),n=i(3),r=i(10);e.transpose=function(t,e){for(var i=[],n=0;n<t.length;n++)for(var o=t[n],r=0;r<o.length;r++){i[r]=i[r]||[];var s=e?e(o[r]):o[r];i[r].push(s)}return i},e.getStyleByClass=function(t,e,i,n){return e=e.querySelector("."+i),i=e,i="string"==typeof(t='<div class="'+t+'"></div>')?(i.insertAdjacentHTML("beforeend",t),i.lastChild):(i.appendChild(t),t),t={color:"rgb(0, 0, 0)"===(t=window.getComputedStyle(i)).color?n.color:o.rgbToHex(t.color),background:"rgba(0, 0, 0, 0)"===t.backgroundColor?n.background:o.rgbToHex(t.backgroundColor),fontSize:Math.round(parseFloat(t.fontSize)),bold:["bold","700","600","500"].includes(t.fontWeight)},e.removeChild(i),t.color===n.color&&t.background===n.background&&t.fontSize===n.fontSize?null:t},e.removeHTMLTags=function(t){return"string"!=typeof t&&"number"!=typeof t&&"boolean"!=typeof t?"":(""+(null==t?"":t)).replace(/<[^>]*>/g,"").replace(/["]/g,""").trim()},e.isCssSupport=function(e,i){try{return CSS.supports(e,i)}catch(t){var n=document.createElement("div");return n.style[e]=i,n.style[e]===i}},e.isRowEmpty=function(i){if(i)return Object.keys(i).reduce(function(t,e){return"id"!==e&&!e.startsWith("$")&&t&&void 0!==i[e]&&""!==i[e]?void 0:t},!0)},e.isSortable=function(t,e){return!1!==e.sortable&&t.sortable||e.sortable},e.isAutoWidth=function(e,t){if(t)return!1!==t.autoWidth&&e.autoWidth||t.autoWidth;var i=!1;return e.columns.map(function(t){(!1!==t.autoWidth&&e.autoWidth||t.autoWidth)&&(i=!0)}),i},e.showTooltip=function(t){var e=t.node,i=t.value,t=void 0!==(t=t.htmlEnable)&&t;e&&r.tooltip(i.toString(),{css:"dhx_grid_tooltip",node:e,htmlEnable:t})},e.isContentTooltip=function(t,e,i,n){for(var o=!1,n="header"===n?t.headerTooltip:t.footerTooltip,r=[t.tooltip,n,e.tooltip,null==i?void 0:i.tooltip],s=0;s<r.length;s++)"boolean"==typeof r[s]&&(o=r[s]);return o},e.isTooltip=function(t,e){return!1!==e.tooltip&&t.tooltip||e.tooltip},e.isHtmlEnable=function(t,e){return!1!==e.htmlEnable&&t.htmlEnable||!!e.htmlEnable},e.getTotalWidth=function(t){return t.reduce(function(t,e){return t+(e.$width||0)},0)},e.getTotalHeight=function(t){return t.reduce(function(t,e){return t+(e.$height||0)},0)},e.scrollFixedColsAndRows=function(t){var e=n.locateNode(t,"data-dhx-widget-id").querySelector(".dhx_grid-body"),i=t.deltaY,i=t.shiftKey?[i,0]:[0,i];null!=e&&e.scrollBy.apply(e,i)}},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=e(1),s=e(1);r.locale={monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Monday"],cancel:"Cancel"};var _,n={"%d":function(t){t=t.getDate();return t<10?"0"+t:t},"%j":function(t){return t.getDate()},"%l":function(t){return r.locale.days[t.getDay()]},"%D":function(t){return r.locale.daysShort[t.getDay()]},"%m":function(t){t=t.getMonth()+1;return t<10?"0"+t:t},"%n":function(t){return t.getMonth()+1},"%M":function(t){return r.locale.monthsShort[t.getMonth()]},"%F":function(t){return r.locale.months[t.getMonth()]},"%y":function(t){return t.getFullYear().toString().slice(2)},"%Y":function(t){return t.getFullYear()},"%h":function(t){t=t.getHours()%12;return 0===t&&(t=12),t<10?"0"+t:t},"%g":function(t){t=t.getHours()%12;return 0===t&&(t=12),t},"%H":function(t){t=t.getHours();return t<10?"0"+t:t},"%G":function(t){return t.getHours()},"%i":function(t){t=t.getMinutes();return t<10?"0"+t:t},"%s":function(t){t=t.getSeconds();return t<10?"0"+t:t},"%a":function(t){return 12<=t.getHours()?"pm":"am"},"%A":function(t){return 12<=t.getHours()?"PM":"AM"},"%u":function(t){return t.getMilliseconds()}},m={"%d":function(t,e,i,n){var o=/(^([0-9][0-9])$)/i.test(e);if(n)return o;o?t.setDate(Number(e)):t.setDate(Number(1))},"%j":function(t,e,i,n){var o=/(^([0-9]?[0-9])$)/i.test(e);if(n)return o;o?t.setDate(Number(e)):t.setDate(Number(1))},"%m":function(t,e,i,n){var o=/(^([0-9][0-9])$)/i.test(e);if(n)return o;o?t.setMonth(Number(e)-1):t.setMonth(Number(0)),o&&t.getMonth()!==Number(e)-1&&t.setMonth(Number(e)-1)},"%n":function(t,e,i,n){var o=/(^([0-9]?[0-9])$)/i.test(e);if(n)return o;o?t.setMonth(Number(e)-1):t.setMonth(Number(0)),o&&t.getMonth()!==Number(e)-1&&t.setMonth(Number(e)-1)},"%M":function(t,e,i,n){var o=s.findIndex(r.locale.monthsShort,function(t){return t===e});if(n)return-1!==o;-1===o?t.setMonth(0):t.setMonth(o),-1!==o&&t.getMonth()!==o&&t.setMonth(o)},"%F":function(t,e,i,n){var o=s.findIndex(r.locale.months,function(t){return t===e});if(n)return-1!==o;-1===o?t.setMonth(0):t.setMonth(o),-1!==o&&t.getMonth()!==o&&t.setMonth(o)},"%y":function(t,e,i,n){var o=/(^([0-9][0-9])$)/i.test(e);if(n)return o;o?t.setFullYear(Number("20"+e)):t.setFullYear(Number("2000"))},"%Y":function(t,e,i,n){var o=/(^([0-9][0-9][0-9][0-9])$)/i.test(e);if(n)return o;o?t.setFullYear(Number(e)):t.setFullYear(Number("2000"))},"%h":function(t,e,i,n){var o=/(^0[1-9]|1[0-2]$)/i.test(e);if(n)return o;o&&("am"===i||"pm"===i)||"AM"===i||"PM"===i?t.setHours(Number(e)):t.setHours(Number(0))},"%g":function(t,e,i,n){var o=/(^[1-9]$)|(^0[1-9]|1[0-2]$)/i.test(e);if(n)return o;o&&("am"===i||"pm"===i)||"AM"===i||"PM"===i?t.setHours(Number(e)):t.setHours(Number(0))},"%H":function(t,e,i,n){var o=/(^[0-2][0-9]$)/i.test(e);if(n)return o;o?t.setHours(Number(e)):t.setHours(Number(0))},"%G":function(t,e,i,n){var o=/(^[1-9][0-9]?$)/i.test(e);if(n)return o;o?t.setHours(Number(e)):t.setHours(Number(0))},"%i":function(t,e,i,n){var o=/(^([0-5][0-9])$)/i.test(e);if(n)return o;o?t.setMinutes(Number(e)):t.setMinutes(Number(0))},"%s":function(t,e,i,n){var o=/(^([0-5][0-9])$)/i.test(e);if(n)return o;o?t.setSeconds(Number(e)):t.setSeconds(Number(0))},"%u":function(t,e,i,n){var o=/(^([0-9][0-9][0-9])$)/i.test(e);if(n)return o;o?t.setMilliseconds(Number(e)):t.setMilliseconds(Number(0))},"%a":function(t,e,i,n){if(n)return"pm"===e||"am"===e;"pm"===e&&t.setHours(t.getHours()+12)},"%A":function(t,e,i,n){if(n)return"PM"===e||"AM"===e;"PM"===e&&t.setHours(t.getHours()+12)}};function y(t){for(var e=[],i="",n=0;n<t.length;n++)"%"===t[n]?(0<i.length&&(e.push({type:_.separator,value:i}),i=""),e.push({type:_.datePart,value:t[n]+t[n+1]}),n++):i+=t[n];return 0<i.length&&e.push({type:_.separator,value:i}),e}function o(e,t,i){if("string"==typeof e){for(var n,o=y(t=t.replace(/(?<=[a-z])%a/i,function(t){return e=e.replace(/(am|pm)/i," $&")," "+t})),r=[],s=0,a=null,l="Incorrect date, see docs: https://docs.dhtmlx.com/suite/calendar__api__calendar_dateformat_config.html",c=0;c<o.length;c++)if(o[c].type===_.separator){var u=e.indexOf(o[c].value,s);if(-1===u){if(i)return!1;throw new Error(l)}a&&(r.push({formatter:a,value:e.slice(s,u)}),a=null),s=u+o[c].value.length}else if(o[c].type===_.datePart){if(o[c+1]&&o[c+1].type!==_.separator){if(i)return!1;throw new Error(l)}a=o[c].value}"%A"===a||"%a"===a?r.unshift({formatter:a,value:e.slice(s)}):a&&r.push({formatter:a,value:e.slice(s)}),r.reverse();for(var d=0,h=r;d<h.length;d++)"%A"!==(v=h[d]).formatter&&"%a"!==v.formatter||(n=v.value);for(var f=new Date(0),p=0,g=r;p<g.length;p++){var v=g[p];if(m[v.formatter]){if(i&&!m[v.formatter](f,v.value,n,i))return!1;m[v.formatter](f,v.value,n)}}return!!i||f}}(e=_=_||{})[e.separator=0]="separator",e[e.datePart=1]="datePart",r.getFormattedDate=function(t,i){return y(t).reduce(function(t,e){return e.type===_.separator?t+e.value:n[e.value]?t+n[e.value](i):t},"")},r.stringToDate=o;a.copy=function(t){return new Date(t)},a.fromYear=function(t){return new Date(t,0,1)},a.fromYearAndMonth=function(t,e){return new Date(t,e,1)},a.weekStart=function(t,e){e=(t.getDay()+7-e)%7;return new Date(t.getFullYear(),t.getMonth(),t.getDate()-e)},a.monthStart=function(t){return new Date(t.getFullYear(),t.getMonth(),1)},a.yearStart=function(t){return new Date(t.getFullYear(),0,1)},a.dayStart=function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},a.addDay=function(t,e){return void 0===e&&(e=1),new Date(t.getFullYear(),t.getMonth(),t.getDate()+e)},a.addMonth=function(t,e){return void 0===e&&(e=1),new Date(t.getFullYear(),t.getMonth()+e)},a.addYear=function(t,e){return void 0===e&&(e=1),new Date(t.getFullYear()+e,t.getMonth())},a.withHoursAndMinutes=function(t,e,i,n){return void 0===n||!n&&12===e||n&&12!==e?new Date(t.getFullYear(),t.getMonth(),t.getDate(),e,i):n&&12===e?new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,i):new Date(t.getFullYear(),t.getMonth(),t.getDate(),e+12,i)},a.setMonth=function(t,e){t.setMonth(e)},a.setYear=function(t,e){t.setFullYear(e)},a.mergeHoursAndMinutes=function(t,e){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),e.getHours(),e.getMinutes())},a.isWeekEnd=function(t){return 0===t.getDay()||6===t.getDay()},a.getTwelweYears=function(t){t=t.getFullYear(),t-=t%12;return i.range(t,11+t)},a.getDayOrdinal=function(t){return(t.valueOf()-a.yearStart(t).valueOf())/864e5},a.getWeekNumber=function(t){6!==t.getDay()&&(t=a.addDay(t,6-t.getDay()));var e=a.getDayOrdinal(t);return e-t.getDay()<0&&(t=new Date(t.getFullYear()-1,12,0),e=a.getDayOrdinal(t)),Math.floor((e-t.getDay()+10)/7)},a.isSameDay=function(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()},a.toDateObject=function(t,e){return"string"==typeof t?o(t,e):new Date(t)},a.nullTimestampDate=new Date(0),e=a;function a(){}r.DateHelper=e},function(t,e,i){(function(o,r){!function(){o="undefined"!=typeof window?window:this;var e=1,i={},n=!1;function u(t){o.setImmediate?r(t):o.importScripts?setTimeout(t):(i[++e]=t,o.postMessage(e,"*"))}function d(t){"use strict";if("function"!=typeof t&&null!=t)throw TypeError();if("object"!=typeof this||this&&this.then)throw TypeError();var e,i,n=this,r=0,s=0,o=[];(n.promise=n).resolve=function(t){return e=n.fn,i=n.er,r||(s=t,r=1,u(c)),n},n.reject=function(t){return e=n.fn,i=n.er,r||(s=t,r=2,u(c)),n},n._d=1,n.then=function(t,e){if(1!=this._d)throw TypeError();var i=new d;return i.fn=t,i.er=e,3==r?i.resolve(s):4==r?i.reject(s):o.push(i),i},n.catch=function(t){return n.then(null,t)};var a=function(t){r=t||4,o.map(function(t){3==r&&t.resolve(s)||t.reject(s)})};try{"function"==typeof t&&t(n.resolve,n.reject)}catch(t){n.reject(t)}return n;function l(t,e,i,n){if(2==r)return n();if("object"!=typeof s&&"function"!=typeof s||"function"!=typeof t)n();else try{var o=0;t.call(s,function(t){o++||(s=t,e())},function(t){o++||(s=t,i())})}catch(t){s=t,i()}}function c(){var t;try{t=s&&s.then}catch(t){return s=t,r=2,c()}l(t,function(){r=1,c()},function(){r=2,c()},function(){try{1==r&&"function"==typeof e?s=e(s):2==r&&"function"==typeof i&&(s=i(s),r=1)}catch(t){return s=t,a()}s==n?(s=TypeError(),a()):l(t,function(){a(3)},a,function(){a(1==r&&3)})})}}o.setImmediate||o.addEventListener("message",function(t){if(t.source==o)if(n)u(i[t.data]);else{n=!0;try{i[t.data]()}catch(t){}delete i[t.data],n=!1}}),d.resolve=function(e){if(1!=this._d)throw TypeError();return e instanceof d?e:new d(function(t){t(e)})},d.reject=function(i){if(1!=this._d)throw TypeError();return new d(function(t,e){e(i)})},d.all=function(n){if(1!=this._d)throw TypeError();if(!(n instanceof Array))return d.reject(TypeError());var o=new d;return function i(t,e){return e?o.resolve(e):t?o.reject(t):(0==n.reduce(function(t,e){return e&&e.then?t+1:t},0)&&o.resolve(n),void n.map(function(t,e){t&&t.then&&t.then(function(t){return n[e]=t,i(),t},i)}))}(),o},d.race=function(n){if(1!=this._d)throw TypeError();if(!(n instanceof Array))return d.reject(TypeError());if(0==n.length)return new d;var o=new d;return function i(t,e){return e?o.resolve(e):t?o.reject(t):(0==n.reduce(function(t,e){return e&&e.then?t+1:t},0)&&o.resolve(n),void n.map(function(t,e){t&&t.then&&t.then(function(t){i(null,t)},i)}))}(),o},d._d=1,t.exports=d}()}).call(this,i(40),i(117).setImmediate)},function(t,e,i){"use strict";var n=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var _=i(1),O=i(15),P=i(16);function l(t,e){t[e]&&("string"==typeof t[e]?t[e]=[{text:""+t[e]}]:t[e]=t[e].map(function(t){return"string"==typeof t&&(t={text:t}),t}))}e.normalizeColumns=function(t,e){var i=t.columns,n=t.htmlEnable;void 0===e&&(e=!1);for(var o=0,r=i;o<r.length;o++){var s=r[o];s.$htmlEnable=!(!s.htmlEnable&&!n),s.$cellCss=s.$cellCss||{},l(s,"header"),l(s,"footer"),s.header.reduce(function(t,e){return t||!!e.content},!1)&&(s.$uniqueData=[]),s.minWidth&&s.minWidth<20&&(s.minWidth=20),s.maxWidth&&s.maxWidth<20&&(s.maxWidth=20);var a=s.minWidth||100;s.width&&(a=(a=s.maxWidth&&s.minWidth?s.width>=s.minWidth&&s.width<=s.maxWidth?s.width:s.width>=s.maxWidth?s.maxWidth:s.minWidth:s.maxWidth?s.width<=s.maxWidth?s.width:100<s.maxWidth?s.maxWidth:100:!s.minWidth||s.width>=s.minWidth?s.width:s.minWidth)<20?20:a),s.$width=s.$width&&!e?s.$width:a,s.$width>s.maxWidth&&(s.$width=s.maxWidth),s.$width<s.minWidth&&(s.$width=s.minWidth)}},e.countColumns=function(t,e){var n=0,o=0,r=0,s=!1,i=0,a=!1;return e.forEach(function(t){if(n=Math.max(n,t.header.length),r+=t.$width,t.footer&&(o=Math.max(o,t.footer.length),a=a||!0),!s)for(var e=0,i=t.header;e<i.length;e++)if(i[e].colspan)return void(s=!0)}),e.forEach(function(t){if(a&&(t.footer=t.footer||[]),t.header.length<n)for(var e=0;e<n;e++)t.header[e]=t.header[e]||{text:""};if(t.footer){if(t.footer.length<o)for(e=0;e<o;e++)t.footer[e]=t.footer[e]||{text:""};for(e=0;e<t.footer.length;e++)t.footer[e].id||(t.footer[e].id=_.uid())}t.header=t.header.map(function(t){return"object"!=typeof t&&(t={text:t}),t.css=t.css||"",t.text||t.css.includes("dhx_cell-empty")||(t.css+=" dhx_cell-empty"),t.id||(t.id=_.uid()),t}),""===t.header[0].text&&i++}),t.$totalWidth=r,t.$headerLevel=n,t.$footerLevel=o,t.$colspans=s,t.$footer=a,i},e.calculatePositions=function(t,e,i,n,o){for(var r=n.columns||[],s=r.length,a=o||[],l=a.length,c=n.leftSplit?n.columns.slice(0,n.leftSplit).filter(function(t){return!t.hidden}).length:0,u=null!==(h=n.topSplit)&&void 0!==h?h:0,d=null!==(M=n.rightSplit)&&void 0!==M?M:0,h=null!==(o=n.bottomSplit)&&void 0!==o?o:0,f=0,p=i.left,g=n.$totalWidth/s,v=0;v<s;v++){var _=r[v];if(!_.hidden){if(!(0<(p-=_.$width)+g/2))break;f++}}for(var m=0,y=i.top,b=n.$totalHeight/l,v=0;v<l;v++)if(!(V=a[v]).hidden){if(!(0<(y-=V.$height)+b/2))break;m++}for(var w=0,x=0,E=-1/0,C=1/0,S=0;S<s;S++){var k=r[S];f<=S&&w<t&&!k.hidden&&(w+=k.$width,x++),k.$width>E&&(E=k.$width),k.$width<C&&(C=k.$width)}for(var I=0,O=0,P=-1/0,D=1/0,S=0;S<l;S++){var V=a[S];m<=S&&I<e&&!V.hidden&&(I+=V.$height,O++),V.$height>P&&(P=V.$height),V.$height<D&&(D=V.$height)}D=D<n.rowHeight?D:n.rowHeight;var M=Math.round(E/C),o=Math.round(P/D),i=c<=f-M?f-M:c,M=f+x+M,c=(n.leftSplit||0)-c;return{xStart:i,xEnd:M<(d=r.length-d-c)?M:d,yStart:u<=m-o?m-o:u,yEnd:(c=m+O+o)<(h=a.length-h)?c:h}},e.getUnique=function(t,e,i){var n=t.map(function(t){return t[e]});return i&&n.forEach(function(t,e){"string"==typeof t&&t.includes(", ")&&(t.split(", ").forEach(function(t){return n.push(t)}),delete n[e])}),n.filter(function(t,e,i){return i.indexOf(t)===e&&_.isDefined(t)}).sort()},e.getMaxRowHeight=function(t,e,i){void 0===i&&(i={font:"14px Arial",lineHeight:20});var n=document.createElement("canvas"),o=n.getContext("2d",{alpha:!1});o.font=i.font;for(var r={},s=e.length,a=0;a<s;a++)e[a].template?r[e[a].id]={width:e[a].$width-16||0,htmlEnable:e[a].$htmlEnable,template:e[a].template,cols:e[a]}:r[e[a].id]={width:e[a].$width-16||0,htmlEnable:e[a].$htmlEnable};for(var l=[],c=[],u=0,d=Object.entries(t);u<d.length;u++){var h,f=d[u],p=f[0],g=f[1];!r[p]||"id"===p||"height"===p||p.startsWith("$")||"string"!=typeof g&&"number"!=typeof g||(h="",h=null!==(f=r[p])&&void 0!==f&&f.template?(f=r[p].template(g,t,r[p].cols),r[p].htmlEnable?O.removeHTMLTags(f):f):"string"==typeof g?r[p].htmlEnable?O.removeHTMLTags(g):g:g.toString(),1<(g=Math.ceil(o.measureText(h).width/r[p].width))&&(g=_.getTextLines(o,h,null===(p=r[p])||void 0===p?void 0:p.width).length),c.push(g),l.push(h.split("\n").length))}var v=Math.max(_.getMaxArrayNumber(l),_.getMaxArrayNumber(c));return n.remove(),v*i.lineHeight+8},e.getCalculatedRowHeight=function(t,e){void 0===e&&(e={rowHeight:40,padding:8});var i=e.rowHeight<40?t:t+2*e.padding;return t<e.rowHeight?e.rowHeight:i},e.getTreeCellWidthOffset=function(t){return 20+20*t.$level-(t.$items?20:0)},e.getMaxColsWidth=function(t,e,i,n){if(void 0===i&&(i={font:"normal 14.4px Arial"}),t.length&&e.length){var o=document.createElement("canvas"),r=o.getContext("2d",{alpha:!1});r.font=i.font;for(var s={},a=e.length,l=0;l<a;l++){var c=e[l],u=c.template,d=c.$htmlEnable,h=c.format,f=c.id,p=c.type;s[f]=u&&"data"===n?{width:20,htmlEnable:d,template:u,cols:c,type:p}:{width:20,htmlEnable:d,format:"date"===p?h||"%M %d %Y":h,type:p}}for(var g=t.length,l=0;l<g;l++)for(var v=0,_=Object.entries(t[l]);v<_.length;v++){var m,y,b=_[v],w=b[0],x=b[1],E=s[w];E&&"id"!==w&&"height"!==w&&!w.startsWith("$")&&("string"==typeof x||"number"==typeof x||x instanceof Date)&&(u=E.template,m=E.cols,h=E.format,p=E.type,y=E.htmlEnable,b=E.width,E=void 0,E="function"==typeof u?(m=u(x,t[l],m),y?O.removeHTMLTags(m):m):y?O.removeHTMLTags(x):x.toString(),null!=(y=h&&"date"===p&&new Date(E))&&y.valueOf()&&(E=P.getFormattedDate(h,y)),b<(E=r.measureText(E).width)&&(s[w].width=E))}o.remove();for(var C={},S=0,k=Object.entries(s);S<k.length;S++){var I=k[S],w=I[0],x=I[1];C[w]=Math.ceil(x.width)}return C}},e.toFormat=function(s,t,a){if("boolean"==typeof s)return s;if(!s&&"number"!=typeof s)return s;switch(t){case"number":case"percent":return a=a||"#",_.isDefined(s)&&!isNaN(Number(s))?function(t){var e=a.replace(/#+/g,"#").split("#").filter(function(t){return t}),i=a.match(/0/g)&&a.match(/0/g).length;s=("percent"===t?100*Number(s):s).toString();var n,o,r=Math.trunc(Number(s));i&&(o=s.split(".")[1]||"0",n=e.find(function(t){return t.includes("0")}).replace(/0+/g,""),o=Number("0."+o).toFixed(i),1<=Number(o)&&r++,o=o.toString().split(".")[1].padEnd(i,"0"));var r=(s<0&&0===Math.abs(r)?"-":"")+r,e=e.find(function(t){return!t.includes("0")}),r=e?r.replace(/(\d)(?=(\d{3})+(\D|$))/g,"$1"+e):r;return r+=(n||"")+(o||""),"percent"===t?r+"%":r}(t):s;case"date":return a=a||"%M %d %Y","string"==typeof s?s=P.getFormattedDate(a,P.stringToDate(s,a)):"object"==typeof s&&(s=P.getFormattedDate(a,s)),s;default:return s}},e.getEditorOptions=function(t,e){return n(("function"==typeof t.options?t.options(t,e):t.options)||[],t.$customOptions||[])}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),i=(o.prototype.getFocusId=function(){return this._activeWidgetId},o.prototype.setFocusId=function(t){this._activeWidgetId=t},o);function o(){var e=this;this._initHandler=function(t){return e._activeWidgetId=n.locate(t,"data-dhx-widget-id")},this._removeFocusClass=function(t){var e=document.body.classList;e.contains("utilityfocus")&&e.remove("utilityfocus")},this._addFocusClass=function(t){var e=document.body.classList;"Tab"===t.code?e.contains("utilityfocus")||e.add("utilityfocus"):e.contains("utilityfocus")&&e.remove("utilityfocus")},document.addEventListener("focusin",this._initHandler),document.addEventListener("pointerdown",this._initHandler),document.addEventListener("mousedown",this._removeFocusClass),document.addEventListener("keydown",this._addFocusClass)}e.focusManager=new i},function(t,w,e){"use strict";var x=this&&this.__assign||function(){return(x=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},u=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(w,"__esModule",{value:!0});var E=e(0),d=e(3),c=e(18),C=e(15),S=e(9),k=e(27),I=e(79),O=e(80),p=e(1);function P(t,e,i){void 0===e&&(e=!1);var n=t.headerHeight,o=void 0===n?t.$headerLevel*t.headerRowHeight:n,n=t.footerHeight,n=void 0===n?t.$footerLevel*t.footerRowHeight:n,n=t.$totalHeight+o+n+w.BORDERS>(null!==(o=null==i?void 0:i.height)&&void 0!==o?o:t.$height),o=!n||e?0:d.getScrollbarWidth(),t=t.$totalWidth+w.BORDERS+o>(null!==(i=null==i?void 0:i.width)&&void 0!==i?i:t.$width);return{x:!t||e?0:d.getScrollbarWidth(),y:o,xState:t,yState:n}}function h(t,e){return t[e]?(e===S.Split.left?t.columns.slice(0,t.leftSplit):t.columns.slice(-t.rightSplit)).filter(function(t){return!t.hidden}):[]}function D(t,e,i){var n=t.config,o=n.columns.filter(function(t){return!t.hidden}),r=c.calculatePositions(i.width,i.height,t._scroll,n,e),s=o.slice(r.xStart,r.xEnd),a=e.slice(r.yStart,r.yEnd),l={left:h(n,S.Split.left),right:h(n,S.Split.right)},i={top:e.slice(0,n.topSplit||0),bottom:n.bottomSplit?e.slice(-n.bottomSplit):[]};return x(x({},n),{data:e,columns:n.columns,scroll:t._scroll,$positions:r,headerHeight:n.$headerLevel*n.headerRowHeight,footerHeight:n.$footerLevel*n.footerRowHeight,firstColId:o[0]&&o[0].id,events:t.events,_events:t._events,filteredColumns:o,currentColumns:s,currentRows:a,fixedColumns:l,fixedRows:i,sortBy:t._sortBy,sortDir:t._sortDir,content:t.content,gridId:t._uid,$renderFrom:"render"})}function V(t){if(t&&(t.tagName||(t=t._parent._container),t)){var e=t.currentStyle||window.getComputedStyle(t),i=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)||0,e=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)||0;return{width:t.clientWidth-i,height:t.clientHeight-e}}}function g(t,r){var e,s=t.currentColumns,a=t.currentRows,l=t.fixedRows,c=t.fixedColumns,i=t.eventHandlers,n={};if(i)for(var o in i)i.hasOwnProperty(o)&&(e=i[o],n[o]=d.eventHandler(function(t){var e,i,n=d.locate(t,"data-dhx-id"),o=d.locate(t,"data-dhx-col-id");switch(r){case S.Split.left:case S.Split.right:e=u(l.top,l.bottom,a).find(function(t){return t.id.toString()===n}),i=u(c.left,c.right).find(function(t){return t.id===o});break;case S.Split.top:case S.Split.bottom:e=u(l.top,l.bottom).find(function(t){return(null==t?void 0:t.id.toString())===n}),i=u(c.left,c.right,s).find(function(t){return t.id===o});break;default:e=a.find(function(t){return t.id.toString()===n}),i=s.find(function(t){return t.id===o})}return{row:n?e:{},col:o?i:{}}},x({},e)));return n}function M(t,e){var i,n=k.getCells(t),o=t.filteredColumns,r=t.$resizing,s=t.$totalHeight,a=t.$totalWidth,l=t.leftSplit,c=t.data,u=t.$positions,d=k.getSpans(t);r&&(h=p.findIndex(o,function(t){return t.id===r}),f=C.getTotalWidth(o.slice(0,h))+o[h].$width,i=E.el(".dhx_grid-resize-line",{style:{top:0,left:f,height:s}}));var h="string"==typeof(h=t.selection?t.selection.toHTML():null)?E.el("div.dhx_selection",{".innerHTML":h}):h,f=u,u=g(t);return E.el(".dhx_data-wrap",x({style:{height:s,width:a,"padding-left":e.x,"padding-top":e.y},role:"presentation"},u),[E.el(".dhx_grid_data"+(l?".dhx_grid_fixed_left":""),x(x({_flags:E.KEYED_LIST},k.getHandlers(f.yStart,f.xStart,t)),{role:"rowgroup","aria-rowcount":c.length}),n),E.el(".dhx_span-spans",x({role:"presentation"},k.getHandlers(f.yStart,f.xStart,t)),d),E.el(".dhx_grid_selection",{_ref:"selection","aria-hidden":"true"},[h,i])])}function T(t,e,i){i=i.height-w.BORDERS,i=e?i:i-t.headerHeight;return!t.$footer||e?i:i-t.footerHeight}function H(e,t,o,r,i){void 0===o&&(o=!0),void 0===r&&(r=!1),void 0===i&&(i=!1);var s,n=!i&&e.$totalHeight>=t.height-e.headerRowHeight?d.getScrollbarWidth():0,a=t.width-w.BORDERS-n,l=e.columns.filter(function(t){return!t.hidden}),n=l.filter(function(t){return!t.width&&!t.$fixed&&C.isAutoWidth(e,t)}),c=C.getTotalWidth(l.filter(function(t){return t.width||t.$fixed||!C.isAutoWidth(e,t)})),u=n.reduce(function(t,e){return t+(e.gravity||1)},0);a<e.$totalWidth?(s=n.reduce(function(t,e){return t+(e.maxWidth||e.$width)},0),n.length&&n.forEach(function(t){var e=0,i=(e=o?Math.abs(a-s)*((t.gravity||1)/u):Math.abs(a-c)*((t.gravity||1)/u))<t.minWidth,n=e>t.maxWidth;i||n?i?(c+=t.$width-e,t.$fixed=!0):n&&(t.$width=t.maxWidth,t.$fixed=!0):t.$width=e,t.$width<20&&(t.$width=20)})):n.forEach(function(t){var e=Math.abs(a-c)*((t.gravity||1)/u),i=e<t.minWidth,n=e>t.maxWidth;i||n?i?(c+=t.$width-e,r&&(t.$fixed=!0)):n&&(t.$width=t.maxWidth,r&&(t.$fixed=!0)):t.$width=e,t.$width<20&&(t.$width=20),!o&&t.$fixed&&delete t.$fixed}),o&&H(e,t,!1,r,i)}w.BORDERS=2,w.calcScrollBarWidth=P,w.getCurrFixedCols=h,w.getRenderConfig=D,w.getElementSizes=V,w.getEvents=g,w.applyAutoWidth=H,w.render=function(t,e,i,n,o){e._container||(e.config.$width=1,e.config.$height=1),t&&t.node&&t.node.parent&&t.node.parent.el&&(b=V(t.node.parent.el),e.config.$width=b.width,e.config.$height=b.height);var r=e.config;if(!r)return E.el("div");if(!r.columns.length)return E.el(".dhx_grid",{"data-dhx-widget-id":o,"data-dhx-root-id":r.rootParent,role:"empty-grid"});var s=e.data.getRawData(0,-1,null,2);r.columns.reduce(function(t,e){return e.hidden&&t},!0)?r.$totalHeight=0:r.$totalHeight=s.reduce(function(t,e){return t+(e.$height||0)},0);var a=V(e._container),l={width:r.$width||(r.width&&"number"==typeof r.width?r.width:null==a?void 0:a.width)||0,height:r.$height||(r.height&&"number"==typeof r.height?r.height:null==a?void 0:a.height)||0};C.isAutoWidth(r)&&(H(r,l),r.$totalWidth=C.getTotalWidth(r.columns.filter(function(t){return!t.hidden}))),r.$width=l.width,r.$height=l.height;var c=D(e,s,l);c.selection=n,c.datacollection=e.data;var u=k.getShifts(c);c.$scrollBarWidth=P(c);var d,h,f,p,g=C.isCssSupport("position","sticky"),v=T(c,g,l),_={wrapper:l,sticky:g,shifts:u,gridBodyHeight:v},m=O.getFixedRows(c,x(x({},_),{name:"header",position:"top"})),y=c.$footer?O.getFixedRows(c,x(x({},_),{name:"footer",position:"bottom"})):null,b=c.$totalWidth+w.BORDERS<l.width?"dhx_grid-less-width":"",a=c.$totalHeight+w.BORDERS<l.height?"dhx_grid-less-height":"",s=c.fixedColumns.right.length?"dhx_grid__contains_cols_right--fixed":"",n=r.bottomSplit?"dhx_grid__contains_rows_bottom--fixed":"";return t.node||(t=e.getScrollState(),d=t.x,h=t.y,E.awaitRedraw().then(function(){e.scroll(d,h)})),E.el(".dhx_grid.dhx_widget",x({class:(c.css||"")+(g?"":" dhx_grid_border")+(r.multiselection?" dhx_no-select--pointer":""),"data-dhx-widget-id":o,"data-dhx-root-id":r.rootParent},(f=c.data,p=r.columns,t=c.editable,o=c.multiselection,{role:"grid","aria-rowcount":f.length,"aria-colcount":p.filter(function(t){return!t.hidden}).length,"aria-readonly":t?"false":"true","aria-multiselectable":o?"true":"false"})),[E.resizer(function(t){return C.isAutoWidth(e.config)&&t&&(r.$totalWidth=0,H(r,l,!0,!0)),e.paint()}),E.el(".dhx_grid-content",{style:x({},l),onclick:i.onclick,onmouseover:i.onmouseover,class:(b+" "+a+" "+s+" "+n).trim(),role:"presentation"},[g?null:m,E.el(".dhx_grid-body",{style:{height:v,width:l.width-w.BORDERS},onscroll:i.onscroll,_ref:"grid_body",role:"presentation"},[E.el("div",{},[g?m:null,M(c,u),g?y:null])]),I.getFixedColsHeader(c,_,S.Split.left),I.getFixedColsHeader(c,_,S.Split.right),I.getFixedCols(c,_,S.Split.left),I.getFixedCols(c,_,S.Split.right),O.getFixedDataRows(c,_,S.Split.top),O.getFixedDataRows(c,_,S.Split.bottom),g?null:y])])},w.proRender=function(t,e,i,n,o){e._container||(e.config.$width=1,e.config.$height=1),t&&t.node&&t.node.parent&&t.node.parent.el&&(v=V(t.node.parent.el),e.config.$width=v.width,e.config.$height=v.height);var r=e.config;if(!r)return E.el("div");if(!r.columns.length)return E.el(".dhx_grid",{"data-dhx-widget-id":o,"data-dhx-root-id":r.rootParent,role:"empty-grid"});var s,a=e.data.getRawData(0,-1,null,2);r.columns.reduce(function(t,e){return e.hidden&&t},!0)?r.$totalHeight=0:r.$totalHeight=a.reduce(function(t,e){return t+(e.$height||0)},0);var l=V(e._container);"auto"===e.config.height&&(s=function(t,e,i){var n=t._container,o=e.$headerLevel*e.headerRowHeight,r=e.$footerLevel*e.footerRowHeight,o=o+(r&&1+r)+e.$totalHeight+w.BORDERS;if(n){var r=window.getComputedStyle(n),n=r.minHeight,r=r.maxHeight;return o<=parseFloat(n)?parseFloat(n):o>=parseFloat(r)?parseFloat(r):o+P(e,!(null===(r=t.scrollView)||void 0===r||!r.config.enable),i).x}return o+(i?P(e,!(null===(t=t.scrollView)||void 0===t||!t.config.enable),i).x:0)}(e,r,v||l)),_=r.$width||(r.width&&"number"==typeof r.width?r.width:null==l?void 0:l.width),m=r.$height||(r.height&&"number"==typeof r.height?r.height:null==l?void 0:l.height);var c={width:_||0,height:("auto"===e.config.height?s:m)||0};C.isAutoWidth(r)&&(H(r,c,!0,!1,e.scrollView&&e.scrollView.config.enable),r.$totalWidth=C.getTotalWidth(r.columns.filter(function(t){return!t.hidden}))),r.$width=c.width,r.$height=c.height;var u=D(e,a,c);u.selection=n,u.datacollection=e.data;var d=k.getShifts(u);u.$scrollBarWidth=P(u,!(null===(y=e.scrollView)||void 0===y||!y.config.enable));var h,f,p=C.isCssSupport("position","sticky"),g=T(u,p,c),v={wrapper:c,sticky:p,shifts:d,gridBodyHeight:g},l=O.getFixedRows(u,x(x({},v),{name:"header",position:"top"})),_=u.$footer?O.getFixedRows(u,x(x({},v),{name:"footer",position:"bottom"})):null,m=u.$totalWidth+w.BORDERS<c.width?"dhx_grid-less-width":"",a=u.$totalHeight+w.BORDERS<c.height?"dhx_grid-less-height":"",n=u.fixedColumns.right.length?"dhx_grid__contains_cols_right--fixed":"",y=r.bottomSplit?"dhx_grid__contains_rows_bottom--fixed":"";return t.node||(t=e.getScrollState(),h=t.x,f=t.y,E.awaitRedraw().then(function(){e.scroll(h,f)})),d=E.el("div",{},[p?l:null,M(u,d),p?_:null]),E.el(".dhx_grid.dhx_widget",{class:(u.css||"")+(p?"":" dhx_grid_border")+(r.multiselection?" dhx_no-select--pointer":""),style:{height:null!=s?s:null},"data-dhx-widget-id":o,"data-dhx-root-id":r.rootParent,role:"grid","aria-rowcount":u.data.length,"aria-colcount":r.columns.filter(function(t){return!t.hidden}).length},[E.resizer(function(t){return C.isAutoWidth(e.config)&&t&&(r.$totalWidth=0,H(r,c,!0,!0)),e.paint()}),E.el(".dhx_grid-content",{style:x({},c),onclick:i.onclick,onmouseover:i.onmouseover,class:(m+" "+a+" "+n+" "+y).trim(),role:"presentation"},[p?null:l,E.el(".dhx_grid-body",{style:{height:g,width:c.width-w.BORDERS},onscroll:i.onscroll,_ref:"grid_body",role:"presentation"},[e.scrollView&&e.scrollView.config.enable?e.scrollView.render([d]):d]),I.getFixedColsHeader(u,v,S.Split.left),I.getFixedColsHeader(u,v,S.Split.right),I.getFixedCols(u,v,S.Split.left),I.getFixedCols(u,v,S.Split.right),O.getFixedDataRows(u,v,S.Split.top),O.getFixedDataRows(u,v,S.Split.bottom),p?null:_])])}},function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s=e(1),o=e(0),_=e(3);i.scrollViewConfig={enable:!1,autoHide:!0,timeout:1e3,scrollHandler:function(){}};n.prototype.enable=function(){this.config.enable=!0,this._getRootView().redraw()},n.prototype.disable=function(){this.config.enable=!1,this._getRootView().redraw()},n.prototype.render=function(t,e){var i=this;if(void 0===e&&(e=""),!this.config.enable||!t.length)return t;e&&(this._uid=e);var n=this.config.enable?[o.el(".y-scroll",((n={})[this._wheelName]=this._handlers[this._wheelName],n._ref=e?"scroll-y-area-"+e:"scroll-y-area",n.onmousedown=this._handlers.onmousedownArea,n.onmouseenter=this._handlers.onmouseenter,n.onmouseleave=this._handlers.onmouseleave,n.style={width:"6px",height:"100%",right:0,top:0,position:"absolute"},n),[o.el(".scroll-runner",{_ref:e?"scroll-y-runner-"+e:"scroll-y-runner",onmousedown:this._handlers.onmousedownRunner,style:{height:this._runnerHeight+"px",top:this._runnerYTop}})]),o.el(".x-scroll",((n={})[this._wheelName]=this._handlers[this._wheelName],n._ref=e?"scroll-x-area-"+e:"scroll-x-area",n.onmousedown=this._handlers.onmousedownArea,n.onmouseenter=this._handlers.onmouseenter,n.onmouseleave=this._handlers.onmouseleave,n.style={width:"100%",height:"6px",left:0,bottom:0,position:"absolute"},n),[o.el(".scroll-runner",{_ref:e?"scroll-x-runner-"+e:"scroll-x-runner",onmousedown:this._handlers.onmousedownRunner,style:{width:this._runnerWidth+"px",left:this._runnerXLeft}})])]:null;return o.el(".scroll-view-wrapper",[o.el(".scroll-view",{onscroll:this._handlers.onscroll,_ref:e?"scroll-view-"+e:"scroll-view",_hooks:{didInsert:function(){i.update()},didRecycle:function(){i.update()}},style:{width:"calc(100% + "+this._scrollWidth+"px)",height:"calc(100% + "+this._scrollHeight+"px)"}},t)].concat(n))},n.prototype.update=function(){var t,e,i,n,o,r=this._getRefs();r&&(o=r.area,t=r.areaX,e=r.areaY,i=r.runnerY,n=r.runnerX,this._visibleYArea=o.clientHeight/o.scrollHeight,this._visibleXArea=o.clientWidth/o.scrollWidth,this._scrollYTop=o.scrollTop,this._scrollXLeft=o.scrollLeft,this._runnerYTop=this._scrollYTop*this._visibleYArea,this._runnerXLeft=this._scrollXLeft*this._visibleXArea,this._runnerHeight=this._visibleYArea<1?o.clientHeight*this._visibleYArea:0,this._runnerWidth=this._visibleXArea<1?o.clientWidth*this._visibleXArea:0,r=i.style.top,o=n.style.left,i.style.opacity=1,i.style.top=this._runnerYTop+"px",i.style.height=this._runnerHeight+"px",n.style.opacity=1,n.style.left=this._runnerXLeft+"px",n.style.width=this._runnerWidth+"px",r!==i.style.top&&(e.style.opacity=.9,e.style.width="10px"),o!==n.style.left&&(t.style.opacity=.9,t.style.height="10px"),this.config.autoHide?this._autoHideFunc||(this._autoHideFunc=s.debounce(function(){i.style.opacity=0,e.style.width="6px",n.style.opacity=0,t.style.height="6px"},this.config.timeout)):this._autoHideFunc=s.debounce(function(){e.style.width="6px",t.style.height="6px"},this.config.timeout),this._autoHideFunc())},n.prototype._getRefs=function(){var t=this._getRootView(),e=!(!t.refs["scroll-view"]||!t.refs["scroll-x-runner"]&&!t.refs["scroll-y-runner"]),i=!(!this._uid||!t.refs["scroll-view-"+this._uid]||!t.refs["scroll-x-runner-"+this._uid]&&!t.refs["scroll-y-runner-"+this._uid]);if(t.refs)return e?{area:t.refs["scroll-view"].el,areaY:t.refs["scroll-y-area"].el,areaX:t.refs["scroll-x-area"].el,runnerY:t.refs["scroll-y-runner"].el,runnerX:t.refs["scroll-x-runner"].el}:i?{area:t.refs["scroll-view-"+this._uid].el,areaY:t.refs["scroll-y-area-"+this._uid].el,areaX:t.refs["scroll-x-area-"+this._uid].el,runnerY:t.refs["scroll-y-runner-"+this._uid].el,runnerX:t.refs["scroll-x-runner-"+this._uid].el}:void 0},e=n;function n(t,e){var v=this;void 0===e&&(e={}),this.config=s.extend({enable:i.scrollViewConfig.enable,autoHide:i.scrollViewConfig.autoHide,timeout:i.scrollViewConfig.timeout,scrollHandler:i.scrollViewConfig.scrollHandler},e),this._wheelName=_.isIE()?"onmousewheel":"onwheel",this._getRootView=t,this._scrollYTop=this._scrollXLeft=this._runnerYTop=this._runnerXLeft=this._runnerHeight=this._runnerWidth=0,this._visibleYArea=this._visibleXArea=1,this._scrollWidth=_.getScrollbarWidth(),this._scrollHeight=_.getScrollbarHeight(),this._handlers=((t={onscroll:function(t){v.config.scrollHandler(t),v.update()}})[this._wheelName]=function(t){var e=!!_.locateNodeByClassName(t.target,"y-scroll");t.preventDefault();var i,n=40*(0<(t.deltaY||-t.wheelDelta)?1:-1),t=v._getRefs().area;e?(e=t.scrollHeight-v._runnerHeight,i=v._scrollYTop+n,t.scrollTop=i<0?0:e<i?e:i):(i=t.scrollWidth-v._runnerWidth,n=v._scrollXLeft+n,t.scrollLeft=n<0?0:i<n?i:n),v.update()},t.onmousedownRunner=function(t){t.preventDefault();function e(t){var e;i?(e=t.pageY-u,o.scrollTop=e<=a?0:l<e?c:(e-a)/v._visibleYArea):(t=t.pageX-p,o.scrollLeft=t<=d?0:h<t?f:(t-d)/v._visibleXArea),v.update()}var i=!!_.locateNodeByClassName(t.target,"y-scroll"),n=v._getRefs(),o=n.area,r=n.runnerY,s=n.runnerX,n=o.getBoundingClientRect(),a=n.top+window.pageYOffset,l=n.bottom+window.pageYOffset,c=o.scrollHeight-v._runnerHeight,u=t.pageY-r.getBoundingClientRect().top-window.pageYOffset,d=n.left+window.pageXOffset,h=n.right+window.pageXOffset,f=o.scrollWidth-v._runnerWidth,p=t.pageX-s.getBoundingClientRect().left-window.pageXOffset,g=function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",g),document.body.classList.remove("dhx-no-select")};document.body.classList.add("dhx-no-select"),document.addEventListener("mousemove",e),document.addEventListener("mouseup",g)},t.onmousedownArea=function(t){var e,i,n,o;_.locateNodeByClassName(t,"scroll-runner")||(t.preventDefault(),e=!!_.locateNodeByClassName(t.target,"y-scroll"),i=(o=v._getRefs()).area,n=o.runnerY,o=o.runnerX,e?i.scrollTop+=(t.pageY-n.getBoundingClientRect().top)/v._visibleYArea:i.scrollLeft+=(t.pageX-o.getBoundingClientRect().left)/v._visibleXArea,v.update())},t.onmouseenter=function(t){var e,i;_.locateNodeByClassName(t,"scroll-runner")||(i=v._getRefs())&&(e=!!_.locateNodeByClassName(t.target,"y-scroll"),t=i.areaX,i=i.areaY,e&&0<v._runnerHeight?i.style.background="#eee":!e&&0<v._runnerWidth&&(t.style.background="#eee"))},t.onmouseleave=function(t){var e,i;_.locateNodeByClassName(t,"scroll-runner")||(i=v._getRefs())&&(e=!!_.locateNodeByClassName(t.target,"y-scroll"),t=i.areaX,i=i.areaY,e&&0<v._runnerHeight?i.style.background="transparent":!e&&0<v._runnerWidth&&(t.style.background="transparent"))},t)}i.ScrollView=e},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(165)),n(e(166)),n(e(38))},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.TreeFilterType||(e.TreeFilterType={})).all="all",n.level="level",n.leafs="leafs",(n=e.DataEvents||(e.DataEvents={})).afterAdd="afteradd",n.beforeAdd="beforeadd",n.removeAll="removeall",n.beforeRemove="beforeremove",n.afterRemove="afterremove",n.change="change",n.filter="filter",n.dataRequest="dataRequest",n.load="load",n.loadError="loaderror",n.beforeLazyLoad="beforelazyload",n.afterLazyLoad="afterlazyload",n.beforeItemLoad="beforeItemLoad",n.afterItemLoad="afterItemLoad",(n=e.DragEvents||(e.DragEvents={})).beforeDrag="beforeDrag",n.dragStart="dragStart",n.dragOut="dragOut",n.dragIn="dragIn",n.canDrop="canDrop",n.cancelDrop="cancelDrop",n.beforeDrop="beforeDrop",n.afterDrop="afterDrop",n.afterDrag="afterDrag",(e=e.DataDriver||(e.DataDriver={})).json="json",e.csv="csv",e.xml="xml"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(1),o=i(26),r=i(62);e.isEqualObj=function(t,e){for(var i in t)if(t[i]!==e[i]||Array.isArray(t[i]))return!1;return!0},e.naturalCompare=function(t,e){if(isNaN(t)||isNaN(e)){var n=[],o=[];for(t.replace(/(\d+)|(\D+)/g,function(t,e,i){n.push([e||1/0,i||""])}),e.replace(/(\d+)|(\D+)/g,function(t,e,i){o.push([e||1/0,i||""])});n.length&&o.length;){var i=n.shift(),r=o.shift(),r=i[0]-r[0]||i[1].localeCompare(r[1]);if(r)return r}return n.length-o.length}return t-e},e.findByConf=function(t,e){if("function"==typeof e){if(e.call(this,t))return t}else if(e.by&&e.match&&t[e.by]===e.match)return t},e.isDebug=function(){var t=window.dhx;if(void 0!==t)return void 0!==t.debug&&t.debug},e.dhxWarning=function(t){console.warn(t)},e.dhxError=function(t){throw new Error(t)},e.toProxy=function(t){var e=typeof t;return"string"==e?new o.DataProxy(t):"object"==e?t:void 0},e.toDataDriver=function(t){if("string"==typeof t){var e=window.dhx,e=e&&e.dataDrivers||r.dataDrivers;if(e[t])return new e[t];console.warn("Incorrect data driver type:",t),console.warn("Available types:",JSON.stringify(Object.keys(e)))}else if("object"==typeof t)return t},e.copyWithoutInner=function(t,e){var i,n={};for(i in t)i.startsWith("$")||e&&e[i]||(n[i]=t[i]);return n},e.isTreeCollection=function(t){return Boolean(t.getRoot)},e.hasJsonOrArrayStructure=function(t){if("object"==typeof t)return!0;if("string"!=typeof t)return!1;try{var e=JSON.parse(t);return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}catch(t){return!1}},e.isOnlyPermanentFilters=function(e){return!(!e||n.isEmptyObj(e))&&Object.keys(e).every(function(t){return null===(t=e[t].config)||void 0===t?void 0:t.permanent})}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.ChartEvents||(e.ChartEvents={})).toggleSeries="toggleSeries",e.chartMouseMove="chartMouseMove",e.chartMouseLeave="chartMouseLeave",e.resize="resize",e.serieClick="serieClick",e.seriaMouseMove="seriaMouseMove",e.seriaMouseLeave="seriaMouseLeave"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(41),i=(o.prototype.updateUrl=function(t,e){for(var i in void 0===e&&(e={}),this._url=this.url=t||this._url,this.url+=this.url.includes("?")?"&":"?",e)this.config[i]=e[i],this.url+=i+"="+encodeURIComponent(e[i])+"&";this.url=this.url.slice(0,-1)},o.prototype.load=function(){return n.ajax.get(this.url,null,{responseType:"text"})},o.prototype.save=function(t,e){switch(e){case"delete":return n.ajax.delete(this.url,t);case"update":return n.ajax.put(this.url,t);case"insert":default:return n.ajax.post(this.url,t)}},o);function o(t,e){this.url=this._url=t,this.config=e}e.DataProxy=i},function(t,e,i){"use strict";var y=this&&this.__assign||function(){return(y=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var Y=i(1),X=i(0),U=i(32),K=i(15),J=i(9),n=i(132),c=i(3),Z=i(18),Q=i(20);function o(t,e,i,n,o){e=c.locateNodeByClassName(o.target,"dhx_grid-fixed-cols-wrap")?0:e;var r,s,a=c.locateNodeByClassName(o.target,"dhx_grid-cell"),l=c.locateNodeByClassName(o.target,"dhx_span-cell");(a||l)&&n&&(e=a?a.parentNode:l,r=(a||l).getAttribute("data-dhx-col-id"),l=i.filteredColumns.find(function(t){return t.id===r}),s=e.getAttribute("data-dhx-id"),e=(i.$data||i.data).find(function(t){return t.id.toString()===s}),(n.toLocaleLowerCase().includes("touch")?i._events:i.events).fire(n,[e,l,o]))}function m(t,e,i,n){var o=n.$editable&&n.$editable.row===e.id&&n.$editable.col===i.id,r=!n.fixedColumns.left.length||"leftFixedCols"===n.$renderFrom,s=i.align?"dhx_align-"+i.align:"dhx_align-left",a="";r&&(a="dhx_tree-cell "+(i.$cellCss[e.id]||"")+" "+s,e.$items&&(a+=" dhx_grid-expand-cell"),o&&(a+=" dhx_tree-editing-cell"),n.dragMode&&!o&&(a+=(e.$drophere?" dhx_grid-cell--drophere":"")+(e.$dragtarget?" dhx_grid-cell--dragtarget":"")));o=Z.getTreeCellWidthOffset(e);return X.el(".dhx_grid-cell",y({class:a,style:{width:i.$width,height:e.$height,padding:e.$items?0:"0 0 0 "+o+"px"},"data-dhx-col-id":i.id},{role:"gridcell","aria-colindex":1}),r?[e.$items?X.el(".dhx_grid-expand-cell-icon",y(y({class:e.$opened?"dxi dxi-chevron-up":"dxi dxi-chevron-down","data-dhx-id":e.id},{role:"button","aria-label":e.$opened?"Collapse group":"Expand group"}),{style:{padding:e.$level?"0 0 0 "+(4+o)+"px":"0 0 0 4px"}})):null,X.el(".dhx_tree-cell",{class:s+(n.autoHeight?" dhx_tree-cell_auto-height":"")},[t])]:null)}function tt(t,e,i){return n.getEditor(t,e,i)}function et(t){var e=t.$scrollBarWidth,i=t.$headerLevel*t.headerRowHeight,n=t.$footerLevel*t.footerRowHeight,o=t.$totalWidth-t.$width+Q.BORDERS+e.y,e=t.$totalHeight-t.$height+i+n+Q.BORDERS+e.x;return{x:0<o?o-t.scroll.left:0,y:0<e?e-t.scroll.top:0}}e.getHandlers=function(t,e,i){return{onclick:[o,t,e,i,J.GridEvents.cellClick],onmouseover:[o,t,e,i,J.GridEvents.cellMouseOver],onmousedown:[o,t,e,i,J.GridEvents.cellMouseDown],ondblclick:[o,t,e,i,J.GridEvents.cellDblClick],oncontextmenu:[o,t,e,i,J.GridEvents.cellRightClick],ontouchstart:[o,t,e,i,J.GridEvents.cellMouseDown],ontouchmove:[o,t,e,i,J.GridSystemEvents.cellTouchMove],ontouchend:[o,t,e,i,J.GridSystemEvents.cellTouchEnd]}},e.getTreeCell=m,e.getCells=function(p){if(!p.data||!p.filteredColumns)return[];var o,g=p.$positions,r=p.data?p.data.slice(g.yStart,g.yEnd):[],s=p.filteredColumns.slice(g.xStart,g.xEnd),v=p.selection.getCell(),_=!0,t=document.querySelector(".dhx_drag-ghost");return!t||(t=Array.from(t.querySelectorAll(".dhx_grid-row")).map(function(t){return Number(t.getAttribute("aria-rowindex"))-1})).length&&(o=t.map(function(t){return p.data[t]}).filter(function(e){return e&&!r.find(function(t){return t.id===e.id})}),r.push.apply(r,o)),r.map(function(f,t){var e=null==o?void 0:o.some(function(t){return t.id===f.id}),i=r.length-1===t,n="";return p.rowCss&&(n=p.rowCss(f)),f.$css&&(n+=f.$css),X.el(".dhx_grid-row",y({style:{height:i?f.$height+1:f.$height,display:e?"none":null},"data-dhx-id":f.id,class:n,_key:f.id,_flags:X.KEYED_LIST},e?{}:{role:"row","aria-rowindex":g.yStart+t+1}),f.$customRender?[f.$customRender(f,p)]:s.map(function(t,e){var i;if(!t.hidden){var n=f[t.id],o=Z.getEditorOptions(t,f);(t.editable||p.editable&&!1!==t.editable)&&("select"===t.editorType||"combobox"===t.editorType||"multiselect"===t.editorType)&&o&&(n=(n="string"==typeof n&&"multiselect"===t.editorType?n.split(",").map(function(t){return t.trim()}):[null==n?void 0:n.toString()]).map(function(e){var t;return null!==(t=null===(t=o.find(function(t){return t.id&&t.id.toString()===e}))||void 0===t?void 0:t.value)&&void 0!==t?t:e}).join(", "));var r=Z.toFormat(n,t.type,t.format),s=function(t,e,i,n){return y({role:"gridcell","aria-colindex":e,"aria-readonly":n?"false":"true"},(e=t,n=f,t={tabindex:-1},v?v.row.id===n.id&&v.column.id===e.id&&(t.tabindex=0):_&&(t.tabindex=0,t.onfocus=function(t){var e;p.selection&&!v&&(e=t.target.parentNode.getAttribute("data-dhx-id"),(t=t.target.getAttribute("data-dhx-col-id"))&&e&&(p.selection.setCell(e,t),v=p.selection.getCell()))}),_=!1,t))},a=t.template?t.template(r,f,t):"boolean"!=typeof(i=r)&&"boolean"!==t.type||"string"==typeof i?i||0===i?i:"":""+Boolean(i);"string"==typeof a&&(a=K.isHtmlEnable(p,t)?X.el("div.dhx_grid-cell__content",y({".innerHTML":a},{role:"button","aria-label":"Edit content"})):a);var l=((t.$cellCss&&t.$cellCss[f.id]||"")+" dhx_"+t.type+"-cell").replace(/\s+/g," "),c=t.$width,u=p.$editable&&p.$editable.row===f.id&&p.$editable.col===t.id&&!p.$editable.isSpan,d=p.leftSplit,h=p.filteredColumns;return((u||"boolean"===t.type&&(p.editable&&(null===(n=t.editable)||void 0===n||n)||!p.editable&&t.editable))&&(a=tt(f,t,p).toHTML(),l+=" dhx_grid-cell__editable",d===h.indexOf(t)+1&&--c),"tree"===p.type&&p.firstColId===t.id)?m(a,f,t,p):(p.dragMode&&!u&&(l+=(f.$drophere?" dhx_grid-cell--drophere":"")+(f.$dragtarget?" dhx_grid-cell--dragtarget":"")),t.align&&(l+=" dhx_align-"+t.align),K.isHtmlEnable(p,t)&&(l+=" dhx_grid-cell__content_html-enable"),p.autoHeight&&(l+=" dhx_grid-cell__content_auto-height"),X.el(".dhx_grid-cell",y({class:l,style:{width:c,height:f.$height+"px"},_key:t.id,"data-dhx-col-id":t.id},s(t,g.xStart+e+1,0,p.editable)),[a]))}}))})},e.getSpans=function(L,A){var j,$=[],N=L.columns,z=L.filteredColumns,W=L.data,t=L.spans,B=L.bottomSplit;if(!z.length||!t)return null;for(var G=L.fixedColumns.right.length,q=t.filter(function(t){return null===(t=t.$renderFrom)||void 0===t?void 0:t.includes(L.$renderFrom)}).sort(function(t,e){return"string"==typeof t.row&&"string"==typeof e.row?t.row.localeCompare(e.row):t.row-e.row}),e=0;e<q.length;e++)!function(t){var e=q[t].row,i=q[t].column,n=q[t].rowspan||1,o=q[t].colspan||1,r=q[t].text,s=q[t].css,a=q[t].$markCss,l=q[t].$type,c=A===J.Split.bottom&&L.$renderFrom.endsWith("FixedCols"),u=c?L.$data:W,d=Y.findIndex(z,function(t){return""+t.id==""+i}),h=Y.findIndex(u,function(t){return""+t.id==""+e});if(d<0||h<0)return;if(c){var f=L.$data[h+n-1];if(!W.find(function(t){return t.id===(null==f?void 0:f.id)}))return}var p=z[d],g=u[h];if(p.hidden)return;var v=void 0;v=Y.isDefined(r)?r.toString():void 0===g[i]?"":Z.toFormat(g[i],p.type,p.format);v=(p.template||function(t,e,i){return t||0===t?t:""})(v,g,p);var _=K.isHtmlEnable(L,p);v="string"==typeof v?X.el("div.dhx_span-cell-content",{".innerHTML":_?v:null},_?null:v):v;var m=void 0;m="bottomFixedRows"===L.$renderFrom||c?h<(R=u.length-B)?-K.getTotalHeight(u.slice(h,R)):K.getTotalHeight(u.slice(R,h)):K.getTotalHeight(u.slice(0,h))-(A?0:1);var y=0;if("rightFixedCols"===L.$renderFrom)var b=z.length-L.fixedColumns.right.length,y=d<b?-K.getTotalWidth(z.slice(d,b)):K.getTotalWidth(z.slice(b,d));else for(var w=d-1;0<=w;w--)y+=z[w].$width;var x=g.$items&&0===d,E=d===z.length-1,C=d+U.getReducedColspan(N,i,o)===z.length,S=G&&d===z.length-G,k=A===J.Split.bottom&&L.fixedRows.bottom.find(function(t){return t.id===e}),I=B&&h+n>u.length-B,O=G&&d+o===z.length-G,P=p.header[0].text?" dhx_span-cell":" dhx_span-cell dhx_span-cell--title";P+=x?" dhx_span-expand-cell":"",P+=a?" "+a:"",P+=s?" "+s:"",P+=0===h?" dhx_span-first-row":"",P+=h+n===u.length?" dhx_grid__span_bottom--last-row":"",P+=0===d||S?" dhx_span-first-col":"",P+=E||C?" dhx_span-last-col":"",P+=1===o?" dhx_span-"+(p.type||"string")+"-cell":" dhx_span-string-cell",P+=p.align?" dhx_align-"+p.align:" dhx_"+l+"-cell",P+=k?" dhx_grid__span_bottom--all-fixed":"",P+=I?" dhx_grid__span_bottom--part-fixed":"",P+=O?" dhx_grid__span_right--before-fixed":"";r=Y.findIndex(N,function(t){return t.id===i}),_=1<o?U.getWidth(N,o,r):p.$width,c=void 0;1<n?(c=U.getHeight(u,n,h),A!==J.Split.top||!L.$renderFrom.endsWith("FixedCols")||0<(D=h+n-u.length)&&(V=L.fixedRows.top.length,c+=K.getTotalHeight(L.$data.slice(V,V+D)))):c=g.$height;var D,V,M,T,H,F,R=null;((null===(j=L.$editable)||void 0===j?void 0:j.isSpan)&&L.$editable.row===e&&L.$editable.col===i||"boolean"===p.type&&(L.editable&&(null===(j=p.editable)||void 0===j||j)||!L.editable&&p.editable))&&(b=L.topSplit,s=(a=L.fixedColumns.left.length)&&d+o<=a||G&&d>=z.length-G,S=h<(b||0)||h+n>u.length-(B||0),E=b&&h+n<=b||B&&h>=u.length-B,C=d<(a||0)||d+o>z.length-(G||0),("render"===L.$renderFrom||s&&!S||E&&!C)&&(l=L.$height,k=L.$scrollBarWidth,I=L.scroll,O=L.fixedRows,r=L.fixedColumns,V=q[t].text,D=0,v=tt(g,p,L).toHTML(V),P+=" dhx_span__editable",E||(b=L.$headerLevel*L.headerRowHeight,S=L.$footerLevel*L.footerRowHeight,C=K.getTotalHeight(O.top),t=K.getTotalHeight(O.bottom),b=(V=k.yState?l-b-S-k.x-Q.BORDERS:L.$totalHeight)-t<(l=m+c-I.top),(S=m-C<I.top)&&b&&k.xState&&(D=1),m=S?I.top+C-(C&&!s?1:0):m,c=b?V-m-t+I.top-D:S?l-C:c),"render"===L.$renderFrom&&(R=12,r.left.find(function(t){return t.id===i})&&(y=I.left+K.getTotalWidth(r.left.slice(0,d)),s||(T=K.getTotalWidth(r.left.slice(d,a)),_=_-I.left>T?_-I.left:T)),O.top.find(function(t){return t.id===e})&&(m=I.top+K.getTotalHeight(O.top.slice(0,h)),E||(H=K.getTotalHeight(L.fixedRows.top.slice(h,L.topSplit)),c=0<c?H+c-D:H)),r.right.find(function(t){return t===z[z.indexOf(p)+o-1]})&&(F=z.length,M=et(L),T=(I=F-z.indexOf(p)-o)?K.getTotalWidth(r.right.slice(0,-I)):K.getTotalWidth(r.right),r=K.getTotalWidth(z.slice(d,F-G)),y=M.x>r?y-M.x+r:y,s||(_=M.x<r?_-M.x-1:T-1)),O.bottom.find(function(t){return t===u[u.indexOf(g)+n-1]})&&(F=u.length,M=et(L),H=(T=F-u.indexOf(g)-n)?K.getTotalHeight(O.bottom.slice(0,-T)):K.getTotalHeight(L.fixedRows.bottom),F=K.getTotalHeight(u.slice(h,F-B)),m=M.y>F?m-M.y+F:m,E||(c=M.y<F?H+c-D-(T?-1:D?0:1):H-(T?-1:1)))),a===d+1&&--_,d===z.length-G&&(y+=1,--_))),$.push(X.el("div",{class:P,style:{width:_,height:c,top:m,left:y,zIndex:R},"data-dhx-col-id":i,"data-dhx-id":e,"aria-hidden":"true"},[x?X.el(".dhx_span-expand-cell-icon",{class:g.$opened?"dxi dxi-chevron-up":"dxi dxi-chevron-down","data-dhx-id":g.id,role:"button","aria-label":g.$opened?"Collapse group":"Expand group",style:{padding:"0 0 0 "+(4+Z.getTreeCellWidthOffset(g))+"px"}}):null,v]))}(e);return $},e.getShifts=function(t){var e=t.filteredColumns.slice(0,t.$positions.xStart),t=t.data.slice(0,t.$positions.yStart);return{x:K.getTotalWidth(e),y:K.getTotalHeight(t)}},e.normalizeSpan=function(t,e){var i=void 0===(_=e.topSplit)?0:_,n=void 0===(m=e.bottomSplit)?0:m,o=e.data,r=e.columns,s=Q.getCurrFixedCols(e,J.Split.left).length,a=Q.getCurrFixedCols(e,J.Split.right).length,l=t.column,c=t.row,u=t.colspan,d=t.rowspan,h=r.findIndex(function(t){return t.id==l}),f=Y.isDefined(t.text)?"string":r[h].type,p=o.findIndex(function(t){return t.id==c}),g=h+(u?u-1:0),v=p+(d?d-1:0),_=[],m=h<s,e=p<i,u=g>=r.length-a,d=v>=o.length-n;return s<=g&&i<=v&&h<r.length-a&&p<o.length-n&&_.push("render"),m&&_.push("leftFixedCols"),u&&_.push("rightFixedCols"),!e||m||u?e&&!_.includes("render")&&_.push("render"):_.push("topFixedRows"),!d||m||u?d&&!_.includes("render")&&_.push("render"):_.push("bottomFixedRows"),y(y({},t),{$renderFrom:_,$type:f})}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.SelectionEvents||(e.SelectionEvents={})).beforeUnSelect="beforeunselect",e.afterUnSelect="afterunselect",e.beforeSelect="beforeselect",e.afterSelect="afterselect"},function(t,e,i){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r=i(0),d=i(1);e.getCount=function(t,e,i){var n={danger:" dhx_navbar-count--color_danger",secondary:" dhx_navbar-count--color_secondary",primary:" dhx_navbar-count--color_primary",success:" dhx_navbar-count--color_success"}[t.countColor]||" dhx_navbar-count--color_danger";return r.el(".dhx_navbar-count",{class:e+n+(!i&&99<parseInt(t.count,10)?" dhx_navbar-count--overlimit":"")},i&&99<parseInt(t.count,10)?"99+":t.count)},e.getIcon=function(t,e){return void 0===t&&(t=""),t.startsWith("dxi")&&(t="dxi "+t),r.el("span",{class:"dhx_"+e+"__icon "+t,"aria-hidden":"true"})};var s=function(t,e,i){var n="",o="",o=(n=i?"dhx_menu-item":"dhx_"+t+"__item")+(e.css?" "+e.css:"");return"spacer"!==e.type&&"separator"!==e.type||(o+=" "+n+"--"+e.type),"button"!==e.type||"sidebar"!==t||e.icon||(o+=" dhx_navbar-item--colapse_hidden"),o};e.navbarComponentMixin=function(t,e,i,n){var i=s(t,e,i),t="ribbon"===t&&("navItem"===e.type||"imageButton"===e.type);return r.el("li",o({_key:e.id,class:i+(e.icon&&!e.value&&t?" dhx_ribbon__item--icon":"")+(e.src&&!e.value&&t?" dhx_ribbon__item--icon":"")+(e.size&&t?" dhx_ribbon__item--"+e.size:""),".innerHTML":"customHTML"===e.type?e.html:void 0,"data-dhx-id":"customHTML"===e.type?e.id:void 0},(i=e.type,t={role:"none"},"separator"===i&&(t.role="separator",t["aria-orientation"]="vertical"),t)),"customHTML"!==e.type?[n]:void 0)},e.getNavbarButtonCSS=function(t,e){var i=t.color,n=t.size,o=t.view,r=t.full,s=t.icon,a=t.circle,l=t.loading,c=t.value,u=t.active,t=t.count;return({danger:" dhx_button--color_danger",secondary:" dhx_button--color_secondary",primary:" dhx_button--color_primary",success:" dhx_button--color_success"}[i]||" dhx_button--color_primary")+({small:" dhx_button--size_small",medium:" dhx_button--size_medium"}[n]||" dhx_button--size_medium")+({flat:" dhx_button--view_flat",link:" dhx_button--view_link"}[o]||" dhx_button--view_flat")+(r?" dhx_button--width_full":"")+(a?" dhx_button--circle":"")+(l?" dhx_button--loading":"")+(u?" dhx_button--active":"")+(s&&!c?" dhx_button--icon":"")+(d.isDefined(t)?" dhx_button--count":"")}},function(t,e,i){"use strict";var v=this&&this.__assign||function(){return(v=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var _=i(0),m=i(6);function y(t,e,i,n){return n&&(t+=2*e*Math.asin(.5*n/e)/(2*Math.PI*e)),[Math.cos(2*Math.PI*t)*e,Math.sin(2*Math.PI*t)*i]}function r(t,e,i){t.setAttribute("transform","translate("+e+", "+i+") scale(1.05)"),t.classList.add("dhx_pie-transform-delay")}function n(t){t.setAttribute("transform","translate(0, 0)"),t.classList.remove("dhx_pie-transform-delay")}function b(t,e){return t-1e-6<e&&e<t+1e-6}function w(t,e){return"M"+-t+",0A"+t+","+t+" 0 "+(e?0:1)+" 1 "+t+",0A"+t+","+t+" 0 "+(e?0:1)+" 1 "+-t+",0"}e.getCoordinates=y,e.shiftCoordinates=function(t,e,i){return[t[0]+e,t[1]+i]},e.pieLikeHandlers={onmouseover:function(e,i,t,n){var o=n.parent.attrs.id;r(n.el,e,i),n.parent.body.forEach(function(t){t.attrs.id!==o+"-text"&&t.attrs.id!==o+"-connector"||r(t.el,e,i)})},onmouseout:function(t,e){var i=e.parent.attrs.id;n(e.el),e.parent.body.forEach(function(t){t.attrs.id!==i+"-text"&&t.attrs.id!==i+"-connector"||n(t.el)})}},e.radarScale=function(t,e,i){var n,a=e<i?e/2:i/2,l=1/t.scales.length,c=.5<l?1:0,u=[],o=(n=a,o="#fafafa",_.sv("circle",{cx:0,cy:0,r:n,fill:o,stroke:"none",class:"background-circle"}));u.push(o);for(var d=-.25,r=[],s=t.axis,h="radar-grid "+(t.zebra?"zebra":""),f=1;f<s.length;f+=2){var p=a*s[f-1],g=a*s[f],g=w(p,!0)+" "+w(g,!1),g=_.sv("path",{d:g,fill:"none",stroke:"black",class:h});r.push(g)}return u.push(r),t.scales.forEach(function(t){var e=y(d,a,a),i=e[0],n=e[1],o=d+l,r=y(o,a,a),e=r[0],r=r[1],e="M "+i+" "+n+" A "+a+" "+a+" 0 "+c+" 1 "+e+" "+r+" L 0 0",r=_.sv("path",{d:e,stroke:"black",fill:"none",class:"radar-scale"});u.push(r);var s,e=[8,8],r=e[0],e=e[1],r=b(d,0)||b(d,.5)?0:d<0||.5<d?-r:r,e=b(d,-.25)||b(d,.25)?0:d<-.25||.25<d?-e:e;t=b(d,-.25)||b(d,.25)?(s=b(d,-.25)?m.verticalTopText:m.verticalBottomText,_.sv("text",{x:i+e,y:n+r,class:"scale-text"},[s(t)])):(s=-.25<=d&&d<=.25?"start-text scale-text":"end-text scale-text",_.sv("text",{x:i+e,y:n+r,class:s},[m.verticalCenteredText(t)])),u.push(t),d=o}),d=-.25,t.realAxis&&(o=t.realAxis.map(function(t,e){var i=y(-.25,a*s[e],a*s[e]),e=i[0],i=i[1];return _.sv("text",{x:e,y:i,dx:-10,class:"radar-axis-text"},[m.verticalCenteredText(t.toString())])}),u.push(o)),_.sv("g",v({transform:"translate("+e/2+", "+i/2+")"},{"aria-label":"x-axis"+((t=t.attribute)?", "+t:"")}),u)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(1),r=i(25),s=i(6),n=i(89),a=i(16),i=(l.prototype.toggle=function(){this.config.active=!this.config.active},l.prototype.getClosest=function(t,e){for(var i=[1/0,null,null,null],n=0,o=this._points;n<o.length;n++){var r=o[n],s=this._getClosestDist(t,e,r[0],r[1]);i[0]>s&&(i[0]=s,i[1]=r[0],i[2]=r[1],i[3]=r[2])}return i},l.prototype.getClosestVertical=function(t){for(var e=[1/0,null,null,null,null],i=0,n=this._points;i<n.length;i++){var o=n[i],r=Math.abs(o[0]-t);e[0]>r&&(e[0]=r,e[1]=o[0],e[2]=o[1],e[3]=o[2],e[4]=o[4])}return e},l.prototype.getTooltipType=function(t){return"top"},l.prototype.getTooltipText=function(e){if((this._data.getItem(e)||"calendarHeatMap"===this.config.type)&&this.config.tooltip){var t,i=void 0,n=void 0;return"calendarHeatMap"===this.config.type?(n=this._points.find(function(t){return t[2]===e.toString()}))&&((t=new Date).setTime(n[0]),n=[a.getFormattedDate(this.config.dateFormat,t),n[1]]):i=this._defaultLocator(this._data.getItem(e)),this.config.tooltipTemplate?this.config.tooltipTemplate(i||n):i?i[0]:n[1]+", <br>"+n[0]}},l.prototype.dataReady=function(t){return this._points=[]},l.prototype.paint=function(t,e){return this._calckFinalPoints(t,e)},l.prototype.getPoints=function(){return this._points},l.prototype.addScale=function(t,e){},l.prototype._getClosestDist=function(t,e,i,n){return s.euclideanDistance(t,e,i,n)},l.prototype._calckFinalPoints=function(t,e){},l.prototype._setDefaults=function(t){this.config=t},l.prototype._defaultLocator=function(t){return[null,null]},l.prototype._getPointType=function(t,e){return n.getShadeHelper(t,e)},l);function l(t,e,i){var n=this;this._data=t,this._handlers={onclick:function(t,e){return n._events.fire(r.ChartEvents.serieClick,[t,e])},onmousemove:function(t,e,i){return n._events.fire(r.ChartEvents.seriaMouseMove,[t,e,i])},onmouseleave:function(t,e){return n._events.fire(r.ChartEvents.seriaMouseLeave,[t,e])}},this.id=e.id=e.id||o.uid(),this._events=i,this._points=[],this._setDefaults(e)}e.default=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getWidth=function(t,e,i){return t.slice(i,i+(e||1)).filter(function(t){return!t.hidden}).reduce(function(t,e){return t+e.$width},0)},e.getHeight=function(t,n,o){return t=t.filter(function(t){return!t.hidden}),n?t.reduce(function(t,e,i){e=e.$height;return t+=o<=i&&i<o+n?e:0},0):t[o].$height},e.getReducedColspan=function(t,e,i){var n=t.findIndex(function(t){return t.id===e});return t.slice(n,n+(i||1)).filter(function(t){return!t.hidden}).length}},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(136)),n(e(73))},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(74)),n(e(152)),n(e(78))},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(75)),n(e(150)),n(e(76)),n(e(49))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});i(8);(i=e.FileStatus||(e.FileStatus={})).queue="queue",i.uploaded="uploaded",i.failed="failed",i.inprogress="inprogress",(i=e.UploaderEvents||(e.UploaderEvents={})).uploadBegin="uploadbegin",i.beforeUploadFile="beforeuploadfile",i.uploadFile="uploadfile",i.uploadFail="uploadfail",i.uploadComplete="uploadcomplete",i.uploadProgress="uploadprogress",(e.ProgressBarEvents||(e.ProgressBarEvents={})).cancel="cancel",(e=e.VaultMode||(e.VaultMode={})).grid="grid",e.list="list"},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(81)),n(e(177))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});i=i(8);e.DataEvents=i.DataEvents,(e=e.NavigationBarEvents||(e.NavigationBarEvents={})).inputCreated="inputCreated",e.click="click",e.openMenu="openMenu",e.beforeHide="beforeHide",e.afterHide="afterHide",e.inputFocus="inputFocus",e.inputBlur="inputBlur",e.inputChange="inputChange"},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var m=i(0),s=i(1),y=i(7),a=i(14),l=i(2),c=i(4);(i=e.Validation||(e.Validation={})).empty="",i.validEmail="email",i.validInteger="integer",i.validNumeric="numeric",i.validAlphaNumeric="alphanumeric",i.validIPv4="IPv4";var u,o=(u=a.Label,o(d,u),d.prototype.destructor=function(){this.events&&this.events.clear(),this.events=this._uid=this._isValid=this._propsItem=this._propsItem=null,u.prototype._destructor.call(this),this.unmount()},d.prototype.setProperties=function(t){if(t&&!s.isEmptyObj(t)&&this.events.fire(c.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this.events.fire(c.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},d.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},d.prototype.show=function(){var t=this.config,e=t.value;t.hidden&&this.events.fire(c.ItemEvent.beforeShow,[e])&&(this.config.hidden=!1,this.events.fire(c.ItemEvent.afterShow,[e]))},d.prototype.hide=function(t){var e=this.config,i=e.value;e.hidden&&!t||!this.events.fire(c.ItemEvent.beforeHide,[i,t])||(this.config.hidden=!0,this.events.fire(c.ItemEvent.afterHide,[i,t]))},d.prototype.isVisible=function(){return!this.config.hidden},d.prototype.disable=function(){this.config.disabled=!0,this.paint()},d.prototype.enable=function(){var t;this.config.disabled=!1,null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.paint()},d.prototype.isDisabled=function(){return!!this.config.disabled},d.prototype.validate=function(t,e){void 0===t&&(t=!1);e=void 0===e?this.getValue():e;if(t||this.events.fire(c.ItemEvent.beforeValidate,[e]))return this._isValid=this.config.validation?y.validateInput(e,this.config.validation):this.config.required?!(!y.baseInputValidate(e,this.config)||!String(e).trim().length):y.baseInputValidate(e,this.config),t||(this.config.$validationStatus=this._isValid?c.ValidationStatus.success:c.ValidationStatus.error,this.events.fire(c.ItemEvent.afterValidate,[e,this._isValid])),this._isValid},d.prototype.clearValidate=function(){this.config.$validationStatus=c.ValidationStatus.pre,this.paint()},d.prototype.clear=function(){""!==this.config.value&&this.events.fire(c.ItemEvent.beforeChange,[""])&&(this.config.value="",this.events.fire(c.ItemEvent.change,[this.getValue()]),y.isVerify(this.config)&&this.validate())},d.prototype.setValue=function(t){void 0!==t&&this.config.value!==t&&this.events.fire(c.ItemEvent.beforeChange,[t])&&(this.config.value=t,this.events.fire(c.ItemEvent.change,[this.getValue()]),y.isVerify(this.config)&&this.validate())},d.prototype.getValue=function(){var t=this.config,e=t.inputType,t=t.value;return"number"===e&&"number"==typeof t||null===t?t:"number"===e&&"string"==typeof t?t.length?Number(t):"":"string"==typeof t?t.length?t:"":void 0===t?"":String(t)},d.prototype.focus=function(){var t=this;m.awaitRedraw().then(function(){t.getRootView().refs.input.el.focus()})},d.prototype.blur=function(){var t=this;m.awaitRedraw().then(function(){t.getRootView().refs.input.el.blur()})},d.prototype._initView=function(t){var e,i=this;if(s.isEmptyObj(t))throw new Error("Check the configuration is correct");for(e in this.config={type:"input",id:t.id,name:t.name,disabled:!1,hidden:!1,inputType:"text",required:!1,icon:"",placeholder:"",autocomplete:!1,readOnly:!1,label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t)"id"!==e&&"type"!==e&&"name"!==e&&(this.config[e]=t[e]);this.config.hidden&&m.awaitRedraw().then(function(){i.hide(!0)}),this._value=this.config.value,this.paint()},d.prototype._initHandlers=function(){var e=this;this.events.on(c.ItemEvent.change,function(t){e._value=t,e.paint()}),this.events.on(c.ItemEvent.afterValidate,function(){e.config.$validationStatus=e._isValid?c.ValidationStatus.success:c.ValidationStatus.error,e.paint()})},d.prototype._getHandlers=function(){var e=this;return{oninput:function(t){e._value=t.target.value,e.events.fire(c.ItemEvent.input,[e._value])},onchange:function(t){e._value=t.target.value,e._value!==e.config.value&&e.setValue(e._value)},onfocus:function(){e.events.fire(c.ItemEvent.focus,[e.getValue()]),e.paint()},onblur:function(){e._uid&&(e.events.fire(c.ItemEvent.blur,[e.getValue()]),e._value!==e.config.value&&e.setValue(e._value),e.paint())},onkeydown:function(t){"Enter"===t.code&&"input"===e.config.type&&t.preventDefault(),e.events.fire(c.ItemEvent.keydown,[t])}}},d.prototype._draw=function(){var t=this.config,e=t.id,i=t.disabled,n=t.name,o=t.icon,r=t.placeholder,s=t.required,a=t.inputType,l=t.hidden,c=t.autocomplete,u=t.readOnly,d=t.maxlength,h=t.minlength,f=t.max,p=t.min,g=t.label,v=t.helpMessage,_=t.value,t=l?" dhx_form-group--hidden":"",l=(null===(l=null===(l=null===(l=this.getRootView())||void 0===l?void 0:l.refs)||void 0===l?void 0:l.input)||void 0===l?void 0:l.el)===document.activeElement;return m.el("div.dhx_form-group",{class:y.getFormItemCss(this.config,y.isVerify(this.config),l)+t},[this._drawLabel(),m.el(".dhx_input__wrapper",{},[m.el("div.dhx_input__container",{},[this.config.icon?m.el(".dhx_input__icon",{class:this.config.icon}):null,m.el("input.dhx_input",{type:["text","number","password"].includes(a)?a:"text","data-dhx-id":n||e,id:e||this._uid,placeholder:r||"",value:_||"",name:n||"",disabled:i,required:s,readOnly:u,maxlength:d,minlength:h,max:f,min:p,onblur:this._handlers.onblur,oninput:this._handlers.oninput,onchange:this._handlers.onchange,onfocus:this._handlers.onfocus,onkeydown:this._handlers.onkeydown,class:o?"dhx_input--icon-padding":"",autocomplete:c?"on":"off",_ref:"input","aria-label":g||v||"type "+(n||a||"text"),"aria-describedby":v?"dhx_label__help_"+(e||this._uid):null})]),y.getValidationMessage(this.config)&&m.el("span.dhx_input__caption",y.getValidationMessage(this.config))])])},d);function d(t,e){void 0===e&&(e={});var i=u.call(this,null,e)||this;return i.events=new l.EventSystem,i._propsItem=["inputType","required","validation","icon","placeholder","autocomplete","readOnly","maxlength","minlength","min","max","step","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage"],i._props=r(y.baseProps,i._propsItem),i._isValid=!0,i._initView(e),i._initHandlers(),i}e.Input=o},function(t,e){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":i(window))&&(n=window)}t.exports=n},function(t,e,i){"use strict";(function(c){Object.defineProperty(e,"__esModule",{value:!0});var u=i(23),d=i(24);function h(t){return t?t.includes("json")?"json":t.includes("xml")?"xml":"text":"text"}function n(o,r,s,t,a){var n,l=t||{};return a&&(l.Accept="application/"+a),"GET"!==s&&(l["Content-Type"]=l["Content-Type"]||"application/json"),"GET"===s&&((t=r&&"object"==typeof r?(n=r,Object.keys(n).reduce(function(t,e){var i="object"==typeof n[e]?JSON.stringify(n[e]):n[e];return t.push(e+"="+encodeURIComponent(i)),t},[]).join("&")):r&&"string"==typeof r?r:"")&&(o+=o.includes("?")?"&":"?",o+=t),r=null),window.fetch?("application/json"===l["Content-Type"]&&r&&"object"==typeof r&&(r=JSON.stringify(r)),window.fetch(o,{method:s,body:r||null,headers:l}).then(function(e){if(!e.ok)return e.text().then(function(t){return c.reject({status:e.status,statusText:e.statusText,message:t})});var t=a||h(e.headers.get("Content-Type"));if("raw"===t)return{headers:Object.fromEntries(e.headers.entries()),url:e.url,body:e.body};if(204!==e.status)switch(t){case"json":return e.json();case"xml":var i=d.toDataDriver(u.DataDriver.xml);return i?e.text().then(function(t){return i.toJsonObject(t)}):e.text();default:return e.text()}})):new c(function(t,e){var i,n=new XMLHttpRequest;for(i in n.onload=function(){200<=n.status&&n.status<300?("raw"===a&&t({url:n.responseURL,headers:n.getAllResponseHeaders().trim().split(/[\r\n]+/).reduce(function(t,e){e=e.split(": ");return t[e[0]]=e[1],t},{}),body:n.response}),204===n.status?t():t(function(t,e){switch(e){case"json":return JSON.parse(t);case"text":return t;case"xml":var i=d.toDataDriver(u.DataDriver.xml);return i?i.toJsonObject(t):{parseError:"Incorrect data driver type: 'xml'"};default:return t}}(n.responseText,a||h(n.getResponseHeader("Content-Type"))))):e({status:n.status,statusText:n.statusText})},n.onerror=function(){e({status:n.status,statusText:n.statusText,message:n.responseText})},n.open(s,o),l)n.setRequestHeader(i,l[i]);switch(s){case"POST":case"DELETE":case"PUT":n.send(void 0!==r?JSON.stringify(r):"");break;case"GET":default:n.send()}})}e.ajax={get:function(t,e,i){return n(t,e,"GET",i&&i.headers,void 0!==i?i.responseType:void 0)},post:function(t,e,i){return n(t,e,"POST",i&&i.headers,void 0!==i?i.responseType:void 0)},put:function(t,e,i){return n(t,e,"PUT",i&&i.headers,void 0!==i?i.responseType:void 0)},delete:function(t,e,i){return n(t,e,"DELETE",i&&i.headers,void 0!==i?i.responseType:void 0)}}}).call(this,i(17))},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(65)),n(e(160)),n(e(9)),n(e(32));var o=e(27);i.getTreeCell=o.getTreeCell,n(e(18)),n(e(15))},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.RealPosition||(e.RealPosition={})).left="left",n.right="right",n.top="top",n.bottom="bottom",n.center="center",(n=e.Position||(e.Position={})).right="right",n.bottom="bottom",n.center="center",n.left="left",n.top="top",(e=e.MessageContainerPosition||(e.MessageContainerPosition={})).topLeft="top-left",e.topRight="top-right",e.bottomLeft="bottom-left",e.bottomRight="bottom-right"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={apply:"apply",reject:"reject"}},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(137)),n(e(72))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(47),a=i(68),l=i(0),o=(r=a.Cell,o(c,r),c.prototype.destructor=function(){for(var t=0,e=this._all;t<e.length;t++){var i=e[t];this._all[i].destructor()}this.config=this._cells=this._root=this._xLayout=this._isViewLayout=null,this._all={},this.unmount()},c.prototype.toVDOM=function(){if(this._isViewLayout){var t=[this.getCell(this.config.activeView).toVDOM()];return r.prototype.toVDOM.call(this,t)}var e=[];return this._inheritTypes(),this._cells.forEach(function(t){t=t.toVDOM();Array.isArray(t)?e=e.concat(t):e.push(t)}),r.prototype.toVDOM.call(this,e)},c.prototype.removeCell=function(e){if(this.events.fire(s.LayoutEvents.beforeRemove,[e])){var t=this.config.parent||this;if(t!==this)return t.removeCell(e);t=this.getCell(e);t&&(t=t.getParent(),delete this._all[e],t._cells=t._cells.filter(function(t){return t.id!=e}),t.paint()),this.events.fire(s.LayoutEvents.afterRemove,[e])}},c.prototype.addCell=function(t,e){var i;void 0===e&&(e=-1),this.events.fire(s.LayoutEvents.beforeAdd,[t.id])&&(i=this._createCell(t),e<0&&(e=this._cells.length+e+1),this._cells.splice(e,0,i),this.paint(),this.events.fire(s.LayoutEvents.afterAdd,[t.id]))},c.prototype.getId=function(t){return t<0&&(t=this._cells.length+t),this._cells[t]?this._cells[t].id:void 0},c.prototype.getRefs=function(t){return this._root.getRootView().refs[t]},c.prototype.getCell=function(t){var e;return null===(e=this._root)||void 0===e?void 0:e._all[t]},c.prototype.forEach=function(t,e,i){if(void 0===i&&(i=1/0),this._haveCells(e)&&!(i<1))for(var n=(e?this._root._all[e]:this._root)._cells,o=0;o<n.length;o++){var r=n[o];t.call(this,r,o,n),this._haveCells(r.id)&&r.forEach(t,r.id,--i)}},c.prototype.cell=function(t){return this.getCell(t)},c.prototype.progressShow=function(){this._progress=!0,this.paint()},c.prototype.progressHide=function(){this._progress=!1,this.paint()},c.prototype._getCss=function(t){var e=this._xLayout?"dhx_layout-columns":"dhx_layout-rows",i=this.config.align?" "+e+"--"+this.config.align:"";if(t)return e+" dhx_layout-cell"+(this.config.align?" dhx_layout-cell--"+this.config.align:"");var n=this.config.parent?r.prototype._getCss.call(this):"dhx_widget dhx_layout",t=this.config.parent?"":" dhx_layout-cell";return n+(this.config.full?t:" "+e)+i},c.prototype._parseConfig=function(){var e=this,t=this.config,i=t.rows||t.cols||t.views||[];this._xLayout=!t.rows,this._cells=i.map(function(t){return e._createCell(t)})},c.prototype._createCell=function(t){var e=t.rows||t.cols||t.views?(t.parent=this._root,new c(this,t)):new a.Cell(this,t);return this._root._all[e.id]=e,t.init&&t.init(e,t),e},c.prototype._haveCells=function(t){if(t){t=this._root._all[t];return t._cells&&0<t._cells.length}return 0<Object.keys(this._all).length},c.prototype._inheritTypes=function(t){var e,i=this;void 0===t&&(t=this._cells),Array.isArray(t)?t.forEach(function(t){return i._inheritTypes(t)}):((e=t.config).rows||e.cols)&&(t=t.getParent(),!e.type&&t&&(t.config.type?e.type=t.config.type:this._inheritTypes(t)))},c);function c(t,e){var i=r.call(this,t,e)||this;return i._root=i.config.parent||i,i._all={},i._parseConfig(),i._progress=!1,i.config.activeTab&&(i.config.activeView=i.config.activeTab),i.config.views&&(i.config.activeView=i.config.activeView||i._cells[0].id,i._isViewLayout=!0),e.parent||(e=l.create({render:function(){return i.toVDOM()}},i),i.mount(t,e)),i}e.Layout=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.LayoutEvents||(e.LayoutEvents={})).beforeShow="beforeShow",e.afterShow="afterShow",e.beforeHide="beforeHide",e.afterHide="afterHide",e.beforeResizeStart="beforeResizeStart",e.resize="resize",e.afterResizeEnd="afterResizeEnd",e.beforeAdd="beforeAdd",e.afterAdd="afterAdd",e.beforeRemove="beforeRemove",e.afterRemove="afterRemove",e.beforeCollapse="beforeCollapse",e.afterCollapse="afterCollapse",e.beforeExpand="beforeExpand",e.afterExpand="afterExpand"},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(141)),n(e(70))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.ListEvents||(e.ListEvents={})).click="click",e.doubleClick="doubleclick",e.focusChange="focuschange",e.beforeEditStart="beforeEditStart",e.afterEditStart="afterEditStart",e.beforeEditEnd="beforeEditEnd",e.afterEditEnd="afterEditEnd",e.itemRightClick="itemRightClick",e.itemMouseOver="itemMouseOver",e.contextmenu="contextmenu"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={notFound:"Not Found",selectAll:"Select All",unselectAll:"Unselect All",selectedItems:"selected items",createItem:"Create"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={dragAndDrop:"Drag & drop",or:"or",browse:"Browse files",filesOrFoldersHere:"files or folders here",cancel:"Cancel",clearAll:"Clear all",clear:"Clear",add:"Add",upload:"Upload",download:"Download",error:"error",byte:"B",kilobyte:"KB",megabyte:"MB",gigabyte:"GB"}},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(182)),n(e(83)),n(e(82)),n(e(53));e=e(54);i.locale=e.default},function(t,e,i){"use strict";function n(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,n){return e+e+i+i+n+n});t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function o(t){var e,i,n,o=t.r/255,r=t.g/255,s=t.b/255,a=Math.max(o,r,s),l=a-Math.min(o,r,s),c=function(t){return(a-t)/6/l+.5};return 0==l?e=i=0:(i=l/a,n=c(o),t=c(r),c=c(s),o===a?e=c-t:r===a?e=1/3+n-c:s===a&&(e=2/3+t-n),e<0?e+=1:1<e&&--e),{h:Math.floor(360*e),s:i,v:a}}Object.defineProperty(e,"__esModule",{value:!0}),e.HSVtoRGB=function(t){var e,i={r:0,g:0,b:0},n=t.h/60,o=t.s,r=t.v,t=Math.floor(n)%6,n=n-Math.floor(n),s=255*r*(1-o),a=255*r*(1-o*n),l=255*r*(1-o*(1-n));switch(r*=255,t){case 0:i.r=r,i.g=l,i.b=s;break;case 1:i.r=a,i.g=r,i.b=s;break;case 2:i.r=s,i.g=r,i.b=l;break;case 3:i.r=s,i.g=a,i.b=r;break;case 4:i.r=l,i.g=s,i.b=r;break;case 5:i.r=r,i.g=s,i.b=a}for(e in i)i[e]=Math.round(i[e]);return i},e.RGBToHex=function(i){return Object.keys(i).reduce(function(t,e){e=i[e].toString(16).toUpperCase();return t+(e=1===e.length?"0"+e:e)},"#")},e.HexToRGB=n,e.RGBToHSV=o,e.HexToHSV=function(t){return o(n(t))},e.isHex=function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={cancel:"Cancel",select:"Select",rightClickToDelete:"Right click to delete",customColors:"Custom colors",addNewColor:"Add new color"}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(191),r=i(86),s=i(6),a={left:r.left,right:r.right,bottom:r.bottom,top:r.top},h={left:r.leftGrid,right:r.rightGrid,bottom:r.bottomGrid,top:r.topGrid},r=(l.prototype.addPadding=function(){this._padding=!0},l.prototype.getSize=function(){return this.config.size},l.prototype.scaleReady=function(t){var e=[];this._charts.forEach(function(t){t.getPoints().forEach(function(t){return e.push(t[1])})}),this._axis=new o.AxisCreator(e,this.config).getScale();var i=this._position;"radial"!==i&&(t[i]+=this.config.size)},l.prototype.point=function(t){return this.config.log?this._logPoint(t):this._isXDirection?(t-this._axis.min)/(this._axis.max-this._axis.min):1-(t-this._axis.min)/(this._axis.max-this._axis.min)},l.prototype.add=function(t){this._charts.push(t)},l.prototype.paint=function(e,i){var n=this;if(this.config.hidden)return null;var t=this._axis.steps.map(function(t){return[n._isXDirection?n.point(t)*e:n.point(t)*i,t]});return 0===t.length&&"left"===this._position&&(t=[[0,0]]),a[this._position](t,this.config,e,i)},l.prototype.scaleGrid=function(){var a=this,l=this._position,c=this.config.grid,u=this.config.dashed,d=this.config.hidden;return{paint:function(t,e){var i,n,o=a._axis.steps.indexOf(a.config.targetLine),r=(i=t,n=e,a._axis.steps.map(function(t){return[a._isXDirection?a.point(t)*i:a.point(t)*n,t]})),s=a.point(a.config.targetValue),s={targetLine:o,dashed:u,grid:c,targetValue:s,hidden:d};return h[l](r,t,e,s)}}},l.prototype._setDefaults=function(t){t.locator&&(this.locator=s.locator(t.locator)),this.config=n(n({},{scalePadding:20,textPadding:11,grid:!0,targetLine:null,showText:!0}),t)},l.prototype._logPoint=function(t){var e=Math.abs(t)/t,i=this._axis.steps,n=i.length-1,o=i.indexOf(t);return n=-1!==o?o/n:((this._axis.min<0?i.indexOf(0):0)+e*s.log10(Math.abs(t)))/n,this._isXDirection?n:1-n},l);function l(t,e,i){this._data=t,this._padding=!1,this._charts=[],this._position=i,this._setDefaults(e),this._isXDirection="bottom"===i||"top"===i,"radial"!==i&&(this.config.size="left"===i||"right"===i?this.config.size||40+(this.config.title?40:0):this.config.size||20+(this.config.title?40:0))}e.Scale=r},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(6),i=i(31),o=(r=i.default,o(a,r),a.prototype.addScale=function(t,e){"bottom"===t||"top"===t?(this.xScale=e,this._xLocator=e.locator):(this.yScale=e,this._yLocator=s.locator(this.config.value))},a.prototype.paint=function(t,e){r.prototype.paint.call(this,t,e)},a.prototype.dataReady=function(o){var r=this;return this.config.active?(this._points=this._data.map(function(t,e){var i=r._xLocator(t),n=r._yLocator(t),n=[i,n,t.id,i,n];return o&&(n[1]+=o[e][1]),n}),this._points):this._points=[]},a.prototype._calckFinalPoints=function(n,o){var r=this;this._points.forEach(function(t,e){t[0]=r.xScale.point(t[0])*n||0;var i=r.yScale.point(t[1])*o;t[1]=isNaN(i)?"xbar"===r.config.type?0:o:i})},a.prototype._defaultLocator=function(t){return[this._yLocator(t),this._xLocator(t)]},a);function a(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(6),i=i(31),o=(s=i.default,o(l,s),l.prototype.scaleReady=function(t){for(var e in t)t[e]+=this.config.paddings;return t},l.prototype.dataReady=function(){var s=this,t=this._data;return this._sum=t.reduce(function(t,e){return e.$hidden?t:t+parseFloat(s._valueLocator(e))},0),this._points=t.reduce(function(t,e,i){if(e.$hidden)return t;var n=s._textLocator(e),o=s._valueLocator(e),r=o/s._sum,i=s._colorLocator?s._colorLocator(e):a.getDefaultColor(i);return t.push([r,o,e.id,n,i]),t},[]),this._points},l.prototype.toggle=function(t){var e=this._data.getItem(t);e&&this._data.update(t,{$hidden:!e.$hidden})},l.prototype.getClosest=function(t,e){for(var i=1-(Math.atan2(t-this._center[0],e-this._center[1])+Math.PI)/Math.PI/2,n=this._points,o=0;o<n.length;o++){if(n[o][0]>=i)return[0,this._tooltipData[o][0],this._tooltipData[o][1],n[o][2]];i-=n[o][0]}return[1/0,null,null,null]},l.prototype.getTooltipText=function(t){if(this.config.tooltip){t=this._defaultLocator(this._data.getItem(t));return this.config.tooltipTemplate?this.config.tooltipTemplate(t):t[0]}},l.prototype.getTooltipType=function(t){return"simple"},l.prototype._setDefaults=function(e){var i=this,t={subType:"basic",paddings:e.useLines?70:50};this.config=r(r({},t),e),this._drawPointType=this._getPointType("empty","none"),this._valueLocator=a.locator(e.value),this._textLocator=a.locator(e.text),e.color?this._colorLocator=a.locator(e.color):e.monochrome&&(this._colorLocator=function(t){return a.getColorShade(e.monochrome,2*i._getPercent(t))})},l.prototype._defaultLocator=function(t){return[this._valueLocator(t),this._textLocator(t)]},l.prototype._getPercent=function(t){return parseFloat(this._valueLocator(t))/this._sum},l);function l(){var t=null!==s&&s.apply(this,arguments)||this;return t._center=[0,0],t._tooltipData=[],t}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var l,c=i(0),u=i(6),i=i(56),o=(l=i.default,o(r,l),r.prototype.paint=function(t,e){var r=this;l.prototype.paint.call(this,t,e);var i,n=this.config.pointColor||this.config.color,o="chart "+this.config.type+" "+(this.config.css||"")+" "+(this.config.dashed?"dash-line":""),s=[];return this.config.strokeWidth&&s.push(this._getForm(this._points,this.config,o,t,e)),this.config.pointType&&(i=this._getPointType(this.config.pointType,n),s=s.concat(this._points.map(function(t){return i(t[0],t[1],u.calcPointRef(t[2],r.id))}).map(function(t,e){var i,n,o;return t&&t.attrs&&(t.attrs=a(a({},t.attrs),(i=t.key,n=r._points,i&&(o=n.find(function(t){return i.includes(t[2])})),{role:"graphics-symbol","aria-roledescription":"point","aria-label":o?"point x="+o[3]+" y="+o[4]:"",tabindex:0})),r.config.tooltip&&(t.attrs.onmousemove=[r._handlers.onmousemove,r._points[e][2],r.id],t.attrs.onmouseleave=[r._handlers.onmouseleave,r._points[e][2],r.id],t.attrs.onclick=[r._handlers.onmousemove,r._points[e][2],r.id])),t}))),c.sv("g",a(a({class:"seria",_key:this.id},{"aria-label":"chart "+(this.config.value||"")}),{tabindex:0}),s)},r.prototype._getForm=function(t,e,i,n,o){t=t.map(function(t,e){return(e?"L":"M")+t[0]+" "+t[1]}).join(" ");return c.sv("path",{id:"seria"+e.id,d:t,stroke:e.color,class:i,"stroke-width":this.config.strokeWidth,fill:"none"})},r.prototype._setDefaults=function(t){this.config=a(a({},{alpha:1,strokeWidth:2,active:!0,tooltip:!0}),t)},r);function r(){return null!==l&&l.apply(this,arguments)||this}e.default=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(60)),n(e(164)),n(e(36))},function(t,i,a){"use strict";(function(r){Object.defineProperty(i,"__esModule",{value:!0});var n=a(1),o=a(3),s=a(8),c=a(36),t=(e.prototype.selectFile=function(){this._fileInput.click()},e.prototype.linkDropArea=function(t){function e(t){return t.preventDefault()}var i=this,n=o.toNode(t),t=function(t){t.preventDefault(),i.parseFiles(t.dataTransfer)};n.addEventListener("dragover",e),n.addEventListener("drop",t),this._dropAreas.set(n,{dragover:e,drop:t})},e.prototype.unlinkDropArea=function(t){var i=this;t?(t=o.toNode(t),this._unlinkDropArea(t),this._dropAreas.delete(t)):(this._dropAreas.forEach(function(t,e){i._unlinkDropArea(e)}),this._dropAreas.clear())},e.prototype.parseFiles=function(t){if(t.items&&t.items[0]&&t.items[0].webkitGetAsEntry)this._parseAsWebkitEntry(t.items);else{for(var e=t.files,i=0;i<e.length;i++)this._addFile(e[i]);this.config.autosend&&this.send()}},e.prototype.send=function(t){var e=this;if(!this._uploadInfo||!this.isActive){var i=this.data.findAll(function(t){return t.status===c.FileStatus.queue||t.status===c.FileStatus.failed}).filter(function(t){return e.events.fire(c.UploaderEvents.beforeUploadFile,[t])});if(i.length)if(this.isActive=!0,this._uploadInfo={files:i,count:i.length,size:i.reduce(function(t,e){return t+e.file.size},0)},this.events.fire(c.UploaderEvents.uploadBegin,[i]),this.events.fire(c.UploaderEvents.uploadProgress,[0,0,this._uploadInfo.size]),this.config.singleRequest)this._xhrSend(i,t);else for(var n=0,o=i;n<o.length;n++){var r=o[n];this._xhrSend([r],t)}}},e.prototype.abort=function(t){if(t){t=this.data.getItem(t);t&&t.request&&4!==t.request.readyState&&t.request.abort()}else if(this._uploadInfo&&this._uploadInfo.files)for(var e=0,i=this._uploadInfo.files;e<i.length;e++){var n=i[e];this.abort(n.id)}},e.prototype._unlinkDropArea=function(t){var e,i=this._dropAreas.get(t);i&&(e=i.dragover,i=i.drop,t.removeEventListener("dragover",e),t.removeEventListener("drop",i))},e.prototype._initEvents=function(){var i=this;this._fileInput.addEventListener("change",function(){for(var t=i._fileInput.files,e=0;e<t.length;e++)i._addFile(t[e]);i.config.autosend&&i.send(),i._fileInput.value=null})},e.prototype._xhrSend=function(a,t){for(var l=this,t=this._createFormData(a,t),r=new XMLHttpRequest,e=this.config.headerParams,i=0,n=a;i<n.length;i++){var o=n[i];this.data.update(o.id,{request:r,status:c.FileStatus.inprogress,progress:0})}if(r.open("POST",this.config.target),e)for(var s in e)r.setRequestHeader(s,e[s]);r.upload.onprogress=function(t){for(var e=0,i=a;e<i.length;e++){var n=i[e];l.data.update(n.id,{progress:t.loaded/t.total,status:c.FileStatus.inprogress})}var o=l._uploadInfo.files.reduce(function(t,e){return t+e.size*e.progress},0)||0,r=l._uploadInfo.size,s=o/l._uploadInfo.size*100||0;l.events.fire(c.UploaderEvents.uploadProgress,[s,o,r])},r.onloadend=function(){l._uploadInfo.count=l.config.singleRequest?0:l._uploadInfo.count-1;for(var t=200===r.status?c.FileStatus.uploaded:c.FileStatus.failed,e=200===r.status&&r.response?JSON.parse(r.response):null,i=0,n=a;i<n.length;i++){var o=n[i];l.data.update(o.id,{status:t}),t===c.FileStatus.uploaded?(l.config.updateFromResponse&&e&&(l.config.singleRequest&&e[o.id]?l.data.update(o.id,e[o.id]):l.config.singleRequest||l.data.update(o.id,e)),l.events.fire(c.UploaderEvents.uploadFile,[o,e])):l.events.fire(c.UploaderEvents.uploadFail,[o])}0===l._uploadInfo.count&&(l.isActive=!1,l.events.fire(c.UploaderEvents.uploadComplete,[l._uploadInfo.files]))},r.send(t)},e.prototype._parseAsWebkitEntry=function(t){for(var e=this,i=[],n=0;n<t.length;n++){var o=t[n].webkitGetAsEntry();i.push(this._traverseFileTree(o))}r.all(i).then(function(){e.config.autosend&&e.send()})},e.prototype._createFormData=function(t,e){var i=this.config.fieldName,n=new FormData,o=this.config.params;if(e)for(var r in e)n.append(r,e[r]);if(o)for(var r in o)n.append(r,o[r]);for(var s=1<t.length?"[]":"",a=0,l=t;a<l.length;a++){var c=l[a];n.append(i+s,c.file,c.file.name),n.append(i+"_fullname"+s,c.path+c.file.name);c="object"==typeof c.id?c.id:c.id.toString();n.append(i+"_id"+s,c)}return n},e.prototype._addFile=function(t,e){void 0===e&&(e="");e={id:n.uid(),file:t,progress:0,status:c.FileStatus.queue,src:null,path:e};this.data.add(e)},e.prototype._traverseFileTree=function(t){var n=this;return new r(function(r){var s=0,a=function(t,e){var i,o;t.isFile?(s++,t.file(function(t){s--,n._addFile(t,e),0===s&&r()})):t.isDirectory&&(i=t.createReader(),i=i,o=e+t.name+"/",s++,i.readEntries(function(t){s--;for(var e=0,i=t;e<i.length;e++){var n=i[e];a(n,o)}0===s&&r()}))};a(t,"")})},e);function e(t,e,i){void 0===t&&(t={}),this.config=n.extend({autosend:!0,updateFromResponse:!0,fieldName:"file",accept:""},t),this.data=e||new s.DataCollection,this.events=i||this.data.events,this.isActive=!1,this._fileInput=document.createElement("input"),this._fileInput.type="file",this._fileInput.accept=this.config.accept,this._fileInput.multiple=!0,this._initEvents(),this._dropAreas=new Map}i.Uploader=t}).call(this,a(17))},function(t,e,i){"use strict";var l=this&&this.__assign||function(){return(l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},n=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(121),s=i(124),a=i(26),c=i(24),u=i(23),p=i(1),i=(d.prototype._reset=function(){this._order=[],this._pull={},this._changes={order:[]},this._initOrder=null,this._meta=new WeakMap,this._loaded=!1},d.prototype.add=function(t,i){var n=this;if(this.events.fire(u.DataEvents.beforeAdd,[t])){t=Array.isArray(t)?t.map(function(t,e){return 0!==e&&(i+=1),n._add(t,i)}):this._add(t,i);return this._reapplyFilters(!0),t}},d.prototype.remove=function(t){var e=this;t instanceof Array?n(t).map(function(t){e._remove(t)}):p.isId(t)&&this._remove(t)},d.prototype.removeAll=function(){this._reset(),this.events.fire(u.DataEvents.removeAll),this.events.fire(u.DataEvents.change)},d.prototype.exists=function(t){return!!this._pull[t]},d.prototype.getNearId=function(t){if(!this._pull[t])return this._order[0].id||""},d.prototype.getItem=function(t){return this._pull[t]},d.prototype.update=function(t,e,i){var n=this.getItem(t);n?c.isEqualObj(e,n)||(p.isId(e.id)&&t!==e.id?(c.dhxWarning("this method doesn't allow change id"),c.isDebug()):(e.parent&&n.parent&&e.parent!==n.parent&&this.move(t,-1,this,e.parent),p.extend(this._pull[t],e,!1),this.config.update&&this.config.update(this._pull[t]),i||this._onChange("update",t,this._pull[t])),this._reapplyFilters(!0)):c.dhxWarning("item not found")},d.prototype.getIndex=function(e){return p.isId(e)&&p.isDefined(this._pull[e])?p.findIndex(this._order,function(t){return t&&t.id.toString()===e.toString()}):-1},d.prototype.getId=function(t){if(this._order[t])return this._order[t].id},d.prototype.getLength=function(){return this._order.length},d.prototype.isDataLoaded=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=this._order.length),p.isNumeric(t)&&p.isNumeric(e)?0===this._order.slice(t,e).filter(function(t){return t&&t.$empty}).length:(this._loaded||(this._loaded=!this.find(function(t){return t.$empty})),!!this._loaded)},d.prototype.filter=function(t,e,i){var n,o;if(this.isDataLoaded()){if(null!=e&&e.$restore&&(t=this._normalizeFilters(t||this._filters)),!(null!=e&&e.add||(this._order=this._initOrder||this._order,(this._initOrder=null)!=e&&e.$restore)))for(var r in this._filters){var s=this._filters[r];null!==(n=s.config)&&void 0!==n&&n.permanent?this._applyFilters(s.rule):delete this._filters[r]}if(!t||null!=e&&e.$restore||(o=(null==e?void 0:e.id)||p.uid(),this._filters[o]={rule:t,config:e||{}}),t&&"function"!=typeof t)if(p.isDefined(t.by))this._applyFilters(t);else for(var r in t)this._applyFilters(t[r]);else this._applyFilters(t);return i||(i=this._getPureFilters(this._filters),this.events.fire(u.DataEvents.filter,[p.isEmptyObj(i)?null:i])),o}c.dhxWarning("the method doesn't work with lazyLoad")},d.prototype.resetFilter=function(t,e){var i,n=t||{},o=n.id,n=n.permanent;if(p.isEmptyObj(t))for(var r in this._filters)null!==(i=this._filters[r].config)&&void 0!==i&&i.permanent||delete this._filters[r];else n?this._filters={}:o&&delete this._filters[o];return this.filter(null,{$restore:!0},e),p.isEmptyObj(this._getPureFilters(this._filters))},d.prototype.getFilters=function(t){t=this.getRawFilters(t),t=t?this._getPureFilters(t):{};return p.isEmptyObj(t)?null:t},d.prototype.getRawFilters=function(t){var n=this._filters;return null!=t&&t.permanent&&(n=Object.keys(n).reduce(function(t,e){var i;return null!==(i=n[e].config)&&void 0!==i&&i.permanent&&(t[e]=n[e]),t},{})),p.isEmptyObj(n)?null:n},d.prototype.find=function(t){for(var e in this._pull){var i=c.findByConf(this._pull[e],t);if(i)return i}return null},d.prototype.findAll=function(t){var e,i=[];for(e in this._pull){var n=c.findByConf(this._pull[e],t);n&&i.push(n)}return i},d.prototype.sort=function(t,e){this.isDataLoaded()?(e&&e.smartSorting&&(this._sorter=t),t&&this._applySorters(t),this.events.fire(u.DataEvents.change,[void 0,"sort",t])):c.dhxWarning("the method doesn't work with lazyLoad")},d.prototype.copy=function(t,i,n,o){var r=this;return t instanceof Array?t.map(function(t,e){return r._copy(t,i,n,o,e)}):this._copy(t,i,n,o)},d.prototype.move=function(t,i,n,o,e){var r=this;return t instanceof Array?t.map(function(t,e){return r._move(t,i,n,o,e)}):this._move(t,i,n,o,0,e)},d.prototype.forEach=function(t){for(var e=0;e<this._order.length;e++)t.call(this,this._order[e],e,this._order)},d.prototype.load=function(t,e){return"string"==typeof t&&(this.dataProxy=t=new a.DataProxy(t)),this.dataProxy=t,this._loader.load(t,e)},d.prototype.parse=function(t,e){return this._reset(),this._loader.parse(t,e)},d.prototype.$parse=function(t){var e=this.config.approximate;e&&(t=this._approximate(t,e.value,e.maxNum)),this._parse_data(t),this._reapplyFilters(!0),this.events.fire(u.DataEvents.change,["load"]),this.events.fire(u.DataEvents.load)},d.prototype.save=function(t){"string"==typeof t&&(t=new a.DataProxy(t)),this._loader.save(t)},d.prototype.changeId=function(t,e,i){var n;void 0===e&&(e=p.uid()),i||this.isDataLoaded()?(n=this.getItem(t))?(n.id=e,p.extend(this._pull[t],n),this._pull[e]=this._pull[t],i||this._onChange("update",e,this._pull[e]),delete this._pull[t]):c.dhxWarning("item not found"):c.dhxWarning("the method doesn't work with lazyLoad")},d.prototype.isSaved=function(){return!this._changes.order.length},d.prototype.map=function(t){for(var e=[],i=0;i<this._order.length;i++)e.push(t.call(this,this._order[i],i,this._order));return e},d.prototype.mapRange=function(t,e,i){t<0&&(t=0),e>this._order.length-1&&(e=this._order.length-1);for(var n=this._order.slice(t,e),o=[],r=t;r<=e;r++)o.push(i.call(this,this._order[r],r,n));return o},d.prototype.reduce=function(t,e){for(var i=0;i<this._order.length;i++)e=t.call(this,e,this._order[i],i);return e},d.prototype.serialize=function(t){void 0===t&&(t=u.DataDriver.json);for(var i=[],n=this,e=0;e<this._order.length;e++)!function(t){var e=l({},n._order[t]);Object.keys(e).forEach(function(t){t.startsWith("$")&&delete e[t]}),i.push(e)}(e);t=c.toDataDriver(t);if(t)return t.serialize(i)},d.prototype.getInitialData=function(){return this._initOrder},d.prototype.setMeta=function(t,e,i){var n;t&&((n=this._meta.get(t))||(n={},this._meta.set(t,n)),n[e]=i)},d.prototype.getMeta=function(t,e){t=this._meta.get(t);return t?t[e]:null},d.prototype.getMetaMap=function(t){return this._meta.get(t)},d.prototype.setRange=function(t,e){this._range=e?[t,e]:null},d.prototype.getRawData=function(t,e,i,n){if(i=i||this._order,1===n)return i;var o;if(this._range&&(t=this._range[0]+t,e=-1===e||t+(o=Math.abs(e-t))>this._range[1]?this._range[1]:t+o),!e||0===t&&(-1===e||e===i.length))return i;if(t>=i.length)return[];(-1===e||e>i.length)&&(e=i.length);i=i.slice(t,e);return 0!==i.filter(function(t){return t.$empty}).length&&this.events.fire(u.DataEvents.dataRequest,[t,e]),i},d.prototype._add=function(t,e){if(this.isDataLoaded()){e=this._addCore(t,e);return this._onChange("add",t.id,t),this.events.fire(u.DataEvents.afterAdd,[t]),e}c.dhxWarning("the method doesn't work with lazyLoad")},d.prototype._remove=function(t){if(this.isDataLoaded()){var e=this._pull[t];if(e){if(!this.events.fire(u.DataEvents.beforeRemove,[e]))return;this._removeCore(e.id),this._onChange("remove",t,e)}this.events.fire(u.DataEvents.afterRemove,[e])}else c.dhxWarning("the method doesn't work with lazyLoad")},d.prototype._copy=function(t,e,i,n,o){if(this.isDataLoaded()){if(!this.exists(t))return null;var r=p.uid();return(o&&(e=-1===e?-1:e+o),i)?i instanceof d||!n?i.exists(t)?(i.add(l(l({},c.copyWithoutInner(this.getItem(t))),{id:r}),e),r):(i.add(c.copyWithoutInner(this.getItem(t)),e),t):void i.add(c.copyWithoutInner(this.getItem(t)),e):(this.add(l(l({},c.copyWithoutInner(this.getItem(t))),{id:r}),e),r)}c.dhxWarning("the method doesn't work with lazyLoad")},d.prototype._move=function(t,e,i,n,o,r){if(this.isDataLoaded()){if(o&&(e=-1===e?-1:e+o),i&&i!==this&&this.exists(t)){var s=p.copy(this.getItem(t),!0);return r&&(s.id=r),(!r&&i.exists(t)||i.exists(r))&&(s.id=p.uid()),n&&(s.parent=n),i.add(s,e),this.remove(t),s.id}if(this.getIndex(t)===e)return null;s=this._order.splice(this.getIndex(t),1)[0];return-1===e&&(e=this._order.length),this._order.splice(e,0,s),this.events.fire(u.DataEvents.change,[t,"update",this.getItem(t)]),t}c.dhxWarning("the method doesn't work with lazyLoad")},d.prototype._addCore=function(t,e){var i;return this.config.init&&(t=this.config.init(t)),t.id=null!==(i=t.id)&&void 0!==i?i:p.uid(),this._pull[t.id]&&c.dhxError("Item "+t.id+" already exist"),this._initOrder&&!c.isTreeCollection(this)&&this._addToOrder(this._initOrder,t,e),this._addToOrder(this._order,t,e),t.id},d.prototype._removeCore=function(e){0<=this.getIndex(e)&&(this._order=this._order.filter(function(t){return t.id!==e}),delete this._pull[e]),this._initOrder&&this._initOrder.length&&(this._initOrder=this._initOrder.filter(function(t){return t.id!==e}),delete this._pull[e])},d.prototype._parse_data=function(t){var e=this._order.length;this.config.prep&&(t=this.config.prep(t));for(var i=0,n=t;i<n.length;i++){var o=n[i];this._addCore(o,e++)}},d.prototype._approximate=function(t,e,i){for(var n=t.length,o=e.length,r=Math.floor(n/i),s=Array(Math.ceil(n/r)),a=0,l=0;l<n;l+=r){for(var c=p.copy(t[l]),u=Math.min(n,l+r),d=0;d<o;d++){for(var h=0,f=l;f<u;f++)h+=t[f][e[d]];c[e[d]]=h/(u-l)}s[a++]=c}return s},d.prototype._onChange=function(t,e,i){for(var n=0,o=0,r=this._changes.order;o<r.length;o++){var s=r[o],a=this._changes.order.indexOf(s);if(s.id===e&&!s.saving&&(n+=1,a===this._changes.order.length-1||this._changes.order[a+1].id!==e))return s.error&&(s.error=!1),s=l(l({},s),{obj:i,status:t}),10<(n+=1)?this._changes.order.splice(a,n-10,s):this._changes.order.splice(a+1,0,s),this._loader.updateChanges(this._changes),"remove"===t&&i.$emptyRow?void 0:void this.events.fire(u.DataEvents.change,[e,t,i])}this._changes.order.push({id:e,status:t,obj:l({},i),saving:!1}),this._loader.updateChanges(this._changes),this.events.fire(u.DataEvents.change,[e,t,i])},d.prototype._addToOrder=function(t,e,i){0<=i&&t[i]?(this._pull[e.id]=e,t.splice(i,0,e)):(this._pull[e.id]=e,t.push(e))},d.prototype._applySorters=function(t){this._sort.sort(this._order,t,this._sorter),this._initOrder&&this._initOrder.length&&this._sort.sort(this._initOrder,t,this._sorter)},d.prototype._applyFilters=function(t){var e;t&&(e="function"!=typeof t?this._getRuleCallback(t):t,t=this._order.filter(function(t){return e(t)}),this._initOrder||(this._initOrder=this._order),this._order=t)},d.prototype._reapplyFilters=function(t){void 0===t&&(t=!1);var e=this.getFilters({permanent:!0});e&&this.filter(e,{$restore:!0,add:!0},!0),t&&this._sorter&&this._applySorters()},d.prototype._getRuleCallback=function(e){if(p.isDefined(e.by)&&p.isDefined(e.match))return e.compare?function(t){return e.compare(t[e.by],e.match,t,e.multi)}:function(t){return t[e.by]==e.match}},d.prototype._getPureFilters=function(n){return Object.keys(n).reduce(function(t,e){var i;return null!==(i=n[e].config)&&void 0!==i&&i.$local||(t[e]=n[e]),t},{})},d.prototype._normalizeFilters=function(t){var e,i=[];for(e in t){var n=t[e].rule;if("function"!=typeof n)if(p.isDefined(n.by))i.push(this._getRuleCallback(n));else for(var o in n)i.push(this._getRuleCallback(n[o]));else i.push(n)}return l({},i)},d);function d(t,e){var n=this;this._filters={},this._changes={order:[]},this.config=t||{},this._sort=new s.Sort,this._loader=new r.Loader(this,this._changes),this.events=e||new o.EventSystem(this),this.events.on(u.DataEvents.dataRequest,function(t,e){var i=n.dataProxy;i&&i.updateUrl&&(i.updateUrl(null,{from:t,limit:i.config.limit||e-t}),n.load(i))}),this.events.on(u.DataEvents.loadError,function(t){setTimeout(function(){"string"!=typeof t?c.dhxError(t):c.dhxWarning(t)},0)}),this._reset()}e.DataCollection=i},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(63),r=i(64),i=i(122);e.dataDrivers={json:o.JsonDriver,csv:r.CsvDriver},e.dataDriversPro=n(n({},e.dataDrivers),{xml:i.XMLDriver})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(o.prototype.toJsonArray=function(t){return this.getRows(t)},o.prototype.serialize=function(t){return t},o.prototype.getFields=function(t){return t},o.prototype.getRows=function(t){return"string"==typeof t?JSON.parse(t):t},o);function o(){}e.JsonDriver=n},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=(r.prototype.getFields=function(t,e){for(var i=new RegExp('(?<!")'+this.config.columnDelimiter+'(?!")'),n=t.trim().split(i),o={},r=0;r<n.length;r++)o[e?e[r]:r+1]=isNaN(Number(n[r]))?n[r].replace(/"[,;"]"/gi,function(t){return t.split("").splice(1,1).slice(-1,1).join("")}):parseFloat(n[r]);return o},r.prototype.getRows=function(t){return t.trim().split(this.config.rowDelimiter)},r.prototype.toJsonArray=function(t){var e=this,i=this.getRows(t),n=this.config.names;return this.config.skipHeader&&(t=i.splice(0,this.config.skipHeader),this.config.nameByHeader&&(n=t[0].trim().split(this.config.columnDelimiter))),i.map(function(t){return e.getFields(t,n)})},r.prototype.serialize=function(t,e){var i=t[0]?Object.keys(t[0]).filter(function(t){return!t.startsWith("$")}).join(this.config.columnDelimiter)+this.config.columnDelimiter+this.config.rowDelimiter:"",t=this._serialize(t);return e?t:i+t},r.prototype._serialize=function(t){var o=this;return t.reduce(function(t,n){var e=Object.keys(n).reduce(function(t,e,i){return e.startsWith("$")||"items"===e?t:""+t+n[e].replaceAll(/[,;"]/gi,function(t){return'"'+t+'"'})+(i===n.length-1?"":o.config.columnDelimiter)},"");return n.items?t+(t?"\n":"")+e+o._serialize(n.items):""+t+(t?o.config.rowDelimiter:"")+e},"")},r);function r(t){this.config=n(n({},{skipHeader:0,nameByHeader:!1,rowDelimiter:"\n",columnDelimiter:","}),t),this.config.nameByHeader&&(this.config.skipHeader=1)}e.CsvDriver=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),v=this&&this.__assign||function(){return(v=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var i={};for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(i[o[n]]=t[o[n]]);return i},_=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var r,l=i(0),a=i(2),c=i(3),p=i(1),u=i(13),d=i(5),h=i(8),f=i(127),m=i(18),g=i(32),y=i(15),b=i(131),w=i(9),x=i(20),E=i(16),C=i(154),S=i(158),k=i(159),I=i(19),O=i(27),o=(r=d.View,o(P,r),P.prototype.destructor=function(){this._destructed=!0,this._destroyContent(),this.keyManager&&this.keyManager.destructor(),this.events&&this.events.clear(),this._events&&this._events.clear(),this.export=this.content=this.selection=null,this._activeFilters=this._filterData=this._scroll=this._touch=this._htmlEvents=this._hiddenFilters=null,this.unmount()},P.prototype.setColumns=function(t){var e=this;this.config.columns=t,this._parseColumns(!0),this._adjustColumns(),this._checkFilters(),this._checkMarks(),this.paint(),this.config.keyNavigation&&l.awaitRedraw().then(function(){e._initHotKey(!0),e.paint()})},P.prototype.addRowCss=function(t,e){var i=this.data.getItem(t),t=i.$css||"";t.match(new RegExp(e,"g"))||(i.$css=t+" "+e,this.paint())},P.prototype.removeRowCss=function(t,e){t=this.data.getItem(t),e=t.$css?t.$css.replace(e,""):"";t.$css=e,this.paint()},P.prototype.addCellCss=function(t,e,i){var n=this.getColumn(e),o=this.config.spans?this.getSpan(t,e):null;(o||n)&&((e=o?o.css:n.$cellCss[t])?(e=e.match(new RegExp(i,"g"))?"":" "+i,o?o.css+=e:n.$cellCss[t]+=e):this.data.getItem(t)&&(o?o.css=i+" ":n.$cellCss[t]=i+" "),this.paint())},P.prototype.removeCellCss=function(t,e,i){e=this.getColumn(e);e&&(e.$cellCss[t]?(e.$cellCss[t]=e.$cellCss[t].replace(i,""),this.paint()):this.data.getItem(t)&&(e.$cellCss[t]=""))},P.prototype.showColumn=function(t){var e=this.getColumn(t);e&&e.hidden&&this.events.fire(w.GridEvents.beforeColumnShow,[e])&&(e.hidden=!1,this.config.$totalWidth+=e.$width,(t=this._hiddenFilters&&this._hiddenFilters[e.id])&&(this._activeFilters[e.id]=t,delete this._hiddenFilters[e.id],this._checkFilters(),this._checkSelectFilterValue()),this.paint(),this.events.fire(w.GridEvents.afterColumnShow,[e]))},P.prototype.hideColumn=function(t){var e=this.getColumn(t);e&&!e.hidden&&this.events.fire(w.GridEvents.beforeColumnHide,[e])&&(e.hidden=!0,this.config.$totalWidth-=e.$width,(t=this._activeFilters&&this._activeFilters[e.id])&&(this._hiddenFilters||(this._hiddenFilters={}),this._hiddenFilters[e.id]=t,delete this._activeFilters[e.id],this._checkFilters()),this.paint(),this.events.fire(w.GridEvents.afterColumnHide,[e]))},P.prototype.isColumnHidden=function(t){t=this.getColumn(t);if(t)return!!t.hidden},P.prototype.showRow=function(t){var e;p.isDefined(t)&&(e=t.toString(),(t=this.data.getItem(e))&&t.hidden&&this.events.fire(w.GridEvents.beforeRowShow,[t])&&(this.data.update(e,{hidden:!1}),this._checkFilters(!0),this.paint(),this.events.fire(w.GridEvents.afterRowShow,[t])))},P.prototype.hideRow=function(t){var e;p.isDefined(t)&&(e=t.toString(),(t=this.data.getItem(e))&&this.events.fire(w.GridEvents.beforeRowHide,[t])&&(this.data.update(e,{hidden:!0}),this._checkFilters(!0),this._checkSelectFilterValue(),this.paint(),this.events.fire(w.GridEvents.afterRowHide,[t])))},P.prototype.isRowHidden=function(t){if(p.isDefined(t)){t=this.data.getItem(t.toString());return t?!!t.hidden:void 0}},P.prototype.getScrollState=function(){return{x:this._scroll.left,y:this._scroll.top}},P.prototype.scroll=function(t,e){var i=this.getRootView().refs.grid_body.el.querySelector(".scroll-view")||this.getRootView().refs.grid_body.el;i.scrollLeft=!t&&0!==t||"number"!=typeof t?i.scrollLeft:t,i.scrollTop=!e&&0!==e||"number"!=typeof e?i.scrollTop:e,this.paint()},P.prototype.scrollTo=function(e,i){var t=this.selection.getCell(),n=this.config.columns.filter(function(t){return!t.hidden}),o=p.findIndex(n,function(t){return t.id==i}),r=t?t.column:this.config.columns[0],s=p.findIndex(n,function(t){return t.id==r.id}),a=this.config.leftSplit?y.getTotalWidth(n.slice(0,this.config.leftSplit)):0,l=y.getTotalWidth(n.slice(0,o))-(o-s<0?a:0),c=this.data.getRawData(0,-1),u=p.findIndex(c,function(t){return t.id==e}),d=y.getTotalHeight(c.slice(0,u)),h=this.getScrollState(),f=this.config.$width+h.x,t=this.config.$height+h.y-this.config.headerRowHeight*this.config.$headerLevel,s=d-h.y-c[u].$height,a=l-h.x-n[o].$width,t=d+2*c[u].$height+18-t,f=l+2*n[o].$width+18-f,t=0<s&&t<0?0:s<0?s:t,f=0<a&&f<0?0:a<0?a:f;this.scroll(f+h.x,t+h.y)},P.prototype.adjustColumnWidth=function(e,t){void 0===t&&(t=!0);var i=this.config.columns.filter(function(t){return!t.hidden}),n=i.filter(function(t){return t.id===e}),r=this._adjustColumnsWidth({rows:this.config.data,cols:n,totalCols:i,adjust:t});this.config.$totalWidth=i.reduce(function(t,e){var i,n,o;return r[e.id]&&(e.$fixed=!0,i=e.maxWidth,n=e.minWidth,o=r[e.id],e.$width=o,i&&i<o&&(e.$width=i),n&&e.$width<n&&(e.$width=n)),t+e.$width},0),this.paint()},P.prototype.getCellRect=function(e,i){var t=this.config.columns.filter(function(t){return!t.hidden}),n=this.data.getRawData(0,-1),o=this.getSpan(e,i),r=p.findIndex(t,function(t){return t.id==(o?o.column:i)}),s=p.findIndex(n,function(t){return t.id==(o?o.row:e)});return{x:y.getTotalWidth(t.slice(0,r)),y:y.getTotalHeight(n.slice(0,s)),height:null!=o&&o.rowspan?g.getHeight(n,o.rowspan,s):n[s]?n[s].$height:0,width:null!=o&&o.colspan?g.getWidth(this.config.columns,o.colspan,p.findIndex(this.config.columns,function(t){return t.id===o.column})):t[r]?t[r].$width:0}},P.prototype.getColumn=function(t){for(var e,i=0,n=null===(e=this.config)||void 0===e?void 0:e.columns;i<n.length;i++){var o=n[i];if(o.id==t)return o}},P.prototype.addSpan=function(e){this.config.spans=this.config.spans||[];var t=p.findIndex(this.config.spans,function(t){return""+t.row==""+e.row&&""+t.column==""+e.column});0<=t?this.config.spans[t]=e:(this.config.spans.push(O.normalizeSpan(e,this.config)),this._checkMarks(),this.paint())},P.prototype.getSpan=function(t,e){var r=this;if(this.config.spans){var s=this.data.getIndex(t.toString()),a=this.config.columns.findIndex(function(t){return t.id===e}),i=p.findIndex(this.config.spans,function(e){var t=r.data.getIndex(e.row.toString()),i=r.config.columns.findIndex(function(t){return t.id===e.column}),n=e.rowspan?t+e.rowspan:t+1,o=e.colspan?i+e.colspan:i+1;return t<=s&&s<n&&i<=a&&a<o});return null===(t=this.config)||void 0===t?void 0:t.spans[i]}},P.prototype.removeSpan=function(e,i){var t;this.config.spans&&(t=p.findIndex(this.config.spans,function(t){return""+t.row==""+e&&""+t.column==""+i}),this.config.spans.splice(t,1),this.paint())},P.prototype.editCell=function(t,e,i){var n,o,r=this.data.getItem(t),s=this.getColumn(e);r&&s?(n=s.editorType,o=this.getSpan(r.id,s.id),i||("date"===s.type&&(i="datePicker"),"boolean"===s.type&&(i="checkbox"),n&&(i=n),p.isDefined(null==o?void 0:o.text)&&(i=this.config.autoHeight?"textarea":"input")),this.events.fire(w.GridEvents.beforeEditStart,[r,s,i])&&(null!==(n=this.config.$editable)&&void 0!==n&&n.editor||this.config.$editable&&this.config.$editable.row===t&&this.config.$editable.col===e&&this.config.$editable.editorType===i||(this.config.$editable={row:r.id,col:s.id,isSpan:!!o,editorType:i},this.selection.config.disabled||this.selection.setCell(t.toString(),e.toString()),this.paint(),this.events.fire(w.GridEvents.afterEditStart,[r,s,i])))):h.dhxWarning("item not found")},P.prototype.editEnd=function(t){this.config.$editable&&this.config.$editable.editor&&this.config.$editable.editor.endEdit(t)},P.prototype.getSortingState=function(){return{dir:this._sortDir,by:this._sortBy}},P.prototype.getHeaderFilter=function(e){var i=this,t=this.getColumn(e);if(t){var n=null;return t.header.forEach(function(t){t.content&&(n=i.content[t.content].element[e])}),n}},P.prototype.edit=function(t,e,i){this.editCell(t,e,i)},P.prototype.paint=function(){var t=this.config.hotkeys?Object.keys(this.config.hotkeys).length:0;!this.keyManager||this.keyManager.getKeyStorageLength()-t||this._initHotKey(!0),r.prototype.paint.call(this)},P.prototype._createView=function(){var i=this;return l.create({render:function(t,e){return i._destructed?l.el("div"):x.render(t,e,i._htmlEvents,i.selection,i._uid)},hooks:this._initHooks()},this)},P.prototype._parseColumns=function(t){void 0===t&&(t=!1),m.normalizeColumns(this.config,t);t=this.config.columns.filter(function(t){return!t.hidden});m.countColumns(this.config,t)},P.prototype._parseData=function(){this.config.data=this.data.map(function(t){return t}),this.config.data=this._prepareData(this.data),this._detectColsTypes(),this._checkMarks(),this.data.filter(function(t){return!t.hidden},{$local:!0,permanent:!0},!0),this._checkFilters(),this._render()},P.prototype._createCollection=function(t){this.data=new h.DataCollection({prep:t},this.events)},P.prototype._getRowIndex=function(t){return this.data.getIndex(t)},P.prototype._setEventHandlers=function(){function r(t){var e=t.source,i=t.target,n=s(t,["source","target"]);null!=e&&e.length&&e.map(function(t){return g.data.exists(t)&&g.data.update(t,n)}),g.data.exists(i)&&g.data.update(i,n)}var g=this;this.data.events.on(h.DataEvents.load,function(){g.data.filter(function(t){return t},{$local:!0},!0),g._parseData(),g.config.data instanceof h.DataCollection?l.awaitRedraw().then(function(){return g._normalizeSpans()}):g._normalizeSpans()}),this.data.events.on(h.DataEvents.change,function(e,t,i){if("setPage"!==t){if("sort"===t?(i.dir?g._sortDir=i.dir:g._sortBy===i.by?g._sortDir="asc"===g._sortDir?"desc":"asc":g._sortDir="asc",g._sortBy=i.by):"add"===t||"update"===t||"remove"===t?(!p.isId(e)||"remove"!==t||(n=g.selection.getCells().find(function(t){return t.row.id===e}))&&g.selection.removeCell(n.row.id,n.column.id),g.config.data=g._prepareData(g.data)):(h.isTreeCollection(g.data)&&(g.config.data=g._prepareData(g.data)),g._adjustColumns()),p.isId(e)&&(g._checkFilters(),g._checkSelectFilterValue()),g._detectColsTypes(),g._removeMarks(),g._checkMarks(),g.config.autoEmptyRow&&(!g._activeFilters||p.isEmptyObj(g._activeFilters))){var n=g.data.find({by:"$emptyRow",match:!0});if(n){if(n.id===e)return;g.data.move(n.id,g.data.getLength()-1)}else g._addEmptyRow()}g._render()}else l.awaitRedraw().then(function(){var t=g.config.columns.find(function(t){return!0!==t.hidden});g.scrollTo(g.data.getId(i[0]).toString(),t.id.toString()),g._render()})}),this.data.events.on(h.DataEvents.filter,function(t){t||g.data.getRawFilters({permanent:!0})||g.data.filter(function(t){return!t.hidden},{$local:!0,permanent:!0},!0),!t||h.isOnlyPermanentFilters(t)?(g._filterData=g.data.map(function(t){return t})||[],g._setUniqueData(),g._clearFilterValue()):g._checkFilters(),g.paint()}),this.data.events.on(h.DataEvents.removeAll,function(){g._hiddenFilters={},g.config.columns.map(function(e){e.header.map(function(t){!t.content||"selectFilter"!==t.content&&"comboFilter"!==t.content||(e.$uniqueData=[])})}),p.isEmptyObj(g._activeFilters)||g.data.resetFilter(),g._clearFilterValue(!0)}),this.events.on(h.DragEvents.beforeDrag,function(t,e){return g.data.getItem(t.start)?g.events.fire(w.GridEvents.beforeRowDrag,[t,e]):"column"===g.config.dragItem||"both"===g.config.dragItem?g.events.fire(w.GridEvents.beforeColumnDrag,[t,e]):void 0}),this.events.on(h.DragEvents.dragStart,function(t,e){var i=t.source,n=t.target,o=t.start;r({source:i,target:n,$dragtarget:!0}),g.data.getItem(o)?(g.events.fire(w.GridEvents.dragRowStart,[t,e]),g._autoScroll("vertical")):"column"!==g.config.dragItem&&"both"!==g.config.dragItem||(g.events.fire(w.GridEvents.dragColumnStart,[t,e]),g._autoScroll("horizontal"))}),this.events.on(h.DragEvents.dragIn,function(t,e){g.data.getItem(t.start)?g.events.fire(w.GridEvents.dragRowIn,[t,e]):"column"!==g.config.dragItem&&"both"!==g.config.dragItem||g.events.fire(w.GridEvents.dragColumnIn,[t,e])}),this.events.on(h.DragEvents.dragOut,function(t,e){g.data.getItem(t.start)?g.events.fire(w.GridEvents.dragRowOut,[t,e]):"column"!==g.config.dragItem&&"both"!==g.config.dragItem||g.events.fire(w.GridEvents.dragColumnOut,[t,e])}),this.events.on(h.DragEvents.canDrop,function(t,e){var i=t.source,n=t.target,o=t.dragItem;delete t.dragItem,r({source:i,target:n,$drophere:!0}),"row"===o?g.events.fire(w.GridEvents.canRowDrop,[t,e]):"column"!==g.config.dragItem&&"both"!==g.config.dragItem||g.events.fire(w.GridEvents.canColumnDrop,[t,e])}),this.events.on(h.DragEvents.cancelDrop,function(t,e){var i=t.source,n=t.target,o=t.start;r({source:i,target:n,$drophere:void 0,$dragtarget:void 0}),g.data.getItem(o)?g.events.fire(w.GridEvents.cancelRowDrop,[t,e]):"column"!==g.config.dragItem&&"both"!==g.config.dragItem||g.events.fire(w.GridEvents.cancelColumnDrop,[t,e])}),this.events.on(h.DragEvents.beforeDrop,function(t,e){return"row"!==g.config.dragItem||"both"!==g.config.dragMode&&"target"!==g.config.dragMode?"column"===g.config.dragItem||"both"===g.config.dragItem?g.events.fire(w.GridEvents.beforeColumnDrop,[t,e]):void 0:g.events.fire(w.GridEvents.beforeRowDrop,[t,e])}),this.events.on(h.DragEvents.afterDrop,function(e,t){var i,n;if(g.data.getItem(e.start)){var o=e.source;if(!o.some(function(t){return t==e.target})){for(var r=g.data.getItem(e.start),s=0,a=g.config.columns;s<a.length;s++){var l=a[s];void 0===r[l.id]&&g.data.update(r.id,((i={})[l.id]=null,i),!0)}var c=g.data.getInitialData(),u=null==c?void 0:c.findIndex(function(t){return t.id==e.start}),d=null==c?void 0:c.findIndex(function(t){return t.id==e.target});if(-1<u&&-1<d)if(1<(null===(n=e.source)||void 0===n?void 0:n.length)){for(var h=[],f=0,p=o;f<p.length;f++)!function(e){var t=null==c?void 0:c.findIndex(function(t){return t.id==e}),t=null==c?void 0:c.splice(t,1)[0];h.push(t)}(p[f]);0<(d=null==c?void 0:c.findIndex(function(t){return t.id==e.target}))&&++d,null!=c&&c.splice.apply(c,_([d,0],h))}else null!=c&&c.splice(d,0,null==c?void 0:c.splice(u,1)[0]);g.config.data=g._prepareData(c||g.data.map(function(t){return t})),g.data.parse(g.config.data),g._checkFilters(),g.paint(),g.events.fire(w.GridEvents.afterRowDrop,[e,t])}}else"column"!==g.config.dragItem&&"both"!==g.config.dragItem||g.events.fire(w.GridEvents.afterColumnDrop,[e,t])}),this.events.on(h.DragEvents.afterDrag,function(t,e){var i=t.source,n=t.target,o=t.start;r({source:i,target:n,$dragtarget:void 0}),g.data.getItem(o)?g.events.fire(w.GridEvents.afterRowDrag,[t,e]):"column"!==g.config.dragItem&&"both"!==g.config.dragItem||g.events.fire(w.GridEvents.afterColumnDrag,[t,e]),g.config.data=g._prepareData(g.data instanceof Array?g.data.map(function(t){return t}):g.data.getInitialData()||g.data),g.data.parse(g.config.data)}),this.events.on(w.GridEvents.cellMouseDown,function(t,e,i){i.targetTouches?(g._touch.timer=setTimeout(function(){g._dragStart(i)},g._touch.duration),g._touch.timeStamp?(g._touch.dblDuration>=g._touch.timeStamp-+i.timeStamp.toFixed()&&((!1!==e.editable&&g.config.editable||e.editable)&&g.editCell(t.id,e.id,e.editorType),i.preventDefault(),g.events.fire(w.GridEvents.cellDblClick,[t,e,i])),g._touch.timeStamp=null):g._touch.timeStamp=+i.timeStamp.toFixed(),setTimeout(function(){g._touch.timeStamp=null},g._touch.dblDuration)):g._dragStart(i)}),this._events.on(w.GridSystemEvents.cellTouchMove,function(t,e,i){g._touch.start&&i.preventDefault(),g._clearTouchTimer()}),this._events.on(w.GridSystemEvents.cellTouchEnd,function(){g._touch.start=!1,g._clearTouchTimer()}),this.events.on(w.GridEvents.filterChange,function(e,t,o,i){var n,r,s,a,l,c;g.events.fire(w.GridEvents.beforeFilter,[e,t])&&(!g.config.autoEmptyRow||(n=g.data.find({by:"$emptyRow",match:!0}))&&g.data.remove(n.id),g._activeFilters||(g._activeFilters={}),s=(r=g.getColumn(t)).header.filter(function(t){return t.content===o&&void 0!==t.customFilter})[0],"comboFilter"===o&&void 0!==e||"comboFilter"!==o&&""!==e?(a=m.getEditorOptions(r),"combobox"!==r.editorType&&"select"!==r.editorType&&"multiselect"!==r.editorType||!a||(e=Array.isArray(e)?e.map(function(e){var t;return(null===(t=a.find(function(t){return"string"==typeof t?t===e:t.value===e}))||void 0===t?void 0:t.id)||e}):null!==(n=null===(n=a.find(function(t){return"string"==typeof t?t===e:t.value===e}))||void 0===n?void 0:n.id)&&void 0!==n?n:e),g._activeFilters[t]={by:t,match:e,compare:null!==(s=null==s?void 0:s.customFilter)&&void 0!==s?s:(l=t,c=g.getColumn(l),function(t,e,i,n){return g.content[o].match({val:t,match:e,obj:i,multi:n,col:c})}),multi:"multiselect"===(null==r?void 0:r.editorType)}):delete g._activeFilters[t],i||g.data.filter(g._activeFilters))}),this.events.on(w.GridEvents.scroll,function(t){g._scroll={top:t.y,left:t.x},g.editEnd(),g.paint()}),this.events.on(w.GridEvents.cellDblClick,function(t,e,i){c.locateNodeByClassName(i,"dhx_boolean-cell")||(!1!==e.editable&&g.config.editable||e.editable)&&g.editCell(t.id,e.id,e.editorType)}),this.events.on(w.GridEvents.afterEditEnd,function(t,e,i){var n,o;null!==(n=g.config.$editable)&&void 0!==n&&n.editor&&(g.config.$editable.col!==i.id||g.config.$editable.row!==e.id)||(e=g.config.$editable?(o=g.config.$editable.row,g.config.$editable.col):(o=e.id,i.id),i=g.getSpan(o,e),p.isDefined(null==i?void 0:i.text)&&void 0!==t?i.text=t.toString():(delete(i=g.data.getItem(o)).$emptyRow,void 0!==t&&g.data.update(o,v(v({},i),((i={})[e]=t,i)))),g.config.$editable=null,g.paint())}),this.events.on(w.GridEvents.headerCellMouseDown,function(t,e){var i=e.target.getAttribute("dhx_resized");i&&g.events.fire(w.GridEvents.beforeResizeStart,[t,e])&&S.startResize(g,i.toString(),e,function(){g.paint(),g.config.$resizing=null,g.events.fire(w.GridEvents.afterResizeEnd,[t,e])}),e.targetTouches&&(g._touch.timeStamp?(g._touch.dblDuration>=g._touch.timeStamp-+e.timeStamp.toFixed()&&(e.preventDefault(),g.events.fire(w.GridEvents.headerCellDblClick,[t,e])),g._touch.timeStamp=null):g._touch.timeStamp=+e.timeStamp.toFixed(),setTimeout(function(){g._touch.timeStamp=null},g._touch.dblDuration))}),this.events.on(w.GridEvents.footerCellDblClick,function(t,e){e.targetTouches&&(g._touch.timeStamp?(g._touch.dblDuration>=g._touch.timeStamp-+e.timeStamp.toFixed()&&(e.preventDefault(),g.events.fire(w.GridEvents.footerCellDblClick,[t,e])),g._touch.timeStamp=null):g._touch.timeStamp=+e.timeStamp.toFixed(),setTimeout(function(){g._touch.timeStamp=null},g._touch.dblDuration))}),this.events.on(w.GridEvents.resize,function(){g._parseColumns(),g._setUniqueData(!0)}),this.events.on(w.GridEvents.afterResizeEnd,function(e){var t;g.config.columns=null===(t=g.config.columns)||void 0===t?void 0:t.map(function(t){return t.id==e.id&&(t.width=e.$width),t}),g._parseColumns(),g._setUniqueData(!0)})},P.prototype._addEmptyRow=function(){var t=this.data.getId(this.data.getLength()-1),e=this.data.getItem(t),t=this.config.columns.filter(function(t){return!t.hidden});y.isRowEmpty(e)||this.data.add(t.reduce(function(t,e){return t[e.id]="",t},{$emptyRow:!0}))},P.prototype._sort=function(i,t,e){var n=this;t=t||(this._sortBy===i&&"asc"===this._sortDir?"desc":"asc");this.data.sort({by:i,dir:t,as:null!=e?e:function(t){var e=n.getColumn(i);return t&&"date"===e.type?("string"==typeof t?E.stringToDate(t,e.format):t).getTime():t?""+t:""}}),this.events.fire(w.GridEvents.afterSort,[this.getColumn(i),t])},P.prototype._clearTouchTimer=function(){this._touch.timer&&(clearTimeout(this._touch.timer),this._touch.timer=null)},P.prototype._checkFilters=function(t){void 0===t&&(t=!1),p.isEmptyObj(this._activeFilters)?(t&&this.data.resetFilter(),this._filterData=this.data.map(function(t){return t})||[],this._setUniqueData()):(t=this.data.getRawFilters({permanent:!0}),this.data.filter(t,{$restore:!0},!0),this._filterData=this.data.map(function(t){return t})||[],this._setUniqueData(),this.data.filter(null,{$restore:!0},!0),this._filterData=this.data.map(function(t){return t})||[],this._setUniqueData(!0))},P.prototype._setUniqueData=function(o){var r=this;void 0===o&&(o=!1),this._filterData&&this.config.columns.forEach(function(n){n.header.forEach(function(t){var e,i;!t.content||"selectFilter"!==t.content&&"comboFilter"!==t.content||(e=n.header.some(function(t){return null===(t=t.filterConfig)||void 0===t?void 0:t.multiselection}),t=null===(t=r._activeFilters)||void 0===t?void 0:t[n.id],o&&!e&&t?n.$uniqueData=[t.match]:o&&(!o||e)||(e=m.getUnique(r._filterData,n.id,e),i=m.getEditorOptions(n),"combobox"!==n.editorType&&"select"!==n.editorType&&"multiselect"!==n.editorType||!i||(e=e.map(function(e){var t=i.find(function(t){return"string"==typeof t?e===t:e===t.id});return t&&"string"!=typeof t?t.value:e})),e="string"!==n.type?Array.from(new Set(e.map(function(t){return m.toFormat(t,n.type,n.format)}))):e,n.$uniqueData=e))})})},P.prototype._checkSelectFilterValue=function(){var t,e=null===(t=this.content)||void 0===t?void 0:t.selectFilter;if(e)for(var i in e.value){var n=this.getColumn(i),o=e.value[i];n.hidden||!o||n.$uniqueData.includes(o)||e.element[i].clear()}},P.prototype._clearFilterValue=function(i){var n=this;void 0===i&&(i=!1),["selectFilter","inputFilter"].map(function(t){var e;return null===(e=n.content)||void 0===e?void 0:e[t]}).filter(function(t){return t}).forEach(function(t){for(var e in t.value)!t.value[e]||!i&&n.getColumn(e).hidden||t.element[e].clear(!0)})},P.prototype._adjustColumns=function(){var t,r,e,i=this;"boolean"==typeof this.config.adjust||"data"===this.config.adjust||"header"===this.config.adjust||"footer"===this.config.adjust?(e=this.config.columns.filter(function(t){return!t.hidden})).length&&(t=this.config.data&&this.config.data.length?this.config.data:this.data.map(function(t){return t}),r=this._adjustColumnsWidth({rows:t,cols:e,totalCols:e}),this.config.$totalWidth=e.reduce(function(t,e){e.$fixed=!0;var i=e.maxWidth,n=e.minWidth,o=r[e.id];return e.$width=o,i&&i<o&&(e.$width=i),n&&e.$width<n&&(e.$width=n),t+e.$width},0)):(e=this.config.columns.filter(function(t){return!t.hidden&&t.adjust})).length&&e.forEach(function(t){i.adjustColumnWidth(t.id,t.adjust)})},P.prototype._prepareData=function(t){var e=this;return this.config.autoHeight&&(this.config.autoHeight=!1),this._adjustColumns(),t.map(function(t){return t.$height=t.height||e.config.rowHeight,t})},P.prototype._adjustColumnsWidth=function(t){var e=t.rows,i=t.cols,t=t.adjust,t=void 0===t?this.config.adjust:t,n={};if("header"===t||!0===t){var o=i.filter(function(t){return t.header});if(u=m.getMaxColsWidth(this._prepareColumnData(o,"header"),o,{font:"bold 14.4px Arial"},"header"))for(var r=0,s=Object.entries(u);r<s.length;r++)var a=s[r],l=a[0],c=a[1],n=Object.assign(n,((a={})[l]=+c+(y.isSortable(this.config,this.getColumn(l))?36:16),a))}if("footer"===t||!0===t){var u,o=i.filter(function(t){return t.footer});if(u=m.getMaxColsWidth(this._prepareColumnData(o,"footer"),o,{font:"bold 14.4px Arial"},"footer"))for(var d=0,h=Object.entries(u);d<h.length;d++){var f=h[d],l=f[0],c=f[1];(n[l]&&n[l]<+c+16||!n[l])&&(n=Object.assign(n,((f={})[l]=+c+16,f)))}}if(("data"===t||!0===t)&&(u=m.getMaxColsWidth(e,i,{font:"normal 14.4px Arial"},"data")))for(var p=0,g=Object.entries(u);p<g.length;p++){var v=g[p],l=v[0],c=v[1];(n[l]&&n[l]<+c+16||!n[l])&&(n=Object.assign(n,((v={})[l]=+c+16,v)))}return n},P.prototype._prepareColumnData=function(t,e){for(var i,n,o=[],r=0;r<t.length;r++){for(var s=[],a=0;a<(null===(i=t[r])||void 0===i?void 0:i[e].length);a++){var l={};null!==(i=null===(i=t[r])||void 0===i?void 0:i[e][a])&&void 0!==i&&i.text?(l[t[r].id]=(null===(n=null===(n=t[r])||void 0===n?void 0:n[e][a])||void 0===n?void 0:n.text)||"",s.push(l)):null!==(n=null===(n=t[r])||void 0===n?void 0:n[e][a])&&void 0!==n&&n.content&&(l[t[r].id]=this.content[null===(n=null===(n=t[r])||void 0===n?void 0:n[e][a])||void 0===n?void 0:n.content].toHtml(this.getColumn(t[r].id),this.config)||"",s.push(l))}for(var c=0;c<s.length;c++)for(var u=0,d=Object.entries(s[c]);u<d.length;u++){var h=d[u],f=h[0],p=h[1];o[c]=v({},o[c])||{},o[c]=Object.assign(o[c],((h={})[f]=p,h))}}return o},P.prototype._dragStart=function(t){if(this.config.dragMode&&("row"===this.config.dragItem||"both"===this.config.dragItem)&&!this.config.$editable){var e=this.getColumn(t.target.getAttribute("data-dhx-col-id"));if(!1!==(null==e?void 0:e.draggable)){e=c.locateNode(t,"data-dhx-id"),e=e&&e.getAttribute("data-dhx-id");return t.targetTouches&&(this._touch.start=!0),h.dragManager.onMouseDown(t,[e],[this._getRowGhost([e])])}}},P.prototype._getRowGhost=function(t){var e=this._container||c.toNode(this._uid),t=t.map(function(t){return e.querySelector('.dhx_grid-row[data-dhx-id="'+t+'"]')}),i=document.createElement("div");return t.forEach(function(t){return t&&i.appendChild(t.cloneNode(!0))}),i},P.prototype._initHooks=function(){var i=this;return{didMount:function(){var t,e;i._canDataParse(!0)&&(i._container||(e=i.getRootView().node.parent.el,t=x.getElementSizes(e),e=null===(e=i.scrollView)||void 0===e?void 0:e.config.enable,x.applyAutoWidth(i.config,t,!0,!1,e)),i.data.parse(i.config.data))}}},P.prototype._canDataParse=function(t){var e;return void 0===t&&(t=!1),!!(null!==(e=this.config.data)&&void 0!==e&&e.length&&this.config.data instanceof Array&&this.config.columns)&&(this.config.autoWidth&&this.config.autoHeight?t:!t)},P.prototype._init=function(){this.events=new a.EventSystem(this),this._events=new a.EventSystem(this),this._attachDataCollection(),this.export=new f.Exporter("grid",this.version,this),this._setEventHandlers()},P.prototype._attachDataCollection=function(){var e=this;if(this.config.data instanceof h.DataCollection)return this.data=this.config.data,this.data.config.collapsed=this.config.collapsed,void(this.config.data=this.data.serialize());this._createCollection(function(t){return t.spans&&(e.config.spans=t.spans,t=t.data),t})},P.prototype._setMarks=function(o,r){for(var t=this.data.map(function(t){return{id:t.id,data:t[o.id],row:t}}),s=this.data.map(function(t){return t[o.id]}),a=this,e=0,i=t;e<i.length;e++)!function(t){var e,i,n=r(t.data,s,t.row,o);n&&(o.$cellCss=o.$cellCss||{},e=(o.$cellCss[t.id]||"").split(" "),n.split(" ").map(function(t){e.includes(t)||e.push(t)}),i=e.join(" "),n=a.getSpan(t.id,o.id),o.$cellCss[t.id]=i,n&&(n.rowspan||n.colspan&&n.column===o.id)&&n.$markCss!==i&&(n.$markCss=i))}(i[e])},P.prototype._checkMarks=function(){var e=this;this.config.columns.map(function(t){var o=t.mark;o&&("function"==typeof o?e._setMarks(t,o):e._setMarks(t,function(t,e){var i=[];e.forEach(function(t){null!=t&&""!==t&&i.push(parseFloat(t))});var n=p.getMinArrayNumber(i),e=p.getMaxArrayNumber(i);return o.max&&e===parseFloat(t)?o.max:!(!o.min||n!==parseFloat(t))&&o.min}))})},P.prototype._removeMarks=function(){var t;this.config.columns.forEach(function(t){t.mark&&(t.$cellCss={})}),null!==(t=this.config.spans)&&void 0!==t&&t.forEach(function(t){t.$markCss&&delete t.$markCss})},P.prototype._detectColsTypes=function(){this.config.columns.forEach(function(t){return t.type?t:t.format?(t.type="number",t):void(t.type||(t.type="string"))})},P.prototype._destroyContent=function(){for(var t in this.content)"comboFilter"===t&&this.content[t].destroy()},P.prototype._render=function(){this.paint()},P.prototype._initHotKey=function(t){void 0===t&&(t=!1);var e=k.getKeysHandlers(this);for(i in e)this.keyManager.exist(i)||this.keyManager.addHotKey(i,e[i]);if(!t)for(var i in this.config.hotkeys)this.keyManager.addHotKey(i,this.config.hotkeys[i])},P.prototype._normalizeConfig=function(e){return Object.keys(e).forEach(function(t){t.startsWith("$")&&delete e[t]}),e},P.prototype._normalizeSpans=function(){var t,e=this;this.config.spans=null===(t=this.config.spans)||void 0===t?void 0:t.map(function(t){return O.normalizeSpan(t,e.config)})},P.prototype._autoScroll=function(n){var t,o,r,s,a,l,e,i,c,u,d=null!==(t=this.scrollView)&&void 0!==t&&t.config.enable?null===(i=this.getRootNode())||void 0===i?void 0:i.querySelector(".scroll-view"):null===(e=this.getRootNode())||void 0===e?void 0:e.querySelector(".dhx_grid-body");d&&(o=null,i=d.getBoundingClientRect(),r=i.top,s=i.bottom,a=i.left,l=i.right,e=i.height,i=i.width,c=function(t){"up"===t||"down"===t?d.scrollBy(0,"up"===t?-40:40):d.scrollBy("left"===t?-40:40,0),o=setTimeout(function(){c(t)},100)},u=function(t){var e=t.clientX,i=t.clientY;switch(n){case"horizontal":l-30<e&&e<l&&r<i&&i<s?o||c("right"):a<e&&e<a+30&&r<i&&i<s?o||c("left"):o&&(clearTimeout(o),o=null);break;case"vertical":s-30<i&&i<s&&a<e&&e<l?o||c("down"):r<i&&i<r+30&&a<e&&e<l?o||c("up"):o&&(clearTimeout(o),o=null)}},(i<d.scrollWidth||e<d.scrollHeight)&&(document.addEventListener("pointermove",u),document.addEventListener("pointerup",function(){document.removeEventListener("pointermove",u),o&&clearTimeout(o)},{once:!0})))},P);function P(t,e){var a=r.call(this,t,e)||this;a._touch={duration:350,dblDuration:300,timer:null,start:!1,timeStamp:null},a._destructed=!1,a.version="8.2.2",a.config=p.extend({rowHeight:40,headerRowHeight:40,footerRowHeight:40,keyNavigation:!0,sortable:!0,columns:[],data:[],tooltip:!0,rootParent:"string"==typeof t&&t||a._uid,headerSort:!0},a._normalizeConfig(e)),a.content=C.getContent(),a._scroll={top:0,left:0},a.config.autoWidth=a.config.autoWidth||a.config.fitToContainer,a.config.adjust=a.config.adjust||a.config.columnsAutoWidth,a.config.editable=a.config.editable||a.config.editing,a.config.leftSplit=a.config.leftSplit||a.config.splitAt,a.config.sortable&&a.config.headerSort||(a.config.sortable=!1),a.config.columns.forEach(function(t){t.format=t.format||t.dateFormat});function n(e,i,t){var n,o,r,s;e&&i&&y.isTooltip(a.config,i)&&(s=void 0,"combobox"===i.editorType||"select"===i.editorType?s=(n=m.getEditorOptions(i,e).find(function(t){return(t instanceof Object?t.id.toString():t)===(null===(t=e[i.id])||void 0===t?void 0:t.toString())}))instanceof Object?n.value:n:"multiselect"!==i.editorType||null!=(o=null===(n=e[i.id])||void 0===n?void 0:n.toString().split(", "))&&o.length&&(s=m.getEditorOptions(i,e).filter(function(t){return o.includes(t instanceof Object?t.id.toString():t)}).map(function(t){return t instanceof Object?t.value:t}).join(", ")),r=m.toFormat(s||e[i.id],i.type,i.format),s=function(){return!!r||"boolean"==typeof r},i.tooltipTemplate?r=i.tooltipTemplate(r,e,i)||null:s()&&i.template&&(r=i.template(r,e,i)),s()&&y.showTooltip({value:r,node:t,htmlEnable:y.isHtmlEnable(a.config,i)}))}function i(t,e){void 0===e&&(e="header");var i,n=t.target,o=n.getAttribute("data-dhx-text-id"),r=a.getColumn(n.getAttribute("data-dhx-id"));o&&r&&(t=null===(t=r[e])||void 0===t?void 0:t.find(function(t){return t.id===o}),y.isContentTooltip(a.config,r,t,e)&&(i=(null==t?void 0:t.content)&&["avg","sum","max","min","count"].includes(t.content)?null===(i=a.content[t.content])||void 0===i?void 0:i.toHtml(r,a.config):null==t?void 0:t.text,"function"==typeof(null==t?void 0:t.tooltipTemplate)&&(i=t.tooltipTemplate(i,t,r)),null!=i&&i.toString().length&&y.showTooltip({value:i,node:n,htmlEnable:y.isHtmlEnable(a.config,r)})))}return a._htmlEvents={onclick:c.eventHandler(function(t){return c.locate(t)},{"dhx_grid-header-cell--sortable":function(t,e){var i,n=t.target.getAttribute("dhx_resized"),o=a.getColumn(e);o&&y.isSortable(a.config,o)&&!n&&a.events.fire(w.GridEvents.beforeSort,[o,a._sortDir?"asc":"desc"])&&(t=(i=null===(t=c.locateNodeByClassName(t,"dhx_grid-header-cell"))||void 0===t?void 0:t.querySelector(".dhx_grid-header-cell-text_content").innerHTML)?o.header.find(function(t){return t.text===i}):null,o="asc"===a._sortDir&&a._sortBy===e?"desc":"asc",a._sort(e,o,null==t?void 0:t.sortAs))},"dhx_grid-expand-cell":function(t,e){t.target.classList.contains("dhx_grid-expand-cell-icon")&&a.events.fire(w.GridEvents.expand,[e])},"dhx_span-expand-cell":function(t,e){t.target.classList.contains("dhx_span-expand-cell-icon")&&a.events.fire(w.GridEvents.expand,[e])}}),onscroll:function(t){a.events.fire(w.GridEvents.scroll,[{y:t.target.scrollTop,x:t.target.scrollLeft}])},onmouseover:{".dhx_grid-cell.dhx_boolean-cell .dhx_checkbox.dhx_cell-editor__checkbox":function(t){var e=t.composedPath(),i=a.data.getItem(e[2].getAttribute("data-dhx-id")),e=a.getColumn(e[1].getAttribute("data-dhx-col-id"));n(i,e,t.target)},".dhx_grid-cell:not(.dhx_boolean-cell)":function(t){var e=a.data.getItem(t.composedPath()[1].getAttribute("data-dhx-id")),i=a.getColumn(t.target.getAttribute("data-dhx-col-id"));n(e,i,t.target)},".dhx_grid-cell:not(.dhx_tree-cell) .dhx_grid-cell__content, .dhx_tree-cell :not(.dhx_grid-cell__content)":function(t){var e=t.composedPath(),i=a.data.getItem(e[2].getAttribute("data-dhx-id")),e=a.getColumn(e[1].getAttribute("data-dhx-col-id"));n(i,e,t.target)},".dhx_grid-cell.dhx_tree-cell .dhx_grid-cell__content":function(t){var e=t.composedPath(),i=a.data.getItem(e[3].getAttribute("data-dhx-id")),t=a.getColumn(e[2].getAttribute("data-dhx-col-id"));n(i,t,e[2])},".dhx_span-cell:not(.dhx_grid-header-cell)":function(t){var e=t.target,i=a.data.getItem(e.getAttribute("data-dhx-id")),n=a.getColumn(e.getAttribute("data-dhx-col-id")),o=a.getSpan(i.id,n.id);i&&o&&y.isTooltip(a.config,o)&&(t=o.text||m.toFormat(i[n.id],n.type,n.format),o.tooltipTemplate?t=o.tooltipTemplate(t,o):n.template&&(t=n.template(t,i,n)),t&&y.showTooltip({value:t,node:e,htmlEnable:!0}))},".dhx_grid-header-cell":function(t){return i(t,"header")},".dhx_grid-footer-cell":function(t){return i(t,"footer")}}},(a.config.dragMode||a.config.dragItem)&&(h.dragManager.setItem(a._uid,a),a.config.dragItem||(a.config.dragItem="row"),a.config.dragMode||(a.config.dragMode="both")),a._init(),a.config.columns&&a._parseColumns(!0),a._canDataParse()&&a.data.parse(a.config.data),a.selection=new b.Selection(a,{disabled:!a.config.selection},a.events,a._uid),a.mount(t,a._createView()),l.awaitRedraw().then(function(){a.config.keyNavigation&&(a.keyManager=new u.KeyManager(function(t,e){return!(e!==a._uid||!a.events.fire(w.GridEvents.beforeKeyDown,[t]))&&(a.events.fire(w.GridEvents.afterKeyDown,[t]),!0)}),a._initHotKey(),I.focusManager.setFocusId(a._uid))}),e.autoEmptyRow&&0===a.data.getLength()&&(a._addEmptyRow(),a.paint()),a}e.Grid=o},function(t,e,i){"use strict";function n(t){var e=document.activeElement;e.classList.contains("dhx_alert__apply-button")&&"Enter"===t.key||e.classList.contains("dhx_alert__confirm-reject")||e.classList.contains("dhx_alert__confirm-aply")||t.preventDefault()}Object.defineProperty(e,"__esModule",{value:!0}),e.blockScreen=function(t){var e=document.createElement("div");return e.className="dhx_alert__overlay "+(t||""),document.body.appendChild(e),document.addEventListener("keydown",n),function(){document.body.removeChild(e),document.removeEventListener("keydown",n)}}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(3),d=i(43),h=750,f=200;function u(t,e,i,n,o,r){var s,a,l;switch(void 0===o&&(o=8),void 0===r&&(r=0),1<r&&(e=d.Position.center),e){case d.Position.center:return(a=t.left+window.pageXOffset+(t.width-i)/2)+o<window.pageXOffset&&(a=t.left+window.pageXOffset),{left:a,top:l=t.top+window.pageYOffset+(t.height-n)/2,pos:s=d.RealPosition.center};case d.Position.right:return(s=d.RealPosition.right,(a=t.right+window.pageXOffset+o)+i>window.innerWidth+window.pageXOffset)?u(t,d.Position.left,i,n,o,++r):{left:a,top:l=window.pageYOffset+t.top+(t.height-n)/2,pos:s};case d.Position.left:return(s=d.RealPosition.left,(a=window.pageXOffset+t.left-i-o)<0)?u(t,d.Position.right,i,n,o,++r):{left:a,top:l=window.pageYOffset+t.top+(t.height-n)/2,pos:s};case d.Position.top:return s=d.RealPosition.top,(a=window.pageXOffset+t.left+(t.width-i)/2)+i>window.innerWidth+window.pageXOffset?a=window.innerWidth+window.pageXOffset-i:a<0&&(a=0),(l=window.pageYOffset+t.top-n-o)-n<0?u(t,d.Position.bottom,i,n,o,++r):{left:a,top:l,pos:s};case d.Position.bottom:default:return(a=window.pageXOffset+t.left+(t.width-i)/2)+i>window.innerWidth+window.pageXOffset?a=window.innerWidth+window.pageXOffset-i:a<0&&(a=0),s=d.RealPosition.bottom,(l=window.pageYOffset+t.bottom+o)+n>window.innerHeight+window.pageYOffset?u(t,d.Position.top,i,n,o,++r):{left:a,top:l,pos:s}}}e.findPosition=u;var p=document.createElement("div"),g=document.createElement("span");g.className="dhx_tooltip__text",p.appendChild(g),p.setAttribute("role","tooltip"),p.style.position="absolute";var v,_=null,m=!1,y=null,b=null;function w(t){return t&&(t.classList.contains("dhx_popup--window")&&t.classList.contains("dhx_popup--window_active")||t.classList.contains("dhx_popup--window_modal")||t.classList.contains("dhx_popup"))?1e7:null!=t&&t.classList.contains("dhx_popup--window")?9999999:t&&t.offsetParent?w(t.offsetParent):null}function x(t,e,i,n,o,r,s){void 0===o&&(o=!1),void 0===r&&(r=8);var a=t.getBoundingClientRect();s?g.innerHTML=e:g.textContent=e,document.body.appendChild(p),p.className="dhx_widget dhx_tooltip"+(o?" dhx_tooltip--forced":"");var e=p.getBoundingClientRect(),r=u(a,i,e.width,e.height,r),l=r.left,c=r.top,r=r.pos,t=w(t);switch(t&&(p.style.zIndex=t.toString()),r){case d.RealPosition.bottom:case d.RealPosition.top:case d.RealPosition.left:case d.RealPosition.right:case d.RealPosition.center:p.style.left=l+"px",p.style.top=c+"px"}p.className+=" dhx_tooltip--"+r+" "+(n||""),m=!0,o||setTimeout(function(){p.className+=" dhx_tooltip--animate"})}function r(e,t,i){var n=i.force,o=i.showDelay,r=i.hideDelay,s=i.position,a=i.css,l=i.htmlEnable,c=i.margin;n||(b=setTimeout(function(){x(e,t,s||d.Position.bottom,a,!1,c,l)},o||h));var u=function(){var t;m&&(t=r,_&&(y=setTimeout(function(){document.body.removeChild(p),m=!1,y=null},t||f))),clearTimeout(b),e.removeEventListener("mouseleave",u),e.removeEventListener("blur",u),document.removeEventListener("mousedown",u),v=_=null};n&&x(e,t,s,a,n,c,l),e.addEventListener("mouseleave",u),e.addEventListener("blur",u),document.addEventListener("mousedown",u),v=u}function s(t,e){var i=o.toNode(e.node);i!==_&&(v&&(v(),v=null),_=i,y?(clearTimeout(y),y=null,r(i,t,n(n({},e),{force:!0}))):r(i,t,e))}function a(t){t=o.locateNode(t,"dhx_tooltip_text");t&&s(t.getAttribute("dhx_tooltip_text"),{position:t.getAttribute("dhx_tooltip_position")||d.Position.bottom,node:t})}e.getZIndex=w,e.tooltip=s,e.enableTooltip=function(){document.addEventListener("mousemove",a)},e.disableTooltip=function(){document.removeEventListener("mousemove",a)}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),d=this&&this.__assign||function(){return(d=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,h=i(1),f=i(0),s=i(5),l=i(47),c=i(138),a=i(2),u=i(42),p=i(46),o=(r=s.View,o(g,r),g.prototype.paint=function(){var t;this.isVisible()&&((t=this.getRootView())?t.redraw():null!==(t=this._parent)&&void 0!==t&&t.paint())},g.prototype.isVisible=function(){if(!this._parent)return!(!this._container||!this._container.tagName)||Boolean(this.getRootNode());var t=null===(t=this._parent.config)||void 0===t?void 0:t.activeView;return(!t||t===this.id)&&(!this.config.hidden&&(!this._parent||this._parent.isVisible()))},g.prototype.hide=function(){this.events.fire(l.LayoutEvents.beforeHide,[this.id])&&(this.config.hidden=!0,this._resetCellsSize(),this._parent&&this._parent.paint&&this._parent.paint(),this.events.fire(l.LayoutEvents.afterHide,[this.id]))},g.prototype.show=function(){var t=this;this.events.fire(l.LayoutEvents.beforeShow,[this.id])&&(this._parent&&this._parent.config&&void 0!==this._parent.config.activeView?this._parent.config.activeView=this.id:this.config.hidden=!1,this._parent&&!this._parent.isVisible()&&this._parent.show(),this.paint(),this._ui instanceof u.Grid&&this._ui.config.keyNavigation&&f.awaitRedraw().then(function(){t._ui.setColumns(t._ui.config.columns),t.paint()}),this.events.fire(l.LayoutEvents.afterShow,[this.id]))},g.prototype.expand=function(){this.events.fire(l.LayoutEvents.beforeExpand,[this.id])&&(this.config.collapsed=!1,this._checkNextSize()||this._checkNextSize(this._getAnyFlexCell()),this.events.fire(l.LayoutEvents.afterExpand,[this.id]),this.paint())},g.prototype.collapse=function(){this.events.fire(l.LayoutEvents.beforeCollapse,[this.id])&&(this.config.collapsed=!0,this._checkNextSize()||this._checkNextSize(this._getAnyFlexCell()),this.events.fire(l.LayoutEvents.afterCollapse,[this.id]),this.paint())},g.prototype.toggle=function(){this.config.collapsed?this.expand():this.collapse()},g.prototype._checkNextSize=function(t){var e=null!=t?t:this._getNextCell();return!!e&&(this._isXDirection()&&e.config.$autoWidth&&e.config.width?!(e.config.width=void 0):!this._isXDirection()&&e.config.$autoHeight&&e.config.height?!(e.config.height=void 0):!t&&e._checkNextSize())},g.prototype.getParent=function(){return this._parent},g.prototype.destructor=function(){var t;this.events&&this.events.clear(),window.removeEventListener("resize",this._afterWindowResized),"function"==typeof(null===(t=this.getWidget())||void 0===t?void 0:t.destructor)&&this.getWidget().destructor(),this.config=this.events=this.id=this._parent=this._handlers=this._uid=this._disabled=this._resizerHandlers=null,this.unmount()},g.prototype.getWidget=function(){return this._ui},g.prototype.getCellView=function(){return this._parent&&this._parent.getRefs(this._uid)},g.prototype.attach=function(t,e){var i=this;return this.config.html=null,"object"==typeof t?this._ui=t:"string"==typeof t?this._ui=new window.dhx[t](null,e):"function"==typeof t&&(t.prototype instanceof s.View?this._ui=new t(null,e):this._ui={getRootView:function(){return t(e)}}),this.paint(),this._ui instanceof u.Grid&&this._ui.config.keyNavigation&&f.awaitRedraw().then(function(){i._ui.setColumns(i._ui.config.columns),i.paint()}),this._ui},g.prototype.attachHTML=function(t){this.config.html=t,this.paint()},g.prototype.detach=function(){this._stopProgressDefault=!1,this._ui=this.config.html=null,this.paint()},g.prototype.progressShow=function(){this.config.progressDefault&&(this._stopProgressDefault=!1),this._progress=!0,this.paint()},g.prototype.progressHide=function(){this.config.progressDefault&&(this._stopProgressDefault=!0),this._progress=!1,this.paint()},g.prototype.isVisibleProgress=function(){return this._progress},g.prototype.toVDOM=function(t){if(null===this.config&&(this.config={}),!this.config.hidden){var e,i=this.config.$fieldset,n=this._calculateStyle(),o=h.isDefined(this.config.padding)?isNaN(Number(this.config.padding))?{padding:this.config.padding}:{padding:this.config.padding+"px"}:"",r=this.config.full||this.config.html?n:d(d({},n),o);this.config.html||(e=this._ui?((u=this._ui.getRootView()).render&&(u=f.inject(u)),[u]):t||null);var s=this.config.resizable&&!this._isLastCell()&&this._getNextCell()&&!this.config.collapsed?f.el(".dhx_layout-resizer."+(this._isXDirection()?"dhx_layout-resizer--x":"dhx_layout-resizer--y"),d(d({},this._resizerHandlers),{_ref:"resizer_"+this._uid,tabindex:0}),[f.el("span.dhx_layout-resizer__icon",{class:"dxi "+(this._isXDirection()?"dxi-dots-vertical":"dxi-dots-horizontal")})]):null,a={};if(this.config.on)for(var l in this.config.on)a["on"+l]=this.config.on[l];var c="",u=this.config.cols||this.config.rows;if(this.config.type&&u)switch(this.config.type){case"line":c=" dhx_layout-line";break;case"wide":c=" dhx_layout-wide";break;case"space":c=" dhx_layout-space"}o=f.el("div",d(d(((t={_key:this._uid,_ref:this._uid})["aria-label"]=this.config.id?"tab-content-"+this.config.id:null,t["data-cell-id"]=null!==(u=this.config.id)&&void 0!==u?u:null,t),a),{class:this._getCss(!1)+(this.config.css?" "+this.config.css:"")+(this.config.collapsed?" dhx_layout-cell--collapsed":"")+(this.config.resizable?" dhx_layout-cell--resizable":"")+(this.config.type&&!this.config.full?c:""),style:i?n:r}),[i?f.el("fieldset.dhx_form-fieldset",{class:this.config.$disabled?" dhx_form-fieldset--disabled":"",style:o,disabled:this.config.$disabled},[f.el("legend.dhx_form-fieldset-legend",{class:"dhx_form-fieldset-legend--"+(this.config.labelAlignment||"left")},this.config.label),f.el(".dhx_layout-cell-content",{class:this._getCss(!1)},[e])]):this.config.full?[f.el("div",{tabindex:this.config.collapsable?"0":"-1",role:this.config.collapsable?"button":null,"aria-label":this.config.collapsable?"click to "+(this.config.collapsed?"expand":"collapse"):null,class:"dhx_layout-cell-header"+(this._isXDirection()?" dhx_layout-cell-header--col":" dhx_layout-cell-header--row")+(this.config.collapsable?" dhx_layout-cell-header--collapseble":"")+(this.config.collapsed?" dhx_layout-cell-header--collapsed":"")+(((this.getParent()||{}).config||{}).isAccordion?" dhx_layout-cell-header--accordion":""),style:{height:this.config.headerHeight},onclick:this._handlers.toggle,onkeydown:this._handlers.enterCollapse},[this.config.headerIcon&&f.el("span.dhx_layout-cell-header__icon",{class:this.config.headerIcon}),this.config.headerImage&&f.el(".dhx_layout-cell-header__image-wrapper",[f.el("img",{src:this.config.headerImage,class:"dhx_layout-cell-header__image"})]),this.config.header&&f.el("h3.dhx_layout-cell-header__title",this.config.header),this.config.collapsable?f.el("div.dhx_layout-cell-header__collapse-icon",{class:this._getCollapseIcon()}):f.el("div.dhx_layout-cell-header__collapse-icon",{class:"dxi dxi-empty"})]),this.config.collapsed?null:f.el("div",{style:d(d({},o),{height:"calc(100% - "+(this.config.headerHeight||37)+"px)"}),class:this._getCss(!0)+" dhx_layout-cell-content"+(this.config.type?c:"")},this.config.html?[f.el("div",{".innerHTML":this.config.html,class:"dhx_layout-cell dhx_layout-cell-inner_html"})]:e)]:!this.config.html||this.config.rows&&this.config.cols&&this.config.views?e:[this.config.collapsed?null:f.el(".dhx_layout-cell-content",{style:o},[f.el(".dhx_layout-cell-inner_html",{".innerHTML":this.config.html})])],this._checkProgress()&&this._getProgressBar()]);return s?[o,s]:o}},g.prototype._getProgressBar=function(){return f.el("span",{class:"dhx_progress-bar"},[f.sv("svg",{viewBox:"25 25 50 50",class:"dhx_spinner"},[f.sv("circle",{cx:"50",cy:"50",r:"20",class:"path"})])])},g.prototype._getCss=function(t){return"dhx_layout-cell"},g.prototype._initHandlers=function(){var r=this;window.addEventListener("resize",this._afterWindowResized);function n(t,e){var i,n,o;void 0===e&&(e={x:0,y:0}),s.isActive&&(o=s.xLayout,i=t.targetTouches?t.targetTouches[0].clientX:t.clientX+e.x,n=t.targetTouches?t.targetTouches[0].clientY:t.clientY+e.y,t=o?"width":"height",(e=o?i-s.range.min+window.pageXOffset:n-s.range.min+window.pageYOffset)<0?e=s.resizerLength/2:e>s.size&&(e=s.size-s.resizerLength),n=(i=function(t){return parseInt(null===(t=r.config[t])||void 0===t?void 0:t.toString())})(o?"maxWidth":"maxHeight"),o=i(o?"minWidth":"minHeight"),(!n||e<n)&&(!o||o<e)&&(r.config[t]=e-s.resizerLength/2+"px",s.nextCell.config[t]=s.size-e-s.resizerLength/2+"px",s.nextCell._getAnyFlexCell()&&(s.nextCell._getAnyFlexCell().config[t]=void 0),r.paint(),r.events.fire(l.LayoutEvents.resize,[r.id])))}function i(t){var e,i,n;t.targetTouches&&t.preventDefault(),3!==t.which&&(s.isActive&&a(t),r.events.fire(l.LayoutEvents.beforeResizeStart,[r.id])&&(document.body.classList.add("dhx_no-select--resize"),i=r.getCellView(),n=(e=r._getNextCell()).getCellView(),t=r._getResizerView(),i=i.el.getBoundingClientRect(),t=t.el.getBoundingClientRect(),n=n.el.getBoundingClientRect(),s.xLayout=r._isXDirection(),s.left=i.left+window.pageXOffset,s.top=i.top+window.pageYOffset,s.collapsedSize=r._getCollapsedSize(r,e),s.margin=c.getMarginSize(r.getParent().config),s.range=c.getBlockRange(i,n,s.xLayout),s.size=s.range.max-s.range.min-s.margin-s.collapsedSize,s.isActive=!0,s.nextCell=e,s.resizerLength=s.xLayout?t.width:t.height))}var s={left:null,top:null,isActive:!(this._handlers={enterCollapse:function(t){13===t.keyCode&&r._handlers.toggle()},collapse:function(){r.config.collapsable&&r.collapse()},expand:function(){r.config.collapsable&&r.expand()},toggle:function(){r.config.collapsable&&r.toggle()}}),range:null,xLayout:null,nextCell:null,size:null,resizerLength:null,margin:null,collapsedSize:null},o={},a=function(t){if(s.isActive=!1,document.body.classList.remove("dhx_no-select--resize"),t.targetTouches)for(var e in document.removeEventListener("touchend",a),document.removeEventListener("touchmove",n),o)o[e].node.contentWindow.document.removeEventListener("touchend",a),o[e].node.contentWindow.document.removeEventListener("touchmove",o[e].listener);else for(var e in document.removeEventListener("mouseup",a),document.removeEventListener("mousemove",n),o)o[e].node.contentWindow.document.removeEventListener("mouseup",a),o[e].node.contentWindow.document.removeEventListener("mousemove",o[e].listener);r.events.fire(l.LayoutEvents.afterResizeEnd,[r.id])};this._resizerHandlers={onmousedown:function(t){i(t),document.addEventListener("mouseup",a),document.addEventListener("mousemove",n);t=document.querySelectorAll("iframe");if(t.length)for(var e in t.forEach(function(t,e){var i={x:t.getBoundingClientRect().x,y:t.getBoundingClientRect().y};o[e]={node:t,listener:function(t){return n(t,i)}}}),o)o[e].node.contentWindow.document.addEventListener("mouseup",a),o[e].node.contentWindow.document.addEventListener("mousemove",o[e].listener)},ontouchstart:function(t){i(t),document.addEventListener("touchend",a),document.addEventListener("touchmove",n);t=document.querySelectorAll("iframe");if(t.length)for(var e in t.forEach(function(t,e){var i={x:t.getBoundingClientRect().x,y:t.getBoundingClientRect().y};o[e]={node:t,listener:function(t){return n(t,i)}}}),o)o[e].node.contentWindow.document.addEventListener("touchend",a),o[e].node.contentWindow.document.addEventListener("touchmove",o[e].listener)},ondragstart:function(t){return t.preventDefault()}}},g.prototype._getCollapsedSize=function(t,e){var i=0,n=this._parent,t=n._cells.indexOf(t),o=n._cells.indexOf(e);if(o-t==1)return i;for(var r=t+1;r<o;r++)n._cells[r].config.collapsed&&(this._isXDirection()?i+=45:i+=Number(n._cells[r].config.headerHeight)||37);return i},g.prototype._getCollapseIcon=function(){return this._isXDirection()&&this.config.collapsed?"dxi dxi-chevron-right":this._isXDirection()&&!this.config.collapsed?"dxi dxi-chevron-left":!this._isXDirection()&&this.config.collapsed?"dxi dxi-chevron-up":this._isXDirection()||this.config.collapsed?void 0:"dxi dxi-chevron-down"},g.prototype._isLastCell=function(){var t=this._parent;return t&&t._cells.indexOf(this)===t._cells.length-1},g.prototype._getNextCell=function(){var t=this._parent,e=t._cells.indexOf(this),e=!this._isLastCell()&&t._cells[e+1];return!!e&&(e.config.hidden||e.config.collapsed?e._getNextCell():e)},g.prototype._getAnyFlexCell=function(e){var i=this;void 0===e&&(e=!1);var t=this._parent,n=this._isXDirection()?"$autoWidth":"$autoHeight",t=null===(t=null==t?void 0:t._cells)||void 0===t?void 0:t.filter(function(t){return!0===t.config[n]&&(!!e||t.id!==i.id)});return!(null==t||!t.length)&&t[t.length-1]},g.prototype._getResizerView=function(){return this._parent.getRefs("resizer_"+this._uid)},g.prototype._isXDirection=function(){return this._parent&&this._parent._xLayout},g.prototype._checkProgress=function(){return this instanceof p.Layout?this.isVisibleProgress():(this._calculateProgressState(),(this._progress||this._checkAutoProgress())&&!this.config.collapsed&&!this.config.hidden&&!this._parent.isVisibleProgress())},g.prototype._checkAutoProgress=function(){if(this._stopProgressDefault)return!1;var t=this.config,e=t.html;return t.progressDefault&&!this._ui&&!e},g.prototype._calculateProgressState=function(){var t,e;this._stopProgressDefault||(t=(e=this.config).html,!(e=e.progressDefault)||this._ui||t||(this._progress=!0),e&&(this._ui||t)&&(this._progress=!1))},g.prototype._calculateStyle=function(){var t=this.config;if(t){var e={},i=!1,n=!1;isNaN(Number(t.width))||(t.width=t.width+"px"),isNaN(Number(t.height))||(t.height=t.height+"px"),isNaN(Number(t.minWidth))||(t.minWidth=t.minWidth+"px"),isNaN(Number(t.minHeight))||(t.minHeight=t.minHeight+"px"),isNaN(Number(t.maxWidth))||(t.maxWidth=t.maxWidth+"px"),isNaN(Number(t.maxHeight))||(t.maxHeight=t.maxHeight+"px"),"content"===t.width&&(i=!0),"content"===t.height&&(n=!0);var o=t.width,r=t.height,s=t.cols,a=t.rows,l=t.minWidth,c=t.minHeight,u=t.maxWidth,d=t.maxHeight,h=t.gravity,f=t.collapsed,p=t.$fixed,g=-1===Math.sign(h)?0:h;"boolean"==typeof h&&(g=h?1:0);var v="boolean"==typeof h?!h:-1===Math.sign(h);this._isXDirection()?(p||o||void 0===h&&(l||u))&&(v=!0):(p||r||void 0===h&&(c||d))&&(v=!0);var _,h=this._checkFullSizeCell(),v=v&&!h?0:!h&&g||1,g=this._isXDirection()?"x":"y";return void 0===l||f||(e.minWidth=l),void 0===c||f||(e.minHeight=c),void 0!==u&&(e.maxWidth=u),void 0!==d&&(e.maxHeight=d),void 0===this._parent&&(g=!0),h||void 0===o||"content"===o?!0===g?e.width="100%":"x"===g&&(i?e.flex="0 0 auto":(_=this._isXDirection()?"1px":"auto",e.flex=v+" "+(s||a?"0 "+_:"1 auto"))):e.width=o,h||void 0===r||"content"===r?!0===g?e.height="100%":"y"===g&&(n?e.flex="0 0 auto":(_=this._isXDirection()?"auto":"1px",e.flex=v+" "+(s||a?"0 "+_:"1 auto"))):e.height=r,!0===g&&void 0===t.width&&void 0===t.height&&(e.flex=v+" 1 auto"),f&&(this._isXDirection()?e.width="auto":e.height="auto",e.flex="0 0 auto"),e}},g.prototype._resizedWindow=function(){var t;void 0===this._isLastFlexCell?this._isLastFlexCell=(null===(t=this._getAnyFlexCell(!0))||void 0===t?void 0:t.id)===this.id:this._isLastFlexCell||window.removeEventListener("resize",this._afterWindowResized),this._isLastFlexCell&&(t=this._isXDirection()?"width":"height",this.config[t]=void 0,this.paint())},g.prototype._resetCellsSize=function(){var e=this,t=this._parent._cells.filter(function(t){return t!==e&&!t.config.hidden&&!t.config.collapsed}),i=this._isXDirection(),n=i?"$autoWidth":"$autoHeight",o=i?"width":"height";t.forEach(function(t){t.config[n]&&(t.config[o]=void 0)})},g.prototype._checkFullSizeCell=function(){var e=this;if(!this._parent)return!1;var t=this._isXDirection()?"$autoWidth":"$autoHeight";if(!this.config[t])return!1;t=this._parent._cells.filter(function(t){return t!==e&&!t.config.hidden});return!!t.length&&t.every(function(t){return t.config.collapsed})},g);function g(t,e){var i=r.call(this,t,e)||this;return i._disabled=[],t&&t.isVisible&&(i._parent=t),i._parent&&i._parent.events?i.events=i._parent.events:i.events=new a.EventSystem(i),i.config.full=void 0===i.config.full?Boolean(i.config.header||i.config.collapsable||i.config.headerHeight||i.config.headerIcon||i.config.headerImage):i.config.full,i._afterWindowResized=i._resizedWindow.bind(i),i._initHandlers(),i.id=i.config.id||h.uid(),i._progress=!!i.config.progressDefault,i._stopProgressDefault=!1,i._isXDirection()&&!e.width&&(e.$autoWidth=!0),i._isXDirection()||e.height||(e.$autoHeight=!0),i}e.Cell=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.PopupEvents||(e.PopupEvents={})).beforeHide="beforeHide",e.beforeShow="beforeShow",e.afterHide="afterHide",e.afterShow="afterShow",e.click="click"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.SliderEvents||(e.SliderEvents={})).beforeChange="beforeChange",e.change="change",e.focus="focus",e.blur="blur",e.keydown="keydown",e.mousedown="mousedown",e.mouseup="mouseup"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={hours:"Hours",minutes:"Minutes",save:"Save"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.TimepickerEvents||(e.TimepickerEvents={})).beforeChange="beforeChange",e.change="change",e.beforeApply="beforeApply",e.afterApply="afterApply",e.beforeClose="beforeClose",e.afterClose="afterClose",e.apply="apply",e.close="close",e.save="save"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.CalendarEvents||(e.CalendarEvents={})).change="change",e.beforeChange="beforechange",e.modeChange="modeChange",e.monthSelected="monthSelected",e.yearSelected="yearSelected",e.cancelClick="cancelClick",e.dateMouseOver="dateMouseOver",e.dateHover="dateHover"},function(t,f,e){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),p=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(f,"__esModule",{value:!0});var o=e(1),g=e(0),r=e(2),v=e(3),s=e(147),a=e(5),l=e(8),c=e(11),u=e(35),d=e(12),h=e(151),_=e(50),m=e(28),y=e(77),b=e(78);f.$template=function(t){return t.icon?g.el("div.dhx_combobox-options-wrapper",[g.el("span",{class:t.icon+" dhx_combobox-options__icon"}),g.el("span",{class:"dhx_combobox-options__value"},t.value)]):t.src?g.el("div.dhx_combobox-options-wrapper",[g.el("img",{class:"dhx_combobox-options__image",alt:t.value,src:t.src}),g.el("span",{class:"dhx_combobox-options__value"},t.value)]):g.el("span",{class:"dhx_combobox-options__value"},t.value)};var w,i=(w=a.View,i(x,w),x.prototype.focus=function(){if(this.config.disabled)return!1;this.getRootView().refs.input.el.focus()},x.prototype.blur=function(){if(this.config.disabled)return!1;this.getRootView().refs.input.el.blur(),this.popup.hide()},x.prototype.enable=function(){this.config.disabled=!1,this.paint()},x.prototype.disable=function(){this.config.disabled=!0,this.paint()},x.prototype.isDisabled=function(){return this.config.disabled},x.prototype.clear=function(){this.list.selection.remove(),this._state.value="",this._filter(),this.paint()},x.prototype.getValue=function(t){var e=this.list.selection.getId();return t?o.wrapBox(e):Array.isArray(e)?e.join(","):e},x.prototype.setValue=function(t,e){return this._setValue(t,e)},x.prototype.addOption=function(t,e){var i;void 0===e&&(e=!0),t&&("string"==typeof t?i=this.data.add({value:t}):"object"==typeof t&&(i=this.data.add(t)),i=this.config.multiselection&&e?p(this.list.selection.getId(),[i]):i,this.setValue(i))},x.prototype.destructor=function(){this.popup&&this.popup.destructor(),this.events&&this.events.clear(),this.list&&this.list.destructor(),this._helper&&this._helper.destructor(),this._layout&&this._layout.destructor(),this.config=this.events=this.list=this.popup=null,this._helper=this._keyListener=this._handlers=this._state=this._uid=this._isPopupConfiqureted=null,this.unmount()},x.prototype.setState=function(t){switch(t){case"success":this._state.currentState=b.ComboState.success;break;case"error":this._state.currentState=b.ComboState.error;break;default:this._state.currentState=b.ComboState.default}this.paint()},x.prototype._setValue=function(t,e){var i=this;if(void 0===e&&(e=!1),!this._exsistId(t))return!1;this._filter(),this.list.selection.remove(null,e),this.config.multiselection?("string"==typeof t&&(t=t.split(",")),"number"==typeof t&&(t=[t]),t.forEach(function(t){i.list.selection.add(t,!1,!1,e)})):(t=o.unwrapBox(t),this.list.selection.add(t,!1,!1,e),(t=this.data.getItem(t))&&(this._state.value=this._getItemText(t))),this.paint()},x.prototype._createLayout=function(){var t=this.list=new u.List(null,{$template:f.$template,template:this.config.template,htmlEnable:this.config.htmlEnable,virtual:this.config.virtual,keyNavigation:!0,multiselection:this.config.multiselection,itemHeight:this.config.itemHeight,height:this.config.listHeight,data:this.data}),e=this._layout=new c.Layout(this.popup.getContainer(),{css:"dhx_combobox-options dhx_combobox__options",rows:[{id:"select-unselect-all",hidden:!this.config.multiselection||!this.config.selectAllButton},{id:"list",height:"content"},{id:"not-found",hidden:!0}],on:{click:{".dhx_combobox__action-select-all":this._handlers.selectAll,".dhx_combobox-options__action-create-option":this._handlers.addOption}}});e.getCell("list").attach(t),this.config.multiselection&&this.config.selectAllButton&&e.getCell("select-unselect-all").attach(y.selectAllView)},x.prototype._initHandlers=function(){var i=this;this.config.helpMessage&&(this._helper=new d.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"}),this._helper.attachHTML(this.config.helpMessage)),this._handlers={addOption:function(){return i.addOption(i._state.value)},showHelper:function(t){t.preventDefault(),t.stopPropagation(),i._helper.show(t.target,{mode:"left"===i.config.labelPosition?"bottom":"right",theme:t.target})},selectAll:function(){i._state.unselectActive?(i.list.selection.remove(),i.config.selectAllButton&&(i._layout.getCell("select-unselect-all").attach(y.selectAllView),i._state.unselectActive=!1)):(i.data.filter(),i.list.selection.add(),i.config.selectAllButton&&(i._layout.getCell("select-unselect-all").attach(y.unselectAllView),i._state.unselectActive=!0)),i._changePopupPosition(),i.paint()},onkeydown:function(t){var e;"Tab"===t.key&&i.popup.isVisible()?i._hideOptions():(i.popup.isVisible()||t.which!==s.KEY_CODES.DOWN_ARROW||i._showOptions(),i.popup.isVisible()&&(t.which===s.KEY_CODES.RIGHT_ARROW&&i.config.readOnly&&!i.config.multiselection&&(i.list.moveFocus(u.MOVE_DOWN),t.preventDefault()),t.which===s.KEY_CODES.LEFT_ARROW&&i.config.readOnly&&!i.config.multiselection&&(i.list.moveFocus(u.MOVE_UP),t.preventDefault()),t.which===s.KEY_CODES.DOWN_ARROW&&(i.list.moveFocus(u.MOVE_DOWN),t.preventDefault()),t.which===s.KEY_CODES.UP_ARROW&&(i.list.moveFocus(u.MOVE_UP),t.preventDefault()),t.which===s.KEY_CODES.ESC&&i._hideOptions(),t.which===s.KEY_CODES.ENTER&&(i.data.getLength()?(e=i.list.getFocus(),e=i.config.multiselection?p(i.list.selection.getId(),[e]):e,i.setValue(e)):i.config.newOptions&&i.addOption(i._state.value,!0),i.config.multiselection?i._updatePopup():i.data.getLength()&&i._hideOptions()))),i.events.fire(b.ComboboxEvents.keydown,[t,i.list.getFocus()])},onkeyup:function(t){i.config.multiselection&&!i.config.itemsCount&&(i._state.ignoreNext?i._state.ignoreNext=!1:t.which===s.KEY_CODES.BACKSPACE&&!i._state.value&&i.config.multiselection&&i.list.selection.getId().length&&(t=(t=i.list.selection.getId())[t.length-1],i.list.selection.remove(t),i._changePopupPosition(),i.paint()))},oninput:function(t){i.config.disabled||(t=t.target.value,i.events.fire(b.ComboboxEvents.input,[t]),i._state.value=t,i._filter(),t.length?i._state.canDelete=!1:(i._state.ignoreNext=!0,i._state.canDelete=!0),i.config.multiselection||(i.list.selection.remove(),i.paint()),i.popup.isVisible()||i._showOptions(),i._updatePopup())},oninputclick:function(t){if(!i.config.disabled){if(i.focus(),t.target.classList.contains("dhx_combobox__action-remove")){var e=null===(e=i.data.getItem(v.locate(t)))||void 0===e?void 0:e.id;return o.isId(e)?(i.list.selection.remove(e),i._changePopupPosition(),void i.paint()):void 0}if(t.target.classList.contains("dhx_combobox__action-clear-all"))return i.list.selection.getId().forEach(function(t){return i.list.selection.remove(t)}),i.config.selectAllButton&&i._state.unselectActive&&(i._layout.getCell("select-unselect-all").attach(y.selectAllView),i._state.unselectActive=!1),void i.paint();t.preventDefault(),i.popup.isVisible()?i.focus():i._showOptions()}},toggleIcon:function(){i.focus(),i.popup.isVisible()?i._hideOptions():i._showOptions()},onfocus:function(){var t;return null===(t=i.events)||void 0===t?void 0:t.fire(b.ComboboxEvents.focus,[])},onblur:function(){var t;return null===(t=i.events)||void 0===t?void 0:t.fire(b.ComboboxEvents.blur,[])}}},x.prototype._initEvents=function(){var i=this;this.data.events.on(l.DataEvents.load,function(){i.config.value&&i._setValue(i.config.value,!0)}),this.data.events.on(l.DataEvents.afterAdd,function(){i.config.multiselection?i._changePopupPosition():i._hideOptions()}),this.list.events.on(u.ListEvents.click,function(){i.config.multiselection||i._hideOptions(),i._changePopupPosition()}),this.list.selection.events.on(m.SelectionEvents.beforeSelect,function(t){t=i.config.multiselection?p(i.getValue(i.config.multiselection),[t]):t;return i.events.fire(b.ComboboxEvents.beforeChange,[t])}),this.list.selection.events.on(m.SelectionEvents.afterSelect,function(){var t=i.getValue(i.config.multiselection);i.events.fire(b.ComboboxEvents.change,[t]),i._updateSelectedItem(t)}),this.list.selection.events.on(m.SelectionEvents.beforeUnSelect,function(e){var t=i.config.multiselection?i.getValue(i.config.multiselection).filter(function(t){return t!=e}):e;return i.events.fire(b.ComboboxEvents.beforeChange,[t])}),this.list.selection.events.on(m.SelectionEvents.afterUnSelect,function(){var t,e=i.config.multiselection;i.config.readOnly&&!e||(t=i.getValue(e),i.events.fire(b.ComboboxEvents.change,[t]),e&&i._updateSelectedItem(t))}),this.popup.events.on(d.PopupEvents.beforeShow,function(){if(!i.popup.isVisible()&&!i._isPopupConfiqureted)return i._configurePopup(),!1}),this.config.readOnly&&this.popup.events.on(d.PopupEvents.afterShow,function(){var t;i._state.value?(t=i.list.selection.getId(),i.list.setFocus(t)):i.list.setFocus(i.data.getId(0)),i._keyListener.startNewListen(function(t){return i._findBest(t)})})},x.prototype._showOptions=function(){this.events.fire(b.ComboboxEvents.beforeOpen)&&(this._state.value.length&&(this._state.canDelete=!0),this._filter(),this._configurePopup()&&(this.events.fire(b.ComboboxEvents.open),this.events.fire(b.ComboboxEvents.afterOpen)))},x.prototype._configurePopup=function(){this._isPopupConfiqureted=!0;var t=this.getRootView();return!!(t&&t.refs&&t.refs.holder)&&(this.popup.isVisible()||this._updatePopup(),!0)},x.prototype._hideOptions=function(){var t=this;this.events.fire(b.ComboboxEvents.beforeClose)&&(this.config.readOnly&&this._keyListener.endListen(),this.list.setFocus(this.data.getId(0)),this.config.multiselection||this.config.readOnly||this.list.selection.contains()||(this._state.value=""),g.awaitRedraw().then(function(){return t.popup.isVisible()&&t.popup.hide()}),this.events.fire(b.ComboboxEvents.afterClose),this.events.fire(b.ComboboxEvents.close),this._filter(),this.paint())},x.prototype._filter=function(){var t,e,i,n=this;this.config.readOnly||(this.data.filter(function(t){return n.config.filter?n.config.filter(t,n._state.value):o.isEqualString(n._state.value,n._getItemText(t))}),this.config.multiselection?this.list.setFocus(this.data.getId(0)):(e=this.data.getIndex(this.list.selection.getId()),this.list.setFocus(this.data.getId(-1<e?e:0))),t=this._layout.getCell("list"),e=this._layout.getCell("not-found"),0===this.data.getLength()?(this.config.multiselection&&this.config.selectAllButton&&this._layout.getCell("select-unselect-all").hide(),t.hide(),this._state.creatingState=!0,i=this.config.newOptions?this._state.value:"",e.height=y.emptyListHeight(i,this.getRootView().refs.holder.el.offsetWidth),e.attach(y.emptyListView,i),e.show()):(this.config.multiselection&&this.config.selectAllButton&&this._layout.getCell("select-unselect-all").show(),!(this._state.value&&this.data.find(function(t){return t.value===n._state.value}))&&this._state.value?(this._state.creatingState=this.config.newOptions,t.show(),this.config.newOptions?(i=this._state.value,e.height=y.emptyListHeight(i,this.getRootView().refs.holder.el.offsetWidth),e.attach(y.emptyListView,i),e.show()):e.hide()):(this._state.creatingState=!1,e.isVisible()&&(t.show(),e.hide()))))},x.prototype._findBest=function(e){var i=this,t=this.data.find(function(t){return o.isEqualString(e,i._getItemText(t))});t&&this.list.selection.getId()!==t.id&&(this.list.setFocus(t.id),this.paint())},x.prototype._exsistId=function(t){var e=this;return t instanceof Array?t.every(function(t){return e.data.exists(t)}):this.data.exists(t)},x.prototype._draw=function(){if(!this.config)return g.el("div");var t=this.config,e=t.multiselection,i=t.labelPosition,n=t.hiddenLabel,o=t.required,r=t.disabled,s=t.css,a=t.helpMessage,l=t.readOnly,c=t.placeholder,u=e?null:this.data.getItem(this.list.selection.getId()),d=!this.list.selection.getId()||"object"==typeof this.list.selection.getId()&&0===this.list.selection.getId().length,h=v.getLabelStyle(this.config),t=!this.config.multiselection&&(this.config.readOnly||!this.popup.isVisible()),e=t&&this.config.htmlEnable&&this.config.template,t=t&&((null==u?void 0:u.icon)||(null==u?void 0:u.src))&&!this.config.template;return g.el("div",{"data-dhx-widget-id":this._uid,onkeydown:this._handlers.onkeydown,onkeyup:this._handlers.onkeyup,class:"dhx_widget dhx_combobox"+("left"===i?" dhx_combobox--label-inline":"")+(n?" dhx_combobox--sr_only":"")+(o?" dhx_combobox--required":"")+(r?" dhx_combobox--disabled":"")+(s?" "+s:"")},[h?g.el("label.dhx_label.dhx_combobox__label",{style:h.style,class:a?"dhx_label--with-help":"",onclick:this._handlers.oninputclick},a?[(h.label||o)&&g.el("span.dhx_label__holder",h.label),g.el("span.dhx_label-help.dxi.dxi-help-circle-outline",{tabindex:"0",role:"button",onclick:this._handlers.showHelper,id:"dhx_label__help_"+this._uid})]:h.label):null,g.el("div.dhx_combobox-input-box"+(r?".dhx_combobox-input-box--disabled":"")+(l?".dhx_combobox-input-box--readonly":"")+(this._state.currentState===b.ComboState.error?".dhx_combobox-input-box--state_error":"")+(this._state.currentState===b.ComboState.success?".dhx_combobox-input-box--state_success":""),{_ref:"holder"},[g.el("div.dhx_combobox-input__icon",{onclick:this._handlers.toggleIcon},[g.el("span"+(this.popup.isVisible()?".dxi.dxi-menu-up":".dxi.dxi-menu-down"))]),g.el("div.dhx_combobox-input-list-wrapper",{onclick:this._handlers.oninputclick},[g.el("ul.dhx_combobox-input-list",p(this._drawSelectedItems(),[g.el("li.dhx_combobox-input-list__item.dhx_combobox-input-list__item--input",[(e||t)&&u?g.el("div.dhx_combobox-input__template",{".innerHTML":e?this.config.template(u):null},t?[f.$template(u)]:null):null,g.el("input.dhx_combobox-input",{style:{opacity:e||t?0:null},oninput:this._handlers.oninput,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,_ref:"input",_key:this._uid,type:"text",placeHolder:d&&c?c:void 0,value:l&&u?this._getItemText(u):this._state.value,readOnly:l||r,required:o,"aria-label":l?"Select value":"Type or select value","aria-describedby":a?"dhx_label__help_"+this._uid:null,"aria-expanded":!0})])]))])])])},x.prototype._drawSelectedItems=function(){var t,n=this;if(!this.config.multiselection)return[];if(this.config.itemsCount){var e=this.list.selection.getId().length;return e?[g.el("li.dhx_combobox-input-list__item.dhx_combobox-tag",[g.el("span.dhx_combobox-tag__value",(t=e,"function"==typeof(e=this.config.itemsCount)?e(t):t+" "+_.default.selectedItems)),g.el("button.dhx_button.dhx_combobox-tag__action.dhx_combobox__action-clear-all",{"aria-label":"clear all"},[g.el("span.dhx_button__icon.dxi.dxi-close-circle")])])]:[]}return this.list.selection.getId().map(function(t){var e=n.data.getItem(t);if(!e)return null;var i=n._drawImageOrIcon(e);return g.el("li.dhx_combobox-input-list__item.dhx_combobox-tag",{"data-dhx-id":t},p(i||!n.config.template?[i,g.el("span.dhx_combobox-tag__value",n._getItemText(e))]:[g.el("span.dhx_combobox-tag__template",{".innerHTML":n.config.template(e)})],[g.el("button.dhx_button.dhx_button--icon.dhx_combobox-tag__action.dhx_combobox__action-remove",{type:"button","aria-label":"remove"},[g.el("span.dhx_button__icon.dxi.dxi-close-circle")])]))})},x.prototype._drawImageOrIcon=function(t){return t.src?g.el("img.dhx_combobox-tag__image",{src:t.src,alt:""}):t.icon?g.el("span.dhx_combobox-tag__icon",{class:t.icon}):null},x.prototype._getItemText=function(t){return t?t.value:null},x.prototype._updateSelectedItem=function(t){this.config.multiselection?(this.config.selectAllButton&&!this._state.unselectActive&&this.data.getLength()===t.length?(this._layout.getCell("select-unselect-all").attach(y.unselectAllView),this._state.unselectActive=!0):this.config.selectAllButton&&this._state.unselectActive&&(this._layout.getCell("select-unselect-all").attach(y.selectAllView),this._state.unselectActive=!1),this._state.value&&(this._state.value="",this._state.canDelete=0===t.length,this._filter())):this._state.value=null!==(t=this._getItemText(this.data.getItem(t)))&&void 0!==t?t:"",this.paint()},x.prototype._changePopupPosition=function(){var t=this;this.config.multiselection&&g.awaitRedraw().then(function(){t._updatePopup()})},x.prototype._updatePopup=function(){var t=this.getRootView().refs.holder.el;this.popup.getContainer().style.width=t.offsetWidth+"px";var e=this.data.getLength()*(this.config.itemHeight||36);"string"==typeof this.config.listHeight&&this.config.listHeight.includes("px")&&(this.config.listHeight=this.config.listHeight.replace("px",""));e=e<this.config.listHeight?e:this.config.listHeight;this.popup.getContainer().style.height=Number(e)+(this.config.selectAllButton&&this.config.multiselection&&this._layout.getCell("select-unselect-all").isVisible()?33:0)+(this._state.creatingState?this._layout.getCell("not-found").height:0)+"px",this.popup.show(t,{mode:"bottom",theme:this.getRootNode()})},x);function x(t,e){var i=w.call(this,t,o.extend({listHeight:224,itemHeight:36,disabled:!1,readOnly:!1,newOptions:!1,htmlEnable:!0},e))||this;i.config.itemsCount=i.config.itemsCount||i.config.showItemsCount,i.config.helpMessage=i.config.helpMessage||i.config.help,i.config.cellHeight&&36===i.config.itemHeight&&(i.config.itemHeight=i.config.cellHeight),i.config.labelInline&&(i.config.labelPosition="left"),Array.isArray(i.config.data)?(i.events=new r.EventSystem(i),i.data=new l.DataCollection({}),i.data.parse(i.config.data)):i.config.data?(i.data=i.config.data,i.events=new r.EventSystem(i),i.events.context=i):(i.events=new r.EventSystem(i),i.data=new l.DataCollection({})),i.popup=new d.Popup,i.popup.events.on(d.PopupEvents.afterShow,function(){i.paint()}),i.popup.events.on(d.PopupEvents.afterHide,function(){i.config.multiselection&&(i._state.value=""),i.paint()}),i.popup.events.on(d.PopupEvents.beforeHide,function(t){t&&i._hideOptions()}),(i.config.readonly||i.config.readOnly)&&(i.config.readOnly=i.config.readOnly||i.config.readonly,i._keyListener=new h.KeyListener),i._state={value:"",ignoreNext:!1,canDelete:!1,unselectActive:!1,currentState:b.ComboState.default,creatingState:!1},i._initHandlers(),i._createLayout(),i.config.value&&i._setValue(i.config.value,!0),i._initEvents();e=g.create({render:function(){return i._draw()},hooks:{didRedraw:function(){i.popup.isVisible()&&(i.focus(),i._configurePopup())}}});return i.mount(t,e),i}f.Combobox=i},function(t,r,e){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},a=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(r,"__esModule",{value:!0});var l=e(1),c=e(8),u=e(0),d=e(13),h=e(28),o=e(5),f=e(76),p=e(3),g=e(49),v=e(148);r.MOVE_UP=1,r.MOVE_DOWN=2;var _,i=(_=o.View,i(m,_),m.prototype._didRedraw=function(t){},m.prototype._dblClick=function(t){var e=p.locate(t);e&&(e=this.data.getItem(e).id,this.config.editable&&this.editItem(e),this.events.fire(g.ListEvents.doubleClick,[e,t]))},m.prototype._clearTouchTimer=function(){this._touch.timer&&(clearTimeout(this._touch.timer),this._touch.timer=null)},m.prototype._dragStart=function(t){var e=this;this._touch.start=!0;var i=[],n=p.locateNode(t,"data-dhx-id"),o=n&&n.getAttribute("data-dhx-id"),n=this.selection.getId();return this.config.multiselection&&n instanceof Array&&(n.map(function(t){t!==o&&e.getRootView().refs[t]&&i.push(e.getRootView().refs[t].el)}),n=a(n)),"string"==typeof n&&(n=[n]),this.config.dragMode&&!this._edited?c.dragManager.onMouseDown(t,n||[o],i):null},m.prototype.disableSelection=function(){this.selection.disable()},m.prototype.enableSelection=function(){this.selection.enable()},m.prototype.editItem=function(t){this._edited=t,this.data.getItem(this._edited)&&this.events.fire(g.ListEvents.beforeEditStart,[t])?(this.paint(),this.events.fire(g.ListEvents.afterEditStart,[t])):this._edited=null},m.prototype.editEnd=function(t,e){var i;this._edited&&(null!==t&&(i=this.data.getItem(e),this.data.update(e,s(s({},i),{value:t})),this._changed=!0),this._edited=null,this.paint())},m.prototype.getFocusItem=function(){return this.data.getItem(this._focus)},m.prototype.setFocus=function(t){this._focus!=t&&this.data.exists(t)&&(this._focus=t,this.events.fire(g.ListEvents.focusChange,[this.data.getIndex(this._focus),this._focus]),this.scrollTo(t),this.paint())},m.prototype.getFocus=function(){return this._focus},m.prototype.destructor=function(){this.events&&this.events.clear(),this.keyManager&&this.keyManager.destructor(),this.selection&&this.selection.destructor(),this.config=this.events=this.selection=this.keyManager=null,this._handlers=this._focus=this._edited=this._events=this._topOffset=this._visibleHeight=this._touch=null,this.unmount()},m.prototype.scrollTo=function(t){var e=this.getRootView();e&&e.node&&e.node.el&&void 0!==t&&(e=this.getRootNode(),this._scrollTo(t,e))},m.prototype._scrollTo=function(t,e){var i,n,o;!e||-1!==(i=this.data.getIndex(t))&&(n=this.config.virtual,o=Math.floor(i/e.children.length)||0,t=e.children[i-e.children.length*o],(n||t)&&(o=n?parseInt(this.config.itemHeight):t.clientHeight,(t=n?i*o:t.offsetTop)>=e.scrollTop+e.clientHeight-o?e.scrollTo(0,t-e.clientHeight+o):t<e.scrollTop&&e.scrollTo(0,t)))},m.prototype._renderItem=function(t,e){var i=this.config.itemHeight;if(t.$empty)return u.el("li",{class:"dhx_list-item",style:{height:i}});var n="";this.config.template&&(n=this.config.template(t)),t.html&&(n=t.html);var o=t.id==this._focus&&this.config.keyNavigation;if(t.id==this._edited)return v.getEditor(t,this).toHTML();var r=this.data.getMetaMap(t),o=s(s(s(s({},this._events),{class:"dhx_list-item"+(r&&r.selected?" dhx_list-item--selected":"")+(o?" dhx_list-item--focus":"")+(r&&r.drop&&!this._edited?" dhx_list-item--drophere":"")+(r&&r.drag&&!this._edited?" dhx_list-item--dragtarget":"")+(this.config.dragMode&&!this._edited?" dhx_list-item--drag":"")+(t.css?" "+t.css:""),"data-dhx-id":t.id,_ref:t.id.toString(),style:{height:i},_key:t.id}),this.getItemAriaAttrs(this,t)),{tabindex:o?0:-1});if(n)return n===t.html||this.config.htmlEnable?(o[".innerHTML"]=n,u.el("li",o)):u.el("li",o,n);if(this.config.$template)return u.el("li",o,[this.config.$template(t)]);t=t.text||t.value;return this.config.htmlEnable?o[".innerHTML"]=t:o.class+=" dhx_list-item--text",this.config.htmlEnable?u.el("li",o):u.el("li",o,t)},m.prototype._renderList=function(){var i=this,t=this._getRange(),e=this.data.getRawData(t[0],t[1]).map(function(t,e){return i._renderItem(t,e)});return this.config.virtual&&(e=a([u.el(".div",{style:{height:t[2]+"px"}})],e,[u.el(".div",{style:{height:t[3]+"px"}})])),u.el("ul.dhx_widget.dhx_list",s(s({style:{"max-height":this.config.height,position:"relative"},tabindex:0,class:(this.config.css||"")+(this.config.multiselection&&this.selection.getItem()?" dhx_no-select--pointer":""),"data-dhx-widget-id":this._uid},this._handlers),this._getListAriaAttrs(this.config,this.data.getLength())),e)},m.prototype.moveFocus=function(t,e){var i,n,o=this.data.getLength();o&&(n=(i=this._focus)?this.data.getIndex(i):-1,e=e||1,t===r.MOVE_DOWN?i=this.data.getId(Math.min(n+e,o-1)):t===r.MOVE_UP&&(i=this.data.getId(Math.max(n-e,0))),this.setFocus(i))},m.prototype._getRange=function(){if(this.config.virtual){var t=this._visibleHeight||parseInt(this.config.height),e=parseInt(this.config.itemHeight),i=this.data.getRawData(0,-1).length,n=i*e,o=this._topOffset,o=Math.max(0,Math.min(o,n-t)),r=Math.floor(o/e),t=Math.min(i-r,Math.floor(t/e)+5);return this._topOffset=o,[r,t+r,r*e,n-e*(t+r)]}return[0,-1,0,0]},m.prototype._getHotkeys=function(){var n=this;return{arrowDown:function(t){n.moveFocus(r.MOVE_DOWN),n._changed&&(n._changed=!1),t.preventDefault()},arrowUp:function(t){n.moveFocus(r.MOVE_UP),n._changed&&(n._changed=!1),t.preventDefault()},escape:function(){n.editEnd(null),n._changed&&(n._changed=!1)},enter:function(t){var e,i;n._changed?n._changed=!1:(i=(e=n.selection.getItem())instanceof Array?null===(i=e[0])||void 0===i?void 0:i.id:null==e?void 0:e.id,n.config.editable&&!n._edited&&(e&&i===n._focus||!e)?n.editItem(n._focus):n.selection.add(n._focus),n.events.fire(g.ListEvents.click,[n._focus,t]))},"shift+enter":function(t){n.selection.add(n._focus,!1,!0),n.events.fire(g.ListEvents.click,[n._focus,t])},"ctrl+enter":function(t){n.selection.add(n._focus,!0,!1),n.events.fire(g.ListEvents.click,[n._focus,t])},"ctrl+a":function(t){n.config.multiselection&&(t.preventDefault(),n.selection.remove(),n.data.map(function(t){return t.id}).forEach(function(t){"ctrlClick"===n.config.multiselection?n.selection.add(t,!0):n.selection.add(t)}))}}},m.prototype._initHotKey=function(){var t,e=this._getHotkeys();for(t in e)this.keyManager.addHotKey(t,e[t]);for(t in this.config.hotkeys)this.keyManager.addHotKey(t,this.config.hotkeys[t])},m.prototype.getItemAriaAttrs=function(t,e){var i,n,o;return s(s({role:"option","aria-selected":e.$selected?"true":"false"},(o=e,(n=t).config.dragMode&&!n._edited?{"aria-grabbed":Boolean(o.$dragtarget&&!n._edited).toString()}:{})),(i=t).config.editable?{"aria-roledescription":i._edited?"Press Enter to stop editing":"Double click to edit content"}:{})},m.prototype._getListAriaAttrs=function(t,e){return{role:"listbox","aria-label":"Listbox "+(t.title||"")+", count of options = "+e+"."+(t.editable?" Content is editable.":""),"aria-multiselectable":t.selection&&t.multiselection?"true":"false","aria-readonly":t.editable?"false":"true"}},m);function m(t,e){void 0===e&&(e={});var n=this,i=e.itemHeight||(e.virtual?37:null);i&&"number"==typeof i&&(i=i.toString()+"px"),(n=_.call(this,t,l.extend({itemHeight:i,keyNavigation:!0,editable:!1,selection:!0,htmlEnable:!0},e))||this)._touch={duration:350,dblDuration:300,timer:null,start:!1,timeStamp:null};e=n.config.data;e instanceof c.DataCollection?(n.data=e,n.events=e.events):(n.data=new c.DataCollection({}),n.events=n.data.events,e&&n.data.parse(e)),n.selection=new f.Selection({disabled:!n.config.selection,multiselection:n.config.multiselection},n.data,n.events),n.config.keyNavigation&&(n.keyManager=new d.KeyManager(function(t,e){return e==n._uid&&(!n._edited||n._edited&&"escape"!==t.key)}),n._initHotKey()),n.events.on(c.DataEvents.change,function(t,e,i){"setPage"===e&&n.scrollTo(n.data.getId(i[0])),n.paint()}),n.events.on(c.DataEvents.filter,function(){n.paint()}),n.events.on(h.SelectionEvents.afterUnSelect,function(){return n.paint()}),n.events.on(h.SelectionEvents.afterSelect,function(t){l.isId(t)&&n.config.selection&&n.setFocus(t),n.paint()}),n.events.on(g.ListEvents.afterEditEnd,n.editEnd.bind(n));e=function(e){return function(t){n.data.setMeta(n.data.getItem(t.target),"drop",e),n.paint()}};n.events.on(c.DragEvents.canDrop,e(!0)),n.events.on(c.DragEvents.cancelDrop,e(!1));e=function(e){return function(t){t.source.map(function(t){return n.data.setMeta(n.data.getItem(t),"drag",e)}),n.paint()}};n.events.on(c.DragEvents.dragStart,e(!0)),n.events.on(c.DragEvents.afterDrag,e(!1)),n._handlers={onmousedown:function(t){n._dragStart(t)},ontouchstart:function(t){n._touch.timer=setTimeout(function(){n._dragStart(t)},n._touch.duration),n._touch.timeStamp?(n._touch.dblDuration>=n._touch.timeStamp-+t.timeStamp.toFixed()&&(t.preventDefault(),n._dblClick(t)),n._touch.timeStamp=null):n._touch.timeStamp=+t.timeStamp.toFixed(),setTimeout(function(){n._touch.timeStamp=null},n._touch.dblDuration)},ontouchmove:function(t){n._touch.start&&t.preventDefault(),n._clearTouchTimer()},ontouchend:function(){n._touch.start=!1,n._clearTouchTimer()},ondragstart:function(){return!(n.config.dragMode&&!n._edited)&&null},oncontextmenu:function(t){var e=null===(e=n.data.getItem(p.locate(t)))||void 0===e?void 0:e.id;l.isId(e)&&n.events.fire(g.ListEvents.itemRightClick,[e,t])},onclick:function(t){var e=null===(e=n.data.getItem(p.locate(t)))||void 0===e?void 0:e.id;l.isId(e)&&(n.selection.add(e,t.ctrlKey||t.metaKey,t.shiftKey),n.config.selection&&(n._focus=e),n.events.fire(g.ListEvents.click,[e,t]),n.paint())},ondblclick:function(t){n._dblClick(t)},onscroll:function(t){n.config.virtual&&(n._topOffset=t.target.scrollTop,n._visibleHeight=t.target.offsetHeight,n.paint())},onmouseover:function(t){var e=null===(e=n.data.getItem(p.locate(t)))||void 0===e?void 0:e.id;l.isId(e)&&e!==p.locate(t.relatedTarget)&&n.events.fire(g.ListEvents.itemMouseOver,[e,t])}};e=n.config.eventHandlers;if(e)for(var o=0,r=Object.entries(e);o<r.length;o++){var s=r[o],a=s[0],s=s[1];n._handlers[a]=p.eventHandler(function(t){return p.locate(t)},s,n._handlers[a])}n.config.dragMode&&c.dragManager.setItem(n._uid,n),n._topOffset=n._visibleHeight=0;e=u.create({render:function(){return n._renderList()},hooks:{didMount:function(t){n.config.virtual&&(n._visibleHeight=t.node.el.offsetHeight)},didRedraw:function(t){return n._didRedraw(t)}}});return n.mount(t,e),n}r.List=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(28),o=i(8),r=i(1),i=(s.prototype.enable=function(){this.config.disabled=!1},s.prototype.disable=function(){this.remove(),this.config.disabled=!0},s.prototype.getId=function(){return this.config.multiselection?this._selected:this._selected[0]},s.prototype.getItem=function(){var e=this;return this.config.multiselection?this._selected.map(function(t){return e._data.getItem(t)}):this._selected.length?this._data.getItem(this._selected[0]):null},s.prototype.contains=function(t){return r.isId(t)?this._selected.includes(t):0<this._selected.length},s.prototype.remove=function(t,e){var i=this;r.isId(t)?this._unselectItem(t,e):(this._selected.forEach(function(t){return i._unselectItem(t,e)}),this._selected=[])},s.prototype.add=function(t,e,i,n){var o,r=this;this.config.disabled||(void 0!==t?(o=this.config.multiselection,i&&this._selected.length&&o?this._addMulti(t,n):this._addSingle(t,o&&("ctrlClick"!==o||e),n)):this._data.serialize().filter(function(t){t=t.id;return!r._selected.includes(t)}).forEach(function(t){t=t.id;r._addMulti(t,n)}))},s.prototype.destructor=function(){var e=this;this._selected.forEach(function(t){return e._unselectItem(t,!0)})},s.prototype._addMulti=function(t,e){var i=this._selected[this._selected.length-1],n=this._data.getIndex(i),o=this._data.getIndex(t);for(o<n&&(n=(t=[o,n])[0],o=t[1]);n<=o;n++){var r=this._data.getId(n);this._selectItem(r,e)}},s.prototype._addSingle=function(e,t,i){var n=this;t||this._selected.forEach(function(t){t!=e&&n._unselectItem(t)}),t&&this._selected.includes(e)?this._unselectItem(e,i):this._selectItem(e,i)},s.prototype._selectItem=function(t,e){var i=this._data.getItem(t);i&&!this._data.getMeta(i,"selected")&&(e||this.events.fire(n.SelectionEvents.beforeSelect,[t]))&&(this._selected.push(t),this._data.setMeta(i,"selected",!0),e||this.events.fire(n.SelectionEvents.afterSelect,[t]))},s.prototype._unselectItem=function(e,t){(t||this.events.fire(n.SelectionEvents.beforeUnSelect,[e]))&&(this._selected=this._selected.filter(function(t){return t!==e}),this._data.setMeta(this._data.getItem(e),"selected",!1),t||this.events.fire(n.SelectionEvents.afterUnSelect,[e]))},s);function s(t,e,i){var n=this;this.config=t,this.events=i,this._data=e,this._selected=[],this._data.events.on(o.DataEvents.removeAll,function(){n._selected=[]}),"string"==typeof this.config.multiselection&&(["click","ctrlClick"].includes(this.config.multiselection)||(this.config.multiselection=!1)),this._data.events.on(o.DataEvents.beforeRemove,function(t){var e;n._nextSelection=null,1===n._selected.length&&(e=n._data.getIndex(t.id),1<(t=n._data.getLength())&&(e=t==e-1?e-1:e+1,n._nextSelection=n._data.getId(e)))}),this._data.events.on(o.DataEvents.afterRemove,function(t){t=n._selected.indexOf(t.id);-1!==t&&n._selected.splice(t,1),r.isId(n._nextSelection)&&(n.add(n._nextSelection),n._nextSelection=null)})}e.Selection=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(50);e.selectAllView=function(){return n.el(".dhx_list-item.dhx_combobox-options__item.dhx_combobox-options__item--select-all.dhx_combobox__action-select-all",o.default.selectAll)},e.unselectAllView=function(){return n.el(".dhx_list-item.dhx_combobox-options__item.dhx_combobox-options__item--select-all.dhx_combobox__action-select-all",o.default.unselectAll)},e.emptyListView=function(t){return n.el("ul.dhx_list",[n.el("li.dhx_list-item.dhx_combobox-options__item"+(t?".dhx_combobox-options__action-create-option":""),{},t?o.default.createItem+' "'+t+'"':o.default.notFound)])},e.emptyListHeight=function(t,e){var i=document.createElement("canvas").getContext("2d",{alpha:!1});return i.font="normal 14px Roboto",t=t?o.default.createItem+' "'+t+'"':o.default.notFound,13+20*Math.ceil(i.measureText(t).width/(e-16))}},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.ComboboxEvents||(e.ComboboxEvents={})).beforeChange="beforeChange",n.change="change",n.focus="focus",n.blur="blur",n.keydown="keydown",n.input="input",n.beforeOpen="beforeOpen",n.afterOpen="afterOpen",n.beforeClose="beforeClose",n.afterClose="afterClose",n.open="open",n.close="close",(e=e.ComboState||(e.ComboState={}))[e.default=0]="default",e[e.error=1]="error",e[e.success=2]="success"},function(t,e,i){"use strict";var x=this&&this.__assign||function(){return(x=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},E=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var C=i(0),S=i(9),k=i(27),I=i(80),O=i(15),P=i(20);e.getFixedColsHeader=function(t,e,i){if((i!==S.Split.left||"number"==typeof t.leftSplit&&t.fixedColumns.left.length)&&(i!==S.Split.right||"number"==typeof t.rightSplit&&t.fixedColumns.right.length)){var n=t.leftSplit,o=t.rightSplit,r=t.$positions,s=t.$totalWidth,a=t.$scrollBarWidth,l=i===S.Split.right,c=l?t.fixedColumns.right:t.fixedColumns.left,u=O.getTotalWidth(c),c=I.getFixedRows(x(x({},t),{currentColumns:c,$positions:x(x({},r),{xStart:0,xEnd:l?o:n}),scroll:{top:0,left:0},filteredColumns:c}),x(x({},e),{name:"header",position:"top",shifts:{x:0,y:0}}),i),i=x(x({},e),{name:"header",position:"top"});return C.el(".dhx_"+i.name+"-fixed-cols",x({onwheel:O.scrollFixedColsAndRows,class:l?"dhx_grid__cols_right--fixed":"dhx_grid__cols_left--fixed",style:{position:"absolute",top:0,left:l?s<e.wrapper.width-a.y-P.BORDERS?s-u:e.wrapper.width-u-a.y-P.BORDERS:0,width:u,overflow:"hidden"}},{role:"rowgroup","aria-rowcount":c.length}),c.body)}},e.getFixedCols=function(t,e,i,n){if((i!==S.Split.left||"number"==typeof t.leftSplit&&t.fixedColumns.left.length)&&(i!==S.Split.right||"number"==typeof t.rightSplit&&t.fixedColumns.right.length)){var o=t.leftSplit,r=t.rightSplit,s=t.$totalWidth,a=t.$totalHeight,l=t.headerHeight,c=t.footerHeight,u=t.$positions,d=t.scroll,h=t.data,f=t.$scrollBarWidth,p=i===S.Split.right,g=a+l+c,v=g>e.gridBodyHeight?t.$footer?g-f.x:e.gridBodyHeight:g<e.gridBodyHeight-f.x?g:t.$footer?e.gridBodyHeight:e.gridBodyHeight-f.x,_=p?t.fixedColumns.right:t.fixedColumns.left,m=O.getTotalWidth(_),y=p?"rightFixedCols":"leftFixedCols",b=k.getCells(x(x({},t),{filteredColumns:_,$renderFrom:y,$positions:x(x({},u),{xStart:0,xEnd:p?r:o})})),c=e.sticky,g=x(x({},e),{name:"footer",position:"bottom"}),o=I.getRows(x(x({},t),{currentColumns:_,$positions:x(x({},u),{xStart:0,xEnd:p?r:o})}),x(x({},e),{name:"footer",position:"bottom"})),w=0;o.forEach(function(t){return w+=t.attrs.style.height});_=I.getFixedSpans(x(x({},t),{filteredColumns:_}),x(x({},e),{name:"footer",position:"bottom"}),i),i=function(t){return{role:"rowgroup","aria-rowcount":t}},o=c?C.el(".dhx_"+g.name+"-fixed-cols",x({onwheel:O.scrollFixedColsAndRows,class:p?"dhx_grid__cols_right--fixed":"dhx_grid__cols_left--fixed",style:{position:"absolute",top:v<e.gridBodyHeight?v-w:null,left:p?s<e.wrapper.width-f.y-P.BORDERS?s-m:e.wrapper.width-m-f.y-P.BORDERS:0,bottom:v>=e.gridBodyHeight?(c?f.x:0)+"px":null}},i(o.length)),[o,C.el("span.dhx_span-spans",{class:"dhx_footer-spans",role:"presentation"},_)]):null,_=u,u=P.getEvents(t,p?S.Split.right:S.Split.left),n=k.getSpans(x(x({},t),{$renderFrom:y}),n||(p?S.Split.right:S.Split.left));return[C.el(".dhx_grid-fixed-cols-wrap",x(x({style:{left:p?s<e.wrapper.width-f.y-P.BORDERS?s-m:e.wrapper.width-m-f.y-P.BORDERS:0,height:v>=e.gridBodyHeight?(c?e.gridBodyHeight:e.gridBodyHeight+l)-f.x:v,paddingTop:l,overflow:"hidden",width:m}},u),{role:"presentation","aria-label":"Fixed column"}),[C.el(".dhx_grid-fixed-cols",x(x({onwheel:O.scrollFixedColsAndRows,class:p?"dhx_grid__cols_right--fixed":"dhx_grid__cols_left--fixed",style:{top:-d.top+l-1+"px",paddingTop:e.shifts.y,height:a,position:"absolute"},_flags:C.KEYED_LIST},k.getHandlers(_.yStart,_.xStart,t)),i(h.length)),E(b,[n&&C.el("span.dhx_span-spans",{role:"presentation"},[n])])),p?C.el(".dhx_grid__cols-border--frozen",{role:"presentation",style:{left:0}}):C.el(".dhx_grid__cols-border--frozen",{role:"presentation",style:{right:0}})]),t.$footer?o:null]}}},function(t,e,i){"use strict";var I=this&&this.__assign||function(){return(I=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},x=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var O=i(0),P=i(32),D=i(15),V=i(9),E=i(27),C=i(79),S=i(20),M=i(1),T=2;function n(t,e,i,n){i&&(i.toLocaleLowerCase().includes("touch")?e._events:e.events).fire(i,[t,n])}function H(t,e,i){return{onclick:[n,t,i,V.GridEvents[e+"CellClick"]],onmouseover:[n,t,i,V.GridEvents[e+"CellMouseOver"]],onmousedown:[n,t,i,V.GridEvents[e+"CellMouseDown"]],ontouchstart:[n,t,i,V.GridEvents[e+"CellMouseDown"]],ondblclick:[n,t,i,V.GridEvents[e+"CellDblClick"]],oncontextmenu:[n,t,i,V.GridEvents[e+"CellRightClick"]],ontouchmove:[n,t,i,V.GridSystemEvents[e+"CellTouchMove"]],ontouchend:[n,t,i,V.GridSystemEvents[e+"CelltouchEnd"]]}}function F(t,e,i,n,o,r){void 0===o&&(o="");var s=e.type?"dhx_"+e.type+"-cell":"dhx_string-cell",t=i.content[t.content]&&i.content[t.content].toHtml(e,i),a={};return i.filteredColumns.forEach(function(t){var e=!!i.content[t[n][r].content];a[t.id]=e&&i.content[t[n][r].content].toHtml(t,i)||t[n][r].text}),O.el("."+s,{style:{class:o.trim(),padding:0}},[t&&("string"==typeof t||"number"==typeof t?O.el("div",{class:"dhx_grid-footer-cell-text",role:"presentation",".innerHTML":e.template&&"string"==typeof t?e.template(t,a,e):t}):t)])}function d(f,t){if(!f.data||!f.filteredColumns)return[];var e,p,g=f.$positions,v=t.name,_=f.currentColumns,m=f[v+"RowHeight"]||40,y=(e=v,t=(t=_).map(function(t){return t[e]||[{}]}),D.transpose(t)),b=1;return y.map(function(t,h){return O.el(".dhx_"+v+"-row",I({style:{height:m}},{role:"row","aria-rowindex":h+1}),t.map(function(n,t){var e=n.css||"",i=_[t],o=g.xStart+t+1,r="dxi dxi-sort-variant dhx_grid-sort-icon",s="none";f.sortBy&&""+i.id===f.sortBy&&!n.content&&(r+=" dhx_grid-sort-icon--"+(l=f.sortDir||"asc"),e+=" dhx_grid-"+v+"-cell--sorted ",s="asc"===l?"ascending":"descending");var a=D.isSortable(f,i)&&n.text&&"footer"!==v&&!1!==n.headerSort;a&&(e+=" dhx_grid-header-cell--sortable");var l=0===t?"dhx_first-column-cell":"",t=t===_.length-1?"dhx_last-column-cell":"";n.content||(n.align?e+=" dhx_grid-header-cell--align_"+n.align+" ":e+=" dhx_grid-header-cell--"+("number"===i.type||"percent"===i.type||"date"===i.type?"align_right":"align_left")+" "),e+=l+" "+t;t=(void 0!==i.resizable?i:f).resizable;t&&(d=f.rightSplit&&f.$scrollBarWidth.xState&&f.fixedColumns.right.includes(i),t=O.el("div",{class:"dhx_resizer_grip_wrap","aria-hidden":"true"},[O.el("div",{class:"dhx_resizer_grip"+(d?" dhx_resizer_grip--left":" dhx_resizer_grip--right"),dhx_resized:i.id,style:{height:100*y.length+"%"}},[O.el("div",{class:"dhx_resizer_grip_line"})])]),(d=i.header&&(null===(c=i.header[0])||void 0===c?void 0:c.colspan))&&(p=d,b=1),p&&b!==p&&(0===h&&(t=null),b++),"footer"===v&&(t=null)),n.align&&(e+=" dhx_align-"+n.align);var c=function(t,e,i){e={"aria-colindex":e};return"footer"===t||n.content?e.role="gridcell":(e.role="columnheader",e["aria-sort"]=i),e};if(n.content)return O.el(".dhx_grid-"+v+"-cell.dhx_grid-custom-content-cell",I(I({class:e.trim(),"data-dhx-id":i.id,"data-dhx-text-id":n.id,_key:i.id,style:{width:i.$width,height:"footer"===v?m+T/2+"px":m+"px"}},H(i,v,f)),c(v,o,s)),[F(n,i,f,v,"",h),t||null]);var u,d="dhx_grid-header-cell-text_content";return f.autoHeight&&(d+=" dhx_grid-header-cell-text_content-auto-height"),O.el(".dhx_grid-"+v+"-cell",I(I({class:e.trim(),"data-dhx-id":i.id,"data-dhx-text-id":n.id,_key:i.id,style:{width:i.$width,height:"footer"===v?m+T/2+"px":m+"px"}},H(i,v,f)),c(v,o,s)),[O.el("div.dhx_grid-header-cell-text",{role:"presentation"},[O.el("span",I(I({class:d},(u=n.text,a?{role:"button","aria-label":"Sort by "+u}:{})),{".innerHTML":n.text})),t||null]),a&&O.el("div",{class:r,"aria-hidden":"true"})])}))})}function h(y,b,w){var x=y.columns,E=y.filteredColumns,t=D.transpose(E.map(function(t){return t[b.name]||[]})),C=y[b.name+"RowHeight"]||40,S=b.name,k=0;return t.map(function(t,m){return k=0,O.el(".dhx_span-row",{style:{top:C*m+"px",height:C},class:"dhx_header-row","aria-hidden":"true"},t.map(function(t,e){var i,n=E[e];if(w===V.Split.right&&0===e&&!t.colspan){var o=D.transpose(x.map(function(t){return t[b.name]||[]}));t:for(var r=0;r<o[m].length;r++){var s=o[m][r];if(1<s.colspan)for(var a=x.slice(r,r+s.colspan),l=0;l<a.length;l++)if(a[l].id===n.id){i={cell:s,col:x[r],widthBefore:P.getWidth(a,l,0),isLastCol:r+s.colspan>=x.length};break t}}}var c=(null==i?void 0:i.cell)||t,u=(null==i?void 0:i.col)||n;k+=u.hidden?0:u.$width;var d=0===e?"dhx_first-column-cell":"",h=w?1:y.fixedColumns.right.length+1,f=t.colspan&&P.getReducedColspan(x,n.id,t.colspan),p=null!=i&&i.isLastCol||e===E.length-h||(f||1)+(e-1)>=E.length-h?"dhx_last-column-cell":"",g=C;c.rowspan&&(g=g*c.rowspan-1),"footer"===b.name&&1<c.rowspan&&g++;var v=D.isSortable(y,u)&&c.rowspan&&c.text&&"footer"!==b.name&&!1!==c.headerSort,_="dxi dxi-sort-variant dhx_grid-sort-icon";y.sortBy&&""+u.id===y.sortBy&&!c.content&&(_+=" dhx_grid-sort-icon--"+(y.sortDir||"asc"));t=u.align?"dhx_align-"+u.align:"number"!==u.type&&"percent"!==u.type&&"date"!==u.type||c.colspan?"dhx_align-left":"dhx_align-right",h="dhx_grid-header-cell "+d+" "+p+" "+(c.rowspan?"dhx_span-cell__rowspan":"")+" "+(c.align?"dhx_align-"+c.align:t)+" "+(c.css||"");v&&(h+=" dhx_grid-header-cell--sortable"),c.content||(c.align?h+=" dhx_grid-header-cell--align_"+c.align+" ":h+=" dhx_grid-header-cell--"+("number"===u.type||"percent"===u.type||"date"===u.type?"align_right":"align_left")+" ");d=null;c.content&&((d=F(c,u,y,S,h,m)).attrs.style=I(I({},d.attrs.style),{width:"100%",borderRight:"0"}));p="";0<k-u.$width&&(p="var(--dhx-border)");t="dhx_grid-header-cell-text_content";return y.autoHeight&&(t+=" dhx_grid-header-cell-text_content-auto-height"),c.colspan||c.rowspan?O.el(".dhx_span-cell",I({style:{width:P.getWidth(x,c.colspan,M.findIndex(x,function(t){return t.id===u.id})),height:g,left:k-u.$width-((null==i?void 0:i.widthBefore)||0),borderLeft:p,top:C*m},class:h.trim(),"data-dhx-id":u.id,"data-dhx-text-id":c.id},H(u,S,y)),[d||c.rowspan?O.el("div.dhx_grid-header-cell-text",{role:"presentation"},[O.el("span",{class:t,".innerHTML":c.text})]):O.el("span",{class:t,".innerHTML":c.text}),v&&O.el("div",{class:_}),w===V.Split.left&&f&&e+f>E.length||i?O.el(".dhx_grid__cols-border--frozen",{role:"presentation",style:{left:((null==i?void 0:i.widthBefore)||P.getWidth(E,E.length-e,e))-T/2}}):null]):null}).filter(function(t){return t}))})}function k(t){return{role:"rowgroup","aria-rowcount":t}}e.getRows=d,e.getFixedSpans=h,e.getFixedRows=function(i,n,t){var o,r,s=i.leftSplit,e=i.$totalWidth,a=d(i,n),l=h(i,n,t),t=null;"footer"!==n.name||n.sticky||(o=i.rightSplit,r=i.fixedColumns,t=x((u=function(t){void 0===t&&(t=!1);var e=t?r.right:r.left;return!t&&0<=s||t&&0<=o?d(I(I({},i),{currentColumns:e,$positions:I(I({},i.$positions),{xStart:0,xEnd:t?o:s})}),n):[]})(),u(!0)));var c,u=((u={position:"sticky"})[n.position]=0,u);return n.sticky||(u.left=-i.scroll.left,c=-i.scroll.left,u.position="relative"),O.el(".dhx_"+n.name+"-wrapper"+(i.rightSplit?".dhx_grid__rows_right--fixed":""),{class:n.sticky?"":"dhx_compatible-"+n.name,style:I(I({},u),{left:n.sticky?c:0,height:"footer"===n.name?i[n.name+"Height"]+T/2:i[n.name+"Height"],width:n.sticky?e:n.wrapper.width-T}),role:"presentation"},[O.el(".dhx_grid-"+n.name+(s?".dhx_grid_fixed_left":""),{style:{height:"footer"===n.name?i[n.name+"Height"]+T/2:i[n.name+"Height"],left:c,paddingLeft:n.shifts.x,width:e},role:"presentation"},[O.el(".dhx_"+n.name+"-rows",I({},k(x(a).length)),x(a)),O.el(".dhx_"+n.name+"-spans",{style:{marginLeft:-n.shifts.x},class:"dhx_"+n.name+"-rows",role:"presentation"},l),t&&O.el(".dhx_"+n.name+"-fixed-cols",{style:{position:"absolute",top:0,left:i.scroll.left+"px",height:"100%"}},t)]),O.el("div",{style:{width:e},role:"presentation"})])},e.getFixedDataRows=function(e,i,n){if(!(n===V.Split.top&&"number"!=typeof e.topSplit||n===V.Split.bottom&&"number"!=typeof e.bottomSplit)){var t=e.$totalWidth,o=e.topSplit,r=e.bottomSplit,s=e.$positions,a=e.data,l=e.$totalHeight,c=e.$width,u=e.headerHeight,d=e.footerHeight,h=e.$scrollBarWidth,f=n===V.Split.bottom,p=f?e.fixedRows.bottom:e.fixedRows.top,g=f?"bottomFixedRows":"topFixedRows",v=E.getCells(I(I({},e),{data:p,$renderFrom:g,$positions:I(I({},s),{yStart:0,yEnd:f?r:o})})),_=S.getEvents(e,f?V.Split.bottom:V.Split.top),m=p.reduce(function(t,e){return t+e.$height},0),y=E.getSpans(I(I({},e),{$renderFrom:g,data:a}),f?V.Split.bottom:V.Split.top),b=D.getTotalHeight(e.fixedRows.bottom),w=function(t){return C.getFixedCols(I(I({},e),{headerHeight:0,data:p,$renderFrom:g,scroll:I(I({},e.scroll),{top:-1}),$positions:I(I({},s),{yStart:0,yEnd:f?r:o}),$totalHeight:m,$data:a}),I(I({},i),{shifts:I(I({},i.shifts),{y:0})}),t,n)||[]},w=x(w(V.Split.left),w(V.Split.right));return[O.el(".dhx_grid-fixed-data-rows-wrap",{class:f?"dhx_grid__rows_bottom--fixed":"",style:{top:f?l<i.wrapper.height-h.x-T?l+u-b+T/2:i.wrapper.height-b-d-T/2-h.x:u,overflow:"hidden",height:m>i.wrapper.height?i.wrapper.height:m,width:t+h.y+T<c?t:c-h.y-T}},x([O.el(".dhx_grid-fixed-cols",I(I({onwheel:D.scrollFixedColsAndRows,style:{left:-e.scroll.left+"px",paddingLeft:i.shifts.x,position:"absolute",width:t},_flags:O.KEYED_LIST},E.getHandlers(0,s.xStart,e)),k(a.length)),[O.el(".dhx_grid-fixed-rows",I({class:e.rightSplit?"dhx_grid__rows_right--fixed":""},_),x(v,[y&&O.el(".dhx_span-spans",{role:"presentation"},[y])]))])],w,[e.bottomSplit?O.el(".dhx_grid__rows-border--frozen",{role:"presentation"}):null]))]}}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(1),l=i(0),c=i(3),u=i(10),d=i(22),o=(s=d.Navbar,o(h,s),h.prototype.getState=function(t){if(!a.isDefined(t)||this.data.getItem(t)){var e,i={};for(e in this.data.eachChild(this.data.getRoot(),function(t){t.twoState&&!t.group?i[t.id]=t.active:"input"!==t.type&&"selectButton"!==t.type&&"datePicker"!==t.type||(i[t.id]=t.value)},!1),this._groups)this._groups[e].active&&(i[e]=this._groups[e].active);return a.isId(t)?i[t]:i}},h.prototype.setState=function(n){var o,t,r=this;for(t in n)!function(e){if(r._groups&&r._groups[e])r._groups[e].active&&(r.data.update(r._groups[e].active,{active:!1}),r._groups[e].active=n[e],r.data.update(n[e],{active:!0}));else{var t=r.data.getItem(e);switch(t.type){case"input":r.data.update(e,{value:n[e]});break;case"selectButton":var i=null===(o=t.items)||void 0===o?void 0:o.find(function(t){return t.value===n[e]});r.data.update(e,{value:n[e],icon:null==i?void 0:i.icon});break;case"datePicker":t.$calendar?t.$calendar.setValue(n[e]):r.data.update(e,{value:n[e]});break;default:r.data.update(e,{active:n[e]})}}}(t)},h.prototype.setFocus=function(t){!this.data.getItem(t)||"input"!==this.data.getItem(t).type||(t=this.getRootNode().querySelector('[data-dhx-id="'+t+'"]'))&&t.focus()},h.prototype._customHandlers=function(){var i=this;return{input:function(t){var e=c.locate(t);i.data.update(e,{value:t.target.value})},tooltip:function(t){var e=c.locateNode(t);e&&(t=e.getAttribute("data-dhx-id"),null!=(t=i.data.getItem(t))&&t.tooltip&&u.tooltip(t.tooltip,{node:e,position:u.Position.bottom}))}}},h.prototype._getFactory=function(){return d.createFactory({widget:this,defaultType:"navItem",allowedTypes:["button","imageButton","selectButton","navItem","menuItem","separator","spacer","title","input","customHTML","datePicker","customHTMLButton"],widgetName:"toolbar"})},h.prototype._draw=function(t){var i=this,e=this.data.getLength()?this.data.reduce(function(t,e){switch(e.type){case"title":return t||20;case"button":return"small"===e.size&&(!t||t<=28)?28:t||32;default:return 32}},0)+24:null;return l.el("nav.dhx_widget.dhx_toolbar",{style:{height:e},class:this.config.css||""},[l.el("ul.dhx_navbar.dhx_navbar--horizontal",r(r({"data-dhx-widget-id":this._uid,tabindex:0},{role:"toolbar","aria-label":t||""}),{onclick:this._handlers.onclick,onmousedown:this._handlers.onmousedown,oninput:this._handlers.input,onmouseover:this._handlers.tooltip,_hooks:{didInsert:function(t){t.el.addEventListener("keyup",function(t){var e;9!==t.which||(e=c.locateNode(document.activeElement))&&(t=e.getAttribute("data-dhx-id"),null!=(t=i.data.getItem(t))&&t.tooltip&&u.tooltip(t.tooltip,{node:e,position:u.Position.bottom,force:!0}))},!0)}}}),this.data.map(function(t){return i._factory(t)},this.data.getRoot(),!1))])},h.prototype._getMode=function(t,e){return t.id===e?"bottom":"right"},h.prototype._close=function(t){this._activePosition=null,this._currentRoot=null,s.prototype._close.call(this,t)},h.prototype._setRoot=function(t){this.data.getParent(t)===this.data.getRoot()&&(this._currentRoot=t)},h);function h(t,e){var i=s.call(this,t,a.extend({navigationType:"click",$name:"toolbar"},e))||this;i._currentRoot=null;return i.mount(t,l.create({render:function(){return i._draw(t)}})),i}e.Toolbar=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.grayShades=["#000000","#4C4C4C","#666666","#808080","#999999","#B3B3B3","#CCCCCC","#E6E6E6","#F2F2F2","#FFFFFF"],e.palette=[["#D4DAE4","#B0B8CD","#949DB1","#727A8C","#5E6677","#3F4757","#1D2534"],["#FFCDD2","#FE9998","#F35C4E","#E94633","#D73C2D","#CA3626","#BB2B1A"],["#F9E6AD","#F4D679","#EDB90F","#EAA100","#EA8F00","#EA7E00","#EA5D00"],["#BCE4CE","#90D2AF","#33B579","#36955F","#247346","#1D5B38","#17492D"],["#BDF0E9","#92E7DC","#02D7C5","#11B3A5","#018B80","#026B60","#024F43"],["#B3E5FC","#81D4FA","#29B6F6","#039BE5","#0288D1","#0277BD","#01579B"],["#AEC1FF","#88A3F9","#5874CD","#2349AE","#163FA2","#083596","#002381"],["#C5C0DA","#9F97C1","#7E6BAD","#584A8F","#4F4083","#473776","#3A265F"],["#D6BDCC","#C492AC","#A9537C","#963A64","#81355A","#6E3051","#4C2640"],["#D2C5C1","#B4A09A","#826358","#624339","#5D4037","#4E342E","#3E2723"]]},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.ColorpickerEvents||(e.ColorpickerEvents={})).beforeChange="beforeChange",e.change="change",e.apply="apply",e.cancelClick="cancelClick",e.modeChange="modeChange",e.selectClick="selectClick",e.colorChange="colorChange",e.viewChange="viewChange"},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),c=this&&this.__assign||function(){return(c=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(0),a=i(2),l=i(5),u=i(8),h=i(186),d=i(85),f=i(25),p=i(189),g=i(87),v=i(92),_=i(6),m=i(203),y=i(1),b=i(204),o=(r=l.View,o(w,r),w.prototype.getSeries=function(t){return this._series[t]},w.prototype.eachSeries=function(t){var e,i=[];for(e in this._series)i.push(t.call(this,this._series[e]));return i},w.prototype.destructor=function(){this._tooltip.destructor(),this.events.clear(),this.unmount()},w.prototype.setConfig=function(r){var s,a=this;if("calendarHeatMap"===r.type)throw new TypeError("The calendarHeatMap chart type is a pro functionality");if(this.config=r,this._layers.clear(),this._series={},this._scales={},r.scales)for(var t in r.scales){var e=c({},r.scales[t]);void 0!==r.scales[t].min&&(s=r.scales[t].min),e.type=e.type||this._detectScaleType(e,t),r.scales.radial&&"radial"!==t&&(e.hidden=!0),this._setScale(e,t)}var i,l=new v.default;this._layers.add(l),null!==(i=r.series)&&void 0!==i&&i.forEach(function(t,e){var i;void 0!==t.baseLine&&t.baseLine<s&&(t.baseLine=void 0);var n=c({},t);switch(n.type=n.type||r.type,n.type){case"bar":case"xbar":case"area":case"splineArea":n.color||(n.color=n.fill||_.getDefaultColor(e)),n.fill||(n.fill=n.color||_.getDefaultColor(e));break;case"treeMap":n.legendType=(null===(i=r.legend)||void 0===i?void 0:i.type)||"groupName",null!==(i=null===(i=r.legend)||void 0===i?void 0:i.treeSeries)&&void 0!==i&&i.map(function(t,e){var i;t.active=null===(i=t.active)||void 0===i||i,t.id=null!==(i=t.id)&&void 0!==i?i:y.uid(),t.color||(t.color=_.getDefaultColor(e,"range"===n.legendType))}),n.treeSeries=null===(i=r.legend)||void 0===i?void 0:i.treeSeries;break;case"scatter":n.pointColor||(n.pointColor=n.color||_.getDefaultColor(e))}t=g.default[n.type];(n.barWidth||a.config.barWidth)&&(n.barWidth=n.barWidth||a.config.barWidth);var o=new t(a.data,n,a.events),t=_.getScales(r.scales);(1<t.length&&"radial"!==t[0]||"radial"===t[0]?t:["bottom","left"]).forEach(function(t){var e=a._scales[t];e&&(o.addScale(t,e),n.stacked?e.add(l):e.add(o))}),a._series[o.id]=o,(n.stacked?l:a._layers).add(o)}),r.legend&&((i=c({},r.legend)).series&&(i.$seriesInfo=i.series.map(function(t){return a._series[t]})),i=new d.Legend(this.data,i,this.events),this._layers.add(i)),this.paint()},w.prototype._setScale=function(t,e){t.type&&("radial"!==(t=new p.default[t.type](this.data,t,e)).config.type&&this._layers.add(t.scaleGrid()),this._layers.add(t),this._scales[e]=t)},w.prototype._detectScaleType=function(t,e){return"radial"===e?e:t.text?"text":"numeric"},w.prototype._initEvents=function(){var i=this;this.events.on(f.ChartEvents.toggleSeries,function(t,e){"treeMap"===i.config.type?(Object.values(i._series)[0].toggle(t),i.paint()):e?(e=i._series[Object.keys(i._series)[0]])&&(e.toggle(t),i.paint()):i._series[t]&&(i._series[t].toggle(),i.paint())},this),this.events.on(u.DataEvents.change,function(){return i.paint()}),this.events.on(u.DataEvents.filter,function(){return i.paint()})},w);function w(t,i){var e;void 0===i&&(i={});var d=r.call(this,null,i)||this;d._width=0,d._height=0,d._left=0,d._top=0;var n={};i.maxPoints&&(n.approximate={value:null===(e=i.series)||void 0===e?void 0:e.map(function(t){return t.value}),maxNum:i.maxPoints}),Array.isArray(i.data)?(d.events=new a.EventSystem(d),d.data=new("treeMap"===i.type?u.TreeCollection:u.DataCollection)(n,d.events),d.data.parse(i.data)):i.data&&i.data.events?(d.data=i.data,d.events=d.data.events,d.events.context=d):(d.events=new a.EventSystem(d),d.data=new("treeMap"===i.type?u.TreeCollection:u.DataCollection)(n,d.events)),d._globalHTMLHandlers={onmousemove:function(t){var e=d._layers.getSizes(),i=e.left,n=e.top,o=e.bottom,r=e.right,s=t.pageX,e=t.pageY,t=d.getRootView().node.el.getBoundingClientRect();d._left=t.left+window.pageXOffset,d._top=t.top+window.pageYOffset;s=s-i-d._left,e=e-n-d._top;0<=s&&s<=d._width-r-i&&0<=e&&e<=d._height-o-n?d.events.fire(f.ChartEvents.chartMouseMove,[s,e,d._left+i,d._top+n]):d.events.fire(f.ChartEvents.chartMouseLeave)},onmouseleave:function(){return d.events.fire(f.ChartEvents.chartMouseLeave)}},d._layers=new h.ComposeLayer,d.setConfig(i),d._initEvents(),d._tooltip=new m.Tooltip(d);n=s.create({render:function(){if(!d.data.getLength())return s.el("div");function t(t){function o(t){return t._isXDirection?"X":"Y"}function r(t){return t.title||t.text||t.value||""}function s(t){return t.steps&&t.steps.length?t.steps[0]:t.min||0}function a(t){return t.steps&&t.steps.length?t.steps[t.steps.length-1]:t.max||t.maxPoints||"max"}function l(t,e){return e[t]}var c=d._scales,i=t.series,n=t.type,u=((n=n||(i&&i.length&&i[0]&&i[0].type||""))||"")+" chart.";return c&&Object.keys(c).forEach(function(t){var e,i=c[t],n=i._axis||i.config;"radial"===t?(e=i._data._order,u+=" X scale "+r(i.config)+": "+t+" axis from "+l(i.config.value,e[0])+" to "+l(i.config.value,e[e.length-1])+".",u+=" "+o(i)+" scale: axis from "+s(n)+" to "+a(n)+"."):u+=" "+o(i)+" scale "+r(i.config)+": "+t+" axis from "+s(n)+" to "+a(n)+"."}),i&&i.length&&(u+=" Series:",i.forEach(function(t,e){u+=" "+("pie"===n||"pie3D"===n||"donut"===n?t.text:t.value),u+=e===i.length-1?".":","})),u}var e=[s.resizer(function(t,e){d._width=t,d._height=e||400;e=d.getRootView();e&&e.node&&e.node.el&&(e=e.node.el.getBoundingClientRect(),d._left=e.left+window.pageXOffset,d._top=e.top+window.pageYOffset),d.events.fire(f.ChartEvents.resize,[d._width,d._height]),d.paint(),!document.querySelector(".dhx_widget.dhx_chart")&&d._tooltip&&d._tooltip.destructor()})];return d._width&&d._height&&e.push(d._layers.toVDOM(d._width,d._height)),s.el(".dhx_widget.dhx_chart",c(c({class:i.css||"",onmousemove:d._globalHTMLHandlers.onmousemove,onmouseleave:d._globalHTMLHandlers.onmouseleave},{"aria-label":t(i)}),{tabIndex:0}),e)},hooks:{didMount:function(t){t&&t.node&&t.node.parent&&t.node.parent.el&&(d._width=t.node.parent.el.offsetWidth,d._height=t.node.parent.el.offsetHeight||400,d.paint())}}});return d.mount(t,n),d.export=new b.Exporter("chart",d),d}e.Chart=o},function(t,e,i){"use strict";var v=this&&this.__assign||function(){return(v=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(8),r=i(25),_=i(0),k=i(6),m=i(188),I=i(1);n.prototype.scaleReady=function(t){var e="column"===this.config.direction&&("left"===this.config.halign||"right"===this.config.halign);switch(this.config.valign){case"middle":"right"===this.config.halign?t.right+=0<=this.config.size?this.config.size:200:"left"===this.config.halign&&(t.left+=0<=this.config.size?this.config.size:200);break;case"top":e?t[this.config.halign]+=0<=this.config.size?this.config.size:200:t.top+=0<=this.config.size?this.config.size:40;break;case"bottom":e?t[this.config.halign]+=0<=this.config.size?this.config.size:200:t.bottom+=0<=this.config.size?this.config.size:40}},n.prototype.paint=function(n,t){var e,i,o=this,r=this._getData(),s=this.config;s.$sizes={width:0,height:0};var a=k.getFontStyle("legend-text"),l=s.margin,c=s.itemPadding,u=[],d="middle"===s.valign,h=0,f=0,p=0,g=0;switch(r.forEach(function(t,e){var i;d||"row"!==s.direction||(i=k.getTextWidth(t.text,a),n<h+i+15&&0!==e&&(h=0,f+=c+2)),u.push(_.sv("g",v(v({transform:"translate("+h+","+f+")",onclick:[o._handlers.onclick,t.id,o.config.values],onkeyup:[o._handlers.onkeyup,t.id,o.config.values],class:"legend-item "+(t.active?"":"not-active")},{role:"button","aria-label":(e=t).active?"Hide chart "+e.text:"Show chart "+e.text}),{tabindex:0}),[_.sv("text",{x:t.maxValue?0:10,y:0,class:"start-text legend-text"},[k.verticalCenteredText(t.text)]),[m.legendShape(s.form,t),!isNaN(t.maxValue)&&!isNaN(t.minValue)&&m.legendTicks(s.form,t)]]));t="line"!==s.form?15+k.getTextWidth(t.text,a):0;d||"row"!==s.direction?(h=0,p=t<p?p:t,g=(f+=c+2)<g?g:f):p=(h+=t+c)<p?p:h}),s.valign){case"top":i="row"===s.direction?-l-f-5-("line"===s.form?15:0):"center"===s.halign?5-g:l+5;break;case"middle":i=(t-g)/2+c/2;break;case"bottom":i="row"===s.direction?t+("line"!==s.form?l:10):t+10-("center"===s.halign?0:l+g)}switch(s.halign){case"left":e=d?-p:5-("row"===s.direction?0:s.size||200);break;case"center":e=(n-p-("line"===s.form?500:0))/2;break;case"right":e=!d&&"row"===s.direction?n-p+c+("line"===s.form?-500-l:5):n+l+5}return _.sv("g",{transform:"translate("+(0<e?e:0)+", "+i+")","aria-label":"Legend",tabindex:0},u)},n.prototype._getData=function(){var i=[];if("scale"===this.config.type){var t=this.config.values,e=t.color,n=t.positiveColor,o=t.negativeColor,r=t.text,s=t.minValue,a=t.maxValue,l=t.tick,c=t.majorTick,u=t.step,d=t.tickTemplate,h=this.setCriticals(),t=h[0],h=h[1];i.push({id:I.uid(),text:r,alpha:1,fill:e,minValue:null!=s?s:t,maxValue:null!=a?a:h,positiveColor:n,negativeColor:o,active:!0,tick:l,majorTick:c,step:u,tickTemplate:d})}else if(this.config.values){var f=k.locator(this.config.values.text),p=k.locator(this.config.values.color);this._data.map(function(t,e){i.push({id:t.id,text:f(t).toString(),alpha:1,fill:p(t).toString()||k.getDefaultColor(e),active:!t.$hidden})})}else if(this.config.treeSeries){var g=this.config.treeSeries;"groupName"===this.config.type?g.forEach(function(t){i.push({id:t.id,text:t.name||t.id,alpha:1,fill:t.color,active:t.active})}):g.forEach(function(t){var e;i.push({id:t.id,text:(e=t).from&&e.to?e.from+" - "+e.to:e.less?"<= "+e.less:e.greater?">= "+e.greater:void 0,alpha:1,fill:t.color,active:t.active})})}else for(var v=0,_=g=this.config.$seriesInfo;v<_.length;v++){var m=_[v],y=m.config,b=y.fill,e=y.color,w=y.id,x=y.alpha,E=y.active,C=y.label,S=y.value,y=b&&e,r=C&&"function"==typeof C?C(m.config):C||S;i.push({id:w,text:r,fill:b||e,color:y&&e,active:E,alpha:x})}return i},n.prototype.setCriticals=function(){var e,i,n=this.config.values.value;return this._data.forEach(function(t){t[n]&&(e=!e||t[n]<e?t[n]:e,i=!i||t[n]>i?t[n]:i)}),i=10*Math.ceil(i/10),(e=10*Math.floor(e/10))===i&&(e-=10),[e,i]},i=n;function n(t,e,i){var n=this;this._data=t,this._events=i;this.config=v(v({},{form:"rect",itemPadding:20,halign:"right",valign:"top",direction:"row",type:"groupName"}),e),this.config.margin=e.margin||function(t,e,i,n){switch(e){case"middle":switch(t){case"right":return i?20:60;case"left":return 120;case"center":throw new Error("cant place legend on center, middle")}case"top":return 20;case"bottom":return i||"line"===n?20:60}}(this.config.halign,this.config.valign,o.isTreeCollection(this._data),this.config.form),this._handlers={onclick:function(t,e){return n._events.fire(r.ChartEvents.toggleSeries,[t,e])},onkeyup:function(t,e,i){i.preventDefault(),"Enter"!==i.key&&" "!==i.key||n._events.fire(r.ChartEvents.toggleSeries,[t,e])}}}e.Legend=i},function(t,e,i){"use strict";var v=this&&this.__assign||function(){return(v=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var _=i(1),m=i(0),y=i(6),b=function(t){return t.toString()},w=function(t,e){return{role:"graphics-object","aria-label":t+"-axis"+(e?", "+e:"")}};e.bottom=function(t,e,i,n){var r,s,o=e.title,a=e.textPadding,l=e.scalePadding,c=e.textTemplate,u=e.showText,d=e.scaleRotate,h=c||b,f=[],c=0;return u&&(c=a,r=d&&!isNaN(d),s=n+a,f=t.map(function(t){var e,i=t[0],n=r?"rotate("+d+" "+i+" "+s+")":"",o=["scale-text","top-text"];return r&&(e=d%360,o.push(y.getClassesForRotateScale("bottom",e))),m.sv("text",{x:i,y:s,class:o.join(" "),transform:n},[y.verticalCenteredText(h(t[1]))])})),a=_.uid(),t=null,n=m.sv("path",{class:"main-scale",d:"M0 "+n+" H"+(i-.5),id:a}),o&&(t=m.sv("text",{dx:i/2,dy:l+c},[m.sv("textPath",{href:"#"+a,class:"scale-title "},o)])),m.sv("g",v({},w("x",o||e.text)),[n,t].concat(f))},e.bottomGrid=function(t,e,i,n){for(var o,r,s,a=n.dashed,l=n.grid,c=n.targetLine,u=n.targetValue,d=t.length,h=[],f="grid-line "+(a?"dash-line":"")+" "+(l?"":"hidden-line"),p=0;p<d;p++)0===p&&0===t[p][0]&&!n.hidden||(p!==c?(r="M"+t[p][0]+" 0 V "+i,s=m.sv("path",{d:r,class:f,_ref:"line"+Math.round(t[p][0])}),h.push(s),p===d-1&&t[p][0]!==e&&(o="M"+e+" 0 V "+i,o=m.sv("path",{d:o,class:f}),h.push(o))):(o="M"+t[p][0]+" 0 V "+i,o=m.sv("path",{d:o,class:f+" spec-grid-line"}),h.push(o)));return u&&(r="M"+u*e+" 0 V "+i,s=m.sv("path",{d:r,class:f+" spec-grid-line"}),h.push(s)),m.sv("g",h)},e.top=function(t,e,i,n){var r,s,o=e.title,a=e.textPadding,l=e.scalePadding,c=e.textTemplate,u=e.showText,d=e.scaleRotate,h=c||b,f=[],c=0;return u&&(c=a,r=d&&!isNaN(d),s=-a,f=t.map(function(t){var e,i=["scale-text"],n=t[0],o=r?"rotate("+d+" "+n+" "+s+")":"";return r&&(e=d%360,i.push(y.getClassesForRotateScale("top",e))),m.sv("text",{x:n,y:s,class:i.join(" "),transform:o},[y.verticalCenteredText(h(t[1]))])})),u=_.uid(),a=m.sv("path",{d:"M0 0 H"+i,class:"main-scale",id:u}),t=null,o&&(t=m.sv("text",{dx:i/2,dy:-l-c},[m.sv("textPath",{href:"#"+u,class:"scale-title"},o)])),m.sv("g",v({},w("x",o||e.text)),[a,t].concat(f))},e.topGrid=function(t,e,i,n){for(var o,r,s=n.dashed,a=n.grid,l=n.targetLine,c=t.length,u=[],d="grid-line "+(s?"dash-line":"")+" "+(a?"":"hidden-line"),h=0;h<c;h++)0===h&&0===t[h][0]&&!n.hidden||(h!==l?(o="M"+t[h][0]+" 0 V "+i,o=m.sv("path",{d:o,class:d,_ref:"line"+Math.round(t[h][0])}),u.push(o),h===c-1&&0!==t[h][0]&&(r="M0 0 V "+i,r=m.sv("path",{d:r,class:d}),u.push(r))):(r="M"+t[h][0]+" 0 V "+i,r=m.sv("path",{d:r,class:d+" spec-grid-line"}),u.push(r)));return m.sv("g",u)},e.left=function(t,e,i,n){var s,a,l,c=e.title,u=e.textPadding,o=e.scalePadding,r=e.textTemplate,d=e.showText,h=e.scaleRotate,f=r||b,p=[],g=0;return d&&(s=y.getFontStyle("scale-text"),a=0,l=h&&!isNaN(h),p=t.map(function(t){var e,i=t[0],n=-u,o=l?"rotate("+h+" "+n+" "+i+")":"",r=["scale-text"],t=f(t[1]);return c&&(e=y.getTextWidth(t,s),a<e&&(a=e)),l?(e=h%360,r.push(y.getClassesForRotateScale("left",e))):r.push("end-text"),m.sv("text",{x:n,y:i,class:r.join(" "),transform:o},[y.verticalCenteredText(t)])}),g=a+u),r=_.uid(),d=m.sv("path",{class:"main-scale",d:"M0 "+n+" V 0.5",id:r,_ref:t.length?"line0":null}),t=null,c&&(t=m.sv("text",{dx:n/2,dy:-o-g},[m.sv("textPath",{href:"#"+r,class:"scale-title"},c)])),m.sv("g",v({},w("y",c||e.text)),[d,t].concat(p))},e.leftGrid=function(t,e,i,n){for(var o,r,s,a=n.dashed,l=n.grid,c=n.targetLine,u=n.targetValue,d=t.length,h=[],f="grid-line "+(a?"dash-line":""),p=0;p<d;p++)0===p&&t[p][0]===i&&!n.hidden||(c!==p?l&&(r="M0 "+t[p][0]+" H "+e,s=m.sv("path",{d:r,class:f}),h.push(s),p===d-1&&t[p][0]!==e&&(o="M0 0 H"+e,o=m.sv("path",{d:o,class:f}),h.push(o))):(r="M0 "+t[p][0]+" H "+e,s=m.sv("path",{d:r,class:f+" spec-grid-line"}),h.push(s)));return u&&(r="M0 "+u*i+" H "+e,s=m.sv("path",{d:r,class:f+" spec-grid-line"}),h.push(s)),m.sv("g",h)},e.right=function(t,e,s,i){var a,l,c,u=e.title,d=e.textPadding,n=e.scalePadding,o=e.textTemplate,r=e.showText,h=e.scaleRotate,f=o||b,p=[],g=0;return r&&(a=y.getFontStyle("scale-text"),l=0,c=h&&!isNaN(h),p=t.map(function(t){var e,i=f(t[1]),n=t[0],o=s+d,r=c?"rotate("+h+" "+o+" "+n+")":"",t=["scale-text"];return u&&(e=y.getTextWidth(i,a),l<e&&(l=e)),c?(e=h%360,t.push(y.getClassesForRotateScale("right",e))):t.push("start-text"),m.sv("text",{x:o,y:n,class:t.join(" "),transform:r},[y.verticalCenteredText(i)])}),g=d+l),o=_.uid(),r=m.sv("path",{d:"M"+s+" "+i+" V 0",class:"main-scale",id:o,_ref:t.length?"line0":null}),t=null,u&&(t=m.sv("text",{dx:i/2,dy:n+g},[m.sv("textPath",{href:"#"+o,class:"scale-title"},u)])),m.sv("g",v({},w("y",u||e.text)),[r,t].concat(p))},e.rightGrid=function(t,e,i,n){for(var o,r,s,a=n.dashed,l=n.grid,c=n.targetLine,u=t.length,d=[],h="grid-line "+(a?"dash-line":""),f=0;f<u;f++)0===f&&t[f][0]===i&&!n.hidden||(c!==f?l&&(r="M0 "+t[f][0]+" H "+e,s=m.sv("path",{d:r,class:h}),d.push(s),f===u-1&&t[f][0]!==e&&(o="M0 0 H"+e,o=m.sv("path",{d:o,class:h}),d.push(o))):(r="M0 "+t[f][0]+" H "+e,s=m.sv("path",{d:r,class:h+" spec-grid-line"}),d.push(s)));return m.sv("g",d)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(88),o=i(90),r=i(193),s=i(194),a=i(58),l=i(195),c=i(196),u=i(197),d=i(198),h=i(199),f=i(200),p=i(201),i=i(202),i={line:a.default,spline:h.default,area:n.default,splineArea:f.default,scatter:d.default,pie:l.default,pie3D:c.default,donut:s.default,radar:u.default,bar:o.default,xbar:r.default,treeMap:p.default,calendarHeatMap:i.default};e.default=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,_=i(0),a=i(6),i=i(56),o=(s=i.default,o(l,s),l.prototype.paint=function(t,e,i){s.prototype.paint.call(this,t,e);var n=[];return this._form(t,e,n,i),this._markers(n),_.sv("g",r(r({class:"seria",_key:this.id},{"aria-label":"chart "+(this.config.value||"")}),{tabindex:0}),n)},l.prototype.paintformAndMarkers=function(t,e,i){s.prototype.paint.call(this,t,e);var n=[],o=[];return this._form(t,e,n,i),this._markers(o),[_.sv("g",{class:"seria",_key:this.id},n),_.sv("g",{class:"seria_markers",_key:this.id+"_markers"},o)]},l.prototype._markers=function(t){var e,i,n=this;this.config.pointType&&(e=this.config.pointColor||this.config.color,i=this._getPointType(this.config.pointType,e),t.push.apply(t,this._points.map(function(t){return i(t[0],t[1],a.calcPointRef(t[2],n.id))})))},l.prototype._form=function(t,i,e,n){var o,r,s="chart "+this.config.type+" "+(this.config.css||"")+" "+(this.config.dashed?"dash-line":""),a=this.config,l=a.id,c=a.fill,u=a.alpha,d=a.color,h=a.strokeWidth,f=this._points,a=f[f.length-1],p="";if(n){for(var g=n.length-1;0<=g;g--){var v=n[g];p+=g===f.length-1?"M"+v[0]+" "+v[1]+" ":"L"+v[0]+" "+v[1]+" "}p+=f.map(function(t,e){return e?"L "+t[0]+" "+t[1]:"V "+t[1]}).join(" ")+"Z"}else p+=f.map(function(t,e){return e?"L"+t[0]+" "+t[1]:"M0 "+i+" L0 "+t[1]+" L"+t[0]+" "+t[1]}).join(" ")+("L"+t+" "+a[1])+" V "+i;h&&(o=f.length-1,r=function(t){return t===o?-.5:t?0:.5},a=f.map(function(t,e){return e?"L"+(t[0]+r(e))+" "+t[1]:"M0 "+t[1]+" L0 "+(t[1]+r(e))+" L"+(t[0]+r(e))+" "+t[1]}).join(" ")+("L"+t+" "+a[1]),d=_.sv("path",{d:a,"stroke-width":h,stroke:d,fill:"none",class:s}),e.push(d));u=_.sv("path",{id:"seria"+l,d:p,class:s,fill:c,_ref:l,"fill-opacity":u,stroke:"none"});return e.push(u),e},l.prototype._setDefaults=function(t){var e={alpha:.3,strokeWidth:2,fill:t.color||"#5E83BA",color:"#5E83BA",active:!0,tooltip:!0,pointType:"empty"};this.config=r(r({},e),t);e=this.config.pointType,t=this.config.pointColor||this.config.color;e&&(this._drawPointType=this._getPointType(e,t))},l);function l(){return null!==s&&s.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i(0),a=i(6),n={circle:function(t,e,i,n,o,r){t={_ref:r,cx:n,cy:o,r:4,class:"figure point-circle",fill:e,stroke:t,"stroke-width":2};return s.sv("circle",t)},rect:function(t,e,i,n,o,r){t={_ref:r,x:n-4,y:o-4,width:8,height:8,class:"figure point-rect",fill:e,stroke:t,"stroke-width":2};return s.sv("rect",t)},rhombus:function(t,e,i,n,o,r){t={_ref:r,points:n-5+","+o+" "+n+","+(o+5)+" "+(n+5)+","+o+" "+n+","+(o-5),class:"figure point-rhombus",fill:e,stroke:t,"stroke-width":2};return s.sv("polygon",t)},triangle:function(t,e,i,n,o,r){t={_ref:r,points:n+","+(o-5)+" "+(n+5)+","+(o+5)+" "+(n-5)+","+(o+5),class:"figure point-triangle",fill:e,stroke:t,"stroke-width":2};return s.sv("polygon",t)},simpleCircle:function(t,e,i,n,o,r){t={_ref:r,cx:n,cy:o,r:3,class:"figure point-simple-circle",fill:t};return s.sv("circle",t)},simpleRect:function(t,e,i,n,o,r){t={_ref:r,x:n-3,y:o-3,width:6,height:6,class:"figure point-simple-rect",fill:t};return s.sv("rect",t)},empty:function(){return null}},o={circle:function(t,e,i,n,o,r){return'<circle class="figure point-circle" _ref="'+r+'" cx="'+n+'" cy="'+o+'" r="4" fill="'+e+'" stroke="'+t+'" stroke-width="2"/>'},rect:function(t,e,i,n,o,r){return'<rect _ref="'+r+'" x="'+(n-4)+'" y="'+(o-4)+'" width="8" height="8" class="figure point-rect" fill="'+e+'" stroke="'+t+'" stroke-width="2"/>'},rhombus:function(t,e,i,n,o,r){return'<polygon _ref="'+r+'" points="'+(n-5)+","+o+" "+n+","+(o+5)+" "+(n+5)+","+o+" "+n+","+(o-5)+'" class="figure point-rhombus" fill="'+e+'" stroke="'+t+'" stroke-width="2"/>'},triangle:function(t,e,i,n,o,r){return'<polygon _ref="'+r+'" points="'+n+","+(o-5)+" "+(n+5)+","+(o+5)+" "+(n-5)+","+(o+5)+'" class="figure point-triangle" fill="'+e+'" stroke="'+t+'" stroke-width="2"/>'},simpleCircle:function(t,e,i,n,o,r){return'<circle _ref="'+r+'" cx="'+n+'" cy="'+o+'" r="3" class="figure point-simple-circle" fill="'+t+'"/>'},simpleRect:function(t,e,i,n,o,r){return'<rect _ref="id" x="'+(n-3)+'" y="'+(o-3)+'" width="6" height="6" class="figure point-simple-rect" fill="'+t+'"/>'},empty:function(){return null}};function l(t){t=n[t.toString()];if(!t)throw new Error("unknown point type");return t}function c(t){t=o[t.toString()];if(!t)throw new Error("unknown point type");return t}e.getHelper=l,e.getHTMLHelper=c,e.getShadeHelper=function(t,n){var o=l(t);n=n||"none";var r=a.getColorShade(n,.2);return function(t,e,i){return o(n,r,"",t,e,i)}},e.getShadeHTMLHelper=function(t,n){var o=c(t);n=n||"none";var r=a.getColorShade(n,.2);return function(t,e,i){return o(n,r,"",t,e,i)}}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),g=this&&this.__assign||function(){return(g=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(1),v=i(0),_=i(6),i=i(56),o=(r=i.default,o(a,r),a.prototype.addScale=function(t,e){r.prototype.addScale.call(this,t,e),e.addPadding()},a.prototype.seriesShift=function(t){return this._shift=t,this.config.barWidth},a.prototype.paint=function(t,e,i){r.prototype.paint.call(this,t,e);if(!this.config.active)return null;var n=[];this._gradient&&n.push(v.sv("defs",[this._gradient()]));var o="chart "+this.config.type+" "+(this.config.css||"")+" "+(this.config.dashed?"dash-line":""),i=this._getForm(this._points,o,t,e,i),n=n.concat(i);return v.sv("g",g(g({class:"seria",_key:this.id},{"aria-label":"chart "+(this.config.value||"")}),{tabindex:0}),n)},a.prototype.getTooltipType=function(t,e,i){return void 0!==this.config.baseLine&&this._baseLinePosition<i?"bot":"top"},a.prototype._getClosestDist=function(t,e,i,n){return this.config.stacked&&e<n?1/0:Math.abs(t-i)},a.prototype._path=function(t,e){return t[0]+=this._shift,"\nM "+(t[0]-this.config.barWidth/2)+" "+e+"\nV "+t[1]+"\nh "+this.config.barWidth+"\nV "+e},a.prototype._base=function(t){var e=this.config.baseLine;return this._baseLinePosition=void 0!==e?this.yScale.point(e)*t:t-1},a.prototype._text=function(t,e,i){var n=t[0],t=(e+t[1])/2;return{x:n,y:t,class:"bar-text",transform:i&&!isNaN(i)?"rotate("+i+" "+n+" "+t+")":""}},a.prototype._getForm=function(t,i,e,n,o){function r(t){return o?o[t][1]:p}var s=this,a=this.config,l=a.baseLine,c=a.fill,u=a.alpha,d=a.showText,h=a.showTextTemplate,f=a.showTextRotate,a=[],p=this._base(n),n=t.map(function(t,e){return v.sv("path",g(g({_key:"seria"+s.config.id+e,_ref:_.calcPointRef(t[2],s.config.id),d:s._path(t,r(e)),class:i,fill:c,onclick:[s._handlers.onclick,t[2],s.config.value],onmousemove:[s._handlers.onmousemove,t[2],s.config.id],onmouseleave:[s._handlers.onmouseleave,t[2],s.config.id],"fill-opacity":u},{role:"graphics-symbol","aria-roledescription":"bar","aria-label":function(t,e,i){void 0===i&&(i=0);var n=e[3],o=i,e=e[4];return e<i&&(o=e,e=i),"xbar"===t?"bar y="+n+", x from "+o+" to "+e:"bar x="+n+", y from "+o+" to "+e}(s.config.type,t,l)}),{tabindex:0}))});return a.push.apply(a,n),(d||h||f)&&!1!==d&&(t=t.map(function(t,e){var i,n,o=s._getText(t);return i=t,n=e,16<Math.abs(r(n)-i[1])?v.sv("text",g(g({},s._text(t,r(e),f)),{"aria-hidden":"true"}),[h?_.verticalCenteredText(h(o)):_.verticalCenteredText(o)]):null}),a.push.apply(a,t)),a},a.prototype._getText=function(t){return t[4].toString()},a.prototype._setDefaults=function(t){this.config=g(g({},{barWidth:30,alpha:1,active:!0,tooltip:!0,pointType:"empty"}),t);var e,i,n=this.config.pointType,t=this.config.pointColor||this.config.color;n&&(this.config.pointType=n,this._drawPointType=this._getPointType(n,t)),this.config.gradient&&(e="gradient"+s.uid(),i=this.config.gradient(this.config.fill),this._gradient=function(){return _.linearGradient(i,e)},this.config.fill="url(#"+e+")")},a);function a(){var t=null!==r&&r.apply(this,arguments)||this;return t._shift=0,t}e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var i=t.length;if(i<3)a=t;else for(var n=t[0],o=t[0],r=t[1],s=t[2],a=[t[0].slice(0,2)],l=1;l<i;l++)a.push([(-n[0]+6*o[0]+r[0])/6,(-n[1]+6*o[1]+r[1])/6,(o[0]+6*r[0]-s[0])/6,(o[1]+6*r[1]-s[1])/6,r[0],r[1]]),n=o,o=r,r=s,s=t[l+2]||s;for(var c="",l=0;l<a.length;l++){var u=a[l],d=u.length;l?c+=5<d?"C"+u[0]+" "+u[1]+"\n\t\t\t\t"+u[2]+" "+u[3]+"\n\t\t\t\t"+u[4]+" "+u[5]:5===d?"L"+u[0]+" "+u[1]:"S"+u[0]+" "+u[1]+"\n\t\t\t\t"+u[2]+" "+u[3]:(c+=e?"L":"M",c+=5===d?u[0]+" "+u[1]:u[d-2]+" "+u[d-1])}return c}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=i(0),i=(n.prototype.add=function(t){this._series.push(t)},n.prototype.dataReady=function(e){return this._toPaint=this._series.filter(function(t){t=t.dataReady(e);return!!t.length&&(e=t,!0)}),e||[]},n.prototype.getPoints=function(){return this._toPaint.length?this._toPaint[0].getPoints().concat(this._toPaint[this._toPaint.length-1].getPoints()):[]},n.prototype.paint=function(n,o,r){var s=[],a=[];return this._toPaint.forEach(function(t){var e,i;t.paintformAndMarkers?(i=(e=t.paintformAndMarkers(n,o,r))[0],e=e[1],s.push(i),a.push(e)):(i=t.paint(n,o,r),s.push(i)),r=t.getPoints()}),l.sv("g",s.concat(a))},n);function n(){this._series=[]}e.default=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),d=this&&this.__assign||function(){return(d=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(1),h=i(0),a=i(35),f=i(207),o=(r=a.List,o(l,r),l.prototype.scrollTo=function(t){var e=this.getRootView();e&&e.node&&e.node.el&&void 0!==t&&(e=this.getRootNode(),this._scrollTo(t,e))},l.prototype._scrollTo=function(t,e){var i,n,o,r;!e||-1!==(o=this.data.getIndex(t))&&(i=this.config.virtual,r=(t=function(t,e,i){var n=0;if(!i)return n;for(;i<=t+e;)n++,t=t+e-i;return n}(o,n=this.config.itemsInRow-(null===(r=e.lastElementChild)||void 0===r?void 0:r.children.length)||0,e.children.length*this.config.itemsInRow))*n,n=Math.floor((o+r)/this.config.itemsInRow),t=e.children[n-e.children.length*t],(i||t)&&(o=t.children[(o+r)%this.config.itemsInRow],r=parseInt(this.config.gap.toString().replace("px",""),null),o.offsetTop>=e.clientHeight+e.scrollTop-o.clientHeight?e.scrollTop=o.offsetTop-e.clientHeight+o.clientHeight+r:o.offsetTop<e.scrollTop-r&&(e.scrollTop=o.offsetTop-r)))},l.prototype._didRedraw=function(t){var e=t.node.el,i=e.scrollHeight>e.offsetHeight,e=t.node.attrs.class.replace(" dhx_dataview--has-scroll",""),e=i?e+" dhx_dataview--has-scroll":e;t.node.patch({class:e})},l.prototype._renderItem=function(t,e){function i(t){return parseFloat(t)}var n=this.config,o=n.itemsInRow,r=n.gap,s=n.template,a=n.itemHeight,l=s?s(t):t.htmlContent,c=t.id==this._focus,u=(e+1)%this.config.itemsInRow==0;if(t.id==this._edited)return f.getEditor(t,this).toHTML(u);n=t.id.toString(),e=this.data.getMetaMap(t);return h.el("div",d(d({class:"dhx_dataview-item"+(e&&e.selected?" dhx_dataview-item--selected":"")+(c?" dhx_dataview-item--focus":"")+(e&&e.drop&&!this._edited?" dhx_dataview-item--drophere":"")+(e&&e.drag&&!this._edited?" dhx_dataview-item--dragtarget":"")+(this.config.dragMode&&!this._edited?" dhx_dataview-item--drag":"")+(i(r)?" dhx_dataview-item--with-gap":"")+(t.css?" "+t.css:"")+(u?" dhx_dataview-item--last-item-in-row":""),style:{width:"calc("+100/o+"% - "+i(r)+" * "+(o-1)/o+"px)","margin-right":u?"":r,height:s?null:a},_key:n,"data-dhx-id":n,_ref:n},this.getDataViewItemAriaAttrs(this,t)),{tabindex:c?0:-1}),l?[h.el(".dhx_dataview-item__inner-html",{".innerHTML":l,role:"presentation"})]:t.value||t.text||t.value)},l.prototype._renderList=function(){var n=this,t=this.data.getRawData(0,-1),e=this.config,o=e.itemsInRow,i=e.css,r=e.gap,s=0,t=t.reduce(function(t,e,i){return 0===s&&t.push([]),t[t.length-1].push(n._renderItem(e,i)),s=(s+1)%o,t},[]);return h.el("",d(d(d(d({},this._handlers),{"data-dhx-widget-id":this._uid,class:(i||"")+" dhx_widget dhx_dataview"+(this.config.multiselection&&this.selection.getItem()?" dhx_no-select--pointer":""),style:{height:this.config.height}}),this.getDataViewAriaAttrs(this.config,this.data.getLength(),t.length,o)),{tabindex:0}),t.map(function(t,e){return h.el(".dhx_dataview-row",{style:{margin:r},"aria-label":"Row "+(e+1)},t)}))},l.prototype._getHotkeys=function(){var e=this,t=r.prototype._getHotkeys.call(this);return t.arrowUp=function(t){e.moveFocus(a.MOVE_UP,e.config.itemsInRow),e._changed&&(e._changed=!1),t.preventDefault()},t.arrowDown=function(t){e.moveFocus(a.MOVE_DOWN,e.config.itemsInRow),e._changed&&(e._changed=!1),t.preventDefault()},t.arrowLeft=function(t){e.moveFocus(a.MOVE_UP),e._changed&&(e._changed=!1),t.preventDefault()},t.arrowRight=function(t){e.moveFocus(a.MOVE_DOWN),e._changed&&(e._changed=!1),t.preventDefault()},t},l.prototype.getDataViewItemAriaAttrs=function(t,e){var i,n,o;return d(d({role:"option","aria-selected":e.$selected?"true":"false"},(o=e,(n=t).config.dragMode&&!n._edited?{"aria-grabbed":Boolean(o.$dragtarget&&!n._edited).toString()}:{})),(i=t).config.editable?{"aria-roledescription":i._edited?"Press Enter to stop editing":"Double click to edit content"}:{})},l.prototype.getDataViewAriaAttrs=function(t,e,i,n){return{role:"listbox","aria-label":"Dataview, "+e+" options on "+i+" rows, "+n+" options per row."+(t.editable?" Content is editable.":""),"aria-multiselectable":t.selection&&t.multiselection?"true":"false","aria-readonly":t.editable?"false":"true"}},l);function l(t,e){return void 0===e&&(e={}),r.call(this,t,s.extend({itemsInRow:1,gap:"0px"},e))||this}e.DataView=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.DataViewEvents||(e.DataViewEvents={})).click="click",e.doubleClick="doubleclick",e.focusChange="focuschange",e.beforeEditStart="beforeEditStart",e.afterEditStart="afterEditStart",e.beforeEditEnd="beforeEditEnd",e.afterEditEnd="afterEditEnd",e.itemRightClick="itemRightClick",e.itemMouseOver="itemMouseOver",e.contextmenu="contextmenu"},function(t,f,p){"use strict";(function(t){var n,e=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},l=this&&this.__rest||function(t,e){var i={};for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(i[o[n]]=t[o[n]]);return i},b=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(f,"__esModule",{value:!0});var o,r=p(2),s=p(5),a=p(11),c=p(1),w=p(211),x=p(212),E=p(96),C=p(213),S=p(39),k=p(214),I=p(216),O=p(217),P=p(218),D=p(219),V=p(220),u=p(7),M=p(97),T=p(221),H=p(222),F=p(223),R=p(224),L=p(225),A=p(99),j=p(226),$=p(4),d=p(0),e=(o=s.View,e(h,o),h.prototype.paint=function(){o.prototype.paint.call(this),this.layout.paint()},h.prototype.send=function(n,o,r){var s=this;if(void 0===o&&(o="POST"),this.events.fire($.FormEvents.beforeSend))return new t(function(t,e){var i=new XMLHttpRequest;switch(i.onload=function(){200<=i.status&&i.status<300?t(i.response||i.responseText):e({status:i.status,statusText:i.statusText})},i.onloadend=function(){i.readyState===XMLHttpRequest.DONE&&200===i.status&&s.events.fire($.FormEvents.afterSend)},i.onerror=function(){e({status:i.status,statusText:i.statusText})},"GET"===o&&(n+="?"+encodeURIComponent(JSON.stringify(s.getValue()))),i.open(o,n),r||i.setRequestHeader("Content-Type","application/json"),o){case"POST":s._send(),i.send(r?s.getValue(!0):JSON.stringify(s.getValue()));break;case"DELETE":case"PUT":i.send(r?s.getValue(!0):JSON.stringify(s.getValue()));break;case"GET":default:i.send()}})},h.prototype.clear=function(t){switch(t){case $.ClearMethod.value:this._clear();break;case $.ClearMethod.validation:this._clearValidate();break;default:this._clear(),this._clearValidate()}this.paint()},h.prototype.setValue=function(t){for(var e in t)for(var i in this._attachments)"function"==typeof this._attachments[i].setValue&&this._attachments[i].config.name===e&&this._attachments[i].setValue(t[e])},h.prototype.getValue=function(t){if(t){var e,n=new FormData,o=this;for(e in this._state)!function(i){Array.isArray(o._state[i])?o._state[i].forEach(function(t,e){return n.append(i+"["+e+"]",t)}):n.append(i,o._state[i])}(e);return n}return i({},this._state)},h.prototype.getItem=function(t){for(var e in this._attachments)if(e==t)return this._attachments[e]},h.prototype.validate=function(t){for(var e in void 0===t&&(t=!1),this._isValid=!0,this._attachments)"function"==typeof this._attachments[e].validate&&u.isVerify(this._attachments[e].config)&&!this._attachments[e].validate(t)&&(this._isValid=!1,t||this.events.fire($.FormEvents.validationFail,[e,this._attachments[e]]));return this._isValid},h.prototype.setProperties=function(t,e){if("string"==typeof t&&e&&!c.isEmptyObj(e))for(var i in this._attachments)"function"==typeof this._attachments[i].setProperties&&i===t&&this._attachments[i].setProperties(e);if("object"==typeof t&&!c.isEmptyObj(t))for(var i in this._attachments)"function"!=typeof this._attachments[i].setProperties||c.isEmptyObj(t[i])||this._attachments[i].setProperties(t[i])},h.prototype.getProperties=function(t){if(t)for(var e in this._attachments)if("function"==typeof this._attachments[e].getProperties&&e===t)return this._attachments[e].getProperties();var i={};for(e in this._attachments)"function"==typeof this._attachments[e].getProperties&&(i[e]=this._attachments[e].getProperties());return i},h.prototype.show=function(){if(this.config.hidden||Object.values(this._attachments).some(function(t){return!t.config.hidden}))for(var t in this._formContainerShow(),this._attachments)"function"==typeof this._attachments[t].show&&this._attachments[t].show()},h.prototype.hide=function(t){if(!this.config.hidden||t)for(var e in this._formContainerHide(),this._attachments)"function"==typeof this._attachments[e].hide&&this._attachments[e].hide(t)},h.prototype.setFocus=function(t){for(var e in this._attachments){var i=this._attachments[e];"radiogroup"!==i.config.type&&"checkboxgroup"!==i.config.type||i.focus(t),i.config.name===t&&i.focus()}},h.prototype.blur=function(t){for(var e in t||this.forEach(function(t){"function"==typeof t.blur&&t.blur()}),this._attachments){var i=this._attachments[e];"radiogroup"!==i.config.type&&"checkboxgroup"!==i.config.type||i.blur(t),i.config.name===t&&i.blur()}},h.prototype.isVisible=function(t){if(!t)return!this.config.hidden;for(var e in this._attachments)if(e===t)return!this._attachments[e].config.hidden},h.prototype.disable=function(){for(var t in this.config.disabled=!0,this._attachments)"function"==typeof this._attachments[t].disable&&this._attachments[t].disable()},h.prototype.enable=function(){for(var t in this.config.disabled=!1,this._attachments)"function"==typeof this._attachments[t].enable&&this._attachments[t].enable()},h.prototype.isDisabled=function(t){if(!t)return this.config.disabled;for(var e in this._attachments)if(e===t)return this._attachments[e].config.disabled},h.prototype.forEach=function(t){for(var e=Object.values(this._attachments),i=0;i<e.length;i++)t.call(this,e[i],i,e)},h.prototype.destructor=function(){this.events&&this.events.clear(),this.layout&&this.layout.destructor(),this.config=this._attachments=this._state=this._uid=this.container=this.events=this._isValid=null,this.unmount()},h.prototype.getRootView=function(){return this.layout.getRootView()},h.prototype._addLayoutItem=function(t){var e=t.id=t.id||c.uid(),i=t.name=t.name||e.toString();t.type=t.type&&t.type.toLowerCase();var n=t.css,e=t.padding,o=l(t,["css","padding"]),r=t.width,s=t.height,a=n?n+" dhx_form-element":"dhx_form-element",n="spacer"!==t.type;switch(n&&!r&&(r="content"),n&&!s&&(s="content"),o.type){case"button":o.full&&(a+=" dhx_button--full-gravity");break;case"text":"content"===r&&(a+=" dhx_form-element--fit-content");break;case"simplevault":o.$vaultHeight=s}this._initItemHandlers(t,i);e={id:i,width:r,height:s,padding:e,css:a};return"fieldset"===t.type&&(e.$fieldset=!0,e.label=t.label,e.labelAlignment=t.labelAlignment,this._createLayoutConfig(t,e)),e},h.prototype._initItemHandlers=function(e,n){var o=this;switch(e.type){case"avatar":var t=this._attachments[n]=new R.Avatar(null,e);this._state[n]=t.getValue(),t.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),t.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),t.events.on($.ItemEvent.beforeHide,function(t,e){if(!e)return o.events.fire($.FormEvents.beforeHide,[n,t])}),t.events.on($.ItemEvent.beforeShow,function(t){return o.events.fire($.FormEvents.beforeShow,[n,t])}),t.events.on($.ItemEvent.afterHide,function(t,e){o.layout.getCell(n).hide(),e||o.events.fire($.FormEvents.afterHide,[n,t])}),t.events.on($.ItemEvent.afterShow,function(t){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t])}),t.events.on($.ItemEvent.beforeValidate,function(t){return o.events.fire($.FormEvents.beforeValidate,[n,t])}),t.events.on($.ItemEvent.afterValidate,function(t,e){o.events.fire($.FormEvents.afterValidate,[n,t,e])}),t.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),t.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),t.events.on($.ItemEvent.focus,function(t){o.events.fire($.FormEvents.focus,[n,t])}),t.events.on($.ItemEvent.blur,function(t){o.events.fire($.FormEvents.blur,[n,t])}),t.events.on($.ItemEvent.keydown,function(t){o.events.fire($.FormEvents.keydown,[t,n])});break;case"toggle":var i=this._attachments[n]=new A.ToggleButton(null,e);this._state[n]=i.getValue(),i.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),i.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),i.events.on($.ItemEvent.beforeHide,function(t,e){if(!e)return o.events.fire($.FormEvents.beforeHide,[n,t])}),i.events.on($.ItemEvent.beforeShow,function(t){return o.events.fire($.FormEvents.beforeShow,[n,t])}),i.events.on($.ItemEvent.afterHide,function(t,e){o.layout.getCell(n).hide(),e||o.events.fire($.FormEvents.afterHide,[n,t])}),i.events.on($.ItemEvent.afterShow,function(t){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t])}),i.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),i.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),i.events.on($.ItemEvent.focus,function(t){o.events.fire($.FormEvents.focus,[n,t])}),i.events.on($.ItemEvent.blur,function(t){o.events.fire($.FormEvents.blur,[n,t])}),i.events.on($.ItemEvent.keydown,function(t){o.events.fire($.FormEvents.keydown,[t,n])});break;case"togglegroup":var r=this._attachments[n]=new j.ToggleGroup(null,e);this._state[n]=r.getValue(),r.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),r.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),r.events.on($.ItemEvent.beforeHide,function(t,e,i){if(!i)return o.events.fire($.FormEvents.beforeHide,[n,t,e])}),r.events.on($.ItemEvent.beforeShow,function(t,e){return o.events.fire($.FormEvents.beforeShow,[n,t,e])}),r.events.on($.ItemEvent.afterHide,function(t,e,i){r.isVisible()||o.layout.getCell(n).hide(),i||o.events.fire($.FormEvents.afterHide,[n,t,e])}),r.events.on($.ItemEvent.afterShow,function(t,e){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t,e])}),r.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),r.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),r.events.on($.ItemEvent.focus,function(t,e){o.events.fire($.FormEvents.focus,[n,t,e])}),r.events.on($.ItemEvent.blur,function(t,e){o.events.fire($.FormEvents.blur,[n,t,e])}),r.events.on($.ItemEvent.keydown,function(t,e){o.events.fire($.FormEvents.keydown,[t,n,e])});break;case"button":var s=this._attachments[n]=new x.Button(null,e);s.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),s.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),s.events.on($.ItemEvent.click,function(t){t.preventDefault(),o.events.fire($.FormEvents.click,[n,t]),o.events.fire($.FormEvents.buttonClick,[n,t]),s.config.submit&&o.validate()&&s.config.url&&o.send(s.config.url)}),s.events.on($.ItemEvent.beforeHide,function(t,e){if(!e)return o.events.fire($.FormEvents.beforeHide,[n,t])}),s.events.on($.ItemEvent.beforeShow,function(t){return o.events.fire($.FormEvents.beforeShow,[n,t])}),s.events.on($.ItemEvent.afterHide,function(t,e){o.layout.getCell(n).hide(),e||o.events.fire($.FormEvents.afterHide,[n,t])}),s.events.on($.ItemEvent.afterShow,function(t){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t])}),s.events.on($.ItemEvent.focus,function(t){o.events.fire($.FormEvents.focus,[n,t])}),s.events.on($.ItemEvent.blur,function(t){o.events.fire($.FormEvents.blur,[n,t])}),s.events.on($.ItemEvent.keydown,function(t){o.events.fire($.FormEvents.keydown,[t,n])});break;case"datepicker":var a=this._attachments[n]=new w.DatePicker(null,e);this._state[n]=a.getValue("Date"===e.valueFormat),a.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),a.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o._state[n]=a.getValue("Date"===e.valueFormat),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),a.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),a.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),a.events.on($.ItemEvent.beforeHide,function(t,e){if(!e)return o.events.fire($.FormEvents.beforeHide,[n,t])}),a.events.on($.ItemEvent.beforeShow,function(t){return o.events.fire($.FormEvents.beforeShow,[n,t])}),a.events.on($.ItemEvent.afterHide,function(t,e){o.layout.getCell(n).hide(),e||o.events.fire($.FormEvents.afterHide,[n,t])}),a.events.on($.ItemEvent.afterShow,function(t){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t])}),a.events.on($.ItemEvent.beforeValidate,function(t){return o.events.fire($.FormEvents.beforeValidate,[n,t])}),a.events.on($.ItemEvent.afterValidate,function(t,e){o.events.fire($.FormEvents.afterValidate,[n,t,e])}),a.events.on($.ItemEvent.focus,function(t){o.events.fire($.FormEvents.focus,[n,t])}),a.events.on($.ItemEvent.blur,function(t){o.events.fire($.FormEvents.blur,[n,t])}),a.events.on($.ItemEvent.keydown,function(t){o.events.fire($.FormEvents.keydown,[t,n])});break;case"checkbox":var l=this._attachments[n]=new E.Checkbox(null,e);this._state[n]=l.getValue(),l.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),l.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o._state[n]=l.getValue(),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),l.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),l.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),l.events.on($.ItemEvent.beforeHide,function(t,e){if(!e)return o.events.fire($.FormEvents.beforeHide,[n,t])}),l.events.on($.ItemEvent.beforeShow,function(t){return o.events.fire($.FormEvents.beforeShow,[n,t])}),l.events.on($.ItemEvent.afterHide,function(t,e){o.layout.getCell(n).hide(),e||o.events.fire($.FormEvents.afterHide,[n,t])}),l.events.on($.ItemEvent.afterShow,function(t){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t])}),l.events.on($.ItemEvent.beforeValidate,function(t){return o.events.fire($.FormEvents.beforeValidate,[n,t])}),l.events.on($.ItemEvent.afterValidate,function(t,e){o.events.fire($.FormEvents.afterValidate,[n,t,e])}),l.events.on($.ItemEvent.focus,function(t){o.events.fire($.FormEvents.focus,[n,t])}),l.events.on($.ItemEvent.blur,function(t){o.events.fire($.FormEvents.blur,[n,t])}),l.events.on($.ItemEvent.keydown,function(t){o.events.fire($.FormEvents.keydown,[t,n])});break;case"checkboxgroup":var c=this._attachments[n]=new C.CheckboxGroup(null,e);this._state[n]=c.getValue(),c.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),c.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o._state[n]=c.getValue(),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),c.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),c.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),c.events.on($.ItemEvent.beforeHide,function(t,e,i){if(!i)return o.events.fire($.FormEvents.beforeHide,[n,t,e])}),c.events.on($.ItemEvent.beforeShow,function(t,e){return o.events.fire($.FormEvents.beforeShow,[n,t,e])}),c.events.on($.ItemEvent.afterHide,function(t,e,i){c.isVisible()||o.layout.getCell(n).hide(),i||o.events.fire($.FormEvents.afterHide,[n,t,e])}),c.events.on($.ItemEvent.afterShow,function(t,e){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t,e])}),c.events.on($.ItemEvent.beforeValidate,function(t){return o.events.fire($.FormEvents.beforeValidate,[n,t])}),c.events.on($.ItemEvent.afterValidate,function(t,e){o.events.fire($.FormEvents.afterValidate,[n,t,e])}),c.events.on($.ItemEvent.focus,function(t,e){o.events.fire($.FormEvents.focus,[n,t,e])}),c.events.on($.ItemEvent.blur,function(t,e){o.events.fire($.FormEvents.blur,[n,t,e])}),c.events.on($.ItemEvent.keydown,function(t,e){o.events.fire($.FormEvents.keydown,[t,n,e])});break;case"combo":var u=this._attachments[n]=new D.Combo(null,e);this._state[n]=u.getValue(),u.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),u.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o._state[n]=u.getValue(),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),u.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),u.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),u.events.on($.ItemEvent.beforeHide,function(t,e){if(!e)return o.events.fire($.FormEvents.beforeHide,[n,t])}),u.events.on($.ItemEvent.beforeShow,function(t){return o.events.fire($.FormEvents.beforeShow,[n,t])}),u.events.on($.ItemEvent.afterHide,function(t,e){o.layout.getCell(n).hide(),e||o.events.fire($.FormEvents.afterHide,[n,t])}),u.events.on($.ItemEvent.afterShow,function(t){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t])}),u.events.on($.ItemEvent.beforeValidate,function(t){return o.events.fire($.FormEvents.beforeValidate,[n,t])}),u.events.on($.ItemEvent.afterValidate,function(t,e){o.events.fire($.FormEvents.afterValidate,[n,t,e])}),u.events.on($.ItemEvent.focus,function(t){o.events.fire($.FormEvents.focus,[n,t])}),u.events.on($.ItemEvent.blur,function(t){o.events.fire($.FormEvents.blur,[n,t])}),u.events.on($.ItemEvent.keydown,function(t,e){o.events.fire($.FormEvents.keydown,[t,n,e])});break;case"input":var d=this._attachments[n]=new S.Input(null,e);this._state[n]=d.getValue(),d.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),d.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o._state[n]=d.getValue(),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),d.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),d.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),d.events.on($.ItemEvent.beforeHide,function(t,e){if(!e)return o.events.fire($.FormEvents.beforeHide,[n,t])}),d.events.on($.ItemEvent.beforeShow,function(t){return o.events.fire($.FormEvents.beforeShow,[n,t])}),d.events.on($.ItemEvent.afterHide,function(t,e){o.layout.getCell(n).hide(),e||o.events.fire($.FormEvents.afterHide,[n,t])}),d.events.on($.ItemEvent.afterShow,function(t){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t])}),d.events.on($.ItemEvent.beforeValidate,function(t){return o.events.fire($.FormEvents.beforeValidate,[n,t])}),d.events.on($.ItemEvent.afterValidate,function(t,e){o.events.fire($.FormEvents.afterValidate,[n,t,e])}),d.events.on($.ItemEvent.focus,function(t){o.events.fire($.FormEvents.focus,[n,t])}),d.events.on($.ItemEvent.blur,function(t){o.events.fire($.FormEvents.blur,[n,t])}),d.events.on($.ItemEvent.keydown,function(t){o.events.fire($.FormEvents.keydown,[t,n])});break;case"radiogroup":var h=this._attachments[n]=new k.RadioGroup(null,e);this._state[n]=h.getValue(),h.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),h.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o._state[n]=h.getValue(),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),h.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),h.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),h.events.on($.ItemEvent.beforeHide,function(t,e,i){if(!i)return o.events.fire($.FormEvents.beforeHide,[n,t,e])}),h.events.on($.ItemEvent.beforeShow,function(t,e){return o.events.fire($.FormEvents.beforeShow,[n,t,e])}),h.events.on($.ItemEvent.afterHide,function(t,e,i){h.isVisible()||o.layout.getCell(n).hide(),i||o.events.fire($.FormEvents.afterHide,[n,t,e])}),h.events.on($.ItemEvent.afterShow,function(t,e){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t,e])}),h.events.on($.ItemEvent.beforeValidate,function(t){return o.events.fire($.FormEvents.beforeValidate,[n,t])}),h.events.on($.ItemEvent.afterValidate,function(t,e){o.events.fire($.FormEvents.afterValidate,[n,t,e])}),h.events.on($.ItemEvent.focus,function(t,e){o.events.fire($.FormEvents.focus,[n,t,e])}),h.events.on($.ItemEvent.blur,function(t,e){o.events.fire($.FormEvents.blur,[n,t,e])}),h.events.on($.ItemEvent.keydown,function(t,e){o.events.fire($.FormEvents.keydown,[t,n,e])});break;case"select":var f=this._attachments[n]=new I.Select(null,e);this._state[n]=f.getValue(),f.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),f.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o._state[n]=f.getValue(),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),f.events.on($.ItemEvent.changeOptions,function(t){o.layout.getCell(n).config.options=b(t)}),f.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),f.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),f.events.on($.ItemEvent.beforeHide,function(t,e){if(!e)return o.events.fire($.FormEvents.beforeHide,[n,t])}),f.events.on($.ItemEvent.beforeShow,function(t){return o.events.fire($.FormEvents.beforeShow,[n,t])}),f.events.on($.ItemEvent.afterHide,function(t,e){o.layout.getCell(n).hide(),e||o.events.fire($.FormEvents.afterHide,[n,t])}),f.events.on($.ItemEvent.afterShow,function(t){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t])}),f.events.on($.ItemEvent.beforeValidate,function(t){return o.events.fire($.FormEvents.beforeValidate,[n,t])}),f.events.on($.ItemEvent.afterValidate,function(t,e){o.events.fire($.FormEvents.afterValidate,[n,t,e])}),f.events.on($.ItemEvent.focus,function(t){o.events.fire($.FormEvents.focus,[n,t])}),f.events.on($.ItemEvent.blur,function(t){o.events.fire($.FormEvents.blur,[n,t])}),f.events.on($.ItemEvent.keydown,function(t){o.events.fire($.FormEvents.keydown,[t,n])});break;case"simplevault":var p=this._attachments[n]=new M.SimpleVault(null,e);this._state[n]=p.getValue(),p.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),p.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o._state[n]=p.getValue(),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),p.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),p.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),p.events.on($.ItemEvent.beforeHide,function(t,e){if(!e)return o.events.fire($.FormEvents.beforeHide,[n,t])}),p.events.on($.ItemEvent.beforeShow,function(t){return o.events.fire($.FormEvents.beforeShow,[n,t])}),p.events.on($.ItemEvent.afterHide,function(t,e){o.layout.getCell(n).hide(),e||o.events.fire($.FormEvents.afterHide,[n,t])}),p.events.on($.ItemEvent.afterShow,function(t){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t])}),p.events.on($.ItemEvent.beforeValidate,function(t){return o.events.fire($.FormEvents.beforeValidate,[n,t])}),p.events.on($.ItemEvent.afterValidate,function(t,e){o.events.fire($.FormEvents.afterValidate,[n,t,e])});break;case"slider":i=this._attachments[n]=new V.SliderForm(null,e);this._state[n]=i.getValue(),i.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),i.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),i.events.on($.ItemEvent.beforeHide,function(t,e){if(!e)return o.events.fire($.FormEvents.beforeHide,[n,t])}),i.events.on($.ItemEvent.beforeShow,function(t){return o.events.fire($.FormEvents.beforeShow,[n,t])}),i.events.on($.ItemEvent.afterHide,function(t,e){o.layout.getCell(n).hide(),e||o.events.fire($.FormEvents.afterHide,[n,t])}),i.events.on($.ItemEvent.afterShow,function(t){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t])}),i.events.on($.ItemEvent.focus,function(t){o.events.fire($.FormEvents.focus,[n,t])}),i.events.on($.ItemEvent.blur,function(t){o.events.fire($.FormEvents.blur,[n,t])}),i.events.on($.ItemEvent.keydown,function(t){o.events.fire($.FormEvents.keydown,[t,n])});break;case"textarea":var g=this._attachments[n]=new O.Textarea(null,e);this._state[n]=g.getValue(),g.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),g.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o._state[n]=g.getValue(),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),g.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),g.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),g.events.on($.ItemEvent.beforeHide,function(t,e){if(!e)return o.events.fire($.FormEvents.beforeHide,[n,t])}),g.events.on($.ItemEvent.beforeShow,function(t){return o.events.fire($.FormEvents.beforeShow,[n,t])}),g.events.on($.ItemEvent.afterHide,function(t,e){o.layout.getCell(n).hide(),e||o.events.fire($.FormEvents.afterHide,[n,t])}),g.events.on($.ItemEvent.afterShow,function(t){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t])}),g.events.on($.ItemEvent.beforeValidate,function(t){return o.events.fire($.FormEvents.beforeValidate,[n,t])}),g.events.on($.ItemEvent.afterValidate,function(t,e){o.events.fire($.FormEvents.afterValidate,[n,t,e])}),g.events.on($.ItemEvent.focus,function(t){o.events.fire($.FormEvents.focus,[n,t])}),g.events.on($.ItemEvent.blur,function(t){o.events.fire($.FormEvents.blur,[n,t])}),g.events.on($.ItemEvent.keydown,function(t){o.events.fire($.FormEvents.keydown,[t,n])});break;case"text":var v=this._attachments[n]=new P.Text(null,e);this._state[n]=v.getValue(),v.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),v.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o._state[n]=v.getValue(),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),v.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),v.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),v.events.on($.ItemEvent.beforeHide,function(t,e){if(!e)return o.events.fire($.FormEvents.beforeHide,[n,t])}),v.events.on($.ItemEvent.beforeShow,function(t){return o.events.fire($.FormEvents.beforeShow,[n,t])}),v.events.on($.ItemEvent.afterHide,function(t,e){o.layout.getCell(n).hide(),e||o.events.fire($.FormEvents.afterHide,[n,t])}),v.events.on($.ItemEvent.afterShow,function(t){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t])}),v.events.on($.ItemEvent.beforeValidate,function(t){return o.events.fire($.FormEvents.beforeValidate,[n,t])}),v.events.on($.ItemEvent.afterValidate,function(t,e){o.events.fire($.FormEvents.afterValidate,[n,t,e])});break;case"timepicker":var _=this._attachments[n]=new T.TimePicker(null,e);this._state[n]=e.value&&_.getValue("timeObject"===e.valueFormat)||"",_.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),_.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o._state[n]=_.getValue("timeObject"===e.valueFormat),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),_.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),_.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),_.events.on($.ItemEvent.beforeHide,function(t,e){if(!e)return o.events.fire($.FormEvents.beforeHide,[n,t])}),_.events.on($.ItemEvent.beforeShow,function(t){return o.events.fire($.FormEvents.beforeShow,[n,t])}),_.events.on($.ItemEvent.afterHide,function(t,e){o.layout.getCell(n).hide(),e||o.events.fire($.FormEvents.afterHide,[n,t])}),_.events.on($.ItemEvent.afterShow,function(t){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t])}),_.events.on($.ItemEvent.beforeValidate,function(t){return o.events.fire($.FormEvents.beforeValidate,[n,t])}),_.events.on($.ItemEvent.afterValidate,function(t,e){o.events.fire($.FormEvents.afterValidate,[n,t,e])}),_.events.on($.ItemEvent.focus,function(t){o.events.fire($.FormEvents.focus,[n,t])}),_.events.on($.ItemEvent.blur,function(t){o.events.fire($.FormEvents.blur,[n,t])}),_.events.on($.ItemEvent.keydown,function(t){o.events.fire($.FormEvents.keydown,[t,n])});break;case"colorpicker":var m=this._attachments[n]=new H.ColorPicker(null,e);this._state[n]=m.getValue(),m.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),m.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o._state[n]=m.getValue(),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),m.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),m.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),m.events.on($.ItemEvent.beforeHide,function(t,e){if(!e)return o.events.fire($.FormEvents.beforeHide,[n,t])}),m.events.on($.ItemEvent.beforeShow,function(t){return o.events.fire($.FormEvents.beforeShow,[n,t])}),m.events.on($.ItemEvent.afterHide,function(t,e){o.layout.getCell(n).hide(),e||o.events.fire($.FormEvents.afterHide,[n,t])}),m.events.on($.ItemEvent.afterShow,function(t){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t])}),m.events.on($.ItemEvent.beforeValidate,function(t){return o.events.fire($.FormEvents.beforeValidate,[n,t])}),m.events.on($.ItemEvent.afterValidate,function(t,e){o.events.fire($.FormEvents.afterValidate,[n,t,e])}),m.events.on($.ItemEvent.focus,function(t){o.events.fire($.FormEvents.focus,[n,t])}),m.events.on($.ItemEvent.blur,function(t){o.events.fire($.FormEvents.blur,[n,t])}),m.events.on($.ItemEvent.keydown,function(t){o.events.fire($.FormEvents.keydown,[t,n])});break;case"fieldset":var y=this._attachments[n]=new L.Fieldset(e);y.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),y.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()});break;case"spacer":default:y=this._attachments[n]=new F.Spacer(null,e);y.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),y.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),y.events.on($.ItemEvent.beforeHide,function(t){if(!t)return o.events.fire($.FormEvents.beforeHide,[n])}),y.events.on($.ItemEvent.beforeShow,function(){return o.events.fire($.FormEvents.beforeShow,[n])}),y.events.on($.ItemEvent.afterHide,function(t){o.layout.getCell(n).hide(),t||o.events.fire($.FormEvents.afterHide,[n])}),y.events.on($.ItemEvent.afterShow,function(){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n])})}},h.prototype._changeProps=function(t,e){var i,n=["width","height","css","padding","label","labelAlignment","align"];for(i in e)n.includes(i)&&(this.layout.getCell(t).config[i]=e[i])},h.prototype._addLayoutItems=function(t){var i=this;return t.map(function(t){if(u.isBlock(t)){var e={width:"content",height:"content"};return i._createLayoutConfig(t,e),e}return i._addLayoutItem(t)})},h.prototype._checkLayoutConfig=function(t,e){return c.isDefined(t.css)&&(e.css=t.css),c.isDefined(t.title)&&(e.header=t.title),c.isDefined(t.padding)&&(e.padding=t.padding),c.isDefined(t.width)&&(e.width=t.width),c.isDefined(t.height)&&(e.height=t.height),c.isDefined(t.align)&&(e.align=t.align),e},h.prototype._createLayoutConfig=function(t,e){e=this._checkLayoutConfig(t,e),c.isDefined(t.rows)?e.rows=this._addLayoutItems(t.rows):c.isDefined(t.cols)&&(e.cols=this._addLayoutItems(t.cols))},h.prototype._initUI=function(t){this._attachments={};var e={padding:"8px"};this.config.css+=" dhx_form",this._createLayoutConfig(this.config,e),this.layout=new a.Layout(t,e),u.setAttacments(this._attachments,this.layout)},h.prototype._clear=function(){for(var t in this._state={},this._attachments){var e=this._attachments[t].config.name;"function"==typeof this._attachments[t].clear&&(this._attachments[t].clear(),e?this._state[e]=this._attachments[t].getValue():this._state[t]=this._attachments[t].getValue())}},h.prototype._clearValidate=function(){for(var t in this._attachments)"function"==typeof this._attachments[t].clearValidate&&this._attachments[t].clearValidate()},h.prototype._formContainerShow=function(){this.config.hidden=!1,this.getRootView().node&&(this.getRootView().node.el.style.display="flex")},h.prototype._formContainerHide=function(){this.config.hidden=!0,this.getRootView().node&&(this.getRootView().node.el.style.display="none")},h.prototype._send=function(){for(var t in this._attachments)"function"==typeof this._attachments[t].send&&this._attachments[t].send()},h);function h(t,e){var i=o.call(this,null,c.extend({disabled:!1,hidden:!1,css:""},e))||this;return i._isValid=!0,i._state={},i.events=new r.EventSystem(i),i.container=t,i._initUI(t),i.config.hidden&&i.hide(!0),i.config.disabled&&i.disable(),i.events.on($.FormEvents.afterShow,function(){i._formContainerShow()}),i.events.on($.FormEvents.afterHide,function(){Object.values(i._attachments).some(function(t){return!t.config.hidden})||i._formContainerHide()}),d.awaitRedraw().then(function(){var t=i.layout.getRootNode();t&&(t.setAttribute("role","form"),i.config.title&&t.setAttribute("aria-label",i.config.title))}),i}f.Form=e}).call(this,p(17))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var s,d=i(0),a=i(2),h=i(7),l=i(12),c=i(4),u=i(14),f=i(1),o=(s=u.Label,o(p,s),p.prototype.setProperties=function(t,e){if(void 0===e&&(e=!1),t&&!f.isEmptyObj(t)&&(e||this.events.fire(c.ItemEvent.beforeChangeProperties,[this.getProperties()]))){for(var i in t)this._props.includes(i)&&(this.config[i]=t[i]);e||this.events.fire(c.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},p.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},p.prototype.show=function(){this.config.hidden&&this.events.fire(c.ItemEvent.beforeShow,[this.getValue()])&&(this.config.hidden=!1,this.events.fire(c.ItemEvent.afterShow,[this.getValue()]))},p.prototype.hide=function(t){this.config.hidden&&!t||!this.events.fire(c.ItemEvent.beforeHide,[this.getValue(),t])||(this.config.hidden=!0,this.events.fire(c.ItemEvent.afterHide,[this.getValue(),t]))},p.prototype.isVisible=function(){return!this.config.hidden},p.prototype.disable=function(){this.config.disabled=!0,this.paint()},p.prototype.enable=function(){var t;this.config.disabled=!1,null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.paint()},p.prototype.isDisabled=function(){return!!this.config.disabled},p.prototype.validate=function(t){if(void 0===t&&(t=!1),t||this.events.fire(c.ItemEvent.beforeValidate,[this.getValue()]))return(this.config.required||this.config.$required)&&(this._isValid=!!this.config.checked),t||(this.config.$validationStatus=this._isValid?c.ValidationStatus.success:c.ValidationStatus.error,this.events.fire(c.ItemEvent.afterValidate,[this.getValue(),this._isValid])),this._isValid},p.prototype.clearValidate=function(){this.config.$validationStatus=c.ValidationStatus.pre,this.paint()},p.prototype.setValue=function(t,e){void 0===e&&(e=!1),void 0!==t&&t!==this.config.checked&&(e||this.events.fire(c.ItemEvent.beforeChange,[this._getValue(t)]))&&(this.config.checked=!!t,e||(this.events.fire(c.ItemEvent.change,[this.getValue()]),h.isVerify(this.config)&&this.validate()))},p.prototype.getValue=function(){return this._getValue(this.config.checked)},p.prototype.clear=function(t){this.config.checked&&(t||this.events.fire(c.ItemEvent.beforeChange,[this._getValue(!1)]))&&(this.config.checked=!1,t||(this.events.fire(c.ItemEvent.change,[this.getValue()]),h.isVerify(this.config)&&this.validate()))},p.prototype.destructor=function(){this.events&&this.events.clear(),this._inGroup=this._propsItem=this._props=this._isValid=this._uid=this.events=null,s.prototype._destructor.call(this),this.unmount()},p.prototype.focus=function(){var t=this;d.awaitRedraw().then(function(){t.getRootView().refs.input.el.focus()})},p.prototype.blur=function(){var t=this;d.awaitRedraw().then(function(){t.getRootView().refs.input.el.blur()})},p.prototype.isChecked=function(){return!!this.config.checked},p.prototype._getValue=function(t){return"string"==typeof this.config.value?t&&this.config.value||"":!!t},p.prototype._initView=function(t){var e=this;if(this._inGroup=this.config.$group,this._inGroup){for(var i in this.config={type:t.type,id:t.id,text:"",width:"content",height:"content",padding:0},t)"id"!==i&&"type"!==i&&"name"!==i&&(this.config[i]=t[i]);this._handlers={onchange:function(t){t=t.target.checked;e.events.fire(c.ItemEvent.beforeChange,[e._getValue(t)])?(e.config.checked=t,e.events.fire(c.ItemEvent.change,[e.getValue()]),h.isVerify(e.config)&&e.validate()):e.getRootView().refs.input.el.checked=!t},onfocus:function(){return e.events.fire(c.ItemEvent.focus,[e.getValue(),e.config.id])},onblur:function(){return e.events.fire(c.ItemEvent.blur,[e.getValue(),e.config.id])},onkeydown:function(t){e.events.fire(c.ItemEvent.keydown,[t,e.config.id])}}}else{for(var i in this.config={type:t.type,id:t.id,name:t.name,disabled:!1,required:!1,label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t)"id"!==i&&"type"!==i&&"name"!==i&&(this.config[i]=t[i]);this.config.helpMessage&&(this._helper=new l.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"}),this._helper.attachHTML(this.config.helpMessage)),this._handlers={showHelper:function(t){t.preventDefault(),t.stopPropagation(),e._helper.show(t.target,{mode:"left"===e.config.labelPosition?"bottom":"right",theme:e.getRootNode()})},hideHelper:function(t){t.preventDefault(),t.stopPropagation(),e._helper.hide()},onchange:function(t){t=t.target.checked;e.events.fire(c.ItemEvent.beforeChange,[e._getValue(t)])?(e.config.checked=t,e.events.fire(c.ItemEvent.change,[e.getValue()]),h.isVerify(e.config)&&e.validate()):e.getRootView().refs.input.el.checked=!t},onfocus:function(){return e.events.fire(c.ItemEvent.focus,[e.getValue()])},onblur:function(){var t;return null===(t=e.events)||void 0===t?void 0:t.fire(c.ItemEvent.blur,[e.getValue()])},onkeydown:function(t){e.events.fire(c.ItemEvent.keydown,[t])}}}this.config.hidden&&d.awaitRedraw().then(function(){e.hide(!0)})},p.prototype._initHandlers=function(){var t=this;this.events.on(c.ItemEvent.change,function(){return t.paint()}),this.events.on(c.ItemEvent.afterValidate,function(){t.config.$validationStatus=t._isValid?c.ValidationStatus.success:c.ValidationStatus.error,t.paint()})},p.prototype._draw=function(){var t=this.config,e=t.id,i=t.value,n=t.checked,o=t.disabled,r=t.name,s=t.required,a=t.$required,l=t.text,c=t.label,u=t.labelWidth,t=t.helpMessage;return d.el("label.dhx_checkbox.dhx_form-group.dhx_form-group--checkbox",{class:h.getFormItemCss(this.config,h.isVerify(this.config)||!!a)},this._inGroup?[d.el(".dhx_checkbox__holder",[d.el("input.dhx_checkbox__input",{type:"checkbox",id:e,value:i||"",name:r||"",disabled:o,checked:n,onchange:this._handlers.onchange,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,required:s,_ref:"input"}),d.el("span.dhx_checkbox__visual-input"),d.el("span.dhx_text",[l])])]:[c||u||t||s?this._drawLabel():null,d.el(".dhx_checkbox__container",[d.el(".dhx_checkbox__holder",[d.el("input.dhx_checkbox__input",{type:"checkbox","data-dhx-id":r||e,id:e,value:i,name:r,disabled:o,checked:n,onchange:this._handlers.onchange,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,required:s,_ref:"input","aria-label":c||"checkbox "+(l||""),"aria-describedby":t?"dhx_label__help_"+(e||this._uid):null}),d.el("span.dhx_checkbox__visual-input"),d.el("span.dhx_text",[l])]),s&&h.getValidationMessage(this.config)&&d.el("span.dhx_input__caption",h.getValidationMessage(this.config))])])},p);function p(t,e){void 0===e&&(e={});var i=s.call(this,t,e)||this;i.events=new a.EventSystem,i._isValid=!0,i._propsItem=["required","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage","text"],i._props=r(h.baseProps,i._propsItem),i._initView(e),i._initHandlers();return i.mount(t,d.create({render:function(){return i._draw()}})),i}e.Checkbox=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var u=i(0),a=i(2),d=i(3),l=i(5),c=i(1),h=i(8),f=i(59),p=i(12),g=i(7),v=i(98),_=i(4);(i=e.FileStatus||(e.FileStatus={})).queue="queue",i.uploaded="uploaded",i.failed="failed",i.inprogress="inprogress";var m,o=(m=l.View,o(y,m),y.prototype.send=function(t){this._uploader.send(t)},y.prototype.selectFile=function(){this._uploader.selectFile()},y.prototype.setValue=function(t){t.length&&(this.data.parse(t),g.isVerify(this.config)&&this.validate())},y.prototype.getValue=function(){return this.data.serialize()},y.prototype.clear=function(){0!==this.getValue().length&&this.events.fire(_.ItemEvent.beforeChange,[[]])&&(this.data.removeAll(),this.events.fire(_.ItemEvent.change,[this.getValue()]))},y.prototype.disable=function(){this.config.disabled=!0,this.paint()},y.prototype.enable=function(){var t;this.config.disabled=!1,null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.paint()},y.prototype.isDisabled=function(){return this.config.disabled},y.prototype.show=function(){var t=this.config,e=t.value;t.hidden&&this.events.fire(_.ItemEvent.beforeShow,[e])&&(this.config.hidden=!1,this.events.fire(_.ItemEvent.afterShow,[e]))},y.prototype.hide=function(t){var e=this.config,i=e.value;e.hidden&&!t||!this.events.fire(_.ItemEvent.beforeHide,[i,t])||(this.config.hidden=!0,this.events.fire(_.ItemEvent.afterHide,[i,t]))},y.prototype.isVisible=function(){return!this.config.hidden},y.prototype.validate=function(t,e){void 0===t&&(t=!1);e=e||this.getValue();return!(!t&&!this.events.fire(_.ItemEvent.beforeValidate,[e]))&&(this._isValid=!!("function"==typeof this.config.validation?this.config.validation(e):e.length),t||this.events.fire(_.ItemEvent.afterValidate,[e,this._isValid]),this._isValid)},y.prototype.clearValidate=function(){this.config.$validationStatus=_.ValidationStatus.pre,this.paint()},y.prototype.setProperties=function(t){if(t&&!c.isEmptyObj(t)&&this.events.fire(_.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e],this._propsSimpleVault.includes(e)&&(this._uploader.config[e]=t[e]));this.events.fire(_.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},y.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},y.prototype.focus=function(){var t;null!==(t=null===(t=null===(t=this.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.input)&&void 0!==t&&t.el.focus(),this.paint()},y.prototype.blur=function(){var t;null!==(t=null===(t=null===(t=this.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.input)&&void 0!==t&&t.el.blur(),this.paint()},y.prototype.destructor=function(){this.events&&this.events.clear(),this._helper&&this._helper.destructor(),this.config=this.events=this._uid=this._helper=this._handlers=this._uploader=this.data=null,this._propsItem=this._propsSimpleVault=this._props=this._isValid=this._dragover=this._dragoverTimeout=null,this.unmount()},y.prototype._initView=function(t){this.config=r({type:t.type,id:t.id,name:t.name,value:[],disabled:!1,hidden:!1,css:"",label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t),this.config.value.length&&this.setValue(this.config.value),this.paint()},y.prototype._initHandlers=function(){var o=this;this._handlers={add:function(t){o.config.disabled||(t.preventDefault(),o._uploader.selectFile())},remove:function(t){o.config.disabled||(t=d.locate(t))&&o.data.remove(t)},ondragover:function(t){for(var e=0,i=t.dataTransfer.types;e<i.length;e++){var n=i[e];if("Files"!==n&&"application/x-moz-file"!==n)return}o._dragoverTimeout?clearTimeout(o._dragoverTimeout):o.paint(),o._dragover=!0,o._dragoverTimeout=setTimeout(function(){o._dragover=!1,o._dragoverTimeout=null,o.paint()},150)},showHelper:function(t){t.stopPropagation(),t.preventDefault(),o._helper.show(t.target,{mode:"left"===o.config.labelPosition?"bottom":"right",theme:t.target})},hideHelper:function(t){t.preventDefault(),t.stopPropagation(),o._helper.hide()}},this.events.on(_.ItemEvent.afterValidate,function(){o.config.$validationStatus=o._isValid?_.ValidationStatus.success:_.ValidationStatus.error,o.paint()}),this._uploader.events.on("beforeUploadFile",function(t){return!(o.config.autosend&&!o._isValid)&&o.events.fire(_.ItemEvent.beforeUploadFile,[t,o.config.value])}),this._uploader.events.on("uploadBegin",function(t){o.events.fire(_.ItemEvent.uploadBegin,[t,o.config.value])}),this._uploader.events.on("uploadComplete",function(t){o.events.fire(_.ItemEvent.uploadComplete,[t,o.config.value])}),this._uploader.events.on("uploadFail",function(t){o.events.fire(_.ItemEvent.uploadFail,[t,o.config.value])}),this._uploader.events.on("uploadFile",function(t,e){o.events.fire(_.ItemEvent.uploadFile,[t,o.config.value,e])}),this._uploader.events.on("uploadProgress",function(t){o.events.fire(_.ItemEvent.uploadProgress,[t,o.config.value])}),this.data.events.on(h.DataEvents.beforeAdd,function(t){return o.events.fire(_.ItemEvent.beforeChange,[s(o.config.value,[t]),t])}),this.data.events.on(h.DataEvents.beforeRemove,function(e){var t=o.config.value.filter(function(t){return t.id!==e.id});return o.events.fire(_.ItemEvent.beforeChange,[t,e])}),this.data.events.on(_.ItemEvent.change,function(t,e,i){var n;e&&(n=o.config.value=o.getValue(),o._uploader.isActive&&"update"===e||(o.events.fire(_.ItemEvent.change,[n,i]),g.isVerify(o.config)&&o.validate()),o.paint())})},y.prototype._draw=function(){var e=this;this.config.helpMessage&&(this._helper||(this._helper=new p.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"})),this._helper.attachHTML(this.config.helpMessage));var t=this.data.getLength()?u.el("ul.dhx_simplevault__files.dhx_simplevault-files",{class:this.config.$vaultHeight?"":"dhx_simplevault-files__fixed"},this.data.map(function(t){return u.el("li.dhx_simplevault-files__item",[u.el("span.dhx_simplevault-files__item-name",t.file&&t.file.name||t.name),u.el(".dhx_button.dhx_simplevault-files__delete.dhx_button--icon.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--circle",{"data-dhx-id":t.id,onclick:e._handlers.remove},[u.el("span.dxi.dxi-delete-forever")])])})):null,i=this.config,n=i.id,o=i.helpMessage,r=i.disabled,s=i.required,a=i.label,l=i.hidden,c=i.accept,i=d.getLabelStyle(this.config),l=l?" dhx_form-group--hidden":"";return u.el(".dhx_form-group.dhx_form-group--simplevault",{class:g.getFormItemCss(this.config,g.isVerify(this.config))+l},[i&&u.el("legend.dhx_label",{class:o?"dhx_label--with-help":"",style:i.style,onclick:this._handlers.add,"aria-label":a||"select files"},o?[(i.label||s)&&u.el("span.dhx_label__holder",i.label),u.el("span.dhx_label-help.dxi.dxi-help-circle-outline",{tabindex:"0",role:"button",onclick:this._handlers.showHelper,onfocus:this._handlers.showHelper,onblur:this._handlers.hideHelper})]:i.label),u.el(".dhx_input__wrapper",{id:this._uid},[u.el("div",{_hooks:{didInsert:function(t){e._uploader.linkDropArea(t.el)}},ondragover:this._handlers.ondragover,class:"dhx_simplevault"+(this._dragover?" dhx_simplevault--on-drag":"")},[u.el("div.dhx_simplevault-loader",[u.el("span.dhx_simplevault__icon.dxi.dxi-vault")]),u.el(".dhx_simplevault__drop-area",[u.el("input.dhx_simplevault__input",{_ref:"input",type:"file",id:n,disabled:r,accept:c}),u.el("span.dhx_simplevault__icon.dxi.dxi-vault"),u.el("span.dhx_simplevault__title",[u.el("span",v.default.simpleVaultText),u.el("br"),u.el("label.dhx_simplevault__label",{onclick:this._handlers.add,for:n}," "+v.default.simpleVaultLabel)])]),t]),g.getValidationMessage(this.config)&&u.el("span.dhx_input__caption",{},g.getValidationMessage(this.config))])])},y);function y(t,e){var i=m.call(this,t,e)||this;i._isValid=!0,i._propsItem=["required","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage"],i._propsSimpleVault=["params","headerParams","target","fieldName","singleRequest","updateFromResponse","autosend","accept","validation"],i._props=s(g.baseProps,i._propsItem,i._propsSimpleVault),i.events=new a.EventSystem(i),i.data=new h.DataCollection,i._uploader=new f.Uploader(r({target:"",accept:"",fieldName:"file",singleRequest:!1,updateFromResponse:!0,autosend:!1},e),i.data,i.data.events),i._initView(r(r({},i._uploader.config),e)),i._initHandlers();return i.mount(t,u.create({render:function(){return i._draw()}})),i}e.SimpleVault=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={simpleVaultText:"Drag & drop files or folders here or",simpleVaultLabel:"browse files"}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,l=i(4),c=i(5),p=i(0),u=i(2),d=i(7),h=i(1),o=(a=c.View,o(f,a),f.prototype.setValue=function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!1),"boolean"==typeof t&&t!==this.config.selected&&(e||this.events.fire(l.ItemEvent.beforeChange,[t]))&&(this.config.selected=t,e||this.events.fire(l.ItemEvent.change,[this.getValue()]),this.paint())},f.prototype.getValue=function(){var t=this.config,e=t.value,t=t.selected;return"string"==typeof e?t?e:"":"number"==typeof e?t?e:0:!!t},f.prototype.isSelected=function(){return!!this.config.selected},f.prototype.show=function(){this.config.hidden&&this.events.fire(l.ItemEvent.beforeShow,[this.getValue()])&&(this.config.hidden=!1,this.events.fire(l.ItemEvent.afterShow,[this.getValue()]))},f.prototype.hide=function(t){void 0===t&&(t=!1),this.config.hidden&&!t||!this.events.fire(l.ItemEvent.beforeHide,[this.getValue(),t])||(this.config.hidden=!0,this.events.fire(l.ItemEvent.afterHide,[this.getValue(),t]))},f.prototype.isVisible=function(){return!this.config.hidden},f.prototype.focus=function(){var t=this;p.awaitRedraw().then(function(){t.getRootView().refs.button.el.focus(),t.paint()})},f.prototype.blur=function(){var t=this;p.awaitRedraw().then(function(){t.getRootView().refs.button.el.blur(),t.paint()})},f.prototype.disable=function(){this.config.disabled=!0,this.paint()},f.prototype.enable=function(){var t;this.config.disabled=!1,null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.paint()},f.prototype.isDisabled=function(){return!!this.config.disabled},f.prototype.setProperties=function(t){if(t&&!h.isEmptyObj(t)&&this.events.fire(l.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this.props.includes(e)&&(this.config[e]=t[e]);this.events.fire(l.ItemEvent.afterChangeProperties,[this.getProperties()])}},f.prototype.getProperties=function(){for(var t={},e=0,i=this.props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},f.prototype.destructor=function(){this.events.clear(),this.unmount()},f.prototype.draw=function(){var t=this.config,e=t.id,i=t.name,n=t.selected,o=t.disabled,r=t.hidden,s=t.text,a=t.offText,l=t.icon,c=t.offIcon,u=t.full,d=t.$group,h=t.$gap,f=t.$extraCss,t=t.css;return p.el("button.dhx_toggle",{"data-dhx-id":i||e,role:"button",type:"button","aria-pressed":n,"aria-label":s||i,disabled:o,class:(d?"":"dhx_form-group dhx_form-group--toggle ")+(n?"dhx_toggle--selected ":"")+(o?"dhx_toggle--disabled ":"")+(r?"dhx_toggle--hidden ":"")+(u?"dhx_toggle--full ":"")+(d&&f||"")+(d&&t||""),style:{marginLeft:h},onclick:this.handlers.onclick,onfocus:this.handlers.onfocus,onblur:this.handlers.onblur,onkeydown:this.handlers.onkeydown,_ref:"button"},[l&&p.el("i.dhx_toggle__icon",{class:!n&&c||l}),s&&p.el("span.dhx_toggle__text",{},!n&&a||s)])},f.prototype.initHandlers=function(){var e=this;this.handlers={onclick:function(){return e.setValue(!e.config.selected)},onfocus:function(){return e.events.fire(l.ItemEvent.focus,[e.getValue()])},onblur:function(){return e.events.fire(l.ItemEvent.blur,[e.getValue()])},onkeydown:function(t){return e.events.fire(l.ItemEvent.keydown,[t])}}},f);function f(t,e){var i=a.call(this,t,r({full:!1,selected:!1,disabled:!1,hidden:!1,width:"content",height:"content",text:"",icon:"",offIcon:"",offText:"",css:"",padding:""},e))||this;i.events=new u.EventSystem,i.props=s(i.config.$group?[]:d.baseProps,["value","offIcon","offText","icon","text","full"]),i.config.hidden&&p.awaitRedraw().then(function(){i.hide(!0)}),i.initHandlers();return i.mount(t,p.create({render:function(){return i.draw()}})),i}e.ToggleButton=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(0),a=i(22),l=i(1),c=i(3),u=i(10),o=(r=a.Navbar,o(d,r),d.prototype.getState=function(){var t,e={};for(t in this.data.eachChild(this.data.getRoot(),function(t){t.twoState&&!t.group?e[t.id]=t.active:"input"!==t.type&&"selectButton"!==t.type||(e[t.id]=t.value)},!0),this._groups)this._groups[t].active&&(e[t]=this._groups[t].active);return e},d.prototype.setState=function(t){for(var e in t){var i;this._groups&&this._groups[e]?this._groups[e].active&&(this.data.update(this._groups[e].active,{active:!1}),this._groups[e].active=t[e],this.data.update(t[e],{active:!0})):"input"===(i=this.data.getItem(e)).type||"selectButton"===i.type?this.data.update(e,{value:t[e]}):this.data.update(e,{active:t[e]})}},d.prototype._getFactory=function(){return a.createFactory({widget:this,defaultType:"navItem",allowedTypes:["navItem","button","imageButton","selectButton","customHTML","input","separator","spacer","title","block","customHTMLButton"],widgetName:"ribbon"})},d.prototype._getMode=function(t,e){return t.id===e?"bottom":"right"},d.prototype._close=function(t){this._activePosition=null,this._currentRoot=null,r.prototype._close.call(this,t)},d.prototype._draw=function(){var i=this;this._heightCalculate();var t=Math.max.apply(Math,this._widgetHeight);return s.el("ul.dhx_ribbon.dhx_widget",{"data-dhx-widget-id":this._uid,class:this.config.css||"",tabindex:0,onclick:this._handlers.onclick,onmousedown:this._handlers.onmousedown,oninput:this._listeners.input,onmouseover:this._listeners.tooltip,_hooks:{didInsert:function(t){t.el.addEventListener("keyup",function(t){var e;9!==t.which||(e=c.locateNode(document.activeElement))&&(t=e.getAttribute("data-dhx-id"),(t=i.data.getItem(t)).tooltip&&u.tooltip(t.tooltip,{node:e,position:u.Position.bottom,force:!0}))},!0)}}},[s.el("li",{class:"dhx_ribbon-block dhx_ribbon-block--root",style:{height:this._haveTitle?t+24:t}},[s.el("ul.dhx_ribbon-content.dhx_ribbon-content--full-width",{style:{height:t}},this.data.map(function(t){return"block"===t.type?i._drawBlock(t,!0):i._factory(t)},this.data.getRoot(),!1))])])},d.prototype._setRoot=function(t){var e=this.data.getParent(t);"block"===this.data.getItem(e).type&&(this._currentRoot=t)},d.prototype._drawBlock=function(t,e){var i=this;if(!t||t.hidden)return null;var n="dhx_ribbon-block dhx_ribbon-block"+("col"===t.direction?"--col":"--row")+(t.title?" dhx_ribbon-block--title":"")+(t.css?" "+t.css:"")+(e?" dhx_ribbon-block--indented":""),e=t.items.map(function(t){return"block"===t.type?i._drawBlock(t):"separator"!==t.type&&"spacer"!==t.type?i._factory(t):null},t.id,!1);return s.el("li",{class:n},[s.el("ul.dhx_ribbon-content",e),t.title?s.el("span.dhx_ribbon-content-label-wrapper",[s.el("span.dhx_ribbon-content-label",t.title)]):null])},d.prototype._getBlockHeight=function(t){return t.hidden?0:"medium"===t.size&&"button"!==t.type?72:36},d.prototype._heightCalculate=function(t){var i=this;void 0===t&&(t=this.data),t.forEach(function(t){var e;"block"===t.type&&"col"===t.direction?(e=t.items.reduce(function(t,e){return t+i._getBlockHeight(e)},0),i._heightCalculate(t.items)):e=i._getBlockHeight(t),t.title&&(i._haveTitle=!0),i._widgetHeight.push(e)})},d);function d(t,e){var i=r.call(this,t,l.extend({navigationType:"click",$name:"ribbon"},e))||this;i._widgetHeight=[],i._listeners={input:function(t){var e=c.locate(t);i.data.update(e,{value:t.target.value})},tooltip:function(t){var e=c.locateNode(t);e&&(t=e.getAttribute("data-dhx-id"),(t=i.data.getItem(t)).tooltip&&u.tooltip(t.tooltip,{node:e,position:u.Position.bottom}))}},i._currentRoot=null;return i.mount(t,s.create({render:function(){return i._draw()}})),i}e.Ribbon=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(0),a=i(3),l=i(102),c=i(10),u=i(22),d=i(1),o=(r=u.Navbar,o(h,r),h.prototype.toggle=function(){this.config.collapsed?this.expand():this.collapse(),this.events.fire(l.SidebarEvents.toggle,[this.config.collapsed]),this.paint()},h.prototype.collapse=function(){this.events.fire(l.SidebarEvents.beforeCollapse,[])&&(this.config.collapsed=!0,this.events.fire(l.SidebarEvents.afterCollapse,[]),this.paint())},h.prototype.expand=function(){this.events.fire(l.SidebarEvents.beforeExpand,[])&&(this.config.collapsed=!1,this.events.fire(l.SidebarEvents.afterExpand,[]),this.paint())},h.prototype.isCollapsed=function(){return this.config.collapsed},h.prototype._getFactory=function(){return u.createFactory({widget:this,defaultType:"navItem",allowedTypes:["navItem","menuItem","customHTML","separator","spacer","title","customHTMLButton"],widgetName:"sidebar"})},h.prototype._close=function(t){this._activePosition=null,this._currentRoot=null,r.prototype._close.call(this,t)},h.prototype._setRoot=function(t){this.data.getParent(t)===this.data.getRoot()&&(this._currentRoot=t)},h.prototype._customHandlers=function(){var i=this;return{tooltip:function(t){var e=a.locateNode(t);e&&(t=e.getAttribute("data-dhx-id"),((t=i.data.getItem(t)).tooltip||i.config.collapsed&&t.value)&&c.tooltip(t.tooltip||t.value,{node:e,position:c.Position.right}))}}},h.prototype._draw=function(){var i=this,t=this.config,e=t.width,t=t.minWidth,e=this.config.collapsed?t:e;return s.el("nav.dhx_widget.dhx_sidebar",{class:(this.config.css||"")+(this.config.collapsed?" dhx_sidebar--minimized":""),style:{width:e+"px"}},[s.el("ul.dhx_navbar.dhx_navbar--vertical",{"data-dhx-widget-id":this._uid,tabindex:0,onclick:this._handlers.onclick,onmousedown:this._handlers.onmousedown,oninput:this._handlers.input,onmouseover:this._handlers.tooltip,_hooks:{didInsert:function(t){t.el.addEventListener("keyup",function(t){var e;9!==t.which||(e=a.locateNode(document.activeElement))&&(t=e.getAttribute("data-dhx-id"),((t=i.data.getItem(t)).tooltip||i.config.collapsed&&t.value)&&c.tooltip(t.tooltip||t.value,{node:e,position:c.Position.right,force:!0}))},!0)}}},this.data.map(function(t){return i._factory(t,!1)},this.data.getRoot(),!1))])},h.prototype._getMode=function(){return"right"},h.prototype._customInitEvents=function(){var t=this;this.events.on(u.NavigationBarEvents.inputBlur,function(){t._waitRestore&&(t.toggle(),t._waitRestore=!1)}),this.events.on(u.NavigationBarEvents.inputFocus,function(){t.config.collapsed&&(t._waitRestore=!0,t.toggle())})},h);function h(t,e){var i=r.call(this,t,d.extend({navigationType:"click",width:"200",minWidth:"44",collapsed:!1,$name:"sidebar"},e))||this;i._currentRoot=null;return i.mount(t,s.create({render:function(){return i._draw()}})),i}e.Sidebar=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.SidebarEvents||(e.SidebarEvents={})).beforeCollapse="beforeCollapse",e.afterCollapse="afterCollapse",e.beforeExpand="beforeExpand",e.afterExpand="afterExpand",e.toggle="toggle"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.TabbarEvents||(e.TabbarEvents={})).beforeChange="beforeChange",e.change="change",e.beforeClose="beforeClose",e.afterClose="afterClose",e.close="close"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o,r=i(0),s=i(2),a=i(3),l=i(13);(i=n=e.EditorMode||(e.EditorMode={})).editText="text",i.selectItem="select",(i=o=e.EditorEvents||(e.EditorEvents={})).begin="begin",i.end="end";c.prototype.edit=function(t,e){return this._active&&this._item!==e.item&&this._finishEdit(),this._active=!0,this._targetId=t,this.config=e,this._item=e.item,this._currentValue=this._item.value,this.events.fire(o.begin,[t]),this._initOuterClick(),this._addHotkeys(),this._draw()},c.prototype.isEditable=function(){return this._active},c.prototype._draw=function(){var e=this;if(this.config.mode!==n.selectItem)return r.el("div.dhx_tree-editor",{_hooks:{didInsert:this._handlers.didInsert},id:"input_"+this._item.id,oninput:this._handlers.editText,contentEditable:!0},this._currentValue);var t=this.config.options;return r.el("select",{id:"input_"+this._item.id,"data-dhx-id":this._item.id,onchange:this._handlers.itemSelected},t.map(function(t){return r.el("option",{class:"editor-select",value:t,selected:e._currentValue===t,style:{border:"1px solid"}},t)}))},c.prototype._addHotkeys=function(){var t=this;this._keyManager.addHotKey("escape",function(){t._finishEdit()}),this._keyManager.addHotKey("enter",function(){t._finishEdit()})},c.prototype._removeHotkeys=function(){this._keyManager.removeHotKey()},c.prototype._finishEdit=function(){this.events.fire(o.end,[this._targetId,this._item.id,this._currentValue])&&this._clear()},c.prototype._clear=function(){this._active=!1,this._removeClickListener(),this._removeHotkeys()},c.prototype._initOuterClick=function(){document.addEventListener("click",this._documentClick)},c.prototype._removeClickListener=function(){document.removeEventListener("click",this._documentClick)},i=c;function c(){var e=this;this.events=new s.EventSystem,this._keyManager=new l.KeyManager,this._documentClick=function(t){a.locate(t,"id")!=="input_"+e._item.id&&(e._removeClickListener(),e._finishEdit())},this._handlers={editText:function(t){e._currentValue=t.target.innerText},itemSelected:function(t){e._currentValue=t.target.value,e._finishEdit()},didInsert:function(t){var e,i=null==t?void 0:t.el;i&&(i.childNodes.length&&(e=document.createRange(),t=window.getSelection(),e.setStart(i.childNodes[0],i.innerText.length),e.collapse(!0),t.removeAllRanges(),t.addRange(e)),i.focus())}}}e.Editor=i},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.SelectStatus||(e.SelectStatus={}))[n.unselected=0]="unselected",n[n.selected=1]="selected",n[n.indeterminate=2]="indeterminate",(e=e.TreeEvents||(e.TreeEvents={})).itemClick="itemclick",e.itemDblClick="itemdblclick",e.itemRightClick="itemrightclick",e.beforeCollapse="beforeCollapse",e.afterCollapse="afterCollapse",e.beforeExpand="beforeExpand",e.afterExpand="afterExpand",e.beforeEditStart="beforeEditStart",e.afterEditStart="afterEditStart",e.beforeEditEnd="beforeEditEnd",e.afterEditEnd="afterEditEnd",e.focusChange="focusChange",e.beforeCheck="beforeCheck",e.afterCheck="afterCheck",e.itemContextMenu="itemcontextmenu"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=i(1),n=i(0),o=i(2),r=i(13),c=i(19),s=i(11),a=i(37),u=i(241),f=i(107),d=i(242),h=i(22),i=(p.prototype.paint=function(){this._layout.paint()},p.prototype.isFullScreen=function(){return this._fullScreen},p.prototype.setFullScreen=function(){this._fullScreen||(this._fullScreen=!0,this.setSize(window.innerWidth,window.innerHeight),this.setPosition(window.pageXOffset,window.pageYOffset))},p.prototype.unsetFullScreen=function(){this._fullScreen&&(this._fullScreen=!1,this.setSize(this._oldSizes.width,this._oldSizes.height),this.setPosition(this._oldPosition.left,this._oldPosition.top))},p.prototype.setSize=function(t,e){this._oldSizes={width:this._popup.offsetWidth,height:this._popup.offsetHeight};var i={width:this._oldSizes.width,height:this._oldSizes.height};l.isDefined(t)&&(this.config.width=i.width=t),l.isDefined(e)&&(this.config.height=i.height=e),this._popup.style.width=i.width+"px",this._popup.style.height=i.height+"px",this.events.fire(f.WindowEvents.resize,[i,this._oldSizes,{left:!0,top:!0,bottom:!0,right:!0}])},p.prototype.getSize=function(){return{width:this._popup.offsetWidth,height:this._popup.offsetHeight}},p.prototype.setPosition=function(t,e){this._oldPosition={left:this._popup.offsetLeft,top:this._popup.offsetTop};var i={left:this._oldPosition.left,top:this._oldPosition.top};l.isDefined(t)&&(this.config.left=i.left=t),l.isDefined(e)&&(this.config.top=i.top=e),this._popup.style.left=i.left+"px",this._popup.style.top=i.top+"px",this.events.fire(f.WindowEvents.resize,[i,this._oldPosition,{left:!0,top:!0,bottom:!0,right:!0}])},p.prototype.getPosition=function(){return{left:this._popup.offsetLeft,top:this._popup.offsetTop}},p.prototype.show=function(t,e){if(void 0===t&&(t=this.config.left),void 0===e&&(e=this.config.top),this.events.fire(f.WindowEvents.beforeShow,[{left:t,top:e}])){this.isVisible()&&this.hide(),d.default.setActive(this._uid),this._popup.className+=" dhx_popup dhx_widget"+(this.config.modal?" dhx_popup--window_modal":" dhx_popup--window")+(this.config.css?" "+this.config.css:""),this._popup.style.position=this.config.modal?"fixed":"absolute",this._popup.setAttribute("data-dhx-widget-id",this._uid);var i=this._getContainerParams(),n=i.containerInnerWidth,o=i.containerInnerHeight,r=i.containerXOffset,s=i.containerYOffset,a=this.config.width="number"==typeof this.config.width&&this.config.width||"number"==typeof this.config.minWidth&&this.config.minWidth||n/2,i=this.config.height="number"==typeof this.config.height&&this.config.height||"number"==typeof this.config.minHeight&&this.config.minHeight||o/2;if(this.config.left=t=l.isDefined(t)?t:(n-a)/(this.config.modal?2:2+r),this.config.top=e=l.isDefined(e)?e:(o-i)/(this.config.modal?2:2+s),this._isActive)return this._popup.style.left=t+"px",void(this._popup.style.top=e+"px");this.config.viewportOverflow&&d.default.openFreeWindow(this.config.node),this.config.modal&&this._blockScreen(),this._popup.style.width=a+"px",this._popup.style.height=i+"px",this._popup.style.left=t+"px",this._popup.style.top=e+"px",this.config.node.appendChild(this._popup),this._popup.focus(),this._isActive=!0,this.events.fire(f.WindowEvents.afterShow,[{left:t,top:e}]),c.focusManager.setFocusId(this._uid)}},p.prototype.hide=function(){this._hide()},p.prototype._hide=function(t){this._isActive&&this.events.fire(f.WindowEvents.beforeHide,[{left:this.config.left,top:this.config.top},t])&&(this.config.viewportOverflow&&d.default.closeFreeWindow(this.config.node),this._blocker&&(this.config.node.removeChild(this._blocker),this.config.closable&&this._keyManager.removeHotKey(null,this),this._blocker=null),this.config.node.removeChild(this._popup),this._isActive=!1,this.events.fire(f.WindowEvents.afterHide,[{left:this.config.left,top:this.config.top},t]))},p.prototype.isVisible=function(){return this._isActive},p.prototype.getWidget=function(){return this._layout.getCell("content").getWidget()},p.prototype.getContainer=function(){return this.getRootView().data._container},p.prototype.attach=function(t,e){this._layout.getCell("content").attach(t,e)},p.prototype.attachHTML=function(t){this._layout.getCell("content").attachHTML(t)},p.prototype.getRootView=function(){return this._layout.getRootView()},p.prototype.destructor=function(){this._isActive&&this.hide(),this.header&&this.header.destructor(),this.footer&&this.footer.destructor(),this.events&&this.events.clear(),this._keyManager&&this._keyManager.destructor(),this._layout&&this._layout.destructor(),this.config=this.header=this.footer=this.events=null,this._popup=this._uid=this._handlers=this._isActive=this._keyManager=this._fullScreen=this._oldSizes=this._oldPosition=null},p.prototype.fullScreen=function(){this.setFullScreen()},p.prototype._initHandlers=function(){var i=this;this._handlers={headerDblClick:function(t){return i.events.fire(f.WindowEvents.headerDoubleClick,[t])},move:function(t){3!==t.which&&(t.preventDefault(),u.detectDrag(t).then(function(t){t&&i._startDrag(t.x,t.y)}))},resize:{".dhx_window-resizer":function(e){3!==e.which&&(e.preventDefault(),d.default.setActive(i._uid),u.detectDrag(e).then(function(t){t&&((t=e.target.classList).contains("dhx_window-resizer--left")?i._startResize({left:!0}):t.contains("dhx_window-resizer--right")?i._startResize({right:!0}):t.contains("dhx_window-resizer--top")?i._startResize({top:!0}):t.contains("dhx_window-resizer--bottom")?i._startResize({bottom:!0}):t.contains("dhx_window-resizer--bottom_left")?i._startResize({left:!0,bottom:!0}):t.contains("dhx_window-resizer--bottom_right")?i._startResize({bottom:!0,right:!0}):t.contains("dhx_window-resizer--top_left")?i._startResize({top:!0,left:!0}):t.contains("dhx_window-resizer--top_right")&&i._startResize({top:!0,right:!0}))}))}},setActive:function(){d.default.setActive(i._uid)}}},p.prototype._initUI=function(){var i=this,t=[],e=(this.config.header||this.config.title||this.config.closable||this.config.movable)&&!1!==this.config.header;e&&t.push({id:"header",height:"content",css:"dhx_window-header "+(this.config.movable?"dhx_window-header--movable":""),on:{mousedown:this.config.movable&&this._handlers.move,dblclick:this._handlers.headerDblClick}}),t.push({id:"content",css:e?"dhx_window-content":"dhx_window-content-without-header"}),this.config.footer&&t.push({id:"footer",height:"content",css:"dhx_window-footer"}),this.config.resizable&&t.push({id:"resizers",height:"content",css:"resizers"});var n,t=this._layout=new s.Layout(this._popup,{css:"dhx_window"+(this.config.modal?" dhx_window--modal":""),rows:t,on:{mousedown:this._handlers.setActive},id:this._uid});e&&(n=this.header=new a.Toolbar,this.config.title&&(this.header.data.add({type:"title",value:this.config.title,id:"title",css:"title_max"}),this._popup.setAttribute("aria-label",this.config.title)),this.config.closable&&(this.header.data.add({type:"spacer"}),this.header.data.add({id:"close",type:"button",view:"link",size:"medium",color:"secondary",circle:!0,icon:"dxi dxi-close"}),n.events.on(h.NavigationBarEvents.click,function(t,e){"close"===t&&i._hide(e)})),t.getCell("header").attach(n)),this.config.footer&&(n=this.footer=new a.Toolbar,t.getCell("footer").attach(n)),this.config.resizable&&t.getCell("resizers").attach(function(){return i._drawResizers()})},p.prototype._drawResizers=function(){return n.el(".dhx-resizers",{onmousedown:this._handlers.resize},[n.el(".dhx_window-resizer.dhx_window-resizer--left",{_ref:"left"}),n.el(".dhx_window-resizer.dhx_window-resizer--right",{_ref:"right"}),n.el(".dhx_window-resizer.dhx_window-resizer--bottom",{_ref:"bottom"}),n.el(".dhx_window-resizer.dhx_window-resizer--top",{_ref:"top"}),n.el(".dhx_window-resizer.dhx_window-resizer--bottom_right",{_ref:"bottomRight"}),n.el(".dhx_window-resizer.dhx_window-resizer--bottom_left",{_ref:"bottomLeft"}),n.el(".dhx_window-resizer.dhx_window-resizer--top_right",{_ref:"topRight"}),n.el(".dhx_window-resizer.dhx_window-resizer--top_left",{_ref:"topLeft"})])},p.prototype._startDrag=function(t,e){var a=this;this.config.node.classList.add("dhx_window--stop_selection");function i(t){var e,i,n,o={left:a._popup.offsetLeft,top:a._popup.offsetTop},r=t.pageX-l,s=t.pageY-c;a.config.viewportOverflow||(e=(n=a._getContainerParams()).containerXOffset,i=n.containerYOffset,t=n.containerInnerWidth,n=n.containerInnerHeight,r<e?r=e:e+t-u<r&&(r=e+t-u),s<i?s=i:i+n-d<s&&(s=i+n-d)),a.config.left=r,a.config.top=s,a._popup.style.left=r+"px",a._popup.style.top=s+"px",s={left:r,top:s},a.events.fire(f.WindowEvents.move,[s,o,{left:!0,top:!0,bottom:!0,right:!0}])}var l=t-this._popup.offsetLeft,c=e-this._popup.offsetTop,u=this._popup.offsetWidth,d=this._popup.offsetHeight,n=function(){document.removeEventListener("mouseup",n),document.removeEventListener("mousemove",i),a.config.node.classList.remove("dhx_window--stop_selection")};document.addEventListener("mouseup",n),document.addEventListener("mousemove",i)},p.prototype._startResize=function(r){var t,e,s=this,a=100|this.config.minWidth,l=100|this.config.minHeight,c=this._popup.offsetLeft,u=this._popup.offsetTop,d=this._popup.offsetWidth,h=this._popup.offsetHeight,i=this.getRootView().refs;switch(!0){case r.bottom&&r.left:e="dhx_window-body-pointer--bottom_left",t=i.bottomLeft;break;case r.bottom&&r.right:e="dhx_window-body-pointer--bottom_right",t=i.bottomLeft;break;case r.top&&r.left:e="dhx_window-body-pointer--top_left",t=i.bottomLeft;break;case r.top&&r.right:e="dhx_window-body-pointer--top-right",t=i.right;break;case r.top:e="dhx_window-body-pointer--top",t=i.bottomLeft;break;case r.bottom:e="dhx_window-body-pointer--bottom",t=i.bottomLeft;break;case r.left:e="dhx_window-body-pointer--left",t=i.bottomLeft;break;case r.right:e="dhx_window-body-pointer--right",t=i.right}t.el.classList.add("dhx_window-resizer--active"),this.config.node.classList.add("dhx_window--stop_selection"),this.config.node.classList.add(e);function n(t){var e=(o=s._getContainerParams()).containerInnerWidth,i=o.containerInnerHeight,n=o.containerXOffset,o=o.containerYOffset,t={width:s._notInNode()?t.pageX-c:t.pageX-s.config.node.offsetLeft-c,height:s._notInNode()?t.pageY-u:t.pageY-s.config.node.offsetTop-u,left:s._notInNode()?t.pageX:t.pageX-s.config.node.offsetLeft,top:s._notInNode()?t.pageY:t.pageY-s.config.node.offsetTop};r.right&&(t.width<a?t.width=a:t.width>n+e-c&&(t.width=n+e-c),s._popup.style.width=t.width+"px"),r.bottom&&(t.height<l?t.height=l:t.height>o+i-u&&(t.height=o+i-u),s._popup.style.height=t.height+"px"),r.left&&(c+d-t.left<a&&(t.left=c+d-a),t.width=c+d-t.left,s.config.left=t.left,s._popup.style.left=t.left+"px",s._popup.style.width=t.width+"px"),r.top&&(t.top<o?t.top=o:u+h-t.top<l&&(t.top=u+h-l),t.height=u+h-t.top,s.config.top=t.top,s._popup.style.top=t.top+"px",s._popup.style.height=t.height+"px"),s.config.width=s._popup.offsetWidth,s.config.height=s._popup.offsetHeight,s.events.fire(f.WindowEvents.resize,[t,{left:c,top:u,height:h,width:d},r])}var o=function(){document.removeEventListener("mouseup",o),document.removeEventListener("mousemove",n),s.config.node.classList.remove("dhx_window--stop_selection"),s.config.node.classList.remove(e),t.el.classList.remove("dhx_window-resizer--active")};document.addEventListener("mouseup",o),document.addEventListener("mousemove",n)},p.prototype._blockScreen=function(){var n=this,t=document.createElement("div");t.className="dhx_window__overlay",this.config.node.appendChild(t),this._blocker=t,this.config.closable&&(t.addEventListener("click",function(t){return n._hide(t)}),this._keyManager.addHotKey("escape",function(t){var e=Array.prototype.slice.call(document.querySelectorAll(".dhx_popup--window_modal")),i=Array.prototype.slice.call(document.querySelectorAll(".dhx_popup--window")),i=e.concat(i);1!==i.length?(i.sort(function(t,e){return+window.getComputedStyle(e).zIndex-+window.getComputedStyle(t).zIndex}),i[i.length-1]===n._popup&&n._hide(t)):n._hide(t)}))},p.prototype._notInNode=function(){return this.config.node===document.body||this.config.modal},p.prototype._getContainerParams=function(){var t=this._notInNode();return{containerInnerWidth:t?window.innerWidth:this.config.node.offsetWidth,containerInnerHeight:t?window.innerHeight:this.config.node.offsetHeight,containerXOffset:t?window.pageXOffset:this.config.node.scrollLeft,containerYOffset:t?window.pageYOffset:this.config.node.scrollTop}},p);function p(t){var i=this;this.config=l.extend({movable:!1,resizable:!1,closable:t.modal},t),this.config.node&&"string"==typeof this.config.node?this.config.node=document.getElementById(this.config.node):this.config.node||(this.config.node=document.body),this._uid=l.uid(),this.events=new o.EventSystem(this);t=this._popup=document.createElement("div");t.tabIndex=1,t.setAttribute("role","dialog"),t.setAttribute("aria-modal",""+(this.config.modal||!1)),this.config.modal||d.default.add(this._uid,this._popup),this._fullScreen=!1,this._isActive=!1,this._keyManager=new r.KeyManager(function(t,e){return e===i._uid||i.getContainer().contains(document.activeElement)}),this._initHandlers(),this._initUI(),this.config.html&&this.attachHTML(this.config.html)}e.Window=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.WindowEvents||(e.WindowEvents={})).resize="resize",e.headerDoubleClick="headerdoubleclick",e.move="move",e.afterShow="aftershow",e.afterHide="afterhide",e.beforeShow="beforeshow",e.beforeHide="beforehide"},function(t,e,i){i(109),i(110),i(111),i(112),i(113),t.exports=i(114)},function(t,e){Object.values=Object.values||function(e){var t=Object.prototype.toString.call(e);if(null==e)throw new TypeError("Cannot convert undefined or null to object");if(~["[object String]","[object Object]","[object Array]","[object Function]"].indexOf(t)){if(Object.keys)return Object.keys(e).map(function(t){return e[t]});var i,n=[];for(i in e)e.hasOwnProperty(i)&&n.push(e[i]);return n}return[]},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){"use strict";for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(null==t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),o=0;o<e.length;o++){var r=e[o];if(null!=r)for(var s=Object.keys(Object(r)),a=0,l=s.length;a<l;a++){var c=s[a],u=Object.getOwnPropertyDescriptor(r,c);void 0!==u&&u.enumerable&&(n[c]=r[c])}}return n}})},function(t,e){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(t,e){if(null==this)throw new TypeError('"this" is null or not defined');var i=Object(this),n=i.length>>>0;if(0==n)return!1;var o,r,e=0|e,s=Math.max(0<=e?e:n-Math.abs(e),0);for(;s<n;){if((o=i[s])===(r=t)||"number"==typeof o&&"number"==typeof r&&isNaN(o)&&isNaN(r))return!0;s++}return!1},configurable:!0,writable:!0}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null==this)throw new TypeError('"this" is null or not defined');var e=Object(this),i=e.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var n=arguments[1],o=0;o<i;){var r=e[o];if(t.call(n,r,o,e))return r;o++}},configurable:!0,writable:!0}),Array.prototype.findIndex||(Array.prototype.findIndex=function(t){if(null==this)throw new TypeError("Array.prototype.findIndex called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,i=Object(this),n=i.length>>>0,o=arguments[1],r=0;r<n;r++)if(e=i[r],t.call(o,e,r,i))return r;return-1})},function(t,e){String.prototype.includes||(String.prototype.includes=function(t,e){"use strict";return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}),String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){return e=e||0,this.indexOf(t,e)===e}}),String.prototype.padStart||(String.prototype.padStart=function(t,e){return t>>=0,e=String(e||" "),this.length>t?String(this):((t-=this.length)>e.length&&(e+=e.repeat(t/e.length)),e.slice(0,t)+String(this))}),String.prototype.padEnd||(String.prototype.padEnd=function(t,e){return t>>=0,e=String(e||" "),this.length>t?String(this):((t-=this.length)>e.length&&(e+=e.repeat(t/e.length)),String(this)+e.slice(0,t))})},function(t,e){var i,n,o,r;Element&&!Element.prototype.matches&&((i=Element.prototype).matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector),"classList"in SVGElement.prototype||Object.defineProperty(SVGElement.prototype,"classList",{get:function(){var i=this;return{contains:function(t){return-1!==i.className.baseVal.split(" ").indexOf(t)},add:function(t){return i.setAttribute("class",i.getAttribute("class")+" "+t)},remove:function(t){var e=i.getAttribute("class").replace(new RegExp("(\\s|^)".concat(t,"(\\s|$)"),"g"),"$2");i.classList.contains(t)&&i.setAttribute("class",e)},toggle:function(t){this.contains(t)?this.remove(t):this.add(t)}}},configurable:!0}),Object.entries||(n=Function.bind.call(Function.call,Array.prototype.reduce),o=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),r=Function.bind.call(Function.call,Array.prototype.concat),Object.entries=function(i){return n(Object.keys(i),function(t,e){return r(t,"string"==typeof e&&o(i,e)?[[e,i[e]]]:[])},[])}),Event.prototype.composedPath||(Event.prototype.composedPath=function(){if(this.path)return this.path;var t=this.target;for(this.path=[];null!==t.parentNode;)this.path.push(t),t=t.parentNode;return this.path.push(document,window),this.path})},function(t,e){Math.sign=Math.sign||function(t){return 0===(t=+t)||isNaN(t)?t:0<t?1:-1}},function(t,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),e(115);var i=e(116);o.cssManager=i.cssManager;var n=e(2);o.EventSystem=n.EventSystem;var r=e(0);o.awaitRedraw=r.awaitRedraw,o.resizeHandler=r.resizeHandler,o.setTheme=r.setTheme;var s=e(59);o.Uploader=s.Uploader;var a=e(8);o.DataCollection=a.DataCollection,o.TreeCollection=a.TreeCollection,o.DataProxy=a.DataProxy,o.dataDrivers=a.dataDrivers,o.ajax=a.ajax;var l=e(11);o.Layout=l.Layout;i=e(35);o.List=i.List;n=e(33);o.Calendar=n.Calendar;r=e(52);o.Colorpicker=r.Colorpicker;s=e(185);o.Chart=s.Chart;a=e(34);o.Combobox=a.Combobox;l=e(206);o.DataView=l.DataView;i=e(210);o.Form=i.Form;n=e(42);o.Grid=n.Grid;r=e(10);o.message=r.message,o.alert=r.alert,o.confirm=r.confirm,o.enableTooltip=r.enableTooltip,o.disableTooltip=r.disableTooltip,o.tooltip=r.tooltip;s=e(229);o.Menu=s.Menu,o.ContextMenu=s.ContextMenu;a=e(12);o.Popup=a.Popup;l=e(232);o.Ribbon=l.Ribbon;i=e(234);o.Sidebar=i.Sidebar;n=e(48);o.Slider=n.Slider;r=e(236);o.Tabbar=r.Tabbar;s=e(45);o.Timepicker=s.Timepicker;a=e(37);o.Toolbar=a.Toolbar;l=e(238);o.Tree=l.Tree;i=e(240);o.Window=i.Window;n=e(52),r=e(44),s=e(16),a=e(50),l=e(98),i=e(71),e=window;o.i18n=e.dhx&&e.dhx.i18n?e.dhx.i18n:{},o.i18n.setLocale=function(t,e){var i,n=o.i18n[t];for(i in e)n[i]=e[i]},o.i18n.colorpicker=o.i18n.colorpicker||n.locale,o.i18n.message=o.i18n.message||r.default,o.i18n.calendar=o.i18n.calendar||s.locale,o.i18n.combobox=o.i18n.combobox||a.default,o.i18n.form=o.i18n.form||l.default,o.i18n.timepicker=o.i18n.timepicker||i.default},function(t,e,i){},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(1),i=(o.prototype.update=function(){this._styleCont.innerHTML!==this._generateCss()&&(document.head.appendChild(this._styleCont),this._styleCont.innerHTML=this._generateCss())},o.prototype.remove=function(t){delete this._classes[t],this.update()},o.prototype.add=function(t,e,i){void 0===i&&(i=!1);var n=this._toCssString(t),t=this._findSameClassId(n);return t&&e&&e!==t?(this._classes[e]=this._classes[t],e):t||this._addNewClass(n,e,i)},o.prototype.get=function(t){if(this._classes[t]){for(var e={},i=0,n=this._classes[t].split(";");i<n.length;i++){var o=n[i];o&&(e[(o=o.split(":"))[0]]=o[1])}return e}return null},o.prototype.destructor=function(){this._classes=this._styleCont=null},o.prototype._findSameClassId=function(t){for(var e in this._classes)if(t===this._classes[e])return e;return null},o.prototype._addNewClass=function(t,e,i){e=e||"dhx_generated_class_"+n.uid();return this._classes[e]=t,i||this.update(),e},o.prototype._toCssString=function(t){var e,i="";for(e in t){var n=t[e];i+=e.replace(/[A-Z]{1}/g,function(t){return"-"+t.toLowerCase()})+":"+n+";"}return i},o.prototype._generateCss=function(){var t,e="";for(t in this._classes)e+="."+t+"{"+this._classes[t]+"}\n";return e},o);function o(){this._classes={};var t=document.createElement("style");t.id="dhx_generated_styles",this._styleCont=document.head.appendChild(t)}e.CssManager=i,e.cssManager=new i},function(t,o,r){(function(t){var e=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function n(t,e){this._id=t,this._clearFn=e}o.setTimeout=function(){return new n(i.call(setTimeout,e,arguments),clearTimeout)},o.setInterval=function(){return new n(i.call(setInterval,e,arguments),clearInterval)},o.clearTimeout=o.clearInterval=function(t){t&&t.close()},n.prototype.unref=n.prototype.ref=function(){},n.prototype.close=function(){this._clearFn.call(e,this._id)},o.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},o.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},o._unrefActive=o.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;0<=e&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},r(118),o.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,o.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,r(40))},function(t,e,i){(function(t,p){!function(i,n){"use strict";var o,r,s,a,l,c,e,u,t;function d(t){delete r[t]}function h(t){if(s)setTimeout(h,0,t);else{var e=r[t];if(e){s=!0;try{!function(t){var e=t.callback,i=t.args;switch(i.length){case 0:e();break;case 1:e(i[0]);break;case 2:e(i[0],i[1]);break;case 3:e(i[0],i[1],i[2]);break;default:e.apply(n,i)}}(e)}finally{d(t),s=!1}}}}function f(t){t.source===i&&"string"==typeof t.data&&0===t.data.indexOf(u)&&h(+t.data.slice(u.length))}i.setImmediate||(o=1,s=!(r={}),a=i.document,t=(t=Object.getPrototypeOf&&Object.getPrototypeOf(i))&&t.setTimeout?t:i,l="[object process]"==={}.toString.call(i.process)?function(t){p.nextTick(function(){h(t)})}:function(){if(i.postMessage&&!i.importScripts){var t=!0,e=i.onmessage;return i.onmessage=function(){t=!1},i.postMessage("","*"),i.onmessage=e,t}}()?(u="setImmediate$"+Math.random()+"$",i.addEventListener?i.addEventListener("message",f,!1):i.attachEvent("onmessage",f),function(t){i.postMessage(u+t,"*")}):i.MessageChannel?((e=new MessageChannel).port1.onmessage=function(t){h(t.data)},function(t){e.port2.postMessage(t)}):a&&"onreadystatechange"in a.createElement("script")?(c=a.documentElement,function(t){var e=a.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,c.removeChild(e),e=null},c.appendChild(e)}):function(t){setTimeout(h,0,t)},t.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i<e.length;i++)e[i]=arguments[i+1];return t={callback:t,args:e},r[o]=t,l(o),o++},t.clearImmediate=d)}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,i(40),i(119))},function(t,e){var i,n,t=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function s(e){if(i===setTimeout)return setTimeout(e,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(t){i=o}try{n="function"==typeof clearTimeout?clearTimeout:r}catch(t){n=r}}();var a,l=[],c=!1,u=-1;function d(){c&&a&&(c=!1,a.length?l=a.concat(l):u=-1,l.length&&h())}function h(){if(!c){var t=s(d);c=!0;for(var e=l.length;e;){for(a=l,l=[];++u<e;)a&&a[u].run();u=-1,e=l.length}a=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===r||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function p(){}t.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];l.push(new f(t,e)),1!==l.length||c||s(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=p,t.addListener=p,t.once=p,t.off=p,t.removeListener=p,t.removeAllListeners=p,t.emit=p,t.prependListener=p,t.prependOnceListener=p,t.listeners=function(t){return[]},t.binding=function(t){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(t){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},function(t,e,i){
|
|
12
|
+
if(window.dhx&&(window.dhx_legacy=dhx,delete window.dhx),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.dhx=e():t.dhx=e()}(window,function(){return n={},o.m=i=[function(t,o,r){"use strict";(function(t){Object.defineProperty(o,"__esModule",{value:!0});var e=r(120),n=r(3);function i(i){function e(t){var e=t.el.offsetHeight,t=t.el.offsetWidth;i(t,e)}var n=window.ResizeObserver;return n?o.el("div.dhx-resize-observer",{_hooks:{didInsert:function(t){new n(function(){return e(t)}).observe(t.el)}}}):o.el("iframe.dhx-resize-observer",{_hooks:{didInsert:function(t){t.el.contentWindow.onresize=function(){return e(t)},e(t)}}})}o.el=e.defineElement,o.sv=e.defineSvgElement,o.view=e.defineView,o.create=e.createView,o.inject=e.injectView,o.KEYED_LIST=e.KEYED_LIST,o.disableHelp=function(){e.DEVMODE.mutations=!1,e.DEVMODE.warnings=!1,e.DEVMODE.verbose=!1,e.DEVMODE.UNKEYED_INPUT=!1},o.resizer=i,o.resizeHandler=function(t,e){return o.create({render:function(){return i(e)}}).mount(t)},o.awaitRedraw=function(){return new t(function(t){requestAnimationFrame(function(){t()})})},o.setTheme=function(t,e){void 0===t&&(t="light");var i="data-dhx-theme";e||document.querySelectorAll("["+i+"]").forEach(function(t){return t.removeAttribute(i)}),e=e||document.documentElement,n.toNode(e).setAttribute(i,t)}}).call(this,r(17))},function(t,e,i){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r=i(3),n=(new Date).valueOf();e.uid=function(){return"u"+n++},e.extend=function t(e,i,n){if(void 0===n&&(n=!0),i)for(var o in i){var r=i[o],s=e[o];void 0===r?delete e[o]:!n||"object"!=typeof s||s instanceof Date||s instanceof Array?e[o]=r:t(s,r)}return e},e.copy=function(t,e){var i,n={};for(i in t)e&&i.startsWith("$")||(n[i]=t[i]);return n},e.naturalSort=function(t){return t.sort(function(t,e){return"string"==typeof t?t.localeCompare(e):t-e})},e.findIndex=function(t,e){for(var i=t.length,n=0;n<i;n++)if(e(t[n]))return n;return-1},e.isEqualString=function(t,e){if(t=t.toString(),e=e.toString(),t.length>e.length)return!1;for(var i=0;i<t.length;i++)if(t[i].toLowerCase()!==e[i].toLowerCase())return!1;return!0},e.singleOuterClick=function(e){var i=function(t){e(t)&&document.removeEventListener("click",i)};document.addEventListener("click",i)},e.detectWidgetClick=function(e,i){function t(t){return i(r.locate(t,"data-dhx-widget-id")===e)}return document.addEventListener("click",t),function(){return document.removeEventListener("click",t)}},e.unwrapBox=function(t){return Array.isArray(t)?t[0]:t},e.wrapBox=function(t){return Array.isArray(t)?t:[t]},e.isDefined=function(t){return null!=t},e.isId=function(t){return"number"==typeof t||"string"==typeof t&&""!==t},e.range=function(t,e){if(e<t)return[];for(var i=[];t<=e;)i.push(t++);return i},e.isNumeric=function(t){return!isNaN(t-parseFloat(t))},e.downloadFile=function(t,e,i){void 0===i&&(i="text/plain");var n,o,i=new Blob([t],{type:i});window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(i,e):(n=document.createElement("a"),o=URL.createObjectURL(i),n.href=o,n.download=e,document.body.appendChild(n),n.click(),setTimeout(function(){document.body.removeChild(n),window.URL.revokeObjectURL(o)},0))},e.debounce=function(o,r,s){var a;return function(){for(var t=this,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var n=s&&!a;clearTimeout(a),a=setTimeout(function(){a=null,s||o.apply(t,e)},r),n&&o.apply(this,e)}},e.compare=function t(e,i){for(var n in e){if(e.hasOwnProperty(n)!==i.hasOwnProperty(n))return!1;switch(typeof e[n]){case"object":if(!t(e[n],i[n]))return!1;break;case"function":if(void 0===i[n]||"compare"!==n&&e[n].toString()!==i[n].toString())return!1;break;default:if(e[n]!==i[n])return!1}}for(var n in i)if(!e.hasOwnProperty(n))return!1;return!0},e.isType=function(t){return((Object.prototype.toString.call(t).match(/^\[object (\S+?)\]$/)||[])[1]||"undefined").toLowerCase()},e.isEmptyObj=function(t){for(var e in t)return!1;return!0},e.getMaxArrayNumber=function(t){if(t.length){for(var e=-1/0,i=0,n=t.length;i<n;i++)t[i]>e&&(e=t[i]);return e}},e.getMinArrayNumber=function(t){if(t.length){for(var e=1/0,i=0,n=t.length;i<n;i++)t[i]<e&&(e=t[i]);return e}},e.getStringWidth=function(t,e){e=o({font:"normal 14px Roboto",lineHeight:20},e);var i=document.createElement("canvas"),n=i.getContext("2d");e.font&&(n.font=e.font);t=n.measureText(t).width;return r.isIE()||i.remove(),t},e.rgbToHex=function(t){if("#"===t.substr(0,1))return t;if("rgb"===t.substr(0,3)){t=/(.*?)rgb[a]?\((\d+), *(\d+), *(\d+),* *([\d+.]*)\)/.exec(t);return"#"+parseInt(t[2],10).toString(16).padStart(2,"0")+parseInt(t[3],10).toString(16).padStart(2,"0")+parseInt(t[4],10).toString(16).padStart(2,"0")}},e.getCloneObject=function t(e){if(!e)return e;var i,n=Array.isArray(e)?[]:{};for(i in e){var o=e[i];o instanceof Date?n[i]=new Date(o):n[i]="object"==typeof o?t(o):o}return n},e.getTextLines=function(t,e,i){for(var n=e.split(" "),o="",r="",s=[],a=0;a<n.length;a++)r+=n[a]+" ",i<t.measureText(r.trimEnd()).width&&0<a?(s.push(o),o=n[a]+" ",r=n[a]+" "):o+=n[a]+" ",a===n.length-1&&s.push(o);return s}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(o.prototype.on=function(t,e,i){t=t.toLowerCase();this.events[t]=this.events[t]||[],this.events[t].push({callback:e,context:i||this.context})},o.prototype.detach=function(t,e){var t=t.toLowerCase(),i=this.events[t];if(e&&i&&i.length)for(var n=i.length-1;0<=n;n--)i[n].context===e&&i.splice(n,1);else this.events[t]=[]},o.prototype.fire=function(t,e){void 0===e&&(e=[]);t=t.toLowerCase();return!this.events[t]||!this.events[t].map(function(t){return t.callback.apply(t.context,e)}).includes(!1)},o.prototype.clear=function(){this.events={}},o);function o(t){this.events={},this.context=t||this}e.EventSystem=n,e.EventsMixin=function(t){var e=new n(t=t||{});t.detachEvent=e.detach.bind(e),t.attachEvent=e.on.bind(e),t.callEvent=e.fire.bind(e)}},function(t,e,i){"use strict";var c=this&&this.__assign||function(){return(c=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function n(t,e,i){for(void 0===e&&(e="data-dhx-id"),void 0===i&&(i="target"),t instanceof Event&&(t=t[i]);t;){if(t.getAttribute&&t.getAttribute(e))return t;t=t.parentNode}}Object.defineProperty(e,"__esModule",{value:!0}),e.toNode=function(t){var e;return"string"==typeof t?document.getElementById(t)||document.querySelector("[data-cell-id="+t+"]")||document.querySelector(t)||(null===(e=document.querySelector("[data-dhx-root-id="+t+"]"))||void 0===e?void 0:e.parentElement)||document.body:t||document.body},e.eventHandler=function(s,a,l){var c=Object.keys(a);return function(t){var e=s(t);if(void 0!==e){var i=t.target;t:for(;i;){var n=i.getAttribute&&i.getAttribute("class")||"";if(n.length)for(var o=n.split(" "),r=0;r<c.length;r++)if(o.includes(c[r])){if(!1===a[c[r]](t,e)||t.cancelBubble)return!1;break t}i=i.parentNode}}return l&&l(t),!0}},e.locateNode=n,e.locate=function(t,e){return void 0===e&&(e="data-dhx-id"),(t=n(t,e))?t.getAttribute(e):""},e.locateNodeByClassName=function(t,e){for(t instanceof Event&&(t=t.target);t;){if(e){if(t.classList&&t.classList.contains(e))return t}else if(t.getAttribute&&t.getAttribute("data-dhx-id"))return t;t=t.parentNode}},e.getBox=function(t){var e=t.getBoundingClientRect(),i=document.body,n=window.pageYOffset||i.scrollTop,t=window.pageXOffset||i.scrollLeft;return{top:e.top+n,left:e.left+t,right:i.offsetWidth-e.right,bottom:i.offsetHeight-e.bottom,width:e.right-e.left,height:e.bottom-e.top}};var o=-1;e.getScrollbarWidth=function(){if(-1<o)return o;var t=document.createElement("div");return document.body.appendChild(t),t.style.cssText="position: absolute;left: -99999px;overflow:scroll;width: 100px;height: 100px;",o=t.offsetWidth-t.clientWidth,document.body.removeChild(t),o};var r=-1;function s(t){t=t.getBoundingClientRect();return{left:t.left+window.pageXOffset,right:t.right+window.pageXOffset,top:t.top+window.pageYOffset,bottom:t.bottom+window.pageYOffset}}function u(){return{rightBorder:window.pageXOffset+window.innerWidth,bottomBorder:window.pageYOffset+window.innerHeight}}function l(t,e){var i,n,o,r=u(),s=r.rightBorder,a=r.bottomBorder-t.bottom-e.height,l=t.top-e.height;if("bottom"===e.mode?0<=a?i=t.bottom:0<=l&&(i=l):0<=l?i=l:0<=a&&(i=t.bottom),a<0&&l<0){if(e.auto)return d(t,c(c({},e),{mode:"right",auto:!1}));i=l<a?t.bottom:l}return{left:e.centering?(n=t,o=e.width,r=s,a=(o-(n.right-n.left))/2,l=n.left-a,a=n.right+a,0<=l&&a<=r?l:l<0?0:r-o):(s=s-t.left-e.width,e=t.right-e.width,0<=s||!(0<=e)&&s<e?t.left:e),top:i}}function d(t,e){var i,n,o=u(),r=o.rightBorder,s=o.bottomBorder,a=r-t.right-e.width,o=t.left-e.width;if("right"===e.mode?0<=a?n=t.right:0<=o&&(n=o):0<=o?n=o:0<=a&&(n=t.right),o<0&&a<0){if(e.auto)return l(t,c(c({},e),{mode:"bottom",auto:!1}));n=a<o?o:t.right}return{left:n,top:e.centering?(a=t,i=e.height,o=r,n=(i-(a.bottom-a.top))/2,r=a.top-n,n=a.bottom+n,0<=r&&n<=o?r:r<0?0:o-i):(i=t.bottom-e.height,!(0<=(e=s-t.top-e.height))&&(0<i||e<i)?i:t.top)}}function a(t,e){var i=("bottom"===e.mode||"top"===e.mode?l:d)(t,e),t=i.left,i=i.top;return{left:Math.round(t)+"px",top:Math.round(i)+"px",minWidth:Math.round(e.width)+"px",position:"absolute"}}e.getScrollbarHeight=function(){if(-1<r)return r;var t=document.createElement("div");return document.body.appendChild(t),t.style.cssText="position: absolute;left: -99999px;overflow:scroll;width: 100px;height: 100px;",r=t.offsetHeight-t.clientHeight,document.body.removeChild(t),r},e.isIE=function(){var t=window.navigator.userAgent;return t.includes("MSIE ")||t.includes("Trident/")},e.isSafari=function(){function t(t){return t.test(window.navigator.userAgent)}var e=t(/Chrome/),i=t(/Firefox/);return!e&&!i&&t(/Safari/)},e.isFirefox=function(){function t(t){return t.test(window.navigator.userAgent)}var e=t(/Chrome/),i=t(/Safari/);return!e&&!i&&t(/Firefox/)},e.getRealPosition=s,e.calculatePosition=a,e.fitPosition=function(t,e){return a(s(t),e)},e.getPageCss=function(){for(var t=[],e=0;e<document.styleSheets.length;e++)for(var i=document.styleSheets[e],n=("cssRules"in i?i.cssRules:i.rules),o=0;o<n.length;o++){var r=n[o];"cssText"in r?t.push(r.cssText):t.push(r.selectorText+" {\n"+r.style.cssText+"\n}\n")}return t.join("\n")},e.getLabelStyle=function(t){var e=t.helpMessage,i=t.type,n=t.labelWidth,o=t.label,r=n&&n.toString().startsWith("0"),t="text"!==i&&t.required;return!!(e||t||!(!o||o&&r)||n&&!r)&&{style:(o||n)&&!r&&{width:n,"max-width":"100%"},label:o&&r?null:o}};var h=function(t){return t.href&&!t.href.startsWith(window.location.origin)};e.getPageInlineCss=function(){for(var t=[],e=0;e<document.styleSheets.length;e++){var i=document.styleSheets[e];if(!h(i))for(var n=("cssRules"in i&&i.cssRules.length?i.cssRules:i.rules),o=0;o<n.length;o++){var r=n[o];"cssText"in r?t.push(r.cssText):t.push(r.selectorText+" {\n"+r.style.cssText+"\n}\n")}}return t.join("\n")},e.getPageLinksCss=function(t){var e=[];if(t)t.forEach(function(t){return e.push('<link href="'+t+'" rel="stylesheet"/>')});else for(var i=0;i<document.styleSheets.length;i++){var n=document.styleSheets[i];h(n)&&e.push('<link href="'+n.href+'" rel="stylesheet"/>')}return e.join("\n")}},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.ClearMethod||(e.ClearMethod={})).value="value",n.validation="validation",(n=e.FormEvents||(e.FormEvents={})).beforeChange="beforeChange",n.change="change",n.click="click",n.focus="focus",n.blur="blur",n.keydown="keydown",n.beforeShow="beforeShow",n.afterShow="afterShow",n.beforeHide="beforeHide",n.afterHide="afterHide",n.afterValidate="afterValidate",n.beforeValidate="beforeValidate",n.beforeChangeProperties="beforeChangeProperties",n.afterChangeProperties="afterChangeProperties",n.beforeSend="beforesend",n.afterSend="aftersend",n.buttonClick="buttonClick",n.validationFail="validationfail",(n=e.ValidationStatus||(e.ValidationStatus={}))[n.pre=0]="pre",n[n.error=1]="error",n[n.success=2]="success",(e=e.ItemEvent||(e.ItemEvent={})).click="click",e.beforeChange="beforeChange",e.change="change",e.input="input",e.focus="focus",e.blur="blur",e.keydown="keydown",e.beforeChangeOptions="beforeChangeOptions",e.changeOptions="changeOptions",e.beforeShow="beforeShow",e.afterShow="afterShow",e.beforeHide="beforeHide",e.afterHide="afterHide",e.beforeValidate="beforeValidate",e.afterValidate="afterValidate",e.beforeUploadFile="beforeUploadFile",e.uploadFile="uploadfile",e.uploadBegin="uploadBegin",e.uploadComplete="uploadComplete",e.uploadFail="uploadFail",e.uploadProgress="uploadProgress",e.beforeChangeProperties="beforeChangeProperties",e.afterChangeProperties="afterChangeProperties"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(1),o=i(3),i=(r.prototype.mount=function(t,e){e&&(this._view=e),t&&this._view&&this._view.mount&&(this._container=o.toNode(t),this._container.tagName?this._view.mount(this._container):this._container.attach&&this._container.attach(this))},r.prototype.unmount=function(){var t=this.getRootView();t&&t.node&&(t.unmount(),this._view=null)},r.prototype.getRootView=function(){return this._view},r.prototype.getRootNode=function(){return this._view&&this._view.node&&this._view.node.el},r.prototype.paint=function(){this._view&&(this._view.node||this._container)&&(this._doNotRepaint=!1,this._view.redraw())},r);function r(t,e){this.config=e||{},this._uid=null!==(e=this.config.rootId)&&void 0!==e?e:n.uid()}e.View=i,e.toViewLike=function(e){return{getRootView:function(){return e},paint:function(){return e.node&&e.redraw()},mount:function(t){return e.mount(t)}}}},function(t,n,e){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0});var r,s,a=e(0),i=["#2A9D8F","#78586F","#E76F51","#E5A910","#11A3D0","#985F99","#217B70","#BD9391","#9C89B8","#734B5E","#D66BA0","#5C5D8D"],l=["#237396","#2780A8","#3892A3","#4DA3A0","#67BF99"];function c(e){var i={};return function(t){return i[t]||(i[t]=e(t))}}n.getDefaultColor=function(t,e){return void 0===t&&(t=0),(e?l:i)[t]},n.locator=function(e){return e?"string"==typeof e?function(t){return t[e]}:e:function(){return""}},n.log10=function(t){return Math.log(t)/Math.LN10},n.getTextWidth=(r=function(t,e){void 0===e&&(e="");var i=document.createElement("canvas").getContext("2d");return e&&(i.font=e),i.measureText(t).width},s={},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=s,n=0;n<t.length-1;n++)i[t[n]]=i[t[n]]||{},i=i[t[n]];var o=t.length-1;return i[o]||(i[o]=r.apply(void 0,t))});var u=c(function(t){var e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,e.fillRect(0,0,2,2),[(e=e.getImageData(1,1,1,1).data)[0],e[1],e[2]]});function d(t,e){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}n.getColorShade=function(t,e){return"rgb("+(t=u(t).map(function(t){return Math.floor(t*e+255*(1-e))}))[0]+","+t[1]+","+t[2]+")"},n.getFontStyle=c(function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("class","dhx_chart");var i=document.createElementNS("http://www.w3.org/2000/svg","text");i.setAttribute("class",t),e.setAttribute("visibility","hidden"),i.textContent="test",e.appendChild(i),document.body.appendChild(e);i=getComputedStyle(i),i=i.fontSize+" "+i.fontFamily;return document.body.removeChild(e),i}),n.linearGradient=function(t,e){return t=t.stops.map(function(t){return a.sv("stop",{offset:100*t.offset+"%","stop-color":t.color,"stop-opacity":t.opacity||1})}),a.sv("linearGradient",{id:e,gradientTransform:"rotate(90)"},t)},n.getRadialGradient=function(t,e,i){return e=e.map(function(t){return a.sv("stop",{offset:t.offset,"stop-color":t.color,"stop-opacity":t.opacity||1})}),a.sv("radialGradient",o({id:i,cx:0,cy:0,gradientUnits:"userSpaceOnUse"},t),e)},n.euclideanDistance=function(t,e,i,n){return Math.sqrt((t-i)*(t-i)+(e-n)*(e-n))},n.roundToTwoNumAfterPoint=function(t){return Math.round(100*(100*t+Number.EPSILON))/100},n.verticalCenteredText=function(t){return a.sv("tspan",{dy:"0.5ex",style:{pointerEvents:"none"}},t)},n.verticalTopText=function(t){return a.sv("tspan",{dy:"-0.5ex"},t)},n.verticalBottomText=function(t){return a.sv("tspan",{dy:"1.5ex"},t)},n.calcPointRef=function(t,e){return t+"_"+e},n.getClassesForRotateScale=function(t,e){var i="",n=[];switch("left"===t||"top"===t?n.push("start-text","end-text"):"right"!==t&&"bottom"!==t||n.push("end-text","start-text"),t){case"left":case"right":0===e?i=n[1]:0<e?180===e?i=n[0]:180<e?e<270?i=n[0]:270<e&&(i=n[1]):e<180&&(90<e?i=n[0]:e<90&&(i=n[1])):e<0&&(-180===e?i=n[0]:e<-180?-270<e?i=n[0]:e<-270&&(i=n[1]):-180<e&&(e<-90?i=n[0]:-90<e&&(i=n[1])));break;case"top":case"bottom":0<e?180<e?i=n[0]:e<180&&(i=n[1]):e<0&&(-180<e?i=n[0]:e<-180&&(i=n[1]))}return i},n.getScales=function(t){var e,i=[];for(e in t){var n=t[e];(n.min||n.max||n.maxTicks||n.text||n.value)&&i.push(e)}return i},n.getSizesSVGText=function(t,e){var i=[];return e=o({font:"normal 14px Roboto",lineHeight:18},e),i.push(n.getTextWidth(t,e.font)),i.push(e.lineHeight),i},n.superposition=d,n.checkPositions=function(t,e,i,n,o){d(t,e)&&(e=o.right?e.y-t.y+t.height:e.y-e.height-t.y,e=o.text1.y+e,Math.abs(e)+o.dy>n&&(e=0<e?n+o.dy:-n+o.dy,o.changeSector=!o.changeSector),n=Math.sqrt(Math.pow(i,2)-Math.pow((e-o.dy)*i/n,2)),n=o.right?n:-n,o.changeSector&&(n*=-1,o.line*=-1,t.class=o.right?"pie-value end-text":"pie-value start-text"),o.text1.x=n,o.text1.y=e,o.text2.x=n,o.text2.y=e+16)}},function(t,e,i){"use strict";var n=this&&this.__rest||function(t,e){var i={};for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(i[o[n]]=t[o[n]]);return i};Object.defineProperty(e,"__esModule",{value:!0});var l=i(4),o=i(39);e.getFormItemCss=function(t,e,i){void 0===i&&(i=!1);var n=t.labelPosition,o=t.required,r=t.disabled,s=t.hiddenLabel,a=t.$validationStatus,a=((t={})[l.ValidationStatus.pre]="",t[l.ValidationStatus.error]=" dhx_form-group--state_error",t[l.ValidationStatus.success]=" dhx_form-group--state_success",t[a]||""),n="left"===n?" dhx_form-group--inline":"",r=r?" dhx_form-group--disabled":"",s=s?" dhx_form-group--label_sr":"";return e?n+(i?"":a)+(o?" dhx_form-group--required":"")+r+s:n+r+s};var r=((i={})[o.Validation.validAlphaNumeric]=/^[a-zA-Z0-9_]+$/,i[o.Validation.validEmail]=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,i[o.Validation.validInteger]=/^-?\d+$/,i[o.Validation.validIPv4]=/\b((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.|$)){4}\b/,i[o.Validation.validNumeric]=/^-?\d+(\.\d+)?$/,i);function a(t){return"fieldset"!==t.type&&(Boolean(t.rows)||Boolean(t.cols))}e.getValidationMessage=function(t){var e;return(e={undefined:t.preMessage})[l.ValidationStatus.pre]=t.preMessage,e[l.ValidationStatus.error]=t.errorMessage,e[l.ValidationStatus.success]=t.successMessage,e[t.$validationStatus]||""},e.validateTemplate=function(t,e){return!r[t]||r[t].test(e)},e.isBlock=a,e.validateInput=function(t,e){var i=!0;return"function"==typeof e?i=e(t):(e=r[e])&&(i=e.test(t.toString())),i},e.baseInputValidate=function(t,e){var i=e.inputType,n=e.min,o=e.max,r=e.minlength,e=e.maxlength;return"number"===i?void 0!==n&&void 0!==o?Number(n)<=Number(o)&&Number(n)<=Number(t)&&Number(o)>=Number(t):void 0!==n?Number(n)<=Number(t):void 0!==o?Number(o)>=Number(t):0===t||"0"===t||!!t:void 0!==r&&void 0!==e?Number(r)<=String(t).length&&Number(e)>=String(t).length:void 0!==r?Number(r)<=String(t).length:void 0!==e?Number(e)>=String(t).length:"string"==typeof t&&!!t},e.isTimeFormat=function(t,e){return(12===e?/(^0?([1-9][0-2]?):[0-5][0-9]?([AP][M]?)$)/i:/(^(0[0-9]|1[0-9]|2[0-3]|[0-9]):[0-5][0-9]$)/i).test(t)},e.isVerify=function(e){return["required","validation","minlength","maxlength","min","max"].some(function(t){switch(t){case"required":return!!e[t];case"validation":return"function"==typeof e[t]||"email"===e[t]||"integer"===e[t]||"numeric"===e[t]||"alphanumeric"===e[t]||"IPv4"===e[t];case"minlength":case"maxlength":return"number"==typeof e[t]||"string"==typeof e[t];case"min":case"max":return("number"==typeof e[t]||"string"==typeof e[t])&&"number"===e.inputType}})},e.baseProps=["width","height","padding","css"],e.widgetConfig=function(t){t.width,t.type,t.id,t.name,t.hidden,t.editable,t.css,t.required,t.helpMessage,t.preMessage,t.successMessage,t.errorMessage,t.label,t.labelWidth,t.labelPosition,t.hiddenLabel,t.validation,t.icon;return n(t,["width","type","id","name","hidden","editable","css","required","helpMessage","preMessage","successMessage","errorMessage","label","labelWidth","labelPosition","hiddenLabel","validation","icon"])},e.setAttacments=function(t,e){var i,n;for(n in t){var o=t[n];"fieldset"===o.config.type?(o.setAttachments(function t(e,i,n){void 0===e&&(e=[]);for(var o=[],r=0;r<e.length;r++){var s=e[r];s.type&&(i[s.name].parent=n,o.push(i[s.name])),a(s)&&o.push.apply(o,t(s.rows||s.cols,i,n))}return o}(o.config.rows||o.config.cols,t,o)),o.setCell(e.getCell(n))):null!==(i=e.getCell(n))&&void 0!==i&&i.attach(o)}}},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(23)),n(e(61)),n(e(125)),n(e(126)),n(e(26)),n(e(162)),n(e(24)),n(e(64)),n(e(63)),n(e(163)),n(e(62)),n(e(41))},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(e.HeaderFilterEvent||(e.HeaderFilterEvent={})).change="change",(n=e.GridEvents||(e.GridEvents={})).scroll="scroll",n.expand="expand",n.filterChange="filterChange",n.beforeFilter="beforeFilter",n.beforeResizeStart="beforeResizeStart",n.resize="resize",n.afterResizeEnd="afterResizeEnd",n.cellClick="cellClick",n.cellRightClick="cellRightClick",n.cellMouseOver="cellMouseOver",n.cellMouseDown="cellMouseDown",n.cellDblClick="cellDblClick",n.headerCellClick="headerCellClick",n.footerCellClick="footerCellClick",n.headerCellMouseOver="headerCellMouseOver",n.footerCellMouseOver="footerCellMouseOver",n.headerCellMouseDown="headerCellMouseDown",n.footerCellMouseDown="footerCellMouseDown",n.headerCellDblClick="headerCellDblClick",n.footerCellDblClick="footerCellDblClick",n.headerCellRightClick="headerCellRightClick",n.footerCellRightClick="footerCellRightClick",n.beforeEditStart="beforeEditStart",n.afterEditStart="afterEditStart",n.beforeEditEnd="beforeEditEnd",n.afterEditEnd="afterEditEnd",n.beforeKeyDown="beforeKeyDown",n.afterKeyDown="afterKeyDown",n.beforeColumnHide="beforeColumnHide",n.afterColumnHide="afterColumnHide",n.beforeColumnShow="beforeColumnShow",n.afterColumnShow="afterColumnShow",n.beforeRowHide="beforeRowHide",n.afterRowHide="afterRowHide",n.beforeRowShow="beforeRowShow",n.afterRowShow="afterRowShow",n.beforeRowDrag="beforeRowDrag",n.dragRowStart="dragRowStart",n.dragRowOut="dragRowOut",n.dragRowIn="dragRowIn",n.canRowDrop="canRowDrop",n.cancelRowDrop="cancelRowDrop",n.beforeRowDrop="beforeRowDrop",n.afterRowDrop="afterRowDrop",n.afterRowDrag="afterRowDrag",n.beforeColumnDrag="beforeColumnDrag",n.dragColumnStart="dragColumnStart",n.dragColumnOut="dragColumnOut",n.dragColumnIn="dragColumnIn",n.canColumnDrop="canColumnDrop",n.cancelColumnDrop="cancelColumnDrop",n.beforeColumnDrop="beforeColumnDrop",n.afterColumnDrop="afterColumnDrop",n.afterColumnDrag="afterColumnDrag",n.beforeRowResize="beforeRowResize",n.afterRowResize="afterRowResize",n.beforeSort="beforeSort",n.afterSort="afterSort",(n=e.GridSystemEvents||(e.GridSystemEvents={})).cellTouchMove="cellTouchMove",n.cellTouchEnd="cellTouchEnd",n.headerCellTouchMove="headerCellTouchMove",n.headerCellTouchEnd="headerCellTouchEnd",(n=e.GridSelectionEvents||(e.GridSelectionEvents={})).beforeUnSelect="beforeUnSelect",n.afterUnSelect="afterUnSelect",n.beforeSelect="beforeSelect",n.afterSelect="afterSelect",(e=e.Split||(e.Split={})).left="leftSplit",e.right="rightSplit",e.top="topSplit",e.bottom="bottomSplit"},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(128)),n(e(129)),n(e(130)),n(e(67)),n(e(43))},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(46)),n(e(139)),n(e(47))},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(142)),n(e(69))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=i(19),s=i(3);function a(t){for(var e=t.toLowerCase().match(/\w+/g),i=0,n="",o=0;o<e.length;o++){var r=e[o];"ctrl"===r?i+=4:"shift"===r?i+=2:"alt"===r?i+=1:n=r}return i+n}var l={Up:"arrowUp",Down:"arrowDown",Right:"arrowRight",Left:"arrowLeft",Esc:"escape",Spacebar:"space"},i=(n.prototype.destructor=function(){document.removeEventListener("keydown",this._initHandler),this.removeHotKey()},n.prototype.addHotKey=function(t,e){t=a(t);this._keysStorage[t]||(this._keysStorage[t]=[]),this._keysStorage[t].push({handler:e})},n.prototype.removeHotKey=function(t,i){var n,o,r=this;t?t&&i?(n=a(t),o=function(t){return t.toString().replace(/\n/g,"").replace(/\s/g,"")},this._keysStorage[n].forEach(function(t,e){o(t.handler)===o(i)&&(delete r._keysStorage[n][e],r._keysStorage[n]=r._keysStorage[n].filter(function(t){return t}))})):(t=a(t),delete this._keysStorage[t]):this._keysStorage={}},n.prototype.exist=function(t){t=a(t);return!!this._keysStorage[t]},n.prototype.getKeyStorageLength=function(){return Object.keys(this._keysStorage).length},n);function n(t){var o=this;this._keysStorage={},this._initHandler=function(t){var e;e=48<=t.which&&t.which<=57||65<=t.which&&t.which<=90?String.fromCharCode(t.which):(e=32===t.which?t.code:t.key,s.isIE()&&l[e]||e);var i=o._keysStorage[(t.ctrlKey||t.metaKey?4:0)+(t.shiftKey?2:0)+(t.altKey?1:0)+(e&&e.toLowerCase())];if(i)for(var n=0;n<i.length;n++){if(o._beforeCall&&!1===o._beforeCall(t,r.focusManager.getFocusId()))return;i[n].handler(t)}},t&&(this._beforeCall=t),document.addEventListener("keydown",this._initHandler)}e.KeyManager=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(0),l=i(3),c=i(5),u=i(12),o=(s=c.View,o(d,s),d.prototype._destructor=function(){this._helper&&this._helper.destructor(),this.config=this._handlers=this._helper=null,this.unmount()},d.prototype._getHandlers=function(){return{}},d.prototype._init=function(){},d.prototype._draw=function(){return this._drawLabel()},d.prototype._drawLabel=function(){var t=this.config,e=t.id,i=t.helpMessage,n=t.required;this.config.helpMessage&&(this._helper||(this._helper=new u.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"})),this._helper.attachHTML(this.config.helpMessage));t=l.getLabelStyle(this.config);return t&&a.el((this.config.type.includes("group")?"legend":"label")+".dhx_label",{for:e||this._uid,class:i?"dhx_label--with-help":"",style:t.style},i?[(t.label||n)&&a.el("span.dhx_label__holder",t.label),a.el("span.dhx_label-help.dxi.dxi-help-circle-outline",{tabindex:"0",role:"button",onclick:this._handlers.showHelper,onfocus:this._handlers.showHelper,onblur:this._handlers.hideHelper,id:"dhx_label__help_"+(e||this._uid)})]:t.label)},d);function d(t,e){void 0===e&&(e={});var i=s.call(this,t,e)||this;i._handlers=r({showHelper:function(t){t.preventDefault(),t.stopPropagation(),i._helper.show(t.target,{mode:"left"===i.config.labelPosition?"bottom":"right",theme:t.target})},hideHelper:function(t){t.preventDefault(),t.stopPropagation(),i._helper.hide()}},i._getHandlers());return i.mount(t,a.create({render:function(){return i._draw()}})),i}e.Label=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(1),n=i(3),r=i(10);e.transpose=function(t,e){for(var i=[],n=0;n<t.length;n++)for(var o=t[n],r=0;r<o.length;r++){i[r]=i[r]||[];var s=e?e(o[r]):o[r];i[r].push(s)}return i},e.getStyleByClass=function(t,e,i,n){return e=e.querySelector("."+i),i=e,i="string"==typeof(t='<div class="'+t+'"></div>')?(i.insertAdjacentHTML("beforeend",t),i.lastChild):(i.appendChild(t),t),t={color:"rgb(0, 0, 0)"===(t=window.getComputedStyle(i)).color?n.color:o.rgbToHex(t.color),background:"rgba(0, 0, 0, 0)"===t.backgroundColor?n.background:o.rgbToHex(t.backgroundColor),fontSize:Math.round(parseFloat(t.fontSize)),bold:["bold","700","600","500"].includes(t.fontWeight)},e.removeChild(i),t.color===n.color&&t.background===n.background&&t.fontSize===n.fontSize?null:t},e.removeHTMLTags=function(t){return"string"!=typeof t&&"number"!=typeof t&&"boolean"!=typeof t?"":(""+(null==t?"":t)).replace(/<[^>]*>/g,"").replace(/["]/g,""").trim()},e.isCssSupport=function(e,i){try{return CSS.supports(e,i)}catch(t){var n=document.createElement("div");return n.style[e]=i,n.style[e]===i}},e.isRowEmpty=function(i){if(i)return Object.keys(i).reduce(function(t,e){return"id"!==e&&!e.startsWith("$")&&t&&void 0!==i[e]&&""!==i[e]?void 0:t},!0)},e.isSortable=function(t,e){return!1!==e.sortable&&t.sortable||e.sortable},e.isAutoWidth=function(e,t){if(t)return!1!==t.autoWidth&&e.autoWidth||t.autoWidth;var i=!1;return e.columns.map(function(t){(!1!==t.autoWidth&&e.autoWidth||t.autoWidth)&&(i=!0)}),i},e.showTooltip=function(t){var e=t.node,i=t.value,t=void 0!==(t=t.htmlEnable)&&t;e&&r.tooltip(i.toString(),{css:"dhx_grid_tooltip",node:e,htmlEnable:t})},e.isContentTooltip=function(t,e,i,n){for(var o=!1,n="header"===n?t.headerTooltip:t.footerTooltip,r=[t.tooltip,n,e.tooltip,null==i?void 0:i.tooltip],s=0;s<r.length;s++)"boolean"==typeof r[s]&&(o=r[s]);return o},e.isTooltip=function(t,e){return!1!==e.tooltip&&t.tooltip||e.tooltip},e.isHtmlEnable=function(t,e){return!1!==e.htmlEnable&&t.htmlEnable||!!e.htmlEnable},e.getTotalWidth=function(t){return t.reduce(function(t,e){return t+(e.$width||0)},0)},e.getTotalHeight=function(t){return t.reduce(function(t,e){return t+(e.$height||0)},0)},e.scrollFixedColsAndRows=function(t){var e=n.locateNode(t,"data-dhx-widget-id").querySelector(".dhx_grid-body"),i=t.deltaY,i=t.shiftKey?[i,0]:[0,i];null!=e&&e.scrollBy.apply(e,i)}},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=e(1),s=e(1);r.locale={monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Monday"],cancel:"Cancel"};var _,n={"%d":function(t){t=t.getDate();return t<10?"0"+t:t},"%j":function(t){return t.getDate()},"%l":function(t){return r.locale.days[t.getDay()]},"%D":function(t){return r.locale.daysShort[t.getDay()]},"%m":function(t){t=t.getMonth()+1;return t<10?"0"+t:t},"%n":function(t){return t.getMonth()+1},"%M":function(t){return r.locale.monthsShort[t.getMonth()]},"%F":function(t){return r.locale.months[t.getMonth()]},"%y":function(t){return t.getFullYear().toString().slice(2)},"%Y":function(t){return t.getFullYear()},"%h":function(t){t=t.getHours()%12;return 0===t&&(t=12),t<10?"0"+t:t},"%g":function(t){t=t.getHours()%12;return 0===t&&(t=12),t},"%H":function(t){t=t.getHours();return t<10?"0"+t:t},"%G":function(t){return t.getHours()},"%i":function(t){t=t.getMinutes();return t<10?"0"+t:t},"%s":function(t){t=t.getSeconds();return t<10?"0"+t:t},"%a":function(t){return 12<=t.getHours()?"pm":"am"},"%A":function(t){return 12<=t.getHours()?"PM":"AM"},"%u":function(t){return t.getMilliseconds()}},m={"%d":function(t,e,i,n){var o=/(^([0-9][0-9])$)/i.test(e);if(n)return o;o?t.setDate(Number(e)):t.setDate(Number(1))},"%j":function(t,e,i,n){var o=/(^([0-9]?[0-9])$)/i.test(e);if(n)return o;o?t.setDate(Number(e)):t.setDate(Number(1))},"%m":function(t,e,i,n){var o=/(^([0-9][0-9])$)/i.test(e);if(n)return o;o?t.setMonth(Number(e)-1):t.setMonth(Number(0)),o&&t.getMonth()!==Number(e)-1&&t.setMonth(Number(e)-1)},"%n":function(t,e,i,n){var o=/(^([0-9]?[0-9])$)/i.test(e);if(n)return o;o?t.setMonth(Number(e)-1):t.setMonth(Number(0)),o&&t.getMonth()!==Number(e)-1&&t.setMonth(Number(e)-1)},"%M":function(t,e,i,n){var o=s.findIndex(r.locale.monthsShort,function(t){return t===e});if(n)return-1!==o;-1===o?t.setMonth(0):t.setMonth(o),-1!==o&&t.getMonth()!==o&&t.setMonth(o)},"%F":function(t,e,i,n){var o=s.findIndex(r.locale.months,function(t){return t===e});if(n)return-1!==o;-1===o?t.setMonth(0):t.setMonth(o),-1!==o&&t.getMonth()!==o&&t.setMonth(o)},"%y":function(t,e,i,n){var o=/(^([0-9][0-9])$)/i.test(e);if(n)return o;o?t.setFullYear(Number("20"+e)):t.setFullYear(Number("2000"))},"%Y":function(t,e,i,n){var o=/(^([0-9][0-9][0-9][0-9])$)/i.test(e);if(n)return o;o?t.setFullYear(Number(e)):t.setFullYear(Number("2000"))},"%h":function(t,e,i,n){var o=/(^0[1-9]|1[0-2]$)/i.test(e);if(n)return o;o&&("am"===i||"pm"===i)||"AM"===i||"PM"===i?t.setHours(Number(e)):t.setHours(Number(0))},"%g":function(t,e,i,n){var o=/(^[1-9]$)|(^0[1-9]|1[0-2]$)/i.test(e);if(n)return o;o&&("am"===i||"pm"===i)||"AM"===i||"PM"===i?t.setHours(Number(e)):t.setHours(Number(0))},"%H":function(t,e,i,n){var o=/(^[0-2][0-9]$)/i.test(e);if(n)return o;o?t.setHours(Number(e)):t.setHours(Number(0))},"%G":function(t,e,i,n){var o=/(^[1-9][0-9]?$)/i.test(e);if(n)return o;o?t.setHours(Number(e)):t.setHours(Number(0))},"%i":function(t,e,i,n){var o=/(^([0-5][0-9])$)/i.test(e);if(n)return o;o?t.setMinutes(Number(e)):t.setMinutes(Number(0))},"%s":function(t,e,i,n){var o=/(^([0-5][0-9])$)/i.test(e);if(n)return o;o?t.setSeconds(Number(e)):t.setSeconds(Number(0))},"%u":function(t,e,i,n){var o=/(^([0-9][0-9][0-9])$)/i.test(e);if(n)return o;o?t.setMilliseconds(Number(e)):t.setMilliseconds(Number(0))},"%a":function(t,e,i,n){if(n)return"pm"===e||"am"===e;"pm"===e&&t.setHours(t.getHours()+12)},"%A":function(t,e,i,n){if(n)return"PM"===e||"AM"===e;"PM"===e&&t.setHours(t.getHours()+12)}};function y(t){for(var e=[],i="",n=0;n<t.length;n++)"%"===t[n]?(0<i.length&&(e.push({type:_.separator,value:i}),i=""),e.push({type:_.datePart,value:t[n]+t[n+1]}),n++):i+=t[n];return 0<i.length&&e.push({type:_.separator,value:i}),e}function o(e,t,i){if("string"==typeof e){for(var n,o=y(t=t.replace(/(?<=[a-z])%a/i,function(t){return e=e.replace(/(am|pm)/i," $&")," "+t})),r=[],s=0,a=null,l="Incorrect date, see docs: https://docs.dhtmlx.com/suite/calendar__api__calendar_dateformat_config.html",c=0;c<o.length;c++)if(o[c].type===_.separator){var u=e.indexOf(o[c].value,s);if(-1===u){if(i)return!1;throw new Error(l)}a&&(r.push({formatter:a,value:e.slice(s,u)}),a=null),s=u+o[c].value.length}else if(o[c].type===_.datePart){if(o[c+1]&&o[c+1].type!==_.separator){if(i)return!1;throw new Error(l)}a=o[c].value}"%A"===a||"%a"===a?r.unshift({formatter:a,value:e.slice(s)}):a&&r.push({formatter:a,value:e.slice(s)}),r.reverse();for(var d=0,h=r;d<h.length;d++)"%A"!==(v=h[d]).formatter&&"%a"!==v.formatter||(n=v.value);for(var f=new Date(0),p=0,g=r;p<g.length;p++){var v=g[p];if(m[v.formatter]){if(i&&!m[v.formatter](f,v.value,n,i))return!1;m[v.formatter](f,v.value,n)}}return!!i||f}}(e=_=_||{})[e.separator=0]="separator",e[e.datePart=1]="datePart",r.getFormattedDate=function(t,i){return y(t).reduce(function(t,e){return e.type===_.separator?t+e.value:n[e.value]?t+n[e.value](i):t},"")},r.stringToDate=o;a.copy=function(t){return new Date(t)},a.fromYear=function(t){return new Date(t,0,1)},a.fromYearAndMonth=function(t,e){return new Date(t,e,1)},a.weekStart=function(t,e){e=(t.getDay()+7-e)%7;return new Date(t.getFullYear(),t.getMonth(),t.getDate()-e)},a.monthStart=function(t){return new Date(t.getFullYear(),t.getMonth(),1)},a.yearStart=function(t){return new Date(t.getFullYear(),0,1)},a.dayStart=function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},a.addDay=function(t,e){return void 0===e&&(e=1),new Date(t.getFullYear(),t.getMonth(),t.getDate()+e)},a.addMonth=function(t,e){return void 0===e&&(e=1),new Date(t.getFullYear(),t.getMonth()+e)},a.addYear=function(t,e){return void 0===e&&(e=1),new Date(t.getFullYear()+e,t.getMonth())},a.withHoursAndMinutes=function(t,e,i,n){return void 0===n||!n&&12===e||n&&12!==e?new Date(t.getFullYear(),t.getMonth(),t.getDate(),e,i):n&&12===e?new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,i):new Date(t.getFullYear(),t.getMonth(),t.getDate(),e+12,i)},a.setMonth=function(t,e){t.setMonth(e)},a.setYear=function(t,e){t.setFullYear(e)},a.mergeHoursAndMinutes=function(t,e){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),e.getHours(),e.getMinutes())},a.isWeekEnd=function(t){return 0===t.getDay()||6===t.getDay()},a.getTwelweYears=function(t){t=t.getFullYear(),t-=t%12;return i.range(t,11+t)},a.getDayOrdinal=function(t){return(t.valueOf()-a.yearStart(t).valueOf())/864e5},a.getWeekNumber=function(t){6!==t.getDay()&&(t=a.addDay(t,6-t.getDay()));var e=a.getDayOrdinal(t);return e-t.getDay()<0&&(t=new Date(t.getFullYear()-1,12,0),e=a.getDayOrdinal(t)),Math.floor((e-t.getDay()+10)/7)},a.isSameDay=function(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()},a.toDateObject=function(t,e){return"string"==typeof t?o(t,e):new Date(t)},a.nullTimestampDate=new Date(0),e=a;function a(){}r.DateHelper=e},function(t,e,i){(function(o,r){!function(){o="undefined"!=typeof window?window:this;var e=1,i={},n=!1;function u(t){o.setImmediate?r(t):o.importScripts?setTimeout(t):(i[++e]=t,o.postMessage(e,"*"))}function d(t){"use strict";if("function"!=typeof t&&null!=t)throw TypeError();if("object"!=typeof this||this&&this.then)throw TypeError();var e,i,n=this,r=0,s=0,o=[];(n.promise=n).resolve=function(t){return e=n.fn,i=n.er,r||(s=t,r=1,u(c)),n},n.reject=function(t){return e=n.fn,i=n.er,r||(s=t,r=2,u(c)),n},n._d=1,n.then=function(t,e){if(1!=this._d)throw TypeError();var i=new d;return i.fn=t,i.er=e,3==r?i.resolve(s):4==r?i.reject(s):o.push(i),i},n.catch=function(t){return n.then(null,t)};var a=function(t){r=t||4,o.map(function(t){3==r&&t.resolve(s)||t.reject(s)})};try{"function"==typeof t&&t(n.resolve,n.reject)}catch(t){n.reject(t)}return n;function l(t,e,i,n){if(2==r)return n();if("object"!=typeof s&&"function"!=typeof s||"function"!=typeof t)n();else try{var o=0;t.call(s,function(t){o++||(s=t,e())},function(t){o++||(s=t,i())})}catch(t){s=t,i()}}function c(){var t;try{t=s&&s.then}catch(t){return s=t,r=2,c()}l(t,function(){r=1,c()},function(){r=2,c()},function(){try{1==r&&"function"==typeof e?s=e(s):2==r&&"function"==typeof i&&(s=i(s),r=1)}catch(t){return s=t,a()}s==n?(s=TypeError(),a()):l(t,function(){a(3)},a,function(){a(1==r&&3)})})}}o.setImmediate||o.addEventListener("message",function(t){if(t.source==o)if(n)u(i[t.data]);else{n=!0;try{i[t.data]()}catch(t){}delete i[t.data],n=!1}}),d.resolve=function(e){if(1!=this._d)throw TypeError();return e instanceof d?e:new d(function(t){t(e)})},d.reject=function(i){if(1!=this._d)throw TypeError();return new d(function(t,e){e(i)})},d.all=function(n){if(1!=this._d)throw TypeError();if(!(n instanceof Array))return d.reject(TypeError());var o=new d;return function i(t,e){return e?o.resolve(e):t?o.reject(t):(0==n.reduce(function(t,e){return e&&e.then?t+1:t},0)&&o.resolve(n),void n.map(function(t,e){t&&t.then&&t.then(function(t){return n[e]=t,i(),t},i)}))}(),o},d.race=function(n){if(1!=this._d)throw TypeError();if(!(n instanceof Array))return d.reject(TypeError());if(0==n.length)return new d;var o=new d;return function i(t,e){return e?o.resolve(e):t?o.reject(t):(0==n.reduce(function(t,e){return e&&e.then?t+1:t},0)&&o.resolve(n),void n.map(function(t,e){t&&t.then&&t.then(function(t){i(null,t)},i)}))}(),o},d._d=1,t.exports=d}()}).call(this,i(40),i(117).setImmediate)},function(t,e,i){"use strict";var n=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var _=i(1),O=i(15),P=i(16);function l(t,e){t[e]&&("string"==typeof t[e]?t[e]=[{text:""+t[e]}]:t[e]=t[e].map(function(t){return"string"==typeof t&&(t={text:t}),t}))}e.normalizeColumns=function(t,e){var i=t.columns,n=t.htmlEnable;void 0===e&&(e=!1);for(var o=0,r=i;o<r.length;o++){var s=r[o];s.$htmlEnable=!(!s.htmlEnable&&!n),s.$cellCss=s.$cellCss||{},l(s,"header"),l(s,"footer"),s.header.reduce(function(t,e){return t||!!e.content},!1)&&(s.$uniqueData=[]),s.minWidth&&s.minWidth<20&&(s.minWidth=20),s.maxWidth&&s.maxWidth<20&&(s.maxWidth=20);var a=s.minWidth||100;s.width&&(a=(a=s.maxWidth&&s.minWidth?s.width>=s.minWidth&&s.width<=s.maxWidth?s.width:s.width>=s.maxWidth?s.maxWidth:s.minWidth:s.maxWidth?s.width<=s.maxWidth?s.width:100<s.maxWidth?s.maxWidth:100:!s.minWidth||s.width>=s.minWidth?s.width:s.minWidth)<20?20:a),s.$width=s.$width&&!e?s.$width:a,s.$width>s.maxWidth&&(s.$width=s.maxWidth),s.$width<s.minWidth&&(s.$width=s.minWidth)}},e.countColumns=function(t,e){var n=0,o=0,r=0,s=!1,i=0,a=!1;return e.forEach(function(t){if(n=Math.max(n,t.header.length),r+=t.$width,t.footer&&(o=Math.max(o,t.footer.length),a=a||!0),!s)for(var e=0,i=t.header;e<i.length;e++)if(i[e].colspan)return void(s=!0)}),e.forEach(function(t){if(a&&(t.footer=t.footer||[]),t.header.length<n)for(var e=0;e<n;e++)t.header[e]=t.header[e]||{text:""};if(t.footer){if(t.footer.length<o)for(e=0;e<o;e++)t.footer[e]=t.footer[e]||{text:""};for(e=0;e<t.footer.length;e++)t.footer[e].id||(t.footer[e].id=_.uid())}t.header=t.header.map(function(t){return"object"!=typeof t&&(t={text:t}),t.css=t.css||"",t.text||t.css.includes("dhx_cell-empty")||(t.css+=" dhx_cell-empty"),t.id||(t.id=_.uid()),t}),""===t.header[0].text&&i++}),t.$totalWidth=r,t.$headerLevel=n,t.$footerLevel=o,t.$colspans=s,t.$footer=a,i},e.calculatePositions=function(t,e,i,n,o){for(var r=n.columns||[],s=r.length,a=o||[],l=a.length,c=n.leftSplit?n.columns.slice(0,n.leftSplit).filter(function(t){return!t.hidden}).length:0,u=null!==(h=n.topSplit)&&void 0!==h?h:0,d=null!==(M=n.rightSplit)&&void 0!==M?M:0,h=null!==(o=n.bottomSplit)&&void 0!==o?o:0,f=0,p=i.left,g=n.$totalWidth/s,v=0;v<s;v++){var _=r[v];if(!_.hidden){if(!(0<(p-=_.$width)+g/2))break;f++}}for(var m=0,y=i.top,b=n.$totalHeight/l,v=0;v<l;v++)if(!(V=a[v]).hidden){if(!(0<(y-=V.$height)+b/2))break;m++}for(var w=0,x=0,E=-1/0,C=1/0,S=0;S<s;S++){var k=r[S];f<=S&&w<t&&!k.hidden&&(w+=k.$width,x++),k.$width>E&&(E=k.$width),k.$width<C&&(C=k.$width)}for(var I=0,O=0,P=-1/0,D=1/0,S=0;S<l;S++){var V=a[S];m<=S&&I<e&&!V.hidden&&(I+=V.$height,O++),V.$height>P&&(P=V.$height),V.$height<D&&(D=V.$height)}D=D<n.rowHeight?D:n.rowHeight;var M=Math.round(E/C),o=Math.round(P/D),i=c<=f-M?f-M:c,M=f+x+M,c=(n.leftSplit||0)-c;return{xStart:i,xEnd:M<(d=r.length-d-c)?M:d,yStart:u<=m-o?m-o:u,yEnd:(c=m+O+o)<(h=a.length-h)?c:h}},e.getUnique=function(t,e,i){var n=t.map(function(t){return t[e]});return i&&n.forEach(function(t,e){"string"==typeof t&&t.includes(", ")&&(t.split(", ").forEach(function(t){return n.push(t)}),delete n[e])}),n.filter(function(t,e,i){return i.indexOf(t)===e&&_.isDefined(t)}).sort()},e.getMaxRowHeight=function(t,e,i){void 0===i&&(i={font:"14px Arial",lineHeight:20});var n=document.createElement("canvas"),o=n.getContext("2d",{alpha:!1});o.font=i.font;for(var r={},s=e.length,a=0;a<s;a++)e[a].template?r[e[a].id]={width:e[a].$width-16||0,htmlEnable:e[a].$htmlEnable,template:e[a].template,cols:e[a]}:r[e[a].id]={width:e[a].$width-16||0,htmlEnable:e[a].$htmlEnable};for(var l=[],c=[],u=0,d=Object.entries(t);u<d.length;u++){var h,f=d[u],p=f[0],g=f[1];!r[p]||"id"===p||"height"===p||p.startsWith("$")||"string"!=typeof g&&"number"!=typeof g||(h="",h=null!==(f=r[p])&&void 0!==f&&f.template?(f=r[p].template(g,t,r[p].cols),r[p].htmlEnable?O.removeHTMLTags(f):f):"string"==typeof g?r[p].htmlEnable?O.removeHTMLTags(g):g:g.toString(),1<(g=Math.ceil(o.measureText(h).width/r[p].width))&&(g=_.getTextLines(o,h,null===(p=r[p])||void 0===p?void 0:p.width).length),c.push(g),l.push(h.split("\n").length))}var v=Math.max(_.getMaxArrayNumber(l),_.getMaxArrayNumber(c));return n.remove(),v*i.lineHeight+8},e.getCalculatedRowHeight=function(t,e){void 0===e&&(e={rowHeight:40,padding:8});var i=e.rowHeight<40?t:t+2*e.padding;return t<e.rowHeight?e.rowHeight:i},e.getTreeCellWidthOffset=function(t){return 20+20*t.$level-(t.$items?20:0)},e.getMaxColsWidth=function(t,e,i,n){if(void 0===i&&(i={font:"normal 14.4px Arial"}),t.length&&e.length){var o=document.createElement("canvas"),r=o.getContext("2d",{alpha:!1});r.font=i.font;for(var s={},a=e.length,l=0;l<a;l++){var c=e[l],u=c.template,d=c.$htmlEnable,h=c.format,f=c.id,p=c.type;s[f]=u&&"data"===n?{width:20,htmlEnable:d,template:u,cols:c,type:p}:{width:20,htmlEnable:d,format:"date"===p?h||"%M %d %Y":h,type:p}}for(var g=t.length,l=0;l<g;l++)for(var v=0,_=Object.entries(t[l]);v<_.length;v++){var m,y,b=_[v],w=b[0],x=b[1],E=s[w];E&&"id"!==w&&"height"!==w&&!w.startsWith("$")&&("string"==typeof x||"number"==typeof x||x instanceof Date)&&(u=E.template,m=E.cols,h=E.format,p=E.type,y=E.htmlEnable,b=E.width,E=void 0,E="function"==typeof u?(m=u(x,t[l],m),y?O.removeHTMLTags(m):m):y?O.removeHTMLTags(x):x.toString(),null!=(y=h&&"date"===p&&new Date(E))&&y.valueOf()&&(E=P.getFormattedDate(h,y)),b<(E=r.measureText(E).width)&&(s[w].width=E))}o.remove();for(var C={},S=0,k=Object.entries(s);S<k.length;S++){var I=k[S],w=I[0],x=I[1];C[w]=Math.ceil(x.width)}return C}},e.toFormat=function(s,t,a){if("boolean"==typeof s)return s;if(!s&&"number"!=typeof s)return s;switch(t){case"number":case"percent":return a=a||"#",_.isDefined(s)&&!isNaN(Number(s))?function(t){var e=a.replace(/#+/g,"#").split("#").filter(function(t){return t}),i=a.match(/0/g)&&a.match(/0/g).length;s=("percent"===t?100*Number(s):s).toString();var n,o,r=Math.trunc(Number(s));i&&(o=s.split(".")[1]||"0",n=e.find(function(t){return t.includes("0")}).replace(/0+/g,""),o=Number("0."+o).toFixed(i),1<=Number(o)&&r++,o=o.toString().split(".")[1].padEnd(i,"0"));var r=(s<0&&0===Math.abs(r)?"-":"")+r,e=e.find(function(t){return!t.includes("0")}),r=e?r.replace(/(\d)(?=(\d{3})+(\D|$))/g,"$1"+e):r;return r+=(n||"")+(o||""),"percent"===t?r+"%":r}(t):s;case"date":return a=a||"%M %d %Y","string"==typeof s?s=P.getFormattedDate(a,P.stringToDate(s,a)):"object"==typeof s&&(s=P.getFormattedDate(a,s)),s;default:return s}},e.getEditorOptions=function(t,e){return n(("function"==typeof t.options?t.options(t,e):t.options)||[],t.$customOptions||[])}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),i=(o.prototype.getFocusId=function(){return this._activeWidgetId},o.prototype.setFocusId=function(t){this._activeWidgetId=t},o);function o(){var e=this;this._initHandler=function(t){return e._activeWidgetId=n.locate(t,"data-dhx-widget-id")},this._removeFocusClass=function(t){var e=document.body.classList;e.contains("utilityfocus")&&e.remove("utilityfocus")},this._addFocusClass=function(t){var e=document.body.classList;"Tab"===t.code?e.contains("utilityfocus")||e.add("utilityfocus"):e.contains("utilityfocus")&&e.remove("utilityfocus")},document.addEventListener("focusin",this._initHandler),document.addEventListener("pointerdown",this._initHandler),document.addEventListener("mousedown",this._removeFocusClass),document.addEventListener("keydown",this._addFocusClass)}e.focusManager=new i},function(t,w,e){"use strict";var x=this&&this.__assign||function(){return(x=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},u=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(w,"__esModule",{value:!0});var E=e(0),d=e(3),c=e(18),C=e(15),S=e(9),k=e(27),I=e(79),O=e(80),p=e(1);function P(t,e,i){void 0===e&&(e=!1);var n=t.headerHeight,o=void 0===n?t.$headerLevel*t.headerRowHeight:n,n=t.footerHeight,n=void 0===n?t.$footerLevel*t.footerRowHeight:n,n=t.$totalHeight+o+n+w.BORDERS>(null!==(o=null==i?void 0:i.height)&&void 0!==o?o:t.$height),o=!n||e?0:d.getScrollbarWidth(),t=t.$totalWidth+w.BORDERS+o>(null!==(i=null==i?void 0:i.width)&&void 0!==i?i:t.$width);return{x:!t||e?0:d.getScrollbarWidth(),y:o,xState:t,yState:n}}function h(t,e){return t[e]?(e===S.Split.left?t.columns.slice(0,t.leftSplit):t.columns.slice(-t.rightSplit)).filter(function(t){return!t.hidden}):[]}function D(t,e,i){var n=t.config,o=n.columns.filter(function(t){return!t.hidden}),r=c.calculatePositions(i.width,i.height,t._scroll,n,e),s=o.slice(r.xStart,r.xEnd),a=e.slice(r.yStart,r.yEnd),l={left:h(n,S.Split.left),right:h(n,S.Split.right)},i={top:e.slice(0,n.topSplit||0),bottom:n.bottomSplit?e.slice(-n.bottomSplit):[]};return x(x({},n),{data:e,columns:n.columns,scroll:t._scroll,$positions:r,headerHeight:n.$headerLevel*n.headerRowHeight,footerHeight:n.$footerLevel*n.footerRowHeight,firstColId:o[0]&&o[0].id,events:t.events,_events:t._events,filteredColumns:o,currentColumns:s,currentRows:a,fixedColumns:l,fixedRows:i,sortBy:t._sortBy,sortDir:t._sortDir,content:t.content,gridId:t._uid,$renderFrom:"render"})}function V(t){if(t&&(t.tagName||(t=t._parent._container),t)){var e=t.currentStyle||window.getComputedStyle(t),i=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)||0,e=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)||0;return{width:t.clientWidth-i,height:t.clientHeight-e}}}function g(t,r){var e,s=t.currentColumns,a=t.currentRows,l=t.fixedRows,c=t.fixedColumns,i=t.eventHandlers,n={};if(i)for(var o in i)i.hasOwnProperty(o)&&(e=i[o],n[o]=d.eventHandler(function(t){var e,i,n=d.locate(t,"data-dhx-id"),o=d.locate(t,"data-dhx-col-id");switch(r){case S.Split.left:case S.Split.right:e=u(l.top,l.bottom,a).find(function(t){return t.id.toString()===n}),i=u(c.left,c.right).find(function(t){return t.id===o});break;case S.Split.top:case S.Split.bottom:e=u(l.top,l.bottom).find(function(t){return(null==t?void 0:t.id.toString())===n}),i=u(c.left,c.right,s).find(function(t){return t.id===o});break;default:e=a.find(function(t){return t.id.toString()===n}),i=s.find(function(t){return t.id===o})}return{row:n?e:{},col:o?i:{}}},x({},e)));return n}function M(t,e){var i,n=k.getCells(t),o=t.filteredColumns,r=t.$resizing,s=t.$totalHeight,a=t.$totalWidth,l=t.leftSplit,c=t.data,u=t.$positions,d=k.getSpans(t);r&&(h=p.findIndex(o,function(t){return t.id===r}),f=C.getTotalWidth(o.slice(0,h))+o[h].$width,i=E.el(".dhx_grid-resize-line",{style:{top:0,left:f,height:s}}));var h="string"==typeof(h=t.selection?t.selection.toHTML():null)?E.el("div.dhx_selection",{".innerHTML":h}):h,f=u,u=g(t);return E.el(".dhx_data-wrap",x({style:{height:s,width:a,"padding-left":e.x,"padding-top":e.y},role:"presentation"},u),[E.el(".dhx_grid_data"+(l?".dhx_grid_fixed_left":""),x(x({_flags:E.KEYED_LIST},k.getHandlers(f.yStart,f.xStart,t)),{role:"rowgroup","aria-rowcount":c.length}),n),E.el(".dhx_span-spans",x({role:"presentation"},k.getHandlers(f.yStart,f.xStart,t)),d),E.el(".dhx_grid_selection",{_ref:"selection","aria-hidden":"true"},[h,i])])}function T(t,e,i){i=i.height-w.BORDERS,i=e?i:i-t.headerHeight;return!t.$footer||e?i:i-t.footerHeight}function H(e,t,o,r,i){void 0===o&&(o=!0),void 0===r&&(r=!1),void 0===i&&(i=!1);var s,n=!i&&e.$totalHeight>=t.height-e.headerRowHeight?d.getScrollbarWidth():0,a=t.width-w.BORDERS-n,l=e.columns.filter(function(t){return!t.hidden}),n=l.filter(function(t){return!t.width&&!t.$fixed&&C.isAutoWidth(e,t)}),c=C.getTotalWidth(l.filter(function(t){return t.width||t.$fixed||!C.isAutoWidth(e,t)})),u=n.reduce(function(t,e){return t+(e.gravity||1)},0);a<e.$totalWidth?(s=n.reduce(function(t,e){return t+(e.maxWidth||e.$width)},0),n.length&&n.forEach(function(t){var e=0,i=(e=o?Math.abs(a-s)*((t.gravity||1)/u):Math.abs(a-c)*((t.gravity||1)/u))<t.minWidth,n=e>t.maxWidth;i||n?i?(c+=t.$width-e,t.$fixed=!0):n&&(t.$width=t.maxWidth,t.$fixed=!0):t.$width=e,t.$width<20&&(t.$width=20)})):n.forEach(function(t){var e=Math.abs(a-c)*((t.gravity||1)/u),i=e<t.minWidth,n=e>t.maxWidth;i||n?i?(c+=t.$width-e,r&&(t.$fixed=!0)):n&&(t.$width=t.maxWidth,r&&(t.$fixed=!0)):t.$width=e,t.$width<20&&(t.$width=20),!o&&t.$fixed&&delete t.$fixed}),o&&H(e,t,!1,r,i)}w.BORDERS=2,w.calcScrollBarWidth=P,w.getCurrFixedCols=h,w.getRenderConfig=D,w.getElementSizes=V,w.getEvents=g,w.applyAutoWidth=H,w.render=function(t,e,i,n,o){e._container||(e.config.$width=1,e.config.$height=1),t&&t.node&&t.node.parent&&t.node.parent.el&&(b=V(t.node.parent.el),e.config.$width=b.width,e.config.$height=b.height);var r=e.config;if(!r)return E.el("div");if(!r.columns.length)return E.el(".dhx_grid",{"data-dhx-widget-id":o,"data-dhx-root-id":r.rootParent,role:"empty-grid"});var s=e.data.getRawData(0,-1,null,2);r.columns.reduce(function(t,e){return e.hidden&&t},!0)?r.$totalHeight=0:r.$totalHeight=s.reduce(function(t,e){return t+(e.$height||0)},0);var a=V(e._container),l={width:r.$width||(r.width&&"number"==typeof r.width?r.width:null==a?void 0:a.width)||0,height:r.$height||(r.height&&"number"==typeof r.height?r.height:null==a?void 0:a.height)||0};C.isAutoWidth(r)&&(H(r,l),r.$totalWidth=C.getTotalWidth(r.columns.filter(function(t){return!t.hidden}))),r.$width=l.width,r.$height=l.height;var c=D(e,s,l);c.selection=n,c.datacollection=e.data;var u=k.getShifts(c);c.$scrollBarWidth=P(c);var d,h,f,p,g=C.isCssSupport("position","sticky"),v=T(c,g,l),_={wrapper:l,sticky:g,shifts:u,gridBodyHeight:v},m=O.getFixedRows(c,x(x({},_),{name:"header",position:"top"})),y=c.$footer?O.getFixedRows(c,x(x({},_),{name:"footer",position:"bottom"})):null,b=c.$totalWidth+w.BORDERS<l.width?"dhx_grid-less-width":"",a=c.$totalHeight+w.BORDERS<l.height?"dhx_grid-less-height":"",s=c.fixedColumns.right.length?"dhx_grid__contains_cols_right--fixed":"",n=r.bottomSplit?"dhx_grid__contains_rows_bottom--fixed":"";return t.node||(t=e.getScrollState(),d=t.x,h=t.y,E.awaitRedraw().then(function(){e.scroll(d,h)})),E.el(".dhx_grid.dhx_widget",x({class:(c.css||"")+(g?"":" dhx_grid_border")+(r.multiselection?" dhx_no-select--pointer":""),"data-dhx-widget-id":o,"data-dhx-root-id":r.rootParent},(f=c.data,p=r.columns,t=c.editable,o=c.multiselection,{role:"grid","aria-rowcount":f.length,"aria-colcount":p.filter(function(t){return!t.hidden}).length,"aria-readonly":t?"false":"true","aria-multiselectable":o?"true":"false"})),[E.resizer(function(t){return C.isAutoWidth(e.config)&&t&&(r.$totalWidth=0,H(r,l,!0,!0)),e.paint()}),E.el(".dhx_grid-content",{style:x({},l),onclick:i.onclick,onmouseover:i.onmouseover,class:(b+" "+a+" "+s+" "+n).trim(),role:"presentation"},[g?null:m,E.el(".dhx_grid-body",{style:{height:v,width:l.width-w.BORDERS},onscroll:i.onscroll,_ref:"grid_body",role:"presentation"},[E.el("div",{},[g?m:null,M(c,u),g?y:null])]),I.getFixedColsHeader(c,_,S.Split.left),I.getFixedColsHeader(c,_,S.Split.right),I.getFixedCols(c,_,S.Split.left),I.getFixedCols(c,_,S.Split.right),O.getFixedDataRows(c,_,S.Split.top),O.getFixedDataRows(c,_,S.Split.bottom),g?null:y])])},w.proRender=function(t,e,i,n,o){e._container||(e.config.$width=1,e.config.$height=1),t&&t.node&&t.node.parent&&t.node.parent.el&&(v=V(t.node.parent.el),e.config.$width=v.width,e.config.$height=v.height);var r=e.config;if(!r)return E.el("div");if(!r.columns.length)return E.el(".dhx_grid",{"data-dhx-widget-id":o,"data-dhx-root-id":r.rootParent,role:"empty-grid"});var s,a=e.data.getRawData(0,-1,null,2);r.columns.reduce(function(t,e){return e.hidden&&t},!0)?r.$totalHeight=0:r.$totalHeight=a.reduce(function(t,e){return t+(e.$height||0)},0);var l=V(e._container);"auto"===e.config.height&&(s=function(t,e,i){var n=t._container,o=e.$headerLevel*e.headerRowHeight,r=e.$footerLevel*e.footerRowHeight,o=o+(r&&1+r)+e.$totalHeight+w.BORDERS;if(n){var r=window.getComputedStyle(n),n=r.minHeight,r=r.maxHeight;return o<=parseFloat(n)?parseFloat(n):o>=parseFloat(r)?parseFloat(r):o+P(e,!(null===(r=t.scrollView)||void 0===r||!r.config.enable),i).x}return o+(i?P(e,!(null===(t=t.scrollView)||void 0===t||!t.config.enable),i).x:0)}(e,r,v||l)),_=r.$width||(r.width&&"number"==typeof r.width?r.width:null==l?void 0:l.width),m=r.$height||(r.height&&"number"==typeof r.height?r.height:null==l?void 0:l.height);var c={width:_||0,height:("auto"===e.config.height?s:m)||0};C.isAutoWidth(r)&&(H(r,c,!0,!1,e.scrollView&&e.scrollView.config.enable),r.$totalWidth=C.getTotalWidth(r.columns.filter(function(t){return!t.hidden}))),r.$width=c.width,r.$height=c.height;var u=D(e,a,c);u.selection=n,u.datacollection=e.data;var d=k.getShifts(u);u.$scrollBarWidth=P(u,!(null===(y=e.scrollView)||void 0===y||!y.config.enable));var h,f,p=C.isCssSupport("position","sticky"),g=T(u,p,c),v={wrapper:c,sticky:p,shifts:d,gridBodyHeight:g},l=O.getFixedRows(u,x(x({},v),{name:"header",position:"top"})),_=u.$footer?O.getFixedRows(u,x(x({},v),{name:"footer",position:"bottom"})):null,m=u.$totalWidth+w.BORDERS<c.width?"dhx_grid-less-width":"",a=u.$totalHeight+w.BORDERS<c.height?"dhx_grid-less-height":"",n=u.fixedColumns.right.length?"dhx_grid__contains_cols_right--fixed":"",y=r.bottomSplit?"dhx_grid__contains_rows_bottom--fixed":"";return t.node||(t=e.getScrollState(),h=t.x,f=t.y,E.awaitRedraw().then(function(){e.scroll(h,f)})),d=E.el("div",{},[p?l:null,M(u,d),p?_:null]),E.el(".dhx_grid.dhx_widget",{class:(u.css||"")+(p?"":" dhx_grid_border")+(r.multiselection?" dhx_no-select--pointer":""),style:{height:null!=s?s:null},"data-dhx-widget-id":o,"data-dhx-root-id":r.rootParent,role:"grid","aria-rowcount":u.data.length,"aria-colcount":r.columns.filter(function(t){return!t.hidden}).length},[E.resizer(function(t){return C.isAutoWidth(e.config)&&t&&(r.$totalWidth=0,H(r,c,!0,!0)),e.paint()}),E.el(".dhx_grid-content",{style:x({},c),onclick:i.onclick,onmouseover:i.onmouseover,class:(m+" "+a+" "+n+" "+y).trim(),role:"presentation"},[p?null:l,E.el(".dhx_grid-body",{style:{height:g,width:c.width-w.BORDERS},onscroll:i.onscroll,_ref:"grid_body",role:"presentation"},[e.scrollView&&e.scrollView.config.enable?e.scrollView.render([d]):d]),I.getFixedColsHeader(u,v,S.Split.left),I.getFixedColsHeader(u,v,S.Split.right),I.getFixedCols(u,v,S.Split.left),I.getFixedCols(u,v,S.Split.right),O.getFixedDataRows(u,v,S.Split.top),O.getFixedDataRows(u,v,S.Split.bottom),p?null:_])])}},function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s=e(1),o=e(0),_=e(3);i.scrollViewConfig={enable:!1,autoHide:!0,timeout:1e3,scrollHandler:function(){}};n.prototype.enable=function(){this.config.enable=!0,this._getRootView().redraw()},n.prototype.disable=function(){this.config.enable=!1,this._getRootView().redraw()},n.prototype.render=function(t,e){var i=this;if(void 0===e&&(e=""),!this.config.enable||!t.length)return t;e&&(this._uid=e);var n=this.config.enable?[o.el(".y-scroll",((n={})[this._wheelName]=this._handlers[this._wheelName],n._ref=e?"scroll-y-area-"+e:"scroll-y-area",n.onmousedown=this._handlers.onmousedownArea,n.onmouseenter=this._handlers.onmouseenter,n.onmouseleave=this._handlers.onmouseleave,n.style={width:"6px",height:"100%",right:0,top:0,position:"absolute"},n),[o.el(".scroll-runner",{_ref:e?"scroll-y-runner-"+e:"scroll-y-runner",onmousedown:this._handlers.onmousedownRunner,style:{height:this._runnerHeight+"px",top:this._runnerYTop}})]),o.el(".x-scroll",((n={})[this._wheelName]=this._handlers[this._wheelName],n._ref=e?"scroll-x-area-"+e:"scroll-x-area",n.onmousedown=this._handlers.onmousedownArea,n.onmouseenter=this._handlers.onmouseenter,n.onmouseleave=this._handlers.onmouseleave,n.style={width:"100%",height:"6px",left:0,bottom:0,position:"absolute"},n),[o.el(".scroll-runner",{_ref:e?"scroll-x-runner-"+e:"scroll-x-runner",onmousedown:this._handlers.onmousedownRunner,style:{width:this._runnerWidth+"px",left:this._runnerXLeft}})])]:null;return o.el(".scroll-view-wrapper",[o.el(".scroll-view",{onscroll:this._handlers.onscroll,_ref:e?"scroll-view-"+e:"scroll-view",_hooks:{didInsert:function(){i.update()},didRecycle:function(){i.update()}},style:{width:"calc(100% + "+this._scrollWidth+"px)",height:"calc(100% + "+this._scrollHeight+"px)"}},t)].concat(n))},n.prototype.update=function(){var t,e,i,n,o,r=this._getRefs();r&&(o=r.area,t=r.areaX,e=r.areaY,i=r.runnerY,n=r.runnerX,this._visibleYArea=o.clientHeight/o.scrollHeight,this._visibleXArea=o.clientWidth/o.scrollWidth,this._scrollYTop=o.scrollTop,this._scrollXLeft=o.scrollLeft,this._runnerYTop=this._scrollYTop*this._visibleYArea,this._runnerXLeft=this._scrollXLeft*this._visibleXArea,this._runnerHeight=this._visibleYArea<1?o.clientHeight*this._visibleYArea:0,this._runnerWidth=this._visibleXArea<1?o.clientWidth*this._visibleXArea:0,r=i.style.top,o=n.style.left,i.style.opacity=1,i.style.top=this._runnerYTop+"px",i.style.height=this._runnerHeight+"px",n.style.opacity=1,n.style.left=this._runnerXLeft+"px",n.style.width=this._runnerWidth+"px",r!==i.style.top&&(e.style.opacity=.9,e.style.width="10px"),o!==n.style.left&&(t.style.opacity=.9,t.style.height="10px"),this.config.autoHide?this._autoHideFunc||(this._autoHideFunc=s.debounce(function(){i.style.opacity=0,e.style.width="6px",n.style.opacity=0,t.style.height="6px"},this.config.timeout)):this._autoHideFunc=s.debounce(function(){e.style.width="6px",t.style.height="6px"},this.config.timeout),this._autoHideFunc())},n.prototype._getRefs=function(){var t=this._getRootView(),e=!(!t.refs["scroll-view"]||!t.refs["scroll-x-runner"]&&!t.refs["scroll-y-runner"]),i=!(!this._uid||!t.refs["scroll-view-"+this._uid]||!t.refs["scroll-x-runner-"+this._uid]&&!t.refs["scroll-y-runner-"+this._uid]);if(t.refs)return e?{area:t.refs["scroll-view"].el,areaY:t.refs["scroll-y-area"].el,areaX:t.refs["scroll-x-area"].el,runnerY:t.refs["scroll-y-runner"].el,runnerX:t.refs["scroll-x-runner"].el}:i?{area:t.refs["scroll-view-"+this._uid].el,areaY:t.refs["scroll-y-area-"+this._uid].el,areaX:t.refs["scroll-x-area-"+this._uid].el,runnerY:t.refs["scroll-y-runner-"+this._uid].el,runnerX:t.refs["scroll-x-runner-"+this._uid].el}:void 0},e=n;function n(t,e){var v=this;void 0===e&&(e={}),this.config=s.extend({enable:i.scrollViewConfig.enable,autoHide:i.scrollViewConfig.autoHide,timeout:i.scrollViewConfig.timeout,scrollHandler:i.scrollViewConfig.scrollHandler},e),this._wheelName=_.isIE()?"onmousewheel":"onwheel",this._getRootView=t,this._scrollYTop=this._scrollXLeft=this._runnerYTop=this._runnerXLeft=this._runnerHeight=this._runnerWidth=0,this._visibleYArea=this._visibleXArea=1,this._scrollWidth=_.getScrollbarWidth(),this._scrollHeight=_.getScrollbarHeight(),this._handlers=((t={onscroll:function(t){v.config.scrollHandler(t),v.update()}})[this._wheelName]=function(t){var e=!!_.locateNodeByClassName(t.target,"y-scroll");t.preventDefault();var i,n=40*(0<(t.deltaY||-t.wheelDelta)?1:-1),t=v._getRefs().area;e?(e=t.scrollHeight-v._runnerHeight,i=v._scrollYTop+n,t.scrollTop=i<0?0:e<i?e:i):(i=t.scrollWidth-v._runnerWidth,n=v._scrollXLeft+n,t.scrollLeft=n<0?0:i<n?i:n),v.update()},t.onmousedownRunner=function(t){t.preventDefault();function e(t){var e;i?(e=t.pageY-u,o.scrollTop=e<=a?0:l<e?c:(e-a)/v._visibleYArea):(t=t.pageX-p,o.scrollLeft=t<=d?0:h<t?f:(t-d)/v._visibleXArea),v.update()}var i=!!_.locateNodeByClassName(t.target,"y-scroll"),n=v._getRefs(),o=n.area,r=n.runnerY,s=n.runnerX,n=o.getBoundingClientRect(),a=n.top+window.pageYOffset,l=n.bottom+window.pageYOffset,c=o.scrollHeight-v._runnerHeight,u=t.pageY-r.getBoundingClientRect().top-window.pageYOffset,d=n.left+window.pageXOffset,h=n.right+window.pageXOffset,f=o.scrollWidth-v._runnerWidth,p=t.pageX-s.getBoundingClientRect().left-window.pageXOffset,g=function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",g),document.body.classList.remove("dhx-no-select")};document.body.classList.add("dhx-no-select"),document.addEventListener("mousemove",e),document.addEventListener("mouseup",g)},t.onmousedownArea=function(t){var e,i,n,o;_.locateNodeByClassName(t,"scroll-runner")||(t.preventDefault(),e=!!_.locateNodeByClassName(t.target,"y-scroll"),i=(o=v._getRefs()).area,n=o.runnerY,o=o.runnerX,e?i.scrollTop+=(t.pageY-n.getBoundingClientRect().top)/v._visibleYArea:i.scrollLeft+=(t.pageX-o.getBoundingClientRect().left)/v._visibleXArea,v.update())},t.onmouseenter=function(t){var e,i;_.locateNodeByClassName(t,"scroll-runner")||(i=v._getRefs())&&(e=!!_.locateNodeByClassName(t.target,"y-scroll"),t=i.areaX,i=i.areaY,e&&0<v._runnerHeight?i.style.background="#eee":!e&&0<v._runnerWidth&&(t.style.background="#eee"))},t.onmouseleave=function(t){var e,i;_.locateNodeByClassName(t,"scroll-runner")||(i=v._getRefs())&&(e=!!_.locateNodeByClassName(t.target,"y-scroll"),t=i.areaX,i=i.areaY,e&&0<v._runnerHeight?i.style.background="transparent":!e&&0<v._runnerWidth&&(t.style.background="transparent"))},t)}i.ScrollView=e},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(165)),n(e(166)),n(e(38))},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.TreeFilterType||(e.TreeFilterType={})).all="all",n.level="level",n.leafs="leafs",(n=e.DataEvents||(e.DataEvents={})).afterAdd="afteradd",n.beforeAdd="beforeadd",n.removeAll="removeall",n.beforeRemove="beforeremove",n.afterRemove="afterremove",n.change="change",n.filter="filter",n.dataRequest="dataRequest",n.load="load",n.loadError="loaderror",n.beforeLazyLoad="beforelazyload",n.afterLazyLoad="afterlazyload",n.beforeItemLoad="beforeItemLoad",n.afterItemLoad="afterItemLoad",(n=e.DragEvents||(e.DragEvents={})).beforeDrag="beforeDrag",n.dragStart="dragStart",n.dragOut="dragOut",n.dragIn="dragIn",n.canDrop="canDrop",n.cancelDrop="cancelDrop",n.beforeDrop="beforeDrop",n.afterDrop="afterDrop",n.afterDrag="afterDrag",(e=e.DataDriver||(e.DataDriver={})).json="json",e.csv="csv",e.xml="xml"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(1),o=i(26),r=i(62);e.isEqualObj=function(t,e){for(var i in t)if(t[i]!==e[i]||Array.isArray(t[i]))return!1;return!0},e.naturalCompare=function(t,e){if(isNaN(t)||isNaN(e)){var n=[],o=[];for(t.replace(/(\d+)|(\D+)/g,function(t,e,i){n.push([e||1/0,i||""])}),e.replace(/(\d+)|(\D+)/g,function(t,e,i){o.push([e||1/0,i||""])});n.length&&o.length;){var i=n.shift(),r=o.shift(),r=i[0]-r[0]||i[1].localeCompare(r[1]);if(r)return r}return n.length-o.length}return t-e},e.findByConf=function(t,e){if("function"==typeof e){if(e.call(this,t))return t}else if(e.by&&e.match&&t[e.by]===e.match)return t},e.isDebug=function(){var t=window.dhx;if(void 0!==t)return void 0!==t.debug&&t.debug},e.dhxWarning=function(t){console.warn(t)},e.dhxError=function(t){throw new Error(t)},e.toProxy=function(t){var e=typeof t;return"string"==e?new o.DataProxy(t):"object"==e?t:void 0},e.toDataDriver=function(t){if("string"==typeof t){var e=window.dhx,e=e&&e.dataDrivers||r.dataDrivers;if(e[t])return new e[t];console.warn("Incorrect data driver type:",t),console.warn("Available types:",JSON.stringify(Object.keys(e)))}else if("object"==typeof t)return t},e.copyWithoutInner=function(t,e){var i,n={};for(i in t)i.startsWith("$")||e&&e[i]||(n[i]=t[i]);return n},e.isTreeCollection=function(t){return Boolean(t.getRoot)},e.hasJsonOrArrayStructure=function(t){if("object"==typeof t)return!0;if("string"!=typeof t)return!1;try{var e=JSON.parse(t);return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}catch(t){return!1}},e.isOnlyPermanentFilters=function(e){return!(!e||n.isEmptyObj(e))&&Object.keys(e).every(function(t){return null===(t=e[t].config)||void 0===t?void 0:t.permanent})}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.ChartEvents||(e.ChartEvents={})).toggleSeries="toggleSeries",e.chartMouseMove="chartMouseMove",e.chartMouseLeave="chartMouseLeave",e.resize="resize",e.serieClick="serieClick",e.seriaMouseMove="seriaMouseMove",e.seriaMouseLeave="seriaMouseLeave"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(41),i=(o.prototype.updateUrl=function(t,e){for(var i in void 0===e&&(e={}),this._url=this.url=t||this._url,this.url+=this.url.includes("?")?"&":"?",e)this.config[i]=e[i],this.url+=i+"="+encodeURIComponent(e[i])+"&";this.url=this.url.slice(0,-1)},o.prototype.load=function(){return n.ajax.get(this.url,null,{responseType:"text"})},o.prototype.save=function(t,e){switch(e){case"delete":return n.ajax.delete(this.url,t);case"update":return n.ajax.put(this.url,t);case"insert":default:return n.ajax.post(this.url,t)}},o);function o(t,e){this.url=this._url=t,this.config=e}e.DataProxy=i},function(t,e,i){"use strict";var y=this&&this.__assign||function(){return(y=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var Y=i(1),X=i(0),U=i(32),K=i(15),J=i(9),n=i(132),c=i(3),Z=i(18),Q=i(20);function o(t,e,i,n,o){e=c.locateNodeByClassName(o.target,"dhx_grid-fixed-cols-wrap")?0:e;var r,s,a=c.locateNodeByClassName(o.target,"dhx_grid-cell"),l=c.locateNodeByClassName(o.target,"dhx_span-cell");(a||l)&&n&&(e=a?a.parentNode:l,r=(a||l).getAttribute("data-dhx-col-id"),l=i.filteredColumns.find(function(t){return t.id===r}),s=e.getAttribute("data-dhx-id"),e=(i.$data||i.data).find(function(t){return t.id.toString()===s}),(n.toLocaleLowerCase().includes("touch")?i._events:i.events).fire(n,[e,l,o]))}function m(t,e,i,n){var o=n.$editable&&n.$editable.row===e.id&&n.$editable.col===i.id,r=!n.fixedColumns.left.length||"leftFixedCols"===n.$renderFrom,s=i.align?"dhx_align-"+i.align:"dhx_align-left",a="";r&&(a="dhx_tree-cell "+(i.$cellCss[e.id]||"")+" "+s,e.$items&&(a+=" dhx_grid-expand-cell"),o&&(a+=" dhx_tree-editing-cell"),n.dragMode&&!o&&(a+=(e.$drophere?" dhx_grid-cell--drophere":"")+(e.$dragtarget?" dhx_grid-cell--dragtarget":"")));o=Z.getTreeCellWidthOffset(e);return X.el(".dhx_grid-cell",y({class:a,style:{width:i.$width,height:e.$height,padding:e.$items?0:"0 0 0 "+o+"px"},"data-dhx-col-id":i.id},{role:"gridcell","aria-colindex":1}),r?[e.$items?X.el(".dhx_grid-expand-cell-icon",y(y({class:e.$opened?"dxi dxi-chevron-up":"dxi dxi-chevron-down","data-dhx-id":e.id},{role:"button","aria-label":e.$opened?"Collapse group":"Expand group"}),{style:{padding:e.$level?"0 0 0 "+(4+o)+"px":"0 0 0 4px"}})):null,X.el(".dhx_tree-cell",{class:s+(n.autoHeight?" dhx_tree-cell_auto-height":"")},[t])]:null)}function tt(t,e,i){return n.getEditor(t,e,i)}function et(t){var e=t.$scrollBarWidth,i=t.$headerLevel*t.headerRowHeight,n=t.$footerLevel*t.footerRowHeight,o=t.$totalWidth-t.$width+Q.BORDERS+e.y,e=t.$totalHeight-t.$height+i+n+Q.BORDERS+e.x;return{x:0<o?o-t.scroll.left:0,y:0<e?e-t.scroll.top:0}}e.getHandlers=function(t,e,i){return{onclick:[o,t,e,i,J.GridEvents.cellClick],onmouseover:[o,t,e,i,J.GridEvents.cellMouseOver],onmousedown:[o,t,e,i,J.GridEvents.cellMouseDown],ondblclick:[o,t,e,i,J.GridEvents.cellDblClick],oncontextmenu:[o,t,e,i,J.GridEvents.cellRightClick],ontouchstart:[o,t,e,i,J.GridEvents.cellMouseDown],ontouchmove:[o,t,e,i,J.GridSystemEvents.cellTouchMove],ontouchend:[o,t,e,i,J.GridSystemEvents.cellTouchEnd]}},e.getTreeCell=m,e.getCells=function(p){if(!p.data||!p.filteredColumns)return[];var o,g=p.$positions,r=p.data?p.data.slice(g.yStart,g.yEnd):[],s=p.filteredColumns.slice(g.xStart,g.xEnd),v=p.selection.getCell(),_=!0,t=document.querySelector(".dhx_drag-ghost");return!t||(t=Array.from(t.querySelectorAll(".dhx_grid-row")).map(function(t){return Number(t.getAttribute("aria-rowindex"))-1})).length&&(o=t.map(function(t){return p.data[t]}).filter(function(e){return e&&!r.find(function(t){return t.id===e.id})}),r.push.apply(r,o)),r.map(function(f,t){var e=null==o?void 0:o.some(function(t){return t.id===f.id}),i=r.length-1===t,n="";return p.rowCss&&(n=p.rowCss(f)),f.$css&&(n+=f.$css),X.el(".dhx_grid-row",y({style:{height:i?f.$height+1:f.$height,display:e?"none":null},"data-dhx-id":f.id,class:n,_key:f.id,_flags:X.KEYED_LIST},e?{}:{role:"row","aria-rowindex":g.yStart+t+1}),f.$customRender?[f.$customRender(f,p)]:s.map(function(t,e){var i;if(!t.hidden){var n=f[t.id],o=Z.getEditorOptions(t,f);(t.editable||p.editable&&!1!==t.editable)&&("select"===t.editorType||"combobox"===t.editorType||"multiselect"===t.editorType)&&o&&(n=(n="string"==typeof n&&"multiselect"===t.editorType?n.split(",").map(function(t){return t.trim()}):[null==n?void 0:n.toString()]).map(function(e){var t;return null!==(t=null===(t=o.find(function(t){return t.id&&t.id.toString()===e}))||void 0===t?void 0:t.value)&&void 0!==t?t:e}).join(", "));var r=Z.toFormat(n,t.type,t.format),s=function(t,e,i,n){return y({role:"gridcell","aria-colindex":e,"aria-readonly":n?"false":"true"},(e=t,n=f,t={tabindex:-1},v?v.row.id===n.id&&v.column.id===e.id&&(t.tabindex=0):_&&(t.tabindex=0,t.onfocus=function(t){var e;p.selection&&!v&&(e=t.target.parentNode.getAttribute("data-dhx-id"),(t=t.target.getAttribute("data-dhx-col-id"))&&e&&(p.selection.setCell(e,t),v=p.selection.getCell()))}),_=!1,t))},a=t.template?t.template(r,f,t):"boolean"!=typeof(i=r)&&"boolean"!==t.type||"string"==typeof i?i||0===i?i:"":""+Boolean(i);"string"==typeof a&&(a=K.isHtmlEnable(p,t)?X.el("div.dhx_grid-cell__content",y({".innerHTML":a},{role:"button","aria-label":"Edit content"})):a);var l=((t.$cellCss&&t.$cellCss[f.id]||"")+" dhx_"+t.type+"-cell").replace(/\s+/g," "),c=t.$width,u=p.$editable&&p.$editable.row===f.id&&p.$editable.col===t.id&&!p.$editable.isSpan,d=p.leftSplit,h=p.filteredColumns;return((u||"boolean"===t.type&&(p.editable&&(null===(n=t.editable)||void 0===n||n)||!p.editable&&t.editable))&&(a=tt(f,t,p).toHTML(),l+=" dhx_grid-cell__editable",d===h.indexOf(t)+1&&--c),"tree"===p.type&&p.firstColId===t.id)?m(a,f,t,p):(p.dragMode&&!u&&(l+=(f.$drophere?" dhx_grid-cell--drophere":"")+(f.$dragtarget?" dhx_grid-cell--dragtarget":"")),t.align&&(l+=" dhx_align-"+t.align),K.isHtmlEnable(p,t)&&(l+=" dhx_grid-cell__content_html-enable"),p.autoHeight&&(l+=" dhx_grid-cell__content_auto-height"),X.el(".dhx_grid-cell",y({class:l,style:{width:c,height:f.$height+"px"},_key:t.id,"data-dhx-col-id":t.id},s(t,g.xStart+e+1,0,p.editable)),[a]))}}))})},e.getSpans=function(L,A){var j,$=[],N=L.columns,z=L.filteredColumns,W=L.data,t=L.spans,B=L.bottomSplit;if(!z.length||!t)return null;for(var G=L.fixedColumns.right.length,q=t.filter(function(t){return null===(t=t.$renderFrom)||void 0===t?void 0:t.includes(L.$renderFrom)}).sort(function(t,e){return"string"==typeof t.row&&"string"==typeof e.row?t.row.localeCompare(e.row):t.row-e.row}),e=0;e<q.length;e++)!function(t){var e=q[t].row,i=q[t].column,n=q[t].rowspan||1,o=q[t].colspan||1,r=q[t].text,s=q[t].css,a=q[t].$markCss,l=q[t].$type,c=A===J.Split.bottom&&L.$renderFrom.endsWith("FixedCols"),u=c?L.$data:W,d=Y.findIndex(z,function(t){return""+t.id==""+i}),h=Y.findIndex(u,function(t){return""+t.id==""+e});if(d<0||h<0)return;if(c){var f=L.$data[h+n-1];if(!W.find(function(t){return t.id===(null==f?void 0:f.id)}))return}var p=z[d],g=u[h];if(p.hidden)return;var v=void 0;v=Y.isDefined(r)?r.toString():void 0===g[i]?"":Z.toFormat(g[i],p.type,p.format);v=(p.template||function(t,e,i){return t||0===t?t:""})(v,g,p);var _=K.isHtmlEnable(L,p);v="string"==typeof v?X.el("div.dhx_span-cell-content",{".innerHTML":_?v:null},_?null:v):v;var m=void 0;m="bottomFixedRows"===L.$renderFrom||c?h<(R=u.length-B)?-K.getTotalHeight(u.slice(h,R)):K.getTotalHeight(u.slice(R,h)):K.getTotalHeight(u.slice(0,h))-(A?0:1);var y=0;if("rightFixedCols"===L.$renderFrom)var b=z.length-L.fixedColumns.right.length,y=d<b?-K.getTotalWidth(z.slice(d,b)):K.getTotalWidth(z.slice(b,d));else for(var w=d-1;0<=w;w--)y+=z[w].$width;var x=g.$items&&0===d,E=d===z.length-1,C=d+U.getReducedColspan(N,i,o)===z.length,S=G&&d===z.length-G,k=A===J.Split.bottom&&L.fixedRows.bottom.find(function(t){return t.id===e}),I=B&&h+n>u.length-B,O=G&&d+o===z.length-G,P=p.header[0].text?" dhx_span-cell":" dhx_span-cell dhx_span-cell--title";P+=x?" dhx_span-expand-cell":"",P+=a?" "+a:"",P+=s?" "+s:"",P+=0===h?" dhx_span-first-row":"",P+=h+n===u.length?" dhx_grid__span_bottom--last-row":"",P+=0===d||S?" dhx_span-first-col":"",P+=E||C?" dhx_span-last-col":"",P+=1===o?" dhx_span-"+(p.type||"string")+"-cell":" dhx_span-string-cell",P+=p.align?" dhx_align-"+p.align:" dhx_"+l+"-cell",P+=k?" dhx_grid__span_bottom--all-fixed":"",P+=I?" dhx_grid__span_bottom--part-fixed":"",P+=O?" dhx_grid__span_right--before-fixed":"";r=Y.findIndex(N,function(t){return t.id===i}),_=1<o?U.getWidth(N,o,r):p.$width,c=void 0;1<n?(c=U.getHeight(u,n,h),A!==J.Split.top||!L.$renderFrom.endsWith("FixedCols")||0<(D=h+n-u.length)&&(V=L.fixedRows.top.length,c+=K.getTotalHeight(L.$data.slice(V,V+D)))):c=g.$height;var D,V,M,T,H,F,R=null;((null===(j=L.$editable)||void 0===j?void 0:j.isSpan)&&L.$editable.row===e&&L.$editable.col===i||"boolean"===p.type&&(L.editable&&(null===(j=p.editable)||void 0===j||j)||!L.editable&&p.editable))&&(b=L.topSplit,s=(a=L.fixedColumns.left.length)&&d+o<=a||G&&d>=z.length-G,S=h<(b||0)||h+n>u.length-(B||0),E=b&&h+n<=b||B&&h>=u.length-B,C=d<(a||0)||d+o>z.length-(G||0),("render"===L.$renderFrom||s&&!S||E&&!C)&&(l=L.$height,k=L.$scrollBarWidth,I=L.scroll,O=L.fixedRows,r=L.fixedColumns,V=q[t].text,D=0,v=tt(g,p,L).toHTML(V),P+=" dhx_span__editable",E||(b=L.$headerLevel*L.headerRowHeight,S=L.$footerLevel*L.footerRowHeight,C=K.getTotalHeight(O.top),t=K.getTotalHeight(O.bottom),b=(V=k.yState?l-b-S-k.x-Q.BORDERS:L.$totalHeight)-t<(l=m+c-I.top),(S=m-C<I.top)&&b&&k.xState&&(D=1),m=S?I.top+C-(C&&!s?1:0):m,c=b?V-m-t+I.top-D:S?l-C:c),"render"===L.$renderFrom&&(R=12,r.left.find(function(t){return t.id===i})&&(y=I.left+K.getTotalWidth(r.left.slice(0,d)),s||(T=K.getTotalWidth(r.left.slice(d,a)),_=_-I.left>T?_-I.left:T)),O.top.find(function(t){return t.id===e})&&(m=I.top+K.getTotalHeight(O.top.slice(0,h)),E||(H=K.getTotalHeight(L.fixedRows.top.slice(h,L.topSplit)),c=0<c?H+c-D:H)),r.right.find(function(t){return t===z[z.indexOf(p)+o-1]})&&(F=z.length,M=et(L),T=(I=F-z.indexOf(p)-o)?K.getTotalWidth(r.right.slice(0,-I)):K.getTotalWidth(r.right),r=K.getTotalWidth(z.slice(d,F-G)),y=M.x>r?y-M.x+r:y,s||(_=M.x<r?_-M.x-1:T-1)),O.bottom.find(function(t){return t===u[u.indexOf(g)+n-1]})&&(F=u.length,M=et(L),H=(T=F-u.indexOf(g)-n)?K.getTotalHeight(O.bottom.slice(0,-T)):K.getTotalHeight(L.fixedRows.bottom),F=K.getTotalHeight(u.slice(h,F-B)),m=M.y>F?m-M.y+F:m,E||(c=M.y<F?H+c-D-(T?-1:D?0:1):H-(T?-1:1)))),a===d+1&&--_,d===z.length-G&&(y+=1,--_))),$.push(X.el("div",{class:P,style:{width:_,height:c,top:m,left:y,zIndex:R},"data-dhx-col-id":i,"data-dhx-id":e,"aria-hidden":"true"},[x?X.el(".dhx_span-expand-cell-icon",{class:g.$opened?"dxi dxi-chevron-up":"dxi dxi-chevron-down","data-dhx-id":g.id,role:"button","aria-label":g.$opened?"Collapse group":"Expand group",style:{padding:"0 0 0 "+(4+Z.getTreeCellWidthOffset(g))+"px"}}):null,v]))}(e);return $},e.getShifts=function(t){var e=t.filteredColumns.slice(0,t.$positions.xStart),t=t.data.slice(0,t.$positions.yStart);return{x:K.getTotalWidth(e),y:K.getTotalHeight(t)}},e.normalizeSpan=function(t,e){var i=void 0===(_=e.topSplit)?0:_,n=void 0===(m=e.bottomSplit)?0:m,o=e.data,r=e.columns,s=Q.getCurrFixedCols(e,J.Split.left).length,a=Q.getCurrFixedCols(e,J.Split.right).length,l=t.column,c=t.row,u=t.colspan,d=t.rowspan,h=r.findIndex(function(t){return t.id==l}),f=Y.isDefined(t.text)?"string":r[h].type,p=o.findIndex(function(t){return t.id==c}),g=h+(u?u-1:0),v=p+(d?d-1:0),_=[],m=h<s,e=p<i,u=g>=r.length-a,d=v>=o.length-n;return s<=g&&i<=v&&h<r.length-a&&p<o.length-n&&_.push("render"),m&&_.push("leftFixedCols"),u&&_.push("rightFixedCols"),!e||m||u?e&&!_.includes("render")&&_.push("render"):_.push("topFixedRows"),!d||m||u?d&&!_.includes("render")&&_.push("render"):_.push("bottomFixedRows"),y(y({},t),{$renderFrom:_,$type:f})}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.SelectionEvents||(e.SelectionEvents={})).beforeUnSelect="beforeunselect",e.afterUnSelect="afterunselect",e.beforeSelect="beforeselect",e.afterSelect="afterselect"},function(t,e,i){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r=i(0),d=i(1);e.getCount=function(t,e,i){var n={danger:" dhx_navbar-count--color_danger",secondary:" dhx_navbar-count--color_secondary",primary:" dhx_navbar-count--color_primary",success:" dhx_navbar-count--color_success"}[t.countColor]||" dhx_navbar-count--color_danger";return r.el(".dhx_navbar-count",{class:e+n+(!i&&99<parseInt(t.count,10)?" dhx_navbar-count--overlimit":"")},i&&99<parseInt(t.count,10)?"99+":t.count)},e.getIcon=function(t,e){return void 0===t&&(t=""),t.startsWith("dxi")&&(t="dxi "+t),r.el("span",{class:"dhx_"+e+"__icon "+t,"aria-hidden":"true"})};var s=function(t,e,i){var n="",o="",o=(n=i?"dhx_menu-item":"dhx_"+t+"__item")+(e.css?" "+e.css:"");return"spacer"!==e.type&&"separator"!==e.type||(o+=" "+n+"--"+e.type),"button"!==e.type||"sidebar"!==t||e.icon||(o+=" dhx_navbar-item--colapse_hidden"),o};e.navbarComponentMixin=function(t,e,i,n){var i=s(t,e,i),t="ribbon"===t&&("navItem"===e.type||"imageButton"===e.type);return r.el("li",o({_key:e.id,class:i+(e.icon&&!e.value&&t?" dhx_ribbon__item--icon":"")+(e.src&&!e.value&&t?" dhx_ribbon__item--icon":"")+(e.size&&t?" dhx_ribbon__item--"+e.size:""),".innerHTML":"customHTML"===e.type?e.html:void 0,"data-dhx-id":"customHTML"===e.type?e.id:void 0},(i=e.type,t={role:"none"},"separator"===i&&(t.role="separator",t["aria-orientation"]="vertical"),t)),"customHTML"!==e.type?[n]:void 0)},e.getNavbarButtonCSS=function(t,e){var i=t.color,n=t.size,o=t.view,r=t.full,s=t.icon,a=t.circle,l=t.loading,c=t.value,u=t.active,t=t.count;return({danger:" dhx_button--color_danger",secondary:" dhx_button--color_secondary",primary:" dhx_button--color_primary",success:" dhx_button--color_success"}[i]||" dhx_button--color_primary")+({small:" dhx_button--size_small",medium:" dhx_button--size_medium"}[n]||" dhx_button--size_medium")+({flat:" dhx_button--view_flat",link:" dhx_button--view_link"}[o]||" dhx_button--view_flat")+(r?" dhx_button--width_full":"")+(a?" dhx_button--circle":"")+(l?" dhx_button--loading":"")+(u?" dhx_button--active":"")+(s&&!c?" dhx_button--icon":"")+(d.isDefined(t)?" dhx_button--count":"")}},function(t,e,i){"use strict";var v=this&&this.__assign||function(){return(v=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var _=i(0),m=i(6);function y(t,e,i,n){return n&&(t+=2*e*Math.asin(.5*n/e)/(2*Math.PI*e)),[Math.cos(2*Math.PI*t)*e,Math.sin(2*Math.PI*t)*i]}function r(t,e,i){t.setAttribute("transform","translate("+e+", "+i+") scale(1.05)"),t.classList.add("dhx_pie-transform-delay")}function n(t){t.setAttribute("transform","translate(0, 0)"),t.classList.remove("dhx_pie-transform-delay")}function b(t,e){return t-1e-6<e&&e<t+1e-6}function w(t,e){return"M"+-t+",0A"+t+","+t+" 0 "+(e?0:1)+" 1 "+t+",0A"+t+","+t+" 0 "+(e?0:1)+" 1 "+-t+",0"}e.getCoordinates=y,e.shiftCoordinates=function(t,e,i){return[t[0]+e,t[1]+i]},e.pieLikeHandlers={onmouseover:function(e,i,t,n){var o=n.parent.attrs.id;r(n.el,e,i),n.parent.body.forEach(function(t){t.attrs.id!==o+"-text"&&t.attrs.id!==o+"-connector"||r(t.el,e,i)})},onmouseout:function(t,e){var i=e.parent.attrs.id;n(e.el),e.parent.body.forEach(function(t){t.attrs.id!==i+"-text"&&t.attrs.id!==i+"-connector"||n(t.el)})}},e.radarScale=function(t,e,i){var n,a=e<i?e/2:i/2,l=1/t.scales.length,c=.5<l?1:0,u=[],o=(n=a,o="#fafafa",_.sv("circle",{cx:0,cy:0,r:n,fill:o,stroke:"none",class:"background-circle"}));u.push(o);for(var d=-.25,r=[],s=t.axis,h="radar-grid "+(t.zebra?"zebra":""),f=1;f<s.length;f+=2){var p=a*s[f-1],g=a*s[f],g=w(p,!0)+" "+w(g,!1),g=_.sv("path",{d:g,fill:"none",stroke:"black",class:h});r.push(g)}return u.push(r),t.scales.forEach(function(t){var e=y(d,a,a),i=e[0],n=e[1],o=d+l,r=y(o,a,a),e=r[0],r=r[1],e="M "+i+" "+n+" A "+a+" "+a+" 0 "+c+" 1 "+e+" "+r+" L 0 0",r=_.sv("path",{d:e,stroke:"black",fill:"none",class:"radar-scale"});u.push(r);var s,e=[8,8],r=e[0],e=e[1],r=b(d,0)||b(d,.5)?0:d<0||.5<d?-r:r,e=b(d,-.25)||b(d,.25)?0:d<-.25||.25<d?-e:e;t=b(d,-.25)||b(d,.25)?(s=b(d,-.25)?m.verticalTopText:m.verticalBottomText,_.sv("text",{x:i+e,y:n+r,class:"scale-text"},[s(t)])):(s=-.25<=d&&d<=.25?"start-text scale-text":"end-text scale-text",_.sv("text",{x:i+e,y:n+r,class:s},[m.verticalCenteredText(t)])),u.push(t),d=o}),d=-.25,t.realAxis&&(o=t.realAxis.map(function(t,e){var i=y(-.25,a*s[e],a*s[e]),e=i[0],i=i[1];return _.sv("text",{x:e,y:i,dx:-10,class:"radar-axis-text"},[m.verticalCenteredText(t.toString())])}),u.push(o)),_.sv("g",v({transform:"translate("+e/2+", "+i/2+")"},{"aria-label":"x-axis"+((t=t.attribute)?", "+t:"")}),u)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(1),r=i(25),s=i(6),n=i(89),a=i(16),i=(l.prototype.toggle=function(){this.config.active=!this.config.active},l.prototype.getClosest=function(t,e){for(var i=[1/0,null,null,null],n=0,o=this._points;n<o.length;n++){var r=o[n],s=this._getClosestDist(t,e,r[0],r[1]);i[0]>s&&(i[0]=s,i[1]=r[0],i[2]=r[1],i[3]=r[2])}return i},l.prototype.getClosestVertical=function(t){for(var e=[1/0,null,null,null,null],i=0,n=this._points;i<n.length;i++){var o=n[i],r=Math.abs(o[0]-t);e[0]>r&&(e[0]=r,e[1]=o[0],e[2]=o[1],e[3]=o[2],e[4]=o[4])}return e},l.prototype.getTooltipType=function(t){return"top"},l.prototype.getTooltipText=function(e){if((this._data.getItem(e)||"calendarHeatMap"===this.config.type)&&this.config.tooltip){var t,i=void 0,n=void 0;return"calendarHeatMap"===this.config.type?(n=this._points.find(function(t){return t[2]===e.toString()}))&&((t=new Date).setTime(n[0]),n=[a.getFormattedDate(this.config.dateFormat,t),n[1]]):i=this._defaultLocator(this._data.getItem(e)),this.config.tooltipTemplate?this.config.tooltipTemplate(i||n):i?i[0]:n[1]+", <br>"+n[0]}},l.prototype.dataReady=function(t){return this._points=[]},l.prototype.paint=function(t,e){return this._calckFinalPoints(t,e)},l.prototype.getPoints=function(){return this._points},l.prototype.addScale=function(t,e){},l.prototype._getClosestDist=function(t,e,i,n){return s.euclideanDistance(t,e,i,n)},l.prototype._calckFinalPoints=function(t,e){},l.prototype._setDefaults=function(t){this.config=t},l.prototype._defaultLocator=function(t){return[null,null]},l.prototype._getPointType=function(t,e){return n.getShadeHelper(t,e)},l);function l(t,e,i){var n=this;this._data=t,this._handlers={onclick:function(t,e){return n._events.fire(r.ChartEvents.serieClick,[t,e])},onmousemove:function(t,e,i){return n._events.fire(r.ChartEvents.seriaMouseMove,[t,e,i])},onmouseleave:function(t,e){return n._events.fire(r.ChartEvents.seriaMouseLeave,[t,e])}},this.id=e.id=e.id||o.uid(),this._events=i,this._points=[],this._setDefaults(e)}e.default=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getWidth=function(t,e,i){return t.slice(i,i+(e||1)).filter(function(t){return!t.hidden}).reduce(function(t,e){return t+e.$width},0)},e.getHeight=function(t,n,o){return t=t.filter(function(t){return!t.hidden}),n?t.reduce(function(t,e,i){e=e.$height;return t+=o<=i&&i<o+n?e:0},0):t[o].$height},e.getReducedColspan=function(t,e,i){var n=t.findIndex(function(t){return t.id===e});return t.slice(n,n+(i||1)).filter(function(t){return!t.hidden}).length}},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(136)),n(e(73))},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(74)),n(e(152)),n(e(78))},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(75)),n(e(150)),n(e(76)),n(e(49))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});i(8);(i=e.FileStatus||(e.FileStatus={})).queue="queue",i.uploaded="uploaded",i.failed="failed",i.inprogress="inprogress",(i=e.UploaderEvents||(e.UploaderEvents={})).uploadBegin="uploadbegin",i.beforeUploadFile="beforeuploadfile",i.uploadFile="uploadfile",i.uploadFail="uploadfail",i.uploadComplete="uploadcomplete",i.uploadProgress="uploadprogress",(e.ProgressBarEvents||(e.ProgressBarEvents={})).cancel="cancel",(e=e.VaultMode||(e.VaultMode={})).grid="grid",e.list="list"},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(81)),n(e(177))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});i=i(8);e.DataEvents=i.DataEvents,(e=e.NavigationBarEvents||(e.NavigationBarEvents={})).inputCreated="inputCreated",e.click="click",e.openMenu="openMenu",e.beforeHide="beforeHide",e.afterHide="afterHide",e.inputFocus="inputFocus",e.inputBlur="inputBlur",e.inputChange="inputChange"},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var m=i(0),s=i(1),y=i(7),a=i(14),l=i(2),c=i(4);(i=e.Validation||(e.Validation={})).empty="",i.validEmail="email",i.validInteger="integer",i.validNumeric="numeric",i.validAlphaNumeric="alphanumeric",i.validIPv4="IPv4";var u,o=(u=a.Label,o(d,u),d.prototype.destructor=function(){this.events&&this.events.clear(),this.events=this._uid=this._isValid=this._propsItem=this._propsItem=null,u.prototype._destructor.call(this),this.unmount()},d.prototype.setProperties=function(t){if(t&&!s.isEmptyObj(t)&&this.events.fire(c.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this.events.fire(c.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},d.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},d.prototype.show=function(){var t=this.config,e=t.value;t.hidden&&this.events.fire(c.ItemEvent.beforeShow,[e])&&(this.config.hidden=!1,this.events.fire(c.ItemEvent.afterShow,[e]))},d.prototype.hide=function(t){var e=this.config,i=e.value;e.hidden&&!t||!this.events.fire(c.ItemEvent.beforeHide,[i,t])||(this.config.hidden=!0,this.events.fire(c.ItemEvent.afterHide,[i,t]))},d.prototype.isVisible=function(){return!this.config.hidden},d.prototype.disable=function(){this.config.disabled=!0,this.paint()},d.prototype.enable=function(){var t;this.config.disabled=!1,null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.paint()},d.prototype.isDisabled=function(){return!!this.config.disabled},d.prototype.validate=function(t,e){void 0===t&&(t=!1);e=void 0===e?this.getValue():e;if(t||this.events.fire(c.ItemEvent.beforeValidate,[e]))return this._isValid=this.config.validation?y.validateInput(e,this.config.validation):this.config.required?!(!y.baseInputValidate(e,this.config)||!String(e).trim().length):y.baseInputValidate(e,this.config),t||(this.config.$validationStatus=this._isValid?c.ValidationStatus.success:c.ValidationStatus.error,this.events.fire(c.ItemEvent.afterValidate,[e,this._isValid])),this._isValid},d.prototype.clearValidate=function(){this.config.$validationStatus=c.ValidationStatus.pre,this.paint()},d.prototype.clear=function(){""!==this.config.value&&this.events.fire(c.ItemEvent.beforeChange,[""])&&(this.config.value="",this.events.fire(c.ItemEvent.change,[this.getValue()]),y.isVerify(this.config)&&this.validate())},d.prototype.setValue=function(t){void 0!==t&&this.config.value!==t&&this.events.fire(c.ItemEvent.beforeChange,[t])&&(this.config.value=t,this.events.fire(c.ItemEvent.change,[this.getValue()]),y.isVerify(this.config)&&this.validate())},d.prototype.getValue=function(){var t=this.config,e=t.inputType,t=t.value;return"number"===e&&"number"==typeof t||null===t?t:"number"===e&&"string"==typeof t?t.length?Number(t):"":"string"==typeof t?t.length?t:"":void 0===t?"":String(t)},d.prototype.focus=function(){var t=this;m.awaitRedraw().then(function(){t.getRootView().refs.input.el.focus()})},d.prototype.blur=function(){var t=this;m.awaitRedraw().then(function(){t.getRootView().refs.input.el.blur()})},d.prototype._initView=function(t){var e,i=this;if(s.isEmptyObj(t))throw new Error("Check the configuration is correct");for(e in this.config={type:"input",id:t.id,name:t.name,disabled:!1,hidden:!1,inputType:"text",required:!1,icon:"",placeholder:"",autocomplete:!1,readOnly:!1,label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t)"id"!==e&&"type"!==e&&"name"!==e&&(this.config[e]=t[e]);this.config.hidden&&m.awaitRedraw().then(function(){i.hide(!0)}),this._value=this.config.value,this.paint()},d.prototype._initHandlers=function(){var e=this;this.events.on(c.ItemEvent.change,function(t){e._value=t,e.paint()}),this.events.on(c.ItemEvent.afterValidate,function(){e.config.$validationStatus=e._isValid?c.ValidationStatus.success:c.ValidationStatus.error,e.paint()})},d.prototype._getHandlers=function(){var e=this;return{oninput:function(t){e._value=t.target.value,e.events.fire(c.ItemEvent.input,[e._value])},onchange:function(t){e._value=t.target.value,e._value!==e.config.value&&e.setValue(e._value)},onfocus:function(){e.events.fire(c.ItemEvent.focus,[e.getValue()]),e.paint()},onblur:function(){e._uid&&(e.events.fire(c.ItemEvent.blur,[e.getValue()]),e._value!==e.config.value&&e.setValue(e._value),e.paint())},onkeydown:function(t){"Enter"===t.code&&"input"===e.config.type&&t.preventDefault(),e.events.fire(c.ItemEvent.keydown,[t])}}},d.prototype._draw=function(){var t=this.config,e=t.id,i=t.disabled,n=t.name,o=t.icon,r=t.placeholder,s=t.required,a=t.inputType,l=t.hidden,c=t.autocomplete,u=t.readOnly,d=t.maxlength,h=t.minlength,f=t.max,p=t.min,g=t.label,v=t.helpMessage,_=t.value,t=l?" dhx_form-group--hidden":"",l=(null===(l=null===(l=null===(l=this.getRootView())||void 0===l?void 0:l.refs)||void 0===l?void 0:l.input)||void 0===l?void 0:l.el)===document.activeElement;return m.el("div.dhx_form-group",{class:y.getFormItemCss(this.config,y.isVerify(this.config),l)+t},[this._drawLabel(),m.el(".dhx_input__wrapper",{},[m.el("div.dhx_input__container",{},[this.config.icon?m.el(".dhx_input__icon",{class:this.config.icon}):null,m.el("input.dhx_input",{type:["text","number","password"].includes(a)?a:"text","data-dhx-id":n||e,id:e||this._uid,placeholder:r||"",value:_||"",name:n||"",disabled:i,required:s,readOnly:u,maxlength:d,minlength:h,max:f,min:p,onblur:this._handlers.onblur,oninput:this._handlers.oninput,onchange:this._handlers.onchange,onfocus:this._handlers.onfocus,onkeydown:this._handlers.onkeydown,class:o?"dhx_input--icon-padding":"",autocomplete:c?"on":"off",_ref:"input","aria-label":g||v||"type "+(n||a||"text"),"aria-describedby":v?"dhx_label__help_"+(e||this._uid):null})]),y.getValidationMessage(this.config)&&m.el("span.dhx_input__caption",y.getValidationMessage(this.config))])])},d);function d(t,e){void 0===e&&(e={});var i=u.call(this,null,e)||this;return i.events=new l.EventSystem,i._propsItem=["inputType","required","validation","icon","placeholder","autocomplete","readOnly","maxlength","minlength","min","max","step","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage"],i._props=r(y.baseProps,i._propsItem),i._isValid=!0,i._initView(e),i._initHandlers(),i}e.Input=o},function(t,e){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":i(window))&&(n=window)}t.exports=n},function(t,e,i){"use strict";(function(c){Object.defineProperty(e,"__esModule",{value:!0});var u=i(23),d=i(24);function h(t){return t?t.includes("json")?"json":t.includes("xml")?"xml":"text":"text"}function n(o,r,s,t,a){var n,l=t||{};return a&&(l.Accept="application/"+a),"GET"!==s&&(l["Content-Type"]=l["Content-Type"]||"application/json"),"GET"===s&&((t=r&&"object"==typeof r?(n=r,Object.keys(n).reduce(function(t,e){var i="object"==typeof n[e]?JSON.stringify(n[e]):n[e];return t.push(e+"="+encodeURIComponent(i)),t},[]).join("&")):r&&"string"==typeof r?r:"")&&(o+=o.includes("?")?"&":"?",o+=t),r=null),window.fetch?("application/json"===l["Content-Type"]&&r&&"object"==typeof r&&(r=JSON.stringify(r)),window.fetch(o,{method:s,body:r||null,headers:l}).then(function(e){if(!e.ok)return e.text().then(function(t){return c.reject({status:e.status,statusText:e.statusText,message:t})});var t=a||h(e.headers.get("Content-Type"));if("raw"===t)return{headers:Object.fromEntries(e.headers.entries()),url:e.url,body:e.body};if(204!==e.status)switch(t){case"json":return e.json();case"xml":var i=d.toDataDriver(u.DataDriver.xml);return i?e.text().then(function(t){return i.toJsonObject(t)}):e.text();default:return e.text()}})):new c(function(t,e){var i,n=new XMLHttpRequest;for(i in n.onload=function(){200<=n.status&&n.status<300?("raw"===a&&t({url:n.responseURL,headers:n.getAllResponseHeaders().trim().split(/[\r\n]+/).reduce(function(t,e){e=e.split(": ");return t[e[0]]=e[1],t},{}),body:n.response}),204===n.status?t():t(function(t,e){switch(e){case"json":return JSON.parse(t);case"text":return t;case"xml":var i=d.toDataDriver(u.DataDriver.xml);return i?i.toJsonObject(t):{parseError:"Incorrect data driver type: 'xml'"};default:return t}}(n.responseText,a||h(n.getResponseHeader("Content-Type"))))):e({status:n.status,statusText:n.statusText})},n.onerror=function(){e({status:n.status,statusText:n.statusText,message:n.responseText})},n.open(s,o),l)n.setRequestHeader(i,l[i]);switch(s){case"POST":case"DELETE":case"PUT":n.send(void 0!==r?JSON.stringify(r):"");break;case"GET":default:n.send()}})}e.ajax={get:function(t,e,i){return n(t,e,"GET",i&&i.headers,void 0!==i?i.responseType:void 0)},post:function(t,e,i){return n(t,e,"POST",i&&i.headers,void 0!==i?i.responseType:void 0)},put:function(t,e,i){return n(t,e,"PUT",i&&i.headers,void 0!==i?i.responseType:void 0)},delete:function(t,e,i){return n(t,e,"DELETE",i&&i.headers,void 0!==i?i.responseType:void 0)}}}).call(this,i(17))},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(65)),n(e(160)),n(e(9)),n(e(32));var o=e(27);i.getTreeCell=o.getTreeCell,n(e(18)),n(e(15))},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.RealPosition||(e.RealPosition={})).left="left",n.right="right",n.top="top",n.bottom="bottom",n.center="center",(n=e.Position||(e.Position={})).right="right",n.bottom="bottom",n.center="center",n.left="left",n.top="top",(e=e.MessageContainerPosition||(e.MessageContainerPosition={})).topLeft="top-left",e.topRight="top-right",e.bottomLeft="bottom-left",e.bottomRight="bottom-right"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={apply:"apply",reject:"reject"}},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(137)),n(e(72))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(47),a=i(68),l=i(0),o=(r=a.Cell,o(c,r),c.prototype.destructor=function(){for(var t=0,e=this._all;t<e.length;t++){var i=e[t];this._all[i].destructor()}this.config=this._cells=this._root=this._xLayout=this._isViewLayout=null,this._all={},this.unmount()},c.prototype.toVDOM=function(){if(this._isViewLayout){var t=[this.getCell(this.config.activeView).toVDOM()];return r.prototype.toVDOM.call(this,t)}var e=[];return this._inheritTypes(),this._cells.forEach(function(t){t=t.toVDOM();Array.isArray(t)?e=e.concat(t):e.push(t)}),r.prototype.toVDOM.call(this,e)},c.prototype.removeCell=function(e){if(this.events.fire(s.LayoutEvents.beforeRemove,[e])){var t=this.config.parent||this;if(t!==this)return t.removeCell(e);t=this.getCell(e);t&&(t=t.getParent(),delete this._all[e],t._cells=t._cells.filter(function(t){return t.id!=e}),t.paint()),this.events.fire(s.LayoutEvents.afterRemove,[e])}},c.prototype.addCell=function(t,e){var i;void 0===e&&(e=-1),this.events.fire(s.LayoutEvents.beforeAdd,[t.id])&&(i=this._createCell(t),e<0&&(e=this._cells.length+e+1),this._cells.splice(e,0,i),this.paint(),this.events.fire(s.LayoutEvents.afterAdd,[t.id]))},c.prototype.getId=function(t){return t<0&&(t=this._cells.length+t),this._cells[t]?this._cells[t].id:void 0},c.prototype.getRefs=function(t){return this._root.getRootView().refs[t]},c.prototype.getCell=function(t){var e;return null===(e=this._root)||void 0===e?void 0:e._all[t]},c.prototype.forEach=function(t,e,i){if(void 0===i&&(i=1/0),this._haveCells(e)&&!(i<1))for(var n=(e?this._root._all[e]:this._root)._cells,o=0;o<n.length;o++){var r=n[o];t.call(this,r,o,n),this._haveCells(r.id)&&r.forEach(t,r.id,--i)}},c.prototype.cell=function(t){return this.getCell(t)},c.prototype.progressShow=function(){this._progress=!0,this.paint()},c.prototype.progressHide=function(){this._progress=!1,this.paint()},c.prototype._getCss=function(t){var e=this._xLayout?"dhx_layout-columns":"dhx_layout-rows",i=this.config.align?" "+e+"--"+this.config.align:"";if(t)return e+" dhx_layout-cell"+(this.config.align?" dhx_layout-cell--"+this.config.align:"");var n=this.config.parent?r.prototype._getCss.call(this):"dhx_widget dhx_layout",t=this.config.parent?"":" dhx_layout-cell";return n+(this.config.full?t:" "+e)+i},c.prototype._parseConfig=function(){var e=this,t=this.config,i=t.rows||t.cols||t.views||[];this._xLayout=!t.rows,this._cells=i.map(function(t){return e._createCell(t)})},c.prototype._createCell=function(t){var e=t.rows||t.cols||t.views?(t.parent=this._root,new c(this,t)):new a.Cell(this,t);return this._root._all[e.id]=e,t.init&&t.init(e,t),e},c.prototype._haveCells=function(t){if(t){t=this._root._all[t];return t._cells&&0<t._cells.length}return 0<Object.keys(this._all).length},c.prototype._inheritTypes=function(t){var e,i=this;void 0===t&&(t=this._cells),Array.isArray(t)?t.forEach(function(t){return i._inheritTypes(t)}):((e=t.config).rows||e.cols)&&(t=t.getParent(),!e.type&&t&&(t.config.type?e.type=t.config.type:this._inheritTypes(t)))},c);function c(t,e){var i=r.call(this,t,e)||this;return i._root=i.config.parent||i,i._all={},i._parseConfig(),i._progress=!1,i.config.activeTab&&(i.config.activeView=i.config.activeTab),i.config.views&&(i.config.activeView=i.config.activeView||i._cells[0].id,i._isViewLayout=!0),e.parent||(e=l.create({render:function(){return i.toVDOM()}},i),i.mount(t,e)),i}e.Layout=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.LayoutEvents||(e.LayoutEvents={})).beforeShow="beforeShow",e.afterShow="afterShow",e.beforeHide="beforeHide",e.afterHide="afterHide",e.beforeResizeStart="beforeResizeStart",e.resize="resize",e.afterResizeEnd="afterResizeEnd",e.beforeAdd="beforeAdd",e.afterAdd="afterAdd",e.beforeRemove="beforeRemove",e.afterRemove="afterRemove",e.beforeCollapse="beforeCollapse",e.afterCollapse="afterCollapse",e.beforeExpand="beforeExpand",e.afterExpand="afterExpand"},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(141)),n(e(70))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.ListEvents||(e.ListEvents={})).click="click",e.doubleClick="doubleclick",e.focusChange="focuschange",e.beforeEditStart="beforeEditStart",e.afterEditStart="afterEditStart",e.beforeEditEnd="beforeEditEnd",e.afterEditEnd="afterEditEnd",e.itemRightClick="itemRightClick",e.itemMouseOver="itemMouseOver",e.contextmenu="contextmenu"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={notFound:"Not Found",selectAll:"Select All",unselectAll:"Unselect All",selectedItems:"selected items",createItem:"Create"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={dragAndDrop:"Drag & drop",or:"or",browse:"Browse files",filesOrFoldersHere:"files or folders here",cancel:"Cancel",clearAll:"Clear all",clear:"Clear",add:"Add",upload:"Upload",download:"Download",error:"error",byte:"B",kilobyte:"KB",megabyte:"MB",gigabyte:"GB"}},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(182)),n(e(83)),n(e(82)),n(e(53));e=e(54);i.locale=e.default},function(t,e,i){"use strict";function n(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,n){return e+e+i+i+n+n});t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function o(t){var e,i,n,o=t.r/255,r=t.g/255,s=t.b/255,a=Math.max(o,r,s),l=a-Math.min(o,r,s),c=function(t){return(a-t)/6/l+.5};return 0==l?e=i=0:(i=l/a,n=c(o),t=c(r),c=c(s),o===a?e=c-t:r===a?e=1/3+n-c:s===a&&(e=2/3+t-n),e<0?e+=1:1<e&&--e),{h:Math.floor(360*e),s:i,v:a}}Object.defineProperty(e,"__esModule",{value:!0}),e.HSVtoRGB=function(t){var e,i={r:0,g:0,b:0},n=t.h/60,o=t.s,r=t.v,t=Math.floor(n)%6,n=n-Math.floor(n),s=255*r*(1-o),a=255*r*(1-o*n),l=255*r*(1-o*(1-n));switch(r*=255,t){case 0:i.r=r,i.g=l,i.b=s;break;case 1:i.r=a,i.g=r,i.b=s;break;case 2:i.r=s,i.g=r,i.b=l;break;case 3:i.r=s,i.g=a,i.b=r;break;case 4:i.r=l,i.g=s,i.b=r;break;case 5:i.r=r,i.g=s,i.b=a}for(e in i)i[e]=Math.round(i[e]);return i},e.RGBToHex=function(i){return Object.keys(i).reduce(function(t,e){e=i[e].toString(16).toUpperCase();return t+(e=1===e.length?"0"+e:e)},"#")},e.HexToRGB=n,e.RGBToHSV=o,e.HexToHSV=function(t){return o(n(t))},e.isHex=function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={cancel:"Cancel",select:"Select",rightClickToDelete:"Right click to delete",customColors:"Custom colors",addNewColor:"Add new color"}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(191),r=i(86),s=i(6),a={left:r.left,right:r.right,bottom:r.bottom,top:r.top},h={left:r.leftGrid,right:r.rightGrid,bottom:r.bottomGrid,top:r.topGrid},r=(l.prototype.addPadding=function(){this._padding=!0},l.prototype.getSize=function(){return this.config.size},l.prototype.scaleReady=function(t){var e=[];this._charts.forEach(function(t){t.getPoints().forEach(function(t){return e.push(t[1])})}),this._axis=new o.AxisCreator(e,this.config).getScale();var i=this._position;"radial"!==i&&(t[i]+=this.config.size)},l.prototype.point=function(t){return this.config.log?this._logPoint(t):this._isXDirection?(t-this._axis.min)/(this._axis.max-this._axis.min):1-(t-this._axis.min)/(this._axis.max-this._axis.min)},l.prototype.add=function(t){this._charts.push(t)},l.prototype.paint=function(e,i){var n=this;if(this.config.hidden)return null;var t=this._axis.steps.map(function(t){return[n._isXDirection?n.point(t)*e:n.point(t)*i,t]});return 0===t.length&&"left"===this._position&&(t=[[0,0]]),a[this._position](t,this.config,e,i)},l.prototype.scaleGrid=function(){var a=this,l=this._position,c=this.config.grid,u=this.config.dashed,d=this.config.hidden;return{paint:function(t,e){var i,n,o=a._axis.steps.indexOf(a.config.targetLine),r=(i=t,n=e,a._axis.steps.map(function(t){return[a._isXDirection?a.point(t)*i:a.point(t)*n,t]})),s=a.point(a.config.targetValue),s={targetLine:o,dashed:u,grid:c,targetValue:s,hidden:d};return h[l](r,t,e,s)}}},l.prototype._setDefaults=function(t){t.locator&&(this.locator=s.locator(t.locator)),this.config=n(n({},{scalePadding:20,textPadding:11,grid:!0,targetLine:null,showText:!0}),t)},l.prototype._logPoint=function(t){var e=Math.abs(t)/t,i=this._axis.steps,n=i.length-1,o=i.indexOf(t);return n=-1!==o?o/n:((this._axis.min<0?i.indexOf(0):0)+e*s.log10(Math.abs(t)))/n,this._isXDirection?n:1-n},l);function l(t,e,i){this._data=t,this._padding=!1,this._charts=[],this._position=i,this._setDefaults(e),this._isXDirection="bottom"===i||"top"===i,"radial"!==i&&(this.config.size="left"===i||"right"===i?this.config.size||40+(this.config.title?40:0):this.config.size||20+(this.config.title?40:0))}e.Scale=r},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(6),i=i(31),o=(r=i.default,o(a,r),a.prototype.addScale=function(t,e){"bottom"===t||"top"===t?(this.xScale=e,this._xLocator=e.locator):(this.yScale=e,this._yLocator=s.locator(this.config.value))},a.prototype.paint=function(t,e){r.prototype.paint.call(this,t,e)},a.prototype.dataReady=function(o){var r=this;return this.config.active?(this._points=this._data.map(function(t,e){var i=r._xLocator(t),n=r._yLocator(t),n=[i,n,t.id,i,n];return o&&(n[1]+=o[e][1]),n}),this._points):this._points=[]},a.prototype._calckFinalPoints=function(n,o){var r=this;this._points.forEach(function(t,e){t[0]=r.xScale.point(t[0])*n||0;var i=r.yScale.point(t[1])*o;t[1]=isNaN(i)?"xbar"===r.config.type?0:o:i})},a.prototype._defaultLocator=function(t){return[this._yLocator(t),this._xLocator(t)]},a);function a(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(6),i=i(31),o=(s=i.default,o(l,s),l.prototype.scaleReady=function(t){for(var e in t)t[e]+=this.config.paddings;return t},l.prototype.dataReady=function(){var s=this,t=this._data;return this._sum=t.reduce(function(t,e){return e.$hidden?t:t+parseFloat(s._valueLocator(e))},0),this._points=t.reduce(function(t,e,i){if(e.$hidden)return t;var n=s._textLocator(e),o=s._valueLocator(e),r=o/s._sum,i=s._colorLocator?s._colorLocator(e):a.getDefaultColor(i);return t.push([r,o,e.id,n,i]),t},[]),this._points},l.prototype.toggle=function(t){var e=this._data.getItem(t);e&&this._data.update(t,{$hidden:!e.$hidden})},l.prototype.getClosest=function(t,e){for(var i=1-(Math.atan2(t-this._center[0],e-this._center[1])+Math.PI)/Math.PI/2,n=this._points,o=0;o<n.length;o++){if(n[o][0]>=i)return[0,this._tooltipData[o][0],this._tooltipData[o][1],n[o][2]];i-=n[o][0]}return[1/0,null,null,null]},l.prototype.getTooltipText=function(t){if(this.config.tooltip){t=this._defaultLocator(this._data.getItem(t));return this.config.tooltipTemplate?this.config.tooltipTemplate(t):t[0]}},l.prototype.getTooltipType=function(t){return"simple"},l.prototype._setDefaults=function(e){var i=this,t={subType:"basic",paddings:e.useLines?70:50};this.config=r(r({},t),e),this._drawPointType=this._getPointType("empty","none"),this._valueLocator=a.locator(e.value),this._textLocator=a.locator(e.text),e.color?this._colorLocator=a.locator(e.color):e.monochrome&&(this._colorLocator=function(t){return a.getColorShade(e.monochrome,2*i._getPercent(t))})},l.prototype._defaultLocator=function(t){return[this._valueLocator(t),this._textLocator(t)]},l.prototype._getPercent=function(t){return parseFloat(this._valueLocator(t))/this._sum},l);function l(){var t=null!==s&&s.apply(this,arguments)||this;return t._center=[0,0],t._tooltipData=[],t}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var l,c=i(0),u=i(6),i=i(56),o=(l=i.default,o(r,l),r.prototype.paint=function(t,e){var r=this;l.prototype.paint.call(this,t,e);var i,n=this.config.pointColor||this.config.color,o="chart "+this.config.type+" "+(this.config.css||"")+" "+(this.config.dashed?"dash-line":""),s=[];return this.config.strokeWidth&&s.push(this._getForm(this._points,this.config,o,t,e)),this.config.pointType&&(i=this._getPointType(this.config.pointType,n),s=s.concat(this._points.map(function(t){return i(t[0],t[1],u.calcPointRef(t[2],r.id))}).map(function(t,e){var i,n,o;return t&&t.attrs&&(t.attrs=a(a({},t.attrs),(i=t.key,n=r._points,i&&(o=n.find(function(t){return i.includes(t[2])})),{role:"graphics-symbol","aria-roledescription":"point","aria-label":o?"point x="+o[3]+" y="+o[4]:"",tabindex:0})),r.config.tooltip&&(t.attrs.onmousemove=[r._handlers.onmousemove,r._points[e][2],r.id],t.attrs.onmouseleave=[r._handlers.onmouseleave,r._points[e][2],r.id],t.attrs.onclick=[r._handlers.onmousemove,r._points[e][2],r.id])),t}))),c.sv("g",a(a({class:"seria",_key:this.id},{"aria-label":"chart "+(this.config.value||"")}),{tabindex:0}),s)},r.prototype._getForm=function(t,e,i,n,o){t=t.map(function(t,e){return(e?"L":"M")+t[0]+" "+t[1]}).join(" ");return c.sv("path",{id:"seria"+e.id,d:t,stroke:e.color,class:i,"stroke-width":this.config.strokeWidth,fill:"none"})},r.prototype._setDefaults=function(t){this.config=a(a({},{alpha:1,strokeWidth:2,active:!0,tooltip:!0}),t)},r);function r(){return null!==l&&l.apply(this,arguments)||this}e.default=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(60)),n(e(164)),n(e(36))},function(t,i,a){"use strict";(function(r){Object.defineProperty(i,"__esModule",{value:!0});var n=a(1),o=a(3),s=a(8),c=a(36),t=(e.prototype.selectFile=function(){this._fileInput.click()},e.prototype.linkDropArea=function(t){function e(t){return t.preventDefault()}var i=this,n=o.toNode(t),t=function(t){t.preventDefault(),i.parseFiles(t.dataTransfer)};n.addEventListener("dragover",e),n.addEventListener("drop",t),this._dropAreas.set(n,{dragover:e,drop:t})},e.prototype.unlinkDropArea=function(t){var i=this;t?(t=o.toNode(t),this._unlinkDropArea(t),this._dropAreas.delete(t)):(this._dropAreas.forEach(function(t,e){i._unlinkDropArea(e)}),this._dropAreas.clear())},e.prototype.parseFiles=function(t){if(t.items&&t.items[0]&&t.items[0].webkitGetAsEntry)this._parseAsWebkitEntry(t.items);else{for(var e=t.files,i=0;i<e.length;i++)this._addFile(e[i]);this.config.autosend&&this.send()}},e.prototype.send=function(t){var e=this;if(!this._uploadInfo||!this.isActive){var i=this.data.findAll(function(t){return t.status===c.FileStatus.queue||t.status===c.FileStatus.failed}).filter(function(t){return e.events.fire(c.UploaderEvents.beforeUploadFile,[t])});if(i.length)if(this.isActive=!0,this._uploadInfo={files:i,count:i.length,size:i.reduce(function(t,e){return t+e.file.size},0)},this.events.fire(c.UploaderEvents.uploadBegin,[i]),this.events.fire(c.UploaderEvents.uploadProgress,[0,0,this._uploadInfo.size]),this.config.singleRequest)this._xhrSend(i,t);else for(var n=0,o=i;n<o.length;n++){var r=o[n];this._xhrSend([r],t)}}},e.prototype.abort=function(t){if(t){t=this.data.getItem(t);t&&t.request&&4!==t.request.readyState&&t.request.abort()}else if(this._uploadInfo&&this._uploadInfo.files)for(var e=0,i=this._uploadInfo.files;e<i.length;e++){var n=i[e];this.abort(n.id)}},e.prototype._unlinkDropArea=function(t){var e,i=this._dropAreas.get(t);i&&(e=i.dragover,i=i.drop,t.removeEventListener("dragover",e),t.removeEventListener("drop",i))},e.prototype._initEvents=function(){var i=this;this._fileInput.addEventListener("change",function(){for(var t=i._fileInput.files,e=0;e<t.length;e++)i._addFile(t[e]);i.config.autosend&&i.send(),i._fileInput.value=null})},e.prototype._xhrSend=function(a,t){for(var l=this,t=this._createFormData(a,t),r=new XMLHttpRequest,e=this.config.headerParams,i=0,n=a;i<n.length;i++){var o=n[i];this.data.update(o.id,{request:r,status:c.FileStatus.inprogress,progress:0})}if(r.open("POST",this.config.target),e)for(var s in e)r.setRequestHeader(s,e[s]);r.upload.onprogress=function(t){for(var e=0,i=a;e<i.length;e++){var n=i[e];l.data.update(n.id,{progress:t.loaded/t.total,status:c.FileStatus.inprogress})}var o=l._uploadInfo.files.reduce(function(t,e){return t+e.size*e.progress},0)||0,r=l._uploadInfo.size,s=o/l._uploadInfo.size*100||0;l.events.fire(c.UploaderEvents.uploadProgress,[s,o,r])},r.onloadend=function(){l._uploadInfo.count=l.config.singleRequest?0:l._uploadInfo.count-1;for(var t=200===r.status?c.FileStatus.uploaded:c.FileStatus.failed,e=200===r.status&&r.response?JSON.parse(r.response):null,i=0,n=a;i<n.length;i++){var o=n[i];l.data.update(o.id,{status:t}),t===c.FileStatus.uploaded?(l.config.updateFromResponse&&e&&(l.config.singleRequest&&e[o.id]?l.data.update(o.id,e[o.id]):l.config.singleRequest||l.data.update(o.id,e)),l.events.fire(c.UploaderEvents.uploadFile,[o,e])):l.events.fire(c.UploaderEvents.uploadFail,[o])}0===l._uploadInfo.count&&(l.isActive=!1,l.events.fire(c.UploaderEvents.uploadComplete,[l._uploadInfo.files]))},r.send(t)},e.prototype._parseAsWebkitEntry=function(t){for(var e=this,i=[],n=0;n<t.length;n++){var o=t[n].webkitGetAsEntry();i.push(this._traverseFileTree(o))}r.all(i).then(function(){e.config.autosend&&e.send()})},e.prototype._createFormData=function(t,e){var i=this.config.fieldName,n=new FormData,o=this.config.params;if(e)for(var r in e)n.append(r,e[r]);if(o)for(var r in o)n.append(r,o[r]);for(var s=1<t.length?"[]":"",a=0,l=t;a<l.length;a++){var c=l[a];n.append(i+s,c.file,c.file.name),n.append(i+"_fullname"+s,c.path+c.file.name);c="object"==typeof c.id?c.id:c.id.toString();n.append(i+"_id"+s,c)}return n},e.prototype._addFile=function(t,e){void 0===e&&(e="");e={id:n.uid(),file:t,progress:0,status:c.FileStatus.queue,src:null,path:e};this.data.add(e)},e.prototype._traverseFileTree=function(t){var n=this;return new r(function(r){var s=0,a=function(t,e){var i,o;t.isFile?(s++,t.file(function(t){s--,n._addFile(t,e),0===s&&r()})):t.isDirectory&&(i=t.createReader(),i=i,o=e+t.name+"/",s++,i.readEntries(function(t){s--;for(var e=0,i=t;e<i.length;e++){var n=i[e];a(n,o)}0===s&&r()}))};a(t,"")})},e);function e(t,e,i){void 0===t&&(t={}),this.config=n.extend({autosend:!0,updateFromResponse:!0,fieldName:"file",accept:""},t),this.data=e||new s.DataCollection,this.events=i||this.data.events,this.isActive=!1,this._fileInput=document.createElement("input"),this._fileInput.type="file",this._fileInput.accept=this.config.accept,this._fileInput.multiple=!0,this._initEvents(),this._dropAreas=new Map}i.Uploader=t}).call(this,a(17))},function(t,e,i){"use strict";var l=this&&this.__assign||function(){return(l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},n=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),r=i(121),s=i(124),a=i(26),c=i(24),u=i(23),p=i(1),i=(d.prototype._reset=function(){this._order=[],this._pull={},this._changes={order:[]},this._initOrder=null,this._meta=new WeakMap,this._loaded=!1},d.prototype.add=function(t,i){var n=this;if(this.events.fire(u.DataEvents.beforeAdd,[t])){t=Array.isArray(t)?t.map(function(t,e){return 0!==e&&(i+=1),n._add(t,i)}):this._add(t,i);return this._reapplyFilters(!0),t}},d.prototype.remove=function(t){var e=this;t instanceof Array?n(t).map(function(t){e._remove(t)}):p.isId(t)&&this._remove(t)},d.prototype.removeAll=function(){this._reset(),this.events.fire(u.DataEvents.removeAll),this.events.fire(u.DataEvents.change)},d.prototype.exists=function(t){return!!this._pull[t]},d.prototype.getNearId=function(t){if(!this._pull[t])return this._order[0].id||""},d.prototype.getItem=function(t){return this._pull[t]},d.prototype.update=function(t,e,i){var n=this.getItem(t);n?c.isEqualObj(e,n)||(p.isId(e.id)&&t!==e.id?(c.dhxWarning("this method doesn't allow change id"),c.isDebug()):(e.parent&&n.parent&&e.parent!==n.parent&&this.move(t,-1,this,e.parent),p.extend(this._pull[t],e,!1),this.config.update&&this.config.update(this._pull[t]),i||this._onChange("update",t,this._pull[t])),this._reapplyFilters(!0)):c.dhxWarning("item not found")},d.prototype.getIndex=function(e){return p.isId(e)&&p.isDefined(this._pull[e])?p.findIndex(this._order,function(t){return t&&t.id.toString()===e.toString()}):-1},d.prototype.getId=function(t){if(this._order[t])return this._order[t].id},d.prototype.getLength=function(){return this._order.length},d.prototype.isDataLoaded=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=this._order.length),p.isNumeric(t)&&p.isNumeric(e)?0===this._order.slice(t,e).filter(function(t){return t&&t.$empty}).length:(this._loaded||(this._loaded=!this.find(function(t){return t.$empty})),!!this._loaded)},d.prototype.filter=function(t,e,i){var n,o;if(this.isDataLoaded()){if(null!=e&&e.$restore&&(t=this._normalizeFilters(t||this._filters)),!(null!=e&&e.add||(this._order=this._initOrder||this._order,(this._initOrder=null)!=e&&e.$restore)))for(var r in this._filters){var s=this._filters[r];null!==(n=s.config)&&void 0!==n&&n.permanent?this._applyFilters(s.rule):delete this._filters[r]}if(!t||null!=e&&e.$restore||(o=(null==e?void 0:e.id)||p.uid(),this._filters[o]={rule:t,config:e||{}}),t&&"function"!=typeof t)if(p.isDefined(t.by))this._applyFilters(t);else for(var r in t)this._applyFilters(t[r]);else this._applyFilters(t);return i||(i=this._getPureFilters(this._filters),this.events.fire(u.DataEvents.filter,[p.isEmptyObj(i)?null:i])),o}c.dhxWarning("the method doesn't work with lazyLoad")},d.prototype.resetFilter=function(t,e){var i,n=t||{},o=n.id,n=n.permanent;if(p.isEmptyObj(t))for(var r in this._filters)null!==(i=this._filters[r].config)&&void 0!==i&&i.permanent||delete this._filters[r];else n?this._filters={}:o&&delete this._filters[o];return this.filter(null,{$restore:!0},e),p.isEmptyObj(this._getPureFilters(this._filters))},d.prototype.getFilters=function(t){t=this.getRawFilters(t),t=t?this._getPureFilters(t):{};return p.isEmptyObj(t)?null:t},d.prototype.getRawFilters=function(t){var n=this._filters;return null!=t&&t.permanent&&(n=Object.keys(n).reduce(function(t,e){var i;return null!==(i=n[e].config)&&void 0!==i&&i.permanent&&(t[e]=n[e]),t},{})),p.isEmptyObj(n)?null:n},d.prototype.find=function(t){for(var e in this._pull){var i=c.findByConf(this._pull[e],t);if(i)return i}return null},d.prototype.findAll=function(t){var e,i=[];for(e in this._pull){var n=c.findByConf(this._pull[e],t);n&&i.push(n)}return i},d.prototype.sort=function(t,e){this.isDataLoaded()?(e&&e.smartSorting&&(this._sorter=t),t&&this._applySorters(t),this.events.fire(u.DataEvents.change,[void 0,"sort",t])):c.dhxWarning("the method doesn't work with lazyLoad")},d.prototype.copy=function(t,i,n,o){var r=this;return t instanceof Array?t.map(function(t,e){return r._copy(t,i,n,o,e)}):this._copy(t,i,n,o)},d.prototype.move=function(t,i,n,o,e){var r=this;return t instanceof Array?t.map(function(t,e){return r._move(t,i,n,o,e)}):this._move(t,i,n,o,0,e)},d.prototype.forEach=function(t){for(var e=0;e<this._order.length;e++)t.call(this,this._order[e],e,this._order)},d.prototype.load=function(t,e){return"string"==typeof t&&(this.dataProxy=t=new a.DataProxy(t)),this.dataProxy=t,this._loader.load(t,e)},d.prototype.parse=function(t,e){return this._reset(),this._loader.parse(t,e)},d.prototype.$parse=function(t){var e=this.config.approximate;e&&(t=this._approximate(t,e.value,e.maxNum)),this._parse_data(t),this._reapplyFilters(!0),this.events.fire(u.DataEvents.change,["load"]),this.events.fire(u.DataEvents.load)},d.prototype.save=function(t){"string"==typeof t&&(t=new a.DataProxy(t)),this._loader.save(t)},d.prototype.changeId=function(t,e,i){var n;void 0===e&&(e=p.uid()),i||this.isDataLoaded()?(n=this.getItem(t))?(n.id=e,p.extend(this._pull[t],n),this._pull[e]=this._pull[t],i||this._onChange("update",e,this._pull[e]),delete this._pull[t]):c.dhxWarning("item not found"):c.dhxWarning("the method doesn't work with lazyLoad")},d.prototype.isSaved=function(){return!this._changes.order.length},d.prototype.map=function(t){for(var e=[],i=0;i<this._order.length;i++)e.push(t.call(this,this._order[i],i,this._order));return e},d.prototype.mapRange=function(t,e,i){t<0&&(t=0),e>this._order.length-1&&(e=this._order.length-1);for(var n=this._order.slice(t,e),o=[],r=t;r<=e;r++)o.push(i.call(this,this._order[r],r,n));return o},d.prototype.reduce=function(t,e){for(var i=0;i<this._order.length;i++)e=t.call(this,e,this._order[i],i);return e},d.prototype.serialize=function(t){void 0===t&&(t=u.DataDriver.json);for(var i=[],n=this,e=0;e<this._order.length;e++)!function(t){var e=l({},n._order[t]);Object.keys(e).forEach(function(t){t.startsWith("$")&&delete e[t]}),i.push(e)}(e);t=c.toDataDriver(t);if(t)return t.serialize(i)},d.prototype.getInitialData=function(){return this._initOrder},d.prototype.setMeta=function(t,e,i){var n;t&&((n=this._meta.get(t))||(n={},this._meta.set(t,n)),n[e]=i)},d.prototype.getMeta=function(t,e){t=this._meta.get(t);return t?t[e]:null},d.prototype.getMetaMap=function(t){return this._meta.get(t)},d.prototype.setRange=function(t,e){this._range=e?[t,e]:null},d.prototype.getRawData=function(t,e,i,n){if(i=i||this._order,1===n)return i;var o;if(this._range&&(t=this._range[0]+t,e=-1===e||t+(o=Math.abs(e-t))>this._range[1]?this._range[1]:t+o),!e||0===t&&(-1===e||e===i.length))return i;if(t>=i.length)return[];(-1===e||e>i.length)&&(e=i.length);i=i.slice(t,e);return 0!==i.filter(function(t){return t.$empty}).length&&this.events.fire(u.DataEvents.dataRequest,[t,e]),i},d.prototype._add=function(t,e){if(this.isDataLoaded()){e=this._addCore(t,e);return this._onChange("add",t.id,t),this.events.fire(u.DataEvents.afterAdd,[t]),e}c.dhxWarning("the method doesn't work with lazyLoad")},d.prototype._remove=function(t){if(this.isDataLoaded()){var e=this._pull[t];if(e){if(!this.events.fire(u.DataEvents.beforeRemove,[e]))return;this._removeCore(e.id),this._onChange("remove",t,e)}this.events.fire(u.DataEvents.afterRemove,[e])}else c.dhxWarning("the method doesn't work with lazyLoad")},d.prototype._copy=function(t,e,i,n,o){if(this.isDataLoaded()){if(!this.exists(t))return null;var r=p.uid();return(o&&(e=-1===e?-1:e+o),i)?i instanceof d||!n?i.exists(t)?(i.add(l(l({},c.copyWithoutInner(this.getItem(t))),{id:r}),e),r):(i.add(c.copyWithoutInner(this.getItem(t)),e),t):void i.add(c.copyWithoutInner(this.getItem(t)),e):(this.add(l(l({},c.copyWithoutInner(this.getItem(t))),{id:r}),e),r)}c.dhxWarning("the method doesn't work with lazyLoad")},d.prototype._move=function(t,e,i,n,o,r){if(this.isDataLoaded()){if(o&&(e=-1===e?-1:e+o),i&&i!==this&&this.exists(t)){var s=p.copy(this.getItem(t),!0);return r&&(s.id=r),(!r&&i.exists(t)||i.exists(r))&&(s.id=p.uid()),n&&(s.parent=n),i.add(s,e),this.remove(t),s.id}if(this.getIndex(t)===e)return null;s=this._order.splice(this.getIndex(t),1)[0];return-1===e&&(e=this._order.length),this._order.splice(e,0,s),this.events.fire(u.DataEvents.change,[t,"update",this.getItem(t)]),t}c.dhxWarning("the method doesn't work with lazyLoad")},d.prototype._addCore=function(t,e){var i;return this.config.init&&(t=this.config.init(t)),t.id=null!==(i=t.id)&&void 0!==i?i:p.uid(),this._pull[t.id]&&c.dhxError("Item "+t.id+" already exist"),this._initOrder&&!c.isTreeCollection(this)&&this._addToOrder(this._initOrder,t,e),this._addToOrder(this._order,t,e),t.id},d.prototype._removeCore=function(e){0<=this.getIndex(e)&&(this._order=this._order.filter(function(t){return t.id!==e}),delete this._pull[e]),this._initOrder&&this._initOrder.length&&(this._initOrder=this._initOrder.filter(function(t){return t.id!==e}),delete this._pull[e])},d.prototype._parse_data=function(t){var e=this._order.length;this.config.prep&&(t=this.config.prep(t));for(var i=0,n=t;i<n.length;i++){var o=n[i];this._addCore(o,e++)}},d.prototype._approximate=function(t,e,i){for(var n=t.length,o=e.length,r=Math.floor(n/i),s=Array(Math.ceil(n/r)),a=0,l=0;l<n;l+=r){for(var c=p.copy(t[l]),u=Math.min(n,l+r),d=0;d<o;d++){for(var h=0,f=l;f<u;f++)h+=t[f][e[d]];c[e[d]]=h/(u-l)}s[a++]=c}return s},d.prototype._onChange=function(t,e,i){for(var n=0,o=0,r=this._changes.order;o<r.length;o++){var s=r[o],a=this._changes.order.indexOf(s);if(s.id===e&&!s.saving&&(n+=1,a===this._changes.order.length-1||this._changes.order[a+1].id!==e))return s.error&&(s.error=!1),s=l(l({},s),{obj:i,status:t}),10<(n+=1)?this._changes.order.splice(a,n-10,s):this._changes.order.splice(a+1,0,s),this._loader.updateChanges(this._changes),"remove"===t&&i.$emptyRow?void 0:void this.events.fire(u.DataEvents.change,[e,t,i])}this._changes.order.push({id:e,status:t,obj:l({},i),saving:!1}),this._loader.updateChanges(this._changes),this.events.fire(u.DataEvents.change,[e,t,i])},d.prototype._addToOrder=function(t,e,i){0<=i&&t[i]?(this._pull[e.id]=e,t.splice(i,0,e)):(this._pull[e.id]=e,t.push(e))},d.prototype._applySorters=function(t){this._sort.sort(this._order,t,this._sorter),this._initOrder&&this._initOrder.length&&this._sort.sort(this._initOrder,t,this._sorter)},d.prototype._applyFilters=function(t){var e;t&&(e="function"!=typeof t?this._getRuleCallback(t):t,t=this._order.filter(function(t){return e(t)}),this._initOrder||(this._initOrder=this._order),this._order=t)},d.prototype._reapplyFilters=function(t){void 0===t&&(t=!1);var e=this.getFilters({permanent:!0});e&&this.filter(e,{$restore:!0,add:!0},!0),t&&this._sorter&&this._applySorters()},d.prototype._getRuleCallback=function(e){if(p.isDefined(e.by)&&p.isDefined(e.match))return e.compare?function(t){return e.compare(t[e.by],e.match,t,e.multi)}:function(t){return t[e.by]==e.match}},d.prototype._getPureFilters=function(n){return Object.keys(n).reduce(function(t,e){var i;return null!==(i=n[e].config)&&void 0!==i&&i.$local||(t[e]=n[e]),t},{})},d.prototype._normalizeFilters=function(t){var e,i=[];for(e in t){var n=t[e].rule;if("function"!=typeof n)if(p.isDefined(n.by))i.push(this._getRuleCallback(n));else for(var o in n)i.push(this._getRuleCallback(n[o]));else i.push(n)}return l({},i)},d);function d(t,e){var n=this;this._filters={},this._changes={order:[]},this.config=t||{},this._sort=new s.Sort,this._loader=new r.Loader(this,this._changes),this.events=e||new o.EventSystem(this),this.events.on(u.DataEvents.dataRequest,function(t,e){var i=n.dataProxy;i&&i.updateUrl&&(i.updateUrl(null,{from:t,limit:i.config.limit||e-t}),n.load(i))}),this.events.on(u.DataEvents.loadError,function(t){setTimeout(function(){"string"!=typeof t?c.dhxError(t):c.dhxWarning(t)},0)}),this._reset()}e.DataCollection=i},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(63),r=i(64),i=i(122);e.dataDrivers={json:o.JsonDriver,csv:r.CsvDriver},e.dataDriversPro=n(n({},e.dataDrivers),{xml:i.XMLDriver})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(o.prototype.toJsonArray=function(t){return this.getRows(t)},o.prototype.serialize=function(t){return t},o.prototype.getFields=function(t){return t},o.prototype.getRows=function(t){return"string"==typeof t?JSON.parse(t):t},o);function o(){}e.JsonDriver=n},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=(r.prototype.getFields=function(t,e){for(var i=new RegExp('(?<!")'+this.config.columnDelimiter+'(?!")'),n=t.trim().split(i),o={},r=0;r<n.length;r++)o[e?e[r]:r+1]=isNaN(Number(n[r]))?n[r].replace(/"[,;"]"/gi,function(t){return t.split("").splice(1,1).slice(-1,1).join("")}):parseFloat(n[r]);return o},r.prototype.getRows=function(t){return t.trim().split(this.config.rowDelimiter)},r.prototype.toJsonArray=function(t){var e=this,i=this.getRows(t),n=this.config.names;return this.config.skipHeader&&(t=i.splice(0,this.config.skipHeader),this.config.nameByHeader&&(n=t[0].trim().split(this.config.columnDelimiter))),i.map(function(t){return e.getFields(t,n)})},r.prototype.serialize=function(t,e){var i=t[0]?Object.keys(t[0]).filter(function(t){return!t.startsWith("$")}).join(this.config.columnDelimiter)+this.config.columnDelimiter+this.config.rowDelimiter:"",t=this._serialize(t);return e?t:i+t},r.prototype._serialize=function(t){var o=this;return t.reduce(function(t,n){var e=Object.keys(n).reduce(function(t,e,i){return e.startsWith("$")||"items"===e?t:""+t+n[e].replaceAll(/[,;"]/gi,function(t){return'"'+t+'"'})+(i===n.length-1?"":o.config.columnDelimiter)},"");return n.items?t+(t?"\n":"")+e+o._serialize(n.items):""+t+(t?o.config.rowDelimiter:"")+e},"")},r);function r(t){this.config=n(n({},{skipHeader:0,nameByHeader:!1,rowDelimiter:"\n",columnDelimiter:","}),t),this.config.nameByHeader&&(this.config.skipHeader=1)}e.CsvDriver=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),v=this&&this.__assign||function(){return(v=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var i={};for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(i[o[n]]=t[o[n]]);return i},_=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var r,l=i(0),a=i(2),c=i(3),p=i(1),u=i(13),d=i(5),h=i(8),f=i(127),m=i(18),g=i(32),y=i(15),b=i(131),w=i(9),x=i(20),E=i(16),C=i(154),S=i(158),k=i(159),I=i(19),O=i(27),o=(r=d.View,o(P,r),P.prototype.destructor=function(){this._destructed=!0,this._destroyContent(),this.keyManager&&this.keyManager.destructor(),this.events&&this.events.clear(),this._events&&this._events.clear(),this.export=this.content=this.selection=null,this._activeFilters=this._filterData=this._scroll=this._touch=this._htmlEvents=this._hiddenFilters=null,this.unmount()},P.prototype.setColumns=function(t){var e=this;this.config.columns=t,this._parseColumns(!0),this._adjustColumns(),this._checkFilters(),this._checkMarks(),this.paint(),this.config.keyNavigation&&l.awaitRedraw().then(function(){e._initHotKey(!0),e.paint()})},P.prototype.addRowCss=function(t,e){var i=this.data.getItem(t),t=i.$css||"";t.match(new RegExp(e,"g"))||(i.$css=t+" "+e,this.paint())},P.prototype.removeRowCss=function(t,e){t=this.data.getItem(t),e=t.$css?t.$css.replace(e,""):"";t.$css=e,this.paint()},P.prototype.addCellCss=function(t,e,i){var n=this.getColumn(e),o=this.config.spans?this.getSpan(t,e):null;(o||n)&&((e=o?o.css:n.$cellCss[t])?(e=e.match(new RegExp(i,"g"))?"":" "+i,o?o.css+=e:n.$cellCss[t]+=e):this.data.getItem(t)&&(o?o.css=i+" ":n.$cellCss[t]=i+" "),this.paint())},P.prototype.removeCellCss=function(t,e,i){e=this.getColumn(e);e&&(e.$cellCss[t]?(e.$cellCss[t]=e.$cellCss[t].replace(i,""),this.paint()):this.data.getItem(t)&&(e.$cellCss[t]=""))},P.prototype.showColumn=function(t){var e=this.getColumn(t);e&&e.hidden&&this.events.fire(w.GridEvents.beforeColumnShow,[e])&&(e.hidden=!1,this.config.$totalWidth+=e.$width,(t=this._hiddenFilters&&this._hiddenFilters[e.id])&&(this._activeFilters[e.id]=t,delete this._hiddenFilters[e.id],this._checkFilters(),this._checkSelectFilterValue()),this.paint(),this.events.fire(w.GridEvents.afterColumnShow,[e]))},P.prototype.hideColumn=function(t){var e=this.getColumn(t);e&&!e.hidden&&this.events.fire(w.GridEvents.beforeColumnHide,[e])&&(e.hidden=!0,this.config.$totalWidth-=e.$width,(t=this._activeFilters&&this._activeFilters[e.id])&&(this._hiddenFilters||(this._hiddenFilters={}),this._hiddenFilters[e.id]=t,delete this._activeFilters[e.id],this._checkFilters()),this.paint(),this.events.fire(w.GridEvents.afterColumnHide,[e]))},P.prototype.isColumnHidden=function(t){t=this.getColumn(t);if(t)return!!t.hidden},P.prototype.showRow=function(t){var e;p.isDefined(t)&&(e=t.toString(),(t=this.data.getItem(e))&&t.hidden&&this.events.fire(w.GridEvents.beforeRowShow,[t])&&(this.data.update(e,{hidden:!1}),this._checkFilters(!0),this.paint(),this.events.fire(w.GridEvents.afterRowShow,[t])))},P.prototype.hideRow=function(t){var e;p.isDefined(t)&&(e=t.toString(),(t=this.data.getItem(e))&&this.events.fire(w.GridEvents.beforeRowHide,[t])&&(this.data.update(e,{hidden:!0}),this._checkFilters(!0),this._checkSelectFilterValue(),this.paint(),this.events.fire(w.GridEvents.afterRowHide,[t])))},P.prototype.isRowHidden=function(t){if(p.isDefined(t)){t=this.data.getItem(t.toString());return t?!!t.hidden:void 0}},P.prototype.getScrollState=function(){return{x:this._scroll.left,y:this._scroll.top}},P.prototype.scroll=function(t,e){var i=this.getRootView().refs.grid_body.el.querySelector(".scroll-view")||this.getRootView().refs.grid_body.el;i.scrollLeft=!t&&0!==t||"number"!=typeof t?i.scrollLeft:t,i.scrollTop=!e&&0!==e||"number"!=typeof e?i.scrollTop:e,this.paint()},P.prototype.scrollTo=function(e,i){var t=this.selection.getCell(),n=this.config.columns.filter(function(t){return!t.hidden}),o=p.findIndex(n,function(t){return t.id==i}),r=t?t.column:this.config.columns[0],s=p.findIndex(n,function(t){return t.id==r.id}),a=this.config.leftSplit?y.getTotalWidth(n.slice(0,this.config.leftSplit)):0,l=y.getTotalWidth(n.slice(0,o))-(o-s<0?a:0),c=this.data.getRawData(0,-1),u=p.findIndex(c,function(t){return t.id==e}),d=y.getTotalHeight(c.slice(0,u)),h=this.getScrollState(),f=this.config.$width+h.x,t=this.config.$height+h.y-this.config.headerRowHeight*this.config.$headerLevel,s=d-h.y-c[u].$height,a=l-h.x-n[o].$width,t=d+2*c[u].$height+18-t,f=l+2*n[o].$width+18-f,t=0<s&&t<0?0:s<0?s:t,f=0<a&&f<0?0:a<0?a:f;this.scroll(f+h.x,t+h.y)},P.prototype.adjustColumnWidth=function(e,t){void 0===t&&(t=!0);var i=this.config.columns.filter(function(t){return!t.hidden}),n=i.filter(function(t){return t.id===e}),r=this._adjustColumnsWidth({rows:this.config.data,cols:n,totalCols:i,adjust:t});this.config.$totalWidth=i.reduce(function(t,e){var i,n,o;return r[e.id]&&(e.$fixed=!0,i=e.maxWidth,n=e.minWidth,o=r[e.id],e.$width=o,i&&i<o&&(e.$width=i),n&&e.$width<n&&(e.$width=n)),t+e.$width},0),this.paint()},P.prototype.getCellRect=function(e,i){var t=this.config.columns.filter(function(t){return!t.hidden}),n=this.data.getRawData(0,-1),o=this.getSpan(e,i),r=p.findIndex(t,function(t){return t.id==(o?o.column:i)}),s=p.findIndex(n,function(t){return t.id==(o?o.row:e)});return{x:y.getTotalWidth(t.slice(0,r)),y:y.getTotalHeight(n.slice(0,s)),height:null!=o&&o.rowspan?g.getHeight(n,o.rowspan,s):n[s]?n[s].$height:0,width:null!=o&&o.colspan?g.getWidth(this.config.columns,o.colspan,p.findIndex(this.config.columns,function(t){return t.id===o.column})):t[r]?t[r].$width:0}},P.prototype.getColumn=function(t){for(var e,i=0,n=null===(e=this.config)||void 0===e?void 0:e.columns;i<n.length;i++){var o=n[i];if(o.id==t)return o}},P.prototype.addSpan=function(e){this.config.spans=this.config.spans||[];var t=p.findIndex(this.config.spans,function(t){return""+t.row==""+e.row&&""+t.column==""+e.column});0<=t?this.config.spans[t]=e:(this.config.spans.push(O.normalizeSpan(e,this.config)),this._checkMarks(),this.paint())},P.prototype.getSpan=function(t,e){var r=this;if(this.config.spans){var s=this.data.getIndex(t.toString()),a=this.config.columns.findIndex(function(t){return t.id===e}),i=p.findIndex(this.config.spans,function(e){var t=r.data.getIndex(e.row.toString()),i=r.config.columns.findIndex(function(t){return t.id===e.column}),n=e.rowspan?t+e.rowspan:t+1,o=e.colspan?i+e.colspan:i+1;return t<=s&&s<n&&i<=a&&a<o});return null===(t=this.config)||void 0===t?void 0:t.spans[i]}},P.prototype.removeSpan=function(e,i){var t;this.config.spans&&(t=p.findIndex(this.config.spans,function(t){return""+t.row==""+e&&""+t.column==""+i}),this.config.spans.splice(t,1),this.paint())},P.prototype.editCell=function(t,e,i){var n,o,r=this.data.getItem(t),s=this.getColumn(e);r&&s?(n=s.editorType,o=this.getSpan(r.id,s.id),i||("date"===s.type&&(i="datePicker"),"boolean"===s.type&&(i="checkbox"),n&&(i=n),p.isDefined(null==o?void 0:o.text)&&(i=this.config.autoHeight?"textarea":"input")),this.events.fire(w.GridEvents.beforeEditStart,[r,s,i])&&(null!==(n=this.config.$editable)&&void 0!==n&&n.editor||this.config.$editable&&this.config.$editable.row===t&&this.config.$editable.col===e&&this.config.$editable.editorType===i||(this.config.$editable={row:r.id,col:s.id,isSpan:!!o,editorType:i},this.selection.config.disabled||this.selection.setCell(t.toString(),e.toString()),this.paint(),this.events.fire(w.GridEvents.afterEditStart,[r,s,i])))):h.dhxWarning("item not found")},P.prototype.editEnd=function(t){this.config.$editable&&this.config.$editable.editor&&this.config.$editable.editor.endEdit(t)},P.prototype.getSortingState=function(){return{dir:this._sortDir,by:this._sortBy}},P.prototype.getHeaderFilter=function(e){var i=this,t=this.getColumn(e);if(t){var n=null;return t.header.forEach(function(t){t.content&&(n=i.content[t.content].element[e])}),n}},P.prototype.edit=function(t,e,i){this.editCell(t,e,i)},P.prototype.paint=function(){var t=this.config.hotkeys?Object.keys(this.config.hotkeys).length:0;!this.keyManager||this.keyManager.getKeyStorageLength()-t||this._initHotKey(!0),r.prototype.paint.call(this)},P.prototype._createView=function(){var i=this;return l.create({render:function(t,e){return i._destructed?l.el("div"):x.render(t,e,i._htmlEvents,i.selection,i._uid)},hooks:this._initHooks()},this)},P.prototype._parseColumns=function(t){void 0===t&&(t=!1),m.normalizeColumns(this.config,t);t=this.config.columns.filter(function(t){return!t.hidden});m.countColumns(this.config,t)},P.prototype._parseData=function(){this.config.data=this.data.map(function(t){return t}),this.config.data=this._prepareData(this.data),this._detectColsTypes(),this._checkMarks(),this.data.filter(function(t){return!t.hidden},{$local:!0,permanent:!0},!0),this._checkFilters(),this._render()},P.prototype._createCollection=function(t){this.data=new h.DataCollection({prep:t},this.events)},P.prototype._getRowIndex=function(t){return this.data.getIndex(t)},P.prototype._setEventHandlers=function(){function r(t){var e=t.source,i=t.target,n=s(t,["source","target"]);null!=e&&e.length&&e.map(function(t){return g.data.exists(t)&&g.data.update(t,n)}),g.data.exists(i)&&g.data.update(i,n)}var g=this;this.data.events.on(h.DataEvents.load,function(){g.data.filter(function(t){return t},{$local:!0},!0),g._parseData(),g.config.data instanceof h.DataCollection?l.awaitRedraw().then(function(){return g._normalizeSpans()}):g._normalizeSpans()}),this.data.events.on(h.DataEvents.change,function(e,t,i){if("setPage"!==t){if("sort"===t?(i.dir?g._sortDir=i.dir:g._sortBy===i.by?g._sortDir="asc"===g._sortDir?"desc":"asc":g._sortDir="asc",g._sortBy=i.by):"add"===t||"update"===t||"remove"===t?(!p.isId(e)||"remove"!==t||(n=g.selection.getCells().find(function(t){return t.row.id===e}))&&g.selection.removeCell(n.row.id,n.column.id),g.config.data=g._prepareData(g.data)):(h.isTreeCollection(g.data)&&(g.config.data=g._prepareData(g.data)),g._adjustColumns()),p.isId(e)&&(g._checkFilters(),g._checkSelectFilterValue()),g._detectColsTypes(),g._removeMarks(),g._checkMarks(),g.config.autoEmptyRow&&(!g._activeFilters||p.isEmptyObj(g._activeFilters))){var n=g.data.find({by:"$emptyRow",match:!0});if(n){if(n.id===e)return;g.data.move(n.id,g.data.getLength()-1)}else g._addEmptyRow()}g._render()}else l.awaitRedraw().then(function(){var t=g.config.columns.find(function(t){return!0!==t.hidden});g.scrollTo(g.data.getId(i[0]).toString(),t.id.toString()),g._render()})}),this.data.events.on(h.DataEvents.filter,function(t){t||g.data.getRawFilters({permanent:!0})||g.data.filter(function(t){return!t.hidden},{$local:!0,permanent:!0},!0),!t||h.isOnlyPermanentFilters(t)?(g._filterData=g.data.map(function(t){return t})||[],g._setUniqueData(),g._clearFilterValue()):g._checkFilters(),g.paint()}),this.data.events.on(h.DataEvents.removeAll,function(){g._hiddenFilters={},g.config.columns.map(function(e){e.header.map(function(t){!t.content||"selectFilter"!==t.content&&"comboFilter"!==t.content||(e.$uniqueData=[])})}),p.isEmptyObj(g._activeFilters)||g.data.resetFilter(),g._clearFilterValue(!0)}),this.events.on(h.DragEvents.beforeDrag,function(t,e){return g.data.getItem(t.start)?g.events.fire(w.GridEvents.beforeRowDrag,[t,e]):"column"===g.config.dragItem||"both"===g.config.dragItem?g.events.fire(w.GridEvents.beforeColumnDrag,[t,e]):void 0}),this.events.on(h.DragEvents.dragStart,function(t,e){var i=t.source,n=t.target,o=t.start;r({source:i,target:n,$dragtarget:!0}),g.data.getItem(o)?(g.events.fire(w.GridEvents.dragRowStart,[t,e]),g._autoScroll("vertical")):"column"!==g.config.dragItem&&"both"!==g.config.dragItem||(g.events.fire(w.GridEvents.dragColumnStart,[t,e]),g._autoScroll("horizontal"))}),this.events.on(h.DragEvents.dragIn,function(t,e){g.data.getItem(t.start)?g.events.fire(w.GridEvents.dragRowIn,[t,e]):"column"!==g.config.dragItem&&"both"!==g.config.dragItem||g.events.fire(w.GridEvents.dragColumnIn,[t,e])}),this.events.on(h.DragEvents.dragOut,function(t,e){g.data.getItem(t.start)?g.events.fire(w.GridEvents.dragRowOut,[t,e]):"column"!==g.config.dragItem&&"both"!==g.config.dragItem||g.events.fire(w.GridEvents.dragColumnOut,[t,e])}),this.events.on(h.DragEvents.canDrop,function(t,e){var i=t.source,n=t.target,o=t.dragItem;delete t.dragItem,r({source:i,target:n,$drophere:!0}),"row"===o?g.events.fire(w.GridEvents.canRowDrop,[t,e]):"column"!==g.config.dragItem&&"both"!==g.config.dragItem||g.events.fire(w.GridEvents.canColumnDrop,[t,e])}),this.events.on(h.DragEvents.cancelDrop,function(t,e){var i=t.source,n=t.target,o=t.start;r({source:i,target:n,$drophere:void 0,$dragtarget:void 0}),g.data.getItem(o)?g.events.fire(w.GridEvents.cancelRowDrop,[t,e]):"column"!==g.config.dragItem&&"both"!==g.config.dragItem||g.events.fire(w.GridEvents.cancelColumnDrop,[t,e])}),this.events.on(h.DragEvents.beforeDrop,function(t,e){return"row"!==g.config.dragItem||"both"!==g.config.dragMode&&"target"!==g.config.dragMode?"column"===g.config.dragItem||"both"===g.config.dragItem?g.events.fire(w.GridEvents.beforeColumnDrop,[t,e]):void 0:g.events.fire(w.GridEvents.beforeRowDrop,[t,e])}),this.events.on(h.DragEvents.afterDrop,function(e,t){var i,n;if(g.data.getItem(e.start)){var o=e.source;if(!o.some(function(t){return t==e.target})){for(var r=g.data.getItem(e.start),s=0,a=g.config.columns;s<a.length;s++){var l=a[s];void 0===r[l.id]&&g.data.update(r.id,((i={})[l.id]=null,i),!0)}var c=g.data.getInitialData(),u=null==c?void 0:c.findIndex(function(t){return t.id==e.start}),d=null==c?void 0:c.findIndex(function(t){return t.id==e.target});if(-1<u&&-1<d)if(1<(null===(n=e.source)||void 0===n?void 0:n.length)){for(var h=[],f=0,p=o;f<p.length;f++)!function(e){var t=null==c?void 0:c.findIndex(function(t){return t.id==e}),t=null==c?void 0:c.splice(t,1)[0];h.push(t)}(p[f]);0<(d=null==c?void 0:c.findIndex(function(t){return t.id==e.target}))&&++d,null!=c&&c.splice.apply(c,_([d,0],h))}else null!=c&&c.splice(d,0,null==c?void 0:c.splice(u,1)[0]);g.config.data=g._prepareData(c||g.data.map(function(t){return t})),g.data.parse(g.config.data),g._checkFilters(),g.paint(),g.events.fire(w.GridEvents.afterRowDrop,[e,t])}}else"column"!==g.config.dragItem&&"both"!==g.config.dragItem||g.events.fire(w.GridEvents.afterColumnDrop,[e,t])}),this.events.on(h.DragEvents.afterDrag,function(t,e){var i=t.source,n=t.target,o=t.start;r({source:i,target:n,$dragtarget:void 0}),g.data.getItem(o)?g.events.fire(w.GridEvents.afterRowDrag,[t,e]):"column"!==g.config.dragItem&&"both"!==g.config.dragItem||g.events.fire(w.GridEvents.afterColumnDrag,[t,e]),g.config.data=g._prepareData(g.data instanceof Array?g.data.map(function(t){return t}):g.data.getInitialData()||g.data),g.data.parse(g.config.data)}),this.events.on(w.GridEvents.cellMouseDown,function(t,e,i){i.targetTouches?(g._touch.timer=setTimeout(function(){g._dragStart(i)},g._touch.duration),g._touch.timeStamp?(g._touch.dblDuration>=g._touch.timeStamp-+i.timeStamp.toFixed()&&((!1!==e.editable&&g.config.editable||e.editable)&&g.editCell(t.id,e.id,e.editorType),i.preventDefault(),g.events.fire(w.GridEvents.cellDblClick,[t,e,i])),g._touch.timeStamp=null):g._touch.timeStamp=+i.timeStamp.toFixed(),setTimeout(function(){g._touch.timeStamp=null},g._touch.dblDuration)):g._dragStart(i)}),this._events.on(w.GridSystemEvents.cellTouchMove,function(t,e,i){g._touch.start&&i.preventDefault(),g._clearTouchTimer()}),this._events.on(w.GridSystemEvents.cellTouchEnd,function(){g._touch.start=!1,g._clearTouchTimer()}),this.events.on(w.GridEvents.filterChange,function(e,t,o,i){var n,r,s,a,l,c;g.events.fire(w.GridEvents.beforeFilter,[e,t])&&(!g.config.autoEmptyRow||(n=g.data.find({by:"$emptyRow",match:!0}))&&g.data.remove(n.id),g._activeFilters||(g._activeFilters={}),s=(r=g.getColumn(t)).header.filter(function(t){return t.content===o&&void 0!==t.customFilter})[0],"comboFilter"===o&&void 0!==e||"comboFilter"!==o&&""!==e?(a=m.getEditorOptions(r),"combobox"!==r.editorType&&"select"!==r.editorType&&"multiselect"!==r.editorType||!a||(e=Array.isArray(e)?e.map(function(e){var t;return(null===(t=a.find(function(t){return"string"==typeof t?t===e:t.value===e}))||void 0===t?void 0:t.id)||e}):null!==(n=null===(n=a.find(function(t){return"string"==typeof t?t===e:t.value===e}))||void 0===n?void 0:n.id)&&void 0!==n?n:e),g._activeFilters[t]={by:t,match:e,compare:null!==(s=null==s?void 0:s.customFilter)&&void 0!==s?s:(l=t,c=g.getColumn(l),function(t,e,i,n){return g.content[o].match({val:t,match:e,obj:i,multi:n,col:c})}),multi:"multiselect"===(null==r?void 0:r.editorType)}):delete g._activeFilters[t],i||g.data.filter(g._activeFilters))}),this.events.on(w.GridEvents.scroll,function(t){g._scroll={top:t.y,left:t.x},g.editEnd(),g.paint()}),this.events.on(w.GridEvents.cellDblClick,function(t,e,i){c.locateNodeByClassName(i,"dhx_boolean-cell")||t.hasOwnProperty("$groupName")||(!1!==e.editable&&g.config.editable||e.editable)&&g.editCell(t.id,e.id,e.editorType)}),this.events.on(w.GridEvents.afterEditEnd,function(t,e,i){var n,o;null!==(n=g.config.$editable)&&void 0!==n&&n.editor&&(g.config.$editable.col!==i.id||g.config.$editable.row!==e.id)||(e=g.config.$editable?(o=g.config.$editable.row,g.config.$editable.col):(o=e.id,i.id),i=g.getSpan(o,e),p.isDefined(null==i?void 0:i.text)&&void 0!==t?i.text=t.toString():(delete(i=g.data.getItem(o)).$emptyRow,void 0!==t&&g.data.update(o,v(v({},i),((i={})[e]=t,i)))),g.config.$editable=null,g.paint())}),this.events.on(w.GridEvents.headerCellMouseDown,function(t,e){var i=e.target.getAttribute("dhx_resized");i&&g.events.fire(w.GridEvents.beforeResizeStart,[t,e])&&S.startResize(g,i.toString(),e,function(){g.paint(),g.config.$resizing=null,g.events.fire(w.GridEvents.afterResizeEnd,[t,e])}),e.targetTouches&&(g._touch.timeStamp?(g._touch.dblDuration>=g._touch.timeStamp-+e.timeStamp.toFixed()&&(e.preventDefault(),g.events.fire(w.GridEvents.headerCellDblClick,[t,e])),g._touch.timeStamp=null):g._touch.timeStamp=+e.timeStamp.toFixed(),setTimeout(function(){g._touch.timeStamp=null},g._touch.dblDuration))}),this.events.on(w.GridEvents.footerCellDblClick,function(t,e){e.targetTouches&&(g._touch.timeStamp?(g._touch.dblDuration>=g._touch.timeStamp-+e.timeStamp.toFixed()&&(e.preventDefault(),g.events.fire(w.GridEvents.footerCellDblClick,[t,e])),g._touch.timeStamp=null):g._touch.timeStamp=+e.timeStamp.toFixed(),setTimeout(function(){g._touch.timeStamp=null},g._touch.dblDuration))}),this.events.on(w.GridEvents.resize,function(){g._parseColumns(),g._setUniqueData(!0)}),this.events.on(w.GridEvents.afterResizeEnd,function(e){var t;g.config.columns=null===(t=g.config.columns)||void 0===t?void 0:t.map(function(t){return t.id==e.id&&(t.width=e.$width),t}),g._parseColumns(),g._setUniqueData(!0)})},P.prototype._addEmptyRow=function(){var t=this.data.getId(this.data.getLength()-1),e=this.data.getItem(t),t=this.config.columns.filter(function(t){return!t.hidden});y.isRowEmpty(e)||this.data.add(t.reduce(function(t,e){return t[e.id]="",t},{$emptyRow:!0}))},P.prototype._sort=function(i,t,e){var n=this;t=t||(this._sortBy===i&&"asc"===this._sortDir?"desc":"asc");this.data.sort({by:i,dir:t,as:null!=e?e:function(t){var e=n.getColumn(i);return t&&"date"===e.type?("string"==typeof t?E.stringToDate(t,e.format):t).getTime():t?""+t:""}}),this.events.fire(w.GridEvents.afterSort,[this.getColumn(i),t])},P.prototype._clearTouchTimer=function(){this._touch.timer&&(clearTimeout(this._touch.timer),this._touch.timer=null)},P.prototype._checkFilters=function(t){void 0===t&&(t=!1),p.isEmptyObj(this._activeFilters)?(t&&this.data.resetFilter(),this._filterData=this.data.map(function(t){return t})||[],this._setUniqueData()):(t=this.data.getRawFilters({permanent:!0}),this.data.filter(t,{$restore:!0},!0),this._filterData=this.data.map(function(t){return t})||[],this._setUniqueData(),this.data.filter(null,{$restore:!0},!0),this._filterData=this.data.map(function(t){return t})||[],this._setUniqueData(!0))},P.prototype._setUniqueData=function(o){var r=this;void 0===o&&(o=!1),this._filterData&&this.config.columns.forEach(function(n){n.header.forEach(function(t){var e,i;!t.content||"selectFilter"!==t.content&&"comboFilter"!==t.content||(e=n.header.some(function(t){return null===(t=t.filterConfig)||void 0===t?void 0:t.multiselection}),t=null===(t=r._activeFilters)||void 0===t?void 0:t[n.id],o&&!e&&t?n.$uniqueData=[t.match]:o&&(!o||e)||(e=m.getUnique(r._filterData,n.id,e),i=m.getEditorOptions(n),"combobox"!==n.editorType&&"select"!==n.editorType&&"multiselect"!==n.editorType||!i||(e=e.map(function(e){var t=i.find(function(t){return"string"==typeof t?e===t:e===t.id});return t&&"string"!=typeof t?t.value:e})),e="string"!==n.type?Array.from(new Set(e.map(function(t){return m.toFormat(t,n.type,n.format)}))):e,n.$uniqueData=e))})})},P.prototype._checkSelectFilterValue=function(){var t,e=null===(t=this.content)||void 0===t?void 0:t.selectFilter;if(e)for(var i in e.value){var n=this.getColumn(i),o=e.value[i];n.hidden||!o||n.$uniqueData.includes(o)||e.element[i].clear()}},P.prototype._clearFilterValue=function(i){var n=this;void 0===i&&(i=!1),["selectFilter","inputFilter"].map(function(t){var e;return null===(e=n.content)||void 0===e?void 0:e[t]}).filter(function(t){return t}).forEach(function(t){for(var e in t.value)!t.value[e]||!i&&n.getColumn(e).hidden||t.element[e].clear(!0)})},P.prototype._adjustColumns=function(){var t,r,e,i=this;"boolean"==typeof this.config.adjust||"data"===this.config.adjust||"header"===this.config.adjust||"footer"===this.config.adjust?(e=this.config.columns.filter(function(t){return!t.hidden})).length&&(t=this.config.data&&this.config.data.length?this.config.data:this.data.map(function(t){return t}),r=this._adjustColumnsWidth({rows:t,cols:e,totalCols:e}),this.config.$totalWidth=e.reduce(function(t,e){e.$fixed=!0;var i=e.maxWidth,n=e.minWidth,o=r[e.id];return e.$width=o,i&&i<o&&(e.$width=i),n&&e.$width<n&&(e.$width=n),t+e.$width},0)):(e=this.config.columns.filter(function(t){return!t.hidden&&t.adjust})).length&&e.forEach(function(t){i.adjustColumnWidth(t.id,t.adjust)})},P.prototype._prepareData=function(t){var e=this;return this.config.autoHeight&&(this.config.autoHeight=!1),this._adjustColumns(),t.map(function(t){return t.$height=t.height||e.config.rowHeight,t})},P.prototype._adjustColumnsWidth=function(t){var e=t.rows,i=t.cols,t=t.adjust,t=void 0===t?this.config.adjust:t,n={};if("header"===t||!0===t){var o=i.filter(function(t){return t.header});if(u=m.getMaxColsWidth(this._prepareColumnData(o,"header"),o,{font:"bold 14.4px Arial"},"header"))for(var r=0,s=Object.entries(u);r<s.length;r++)var a=s[r],l=a[0],c=a[1],n=Object.assign(n,((a={})[l]=+c+(y.isSortable(this.config,this.getColumn(l))?36:16),a))}if("footer"===t||!0===t){var u,o=i.filter(function(t){return t.footer});if(u=m.getMaxColsWidth(this._prepareColumnData(o,"footer"),o,{font:"bold 14.4px Arial"},"footer"))for(var d=0,h=Object.entries(u);d<h.length;d++){var f=h[d],l=f[0],c=f[1];(n[l]&&n[l]<+c+16||!n[l])&&(n=Object.assign(n,((f={})[l]=+c+16,f)))}}if(("data"===t||!0===t)&&(u=m.getMaxColsWidth(e,i,{font:"normal 14.4px Arial"},"data")))for(var p=0,g=Object.entries(u);p<g.length;p++){var v=g[p],l=v[0],c=v[1];(n[l]&&n[l]<+c+16||!n[l])&&(n=Object.assign(n,((v={})[l]=+c+16,v)))}return n},P.prototype._prepareColumnData=function(t,e){for(var i,n,o=[],r=0;r<t.length;r++){for(var s=[],a=0;a<(null===(i=t[r])||void 0===i?void 0:i[e].length);a++){var l,c={};null!==(i=null===(i=t[r])||void 0===i?void 0:i[e][a])&&void 0!==i&&i.text?(c[t[r].id]=(null===(n=null===(n=t[r])||void 0===n?void 0:n[e][a])||void 0===n?void 0:n.text)||"",s.push(c)):null!==(n=null===(n=t[r])||void 0===n?void 0:n[e][a])&&void 0!==n&&n.content&&("function"==typeof(l=null===(n=this.content)||void 0===n?void 0:n[null===(l=null===(l=t[r])||void 0===l?void 0:l[e][a])||void 0===l?void 0:l.content]).calculate?c[t[r].id]=(null==l?void 0:l.toHtml(this.getColumn(t[r].id),this.config))||"":c[t[r].id]="",s.push(c))}for(var u=0;u<s.length;u++)for(var d=0,h=Object.entries(s[u]);d<h.length;d++){var f=h[d],p=f[0],g=f[1];o[u]=v({},o[u])||{},o[u]=Object.assign(o[u],((f={})[p]=g,f))}}return o},P.prototype._dragStart=function(t){if(this.config.dragMode&&("row"===this.config.dragItem||"both"===this.config.dragItem)&&!this.config.$editable){var e=this.getColumn(t.target.getAttribute("data-dhx-col-id"));if(!1!==(null==e?void 0:e.draggable)){e=c.locateNode(t,"data-dhx-id"),e=e&&e.getAttribute("data-dhx-id");return t.targetTouches&&(this._touch.start=!0),h.dragManager.onMouseDown(t,[e],[this._getRowGhost([e])])}}},P.prototype._getRowGhost=function(t){var e=this._container||c.toNode(this._uid),t=t.map(function(t){return e.querySelector('.dhx_grid-row[data-dhx-id="'+t+'"]')}),i=document.createElement("div");return t.forEach(function(t){return t&&i.appendChild(t.cloneNode(!0))}),i},P.prototype._initHooks=function(){var i=this;return{didMount:function(){var t,e;i._canDataParse(!0)&&(i._container||(e=i.getRootView().node.parent.el,t=x.getElementSizes(e),e=null===(e=i.scrollView)||void 0===e?void 0:e.config.enable,x.applyAutoWidth(i.config,t,!0,!1,e)),i.data.parse(i.config.data))}}},P.prototype._canDataParse=function(t){var e;return void 0===t&&(t=!1),!!(null!==(e=this.config.data)&&void 0!==e&&e.length&&this.config.data instanceof Array&&this.config.columns)&&(this.config.autoWidth&&this.config.autoHeight?t:!t)},P.prototype._init=function(){this.events=new a.EventSystem(this),this._events=new a.EventSystem(this),this._attachDataCollection(),this.export=new f.Exporter("grid",this.version,this),this._setEventHandlers()},P.prototype._attachDataCollection=function(){var e=this;if(this.config.data instanceof h.DataCollection)return this.data=this.config.data,this.data.config.collapsed=this.config.collapsed,void(this.config.data=this.data.serialize());this._createCollection(function(t){return t.spans&&(e.config.spans=t.spans,t=t.data),t})},P.prototype._setMarks=function(o,r){for(var t=this.data.map(function(t){return{id:t.id,data:t[o.id],row:t}}),s=this.data.map(function(t){return t[o.id]}),a=this,e=0,i=t;e<i.length;e++)!function(t){var e,i,n=r(t.data,s,t.row,o);n&&(o.$cellCss=o.$cellCss||{},e=(o.$cellCss[t.id]||"").split(" "),n.split(" ").map(function(t){e.includes(t)||e.push(t)}),i=e.join(" "),n=a.getSpan(t.id,o.id),o.$cellCss[t.id]=i,n&&(n.rowspan||n.colspan&&n.column===o.id)&&n.$markCss!==i&&(n.$markCss=i))}(i[e])},P.prototype._checkMarks=function(){var e=this;this.config.columns.map(function(t){var o=t.mark;o&&("function"==typeof o?e._setMarks(t,o):e._setMarks(t,function(t,e){var i=[];e.forEach(function(t){null!=t&&""!==t&&i.push(parseFloat(t))});var n=p.getMinArrayNumber(i),e=p.getMaxArrayNumber(i);return o.max&&e===parseFloat(t)?o.max:!(!o.min||n!==parseFloat(t))&&o.min}))})},P.prototype._removeMarks=function(){var t;this.config.columns.forEach(function(t){t.mark&&(t.$cellCss={})}),null!==(t=this.config.spans)&&void 0!==t&&t.forEach(function(t){t.$markCss&&delete t.$markCss})},P.prototype._detectColsTypes=function(){this.config.columns.forEach(function(t){return t.type?t:t.format?(t.type="number",t):void(t.type||(t.type="string"))})},P.prototype._destroyContent=function(){for(var t in this.content)"comboFilter"===t&&this.content[t].destroy()},P.prototype._render=function(){this.paint()},P.prototype._initHotKey=function(t){void 0===t&&(t=!1);var e=k.getKeysHandlers(this);for(i in e)this.keyManager.exist(i)||this.keyManager.addHotKey(i,e[i]);if(!t)for(var i in this.config.hotkeys)this.keyManager.addHotKey(i,this.config.hotkeys[i])},P.prototype._normalizeConfig=function(e){return Object.keys(e).forEach(function(t){t.startsWith("$")&&delete e[t]}),e},P.prototype._normalizeSpans=function(){var t,e=this;this.config.spans=null===(t=this.config.spans)||void 0===t?void 0:t.map(function(t){return O.normalizeSpan(t,e.config)})},P.prototype._autoScroll=function(n){var t,o,r,s,a,l,e,i,c,u,d=null!==(t=this.scrollView)&&void 0!==t&&t.config.enable?null===(i=this.getRootNode())||void 0===i?void 0:i.querySelector(".scroll-view"):null===(e=this.getRootNode())||void 0===e?void 0:e.querySelector(".dhx_grid-body");d&&(o=null,i=d.getBoundingClientRect(),r=i.top,s=i.bottom,a=i.left,l=i.right,e=i.height,i=i.width,c=function(t){"up"===t||"down"===t?d.scrollBy(0,"up"===t?-40:40):d.scrollBy("left"===t?-40:40,0),o=setTimeout(function(){c(t)},100)},u=function(t){var e=t.clientX,i=t.clientY;switch(n){case"horizontal":l-30<e&&e<l&&r<i&&i<s?o||c("right"):a<e&&e<a+30&&r<i&&i<s?o||c("left"):o&&(clearTimeout(o),o=null);break;case"vertical":s-30<i&&i<s&&a<e&&e<l?o||c("down"):r<i&&i<r+30&&a<e&&e<l?o||c("up"):o&&(clearTimeout(o),o=null)}},(i<d.scrollWidth||e<d.scrollHeight)&&(document.addEventListener("pointermove",u),document.addEventListener("pointerup",function(){document.removeEventListener("pointermove",u),o&&clearTimeout(o)},{once:!0})))},P);function P(t,e){var a=r.call(this,t,e)||this;a._touch={duration:350,dblDuration:300,timer:null,start:!1,timeStamp:null},a._destructed=!1,a.version="8.2.3",a.config=p.extend({rowHeight:40,headerRowHeight:40,footerRowHeight:40,keyNavigation:!0,sortable:!0,columns:[],data:[],tooltip:!0,rootParent:"string"==typeof t&&t||a._uid,headerSort:!0},a._normalizeConfig(e)),a.content=C.getContent(),a._scroll={top:0,left:0},a.config.autoWidth=a.config.autoWidth||a.config.fitToContainer,a.config.adjust=a.config.adjust||a.config.columnsAutoWidth,a.config.editable=a.config.editable||a.config.editing,a.config.leftSplit=a.config.leftSplit||a.config.splitAt,a.config.sortable&&a.config.headerSort||(a.config.sortable=!1),a.config.columns.forEach(function(t){t.format=t.format||t.dateFormat});function n(e,i,t){var n,o,r,s;e&&i&&y.isTooltip(a.config,i)&&(s=void 0,"combobox"===i.editorType||"select"===i.editorType?s=(n=m.getEditorOptions(i,e).find(function(t){return(t instanceof Object?t.id.toString():t)===(null===(t=e[i.id])||void 0===t?void 0:t.toString())}))instanceof Object?n.value:n:"multiselect"!==i.editorType||null!=(o=null===(n=e[i.id])||void 0===n?void 0:n.toString().split(", "))&&o.length&&(s=m.getEditorOptions(i,e).filter(function(t){return o.includes(t instanceof Object?t.id.toString():t)}).map(function(t){return t instanceof Object?t.value:t}).join(", ")),r=m.toFormat(s||e[i.id],i.type,i.format),s=function(){return!!r||"boolean"==typeof r},i.tooltipTemplate?r=i.tooltipTemplate(r,e,i)||null:s()&&i.template&&(r=i.template(r,e,i)),s()&&y.showTooltip({value:r,node:t,htmlEnable:y.isHtmlEnable(a.config,i)}))}function i(t,e){void 0===e&&(e="header");var i,n=t.target,o=n.getAttribute("data-dhx-text-id"),r=a.getColumn(n.getAttribute("data-dhx-id"));o&&r&&(t=null===(t=r[e])||void 0===t?void 0:t.find(function(t){return t.id===o}),y.isContentTooltip(a.config,r,t,e)&&(i=(null==t?void 0:t.content)&&["avg","sum","max","min","count"].includes(t.content)?null===(i=a.content[t.content])||void 0===i?void 0:i.toHtml(r,a.config):null==t?void 0:t.text,"function"==typeof(null==t?void 0:t.tooltipTemplate)&&(i=t.tooltipTemplate(i,t,r)),null!=i&&i.toString().length&&y.showTooltip({value:i,node:n,htmlEnable:y.isHtmlEnable(a.config,r)})))}return a._htmlEvents={onclick:c.eventHandler(function(t){return c.locate(t)},{"dhx_grid-header-cell--sortable":function(t,e){var i,n=t.target.getAttribute("dhx_resized"),o=a.getColumn(e);o&&y.isSortable(a.config,o)&&!n&&a.events.fire(w.GridEvents.beforeSort,[o,a._sortDir?"asc":"desc"])&&(t=(i=null===(t=c.locateNodeByClassName(t,"dhx_grid-header-cell"))||void 0===t?void 0:t.querySelector(".dhx_grid-header-cell-text_content").innerHTML)?o.header.find(function(t){return t.text===i}):null,o="asc"===a._sortDir&&a._sortBy===e?"desc":"asc",a._sort(e,o,null==t?void 0:t.sortAs))},"dhx_grid-expand-cell":function(t,e){t.target.classList.contains("dhx_grid-expand-cell-icon")&&a.events.fire(w.GridEvents.expand,[e])},"dhx_span-expand-cell":function(t,e){t.target.classList.contains("dhx_span-expand-cell-icon")&&a.events.fire(w.GridEvents.expand,[e])}}),onscroll:function(t){a.events.fire(w.GridEvents.scroll,[{y:t.target.scrollTop,x:t.target.scrollLeft}])},onmouseover:{".dhx_grid-cell.dhx_boolean-cell .dhx_checkbox.dhx_cell-editor__checkbox":function(t){var e=t.composedPath(),i=a.data.getItem(e[2].getAttribute("data-dhx-id")),e=a.getColumn(e[1].getAttribute("data-dhx-col-id"));n(i,e,t.target)},".dhx_grid-cell:not(.dhx_boolean-cell)":function(t){var e=a.data.getItem(t.composedPath()[1].getAttribute("data-dhx-id")),i=a.getColumn(t.target.getAttribute("data-dhx-col-id"));n(e,i,t.target)},".dhx_grid-cell:not(.dhx_tree-cell) .dhx_grid-cell__content, .dhx_tree-cell :not(.dhx_grid-cell__content)":function(t){var e=t.composedPath(),i=a.data.getItem(e[2].getAttribute("data-dhx-id")),e=a.getColumn(e[1].getAttribute("data-dhx-col-id"));n(i,e,t.target)},".dhx_grid-cell.dhx_tree-cell .dhx_grid-cell__content":function(t){var e=t.composedPath(),i=a.data.getItem(e[3].getAttribute("data-dhx-id")),t=a.getColumn(e[2].getAttribute("data-dhx-col-id"));n(i,t,e[2])},".dhx_span-cell:not(.dhx_grid-header-cell)":function(t){var e=t.target,i=a.data.getItem(e.getAttribute("data-dhx-id")),n=a.getColumn(e.getAttribute("data-dhx-col-id")),o=a.getSpan(i.id,n.id);i&&o&&y.isTooltip(a.config,o)&&(t=o.text||m.toFormat(i[n.id],n.type,n.format),o.tooltipTemplate?t=o.tooltipTemplate(t,o):n.template&&(t=n.template(t,i,n)),t&&y.showTooltip({value:t,node:e,htmlEnable:!0}))},".dhx_grid-header-cell":function(t){return i(t,"header")},".dhx_grid-footer-cell":function(t){return i(t,"footer")}}},(a.config.dragMode||a.config.dragItem)&&(h.dragManager.setItem(a._uid,a),a.config.dragItem||(a.config.dragItem="row"),a.config.dragMode||(a.config.dragMode="both")),a._init(),a.config.columns&&a._parseColumns(!0),a._canDataParse()&&a.data.parse(a.config.data),a.selection=new b.Selection(a,{disabled:!a.config.selection},a.events,a._uid),a.mount(t,a._createView()),l.awaitRedraw().then(function(){a.config.keyNavigation&&(a.keyManager=new u.KeyManager(function(t,e){return!(e!==a._uid||!a.events.fire(w.GridEvents.beforeKeyDown,[t]))&&(a.events.fire(w.GridEvents.afterKeyDown,[t]),!0)}),a._initHotKey(),I.focusManager.setFocusId(a._uid))}),e.autoEmptyRow&&0===a.data.getLength()&&(a._addEmptyRow(),a.paint()),a}e.Grid=o},function(t,e,i){"use strict";function n(t){var e=document.activeElement;e.classList.contains("dhx_alert__apply-button")&&"Enter"===t.key||e.classList.contains("dhx_alert__confirm-reject")||e.classList.contains("dhx_alert__confirm-aply")||t.preventDefault()}Object.defineProperty(e,"__esModule",{value:!0}),e.blockScreen=function(t){var e=document.createElement("div");return e.className="dhx_alert__overlay "+(t||""),document.body.appendChild(e),document.addEventListener("keydown",n),function(){document.body.removeChild(e),document.removeEventListener("keydown",n)}}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(3),d=i(43),h=750,f=200;function u(t,e,i,n,o,r){var s,a,l;switch(void 0===o&&(o=8),void 0===r&&(r=0),1<r&&(e=d.Position.center),e){case d.Position.center:return(a=t.left+window.pageXOffset+(t.width-i)/2)+o<window.pageXOffset&&(a=t.left+window.pageXOffset),{left:a,top:l=t.top+window.pageYOffset+(t.height-n)/2,pos:s=d.RealPosition.center};case d.Position.right:return(s=d.RealPosition.right,(a=t.right+window.pageXOffset+o)+i>window.innerWidth+window.pageXOffset)?u(t,d.Position.left,i,n,o,++r):{left:a,top:l=window.pageYOffset+t.top+(t.height-n)/2,pos:s};case d.Position.left:return(s=d.RealPosition.left,(a=window.pageXOffset+t.left-i-o)<0)?u(t,d.Position.right,i,n,o,++r):{left:a,top:l=window.pageYOffset+t.top+(t.height-n)/2,pos:s};case d.Position.top:return s=d.RealPosition.top,(a=window.pageXOffset+t.left+(t.width-i)/2)+i>window.innerWidth+window.pageXOffset?a=window.innerWidth+window.pageXOffset-i:a<0&&(a=0),(l=window.pageYOffset+t.top-n-o)-n<0?u(t,d.Position.bottom,i,n,o,++r):{left:a,top:l,pos:s};case d.Position.bottom:default:return(a=window.pageXOffset+t.left+(t.width-i)/2)+i>window.innerWidth+window.pageXOffset?a=window.innerWidth+window.pageXOffset-i:a<0&&(a=0),s=d.RealPosition.bottom,(l=window.pageYOffset+t.bottom+o)+n>window.innerHeight+window.pageYOffset?u(t,d.Position.top,i,n,o,++r):{left:a,top:l,pos:s}}}e.findPosition=u;var p=document.createElement("div"),g=document.createElement("span");g.className="dhx_tooltip__text",p.appendChild(g),p.setAttribute("role","tooltip"),p.style.position="absolute";var v,_=null,m=!1,y=null,b=null;function w(t){return t&&(t.classList.contains("dhx_popup--window")&&t.classList.contains("dhx_popup--window_active")||t.classList.contains("dhx_popup--window_modal")||t.classList.contains("dhx_popup"))?1e7:null!=t&&t.classList.contains("dhx_popup--window")?9999999:t&&t.offsetParent?w(t.offsetParent):null}function x(t,e,i,n,o,r,s){void 0===o&&(o=!1),void 0===r&&(r=8);var a=t.getBoundingClientRect();s?g.innerHTML=e:g.textContent=e,document.body.appendChild(p),p.className="dhx_widget dhx_tooltip"+(o?" dhx_tooltip--forced":"");var e=p.getBoundingClientRect(),r=u(a,i,e.width,e.height,r),l=r.left,c=r.top,r=r.pos,t=w(t);switch(t&&(p.style.zIndex=t.toString()),r){case d.RealPosition.bottom:case d.RealPosition.top:case d.RealPosition.left:case d.RealPosition.right:case d.RealPosition.center:p.style.left=l+"px",p.style.top=c+"px"}p.className+=" dhx_tooltip--"+r+" "+(n||""),m=!0,o||setTimeout(function(){p.className+=" dhx_tooltip--animate"})}function r(e,t,i){var n=i.force,o=i.showDelay,r=i.hideDelay,s=i.position,a=i.css,l=i.htmlEnable,c=i.margin;n||(b=setTimeout(function(){x(e,t,s||d.Position.bottom,a,!1,c,l)},o||h));var u=function(){var t;m&&(t=r,_&&(y=setTimeout(function(){document.body.removeChild(p),m=!1,y=null},t||f))),clearTimeout(b),e.removeEventListener("mouseleave",u),e.removeEventListener("blur",u),document.removeEventListener("mousedown",u),v=_=null};n&&x(e,t,s,a,n,c,l),e.addEventListener("mouseleave",u),e.addEventListener("blur",u),document.addEventListener("mousedown",u),v=u}function s(t,e){var i=o.toNode(e.node);i!==_&&(v&&(v(),v=null),_=i,y?(clearTimeout(y),y=null,r(i,t,n(n({},e),{force:!0}))):r(i,t,e))}function a(t){t=o.locateNode(t,"dhx_tooltip_text");t&&s(t.getAttribute("dhx_tooltip_text"),{position:t.getAttribute("dhx_tooltip_position")||d.Position.bottom,node:t})}e.getZIndex=w,e.tooltip=s,e.enableTooltip=function(){document.addEventListener("mousemove",a)},e.disableTooltip=function(){document.removeEventListener("mousemove",a)}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),d=this&&this.__assign||function(){return(d=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,h=i(1),f=i(0),s=i(5),l=i(47),c=i(138),a=i(2),u=i(42),p=i(46),o=(r=s.View,o(g,r),g.prototype.paint=function(){var t;this.isVisible()&&((t=this.getRootView())?t.redraw():null!==(t=this._parent)&&void 0!==t&&t.paint())},g.prototype.isVisible=function(){if(!this._parent)return!(!this._container||!this._container.tagName)||Boolean(this.getRootNode());var t=null===(t=this._parent.config)||void 0===t?void 0:t.activeView;return(!t||t===this.id)&&(!this.config.hidden&&(!this._parent||this._parent.isVisible()))},g.prototype.hide=function(){this.events.fire(l.LayoutEvents.beforeHide,[this.id])&&(this.config.hidden=!0,this._resetCellsSize(),this._parent&&this._parent.paint&&this._parent.paint(),this.events.fire(l.LayoutEvents.afterHide,[this.id]))},g.prototype.show=function(){var t=this;this.events.fire(l.LayoutEvents.beforeShow,[this.id])&&(this._parent&&this._parent.config&&void 0!==this._parent.config.activeView?this._parent.config.activeView=this.id:this.config.hidden=!1,this._parent&&!this._parent.isVisible()&&this._parent.show(),this.paint(),this._ui instanceof u.Grid&&this._ui.config.keyNavigation&&f.awaitRedraw().then(function(){t._ui.setColumns(t._ui.config.columns),t.paint()}),this.events.fire(l.LayoutEvents.afterShow,[this.id]))},g.prototype.expand=function(){this.events.fire(l.LayoutEvents.beforeExpand,[this.id])&&(this.config.collapsed=!1,this._checkNextSize()||this._checkNextSize(this._getAnyFlexCell()),this.events.fire(l.LayoutEvents.afterExpand,[this.id]),this.paint())},g.prototype.collapse=function(){this.events.fire(l.LayoutEvents.beforeCollapse,[this.id])&&(this.config.collapsed=!0,this._checkNextSize()||this._checkNextSize(this._getAnyFlexCell()),this.events.fire(l.LayoutEvents.afterCollapse,[this.id]),this.paint())},g.prototype.toggle=function(){this.config.collapsed?this.expand():this.collapse()},g.prototype._checkNextSize=function(t){var e=null!=t?t:this._getNextCell();return!!e&&(this._isXDirection()&&e.config.$autoWidth&&e.config.width?!(e.config.width=void 0):!this._isXDirection()&&e.config.$autoHeight&&e.config.height?!(e.config.height=void 0):!t&&e._checkNextSize())},g.prototype.getParent=function(){return this._parent},g.prototype.destructor=function(){var t;this.events&&this.events.clear(),window.removeEventListener("resize",this._afterWindowResized),"function"==typeof(null===(t=this.getWidget())||void 0===t?void 0:t.destructor)&&this.getWidget().destructor(),this.config=this.events=this.id=this._parent=this._handlers=this._uid=this._disabled=this._resizerHandlers=null,this.unmount()},g.prototype.getWidget=function(){return this._ui},g.prototype.getCellView=function(){return this._parent&&this._parent.getRefs(this._uid)},g.prototype.attach=function(t,e){var i=this;return this.config.html=null,"object"==typeof t?this._ui=t:"string"==typeof t?this._ui=new window.dhx[t](null,e):"function"==typeof t&&(t.prototype instanceof s.View?this._ui=new t(null,e):this._ui={getRootView:function(){return t(e)}}),this.paint(),this._ui instanceof u.Grid&&this._ui.config.keyNavigation&&f.awaitRedraw().then(function(){i._ui.setColumns(i._ui.config.columns),i.paint()}),this._ui},g.prototype.attachHTML=function(t){this.config.html=t,this.paint()},g.prototype.detach=function(){this._stopProgressDefault=!1,this._ui=this.config.html=null,this.paint()},g.prototype.progressShow=function(){this.config.progressDefault&&(this._stopProgressDefault=!1),this._progress=!0,this.paint()},g.prototype.progressHide=function(){this.config.progressDefault&&(this._stopProgressDefault=!0),this._progress=!1,this.paint()},g.prototype.isVisibleProgress=function(){return this._progress},g.prototype.toVDOM=function(t){if(null===this.config&&(this.config={}),!this.config.hidden){var e,i=this.config.$fieldset,n=this._calculateStyle(),o=h.isDefined(this.config.padding)?isNaN(Number(this.config.padding))?{padding:this.config.padding}:{padding:this.config.padding+"px"}:"",r=this.config.full||this.config.html?n:d(d({},n),o);this.config.html||(e=this._ui?((u=this._ui.getRootView()).render&&(u=f.inject(u)),[u]):t||null);var s=this.config.resizable&&!this._isLastCell()&&this._getNextCell()&&!this.config.collapsed?f.el(".dhx_layout-resizer."+(this._isXDirection()?"dhx_layout-resizer--x":"dhx_layout-resizer--y"),d(d({},this._resizerHandlers),{_ref:"resizer_"+this._uid,tabindex:0}),[f.el("span.dhx_layout-resizer__icon",{class:"dxi "+(this._isXDirection()?"dxi-dots-vertical":"dxi-dots-horizontal")})]):null,a={};if(this.config.on)for(var l in this.config.on)a["on"+l]=this.config.on[l];var c="",u=this.config.cols||this.config.rows;if(this.config.type&&u)switch(this.config.type){case"line":c=" dhx_layout-line";break;case"wide":c=" dhx_layout-wide";break;case"space":c=" dhx_layout-space"}o=f.el("div",d(d(((t={_key:this._uid,_ref:this._uid})["aria-label"]=this.config.id?"tab-content-"+this.config.id:null,t["data-cell-id"]=null!==(u=this.config.id)&&void 0!==u?u:null,t),a),{class:this._getCss(!1)+(this.config.css?" "+this.config.css:"")+(this.config.collapsed?" dhx_layout-cell--collapsed":"")+(this.config.resizable?" dhx_layout-cell--resizable":"")+(this.config.type&&!this.config.full?c:""),style:i?n:r}),[i?f.el("fieldset.dhx_form-fieldset",{class:this.config.$disabled?" dhx_form-fieldset--disabled":"",style:o,disabled:this.config.$disabled},[f.el("legend.dhx_form-fieldset-legend",{class:"dhx_form-fieldset-legend--"+(this.config.labelAlignment||"left")},this.config.label),f.el(".dhx_layout-cell-content",{class:this._getCss(!1)},[e])]):this.config.full?[f.el("div",{tabindex:this.config.collapsable?"0":"-1",role:this.config.collapsable?"button":null,"aria-label":this.config.collapsable?"click to "+(this.config.collapsed?"expand":"collapse"):null,class:"dhx_layout-cell-header"+(this._isXDirection()?" dhx_layout-cell-header--col":" dhx_layout-cell-header--row")+(this.config.collapsable?" dhx_layout-cell-header--collapseble":"")+(this.config.collapsed?" dhx_layout-cell-header--collapsed":"")+(((this.getParent()||{}).config||{}).isAccordion?" dhx_layout-cell-header--accordion":""),style:{height:this.config.headerHeight},onclick:this._handlers.toggle,onkeydown:this._handlers.enterCollapse},[this.config.headerIcon&&f.el("span.dhx_layout-cell-header__icon",{class:this.config.headerIcon}),this.config.headerImage&&f.el(".dhx_layout-cell-header__image-wrapper",[f.el("img",{src:this.config.headerImage,class:"dhx_layout-cell-header__image"})]),this.config.header&&f.el("h3.dhx_layout-cell-header__title",this.config.header),this.config.collapsable?f.el("div.dhx_layout-cell-header__collapse-icon",{class:this._getCollapseIcon()}):f.el("div.dhx_layout-cell-header__collapse-icon",{class:"dxi dxi-empty"})]),this.config.collapsed?null:f.el("div",{style:d(d({},o),{height:"calc(100% - "+(this.config.headerHeight||37)+"px)"}),class:this._getCss(!0)+" dhx_layout-cell-content"+(this.config.type?c:"")},this.config.html?[f.el("div",{".innerHTML":this.config.html,class:"dhx_layout-cell dhx_layout-cell-inner_html"})]:e)]:!this.config.html||this.config.rows&&this.config.cols&&this.config.views?e:[this.config.collapsed?null:f.el(".dhx_layout-cell-content",{style:o},[f.el(".dhx_layout-cell-inner_html",{".innerHTML":this.config.html})])],this._checkProgress()&&this._getProgressBar()]);return s?[o,s]:o}},g.prototype._getProgressBar=function(){return f.el("span",{class:"dhx_progress-bar"},[f.sv("svg",{viewBox:"25 25 50 50",class:"dhx_spinner"},[f.sv("circle",{cx:"50",cy:"50",r:"20",class:"path"})])])},g.prototype._getCss=function(t){return"dhx_layout-cell"},g.prototype._initHandlers=function(){var r=this;window.addEventListener("resize",this._afterWindowResized);function n(t,e){var i,n,o;void 0===e&&(e={x:0,y:0}),s.isActive&&(o=s.xLayout,i=t.targetTouches?t.targetTouches[0].clientX:t.clientX+e.x,n=t.targetTouches?t.targetTouches[0].clientY:t.clientY+e.y,t=o?"width":"height",(e=o?i-s.range.min+window.pageXOffset:n-s.range.min+window.pageYOffset)<0?e=s.resizerLength/2:e>s.size&&(e=s.size-s.resizerLength),n=(i=function(t){return parseInt(null===(t=r.config[t])||void 0===t?void 0:t.toString())})(o?"maxWidth":"maxHeight"),o=i(o?"minWidth":"minHeight"),(!n||e<n)&&(!o||o<e)&&(r.config[t]=e-s.resizerLength/2+"px",s.nextCell.config[t]=s.size-e-s.resizerLength/2+"px",s.nextCell._getAnyFlexCell()&&(s.nextCell._getAnyFlexCell().config[t]=void 0),r.paint(),r.events.fire(l.LayoutEvents.resize,[r.id])))}function i(t){var e,i,n;t.targetTouches&&t.preventDefault(),3!==t.which&&(s.isActive&&a(t),r.events.fire(l.LayoutEvents.beforeResizeStart,[r.id])&&(document.body.classList.add("dhx_no-select--resize"),i=r.getCellView(),n=(e=r._getNextCell()).getCellView(),t=r._getResizerView(),i=i.el.getBoundingClientRect(),t=t.el.getBoundingClientRect(),n=n.el.getBoundingClientRect(),s.xLayout=r._isXDirection(),s.left=i.left+window.pageXOffset,s.top=i.top+window.pageYOffset,s.collapsedSize=r._getCollapsedSize(r,e),s.margin=c.getMarginSize(r.getParent().config),s.range=c.getBlockRange(i,n,s.xLayout),s.size=s.range.max-s.range.min-s.margin-s.collapsedSize,s.isActive=!0,s.nextCell=e,s.resizerLength=s.xLayout?t.width:t.height))}var s={left:null,top:null,isActive:!(this._handlers={enterCollapse:function(t){13===t.keyCode&&r._handlers.toggle()},collapse:function(){r.config.collapsable&&r.collapse()},expand:function(){r.config.collapsable&&r.expand()},toggle:function(){r.config.collapsable&&r.toggle()}}),range:null,xLayout:null,nextCell:null,size:null,resizerLength:null,margin:null,collapsedSize:null},o={},a=function(t){if(s.isActive=!1,document.body.classList.remove("dhx_no-select--resize"),t.targetTouches)for(var e in document.removeEventListener("touchend",a),document.removeEventListener("touchmove",n),o)o[e].node.contentWindow.document.removeEventListener("touchend",a),o[e].node.contentWindow.document.removeEventListener("touchmove",o[e].listener);else for(var e in document.removeEventListener("mouseup",a),document.removeEventListener("mousemove",n),o)o[e].node.contentWindow.document.removeEventListener("mouseup",a),o[e].node.contentWindow.document.removeEventListener("mousemove",o[e].listener);r.events.fire(l.LayoutEvents.afterResizeEnd,[r.id])};this._resizerHandlers={onmousedown:function(t){i(t),document.addEventListener("mouseup",a),document.addEventListener("mousemove",n);t=document.querySelectorAll("iframe");if(t.length)for(var e in t.forEach(function(t,e){var i={x:t.getBoundingClientRect().x,y:t.getBoundingClientRect().y};o[e]={node:t,listener:function(t){return n(t,i)}}}),o)o[e].node.contentWindow.document.addEventListener("mouseup",a),o[e].node.contentWindow.document.addEventListener("mousemove",o[e].listener)},ontouchstart:function(t){i(t),document.addEventListener("touchend",a),document.addEventListener("touchmove",n);t=document.querySelectorAll("iframe");if(t.length)for(var e in t.forEach(function(t,e){var i={x:t.getBoundingClientRect().x,y:t.getBoundingClientRect().y};o[e]={node:t,listener:function(t){return n(t,i)}}}),o)o[e].node.contentWindow.document.addEventListener("touchend",a),o[e].node.contentWindow.document.addEventListener("touchmove",o[e].listener)},ondragstart:function(t){return t.preventDefault()}}},g.prototype._getCollapsedSize=function(t,e){var i=0,n=this._parent,t=n._cells.indexOf(t),o=n._cells.indexOf(e);if(o-t==1)return i;for(var r=t+1;r<o;r++)n._cells[r].config.collapsed&&(this._isXDirection()?i+=45:i+=Number(n._cells[r].config.headerHeight)||37);return i},g.prototype._getCollapseIcon=function(){return this._isXDirection()&&this.config.collapsed?"dxi dxi-chevron-right":this._isXDirection()&&!this.config.collapsed?"dxi dxi-chevron-left":!this._isXDirection()&&this.config.collapsed?"dxi dxi-chevron-up":this._isXDirection()||this.config.collapsed?void 0:"dxi dxi-chevron-down"},g.prototype._isLastCell=function(){var t=this._parent;return t&&t._cells.indexOf(this)===t._cells.length-1},g.prototype._getNextCell=function(){var t=this._parent,e=t._cells.indexOf(this),e=!this._isLastCell()&&t._cells[e+1];return!!e&&(e.config.hidden||e.config.collapsed?e._getNextCell():e)},g.prototype._getAnyFlexCell=function(e){var i=this;void 0===e&&(e=!1);var t=this._parent,n=this._isXDirection()?"$autoWidth":"$autoHeight",t=null===(t=null==t?void 0:t._cells)||void 0===t?void 0:t.filter(function(t){return!0===t.config[n]&&(!!e||t.id!==i.id)});return!(null==t||!t.length)&&t[t.length-1]},g.prototype._getResizerView=function(){return this._parent.getRefs("resizer_"+this._uid)},g.prototype._isXDirection=function(){return this._parent&&this._parent._xLayout},g.prototype._checkProgress=function(){return this instanceof p.Layout?this.isVisibleProgress():(this._calculateProgressState(),(this._progress||this._checkAutoProgress())&&!this.config.collapsed&&!this.config.hidden&&!this._parent.isVisibleProgress())},g.prototype._checkAutoProgress=function(){if(this._stopProgressDefault)return!1;var t=this.config,e=t.html;return t.progressDefault&&!this._ui&&!e},g.prototype._calculateProgressState=function(){var t,e;this._stopProgressDefault||(t=(e=this.config).html,!(e=e.progressDefault)||this._ui||t||(this._progress=!0),e&&(this._ui||t)&&(this._progress=!1))},g.prototype._calculateStyle=function(){var t=this.config;if(t){var e={},i=!1,n=!1;isNaN(Number(t.width))||(t.width=t.width+"px"),isNaN(Number(t.height))||(t.height=t.height+"px"),isNaN(Number(t.minWidth))||(t.minWidth=t.minWidth+"px"),isNaN(Number(t.minHeight))||(t.minHeight=t.minHeight+"px"),isNaN(Number(t.maxWidth))||(t.maxWidth=t.maxWidth+"px"),isNaN(Number(t.maxHeight))||(t.maxHeight=t.maxHeight+"px"),"content"===t.width&&(i=!0),"content"===t.height&&(n=!0);var o=t.width,r=t.height,s=t.cols,a=t.rows,l=t.minWidth,c=t.minHeight,u=t.maxWidth,d=t.maxHeight,h=t.gravity,f=t.collapsed,p=t.$fixed,g=-1===Math.sign(h)?0:h;"boolean"==typeof h&&(g=h?1:0);var v="boolean"==typeof h?!h:-1===Math.sign(h);this._isXDirection()?(p||o||void 0===h&&(l||u))&&(v=!0):(p||r||void 0===h&&(c||d))&&(v=!0);var _,h=this._checkFullSizeCell(),v=v&&!h?0:!h&&g||1,g=this._isXDirection()?"x":"y";return void 0===l||f||(e.minWidth=l),void 0===c||f||(e.minHeight=c),void 0!==u&&(e.maxWidth=u),void 0!==d&&(e.maxHeight=d),void 0===this._parent&&(g=!0),h||void 0===o||"content"===o?!0===g?e.width="100%":"x"===g&&(i?e.flex="0 0 auto":(_=this._isXDirection()?"1px":"auto",e.flex=v+" "+(s||a?"0 "+_:"1 auto"))):e.width=o,h||void 0===r||"content"===r?!0===g?e.height="100%":"y"===g&&(n?e.flex="0 0 auto":(_=this._isXDirection()?"auto":"1px",e.flex=v+" "+(s||a?"0 "+_:"1 auto"))):e.height=r,!0===g&&void 0===t.width&&void 0===t.height&&(e.flex=v+" 1 auto"),f&&(this._isXDirection()?e.width="auto":e.height="auto",e.flex="0 0 auto"),e}},g.prototype._resizedWindow=function(){var t;void 0===this._isLastFlexCell?this._isLastFlexCell=(null===(t=this._getAnyFlexCell(!0))||void 0===t?void 0:t.id)===this.id:this._isLastFlexCell||window.removeEventListener("resize",this._afterWindowResized),this._isLastFlexCell&&(t=this._isXDirection()?"width":"height",this.config[t]=void 0,this.paint())},g.prototype._resetCellsSize=function(){var e=this,t=this._parent._cells.filter(function(t){return t!==e&&!t.config.hidden&&!t.config.collapsed}),i=this._isXDirection(),n=i?"$autoWidth":"$autoHeight",o=i?"width":"height";t.forEach(function(t){t.config[n]&&(t.config[o]=void 0)})},g.prototype._checkFullSizeCell=function(){var e=this;if(!this._parent)return!1;var t=this._isXDirection()?"$autoWidth":"$autoHeight";if(!this.config[t])return!1;t=this._parent._cells.filter(function(t){return t!==e&&!t.config.hidden});return!!t.length&&t.every(function(t){return t.config.collapsed})},g);function g(t,e){var i=r.call(this,t,e)||this;return i._disabled=[],t&&t.isVisible&&(i._parent=t),i._parent&&i._parent.events?i.events=i._parent.events:i.events=new a.EventSystem(i),i.config.full=void 0===i.config.full?Boolean(i.config.header||i.config.collapsable||i.config.headerHeight||i.config.headerIcon||i.config.headerImage):i.config.full,i._afterWindowResized=i._resizedWindow.bind(i),i._initHandlers(),i.id=i.config.id||h.uid(),i._progress=!!i.config.progressDefault,i._stopProgressDefault=!1,i._isXDirection()&&!e.width&&(e.$autoWidth=!0),i._isXDirection()||e.height||(e.$autoHeight=!0),i}e.Cell=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.PopupEvents||(e.PopupEvents={})).beforeHide="beforeHide",e.beforeShow="beforeShow",e.afterHide="afterHide",e.afterShow="afterShow",e.click="click"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.SliderEvents||(e.SliderEvents={})).beforeChange="beforeChange",e.change="change",e.focus="focus",e.blur="blur",e.keydown="keydown",e.mousedown="mousedown",e.mouseup="mouseup"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={hours:"Hours",minutes:"Minutes",save:"Save"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.TimepickerEvents||(e.TimepickerEvents={})).beforeChange="beforeChange",e.change="change",e.beforeApply="beforeApply",e.afterApply="afterApply",e.beforeClose="beforeClose",e.afterClose="afterClose",e.apply="apply",e.close="close",e.save="save"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.CalendarEvents||(e.CalendarEvents={})).change="change",e.beforeChange="beforechange",e.modeChange="modeChange",e.monthSelected="monthSelected",e.yearSelected="yearSelected",e.cancelClick="cancelClick",e.dateMouseOver="dateMouseOver",e.dateHover="dateHover"},function(t,f,e){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),p=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(f,"__esModule",{value:!0});var o=e(1),g=e(0),r=e(2),v=e(3),s=e(147),a=e(5),l=e(8),c=e(11),u=e(35),d=e(12),h=e(151),_=e(50),m=e(28),y=e(77),b=e(78);f.$template=function(t){return t.icon?g.el("div.dhx_combobox-options-wrapper",[g.el("span",{class:t.icon+" dhx_combobox-options__icon"}),g.el("span",{class:"dhx_combobox-options__value"},t.value)]):t.src?g.el("div.dhx_combobox-options-wrapper",[g.el("img",{class:"dhx_combobox-options__image",alt:t.value,src:t.src}),g.el("span",{class:"dhx_combobox-options__value"},t.value)]):g.el("span",{class:"dhx_combobox-options__value"},t.value)};var w,i=(w=a.View,i(x,w),x.prototype.focus=function(){if(this.config.disabled)return!1;this.getRootView().refs.input.el.focus()},x.prototype.blur=function(){if(this.config.disabled)return!1;this.getRootView().refs.input.el.blur(),this.popup.hide()},x.prototype.enable=function(){this.config.disabled=!1,this.paint()},x.prototype.disable=function(){this.config.disabled=!0,this.paint()},x.prototype.isDisabled=function(){return this.config.disabled},x.prototype.clear=function(){this.list.selection.remove(),this._state.value="",this._filter(),this.paint()},x.prototype.getValue=function(t){var e=this.list.selection.getId();return t?o.wrapBox(e):Array.isArray(e)?e.join(","):e},x.prototype.setValue=function(t,e){return this._setValue(t,e)},x.prototype.addOption=function(t,e){var i;void 0===e&&(e=!0),t&&("string"==typeof t?i=this.data.add({value:t}):"object"==typeof t&&(i=this.data.add(t)),i=this.config.multiselection&&e?p(this.list.selection.getId(),[i]):i,this.setValue(i))},x.prototype.destructor=function(){this.popup&&this.popup.destructor(),this.events&&this.events.clear(),this.list&&this.list.destructor(),this._helper&&this._helper.destructor(),this._layout&&this._layout.destructor(),this.config=this.events=this.list=this.popup=null,this._helper=this._keyListener=this._handlers=this._state=this._uid=this._isPopupConfiqureted=null,this.unmount()},x.prototype.setState=function(t){switch(t){case"success":this._state.currentState=b.ComboState.success;break;case"error":this._state.currentState=b.ComboState.error;break;default:this._state.currentState=b.ComboState.default}this.paint()},x.prototype._setValue=function(t,e){var i=this;if(void 0===e&&(e=!1),!this._exsistId(t))return!1;this._filter(),this.list.selection.remove(null,e),this.config.multiselection?("string"==typeof t&&(t=t.split(",")),"number"==typeof t&&(t=[t]),t.forEach(function(t){i.list.selection.add(t,!1,!1,e)})):(t=o.unwrapBox(t),this.list.selection.add(t,!1,!1,e),(t=this.data.getItem(t))&&(this._state.value=this._getItemText(t))),this.paint()},x.prototype._createLayout=function(){var t=this.list=new u.List(null,{$template:f.$template,template:this.config.template,htmlEnable:this.config.htmlEnable,virtual:this.config.virtual,keyNavigation:!0,multiselection:this.config.multiselection,itemHeight:this.config.itemHeight,height:this.config.listHeight,data:this.data}),e=this._layout=new c.Layout(this.popup.getContainer(),{css:"dhx_combobox-options dhx_combobox__options",rows:[{id:"select-unselect-all",hidden:!this.config.multiselection||!this.config.selectAllButton},{id:"list",height:"content"},{id:"not-found",hidden:!0}],on:{click:{".dhx_combobox__action-select-all":this._handlers.selectAll,".dhx_combobox-options__action-create-option":this._handlers.addOption}}});e.getCell("list").attach(t),this.config.multiselection&&this.config.selectAllButton&&e.getCell("select-unselect-all").attach(y.selectAllView)},x.prototype._initHandlers=function(){var i=this;this.config.helpMessage&&(this._helper=new d.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"}),this._helper.attachHTML(this.config.helpMessage)),this._handlers={addOption:function(){return i.addOption(i._state.value)},showHelper:function(t){t.preventDefault(),t.stopPropagation(),i._helper.show(t.target,{mode:"left"===i.config.labelPosition?"bottom":"right",theme:t.target})},selectAll:function(){i._state.unselectActive?(i.list.selection.remove(),i.config.selectAllButton&&(i._layout.getCell("select-unselect-all").attach(y.selectAllView),i._state.unselectActive=!1)):(i.data.filter(),i.list.selection.add(),i.config.selectAllButton&&(i._layout.getCell("select-unselect-all").attach(y.unselectAllView),i._state.unselectActive=!0)),i._changePopupPosition(),i.paint()},onkeydown:function(t){var e;"Tab"===t.key&&i.popup.isVisible()?i._hideOptions():(i.popup.isVisible()||t.which!==s.KEY_CODES.DOWN_ARROW||i._showOptions(),i.popup.isVisible()&&(t.which===s.KEY_CODES.RIGHT_ARROW&&i.config.readOnly&&!i.config.multiselection&&(i.list.moveFocus(u.MOVE_DOWN),t.preventDefault()),t.which===s.KEY_CODES.LEFT_ARROW&&i.config.readOnly&&!i.config.multiselection&&(i.list.moveFocus(u.MOVE_UP),t.preventDefault()),t.which===s.KEY_CODES.DOWN_ARROW&&(i.list.moveFocus(u.MOVE_DOWN),t.preventDefault()),t.which===s.KEY_CODES.UP_ARROW&&(i.list.moveFocus(u.MOVE_UP),t.preventDefault()),t.which===s.KEY_CODES.ESC&&i._hideOptions(),t.which===s.KEY_CODES.ENTER&&(i.data.getLength()?(e=i.list.getFocus(),e=i.config.multiselection?p(i.list.selection.getId(),[e]):e,i.setValue(e)):i.config.newOptions&&i.addOption(i._state.value,!0),i.config.multiselection?i._updatePopup():i.data.getLength()&&i._hideOptions()))),i.events.fire(b.ComboboxEvents.keydown,[t,i.list.getFocus()])},onkeyup:function(t){i.config.multiselection&&!i.config.itemsCount&&(i._state.ignoreNext?i._state.ignoreNext=!1:t.which===s.KEY_CODES.BACKSPACE&&!i._state.value&&i.config.multiselection&&i.list.selection.getId().length&&(t=(t=i.list.selection.getId())[t.length-1],i.list.selection.remove(t),i._changePopupPosition(),i.paint()))},oninput:function(t){i.config.disabled||(t=t.target.value,i.events.fire(b.ComboboxEvents.input,[t]),i._state.value=t,i._filter(),t.length?i._state.canDelete=!1:(i._state.ignoreNext=!0,i._state.canDelete=!0),i.config.multiselection||(i.list.selection.remove(),i.paint()),i.popup.isVisible()||i._showOptions(),i._updatePopup())},oninputclick:function(t){if(!i.config.disabled){if(i.focus(),t.target.classList.contains("dhx_combobox__action-remove")){var e=null===(e=i.data.getItem(v.locate(t)))||void 0===e?void 0:e.id;return o.isId(e)?(i.list.selection.remove(e),i._changePopupPosition(),void i.paint()):void 0}if(t.target.classList.contains("dhx_combobox__action-clear-all"))return i.list.selection.getId().forEach(function(t){return i.list.selection.remove(t)}),i.config.selectAllButton&&i._state.unselectActive&&(i._layout.getCell("select-unselect-all").attach(y.selectAllView),i._state.unselectActive=!1),void i.paint();t.preventDefault(),i.popup.isVisible()?i.focus():i._showOptions()}},toggleIcon:function(){i.focus(),i.popup.isVisible()?i._hideOptions():i._showOptions()},onfocus:function(){var t;return null===(t=i.events)||void 0===t?void 0:t.fire(b.ComboboxEvents.focus,[])},onblur:function(){var t;return null===(t=i.events)||void 0===t?void 0:t.fire(b.ComboboxEvents.blur,[])}}},x.prototype._initEvents=function(){var i=this;this.data.events.on(l.DataEvents.load,function(){i.config.value&&i._setValue(i.config.value,!0)}),this.data.events.on(l.DataEvents.afterAdd,function(){i.config.multiselection?i._changePopupPosition():i._hideOptions()}),this.list.events.on(u.ListEvents.click,function(){i.config.multiselection||i._hideOptions(),i._changePopupPosition()}),this.list.selection.events.on(m.SelectionEvents.beforeSelect,function(t){t=i.config.multiselection?p(i.getValue(i.config.multiselection),[t]):t;return i.events.fire(b.ComboboxEvents.beforeChange,[t])}),this.list.selection.events.on(m.SelectionEvents.afterSelect,function(){var t=i.getValue(i.config.multiselection);i.events.fire(b.ComboboxEvents.change,[t]),i._updateSelectedItem(t)}),this.list.selection.events.on(m.SelectionEvents.beforeUnSelect,function(e){var t=i.config.multiselection?i.getValue(i.config.multiselection).filter(function(t){return t!=e}):e;return i.events.fire(b.ComboboxEvents.beforeChange,[t])}),this.list.selection.events.on(m.SelectionEvents.afterUnSelect,function(){var t,e=i.config.multiselection;i.config.readOnly&&!e||(t=i.getValue(e),i.events.fire(b.ComboboxEvents.change,[t]),e&&i._updateSelectedItem(t))}),this.popup.events.on(d.PopupEvents.beforeShow,function(){if(!i.popup.isVisible()&&!i._isPopupConfiqureted)return i._configurePopup(),!1}),this.config.readOnly&&this.popup.events.on(d.PopupEvents.afterShow,function(){var t;i._state.value?(t=i.list.selection.getId(),i.list.setFocus(t)):i.list.setFocus(i.data.getId(0)),i._keyListener.startNewListen(function(t){return i._findBest(t)})})},x.prototype._showOptions=function(){this.events.fire(b.ComboboxEvents.beforeOpen)&&(this._state.value.length&&(this._state.canDelete=!0),this._filter(),this._configurePopup()&&(this.events.fire(b.ComboboxEvents.open),this.events.fire(b.ComboboxEvents.afterOpen)))},x.prototype._configurePopup=function(){this._isPopupConfiqureted=!0;var t=this.getRootView();return!!(t&&t.refs&&t.refs.holder)&&(this.popup.isVisible()||this._updatePopup(),!0)},x.prototype._hideOptions=function(){var t=this;this.events.fire(b.ComboboxEvents.beforeClose)&&(this.config.readOnly&&this._keyListener.endListen(),this.list.setFocus(this.data.getId(0)),this.config.multiselection||this.config.readOnly||this.list.selection.contains()||(this._state.value=""),g.awaitRedraw().then(function(){return t.popup.isVisible()&&t.popup.hide()}),this.events.fire(b.ComboboxEvents.afterClose),this.events.fire(b.ComboboxEvents.close),this._filter(),this.paint())},x.prototype._filter=function(){var t,e,i,n=this;this.config.readOnly||(this.data.filter(function(t){return n.config.filter?n.config.filter(t,n._state.value):o.isEqualString(n._state.value,n._getItemText(t))}),this.config.multiselection?this.list.setFocus(this.data.getId(0)):(e=this.data.getIndex(this.list.selection.getId()),this.list.setFocus(this.data.getId(-1<e?e:0))),t=this._layout.getCell("list"),e=this._layout.getCell("not-found"),0===this.data.getLength()?(this.config.multiselection&&this.config.selectAllButton&&this._layout.getCell("select-unselect-all").hide(),t.hide(),this._state.creatingState=!0,i=this.config.newOptions?this._state.value:"",e.height=y.emptyListHeight(i,this.getRootView().refs.holder.el.offsetWidth),e.attach(y.emptyListView,i),e.show()):(this.config.multiselection&&this.config.selectAllButton&&this._layout.getCell("select-unselect-all").show(),!(this._state.value&&this.data.find(function(t){return t.value===n._state.value}))&&this._state.value?(this._state.creatingState=this.config.newOptions,t.show(),this.config.newOptions?(i=this._state.value,e.height=y.emptyListHeight(i,this.getRootView().refs.holder.el.offsetWidth),e.attach(y.emptyListView,i),e.show()):e.hide()):(this._state.creatingState=!1,e.isVisible()&&(t.show(),e.hide()))))},x.prototype._findBest=function(e){var i=this,t=this.data.find(function(t){return o.isEqualString(e,i._getItemText(t))});t&&this.list.selection.getId()!==t.id&&(this.list.setFocus(t.id),this.paint())},x.prototype._exsistId=function(t){var e=this;return t instanceof Array?t.every(function(t){return e.data.exists(t)}):this.data.exists(t)},x.prototype._draw=function(){if(!this.config)return g.el("div");var t=this.config,e=t.multiselection,i=t.labelPosition,n=t.hiddenLabel,o=t.required,r=t.disabled,s=t.css,a=t.helpMessage,l=t.readOnly,c=t.placeholder,u=e?null:this.data.getItem(this.list.selection.getId()),d=!this.list.selection.getId()||"object"==typeof this.list.selection.getId()&&0===this.list.selection.getId().length,h=v.getLabelStyle(this.config),t=!this.config.multiselection&&(this.config.readOnly||!this.popup.isVisible()),e=t&&this.config.htmlEnable&&this.config.template,t=t&&((null==u?void 0:u.icon)||(null==u?void 0:u.src))&&!this.config.template;return g.el("div",{"data-dhx-widget-id":this._uid,onkeydown:this._handlers.onkeydown,onkeyup:this._handlers.onkeyup,class:"dhx_widget dhx_combobox"+("left"===i?" dhx_combobox--label-inline":"")+(n?" dhx_combobox--sr_only":"")+(o?" dhx_combobox--required":"")+(r?" dhx_combobox--disabled":"")+(s?" "+s:"")},[h?g.el("label.dhx_label.dhx_combobox__label",{style:h.style,class:a?"dhx_label--with-help":"",onclick:this._handlers.oninputclick},a?[(h.label||o)&&g.el("span.dhx_label__holder",h.label),g.el("span.dhx_label-help.dxi.dxi-help-circle-outline",{tabindex:"0",role:"button",onclick:this._handlers.showHelper,id:"dhx_label__help_"+this._uid})]:h.label):null,g.el("div.dhx_combobox-input-box"+(r?".dhx_combobox-input-box--disabled":"")+(l?".dhx_combobox-input-box--readonly":"")+(this._state.currentState===b.ComboState.error?".dhx_combobox-input-box--state_error":"")+(this._state.currentState===b.ComboState.success?".dhx_combobox-input-box--state_success":""),{_ref:"holder"},[g.el("div.dhx_combobox-input__icon",{onclick:this._handlers.toggleIcon},[g.el("span"+(this.popup.isVisible()?".dxi.dxi-menu-up":".dxi.dxi-menu-down"))]),g.el("div.dhx_combobox-input-list-wrapper",{onclick:this._handlers.oninputclick},[g.el("ul.dhx_combobox-input-list",p(this._drawSelectedItems(),[g.el("li.dhx_combobox-input-list__item.dhx_combobox-input-list__item--input",[(e||t)&&u?g.el("div.dhx_combobox-input__template",{".innerHTML":e?this.config.template(u):null},t?[f.$template(u)]:null):null,g.el("input.dhx_combobox-input",{style:{opacity:e||t?0:null},oninput:this._handlers.oninput,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,_ref:"input",_key:this._uid,type:"text",placeHolder:d&&c?c:void 0,value:l&&u?this._getItemText(u):this._state.value,readOnly:l||r,required:o,"aria-label":l?"Select value":"Type or select value","aria-describedby":a?"dhx_label__help_"+this._uid:null,"aria-expanded":!0})])]))])])])},x.prototype._drawSelectedItems=function(){var t,n=this;if(!this.config.multiselection)return[];if(this.config.itemsCount){var e=this.list.selection.getId().length;return e?[g.el("li.dhx_combobox-input-list__item.dhx_combobox-tag",[g.el("span.dhx_combobox-tag__value",(t=e,"function"==typeof(e=this.config.itemsCount)?e(t):t+" "+_.default.selectedItems)),g.el("button.dhx_button.dhx_combobox-tag__action.dhx_combobox__action-clear-all",{"aria-label":"clear all"},[g.el("span.dhx_button__icon.dxi.dxi-close-circle")])])]:[]}return this.list.selection.getId().map(function(t){var e=n.data.getItem(t);if(!e)return null;var i=n._drawImageOrIcon(e);return g.el("li.dhx_combobox-input-list__item.dhx_combobox-tag",{"data-dhx-id":t},p(i||!n.config.template?[i,g.el("span.dhx_combobox-tag__value",n._getItemText(e))]:[g.el("span.dhx_combobox-tag__template",{".innerHTML":n.config.template(e)})],[g.el("button.dhx_button.dhx_button--icon.dhx_combobox-tag__action.dhx_combobox__action-remove",{type:"button","aria-label":"remove"},[g.el("span.dhx_button__icon.dxi.dxi-close-circle")])]))})},x.prototype._drawImageOrIcon=function(t){return t.src?g.el("img.dhx_combobox-tag__image",{src:t.src,alt:""}):t.icon?g.el("span.dhx_combobox-tag__icon",{class:t.icon}):null},x.prototype._getItemText=function(t){return t?t.value:null},x.prototype._updateSelectedItem=function(t){this.config.multiselection?(this.config.selectAllButton&&!this._state.unselectActive&&this.data.getLength()===t.length?(this._layout.getCell("select-unselect-all").attach(y.unselectAllView),this._state.unselectActive=!0):this.config.selectAllButton&&this._state.unselectActive&&(this._layout.getCell("select-unselect-all").attach(y.selectAllView),this._state.unselectActive=!1),this._state.value&&(this._state.value="",this._state.canDelete=0===t.length,this._filter())):this._state.value=null!==(t=this._getItemText(this.data.getItem(t)))&&void 0!==t?t:"",this.paint()},x.prototype._changePopupPosition=function(){var t=this;this.config.multiselection&&g.awaitRedraw().then(function(){t._updatePopup()})},x.prototype._updatePopup=function(){var t=this.getRootView().refs.holder.el;this.popup.getContainer().style.width=t.offsetWidth+"px";var e=this.data.getLength()*(this.config.itemHeight||36);"string"==typeof this.config.listHeight&&this.config.listHeight.includes("px")&&(this.config.listHeight=this.config.listHeight.replace("px",""));e=e<this.config.listHeight?e:this.config.listHeight;this.popup.getContainer().style.height=Number(e)+(this.config.selectAllButton&&this.config.multiselection&&this._layout.getCell("select-unselect-all").isVisible()?33:0)+(this._state.creatingState?this._layout.getCell("not-found").height:0)+"px",this.popup.show(t,{mode:"bottom",theme:this.getRootNode()})},x);function x(t,e){var i=w.call(this,t,o.extend({listHeight:224,itemHeight:36,disabled:!1,readOnly:!1,newOptions:!1,htmlEnable:!0},e))||this;i.config.itemsCount=i.config.itemsCount||i.config.showItemsCount,i.config.helpMessage=i.config.helpMessage||i.config.help,i.config.cellHeight&&36===i.config.itemHeight&&(i.config.itemHeight=i.config.cellHeight),i.config.labelInline&&(i.config.labelPosition="left"),Array.isArray(i.config.data)?(i.events=new r.EventSystem(i),i.data=new l.DataCollection({}),i.data.parse(i.config.data)):i.config.data?(i.data=i.config.data,i.events=new r.EventSystem(i),i.events.context=i):(i.events=new r.EventSystem(i),i.data=new l.DataCollection({})),i.popup=new d.Popup,i.popup.events.on(d.PopupEvents.afterShow,function(){i.paint()}),i.popup.events.on(d.PopupEvents.afterHide,function(){i.config.multiselection&&(i._state.value=""),i.paint()}),i.popup.events.on(d.PopupEvents.beforeHide,function(t){t&&i._hideOptions()}),(i.config.readonly||i.config.readOnly)&&(i.config.readOnly=i.config.readOnly||i.config.readonly,i._keyListener=new h.KeyListener),i._state={value:"",ignoreNext:!1,canDelete:!1,unselectActive:!1,currentState:b.ComboState.default,creatingState:!1},i._initHandlers(),i._createLayout(),i.config.value&&i._setValue(i.config.value,!0),i._initEvents();e=g.create({render:function(){return i._draw()},hooks:{didRedraw:function(){i.popup.isVisible()&&(i.focus(),i._configurePopup())}}});return i.mount(t,e),i}f.Combobox=i},function(t,r,e){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},a=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(r,"__esModule",{value:!0});var l=e(1),c=e(8),u=e(0),d=e(13),h=e(28),o=e(5),f=e(76),p=e(3),g=e(49),v=e(148);r.MOVE_UP=1,r.MOVE_DOWN=2;var _,i=(_=o.View,i(m,_),m.prototype._didRedraw=function(t){},m.prototype._dblClick=function(t){var e=p.locate(t);e&&(e=this.data.getItem(e).id,this.config.editable&&this.editItem(e),this.events.fire(g.ListEvents.doubleClick,[e,t]))},m.prototype._clearTouchTimer=function(){this._touch.timer&&(clearTimeout(this._touch.timer),this._touch.timer=null)},m.prototype._dragStart=function(t){var e=this;this._touch.start=!0;var i=[],n=p.locateNode(t,"data-dhx-id"),o=n&&n.getAttribute("data-dhx-id"),n=this.selection.getId();return this.config.multiselection&&n instanceof Array&&(n.map(function(t){t!==o&&e.getRootView().refs[t]&&i.push(e.getRootView().refs[t].el)}),n=a(n)),"string"==typeof n&&(n=[n]),this.config.dragMode&&!this._edited?c.dragManager.onMouseDown(t,n||[o],i):null},m.prototype.disableSelection=function(){this.selection.disable()},m.prototype.enableSelection=function(){this.selection.enable()},m.prototype.editItem=function(t){this._edited=t,this.data.getItem(this._edited)&&this.events.fire(g.ListEvents.beforeEditStart,[t])?(this.paint(),this.events.fire(g.ListEvents.afterEditStart,[t])):this._edited=null},m.prototype.editEnd=function(t,e){var i;this._edited&&(null!==t&&(i=this.data.getItem(e),this.data.update(e,s(s({},i),{value:t})),this._changed=!0),this._edited=null,this.paint())},m.prototype.getFocusItem=function(){return this.data.getItem(this._focus)},m.prototype.setFocus=function(t){this._focus!=t&&this.data.exists(t)&&(this._focus=t,this.events.fire(g.ListEvents.focusChange,[this.data.getIndex(this._focus),this._focus]),this.scrollTo(t),this.paint())},m.prototype.getFocus=function(){return this._focus},m.prototype.destructor=function(){this.events&&this.events.clear(),this.keyManager&&this.keyManager.destructor(),this.selection&&this.selection.destructor(),this.config=this.events=this.selection=this.keyManager=null,this._handlers=this._focus=this._edited=this._events=this._topOffset=this._visibleHeight=this._touch=null,this.unmount()},m.prototype.scrollTo=function(t){var e=this.getRootView();e&&e.node&&e.node.el&&void 0!==t&&(e=this.getRootNode(),this._scrollTo(t,e))},m.prototype._scrollTo=function(t,e){var i,n,o;!e||-1!==(i=this.data.getIndex(t))&&(n=this.config.virtual,o=Math.floor(i/e.children.length)||0,t=e.children[i-e.children.length*o],(n||t)&&(o=n?parseInt(this.config.itemHeight):t.clientHeight,(t=n?i*o:t.offsetTop)>=e.scrollTop+e.clientHeight-o?e.scrollTo(0,t-e.clientHeight+o):t<e.scrollTop&&e.scrollTo(0,t)))},m.prototype._renderItem=function(t,e){var i=this.config.itemHeight;if(t.$empty)return u.el("li",{class:"dhx_list-item",style:{height:i}});var n="";this.config.template&&(n=this.config.template(t)),t.html&&(n=t.html);var o=t.id==this._focus&&this.config.keyNavigation;if(t.id==this._edited)return v.getEditor(t,this).toHTML();var r=this.data.getMetaMap(t),o=s(s(s(s({},this._events),{class:"dhx_list-item"+(r&&r.selected?" dhx_list-item--selected":"")+(o?" dhx_list-item--focus":"")+(r&&r.drop&&!this._edited?" dhx_list-item--drophere":"")+(r&&r.drag&&!this._edited?" dhx_list-item--dragtarget":"")+(this.config.dragMode&&!this._edited?" dhx_list-item--drag":"")+(t.css?" "+t.css:""),"data-dhx-id":t.id,_ref:t.id.toString(),style:{height:i},_key:t.id}),this.getItemAriaAttrs(this,t)),{tabindex:o?0:-1});if(n)return n===t.html||this.config.htmlEnable?(o[".innerHTML"]=n,u.el("li",o)):u.el("li",o,n);if(this.config.$template)return u.el("li",o,[this.config.$template(t)]);t=t.text||t.value;return this.config.htmlEnable?o[".innerHTML"]=t:o.class+=" dhx_list-item--text",this.config.htmlEnable?u.el("li",o):u.el("li",o,t)},m.prototype._renderList=function(){var i=this,t=this._getRange(),e=this.data.getRawData(t[0],t[1]).map(function(t,e){return i._renderItem(t,e)});return this.config.virtual&&(e=a([u.el(".div",{style:{height:t[2]+"px"}})],e,[u.el(".div",{style:{height:t[3]+"px"}})])),u.el("ul.dhx_widget.dhx_list",s(s({style:{"max-height":this.config.height,position:"relative"},tabindex:0,class:(this.config.css||"")+(this.config.multiselection&&this.selection.getItem()?" dhx_no-select--pointer":""),"data-dhx-widget-id":this._uid},this._handlers),this._getListAriaAttrs(this.config,this.data.getLength())),e)},m.prototype.moveFocus=function(t,e){var i,n,o=this.data.getLength();o&&(n=(i=this._focus)?this.data.getIndex(i):-1,e=e||1,t===r.MOVE_DOWN?i=this.data.getId(Math.min(n+e,o-1)):t===r.MOVE_UP&&(i=this.data.getId(Math.max(n-e,0))),this.setFocus(i))},m.prototype._getRange=function(){if(this.config.virtual){var t=this._visibleHeight||parseInt(this.config.height),e=parseInt(this.config.itemHeight),i=this.data.getRawData(0,-1).length,n=i*e,o=this._topOffset,o=Math.max(0,Math.min(o,n-t)),r=Math.floor(o/e),t=Math.min(i-r,Math.floor(t/e)+5);return this._topOffset=o,[r,t+r,r*e,n-e*(t+r)]}return[0,-1,0,0]},m.prototype._getHotkeys=function(){var n=this;return{arrowDown:function(t){n.moveFocus(r.MOVE_DOWN),n._changed&&(n._changed=!1),t.preventDefault()},arrowUp:function(t){n.moveFocus(r.MOVE_UP),n._changed&&(n._changed=!1),t.preventDefault()},escape:function(){n.editEnd(null),n._changed&&(n._changed=!1)},enter:function(t){var e,i;n._changed?n._changed=!1:(i=(e=n.selection.getItem())instanceof Array?null===(i=e[0])||void 0===i?void 0:i.id:null==e?void 0:e.id,n.config.editable&&!n._edited&&(e&&i===n._focus||!e)?n.editItem(n._focus):n.selection.add(n._focus),n.events.fire(g.ListEvents.click,[n._focus,t]))},"shift+enter":function(t){n.selection.add(n._focus,!1,!0),n.events.fire(g.ListEvents.click,[n._focus,t])},"ctrl+enter":function(t){n.selection.add(n._focus,!0,!1),n.events.fire(g.ListEvents.click,[n._focus,t])},"ctrl+a":function(t){n.config.multiselection&&(t.preventDefault(),n.selection.remove(),n.data.map(function(t){return t.id}).forEach(function(t){"ctrlClick"===n.config.multiselection?n.selection.add(t,!0):n.selection.add(t)}))}}},m.prototype._initHotKey=function(){var t,e=this._getHotkeys();for(t in e)this.keyManager.addHotKey(t,e[t]);for(t in this.config.hotkeys)this.keyManager.addHotKey(t,this.config.hotkeys[t])},m.prototype.getItemAriaAttrs=function(t,e){var i,n,o;return s(s({role:"option","aria-selected":e.$selected?"true":"false"},(o=e,(n=t).config.dragMode&&!n._edited?{"aria-grabbed":Boolean(o.$dragtarget&&!n._edited).toString()}:{})),(i=t).config.editable?{"aria-roledescription":i._edited?"Press Enter to stop editing":"Double click to edit content"}:{})},m.prototype._getListAriaAttrs=function(t,e){return{role:"listbox","aria-label":"Listbox "+(t.title||"")+", count of options = "+e+"."+(t.editable?" Content is editable.":""),"aria-multiselectable":t.selection&&t.multiselection?"true":"false","aria-readonly":t.editable?"false":"true"}},m);function m(t,e){void 0===e&&(e={});var n=this,i=e.itemHeight||(e.virtual?37:null);i&&"number"==typeof i&&(i=i.toString()+"px"),(n=_.call(this,t,l.extend({itemHeight:i,keyNavigation:!0,editable:!1,selection:!0,htmlEnable:!0},e))||this)._touch={duration:350,dblDuration:300,timer:null,start:!1,timeStamp:null};e=n.config.data;e instanceof c.DataCollection?(n.data=e,n.events=e.events):(n.data=new c.DataCollection({}),n.events=n.data.events,e&&n.data.parse(e)),n.selection=new f.Selection({disabled:!n.config.selection,multiselection:n.config.multiselection},n.data,n.events),n.config.keyNavigation&&(n.keyManager=new d.KeyManager(function(t,e){return e==n._uid&&(!n._edited||n._edited&&"escape"!==t.key)}),n._initHotKey()),n.events.on(c.DataEvents.change,function(t,e,i){"setPage"===e&&n.scrollTo(n.data.getId(i[0])),n.paint()}),n.events.on(c.DataEvents.filter,function(){n.paint()}),n.events.on(h.SelectionEvents.afterUnSelect,function(){return n.paint()}),n.events.on(h.SelectionEvents.afterSelect,function(t){l.isId(t)&&n.config.selection&&n.setFocus(t),n.paint()}),n.events.on(g.ListEvents.afterEditEnd,n.editEnd.bind(n));e=function(e){return function(t){n.data.setMeta(n.data.getItem(t.target),"drop",e),n.paint()}};n.events.on(c.DragEvents.canDrop,e(!0)),n.events.on(c.DragEvents.cancelDrop,e(!1));e=function(e){return function(t){t.source.map(function(t){return n.data.setMeta(n.data.getItem(t),"drag",e)}),n.paint()}};n.events.on(c.DragEvents.dragStart,e(!0)),n.events.on(c.DragEvents.afterDrag,e(!1)),n._handlers={onmousedown:function(t){n._dragStart(t)},ontouchstart:function(t){n._touch.timer=setTimeout(function(){n._dragStart(t)},n._touch.duration),n._touch.timeStamp?(n._touch.dblDuration>=n._touch.timeStamp-+t.timeStamp.toFixed()&&(t.preventDefault(),n._dblClick(t)),n._touch.timeStamp=null):n._touch.timeStamp=+t.timeStamp.toFixed(),setTimeout(function(){n._touch.timeStamp=null},n._touch.dblDuration)},ontouchmove:function(t){n._touch.start&&t.preventDefault(),n._clearTouchTimer()},ontouchend:function(){n._touch.start=!1,n._clearTouchTimer()},ondragstart:function(){return!(n.config.dragMode&&!n._edited)&&null},oncontextmenu:function(t){var e=null===(e=n.data.getItem(p.locate(t)))||void 0===e?void 0:e.id;l.isId(e)&&n.events.fire(g.ListEvents.itemRightClick,[e,t])},onclick:function(t){var e=null===(e=n.data.getItem(p.locate(t)))||void 0===e?void 0:e.id;l.isId(e)&&(n.selection.add(e,t.ctrlKey||t.metaKey,t.shiftKey),n.config.selection&&(n._focus=e),n.events.fire(g.ListEvents.click,[e,t]),n.paint())},ondblclick:function(t){n._dblClick(t)},onscroll:function(t){n.config.virtual&&(n._topOffset=t.target.scrollTop,n._visibleHeight=t.target.offsetHeight,n.paint())},onmouseover:function(t){var e=null===(e=n.data.getItem(p.locate(t)))||void 0===e?void 0:e.id;l.isId(e)&&e!==p.locate(t.relatedTarget)&&n.events.fire(g.ListEvents.itemMouseOver,[e,t])}};e=n.config.eventHandlers;if(e)for(var o=0,r=Object.entries(e);o<r.length;o++){var s=r[o],a=s[0],s=s[1];n._handlers[a]=p.eventHandler(function(t){return p.locate(t)},s,n._handlers[a])}n.config.dragMode&&c.dragManager.setItem(n._uid,n),n._topOffset=n._visibleHeight=0;e=u.create({render:function(){return n._renderList()},hooks:{didMount:function(t){n.config.virtual&&(n._visibleHeight=t.node.el.offsetHeight)},didRedraw:function(t){return n._didRedraw(t)}}});return n.mount(t,e),n}r.List=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(28),o=i(8),r=i(1),i=(s.prototype.enable=function(){this.config.disabled=!1},s.prototype.disable=function(){this.remove(),this.config.disabled=!0},s.prototype.getId=function(){return this.config.multiselection?this._selected:this._selected[0]},s.prototype.getItem=function(){var e=this;return this.config.multiselection?this._selected.map(function(t){return e._data.getItem(t)}):this._selected.length?this._data.getItem(this._selected[0]):null},s.prototype.contains=function(t){return r.isId(t)?this._selected.includes(t):0<this._selected.length},s.prototype.remove=function(t,e){var i=this;r.isId(t)?this._unselectItem(t,e):(this._selected.forEach(function(t){return i._unselectItem(t,e)}),this._selected=[])},s.prototype.add=function(t,e,i,n){var o,r=this;this.config.disabled||(void 0!==t?(o=this.config.multiselection,i&&this._selected.length&&o?this._addMulti(t,n):this._addSingle(t,o&&("ctrlClick"!==o||e),n)):this._data.serialize().filter(function(t){t=t.id;return!r._selected.includes(t)}).forEach(function(t){t=t.id;r._addMulti(t,n)}))},s.prototype.destructor=function(){var e=this;this._selected.forEach(function(t){return e._unselectItem(t,!0)})},s.prototype._addMulti=function(t,e){var i=this._selected[this._selected.length-1],n=this._data.getIndex(i),o=this._data.getIndex(t);for(o<n&&(n=(t=[o,n])[0],o=t[1]);n<=o;n++){var r=this._data.getId(n);this._selectItem(r,e)}},s.prototype._addSingle=function(e,t,i){var n=this;t||this._selected.forEach(function(t){t!=e&&n._unselectItem(t)}),t&&this._selected.includes(e)?this._unselectItem(e,i):this._selectItem(e,i)},s.prototype._selectItem=function(t,e){var i=this._data.getItem(t);i&&!this._data.getMeta(i,"selected")&&(e||this.events.fire(n.SelectionEvents.beforeSelect,[t]))&&(this._selected.push(t),this._data.setMeta(i,"selected",!0),e||this.events.fire(n.SelectionEvents.afterSelect,[t]))},s.prototype._unselectItem=function(e,t){(t||this.events.fire(n.SelectionEvents.beforeUnSelect,[e]))&&(this._selected=this._selected.filter(function(t){return t!==e}),this._data.setMeta(this._data.getItem(e),"selected",!1),t||this.events.fire(n.SelectionEvents.afterUnSelect,[e]))},s);function s(t,e,i){var n=this;this.config=t,this.events=i,this._data=e,this._selected=[],this._data.events.on(o.DataEvents.removeAll,function(){n._selected=[]}),"string"==typeof this.config.multiselection&&(["click","ctrlClick"].includes(this.config.multiselection)||(this.config.multiselection=!1)),this._data.events.on(o.DataEvents.beforeRemove,function(t){var e;n._nextSelection=null,1===n._selected.length&&(e=n._data.getIndex(t.id),1<(t=n._data.getLength())&&(e=t==e-1?e-1:e+1,n._nextSelection=n._data.getId(e)))}),this._data.events.on(o.DataEvents.afterRemove,function(t){t=n._selected.indexOf(t.id);-1!==t&&n._selected.splice(t,1),r.isId(n._nextSelection)&&(n.add(n._nextSelection),n._nextSelection=null)})}e.Selection=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(50);e.selectAllView=function(){return n.el(".dhx_list-item.dhx_combobox-options__item.dhx_combobox-options__item--select-all.dhx_combobox__action-select-all",o.default.selectAll)},e.unselectAllView=function(){return n.el(".dhx_list-item.dhx_combobox-options__item.dhx_combobox-options__item--select-all.dhx_combobox__action-select-all",o.default.unselectAll)},e.emptyListView=function(t){return n.el("ul.dhx_list",[n.el("li.dhx_list-item.dhx_combobox-options__item"+(t?".dhx_combobox-options__action-create-option":""),{},t?o.default.createItem+' "'+t+'"':o.default.notFound)])},e.emptyListHeight=function(t,e){var i=document.createElement("canvas").getContext("2d",{alpha:!1});return i.font="normal 14px Roboto",t=t?o.default.createItem+' "'+t+'"':o.default.notFound,13+20*Math.ceil(i.measureText(t).width/(e-16))}},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.ComboboxEvents||(e.ComboboxEvents={})).beforeChange="beforeChange",n.change="change",n.focus="focus",n.blur="blur",n.keydown="keydown",n.input="input",n.beforeOpen="beforeOpen",n.afterOpen="afterOpen",n.beforeClose="beforeClose",n.afterClose="afterClose",n.open="open",n.close="close",(e=e.ComboState||(e.ComboState={}))[e.default=0]="default",e[e.error=1]="error",e[e.success=2]="success"},function(t,e,i){"use strict";var x=this&&this.__assign||function(){return(x=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},E=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var C=i(0),S=i(9),k=i(27),I=i(80),O=i(15),P=i(20);e.getFixedColsHeader=function(t,e,i){if((i!==S.Split.left||"number"==typeof t.leftSplit&&t.fixedColumns.left.length)&&(i!==S.Split.right||"number"==typeof t.rightSplit&&t.fixedColumns.right.length)){var n=t.leftSplit,o=t.rightSplit,r=t.$positions,s=t.$totalWidth,a=t.$scrollBarWidth,l=i===S.Split.right,c=l?t.fixedColumns.right:t.fixedColumns.left,u=O.getTotalWidth(c),c=I.getFixedRows(x(x({},t),{currentColumns:c,$positions:x(x({},r),{xStart:0,xEnd:l?o:n}),scroll:{top:0,left:0},filteredColumns:c}),x(x({},e),{name:"header",position:"top",shifts:{x:0,y:0}}),i),i=x(x({},e),{name:"header",position:"top"});return C.el(".dhx_"+i.name+"-fixed-cols",x({onwheel:O.scrollFixedColsAndRows,class:l?"dhx_grid__cols_right--fixed":"dhx_grid__cols_left--fixed",style:{position:"absolute",top:0,left:l?s<e.wrapper.width-a.y-P.BORDERS?s-u:e.wrapper.width-u-a.y-P.BORDERS:0,width:u,overflow:"hidden"}},{role:"rowgroup","aria-rowcount":c.length}),c.body)}},e.getFixedCols=function(t,e,i,n){if((i!==S.Split.left||"number"==typeof t.leftSplit&&t.fixedColumns.left.length)&&(i!==S.Split.right||"number"==typeof t.rightSplit&&t.fixedColumns.right.length)){var o=t.leftSplit,r=t.rightSplit,s=t.$totalWidth,a=t.$totalHeight,l=t.headerHeight,c=t.footerHeight,u=t.$positions,d=t.scroll,h=t.data,f=t.$scrollBarWidth,p=i===S.Split.right,g=a+l+c,v=g>e.gridBodyHeight?t.$footer?g-f.x:e.gridBodyHeight:g<e.gridBodyHeight-f.x?g:t.$footer?e.gridBodyHeight:e.gridBodyHeight-f.x,_=p?t.fixedColumns.right:t.fixedColumns.left,m=O.getTotalWidth(_),y=p?"rightFixedCols":"leftFixedCols",b=k.getCells(x(x({},t),{filteredColumns:_,$renderFrom:y,$positions:x(x({},u),{xStart:0,xEnd:p?r:o})})),c=e.sticky,g=x(x({},e),{name:"footer",position:"bottom"}),o=I.getRows(x(x({},t),{currentColumns:_,$positions:x(x({},u),{xStart:0,xEnd:p?r:o})}),x(x({},e),{name:"footer",position:"bottom"})),w=0;o.forEach(function(t){return w+=t.attrs.style.height});_=I.getFixedSpans(x(x({},t),{filteredColumns:_}),x(x({},e),{name:"footer",position:"bottom"}),i),i=function(t){return{role:"rowgroup","aria-rowcount":t}},o=c?C.el(".dhx_"+g.name+"-fixed-cols",x({onwheel:O.scrollFixedColsAndRows,class:p?"dhx_grid__cols_right--fixed":"dhx_grid__cols_left--fixed",style:{position:"absolute",top:v<e.gridBodyHeight?v-w:null,left:p?s<e.wrapper.width-f.y-P.BORDERS?s-m:e.wrapper.width-m-f.y-P.BORDERS:0,bottom:v>=e.gridBodyHeight?(c?f.x:0)+"px":null}},i(o.length)),[o,C.el("span.dhx_span-spans",{class:"dhx_footer-spans",role:"presentation"},_)]):null,_=u,u=P.getEvents(t,p?S.Split.right:S.Split.left),n=k.getSpans(x(x({},t),{$renderFrom:y}),n||(p?S.Split.right:S.Split.left));return[C.el(".dhx_grid-fixed-cols-wrap",x(x({style:{left:p?s<e.wrapper.width-f.y-P.BORDERS?s-m:e.wrapper.width-m-f.y-P.BORDERS:0,height:v>=e.gridBodyHeight?(c?e.gridBodyHeight:e.gridBodyHeight+l)-f.x:v,paddingTop:l,overflow:"hidden",width:m}},u),{role:"presentation","aria-label":"Fixed column"}),[C.el(".dhx_grid-fixed-cols",x(x({onwheel:O.scrollFixedColsAndRows,class:p?"dhx_grid__cols_right--fixed":"dhx_grid__cols_left--fixed",style:{top:-d.top+l-1+"px",paddingTop:e.shifts.y,height:a,position:"absolute"},_flags:C.KEYED_LIST},k.getHandlers(_.yStart,_.xStart,t)),i(h.length)),E(b,[n&&C.el("span.dhx_span-spans",{role:"presentation"},[n])])),p?C.el(".dhx_grid__cols-border--frozen",{role:"presentation",style:{left:0}}):C.el(".dhx_grid__cols-border--frozen",{role:"presentation",style:{right:0}})]),t.$footer?o:null]}}},function(t,e,i){"use strict";var I=this&&this.__assign||function(){return(I=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},x=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var O=i(0),P=i(32),D=i(15),V=i(9),E=i(27),C=i(79),S=i(20),M=i(1),T=2;function n(t,e,i,n){i&&(i.toLocaleLowerCase().includes("touch")?e._events:e.events).fire(i,[t,n])}function H(t,e,i){return{onclick:[n,t,i,V.GridEvents[e+"CellClick"]],onmouseover:[n,t,i,V.GridEvents[e+"CellMouseOver"]],onmousedown:[n,t,i,V.GridEvents[e+"CellMouseDown"]],ontouchstart:[n,t,i,V.GridEvents[e+"CellMouseDown"]],ondblclick:[n,t,i,V.GridEvents[e+"CellDblClick"]],oncontextmenu:[n,t,i,V.GridEvents[e+"CellRightClick"]],ontouchmove:[n,t,i,V.GridSystemEvents[e+"CellTouchMove"]],ontouchend:[n,t,i,V.GridSystemEvents[e+"CelltouchEnd"]]}}function F(t,e,i,n,o,r){void 0===o&&(o="");var s=e.type?"dhx_"+e.type+"-cell":"dhx_string-cell",t=i.content[t.content]&&i.content[t.content].toHtml(e,i),a={};return i.filteredColumns.forEach(function(t){var e=!!i.content[t[n][r].content];a[t.id]=e&&i.content[t[n][r].content].toHtml(t,i)||t[n][r].text}),O.el("."+s,{style:{class:o.trim(),padding:0}},[t&&("string"==typeof t||"number"==typeof t?O.el("div",{class:"dhx_grid-footer-cell-text",role:"presentation",".innerHTML":e.template&&"string"==typeof t?e.template(t,a,e):t}):t)])}function d(f,t){if(!f.data||!f.filteredColumns)return[];var e,p,g=f.$positions,v=t.name,_=f.currentColumns,m=f[v+"RowHeight"]||40,y=(e=v,t=(t=_).map(function(t){return t[e]||[{}]}),D.transpose(t)),b=1;return y.map(function(t,h){return O.el(".dhx_"+v+"-row",I({style:{height:m}},{role:"row","aria-rowindex":h+1}),t.map(function(n,t){var e=n.css||"",i=_[t],o=g.xStart+t+1,r="dxi dxi-sort-variant dhx_grid-sort-icon",s="none";f.sortBy&&""+i.id===f.sortBy&&!n.content&&(r+=" dhx_grid-sort-icon--"+(l=f.sortDir||"asc"),e+=" dhx_grid-"+v+"-cell--sorted ",s="asc"===l?"ascending":"descending");var a=D.isSortable(f,i)&&n.text&&"footer"!==v&&!1!==n.headerSort;a&&(e+=" dhx_grid-header-cell--sortable");var l=0===t?"dhx_first-column-cell":"",t=t===_.length-1?"dhx_last-column-cell":"";n.content||(n.align?e+=" dhx_grid-header-cell--align_"+n.align+" ":e+=" dhx_grid-header-cell--"+("number"===i.type||"percent"===i.type||"date"===i.type?"align_right":"align_left")+" "),e+=l+" "+t;t=(void 0!==i.resizable?i:f).resizable;t&&(d=f.rightSplit&&f.$scrollBarWidth.xState&&f.fixedColumns.right.includes(i),t=O.el("div",{class:"dhx_resizer_grip_wrap","aria-hidden":"true"},[O.el("div",{class:"dhx_resizer_grip"+(d?" dhx_resizer_grip--left":" dhx_resizer_grip--right"),dhx_resized:i.id,style:{height:100*y.length+"%"}},[O.el("div",{class:"dhx_resizer_grip_line"})])]),(d=i.header&&(null===(c=i.header[0])||void 0===c?void 0:c.colspan))&&(p=d,b=1),p&&b!==p&&(0===h&&(t=null),b++),"footer"===v&&(t=null)),n.align&&(e+=" dhx_align-"+n.align);var c=function(t,e,i){e={"aria-colindex":e};return"footer"===t||n.content?e.role="gridcell":(e.role="columnheader",e["aria-sort"]=i),e};if(n.content)return O.el(".dhx_grid-"+v+"-cell.dhx_grid-custom-content-cell",I(I({class:e.trim(),"data-dhx-id":i.id,"data-dhx-text-id":n.id,_key:i.id,style:{width:i.$width,height:"footer"===v?m+T/2+"px":m+"px"}},H(i,v,f)),c(v,o,s)),[F(n,i,f,v,"",h),t||null]);var u,d="dhx_grid-header-cell-text_content";return f.autoHeight&&(d+=" dhx_grid-header-cell-text_content-auto-height"),O.el(".dhx_grid-"+v+"-cell",I(I({class:e.trim(),"data-dhx-id":i.id,"data-dhx-text-id":n.id,_key:i.id,style:{width:i.$width,height:"footer"===v?m+T/2+"px":m+"px"}},H(i,v,f)),c(v,o,s)),[O.el("div.dhx_grid-header-cell-text",{role:"presentation"},[O.el("span",I(I({class:d},(u=n.text,a?{role:"button","aria-label":"Sort by "+u}:{})),{".innerHTML":n.text})),t||null]),a&&O.el("div",{class:r,"aria-hidden":"true"})])}))})}function h(y,b,w){var x=y.columns,E=y.filteredColumns,t=D.transpose(E.map(function(t){return t[b.name]||[]})),C=y[b.name+"RowHeight"]||40,S=b.name,k=0;return t.map(function(t,m){return k=0,O.el(".dhx_span-row",{style:{top:C*m+"px",height:C},class:"dhx_header-row","aria-hidden":"true"},t.map(function(t,e){var i,n=E[e];if(w===V.Split.right&&0===e&&!t.colspan){var o=D.transpose(x.map(function(t){return t[b.name]||[]}));t:for(var r=0;r<o[m].length;r++){var s=o[m][r];if(1<s.colspan)for(var a=x.slice(r,r+s.colspan),l=0;l<a.length;l++)if(a[l].id===n.id){i={cell:s,col:x[r],widthBefore:P.getWidth(a,l,0),isLastCol:r+s.colspan>=x.length};break t}}}var c=(null==i?void 0:i.cell)||t,u=(null==i?void 0:i.col)||n;k+=u.hidden?0:u.$width;var d=0===e?"dhx_first-column-cell":"",h=w?1:y.fixedColumns.right.length+1,f=t.colspan&&P.getReducedColspan(x,n.id,t.colspan),p=null!=i&&i.isLastCol||e===E.length-h||(f||1)+(e-1)>=E.length-h?"dhx_last-column-cell":"",g=C;c.rowspan&&(g=g*c.rowspan-1),"footer"===b.name&&1<c.rowspan&&g++;var v=D.isSortable(y,u)&&c.rowspan&&c.text&&"footer"!==b.name&&!1!==c.headerSort,_="dxi dxi-sort-variant dhx_grid-sort-icon";y.sortBy&&""+u.id===y.sortBy&&!c.content&&(_+=" dhx_grid-sort-icon--"+(y.sortDir||"asc"));t=u.align?"dhx_align-"+u.align:"number"!==u.type&&"percent"!==u.type&&"date"!==u.type||c.colspan?"dhx_align-left":"dhx_align-right",h="dhx_grid-header-cell "+d+" "+p+" "+(c.rowspan?"dhx_span-cell__rowspan":"")+" "+(c.align?"dhx_align-"+c.align:t)+" "+(c.css||"");v&&(h+=" dhx_grid-header-cell--sortable"),c.content||(c.align?h+=" dhx_grid-header-cell--align_"+c.align+" ":h+=" dhx_grid-header-cell--"+("number"===u.type||"percent"===u.type||"date"===u.type?"align_right":"align_left")+" ");d=null;c.content&&((d=F(c,u,y,S,h,m)).attrs.style=I(I({},d.attrs.style),{width:"100%",borderRight:"0"}));p="";0<k-u.$width&&(p="var(--dhx-border)");t="dhx_grid-header-cell-text_content";return y.autoHeight&&(t+=" dhx_grid-header-cell-text_content-auto-height"),c.colspan||c.rowspan?O.el(".dhx_span-cell",I({style:{width:P.getWidth(x,c.colspan,M.findIndex(x,function(t){return t.id===u.id})),height:g,left:k-u.$width-((null==i?void 0:i.widthBefore)||0),borderLeft:p,top:C*m},class:h.trim(),"data-dhx-id":u.id,"data-dhx-text-id":c.id},H(u,S,y)),[d||c.rowspan?O.el("div.dhx_grid-header-cell-text",{role:"presentation"},[O.el("span",{class:t,".innerHTML":c.text})]):O.el("span",{class:t,".innerHTML":c.text}),v&&O.el("div",{class:_}),w===V.Split.left&&f&&e+f>E.length||i?O.el(".dhx_grid__cols-border--frozen",{role:"presentation",style:{left:((null==i?void 0:i.widthBefore)||P.getWidth(E,E.length-e,e))-T/2}}):null]):null}).filter(function(t){return t}))})}function k(t){return{role:"rowgroup","aria-rowcount":t}}e.getRows=d,e.getFixedSpans=h,e.getFixedRows=function(i,n,t){var o,r,s=i.leftSplit,e=i.$totalWidth,a=d(i,n),l=h(i,n,t),t=null;"footer"!==n.name||n.sticky||(o=i.rightSplit,r=i.fixedColumns,t=x((u=function(t){void 0===t&&(t=!1);var e=t?r.right:r.left;return!t&&0<=s||t&&0<=o?d(I(I({},i),{currentColumns:e,$positions:I(I({},i.$positions),{xStart:0,xEnd:t?o:s})}),n):[]})(),u(!0)));var c,u=((u={position:"sticky"})[n.position]=0,u);return n.sticky||(u.left=-i.scroll.left,c=-i.scroll.left,u.position="relative"),O.el(".dhx_"+n.name+"-wrapper"+(i.rightSplit?".dhx_grid__rows_right--fixed":""),{class:n.sticky?"":"dhx_compatible-"+n.name,style:I(I({},u),{left:n.sticky?c:0,height:"footer"===n.name?i[n.name+"Height"]+T/2:i[n.name+"Height"],width:n.sticky?e:n.wrapper.width-T}),role:"presentation"},[O.el(".dhx_grid-"+n.name+(s?".dhx_grid_fixed_left":""),{style:{height:"footer"===n.name?i[n.name+"Height"]+T/2:i[n.name+"Height"],left:c,paddingLeft:n.shifts.x,width:e},role:"presentation"},[O.el(".dhx_"+n.name+"-rows",I({},k(x(a).length)),x(a)),O.el(".dhx_"+n.name+"-spans",{style:{marginLeft:-n.shifts.x},class:"dhx_"+n.name+"-rows",role:"presentation"},l),t&&O.el(".dhx_"+n.name+"-fixed-cols",{style:{position:"absolute",top:0,left:i.scroll.left+"px",height:"100%"}},t)]),O.el("div",{style:{width:e},role:"presentation"})])},e.getFixedDataRows=function(e,i,n){if(!(n===V.Split.top&&"number"!=typeof e.topSplit||n===V.Split.bottom&&"number"!=typeof e.bottomSplit)){var t=e.$totalWidth,o=e.topSplit,r=e.bottomSplit,s=e.$positions,a=e.data,l=e.$totalHeight,c=e.$width,u=e.headerHeight,d=e.footerHeight,h=e.$scrollBarWidth,f=n===V.Split.bottom,p=f?e.fixedRows.bottom:e.fixedRows.top,g=f?"bottomFixedRows":"topFixedRows",v=E.getCells(I(I({},e),{data:p,$renderFrom:g,$positions:I(I({},s),{yStart:0,yEnd:f?r:o})})),_=S.getEvents(e,f?V.Split.bottom:V.Split.top),m=p.reduce(function(t,e){return t+e.$height},0),y=E.getSpans(I(I({},e),{$renderFrom:g,data:a}),f?V.Split.bottom:V.Split.top),b=D.getTotalHeight(e.fixedRows.bottom),w=function(t){return C.getFixedCols(I(I({},e),{headerHeight:0,data:p,$renderFrom:g,scroll:I(I({},e.scroll),{top:-1}),$positions:I(I({},s),{yStart:0,yEnd:f?r:o}),$totalHeight:m,$data:a}),I(I({},i),{shifts:I(I({},i.shifts),{y:0})}),t,n)||[]},w=x(w(V.Split.left),w(V.Split.right));return[O.el(".dhx_grid-fixed-data-rows-wrap",{class:f?"dhx_grid__rows_bottom--fixed":"",style:{top:f?l<i.wrapper.height-h.x-T?l+u-b+T/2:i.wrapper.height-b-d-T/2-h.x:u,overflow:"hidden",height:m>i.wrapper.height?i.wrapper.height:m,width:t+h.y+T<c?t:c-h.y-T}},x([O.el(".dhx_grid-fixed-cols",I(I({onwheel:D.scrollFixedColsAndRows,style:{left:-e.scroll.left+"px",paddingLeft:i.shifts.x,position:"absolute",width:t},_flags:O.KEYED_LIST},E.getHandlers(0,s.xStart,e)),k(a.length)),[O.el(".dhx_grid-fixed-rows",I({class:e.rightSplit?"dhx_grid__rows_right--fixed":""},_),x(v,[y&&O.el(".dhx_span-spans",{role:"presentation"},[y])]))])],w,[e.bottomSplit?O.el(".dhx_grid__rows-border--frozen",{role:"presentation"}):null]))]}}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(1),l=i(0),c=i(3),u=i(10),d=i(22),o=(s=d.Navbar,o(h,s),h.prototype.getState=function(t){if(!a.isDefined(t)||this.data.getItem(t)){var e,i={};for(e in this.data.eachChild(this.data.getRoot(),function(t){t.twoState&&!t.group?i[t.id]=t.active:"input"!==t.type&&"selectButton"!==t.type&&"datePicker"!==t.type||(i[t.id]=t.value)},!1),this._groups)this._groups[e].active&&(i[e]=this._groups[e].active);return a.isId(t)?i[t]:i}},h.prototype.setState=function(n){var o,t,r=this;for(t in n)!function(e){if(r._groups&&r._groups[e])r._groups[e].active&&(r.data.update(r._groups[e].active,{active:!1}),r._groups[e].active=n[e],r.data.update(n[e],{active:!0}));else{var t=r.data.getItem(e);switch(t.type){case"input":r.data.update(e,{value:n[e]});break;case"selectButton":var i=null===(o=t.items)||void 0===o?void 0:o.find(function(t){return t.value===n[e]});r.data.update(e,{value:n[e],icon:null==i?void 0:i.icon});break;case"datePicker":t.$calendar?t.$calendar.setValue(n[e]):r.data.update(e,{value:n[e]});break;default:r.data.update(e,{active:n[e]})}}}(t)},h.prototype.setFocus=function(t){!this.data.getItem(t)||"input"!==this.data.getItem(t).type||(t=this.getRootNode().querySelector('[data-dhx-id="'+t+'"]'))&&t.focus()},h.prototype._customHandlers=function(){var i=this;return{input:function(t){var e=c.locate(t);i.data.update(e,{value:t.target.value})},tooltip:function(t){var e=c.locateNode(t);e&&(t=e.getAttribute("data-dhx-id"),null!=(t=i.data.getItem(t))&&t.tooltip&&u.tooltip(t.tooltip,{node:e,position:u.Position.bottom}))}}},h.prototype._getFactory=function(){return d.createFactory({widget:this,defaultType:"navItem",allowedTypes:["button","imageButton","selectButton","navItem","menuItem","separator","spacer","title","input","customHTML","datePicker","customHTMLButton"],widgetName:"toolbar"})},h.prototype._draw=function(t){var i=this,e=this.data.getLength()?this.data.reduce(function(t,e){switch(e.type){case"title":return t||20;case"button":return"small"===e.size&&(!t||t<=28)?28:t||32;default:return 32}},0)+24:null;return l.el("nav.dhx_widget.dhx_toolbar",{style:{height:e},class:this.config.css||""},[l.el("ul.dhx_navbar.dhx_navbar--horizontal",r(r({"data-dhx-widget-id":this._uid,tabindex:0},{role:"toolbar","aria-label":t||""}),{onclick:this._handlers.onclick,onmousedown:this._handlers.onmousedown,oninput:this._handlers.input,onmouseover:this._handlers.tooltip,_hooks:{didInsert:function(t){t.el.addEventListener("keyup",function(t){var e;9!==t.which||(e=c.locateNode(document.activeElement))&&(t=e.getAttribute("data-dhx-id"),null!=(t=i.data.getItem(t))&&t.tooltip&&u.tooltip(t.tooltip,{node:e,position:u.Position.bottom,force:!0}))},!0)}}}),this.data.map(function(t){return i._factory(t)},this.data.getRoot(),!1))])},h.prototype._getMode=function(t,e){return t.id===e?"bottom":"right"},h.prototype._close=function(t){this._activePosition=null,this._currentRoot=null,s.prototype._close.call(this,t)},h.prototype._setRoot=function(t){this.data.getParent(t)===this.data.getRoot()&&(this._currentRoot=t)},h);function h(t,e){var i=s.call(this,t,a.extend({navigationType:"click",$name:"toolbar"},e))||this;i._currentRoot=null;return i.mount(t,l.create({render:function(){return i._draw(t)}})),i}e.Toolbar=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.grayShades=["#000000","#4C4C4C","#666666","#808080","#999999","#B3B3B3","#CCCCCC","#E6E6E6","#F2F2F2","#FFFFFF"],e.palette=[["#D4DAE4","#B0B8CD","#949DB1","#727A8C","#5E6677","#3F4757","#1D2534"],["#FFCDD2","#FE9998","#F35C4E","#E94633","#D73C2D","#CA3626","#BB2B1A"],["#F9E6AD","#F4D679","#EDB90F","#EAA100","#EA8F00","#EA7E00","#EA5D00"],["#BCE4CE","#90D2AF","#33B579","#36955F","#247346","#1D5B38","#17492D"],["#BDF0E9","#92E7DC","#02D7C5","#11B3A5","#018B80","#026B60","#024F43"],["#B3E5FC","#81D4FA","#29B6F6","#039BE5","#0288D1","#0277BD","#01579B"],["#AEC1FF","#88A3F9","#5874CD","#2349AE","#163FA2","#083596","#002381"],["#C5C0DA","#9F97C1","#7E6BAD","#584A8F","#4F4083","#473776","#3A265F"],["#D6BDCC","#C492AC","#A9537C","#963A64","#81355A","#6E3051","#4C2640"],["#D2C5C1","#B4A09A","#826358","#624339","#5D4037","#4E342E","#3E2723"]]},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.ColorpickerEvents||(e.ColorpickerEvents={})).beforeChange="beforeChange",e.change="change",e.apply="apply",e.cancelClick="cancelClick",e.modeChange="modeChange",e.selectClick="selectClick",e.colorChange="colorChange",e.viewChange="viewChange"},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),c=this&&this.__assign||function(){return(c=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(0),a=i(2),l=i(5),u=i(8),h=i(186),d=i(85),f=i(25),p=i(189),g=i(87),v=i(92),_=i(6),m=i(203),y=i(1),b=i(204),o=(r=l.View,o(w,r),w.prototype.getSeries=function(t){return this._series[t]},w.prototype.eachSeries=function(t){var e,i=[];for(e in this._series)i.push(t.call(this,this._series[e]));return i},w.prototype.destructor=function(){this._tooltip.destructor(),this.events.clear(),this.unmount()},w.prototype.setConfig=function(r){var s,a=this;if("calendarHeatMap"===r.type)throw new TypeError("The calendarHeatMap chart type is a pro functionality");if(this.config=r,this._layers.clear(),this._series={},this._scales={},r.scales)for(var t in r.scales){var e=c({},r.scales[t]);void 0!==r.scales[t].min&&(s=r.scales[t].min),e.type=e.type||this._detectScaleType(e,t),r.scales.radial&&"radial"!==t&&(e.hidden=!0),this._setScale(e,t)}var i,l=new v.default;this._layers.add(l),null!==(i=r.series)&&void 0!==i&&i.forEach(function(t,e){var i;void 0!==t.baseLine&&t.baseLine<s&&(t.baseLine=void 0);var n=c({},t);switch(n.type=n.type||r.type,n.type){case"bar":case"xbar":case"area":case"splineArea":n.color||(n.color=n.fill||_.getDefaultColor(e)),n.fill||(n.fill=n.color||_.getDefaultColor(e));break;case"treeMap":n.legendType=(null===(i=r.legend)||void 0===i?void 0:i.type)||"groupName",null!==(i=null===(i=r.legend)||void 0===i?void 0:i.treeSeries)&&void 0!==i&&i.map(function(t,e){var i;t.active=null===(i=t.active)||void 0===i||i,t.id=null!==(i=t.id)&&void 0!==i?i:y.uid(),t.color||(t.color=_.getDefaultColor(e,"range"===n.legendType))}),n.treeSeries=null===(i=r.legend)||void 0===i?void 0:i.treeSeries;break;case"scatter":n.pointColor||(n.pointColor=n.color||_.getDefaultColor(e))}t=g.default[n.type];(n.barWidth||a.config.barWidth)&&(n.barWidth=n.barWidth||a.config.barWidth);var o=new t(a.data,n,a.events),t=_.getScales(r.scales);(1<t.length&&"radial"!==t[0]||"radial"===t[0]?t:["bottom","left"]).forEach(function(t){var e=a._scales[t];e&&(o.addScale(t,e),n.stacked?e.add(l):e.add(o))}),a._series[o.id]=o,(n.stacked?l:a._layers).add(o)}),r.legend&&((i=c({},r.legend)).series&&(i.$seriesInfo=i.series.map(function(t){return a._series[t]})),i=new d.Legend(this.data,i,this.events),this._layers.add(i)),this.paint()},w.prototype._setScale=function(t,e){t.type&&("radial"!==(t=new p.default[t.type](this.data,t,e)).config.type&&this._layers.add(t.scaleGrid()),this._layers.add(t),this._scales[e]=t)},w.prototype._detectScaleType=function(t,e){return"radial"===e?e:t.text?"text":"numeric"},w.prototype._initEvents=function(){var i=this;this.events.on(f.ChartEvents.toggleSeries,function(t,e){"treeMap"===i.config.type?(Object.values(i._series)[0].toggle(t),i.paint()):e?(e=i._series[Object.keys(i._series)[0]])&&(e.toggle(t),i.paint()):i._series[t]&&(i._series[t].toggle(),i.paint())},this),this.events.on(u.DataEvents.change,function(){return i.paint()}),this.events.on(u.DataEvents.filter,function(){return i.paint()})},w);function w(t,i){var e;void 0===i&&(i={});var d=r.call(this,null,i)||this;d._width=0,d._height=0,d._left=0,d._top=0;var n={};i.maxPoints&&(n.approximate={value:null===(e=i.series)||void 0===e?void 0:e.map(function(t){return t.value}),maxNum:i.maxPoints}),Array.isArray(i.data)?(d.events=new a.EventSystem(d),d.data=new("treeMap"===i.type?u.TreeCollection:u.DataCollection)(n,d.events),d.data.parse(i.data)):i.data&&i.data.events?(d.data=i.data,d.events=d.data.events,d.events.context=d):(d.events=new a.EventSystem(d),d.data=new("treeMap"===i.type?u.TreeCollection:u.DataCollection)(n,d.events)),d._globalHTMLHandlers={onmousemove:function(t){var e=d._layers.getSizes(),i=e.left,n=e.top,o=e.bottom,r=e.right,s=t.pageX,e=t.pageY,t=d.getRootView().node.el.getBoundingClientRect();d._left=t.left+window.pageXOffset,d._top=t.top+window.pageYOffset;s=s-i-d._left,e=e-n-d._top;0<=s&&s<=d._width-r-i&&0<=e&&e<=d._height-o-n?d.events.fire(f.ChartEvents.chartMouseMove,[s,e,d._left+i,d._top+n]):d.events.fire(f.ChartEvents.chartMouseLeave)},onmouseleave:function(){return d.events.fire(f.ChartEvents.chartMouseLeave)}},d._layers=new h.ComposeLayer,d.setConfig(i),d._initEvents(),d._tooltip=new m.Tooltip(d);n=s.create({render:function(){if(!d.data.getLength())return s.el("div");function t(t){function o(t){return t._isXDirection?"X":"Y"}function r(t){return t.title||t.text||t.value||""}function s(t){return t.steps&&t.steps.length?t.steps[0]:t.min||0}function a(t){return t.steps&&t.steps.length?t.steps[t.steps.length-1]:t.max||t.maxPoints||"max"}function l(t,e){return e[t]}var c=d._scales,i=t.series,n=t.type,u=((n=n||(i&&i.length&&i[0]&&i[0].type||""))||"")+" chart.";return c&&Object.keys(c).forEach(function(t){var e,i=c[t],n=i._axis||i.config;"radial"===t?(e=i._data._order,u+=" X scale "+r(i.config)+": "+t+" axis from "+l(i.config.value,e[0])+" to "+l(i.config.value,e[e.length-1])+".",u+=" "+o(i)+" scale: axis from "+s(n)+" to "+a(n)+"."):u+=" "+o(i)+" scale "+r(i.config)+": "+t+" axis from "+s(n)+" to "+a(n)+"."}),i&&i.length&&(u+=" Series:",i.forEach(function(t,e){u+=" "+("pie"===n||"pie3D"===n||"donut"===n?t.text:t.value),u+=e===i.length-1?".":","})),u}var e=[s.resizer(function(t,e){d._width=t,d._height=e||400;e=d.getRootView();e&&e.node&&e.node.el&&(e=e.node.el.getBoundingClientRect(),d._left=e.left+window.pageXOffset,d._top=e.top+window.pageYOffset),d.events.fire(f.ChartEvents.resize,[d._width,d._height]),d.paint(),!document.querySelector(".dhx_widget.dhx_chart")&&d._tooltip&&d._tooltip.destructor()})];return d._width&&d._height&&e.push(d._layers.toVDOM(d._width,d._height)),s.el(".dhx_widget.dhx_chart",c(c({class:i.css||"",onmousemove:d._globalHTMLHandlers.onmousemove,onmouseleave:d._globalHTMLHandlers.onmouseleave},{"aria-label":t(i)}),{tabIndex:0}),e)},hooks:{didMount:function(t){t&&t.node&&t.node.parent&&t.node.parent.el&&(d._width=t.node.parent.el.offsetWidth,d._height=t.node.parent.el.offsetHeight||400,d.paint())}}});return d.mount(t,n),d.export=new b.Exporter("chart",d),d}e.Chart=o},function(t,e,i){"use strict";var v=this&&this.__assign||function(){return(v=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(8),r=i(25),_=i(0),k=i(6),m=i(188),I=i(1);n.prototype.scaleReady=function(t){var e="column"===this.config.direction&&("left"===this.config.halign||"right"===this.config.halign);switch(this.config.valign){case"middle":"right"===this.config.halign?t.right+=0<=this.config.size?this.config.size:200:"left"===this.config.halign&&(t.left+=0<=this.config.size?this.config.size:200);break;case"top":e?t[this.config.halign]+=0<=this.config.size?this.config.size:200:t.top+=0<=this.config.size?this.config.size:40;break;case"bottom":e?t[this.config.halign]+=0<=this.config.size?this.config.size:200:t.bottom+=0<=this.config.size?this.config.size:40}},n.prototype.paint=function(n,t){var e,i,o=this,r=this._getData(),s=this.config;s.$sizes={width:0,height:0};var a=k.getFontStyle("legend-text"),l=s.margin,c=s.itemPadding,u=[],d="middle"===s.valign,h=0,f=0,p=0,g=0;switch(r.forEach(function(t,e){var i;d||"row"!==s.direction||(i=k.getTextWidth(t.text,a),n<h+i+15&&0!==e&&(h=0,f+=c+2)),u.push(_.sv("g",v(v({transform:"translate("+h+","+f+")",onclick:[o._handlers.onclick,t.id,o.config.values],onkeyup:[o._handlers.onkeyup,t.id,o.config.values],class:"legend-item "+(t.active?"":"not-active")},{role:"button","aria-label":(e=t).active?"Hide chart "+e.text:"Show chart "+e.text}),{tabindex:0}),[_.sv("text",{x:t.maxValue?0:10,y:0,class:"start-text legend-text"},[k.verticalCenteredText(t.text)]),[m.legendShape(s.form,t),!isNaN(t.maxValue)&&!isNaN(t.minValue)&&m.legendTicks(s.form,t)]]));t="line"!==s.form?15+k.getTextWidth(t.text,a):0;d||"row"!==s.direction?(h=0,p=t<p?p:t,g=(f+=c+2)<g?g:f):p=(h+=t+c)<p?p:h}),s.valign){case"top":i="row"===s.direction?-l-f-5-("line"===s.form?15:0):"center"===s.halign?5-g:l+5;break;case"middle":i=(t-g)/2+c/2;break;case"bottom":i="row"===s.direction?t+("line"!==s.form?l:10):t+10-("center"===s.halign?0:l+g)}switch(s.halign){case"left":e=d?-p:5-("row"===s.direction?0:s.size||200);break;case"center":e=(n-p-("line"===s.form?500:0))/2;break;case"right":e=!d&&"row"===s.direction?n-p+c+("line"===s.form?-500-l:5):n+l+5}return _.sv("g",{transform:"translate("+(0<e?e:0)+", "+i+")","aria-label":"Legend",tabindex:0},u)},n.prototype._getData=function(){var i=[];if("scale"===this.config.type){var t=this.config.values,e=t.color,n=t.positiveColor,o=t.negativeColor,r=t.text,s=t.minValue,a=t.maxValue,l=t.tick,c=t.majorTick,u=t.step,d=t.tickTemplate,h=this.setCriticals(),t=h[0],h=h[1];i.push({id:I.uid(),text:r,alpha:1,fill:e,minValue:null!=s?s:t,maxValue:null!=a?a:h,positiveColor:n,negativeColor:o,active:!0,tick:l,majorTick:c,step:u,tickTemplate:d})}else if(this.config.values){var f=k.locator(this.config.values.text),p=k.locator(this.config.values.color);this._data.map(function(t,e){i.push({id:t.id,text:f(t).toString(),alpha:1,fill:p(t).toString()||k.getDefaultColor(e),active:!t.$hidden})})}else if(this.config.treeSeries){var g=this.config.treeSeries;"groupName"===this.config.type?g.forEach(function(t){i.push({id:t.id,text:t.name||t.id,alpha:1,fill:t.color,active:t.active})}):g.forEach(function(t){var e;i.push({id:t.id,text:(e=t).from&&e.to?e.from+" - "+e.to:e.less?"<= "+e.less:e.greater?">= "+e.greater:void 0,alpha:1,fill:t.color,active:t.active})})}else for(var v=0,_=g=this.config.$seriesInfo;v<_.length;v++){var m=_[v],y=m.config,b=y.fill,e=y.color,w=y.id,x=y.alpha,E=y.active,C=y.label,S=y.value,y=b&&e,r=C&&"function"==typeof C?C(m.config):C||S;i.push({id:w,text:r,fill:b||e,color:y&&e,active:E,alpha:x})}return i},n.prototype.setCriticals=function(){var e,i,n=this.config.values.value;return this._data.forEach(function(t){t[n]&&(e=!e||t[n]<e?t[n]:e,i=!i||t[n]>i?t[n]:i)}),i=10*Math.ceil(i/10),(e=10*Math.floor(e/10))===i&&(e-=10),[e,i]},i=n;function n(t,e,i){var n=this;this._data=t,this._events=i;this.config=v(v({},{form:"rect",itemPadding:20,halign:"right",valign:"top",direction:"row",type:"groupName"}),e),this.config.margin=e.margin||function(t,e,i,n){switch(e){case"middle":switch(t){case"right":return i?20:60;case"left":return 120;case"center":throw new Error("cant place legend on center, middle")}case"top":return 20;case"bottom":return i||"line"===n?20:60}}(this.config.halign,this.config.valign,o.isTreeCollection(this._data),this.config.form),this._handlers={onclick:function(t,e){return n._events.fire(r.ChartEvents.toggleSeries,[t,e])},onkeyup:function(t,e,i){i.preventDefault(),"Enter"!==i.key&&" "!==i.key||n._events.fire(r.ChartEvents.toggleSeries,[t,e])}}}e.Legend=i},function(t,e,i){"use strict";var v=this&&this.__assign||function(){return(v=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var _=i(1),m=i(0),y=i(6),b=function(t){return t.toString()},w=function(t,e){return{role:"graphics-object","aria-label":t+"-axis"+(e?", "+e:"")}};e.bottom=function(t,e,i,n){var r,s,o=e.title,a=e.textPadding,l=e.scalePadding,c=e.textTemplate,u=e.showText,d=e.scaleRotate,h=c||b,f=[],c=0;return u&&(c=a,r=d&&!isNaN(d),s=n+a,f=t.map(function(t){var e,i=t[0],n=r?"rotate("+d+" "+i+" "+s+")":"",o=["scale-text","top-text"];return r&&(e=d%360,o.push(y.getClassesForRotateScale("bottom",e))),m.sv("text",{x:i,y:s,class:o.join(" "),transform:n},[y.verticalCenteredText(h(t[1]))])})),a=_.uid(),t=null,n=m.sv("path",{class:"main-scale",d:"M0 "+n+" H"+(i-.5),id:a}),o&&(t=m.sv("text",{dx:i/2,dy:l+c},[m.sv("textPath",{href:"#"+a,class:"scale-title "},o)])),m.sv("g",v({},w("x",o||e.text)),[n,t].concat(f))},e.bottomGrid=function(t,e,i,n){for(var o,r,s,a=n.dashed,l=n.grid,c=n.targetLine,u=n.targetValue,d=t.length,h=[],f="grid-line "+(a?"dash-line":"")+" "+(l?"":"hidden-line"),p=0;p<d;p++)0===p&&0===t[p][0]&&!n.hidden||(p!==c?(r="M"+t[p][0]+" 0 V "+i,s=m.sv("path",{d:r,class:f,_ref:"line"+Math.round(t[p][0])}),h.push(s),p===d-1&&t[p][0]!==e&&(o="M"+e+" 0 V "+i,o=m.sv("path",{d:o,class:f}),h.push(o))):(o="M"+t[p][0]+" 0 V "+i,o=m.sv("path",{d:o,class:f+" spec-grid-line"}),h.push(o)));return u&&(r="M"+u*e+" 0 V "+i,s=m.sv("path",{d:r,class:f+" spec-grid-line"}),h.push(s)),m.sv("g",h)},e.top=function(t,e,i,n){var r,s,o=e.title,a=e.textPadding,l=e.scalePadding,c=e.textTemplate,u=e.showText,d=e.scaleRotate,h=c||b,f=[],c=0;return u&&(c=a,r=d&&!isNaN(d),s=-a,f=t.map(function(t){var e,i=["scale-text"],n=t[0],o=r?"rotate("+d+" "+n+" "+s+")":"";return r&&(e=d%360,i.push(y.getClassesForRotateScale("top",e))),m.sv("text",{x:n,y:s,class:i.join(" "),transform:o},[y.verticalCenteredText(h(t[1]))])})),u=_.uid(),a=m.sv("path",{d:"M0 0 H"+i,class:"main-scale",id:u}),t=null,o&&(t=m.sv("text",{dx:i/2,dy:-l-c},[m.sv("textPath",{href:"#"+u,class:"scale-title"},o)])),m.sv("g",v({},w("x",o||e.text)),[a,t].concat(f))},e.topGrid=function(t,e,i,n){for(var o,r,s=n.dashed,a=n.grid,l=n.targetLine,c=t.length,u=[],d="grid-line "+(s?"dash-line":"")+" "+(a?"":"hidden-line"),h=0;h<c;h++)0===h&&0===t[h][0]&&!n.hidden||(h!==l?(o="M"+t[h][0]+" 0 V "+i,o=m.sv("path",{d:o,class:d,_ref:"line"+Math.round(t[h][0])}),u.push(o),h===c-1&&0!==t[h][0]&&(r="M0 0 V "+i,r=m.sv("path",{d:r,class:d}),u.push(r))):(r="M"+t[h][0]+" 0 V "+i,r=m.sv("path",{d:r,class:d+" spec-grid-line"}),u.push(r)));return m.sv("g",u)},e.left=function(t,e,i,n){var s,a,l,c=e.title,u=e.textPadding,o=e.scalePadding,r=e.textTemplate,d=e.showText,h=e.scaleRotate,f=r||b,p=[],g=0;return d&&(s=y.getFontStyle("scale-text"),a=0,l=h&&!isNaN(h),p=t.map(function(t){var e,i=t[0],n=-u,o=l?"rotate("+h+" "+n+" "+i+")":"",r=["scale-text"],t=f(t[1]);return c&&(e=y.getTextWidth(t,s),a<e&&(a=e)),l?(e=h%360,r.push(y.getClassesForRotateScale("left",e))):r.push("end-text"),m.sv("text",{x:n,y:i,class:r.join(" "),transform:o},[y.verticalCenteredText(t)])}),g=a+u),r=_.uid(),d=m.sv("path",{class:"main-scale",d:"M0 "+n+" V 0.5",id:r,_ref:t.length?"line0":null}),t=null,c&&(t=m.sv("text",{dx:n/2,dy:-o-g},[m.sv("textPath",{href:"#"+r,class:"scale-title"},c)])),m.sv("g",v({},w("y",c||e.text)),[d,t].concat(p))},e.leftGrid=function(t,e,i,n){for(var o,r,s,a=n.dashed,l=n.grid,c=n.targetLine,u=n.targetValue,d=t.length,h=[],f="grid-line "+(a?"dash-line":""),p=0;p<d;p++)0===p&&t[p][0]===i&&!n.hidden||(c!==p?l&&(r="M0 "+t[p][0]+" H "+e,s=m.sv("path",{d:r,class:f}),h.push(s),p===d-1&&t[p][0]!==e&&(o="M0 0 H"+e,o=m.sv("path",{d:o,class:f}),h.push(o))):(r="M0 "+t[p][0]+" H "+e,s=m.sv("path",{d:r,class:f+" spec-grid-line"}),h.push(s)));return u&&(r="M0 "+u*i+" H "+e,s=m.sv("path",{d:r,class:f+" spec-grid-line"}),h.push(s)),m.sv("g",h)},e.right=function(t,e,s,i){var a,l,c,u=e.title,d=e.textPadding,n=e.scalePadding,o=e.textTemplate,r=e.showText,h=e.scaleRotate,f=o||b,p=[],g=0;return r&&(a=y.getFontStyle("scale-text"),l=0,c=h&&!isNaN(h),p=t.map(function(t){var e,i=f(t[1]),n=t[0],o=s+d,r=c?"rotate("+h+" "+o+" "+n+")":"",t=["scale-text"];return u&&(e=y.getTextWidth(i,a),l<e&&(l=e)),c?(e=h%360,t.push(y.getClassesForRotateScale("right",e))):t.push("start-text"),m.sv("text",{x:o,y:n,class:t.join(" "),transform:r},[y.verticalCenteredText(i)])}),g=d+l),o=_.uid(),r=m.sv("path",{d:"M"+s+" "+i+" V 0",class:"main-scale",id:o,_ref:t.length?"line0":null}),t=null,u&&(t=m.sv("text",{dx:i/2,dy:n+g},[m.sv("textPath",{href:"#"+o,class:"scale-title"},u)])),m.sv("g",v({},w("y",u||e.text)),[r,t].concat(p))},e.rightGrid=function(t,e,i,n){for(var o,r,s,a=n.dashed,l=n.grid,c=n.targetLine,u=t.length,d=[],h="grid-line "+(a?"dash-line":""),f=0;f<u;f++)0===f&&t[f][0]===i&&!n.hidden||(c!==f?l&&(r="M0 "+t[f][0]+" H "+e,s=m.sv("path",{d:r,class:h}),d.push(s),f===u-1&&t[f][0]!==e&&(o="M0 0 H"+e,o=m.sv("path",{d:o,class:h}),d.push(o))):(r="M0 "+t[f][0]+" H "+e,s=m.sv("path",{d:r,class:h+" spec-grid-line"}),d.push(s)));return m.sv("g",d)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(88),o=i(90),r=i(193),s=i(194),a=i(58),l=i(195),c=i(196),u=i(197),d=i(198),h=i(199),f=i(200),p=i(201),i=i(202),i={line:a.default,spline:h.default,area:n.default,splineArea:f.default,scatter:d.default,pie:l.default,pie3D:c.default,donut:s.default,radar:u.default,bar:o.default,xbar:r.default,treeMap:p.default,calendarHeatMap:i.default};e.default=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,_=i(0),a=i(6),i=i(56),o=(s=i.default,o(l,s),l.prototype.paint=function(t,e,i){s.prototype.paint.call(this,t,e);var n=[];return this._form(t,e,n,i),this._markers(n),_.sv("g",r(r({class:"seria",_key:this.id},{"aria-label":"chart "+(this.config.value||"")}),{tabindex:0}),n)},l.prototype.paintformAndMarkers=function(t,e,i){s.prototype.paint.call(this,t,e);var n=[],o=[];return this._form(t,e,n,i),this._markers(o),[_.sv("g",{class:"seria",_key:this.id},n),_.sv("g",{class:"seria_markers",_key:this.id+"_markers"},o)]},l.prototype._markers=function(t){var e,i,n=this;this.config.pointType&&(e=this.config.pointColor||this.config.color,i=this._getPointType(this.config.pointType,e),t.push.apply(t,this._points.map(function(t){return i(t[0],t[1],a.calcPointRef(t[2],n.id))})))},l.prototype._form=function(t,i,e,n){var o,r,s="chart "+this.config.type+" "+(this.config.css||"")+" "+(this.config.dashed?"dash-line":""),a=this.config,l=a.id,c=a.fill,u=a.alpha,d=a.color,h=a.strokeWidth,f=this._points,a=f[f.length-1],p="";if(n){for(var g=n.length-1;0<=g;g--){var v=n[g];p+=g===f.length-1?"M"+v[0]+" "+v[1]+" ":"L"+v[0]+" "+v[1]+" "}p+=f.map(function(t,e){return e?"L "+t[0]+" "+t[1]:"V "+t[1]}).join(" ")+"Z"}else p+=f.map(function(t,e){return e?"L"+t[0]+" "+t[1]:"M0 "+i+" L0 "+t[1]+" L"+t[0]+" "+t[1]}).join(" ")+("L"+t+" "+a[1])+" V "+i;h&&(o=f.length-1,r=function(t){return t===o?-.5:t?0:.5},a=f.map(function(t,e){return e?"L"+(t[0]+r(e))+" "+t[1]:"M0 "+t[1]+" L0 "+(t[1]+r(e))+" L"+(t[0]+r(e))+" "+t[1]}).join(" ")+("L"+t+" "+a[1]),d=_.sv("path",{d:a,"stroke-width":h,stroke:d,fill:"none",class:s}),e.push(d));u=_.sv("path",{id:"seria"+l,d:p,class:s,fill:c,_ref:l,"fill-opacity":u,stroke:"none"});return e.push(u),e},l.prototype._setDefaults=function(t){var e={alpha:.3,strokeWidth:2,fill:t.color||"#5E83BA",color:"#5E83BA",active:!0,tooltip:!0,pointType:"empty"};this.config=r(r({},e),t);e=this.config.pointType,t=this.config.pointColor||this.config.color;e&&(this._drawPointType=this._getPointType(e,t))},l);function l(){return null!==s&&s.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i(0),a=i(6),n={circle:function(t,e,i,n,o,r){t={_ref:r,cx:n,cy:o,r:4,class:"figure point-circle",fill:e,stroke:t,"stroke-width":2};return s.sv("circle",t)},rect:function(t,e,i,n,o,r){t={_ref:r,x:n-4,y:o-4,width:8,height:8,class:"figure point-rect",fill:e,stroke:t,"stroke-width":2};return s.sv("rect",t)},rhombus:function(t,e,i,n,o,r){t={_ref:r,points:n-5+","+o+" "+n+","+(o+5)+" "+(n+5)+","+o+" "+n+","+(o-5),class:"figure point-rhombus",fill:e,stroke:t,"stroke-width":2};return s.sv("polygon",t)},triangle:function(t,e,i,n,o,r){t={_ref:r,points:n+","+(o-5)+" "+(n+5)+","+(o+5)+" "+(n-5)+","+(o+5),class:"figure point-triangle",fill:e,stroke:t,"stroke-width":2};return s.sv("polygon",t)},simpleCircle:function(t,e,i,n,o,r){t={_ref:r,cx:n,cy:o,r:3,class:"figure point-simple-circle",fill:t};return s.sv("circle",t)},simpleRect:function(t,e,i,n,o,r){t={_ref:r,x:n-3,y:o-3,width:6,height:6,class:"figure point-simple-rect",fill:t};return s.sv("rect",t)},empty:function(){return null}},o={circle:function(t,e,i,n,o,r){return'<circle class="figure point-circle" _ref="'+r+'" cx="'+n+'" cy="'+o+'" r="4" fill="'+e+'" stroke="'+t+'" stroke-width="2"/>'},rect:function(t,e,i,n,o,r){return'<rect _ref="'+r+'" x="'+(n-4)+'" y="'+(o-4)+'" width="8" height="8" class="figure point-rect" fill="'+e+'" stroke="'+t+'" stroke-width="2"/>'},rhombus:function(t,e,i,n,o,r){return'<polygon _ref="'+r+'" points="'+(n-5)+","+o+" "+n+","+(o+5)+" "+(n+5)+","+o+" "+n+","+(o-5)+'" class="figure point-rhombus" fill="'+e+'" stroke="'+t+'" stroke-width="2"/>'},triangle:function(t,e,i,n,o,r){return'<polygon _ref="'+r+'" points="'+n+","+(o-5)+" "+(n+5)+","+(o+5)+" "+(n-5)+","+(o+5)+'" class="figure point-triangle" fill="'+e+'" stroke="'+t+'" stroke-width="2"/>'},simpleCircle:function(t,e,i,n,o,r){return'<circle _ref="'+r+'" cx="'+n+'" cy="'+o+'" r="3" class="figure point-simple-circle" fill="'+t+'"/>'},simpleRect:function(t,e,i,n,o,r){return'<rect _ref="id" x="'+(n-3)+'" y="'+(o-3)+'" width="6" height="6" class="figure point-simple-rect" fill="'+t+'"/>'},empty:function(){return null}};function l(t){t=n[t.toString()];if(!t)throw new Error("unknown point type");return t}function c(t){t=o[t.toString()];if(!t)throw new Error("unknown point type");return t}e.getHelper=l,e.getHTMLHelper=c,e.getShadeHelper=function(t,n){var o=l(t);n=n||"none";var r=a.getColorShade(n,.2);return function(t,e,i){return o(n,r,"",t,e,i)}},e.getShadeHTMLHelper=function(t,n){var o=c(t);n=n||"none";var r=a.getColorShade(n,.2);return function(t,e,i){return o(n,r,"",t,e,i)}}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),g=this&&this.__assign||function(){return(g=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(1),v=i(0),_=i(6),i=i(56),o=(r=i.default,o(a,r),a.prototype.addScale=function(t,e){r.prototype.addScale.call(this,t,e),e.addPadding()},a.prototype.seriesShift=function(t){return this._shift=t,this.config.barWidth},a.prototype.paint=function(t,e,i){r.prototype.paint.call(this,t,e);if(!this.config.active)return null;var n=[];this._gradient&&n.push(v.sv("defs",[this._gradient()]));var o="chart "+this.config.type+" "+(this.config.css||"")+" "+(this.config.dashed?"dash-line":""),i=this._getForm(this._points,o,t,e,i),n=n.concat(i);return v.sv("g",g(g({class:"seria",_key:this.id},{"aria-label":"chart "+(this.config.value||"")}),{tabindex:0}),n)},a.prototype.getTooltipType=function(t,e,i){return void 0!==this.config.baseLine&&this._baseLinePosition<i?"bot":"top"},a.prototype._getClosestDist=function(t,e,i,n){return this.config.stacked&&e<n?1/0:Math.abs(t-i)},a.prototype._path=function(t,e){return t[0]+=this._shift,"\nM "+(t[0]-this.config.barWidth/2)+" "+e+"\nV "+t[1]+"\nh "+this.config.barWidth+"\nV "+e},a.prototype._base=function(t){var e=this.config.baseLine;return this._baseLinePosition=void 0!==e?this.yScale.point(e)*t:t-1},a.prototype._text=function(t,e,i){var n=t[0],t=(e+t[1])/2;return{x:n,y:t,class:"bar-text",transform:i&&!isNaN(i)?"rotate("+i+" "+n+" "+t+")":""}},a.prototype._getForm=function(t,i,e,n,o){function r(t){return o?o[t][1]:p}var s=this,a=this.config,l=a.baseLine,c=a.fill,u=a.alpha,d=a.showText,h=a.showTextTemplate,f=a.showTextRotate,a=[],p=this._base(n),n=t.map(function(t,e){return v.sv("path",g(g({_key:"seria"+s.config.id+e,_ref:_.calcPointRef(t[2],s.config.id),d:s._path(t,r(e)),class:i,fill:c,onclick:[s._handlers.onclick,t[2],s.config.value],onmousemove:[s._handlers.onmousemove,t[2],s.config.id],onmouseleave:[s._handlers.onmouseleave,t[2],s.config.id],"fill-opacity":u},{role:"graphics-symbol","aria-roledescription":"bar","aria-label":function(t,e,i){void 0===i&&(i=0);var n=e[3],o=i,e=e[4];return e<i&&(o=e,e=i),"xbar"===t?"bar y="+n+", x from "+o+" to "+e:"bar x="+n+", y from "+o+" to "+e}(s.config.type,t,l)}),{tabindex:0}))});return a.push.apply(a,n),(d||h||f)&&!1!==d&&(t=t.map(function(t,e){var i,n,o=s._getText(t);return i=t,n=e,16<Math.abs(r(n)-i[1])?v.sv("text",g(g({},s._text(t,r(e),f)),{"aria-hidden":"true"}),[h?_.verticalCenteredText(h(o)):_.verticalCenteredText(o)]):null}),a.push.apply(a,t)),a},a.prototype._getText=function(t){return t[4].toString()},a.prototype._setDefaults=function(t){this.config=g(g({},{barWidth:30,alpha:1,active:!0,tooltip:!0,pointType:"empty"}),t);var e,i,n=this.config.pointType,t=this.config.pointColor||this.config.color;n&&(this.config.pointType=n,this._drawPointType=this._getPointType(n,t)),this.config.gradient&&(e="gradient"+s.uid(),i=this.config.gradient(this.config.fill),this._gradient=function(){return _.linearGradient(i,e)},this.config.fill="url(#"+e+")")},a);function a(){var t=null!==r&&r.apply(this,arguments)||this;return t._shift=0,t}e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var i=t.length;if(i<3)a=t;else for(var n=t[0],o=t[0],r=t[1],s=t[2],a=[t[0].slice(0,2)],l=1;l<i;l++)a.push([(-n[0]+6*o[0]+r[0])/6,(-n[1]+6*o[1]+r[1])/6,(o[0]+6*r[0]-s[0])/6,(o[1]+6*r[1]-s[1])/6,r[0],r[1]]),n=o,o=r,r=s,s=t[l+2]||s;for(var c="",l=0;l<a.length;l++){var u=a[l],d=u.length;l?c+=5<d?"C"+u[0]+" "+u[1]+"\n\t\t\t\t"+u[2]+" "+u[3]+"\n\t\t\t\t"+u[4]+" "+u[5]:5===d?"L"+u[0]+" "+u[1]:"S"+u[0]+" "+u[1]+"\n\t\t\t\t"+u[2]+" "+u[3]:(c+=e?"L":"M",c+=5===d?u[0]+" "+u[1]:u[d-2]+" "+u[d-1])}return c}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=i(0),i=(n.prototype.add=function(t){this._series.push(t)},n.prototype.dataReady=function(e){return this._toPaint=this._series.filter(function(t){t=t.dataReady(e);return!!t.length&&(e=t,!0)}),e||[]},n.prototype.getPoints=function(){return this._toPaint.length?this._toPaint[0].getPoints().concat(this._toPaint[this._toPaint.length-1].getPoints()):[]},n.prototype.paint=function(n,o,r){var s=[],a=[];return this._toPaint.forEach(function(t){var e,i;t.paintformAndMarkers?(i=(e=t.paintformAndMarkers(n,o,r))[0],e=e[1],s.push(i),a.push(e)):(i=t.paint(n,o,r),s.push(i)),r=t.getPoints()}),l.sv("g",s.concat(a))},n);function n(){this._series=[]}e.default=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),d=this&&this.__assign||function(){return(d=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(1),h=i(0),a=i(35),f=i(207),o=(r=a.List,o(l,r),l.prototype.scrollTo=function(t){var e=this.getRootView();e&&e.node&&e.node.el&&void 0!==t&&(e=this.getRootNode(),this._scrollTo(t,e))},l.prototype._scrollTo=function(t,e){var i,n,o,r;!e||-1!==(o=this.data.getIndex(t))&&(i=this.config.virtual,r=(t=function(t,e,i){var n=0;if(!i)return n;for(;i<=t+e;)n++,t=t+e-i;return n}(o,n=this.config.itemsInRow-(null===(r=e.lastElementChild)||void 0===r?void 0:r.children.length)||0,e.children.length*this.config.itemsInRow))*n,n=Math.floor((o+r)/this.config.itemsInRow),t=e.children[n-e.children.length*t],(i||t)&&(o=t.children[(o+r)%this.config.itemsInRow],r=parseInt(this.config.gap.toString().replace("px",""),null),o.offsetTop>=e.clientHeight+e.scrollTop-o.clientHeight?e.scrollTop=o.offsetTop-e.clientHeight+o.clientHeight+r:o.offsetTop<e.scrollTop-r&&(e.scrollTop=o.offsetTop-r)))},l.prototype._didRedraw=function(t){var e=t.node.el,i=e.scrollHeight>e.offsetHeight,e=t.node.attrs.class.replace(" dhx_dataview--has-scroll",""),e=i?e+" dhx_dataview--has-scroll":e;t.node.patch({class:e})},l.prototype._renderItem=function(t,e){function i(t){return parseFloat(t)}var n=this.config,o=n.itemsInRow,r=n.gap,s=n.template,a=n.itemHeight,l=s?s(t):t.htmlContent,c=t.id==this._focus,u=(e+1)%this.config.itemsInRow==0;if(t.id==this._edited)return f.getEditor(t,this).toHTML(u);n=t.id.toString(),e=this.data.getMetaMap(t);return h.el("div",d(d({class:"dhx_dataview-item"+(e&&e.selected?" dhx_dataview-item--selected":"")+(c?" dhx_dataview-item--focus":"")+(e&&e.drop&&!this._edited?" dhx_dataview-item--drophere":"")+(e&&e.drag&&!this._edited?" dhx_dataview-item--dragtarget":"")+(this.config.dragMode&&!this._edited?" dhx_dataview-item--drag":"")+(i(r)?" dhx_dataview-item--with-gap":"")+(t.css?" "+t.css:"")+(u?" dhx_dataview-item--last-item-in-row":""),style:{width:"calc("+100/o+"% - "+i(r)+" * "+(o-1)/o+"px)","margin-right":u?"":r,height:s?null:a},_key:n,"data-dhx-id":n,_ref:n},this.getDataViewItemAriaAttrs(this,t)),{tabindex:c?0:-1}),l?[h.el(".dhx_dataview-item__inner-html",{".innerHTML":l,role:"presentation"})]:t.value||t.text||t.value)},l.prototype._renderList=function(){var n=this,t=this.data.getRawData(0,-1),e=this.config,o=e.itemsInRow,i=e.css,r=e.gap,s=0,t=t.reduce(function(t,e,i){return 0===s&&t.push([]),t[t.length-1].push(n._renderItem(e,i)),s=(s+1)%o,t},[]);return h.el("",d(d(d(d({},this._handlers),{"data-dhx-widget-id":this._uid,class:(i||"")+" dhx_widget dhx_dataview"+(this.config.multiselection&&this.selection.getItem()?" dhx_no-select--pointer":""),style:{height:this.config.height}}),this.getDataViewAriaAttrs(this.config,this.data.getLength(),t.length,o)),{tabindex:0}),t.map(function(t,e){return h.el(".dhx_dataview-row",{style:{margin:r},"aria-label":"Row "+(e+1)},t)}))},l.prototype._getHotkeys=function(){var e=this,t=r.prototype._getHotkeys.call(this);return t.arrowUp=function(t){e.moveFocus(a.MOVE_UP,e.config.itemsInRow),e._changed&&(e._changed=!1),t.preventDefault()},t.arrowDown=function(t){e.moveFocus(a.MOVE_DOWN,e.config.itemsInRow),e._changed&&(e._changed=!1),t.preventDefault()},t.arrowLeft=function(t){e.moveFocus(a.MOVE_UP),e._changed&&(e._changed=!1),t.preventDefault()},t.arrowRight=function(t){e.moveFocus(a.MOVE_DOWN),e._changed&&(e._changed=!1),t.preventDefault()},t},l.prototype.getDataViewItemAriaAttrs=function(t,e){var i,n,o;return d(d({role:"option","aria-selected":e.$selected?"true":"false"},(o=e,(n=t).config.dragMode&&!n._edited?{"aria-grabbed":Boolean(o.$dragtarget&&!n._edited).toString()}:{})),(i=t).config.editable?{"aria-roledescription":i._edited?"Press Enter to stop editing":"Double click to edit content"}:{})},l.prototype.getDataViewAriaAttrs=function(t,e,i,n){return{role:"listbox","aria-label":"Dataview, "+e+" options on "+i+" rows, "+n+" options per row."+(t.editable?" Content is editable.":""),"aria-multiselectable":t.selection&&t.multiselection?"true":"false","aria-readonly":t.editable?"false":"true"}},l);function l(t,e){return void 0===e&&(e={}),r.call(this,t,s.extend({itemsInRow:1,gap:"0px"},e))||this}e.DataView=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.DataViewEvents||(e.DataViewEvents={})).click="click",e.doubleClick="doubleclick",e.focusChange="focuschange",e.beforeEditStart="beforeEditStart",e.afterEditStart="afterEditStart",e.beforeEditEnd="beforeEditEnd",e.afterEditEnd="afterEditEnd",e.itemRightClick="itemRightClick",e.itemMouseOver="itemMouseOver",e.contextmenu="contextmenu"},function(t,f,p){"use strict";(function(t){var n,e=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},l=this&&this.__rest||function(t,e){var i={};for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(i[o[n]]=t[o[n]]);return i},b=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(f,"__esModule",{value:!0});var o,r=p(2),s=p(5),a=p(11),c=p(1),w=p(211),x=p(212),E=p(96),C=p(213),S=p(39),k=p(214),I=p(216),O=p(217),P=p(218),D=p(219),V=p(220),u=p(7),M=p(97),T=p(221),H=p(222),F=p(223),R=p(224),L=p(225),A=p(99),j=p(226),$=p(4),d=p(0),e=(o=s.View,e(h,o),h.prototype.paint=function(){o.prototype.paint.call(this),this.layout.paint()},h.prototype.send=function(n,o,r){var s=this;if(void 0===o&&(o="POST"),this.events.fire($.FormEvents.beforeSend))return new t(function(t,e){var i=new XMLHttpRequest;switch(i.onload=function(){200<=i.status&&i.status<300?t(i.response||i.responseText):e({status:i.status,statusText:i.statusText})},i.onloadend=function(){i.readyState===XMLHttpRequest.DONE&&200===i.status&&s.events.fire($.FormEvents.afterSend)},i.onerror=function(){e({status:i.status,statusText:i.statusText})},"GET"===o&&(n+="?"+encodeURIComponent(JSON.stringify(s.getValue()))),i.open(o,n),r||i.setRequestHeader("Content-Type","application/json"),o){case"POST":s._send(),i.send(r?s.getValue(!0):JSON.stringify(s.getValue()));break;case"DELETE":case"PUT":i.send(r?s.getValue(!0):JSON.stringify(s.getValue()));break;case"GET":default:i.send()}})},h.prototype.clear=function(t){switch(t){case $.ClearMethod.value:this._clear();break;case $.ClearMethod.validation:this._clearValidate();break;default:this._clear(),this._clearValidate()}this.paint()},h.prototype.setValue=function(t){for(var e in t)for(var i in this._attachments)"function"==typeof this._attachments[i].setValue&&this._attachments[i].config.name===e&&this._attachments[i].setValue(t[e])},h.prototype.getValue=function(t){if(t){var e,n=new FormData,o=this;for(e in this._state)!function(i){Array.isArray(o._state[i])?o._state[i].forEach(function(t,e){return n.append(i+"["+e+"]",t)}):n.append(i,o._state[i])}(e);return n}return i({},this._state)},h.prototype.getItem=function(t){for(var e in this._attachments)if(e==t)return this._attachments[e]},h.prototype.validate=function(t){for(var e in void 0===t&&(t=!1),this._isValid=!0,this._attachments)"function"==typeof this._attachments[e].validate&&u.isVerify(this._attachments[e].config)&&!this._attachments[e].validate(t)&&(this._isValid=!1,t||this.events.fire($.FormEvents.validationFail,[e,this._attachments[e]]));return this._isValid},h.prototype.setProperties=function(t,e){if("string"==typeof t&&e&&!c.isEmptyObj(e))for(var i in this._attachments)"function"==typeof this._attachments[i].setProperties&&i===t&&this._attachments[i].setProperties(e);if("object"==typeof t&&!c.isEmptyObj(t))for(var i in this._attachments)"function"!=typeof this._attachments[i].setProperties||c.isEmptyObj(t[i])||this._attachments[i].setProperties(t[i])},h.prototype.getProperties=function(t){if(t)for(var e in this._attachments)if("function"==typeof this._attachments[e].getProperties&&e===t)return this._attachments[e].getProperties();var i={};for(e in this._attachments)"function"==typeof this._attachments[e].getProperties&&(i[e]=this._attachments[e].getProperties());return i},h.prototype.show=function(){if(this.config.hidden||Object.values(this._attachments).some(function(t){return!t.config.hidden}))for(var t in this._formContainerShow(),this._attachments)"function"==typeof this._attachments[t].show&&this._attachments[t].show()},h.prototype.hide=function(t){if(!this.config.hidden||t)for(var e in this._formContainerHide(),this._attachments)"function"==typeof this._attachments[e].hide&&this._attachments[e].hide(t)},h.prototype.setFocus=function(t){for(var e in this._attachments){var i=this._attachments[e];"radiogroup"!==i.config.type&&"checkboxgroup"!==i.config.type||i.focus(t),i.config.name===t&&i.focus()}},h.prototype.blur=function(t){for(var e in t||this.forEach(function(t){"function"==typeof t.blur&&t.blur()}),this._attachments){var i=this._attachments[e];"radiogroup"!==i.config.type&&"checkboxgroup"!==i.config.type||i.blur(t),i.config.name===t&&i.blur()}},h.prototype.isVisible=function(t){if(!t)return!this.config.hidden;for(var e in this._attachments)if(e===t)return!this._attachments[e].config.hidden},h.prototype.disable=function(){for(var t in this.config.disabled=!0,this._attachments)"function"==typeof this._attachments[t].disable&&this._attachments[t].disable()},h.prototype.enable=function(){for(var t in this.config.disabled=!1,this._attachments)"function"==typeof this._attachments[t].enable&&this._attachments[t].enable()},h.prototype.isDisabled=function(t){if(!t)return this.config.disabled;for(var e in this._attachments)if(e===t)return this._attachments[e].config.disabled},h.prototype.forEach=function(t){for(var e=Object.values(this._attachments),i=0;i<e.length;i++)t.call(this,e[i],i,e)},h.prototype.destructor=function(){this.events&&this.events.clear(),this.layout&&this.layout.destructor(),this.config=this._attachments=this._state=this._uid=this.container=this.events=this._isValid=null,this.unmount()},h.prototype.getRootView=function(){return this.layout.getRootView()},h.prototype._addLayoutItem=function(t){var e=t.id=t.id||c.uid(),i=t.name=t.name||e.toString();t.type=t.type&&t.type.toLowerCase();var n=t.css,e=t.padding,o=l(t,["css","padding"]),r=t.width,s=t.height,a=n?n+" dhx_form-element":"dhx_form-element",n="spacer"!==t.type;switch(n&&!r&&(r="content"),n&&!s&&(s="content"),o.type){case"button":o.full&&(a+=" dhx_button--full-gravity");break;case"text":"content"===r&&(a+=" dhx_form-element--fit-content");break;case"simplevault":o.$vaultHeight=s}this._initItemHandlers(t,i);e={id:i,width:r,height:s,padding:e,css:a};return"fieldset"===t.type&&(e.$fieldset=!0,e.label=t.label,e.labelAlignment=t.labelAlignment,this._createLayoutConfig(t,e)),e},h.prototype._initItemHandlers=function(e,n){var o=this;switch(e.type){case"avatar":var t=this._attachments[n]=new R.Avatar(null,e);this._state[n]=t.getValue(),t.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),t.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),t.events.on($.ItemEvent.beforeHide,function(t,e){if(!e)return o.events.fire($.FormEvents.beforeHide,[n,t])}),t.events.on($.ItemEvent.beforeShow,function(t){return o.events.fire($.FormEvents.beforeShow,[n,t])}),t.events.on($.ItemEvent.afterHide,function(t,e){o.layout.getCell(n).hide(),e||o.events.fire($.FormEvents.afterHide,[n,t])}),t.events.on($.ItemEvent.afterShow,function(t){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t])}),t.events.on($.ItemEvent.beforeValidate,function(t){return o.events.fire($.FormEvents.beforeValidate,[n,t])}),t.events.on($.ItemEvent.afterValidate,function(t,e){o.events.fire($.FormEvents.afterValidate,[n,t,e])}),t.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),t.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),t.events.on($.ItemEvent.focus,function(t){o.events.fire($.FormEvents.focus,[n,t])}),t.events.on($.ItemEvent.blur,function(t){o.events.fire($.FormEvents.blur,[n,t])}),t.events.on($.ItemEvent.keydown,function(t){o.events.fire($.FormEvents.keydown,[t,n])});break;case"toggle":var i=this._attachments[n]=new A.ToggleButton(null,e);this._state[n]=i.getValue(),i.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),i.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),i.events.on($.ItemEvent.beforeHide,function(t,e){if(!e)return o.events.fire($.FormEvents.beforeHide,[n,t])}),i.events.on($.ItemEvent.beforeShow,function(t){return o.events.fire($.FormEvents.beforeShow,[n,t])}),i.events.on($.ItemEvent.afterHide,function(t,e){o.layout.getCell(n).hide(),e||o.events.fire($.FormEvents.afterHide,[n,t])}),i.events.on($.ItemEvent.afterShow,function(t){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t])}),i.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),i.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),i.events.on($.ItemEvent.focus,function(t){o.events.fire($.FormEvents.focus,[n,t])}),i.events.on($.ItemEvent.blur,function(t){o.events.fire($.FormEvents.blur,[n,t])}),i.events.on($.ItemEvent.keydown,function(t){o.events.fire($.FormEvents.keydown,[t,n])});break;case"togglegroup":var r=this._attachments[n]=new j.ToggleGroup(null,e);this._state[n]=r.getValue(),r.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),r.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),r.events.on($.ItemEvent.beforeHide,function(t,e,i){if(!i)return o.events.fire($.FormEvents.beforeHide,[n,t,e])}),r.events.on($.ItemEvent.beforeShow,function(t,e){return o.events.fire($.FormEvents.beforeShow,[n,t,e])}),r.events.on($.ItemEvent.afterHide,function(t,e,i){r.isVisible()||o.layout.getCell(n).hide(),i||o.events.fire($.FormEvents.afterHide,[n,t,e])}),r.events.on($.ItemEvent.afterShow,function(t,e){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t,e])}),r.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),r.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),r.events.on($.ItemEvent.focus,function(t,e){o.events.fire($.FormEvents.focus,[n,t,e])}),r.events.on($.ItemEvent.blur,function(t,e){o.events.fire($.FormEvents.blur,[n,t,e])}),r.events.on($.ItemEvent.keydown,function(t,e){o.events.fire($.FormEvents.keydown,[t,n,e])});break;case"button":var s=this._attachments[n]=new x.Button(null,e);s.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),s.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),s.events.on($.ItemEvent.click,function(t){t.preventDefault(),o.events.fire($.FormEvents.click,[n,t]),o.events.fire($.FormEvents.buttonClick,[n,t]),s.config.submit&&o.validate()&&s.config.url&&o.send(s.config.url)}),s.events.on($.ItemEvent.beforeHide,function(t,e){if(!e)return o.events.fire($.FormEvents.beforeHide,[n,t])}),s.events.on($.ItemEvent.beforeShow,function(t){return o.events.fire($.FormEvents.beforeShow,[n,t])}),s.events.on($.ItemEvent.afterHide,function(t,e){o.layout.getCell(n).hide(),e||o.events.fire($.FormEvents.afterHide,[n,t])}),s.events.on($.ItemEvent.afterShow,function(t){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t])}),s.events.on($.ItemEvent.focus,function(t){o.events.fire($.FormEvents.focus,[n,t])}),s.events.on($.ItemEvent.blur,function(t){o.events.fire($.FormEvents.blur,[n,t])}),s.events.on($.ItemEvent.keydown,function(t){o.events.fire($.FormEvents.keydown,[t,n])});break;case"datepicker":var a=this._attachments[n]=new w.DatePicker(null,e);this._state[n]=a.getValue("Date"===e.valueFormat),a.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),a.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o._state[n]=a.getValue("Date"===e.valueFormat),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),a.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),a.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),a.events.on($.ItemEvent.beforeHide,function(t,e){if(!e)return o.events.fire($.FormEvents.beforeHide,[n,t])}),a.events.on($.ItemEvent.beforeShow,function(t){return o.events.fire($.FormEvents.beforeShow,[n,t])}),a.events.on($.ItemEvent.afterHide,function(t,e){o.layout.getCell(n).hide(),e||o.events.fire($.FormEvents.afterHide,[n,t])}),a.events.on($.ItemEvent.afterShow,function(t){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t])}),a.events.on($.ItemEvent.beforeValidate,function(t){return o.events.fire($.FormEvents.beforeValidate,[n,t])}),a.events.on($.ItemEvent.afterValidate,function(t,e){o.events.fire($.FormEvents.afterValidate,[n,t,e])}),a.events.on($.ItemEvent.focus,function(t){o.events.fire($.FormEvents.focus,[n,t])}),a.events.on($.ItemEvent.blur,function(t){o.events.fire($.FormEvents.blur,[n,t])}),a.events.on($.ItemEvent.keydown,function(t){o.events.fire($.FormEvents.keydown,[t,n])});break;case"checkbox":var l=this._attachments[n]=new E.Checkbox(null,e);this._state[n]=l.getValue(),l.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),l.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o._state[n]=l.getValue(),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),l.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),l.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),l.events.on($.ItemEvent.beforeHide,function(t,e){if(!e)return o.events.fire($.FormEvents.beforeHide,[n,t])}),l.events.on($.ItemEvent.beforeShow,function(t){return o.events.fire($.FormEvents.beforeShow,[n,t])}),l.events.on($.ItemEvent.afterHide,function(t,e){o.layout.getCell(n).hide(),e||o.events.fire($.FormEvents.afterHide,[n,t])}),l.events.on($.ItemEvent.afterShow,function(t){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t])}),l.events.on($.ItemEvent.beforeValidate,function(t){return o.events.fire($.FormEvents.beforeValidate,[n,t])}),l.events.on($.ItemEvent.afterValidate,function(t,e){o.events.fire($.FormEvents.afterValidate,[n,t,e])}),l.events.on($.ItemEvent.focus,function(t){o.events.fire($.FormEvents.focus,[n,t])}),l.events.on($.ItemEvent.blur,function(t){o.events.fire($.FormEvents.blur,[n,t])}),l.events.on($.ItemEvent.keydown,function(t){o.events.fire($.FormEvents.keydown,[t,n])});break;case"checkboxgroup":var c=this._attachments[n]=new C.CheckboxGroup(null,e);this._state[n]=c.getValue(),c.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),c.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o._state[n]=c.getValue(),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),c.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),c.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),c.events.on($.ItemEvent.beforeHide,function(t,e,i){if(!i)return o.events.fire($.FormEvents.beforeHide,[n,t,e])}),c.events.on($.ItemEvent.beforeShow,function(t,e){return o.events.fire($.FormEvents.beforeShow,[n,t,e])}),c.events.on($.ItemEvent.afterHide,function(t,e,i){c.isVisible()||o.layout.getCell(n).hide(),i||o.events.fire($.FormEvents.afterHide,[n,t,e])}),c.events.on($.ItemEvent.afterShow,function(t,e){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t,e])}),c.events.on($.ItemEvent.beforeValidate,function(t){return o.events.fire($.FormEvents.beforeValidate,[n,t])}),c.events.on($.ItemEvent.afterValidate,function(t,e){o.events.fire($.FormEvents.afterValidate,[n,t,e])}),c.events.on($.ItemEvent.focus,function(t,e){o.events.fire($.FormEvents.focus,[n,t,e])}),c.events.on($.ItemEvent.blur,function(t,e){o.events.fire($.FormEvents.blur,[n,t,e])}),c.events.on($.ItemEvent.keydown,function(t,e){o.events.fire($.FormEvents.keydown,[t,n,e])});break;case"combo":var u=this._attachments[n]=new D.Combo(null,e);this._state[n]=u.getValue(),u.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),u.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o._state[n]=u.getValue(),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),u.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),u.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),u.events.on($.ItemEvent.beforeHide,function(t,e){if(!e)return o.events.fire($.FormEvents.beforeHide,[n,t])}),u.events.on($.ItemEvent.beforeShow,function(t){return o.events.fire($.FormEvents.beforeShow,[n,t])}),u.events.on($.ItemEvent.afterHide,function(t,e){o.layout.getCell(n).hide(),e||o.events.fire($.FormEvents.afterHide,[n,t])}),u.events.on($.ItemEvent.afterShow,function(t){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t])}),u.events.on($.ItemEvent.beforeValidate,function(t){return o.events.fire($.FormEvents.beforeValidate,[n,t])}),u.events.on($.ItemEvent.afterValidate,function(t,e){o.events.fire($.FormEvents.afterValidate,[n,t,e])}),u.events.on($.ItemEvent.focus,function(t){o.events.fire($.FormEvents.focus,[n,t])}),u.events.on($.ItemEvent.blur,function(t){o.events.fire($.FormEvents.blur,[n,t])}),u.events.on($.ItemEvent.keydown,function(t,e){o.events.fire($.FormEvents.keydown,[t,n,e])});break;case"input":var d=this._attachments[n]=new S.Input(null,e);this._state[n]=d.getValue(),d.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),d.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o._state[n]=d.getValue(),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),d.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),d.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),d.events.on($.ItemEvent.beforeHide,function(t,e){if(!e)return o.events.fire($.FormEvents.beforeHide,[n,t])}),d.events.on($.ItemEvent.beforeShow,function(t){return o.events.fire($.FormEvents.beforeShow,[n,t])}),d.events.on($.ItemEvent.afterHide,function(t,e){o.layout.getCell(n).hide(),e||o.events.fire($.FormEvents.afterHide,[n,t])}),d.events.on($.ItemEvent.afterShow,function(t){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t])}),d.events.on($.ItemEvent.beforeValidate,function(t){return o.events.fire($.FormEvents.beforeValidate,[n,t])}),d.events.on($.ItemEvent.afterValidate,function(t,e){o.events.fire($.FormEvents.afterValidate,[n,t,e])}),d.events.on($.ItemEvent.focus,function(t){o.events.fire($.FormEvents.focus,[n,t])}),d.events.on($.ItemEvent.blur,function(t){o.events.fire($.FormEvents.blur,[n,t])}),d.events.on($.ItemEvent.keydown,function(t){o.events.fire($.FormEvents.keydown,[t,n])});break;case"radiogroup":var h=this._attachments[n]=new k.RadioGroup(null,e);this._state[n]=h.getValue(),h.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),h.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o._state[n]=h.getValue(),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),h.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),h.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),h.events.on($.ItemEvent.beforeHide,function(t,e,i){if(!i)return o.events.fire($.FormEvents.beforeHide,[n,t,e])}),h.events.on($.ItemEvent.beforeShow,function(t,e){return o.events.fire($.FormEvents.beforeShow,[n,t,e])}),h.events.on($.ItemEvent.afterHide,function(t,e,i){h.isVisible()||o.layout.getCell(n).hide(),i||o.events.fire($.FormEvents.afterHide,[n,t,e])}),h.events.on($.ItemEvent.afterShow,function(t,e){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t,e])}),h.events.on($.ItemEvent.beforeValidate,function(t){return o.events.fire($.FormEvents.beforeValidate,[n,t])}),h.events.on($.ItemEvent.afterValidate,function(t,e){o.events.fire($.FormEvents.afterValidate,[n,t,e])}),h.events.on($.ItemEvent.focus,function(t,e){o.events.fire($.FormEvents.focus,[n,t,e])}),h.events.on($.ItemEvent.blur,function(t,e){o.events.fire($.FormEvents.blur,[n,t,e])}),h.events.on($.ItemEvent.keydown,function(t,e){o.events.fire($.FormEvents.keydown,[t,n,e])});break;case"select":var f=this._attachments[n]=new I.Select(null,e);this._state[n]=f.getValue(),f.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),f.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o._state[n]=f.getValue(),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),f.events.on($.ItemEvent.changeOptions,function(t){o.layout.getCell(n).config.options=b(t)}),f.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),f.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),f.events.on($.ItemEvent.beforeHide,function(t,e){if(!e)return o.events.fire($.FormEvents.beforeHide,[n,t])}),f.events.on($.ItemEvent.beforeShow,function(t){return o.events.fire($.FormEvents.beforeShow,[n,t])}),f.events.on($.ItemEvent.afterHide,function(t,e){o.layout.getCell(n).hide(),e||o.events.fire($.FormEvents.afterHide,[n,t])}),f.events.on($.ItemEvent.afterShow,function(t){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t])}),f.events.on($.ItemEvent.beforeValidate,function(t){return o.events.fire($.FormEvents.beforeValidate,[n,t])}),f.events.on($.ItemEvent.afterValidate,function(t,e){o.events.fire($.FormEvents.afterValidate,[n,t,e])}),f.events.on($.ItemEvent.focus,function(t){o.events.fire($.FormEvents.focus,[n,t])}),f.events.on($.ItemEvent.blur,function(t){o.events.fire($.FormEvents.blur,[n,t])}),f.events.on($.ItemEvent.keydown,function(t){o.events.fire($.FormEvents.keydown,[t,n])});break;case"simplevault":var p=this._attachments[n]=new M.SimpleVault(null,e);this._state[n]=p.getValue(),p.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),p.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o._state[n]=p.getValue(),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),p.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),p.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),p.events.on($.ItemEvent.beforeHide,function(t,e){if(!e)return o.events.fire($.FormEvents.beforeHide,[n,t])}),p.events.on($.ItemEvent.beforeShow,function(t){return o.events.fire($.FormEvents.beforeShow,[n,t])}),p.events.on($.ItemEvent.afterHide,function(t,e){o.layout.getCell(n).hide(),e||o.events.fire($.FormEvents.afterHide,[n,t])}),p.events.on($.ItemEvent.afterShow,function(t){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t])}),p.events.on($.ItemEvent.beforeValidate,function(t){return o.events.fire($.FormEvents.beforeValidate,[n,t])}),p.events.on($.ItemEvent.afterValidate,function(t,e){o.events.fire($.FormEvents.afterValidate,[n,t,e])});break;case"slider":i=this._attachments[n]=new V.SliderForm(null,e);this._state[n]=i.getValue(),i.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),i.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),i.events.on($.ItemEvent.beforeHide,function(t,e){if(!e)return o.events.fire($.FormEvents.beforeHide,[n,t])}),i.events.on($.ItemEvent.beforeShow,function(t){return o.events.fire($.FormEvents.beforeShow,[n,t])}),i.events.on($.ItemEvent.afterHide,function(t,e){o.layout.getCell(n).hide(),e||o.events.fire($.FormEvents.afterHide,[n,t])}),i.events.on($.ItemEvent.afterShow,function(t){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t])}),i.events.on($.ItemEvent.focus,function(t){o.events.fire($.FormEvents.focus,[n,t])}),i.events.on($.ItemEvent.blur,function(t){o.events.fire($.FormEvents.blur,[n,t])}),i.events.on($.ItemEvent.keydown,function(t){o.events.fire($.FormEvents.keydown,[t,n])});break;case"textarea":var g=this._attachments[n]=new O.Textarea(null,e);this._state[n]=g.getValue(),g.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),g.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o._state[n]=g.getValue(),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),g.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),g.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),g.events.on($.ItemEvent.beforeHide,function(t,e){if(!e)return o.events.fire($.FormEvents.beforeHide,[n,t])}),g.events.on($.ItemEvent.beforeShow,function(t){return o.events.fire($.FormEvents.beforeShow,[n,t])}),g.events.on($.ItemEvent.afterHide,function(t,e){o.layout.getCell(n).hide(),e||o.events.fire($.FormEvents.afterHide,[n,t])}),g.events.on($.ItemEvent.afterShow,function(t){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t])}),g.events.on($.ItemEvent.beforeValidate,function(t){return o.events.fire($.FormEvents.beforeValidate,[n,t])}),g.events.on($.ItemEvent.afterValidate,function(t,e){o.events.fire($.FormEvents.afterValidate,[n,t,e])}),g.events.on($.ItemEvent.focus,function(t){o.events.fire($.FormEvents.focus,[n,t])}),g.events.on($.ItemEvent.blur,function(t){o.events.fire($.FormEvents.blur,[n,t])}),g.events.on($.ItemEvent.keydown,function(t){o.events.fire($.FormEvents.keydown,[t,n])});break;case"text":var v=this._attachments[n]=new P.Text(null,e);this._state[n]=v.getValue(),v.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),v.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o._state[n]=v.getValue(),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),v.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),v.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),v.events.on($.ItemEvent.beforeHide,function(t,e){if(!e)return o.events.fire($.FormEvents.beforeHide,[n,t])}),v.events.on($.ItemEvent.beforeShow,function(t){return o.events.fire($.FormEvents.beforeShow,[n,t])}),v.events.on($.ItemEvent.afterHide,function(t,e){o.layout.getCell(n).hide(),e||o.events.fire($.FormEvents.afterHide,[n,t])}),v.events.on($.ItemEvent.afterShow,function(t){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t])}),v.events.on($.ItemEvent.beforeValidate,function(t){return o.events.fire($.FormEvents.beforeValidate,[n,t])}),v.events.on($.ItemEvent.afterValidate,function(t,e){o.events.fire($.FormEvents.afterValidate,[n,t,e])});break;case"timepicker":var _=this._attachments[n]=new T.TimePicker(null,e);this._state[n]=e.value&&_.getValue("timeObject"===e.valueFormat)||"",_.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),_.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o._state[n]=_.getValue("timeObject"===e.valueFormat),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),_.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),_.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),_.events.on($.ItemEvent.beforeHide,function(t,e){if(!e)return o.events.fire($.FormEvents.beforeHide,[n,t])}),_.events.on($.ItemEvent.beforeShow,function(t){return o.events.fire($.FormEvents.beforeShow,[n,t])}),_.events.on($.ItemEvent.afterHide,function(t,e){o.layout.getCell(n).hide(),e||o.events.fire($.FormEvents.afterHide,[n,t])}),_.events.on($.ItemEvent.afterShow,function(t){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t])}),_.events.on($.ItemEvent.beforeValidate,function(t){return o.events.fire($.FormEvents.beforeValidate,[n,t])}),_.events.on($.ItemEvent.afterValidate,function(t,e){o.events.fire($.FormEvents.afterValidate,[n,t,e])}),_.events.on($.ItemEvent.focus,function(t){o.events.fire($.FormEvents.focus,[n,t])}),_.events.on($.ItemEvent.blur,function(t){o.events.fire($.FormEvents.blur,[n,t])}),_.events.on($.ItemEvent.keydown,function(t){o.events.fire($.FormEvents.keydown,[t,n])});break;case"colorpicker":var m=this._attachments[n]=new H.ColorPicker(null,e);this._state[n]=m.getValue(),m.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),m.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o._state[n]=m.getValue(),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),m.events.on($.ItemEvent.beforeChange,function(t){return o.events.fire($.FormEvents.beforeChange,[n,t])}),m.events.on($.ItemEvent.change,function(t){o._state[n]=t,o.events.fire($.FormEvents.change,[n,t])}),m.events.on($.ItemEvent.beforeHide,function(t,e){if(!e)return o.events.fire($.FormEvents.beforeHide,[n,t])}),m.events.on($.ItemEvent.beforeShow,function(t){return o.events.fire($.FormEvents.beforeShow,[n,t])}),m.events.on($.ItemEvent.afterHide,function(t,e){o.layout.getCell(n).hide(),e||o.events.fire($.FormEvents.afterHide,[n,t])}),m.events.on($.ItemEvent.afterShow,function(t){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n,t])}),m.events.on($.ItemEvent.beforeValidate,function(t){return o.events.fire($.FormEvents.beforeValidate,[n,t])}),m.events.on($.ItemEvent.afterValidate,function(t,e){o.events.fire($.FormEvents.afterValidate,[n,t,e])}),m.events.on($.ItemEvent.focus,function(t){o.events.fire($.FormEvents.focus,[n,t])}),m.events.on($.ItemEvent.blur,function(t){o.events.fire($.FormEvents.blur,[n,t])}),m.events.on($.ItemEvent.keydown,function(t){o.events.fire($.FormEvents.keydown,[t,n])});break;case"fieldset":var y=this._attachments[n]=new L.Fieldset(e);y.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),y.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()});break;case"spacer":default:y=this._attachments[n]=new F.Spacer(null,e);y.events.on($.ItemEvent.beforeChangeProperties,function(t){return o.events.fire($.FormEvents.beforeChangeProperties,[n,t])}),y.events.on($.ItemEvent.afterChangeProperties,function(t){o._changeProps(n,t),o.events.fire($.FormEvents.afterChangeProperties,[n,t]),o.paint()}),y.events.on($.ItemEvent.beforeHide,function(t){if(!t)return o.events.fire($.FormEvents.beforeHide,[n])}),y.events.on($.ItemEvent.beforeShow,function(){return o.events.fire($.FormEvents.beforeShow,[n])}),y.events.on($.ItemEvent.afterHide,function(t){o.layout.getCell(n).hide(),t||o.events.fire($.FormEvents.afterHide,[n])}),y.events.on($.ItemEvent.afterShow,function(){o.layout.getCell(n).show(),o.events.fire($.FormEvents.afterShow,[n])})}},h.prototype._changeProps=function(t,e){var i,n=["width","height","css","padding","label","labelAlignment","align"];for(i in e)n.includes(i)&&(this.layout.getCell(t).config[i]=e[i])},h.prototype._addLayoutItems=function(t){var i=this;return t.map(function(t){if(u.isBlock(t)){var e={width:"content",height:"content"};return i._createLayoutConfig(t,e),e}return i._addLayoutItem(t)})},h.prototype._checkLayoutConfig=function(t,e){return c.isDefined(t.css)&&(e.css=t.css),c.isDefined(t.title)&&(e.header=t.title),c.isDefined(t.padding)&&(e.padding=t.padding),c.isDefined(t.width)&&(e.width=t.width),c.isDefined(t.height)&&(e.height=t.height),c.isDefined(t.align)&&(e.align=t.align),e},h.prototype._createLayoutConfig=function(t,e){e=this._checkLayoutConfig(t,e),c.isDefined(t.rows)?e.rows=this._addLayoutItems(t.rows):c.isDefined(t.cols)&&(e.cols=this._addLayoutItems(t.cols))},h.prototype._initUI=function(t){this._attachments={};var e={padding:"8px"};this.config.css+=" dhx_form",this._createLayoutConfig(this.config,e),this.layout=new a.Layout(t,e),u.setAttacments(this._attachments,this.layout)},h.prototype._clear=function(){for(var t in this._state={},this._attachments){var e=this._attachments[t].config.name;"function"==typeof this._attachments[t].clear&&(this._attachments[t].clear(),e?this._state[e]=this._attachments[t].getValue():this._state[t]=this._attachments[t].getValue())}},h.prototype._clearValidate=function(){for(var t in this._attachments)"function"==typeof this._attachments[t].clearValidate&&this._attachments[t].clearValidate()},h.prototype._formContainerShow=function(){this.config.hidden=!1,this.getRootView().node&&(this.getRootView().node.el.style.display="flex")},h.prototype._formContainerHide=function(){this.config.hidden=!0,this.getRootView().node&&(this.getRootView().node.el.style.display="none")},h.prototype._send=function(){for(var t in this._attachments)"function"==typeof this._attachments[t].send&&this._attachments[t].send()},h);function h(t,e){var i=o.call(this,null,c.extend({disabled:!1,hidden:!1,css:""},e))||this;return i._isValid=!0,i._state={},i.events=new r.EventSystem(i),i.container=t,i._initUI(t),i.config.hidden&&i.hide(!0),i.config.disabled&&i.disable(),i.events.on($.FormEvents.afterShow,function(){i._formContainerShow()}),i.events.on($.FormEvents.afterHide,function(){Object.values(i._attachments).some(function(t){return!t.config.hidden})||i._formContainerHide()}),d.awaitRedraw().then(function(){var t=i.layout.getRootNode();t&&(t.setAttribute("role","form"),i.config.title&&t.setAttribute("aria-label",i.config.title))}),i}f.Form=e}).call(this,p(17))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var s,d=i(0),a=i(2),h=i(7),l=i(12),c=i(4),u=i(14),f=i(1),o=(s=u.Label,o(p,s),p.prototype.setProperties=function(t,e){if(void 0===e&&(e=!1),t&&!f.isEmptyObj(t)&&(e||this.events.fire(c.ItemEvent.beforeChangeProperties,[this.getProperties()]))){for(var i in t)this._props.includes(i)&&(this.config[i]=t[i]);e||this.events.fire(c.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},p.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},p.prototype.show=function(){this.config.hidden&&this.events.fire(c.ItemEvent.beforeShow,[this.getValue()])&&(this.config.hidden=!1,this.events.fire(c.ItemEvent.afterShow,[this.getValue()]))},p.prototype.hide=function(t){this.config.hidden&&!t||!this.events.fire(c.ItemEvent.beforeHide,[this.getValue(),t])||(this.config.hidden=!0,this.events.fire(c.ItemEvent.afterHide,[this.getValue(),t]))},p.prototype.isVisible=function(){return!this.config.hidden},p.prototype.disable=function(){this.config.disabled=!0,this.paint()},p.prototype.enable=function(){var t;this.config.disabled=!1,null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.paint()},p.prototype.isDisabled=function(){return!!this.config.disabled},p.prototype.validate=function(t){if(void 0===t&&(t=!1),t||this.events.fire(c.ItemEvent.beforeValidate,[this.getValue()]))return(this.config.required||this.config.$required)&&(this._isValid=!!this.config.checked),t||(this.config.$validationStatus=this._isValid?c.ValidationStatus.success:c.ValidationStatus.error,this.events.fire(c.ItemEvent.afterValidate,[this.getValue(),this._isValid])),this._isValid},p.prototype.clearValidate=function(){this.config.$validationStatus=c.ValidationStatus.pre,this.paint()},p.prototype.setValue=function(t,e){void 0===e&&(e=!1),void 0!==t&&t!==this.config.checked&&(e||this.events.fire(c.ItemEvent.beforeChange,[this._getValue(t)]))&&(this.config.checked=!!t,e||(this.events.fire(c.ItemEvent.change,[this.getValue()]),h.isVerify(this.config)&&this.validate()))},p.prototype.getValue=function(){return this._getValue(this.config.checked)},p.prototype.clear=function(t){this.config.checked&&(t||this.events.fire(c.ItemEvent.beforeChange,[this._getValue(!1)]))&&(this.config.checked=!1,t||(this.events.fire(c.ItemEvent.change,[this.getValue()]),h.isVerify(this.config)&&this.validate()))},p.prototype.destructor=function(){this.events&&this.events.clear(),this._inGroup=this._propsItem=this._props=this._isValid=this._uid=this.events=null,s.prototype._destructor.call(this),this.unmount()},p.prototype.focus=function(){var t=this;d.awaitRedraw().then(function(){t.getRootView().refs.input.el.focus()})},p.prototype.blur=function(){var t=this;d.awaitRedraw().then(function(){t.getRootView().refs.input.el.blur()})},p.prototype.isChecked=function(){return!!this.config.checked},p.prototype._getValue=function(t){return"string"==typeof this.config.value?t&&this.config.value||"":!!t},p.prototype._initView=function(t){var e=this;if(this._inGroup=this.config.$group,this._inGroup){for(var i in this.config={type:t.type,id:t.id,text:"",width:"content",height:"content",padding:0},t)"id"!==i&&"type"!==i&&"name"!==i&&(this.config[i]=t[i]);this._handlers={onchange:function(t){t=t.target.checked;e.events.fire(c.ItemEvent.beforeChange,[e._getValue(t)])?(e.config.checked=t,e.events.fire(c.ItemEvent.change,[e.getValue()]),h.isVerify(e.config)&&e.validate()):e.getRootView().refs.input.el.checked=!t},onfocus:function(){return e.events.fire(c.ItemEvent.focus,[e.getValue(),e.config.id])},onblur:function(){return e.events.fire(c.ItemEvent.blur,[e.getValue(),e.config.id])},onkeydown:function(t){e.events.fire(c.ItemEvent.keydown,[t,e.config.id])}}}else{for(var i in this.config={type:t.type,id:t.id,name:t.name,disabled:!1,required:!1,label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t)"id"!==i&&"type"!==i&&"name"!==i&&(this.config[i]=t[i]);this.config.helpMessage&&(this._helper=new l.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"}),this._helper.attachHTML(this.config.helpMessage)),this._handlers={showHelper:function(t){t.preventDefault(),t.stopPropagation(),e._helper.show(t.target,{mode:"left"===e.config.labelPosition?"bottom":"right",theme:e.getRootNode()})},hideHelper:function(t){t.preventDefault(),t.stopPropagation(),e._helper.hide()},onchange:function(t){t=t.target.checked;e.events.fire(c.ItemEvent.beforeChange,[e._getValue(t)])?(e.config.checked=t,e.events.fire(c.ItemEvent.change,[e.getValue()]),h.isVerify(e.config)&&e.validate()):e.getRootView().refs.input.el.checked=!t},onfocus:function(){return e.events.fire(c.ItemEvent.focus,[e.getValue()])},onblur:function(){var t;return null===(t=e.events)||void 0===t?void 0:t.fire(c.ItemEvent.blur,[e.getValue()])},onkeydown:function(t){e.events.fire(c.ItemEvent.keydown,[t])}}}this.config.hidden&&d.awaitRedraw().then(function(){e.hide(!0)})},p.prototype._initHandlers=function(){var t=this;this.events.on(c.ItemEvent.change,function(){return t.paint()}),this.events.on(c.ItemEvent.afterValidate,function(){t.config.$validationStatus=t._isValid?c.ValidationStatus.success:c.ValidationStatus.error,t.paint()})},p.prototype._draw=function(){var t=this.config,e=t.id,i=t.value,n=t.checked,o=t.disabled,r=t.name,s=t.required,a=t.$required,l=t.text,c=t.label,u=t.labelWidth,t=t.helpMessage;return d.el("label.dhx_checkbox.dhx_form-group.dhx_form-group--checkbox",{class:h.getFormItemCss(this.config,h.isVerify(this.config)||!!a)},this._inGroup?[d.el(".dhx_checkbox__holder",[d.el("input.dhx_checkbox__input",{type:"checkbox",id:e,value:i||"",name:r||"",disabled:o,checked:n,onchange:this._handlers.onchange,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,required:s,_ref:"input"}),d.el("span.dhx_checkbox__visual-input"),d.el("span.dhx_text",[l])])]:[c||u||t||s?this._drawLabel():null,d.el(".dhx_checkbox__container",[d.el(".dhx_checkbox__holder",[d.el("input.dhx_checkbox__input",{type:"checkbox","data-dhx-id":r||e,id:e,value:i,name:r,disabled:o,checked:n,onchange:this._handlers.onchange,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,required:s,_ref:"input","aria-label":c||"checkbox "+(l||""),"aria-describedby":t?"dhx_label__help_"+(e||this._uid):null}),d.el("span.dhx_checkbox__visual-input"),d.el("span.dhx_text",[l])]),s&&h.getValidationMessage(this.config)&&d.el("span.dhx_input__caption",h.getValidationMessage(this.config))])])},p);function p(t,e){void 0===e&&(e={});var i=s.call(this,t,e)||this;i.events=new a.EventSystem,i._isValid=!0,i._propsItem=["required","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage","text"],i._props=r(h.baseProps,i._propsItem),i._initView(e),i._initHandlers();return i.mount(t,d.create({render:function(){return i._draw()}})),i}e.Checkbox=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var u=i(0),a=i(2),d=i(3),l=i(5),c=i(1),h=i(8),f=i(59),p=i(12),g=i(7),v=i(98),_=i(4);(i=e.FileStatus||(e.FileStatus={})).queue="queue",i.uploaded="uploaded",i.failed="failed",i.inprogress="inprogress";var m,o=(m=l.View,o(y,m),y.prototype.send=function(t){this._uploader.send(t)},y.prototype.selectFile=function(){this._uploader.selectFile()},y.prototype.setValue=function(t){t.length&&(this.data.parse(t),g.isVerify(this.config)&&this.validate())},y.prototype.getValue=function(){return this.data.serialize()},y.prototype.clear=function(){0!==this.getValue().length&&this.events.fire(_.ItemEvent.beforeChange,[[]])&&(this.data.removeAll(),this.events.fire(_.ItemEvent.change,[this.getValue()]))},y.prototype.disable=function(){this.config.disabled=!0,this.paint()},y.prototype.enable=function(){var t;this.config.disabled=!1,null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.paint()},y.prototype.isDisabled=function(){return this.config.disabled},y.prototype.show=function(){var t=this.config,e=t.value;t.hidden&&this.events.fire(_.ItemEvent.beforeShow,[e])&&(this.config.hidden=!1,this.events.fire(_.ItemEvent.afterShow,[e]))},y.prototype.hide=function(t){var e=this.config,i=e.value;e.hidden&&!t||!this.events.fire(_.ItemEvent.beforeHide,[i,t])||(this.config.hidden=!0,this.events.fire(_.ItemEvent.afterHide,[i,t]))},y.prototype.isVisible=function(){return!this.config.hidden},y.prototype.validate=function(t,e){void 0===t&&(t=!1);e=e||this.getValue();return!(!t&&!this.events.fire(_.ItemEvent.beforeValidate,[e]))&&(this._isValid=!!("function"==typeof this.config.validation?this.config.validation(e):e.length),t||this.events.fire(_.ItemEvent.afterValidate,[e,this._isValid]),this._isValid)},y.prototype.clearValidate=function(){this.config.$validationStatus=_.ValidationStatus.pre,this.paint()},y.prototype.setProperties=function(t){if(t&&!c.isEmptyObj(t)&&this.events.fire(_.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e],this._propsSimpleVault.includes(e)&&(this._uploader.config[e]=t[e]));this.events.fire(_.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},y.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},y.prototype.focus=function(){var t;null!==(t=null===(t=null===(t=this.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.input)&&void 0!==t&&t.el.focus(),this.paint()},y.prototype.blur=function(){var t;null!==(t=null===(t=null===(t=this.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.input)&&void 0!==t&&t.el.blur(),this.paint()},y.prototype.destructor=function(){this.events&&this.events.clear(),this._helper&&this._helper.destructor(),this.config=this.events=this._uid=this._helper=this._handlers=this._uploader=this.data=null,this._propsItem=this._propsSimpleVault=this._props=this._isValid=this._dragover=this._dragoverTimeout=null,this.unmount()},y.prototype._initView=function(t){this.config=r({type:t.type,id:t.id,name:t.name,value:[],disabled:!1,hidden:!1,css:"",label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t),this.config.value.length&&this.setValue(this.config.value),this.paint()},y.prototype._initHandlers=function(){var o=this;this._handlers={add:function(t){o.config.disabled||(t.preventDefault(),o._uploader.selectFile())},remove:function(t){o.config.disabled||(t=d.locate(t))&&o.data.remove(t)},ondragover:function(t){for(var e=0,i=t.dataTransfer.types;e<i.length;e++){var n=i[e];if("Files"!==n&&"application/x-moz-file"!==n)return}o._dragoverTimeout?clearTimeout(o._dragoverTimeout):o.paint(),o._dragover=!0,o._dragoverTimeout=setTimeout(function(){o._dragover=!1,o._dragoverTimeout=null,o.paint()},150)},showHelper:function(t){t.stopPropagation(),t.preventDefault(),o._helper.show(t.target,{mode:"left"===o.config.labelPosition?"bottom":"right",theme:t.target})},hideHelper:function(t){t.preventDefault(),t.stopPropagation(),o._helper.hide()}},this.events.on(_.ItemEvent.afterValidate,function(){o.config.$validationStatus=o._isValid?_.ValidationStatus.success:_.ValidationStatus.error,o.paint()}),this._uploader.events.on("beforeUploadFile",function(t){return!(o.config.autosend&&!o._isValid)&&o.events.fire(_.ItemEvent.beforeUploadFile,[t,o.config.value])}),this._uploader.events.on("uploadBegin",function(t){o.events.fire(_.ItemEvent.uploadBegin,[t,o.config.value])}),this._uploader.events.on("uploadComplete",function(t){o.events.fire(_.ItemEvent.uploadComplete,[t,o.config.value])}),this._uploader.events.on("uploadFail",function(t){o.events.fire(_.ItemEvent.uploadFail,[t,o.config.value])}),this._uploader.events.on("uploadFile",function(t,e){o.events.fire(_.ItemEvent.uploadFile,[t,o.config.value,e])}),this._uploader.events.on("uploadProgress",function(t){o.events.fire(_.ItemEvent.uploadProgress,[t,o.config.value])}),this.data.events.on(h.DataEvents.beforeAdd,function(t){return o.events.fire(_.ItemEvent.beforeChange,[s(o.config.value,[t]),t])}),this.data.events.on(h.DataEvents.beforeRemove,function(e){var t=o.config.value.filter(function(t){return t.id!==e.id});return o.events.fire(_.ItemEvent.beforeChange,[t,e])}),this.data.events.on(_.ItemEvent.change,function(t,e,i){var n;e&&(n=o.config.value=o.getValue(),o._uploader.isActive&&"update"===e||(o.events.fire(_.ItemEvent.change,[n,i]),g.isVerify(o.config)&&o.validate()),o.paint())})},y.prototype._draw=function(){var e=this;this.config.helpMessage&&(this._helper||(this._helper=new p.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"})),this._helper.attachHTML(this.config.helpMessage));var t=this.data.getLength()?u.el("ul.dhx_simplevault__files.dhx_simplevault-files",{class:this.config.$vaultHeight?"":"dhx_simplevault-files__fixed"},this.data.map(function(t){return u.el("li.dhx_simplevault-files__item",[u.el("span.dhx_simplevault-files__item-name",t.file&&t.file.name||t.name),u.el(".dhx_button.dhx_simplevault-files__delete.dhx_button--icon.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--circle",{"data-dhx-id":t.id,onclick:e._handlers.remove},[u.el("span.dxi.dxi-delete-forever")])])})):null,i=this.config,n=i.id,o=i.helpMessage,r=i.disabled,s=i.required,a=i.label,l=i.hidden,c=i.accept,i=d.getLabelStyle(this.config),l=l?" dhx_form-group--hidden":"";return u.el(".dhx_form-group.dhx_form-group--simplevault",{class:g.getFormItemCss(this.config,g.isVerify(this.config))+l},[i&&u.el("legend.dhx_label",{class:o?"dhx_label--with-help":"",style:i.style,onclick:this._handlers.add,"aria-label":a||"select files"},o?[(i.label||s)&&u.el("span.dhx_label__holder",i.label),u.el("span.dhx_label-help.dxi.dxi-help-circle-outline",{tabindex:"0",role:"button",onclick:this._handlers.showHelper,onfocus:this._handlers.showHelper,onblur:this._handlers.hideHelper})]:i.label),u.el(".dhx_input__wrapper",{id:this._uid},[u.el("div",{_hooks:{didInsert:function(t){e._uploader.linkDropArea(t.el)}},ondragover:this._handlers.ondragover,class:"dhx_simplevault"+(this._dragover?" dhx_simplevault--on-drag":"")},[u.el("div.dhx_simplevault-loader",[u.el("span.dhx_simplevault__icon.dxi.dxi-vault")]),u.el(".dhx_simplevault__drop-area",[u.el("input.dhx_simplevault__input",{_ref:"input",type:"file",id:n,disabled:r,accept:c}),u.el("span.dhx_simplevault__icon.dxi.dxi-vault"),u.el("span.dhx_simplevault__title",[u.el("span",v.default.simpleVaultText),u.el("br"),u.el("label.dhx_simplevault__label",{onclick:this._handlers.add,for:n}," "+v.default.simpleVaultLabel)])]),t]),g.getValidationMessage(this.config)&&u.el("span.dhx_input__caption",{},g.getValidationMessage(this.config))])])},y);function y(t,e){var i=m.call(this,t,e)||this;i._isValid=!0,i._propsItem=["required","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage"],i._propsSimpleVault=["params","headerParams","target","fieldName","singleRequest","updateFromResponse","autosend","accept","validation"],i._props=s(g.baseProps,i._propsItem,i._propsSimpleVault),i.events=new a.EventSystem(i),i.data=new h.DataCollection,i._uploader=new f.Uploader(r({target:"",accept:"",fieldName:"file",singleRequest:!1,updateFromResponse:!0,autosend:!1},e),i.data,i.data.events),i._initView(r(r({},i._uploader.config),e)),i._initHandlers();return i.mount(t,u.create({render:function(){return i._draw()}})),i}e.SimpleVault=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={simpleVaultText:"Drag & drop files or folders here or",simpleVaultLabel:"browse files"}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,l=i(4),c=i(5),p=i(0),u=i(2),d=i(7),h=i(1),o=(a=c.View,o(f,a),f.prototype.setValue=function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!1),"boolean"==typeof t&&t!==this.config.selected&&(e||this.events.fire(l.ItemEvent.beforeChange,[t]))&&(this.config.selected=t,e||this.events.fire(l.ItemEvent.change,[this.getValue()]),this.paint())},f.prototype.getValue=function(){var t=this.config,e=t.value,t=t.selected;return"string"==typeof e?t?e:"":"number"==typeof e?t?e:0:!!t},f.prototype.isSelected=function(){return!!this.config.selected},f.prototype.show=function(){this.config.hidden&&this.events.fire(l.ItemEvent.beforeShow,[this.getValue()])&&(this.config.hidden=!1,this.events.fire(l.ItemEvent.afterShow,[this.getValue()]))},f.prototype.hide=function(t){void 0===t&&(t=!1),this.config.hidden&&!t||!this.events.fire(l.ItemEvent.beforeHide,[this.getValue(),t])||(this.config.hidden=!0,this.events.fire(l.ItemEvent.afterHide,[this.getValue(),t]))},f.prototype.isVisible=function(){return!this.config.hidden},f.prototype.focus=function(){var t=this;p.awaitRedraw().then(function(){t.getRootView().refs.button.el.focus(),t.paint()})},f.prototype.blur=function(){var t=this;p.awaitRedraw().then(function(){t.getRootView().refs.button.el.blur(),t.paint()})},f.prototype.disable=function(){this.config.disabled=!0,this.paint()},f.prototype.enable=function(){var t;this.config.disabled=!1,null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.paint()},f.prototype.isDisabled=function(){return!!this.config.disabled},f.prototype.setProperties=function(t){if(t&&!h.isEmptyObj(t)&&this.events.fire(l.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this.props.includes(e)&&(this.config[e]=t[e]);this.events.fire(l.ItemEvent.afterChangeProperties,[this.getProperties()])}},f.prototype.getProperties=function(){for(var t={},e=0,i=this.props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},f.prototype.destructor=function(){this.events.clear(),this.unmount()},f.prototype.draw=function(){var t=this.config,e=t.id,i=t.name,n=t.selected,o=t.disabled,r=t.hidden,s=t.text,a=t.offText,l=t.icon,c=t.offIcon,u=t.full,d=t.$group,h=t.$gap,f=t.$extraCss,t=t.css;return p.el("button.dhx_toggle",{"data-dhx-id":i||e,role:"button",type:"button","aria-pressed":n,"aria-label":s||i,disabled:o,class:(d?"":"dhx_form-group dhx_form-group--toggle ")+(n?"dhx_toggle--selected ":"")+(o?"dhx_toggle--disabled ":"")+(r?"dhx_toggle--hidden ":"")+(u?"dhx_toggle--full ":"")+(d&&f||"")+(d&&t||""),style:{marginLeft:h},onclick:this.handlers.onclick,onfocus:this.handlers.onfocus,onblur:this.handlers.onblur,onkeydown:this.handlers.onkeydown,_ref:"button"},[l&&p.el("i.dhx_toggle__icon",{class:!n&&c||l}),s&&p.el("span.dhx_toggle__text",{},!n&&a||s)])},f.prototype.initHandlers=function(){var e=this;this.handlers={onclick:function(){return e.setValue(!e.config.selected)},onfocus:function(){return e.events.fire(l.ItemEvent.focus,[e.getValue()])},onblur:function(){return e.events.fire(l.ItemEvent.blur,[e.getValue()])},onkeydown:function(t){return e.events.fire(l.ItemEvent.keydown,[t])}}},f);function f(t,e){var i=a.call(this,t,r({full:!1,selected:!1,disabled:!1,hidden:!1,width:"content",height:"content",text:"",icon:"",offIcon:"",offText:"",css:"",padding:""},e))||this;i.events=new u.EventSystem,i.props=s(i.config.$group?[]:d.baseProps,["value","offIcon","offText","icon","text","full"]),i.config.hidden&&p.awaitRedraw().then(function(){i.hide(!0)}),i.initHandlers();return i.mount(t,p.create({render:function(){return i.draw()}})),i}e.ToggleButton=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(0),a=i(22),l=i(1),c=i(3),u=i(10),o=(r=a.Navbar,o(d,r),d.prototype.getState=function(){var t,e={};for(t in this.data.eachChild(this.data.getRoot(),function(t){t.twoState&&!t.group?e[t.id]=t.active:"input"!==t.type&&"selectButton"!==t.type||(e[t.id]=t.value)},!0),this._groups)this._groups[t].active&&(e[t]=this._groups[t].active);return e},d.prototype.setState=function(t){for(var e in t){var i;this._groups&&this._groups[e]?this._groups[e].active&&(this.data.update(this._groups[e].active,{active:!1}),this._groups[e].active=t[e],this.data.update(t[e],{active:!0})):"input"===(i=this.data.getItem(e)).type||"selectButton"===i.type?this.data.update(e,{value:t[e]}):this.data.update(e,{active:t[e]})}},d.prototype._getFactory=function(){return a.createFactory({widget:this,defaultType:"navItem",allowedTypes:["navItem","button","imageButton","selectButton","customHTML","input","separator","spacer","title","block","customHTMLButton"],widgetName:"ribbon"})},d.prototype._getMode=function(t,e){return t.id===e?"bottom":"right"},d.prototype._close=function(t){this._activePosition=null,this._currentRoot=null,r.prototype._close.call(this,t)},d.prototype._draw=function(){var i=this;this._heightCalculate();var t=Math.max.apply(Math,this._widgetHeight);return s.el("ul.dhx_ribbon.dhx_widget",{"data-dhx-widget-id":this._uid,class:this.config.css||"",tabindex:0,onclick:this._handlers.onclick,onmousedown:this._handlers.onmousedown,oninput:this._listeners.input,onmouseover:this._listeners.tooltip,_hooks:{didInsert:function(t){t.el.addEventListener("keyup",function(t){var e;9!==t.which||(e=c.locateNode(document.activeElement))&&(t=e.getAttribute("data-dhx-id"),(t=i.data.getItem(t)).tooltip&&u.tooltip(t.tooltip,{node:e,position:u.Position.bottom,force:!0}))},!0)}}},[s.el("li",{class:"dhx_ribbon-block dhx_ribbon-block--root",style:{height:this._haveTitle?t+24:t}},[s.el("ul.dhx_ribbon-content.dhx_ribbon-content--full-width",{style:{height:t}},this.data.map(function(t){return"block"===t.type?i._drawBlock(t,!0):i._factory(t)},this.data.getRoot(),!1))])])},d.prototype._setRoot=function(t){var e=this.data.getParent(t);"block"===this.data.getItem(e).type&&(this._currentRoot=t)},d.prototype._drawBlock=function(t,e){var i=this;if(!t||t.hidden)return null;var n="dhx_ribbon-block dhx_ribbon-block"+("col"===t.direction?"--col":"--row")+(t.title?" dhx_ribbon-block--title":"")+(t.css?" "+t.css:"")+(e?" dhx_ribbon-block--indented":""),e=t.items.map(function(t){return"block"===t.type?i._drawBlock(t):"separator"!==t.type&&"spacer"!==t.type?i._factory(t):null},t.id,!1);return s.el("li",{class:n},[s.el("ul.dhx_ribbon-content",e),t.title?s.el("span.dhx_ribbon-content-label-wrapper",[s.el("span.dhx_ribbon-content-label",t.title)]):null])},d.prototype._getBlockHeight=function(t){return t.hidden?0:"medium"===t.size&&"button"!==t.type?72:36},d.prototype._heightCalculate=function(t){var i=this;void 0===t&&(t=this.data),t.forEach(function(t){var e;"block"===t.type&&"col"===t.direction?(e=t.items.reduce(function(t,e){return t+i._getBlockHeight(e)},0),i._heightCalculate(t.items)):e=i._getBlockHeight(t),t.title&&(i._haveTitle=!0),i._widgetHeight.push(e)})},d);function d(t,e){var i=r.call(this,t,l.extend({navigationType:"click",$name:"ribbon"},e))||this;i._widgetHeight=[],i._listeners={input:function(t){var e=c.locate(t);i.data.update(e,{value:t.target.value})},tooltip:function(t){var e=c.locateNode(t);e&&(t=e.getAttribute("data-dhx-id"),(t=i.data.getItem(t)).tooltip&&u.tooltip(t.tooltip,{node:e,position:u.Position.bottom}))}},i._currentRoot=null;return i.mount(t,s.create({render:function(){return i._draw()}})),i}e.Ribbon=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(0),a=i(3),l=i(102),c=i(10),u=i(22),d=i(1),o=(r=u.Navbar,o(h,r),h.prototype.toggle=function(){this.config.collapsed?this.expand():this.collapse(),this.events.fire(l.SidebarEvents.toggle,[this.config.collapsed]),this.paint()},h.prototype.collapse=function(){this.events.fire(l.SidebarEvents.beforeCollapse,[])&&(this.config.collapsed=!0,this.events.fire(l.SidebarEvents.afterCollapse,[]),this.paint())},h.prototype.expand=function(){this.events.fire(l.SidebarEvents.beforeExpand,[])&&(this.config.collapsed=!1,this.events.fire(l.SidebarEvents.afterExpand,[]),this.paint())},h.prototype.isCollapsed=function(){return this.config.collapsed},h.prototype._getFactory=function(){return u.createFactory({widget:this,defaultType:"navItem",allowedTypes:["navItem","menuItem","customHTML","separator","spacer","title","customHTMLButton"],widgetName:"sidebar"})},h.prototype._close=function(t){this._activePosition=null,this._currentRoot=null,r.prototype._close.call(this,t)},h.prototype._setRoot=function(t){this.data.getParent(t)===this.data.getRoot()&&(this._currentRoot=t)},h.prototype._customHandlers=function(){var i=this;return{tooltip:function(t){var e=a.locateNode(t);e&&(t=e.getAttribute("data-dhx-id"),((t=i.data.getItem(t)).tooltip||i.config.collapsed&&t.value)&&c.tooltip(t.tooltip||t.value,{node:e,position:c.Position.right}))}}},h.prototype._draw=function(){var i=this,t=this.config,e=t.width,t=t.minWidth,e=this.config.collapsed?t:e;return s.el("nav.dhx_widget.dhx_sidebar",{class:(this.config.css||"")+(this.config.collapsed?" dhx_sidebar--minimized":""),style:{width:e+"px"}},[s.el("ul.dhx_navbar.dhx_navbar--vertical",{"data-dhx-widget-id":this._uid,tabindex:0,onclick:this._handlers.onclick,onmousedown:this._handlers.onmousedown,oninput:this._handlers.input,onmouseover:this._handlers.tooltip,_hooks:{didInsert:function(t){t.el.addEventListener("keyup",function(t){var e;9!==t.which||(e=a.locateNode(document.activeElement))&&(t=e.getAttribute("data-dhx-id"),((t=i.data.getItem(t)).tooltip||i.config.collapsed&&t.value)&&c.tooltip(t.tooltip||t.value,{node:e,position:c.Position.right,force:!0}))},!0)}}},this.data.map(function(t){return i._factory(t,!1)},this.data.getRoot(),!1))])},h.prototype._getMode=function(){return"right"},h.prototype._customInitEvents=function(){var t=this;this.events.on(u.NavigationBarEvents.inputBlur,function(){t._waitRestore&&(t.toggle(),t._waitRestore=!1)}),this.events.on(u.NavigationBarEvents.inputFocus,function(){t.config.collapsed&&(t._waitRestore=!0,t.toggle())})},h);function h(t,e){var i=r.call(this,t,d.extend({navigationType:"click",width:"200",minWidth:"44",collapsed:!1,$name:"sidebar"},e))||this;i._currentRoot=null;return i.mount(t,s.create({render:function(){return i._draw()}})),i}e.Sidebar=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.SidebarEvents||(e.SidebarEvents={})).beforeCollapse="beforeCollapse",e.afterCollapse="afterCollapse",e.beforeExpand="beforeExpand",e.afterExpand="afterExpand",e.toggle="toggle"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.TabbarEvents||(e.TabbarEvents={})).beforeChange="beforeChange",e.change="change",e.beforeClose="beforeClose",e.afterClose="afterClose",e.close="close"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o,r=i(0),s=i(2),a=i(3),l=i(13);(i=n=e.EditorMode||(e.EditorMode={})).editText="text",i.selectItem="select",(i=o=e.EditorEvents||(e.EditorEvents={})).begin="begin",i.end="end";c.prototype.edit=function(t,e){return this._active&&this._item!==e.item&&this._finishEdit(),this._active=!0,this._targetId=t,this.config=e,this._item=e.item,this._currentValue=this._item.value,this.events.fire(o.begin,[t]),this._initOuterClick(),this._addHotkeys(),this._draw()},c.prototype.isEditable=function(){return this._active},c.prototype._draw=function(){var e=this;if(this.config.mode!==n.selectItem)return r.el("div.dhx_tree-editor",{_hooks:{didInsert:this._handlers.didInsert},id:"input_"+this._item.id,oninput:this._handlers.editText,contentEditable:!0},this._currentValue);var t=this.config.options;return r.el("select",{id:"input_"+this._item.id,"data-dhx-id":this._item.id,onchange:this._handlers.itemSelected},t.map(function(t){return r.el("option",{class:"editor-select",value:t,selected:e._currentValue===t,style:{border:"1px solid"}},t)}))},c.prototype._addHotkeys=function(){var t=this;this._keyManager.addHotKey("escape",function(){t._finishEdit()}),this._keyManager.addHotKey("enter",function(){t._finishEdit()})},c.prototype._removeHotkeys=function(){this._keyManager.removeHotKey()},c.prototype._finishEdit=function(){this.events.fire(o.end,[this._targetId,this._item.id,this._currentValue])&&this._clear()},c.prototype._clear=function(){this._active=!1,this._removeClickListener(),this._removeHotkeys()},c.prototype._initOuterClick=function(){document.addEventListener("click",this._documentClick)},c.prototype._removeClickListener=function(){document.removeEventListener("click",this._documentClick)},i=c;function c(){var e=this;this.events=new s.EventSystem,this._keyManager=new l.KeyManager,this._documentClick=function(t){a.locate(t,"id")!=="input_"+e._item.id&&(e._removeClickListener(),e._finishEdit())},this._handlers={editText:function(t){e._currentValue=t.target.innerText},itemSelected:function(t){e._currentValue=t.target.value,e._finishEdit()},didInsert:function(t){var e,i=null==t?void 0:t.el;i&&(i.childNodes.length&&(e=document.createRange(),t=window.getSelection(),e.setStart(i.childNodes[0],i.innerText.length),e.collapse(!0),t.removeAllRanges(),t.addRange(e)),i.focus())}}}e.Editor=i},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.SelectStatus||(e.SelectStatus={}))[n.unselected=0]="unselected",n[n.selected=1]="selected",n[n.indeterminate=2]="indeterminate",(e=e.TreeEvents||(e.TreeEvents={})).itemClick="itemclick",e.itemDblClick="itemdblclick",e.itemRightClick="itemrightclick",e.beforeCollapse="beforeCollapse",e.afterCollapse="afterCollapse",e.beforeExpand="beforeExpand",e.afterExpand="afterExpand",e.beforeEditStart="beforeEditStart",e.afterEditStart="afterEditStart",e.beforeEditEnd="beforeEditEnd",e.afterEditEnd="afterEditEnd",e.focusChange="focusChange",e.beforeCheck="beforeCheck",e.afterCheck="afterCheck",e.itemContextMenu="itemcontextmenu"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=i(1),n=i(0),o=i(2),r=i(13),c=i(19),s=i(11),a=i(37),u=i(241),f=i(107),d=i(242),h=i(22),i=(p.prototype.paint=function(){this._layout.paint()},p.prototype.isFullScreen=function(){return this._fullScreen},p.prototype.setFullScreen=function(){this._fullScreen||(this._fullScreen=!0,this.setSize(window.innerWidth,window.innerHeight),this.setPosition(window.pageXOffset,window.pageYOffset))},p.prototype.unsetFullScreen=function(){this._fullScreen&&(this._fullScreen=!1,this.setSize(this._oldSizes.width,this._oldSizes.height),this.setPosition(this._oldPosition.left,this._oldPosition.top))},p.prototype.setSize=function(t,e){this._oldSizes={width:this._popup.offsetWidth,height:this._popup.offsetHeight};var i={width:this._oldSizes.width,height:this._oldSizes.height};l.isDefined(t)&&(this.config.width=i.width=t),l.isDefined(e)&&(this.config.height=i.height=e),this._popup.style.width=i.width+"px",this._popup.style.height=i.height+"px",this.events.fire(f.WindowEvents.resize,[i,this._oldSizes,{left:!0,top:!0,bottom:!0,right:!0}])},p.prototype.getSize=function(){return{width:this._popup.offsetWidth,height:this._popup.offsetHeight}},p.prototype.setPosition=function(t,e){this._oldPosition={left:this._popup.offsetLeft,top:this._popup.offsetTop};var i={left:this._oldPosition.left,top:this._oldPosition.top};l.isDefined(t)&&(this.config.left=i.left=t),l.isDefined(e)&&(this.config.top=i.top=e),this._popup.style.left=i.left+"px",this._popup.style.top=i.top+"px",this.events.fire(f.WindowEvents.resize,[i,this._oldPosition,{left:!0,top:!0,bottom:!0,right:!0}])},p.prototype.getPosition=function(){return{left:this._popup.offsetLeft,top:this._popup.offsetTop}},p.prototype.show=function(t,e){if(void 0===t&&(t=this.config.left),void 0===e&&(e=this.config.top),this.events.fire(f.WindowEvents.beforeShow,[{left:t,top:e}])){this.isVisible()&&this.hide(),d.default.setActive(this._uid),this._popup.className+=" dhx_popup dhx_widget"+(this.config.modal?" dhx_popup--window_modal":" dhx_popup--window")+(this.config.css?" "+this.config.css:""),this._popup.style.position=this.config.modal?"fixed":"absolute",this._popup.setAttribute("data-dhx-widget-id",this._uid);var i=this._getContainerParams(),n=i.containerInnerWidth,o=i.containerInnerHeight,r=i.containerXOffset,s=i.containerYOffset,a=this.config.width="number"==typeof this.config.width&&this.config.width||"number"==typeof this.config.minWidth&&this.config.minWidth||n/2,i=this.config.height="number"==typeof this.config.height&&this.config.height||"number"==typeof this.config.minHeight&&this.config.minHeight||o/2;if(this.config.left=t=l.isDefined(t)?t:(n-a)/(this.config.modal?2:2+r),this.config.top=e=l.isDefined(e)?e:(o-i)/(this.config.modal?2:2+s),this._isActive)return this._popup.style.left=t+"px",void(this._popup.style.top=e+"px");this.config.viewportOverflow&&d.default.openFreeWindow(this.config.node),this.config.modal&&this._blockScreen(),this._popup.style.width=a+"px",this._popup.style.height=i+"px",this._popup.style.left=t+"px",this._popup.style.top=e+"px",this.config.node.appendChild(this._popup),this._popup.focus(),this._isActive=!0,this.events.fire(f.WindowEvents.afterShow,[{left:t,top:e}]),c.focusManager.setFocusId(this._uid)}},p.prototype.hide=function(){this._hide()},p.prototype._hide=function(t){this._isActive&&this.events.fire(f.WindowEvents.beforeHide,[{left:this.config.left,top:this.config.top},t])&&(this.config.viewportOverflow&&d.default.closeFreeWindow(this.config.node),this._blocker&&(this.config.node.removeChild(this._blocker),this.config.closable&&this._keyManager.removeHotKey(null,this),this._blocker=null),this.config.node.removeChild(this._popup),this._isActive=!1,this.events.fire(f.WindowEvents.afterHide,[{left:this.config.left,top:this.config.top},t]))},p.prototype.isVisible=function(){return this._isActive},p.prototype.getWidget=function(){return this._layout.getCell("content").getWidget()},p.prototype.getContainer=function(){return this.getRootView().data._container},p.prototype.attach=function(t,e){this._layout.getCell("content").attach(t,e)},p.prototype.attachHTML=function(t){this._layout.getCell("content").attachHTML(t)},p.prototype.getRootView=function(){return this._layout.getRootView()},p.prototype.destructor=function(){this._isActive&&this.hide(),this.header&&this.header.destructor(),this.footer&&this.footer.destructor(),this.events&&this.events.clear(),this._keyManager&&this._keyManager.destructor(),this._layout&&this._layout.destructor(),this.config=this.header=this.footer=this.events=null,this._popup=this._uid=this._handlers=this._isActive=this._keyManager=this._fullScreen=this._oldSizes=this._oldPosition=null},p.prototype.fullScreen=function(){this.setFullScreen()},p.prototype._initHandlers=function(){var i=this;this._handlers={headerDblClick:function(t){return i.events.fire(f.WindowEvents.headerDoubleClick,[t])},move:function(t){3!==t.which&&(t.preventDefault(),u.detectDrag(t).then(function(t){t&&i._startDrag(t.x,t.y)}))},resize:{".dhx_window-resizer":function(e){3!==e.which&&(e.preventDefault(),d.default.setActive(i._uid),u.detectDrag(e).then(function(t){t&&((t=e.target.classList).contains("dhx_window-resizer--left")?i._startResize({left:!0}):t.contains("dhx_window-resizer--right")?i._startResize({right:!0}):t.contains("dhx_window-resizer--top")?i._startResize({top:!0}):t.contains("dhx_window-resizer--bottom")?i._startResize({bottom:!0}):t.contains("dhx_window-resizer--bottom_left")?i._startResize({left:!0,bottom:!0}):t.contains("dhx_window-resizer--bottom_right")?i._startResize({bottom:!0,right:!0}):t.contains("dhx_window-resizer--top_left")?i._startResize({top:!0,left:!0}):t.contains("dhx_window-resizer--top_right")&&i._startResize({top:!0,right:!0}))}))}},setActive:function(){d.default.setActive(i._uid)}}},p.prototype._initUI=function(){var i=this,t=[],e=(this.config.header||this.config.title||this.config.closable||this.config.movable)&&!1!==this.config.header;e&&t.push({id:"header",height:"content",css:"dhx_window-header "+(this.config.movable?"dhx_window-header--movable":""),on:{mousedown:this.config.movable&&this._handlers.move,dblclick:this._handlers.headerDblClick}}),t.push({id:"content",css:e?"dhx_window-content":"dhx_window-content-without-header"}),this.config.footer&&t.push({id:"footer",height:"content",css:"dhx_window-footer"}),this.config.resizable&&t.push({id:"resizers",height:"content",css:"resizers"});var n,t=this._layout=new s.Layout(this._popup,{css:"dhx_window"+(this.config.modal?" dhx_window--modal":""),rows:t,on:{mousedown:this._handlers.setActive},id:this._uid});e&&(n=this.header=new a.Toolbar,this.config.title&&(this.header.data.add({type:"title",value:this.config.title,id:"title",css:"title_max"}),this._popup.setAttribute("aria-label",this.config.title)),this.config.closable&&(this.header.data.add({type:"spacer"}),this.header.data.add({id:"close",type:"button",view:"link",size:"medium",color:"secondary",circle:!0,icon:"dxi dxi-close"}),n.events.on(h.NavigationBarEvents.click,function(t,e){"close"===t&&i._hide(e)})),t.getCell("header").attach(n)),this.config.footer&&(n=this.footer=new a.Toolbar,t.getCell("footer").attach(n)),this.config.resizable&&t.getCell("resizers").attach(function(){return i._drawResizers()})},p.prototype._drawResizers=function(){return n.el(".dhx-resizers",{onmousedown:this._handlers.resize},[n.el(".dhx_window-resizer.dhx_window-resizer--left",{_ref:"left"}),n.el(".dhx_window-resizer.dhx_window-resizer--right",{_ref:"right"}),n.el(".dhx_window-resizer.dhx_window-resizer--bottom",{_ref:"bottom"}),n.el(".dhx_window-resizer.dhx_window-resizer--top",{_ref:"top"}),n.el(".dhx_window-resizer.dhx_window-resizer--bottom_right",{_ref:"bottomRight"}),n.el(".dhx_window-resizer.dhx_window-resizer--bottom_left",{_ref:"bottomLeft"}),n.el(".dhx_window-resizer.dhx_window-resizer--top_right",{_ref:"topRight"}),n.el(".dhx_window-resizer.dhx_window-resizer--top_left",{_ref:"topLeft"})])},p.prototype._startDrag=function(t,e){var a=this;this.config.node.classList.add("dhx_window--stop_selection");function i(t){var e,i,n,o={left:a._popup.offsetLeft,top:a._popup.offsetTop},r=t.pageX-l,s=t.pageY-c;a.config.viewportOverflow||(e=(n=a._getContainerParams()).containerXOffset,i=n.containerYOffset,t=n.containerInnerWidth,n=n.containerInnerHeight,r<e?r=e:e+t-u<r&&(r=e+t-u),s<i?s=i:i+n-d<s&&(s=i+n-d)),a.config.left=r,a.config.top=s,a._popup.style.left=r+"px",a._popup.style.top=s+"px",s={left:r,top:s},a.events.fire(f.WindowEvents.move,[s,o,{left:!0,top:!0,bottom:!0,right:!0}])}var l=t-this._popup.offsetLeft,c=e-this._popup.offsetTop,u=this._popup.offsetWidth,d=this._popup.offsetHeight,n=function(){document.removeEventListener("mouseup",n),document.removeEventListener("mousemove",i),a.config.node.classList.remove("dhx_window--stop_selection")};document.addEventListener("mouseup",n),document.addEventListener("mousemove",i)},p.prototype._startResize=function(r){var t,e,s=this,a=100|this.config.minWidth,l=100|this.config.minHeight,c=this._popup.offsetLeft,u=this._popup.offsetTop,d=this._popup.offsetWidth,h=this._popup.offsetHeight,i=this.getRootView().refs;switch(!0){case r.bottom&&r.left:e="dhx_window-body-pointer--bottom_left",t=i.bottomLeft;break;case r.bottom&&r.right:e="dhx_window-body-pointer--bottom_right",t=i.bottomLeft;break;case r.top&&r.left:e="dhx_window-body-pointer--top_left",t=i.bottomLeft;break;case r.top&&r.right:e="dhx_window-body-pointer--top-right",t=i.right;break;case r.top:e="dhx_window-body-pointer--top",t=i.bottomLeft;break;case r.bottom:e="dhx_window-body-pointer--bottom",t=i.bottomLeft;break;case r.left:e="dhx_window-body-pointer--left",t=i.bottomLeft;break;case r.right:e="dhx_window-body-pointer--right",t=i.right}t.el.classList.add("dhx_window-resizer--active"),this.config.node.classList.add("dhx_window--stop_selection"),this.config.node.classList.add(e);function n(t){var e=(o=s._getContainerParams()).containerInnerWidth,i=o.containerInnerHeight,n=o.containerXOffset,o=o.containerYOffset,t={width:s._notInNode()?t.pageX-c:t.pageX-s.config.node.offsetLeft-c,height:s._notInNode()?t.pageY-u:t.pageY-s.config.node.offsetTop-u,left:s._notInNode()?t.pageX:t.pageX-s.config.node.offsetLeft,top:s._notInNode()?t.pageY:t.pageY-s.config.node.offsetTop};r.right&&(t.width<a?t.width=a:t.width>n+e-c&&(t.width=n+e-c),s._popup.style.width=t.width+"px"),r.bottom&&(t.height<l?t.height=l:t.height>o+i-u&&(t.height=o+i-u),s._popup.style.height=t.height+"px"),r.left&&(c+d-t.left<a&&(t.left=c+d-a),t.width=c+d-t.left,s.config.left=t.left,s._popup.style.left=t.left+"px",s._popup.style.width=t.width+"px"),r.top&&(t.top<o?t.top=o:u+h-t.top<l&&(t.top=u+h-l),t.height=u+h-t.top,s.config.top=t.top,s._popup.style.top=t.top+"px",s._popup.style.height=t.height+"px"),s.config.width=s._popup.offsetWidth,s.config.height=s._popup.offsetHeight,s.events.fire(f.WindowEvents.resize,[t,{left:c,top:u,height:h,width:d},r])}var o=function(){document.removeEventListener("mouseup",o),document.removeEventListener("mousemove",n),s.config.node.classList.remove("dhx_window--stop_selection"),s.config.node.classList.remove(e),t.el.classList.remove("dhx_window-resizer--active")};document.addEventListener("mouseup",o),document.addEventListener("mousemove",n)},p.prototype._blockScreen=function(){var n=this,t=document.createElement("div");t.className="dhx_window__overlay",this.config.node.appendChild(t),this._blocker=t,this.config.closable&&(t.addEventListener("click",function(t){return n._hide(t)}),this._keyManager.addHotKey("escape",function(t){var e=Array.prototype.slice.call(document.querySelectorAll(".dhx_popup--window_modal")),i=Array.prototype.slice.call(document.querySelectorAll(".dhx_popup--window")),i=e.concat(i);1!==i.length?(i.sort(function(t,e){return+window.getComputedStyle(e).zIndex-+window.getComputedStyle(t).zIndex}),i[i.length-1]===n._popup&&n._hide(t)):n._hide(t)}))},p.prototype._notInNode=function(){return this.config.node===document.body||this.config.modal},p.prototype._getContainerParams=function(){var t=this._notInNode();return{containerInnerWidth:t?window.innerWidth:this.config.node.offsetWidth,containerInnerHeight:t?window.innerHeight:this.config.node.offsetHeight,containerXOffset:t?window.pageXOffset:this.config.node.scrollLeft,containerYOffset:t?window.pageYOffset:this.config.node.scrollTop}},p);function p(t){var i=this;this.config=l.extend({movable:!1,resizable:!1,closable:t.modal},t),this.config.node&&"string"==typeof this.config.node?this.config.node=document.getElementById(this.config.node):this.config.node||(this.config.node=document.body),this._uid=l.uid(),this.events=new o.EventSystem(this);t=this._popup=document.createElement("div");t.tabIndex=1,t.setAttribute("role","dialog"),t.setAttribute("aria-modal",""+(this.config.modal||!1)),this.config.modal||d.default.add(this._uid,this._popup),this._fullScreen=!1,this._isActive=!1,this._keyManager=new r.KeyManager(function(t,e){return e===i._uid||i.getContainer().contains(document.activeElement)}),this._initHandlers(),this._initUI(),this.config.html&&this.attachHTML(this.config.html)}e.Window=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.WindowEvents||(e.WindowEvents={})).resize="resize",e.headerDoubleClick="headerdoubleclick",e.move="move",e.afterShow="aftershow",e.afterHide="afterhide",e.beforeShow="beforeshow",e.beforeHide="beforehide"},function(t,e,i){i(109),i(110),i(111),i(112),i(113),t.exports=i(114)},function(t,e){Object.values=Object.values||function(e){var t=Object.prototype.toString.call(e);if(null==e)throw new TypeError("Cannot convert undefined or null to object");if(~["[object String]","[object Object]","[object Array]","[object Function]"].indexOf(t)){if(Object.keys)return Object.keys(e).map(function(t){return e[t]});var i,n=[];for(i in e)e.hasOwnProperty(i)&&n.push(e[i]);return n}return[]},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){"use strict";for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(null==t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),o=0;o<e.length;o++){var r=e[o];if(null!=r)for(var s=Object.keys(Object(r)),a=0,l=s.length;a<l;a++){var c=s[a],u=Object.getOwnPropertyDescriptor(r,c);void 0!==u&&u.enumerable&&(n[c]=r[c])}}return n}})},function(t,e){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(t,e){if(null==this)throw new TypeError('"this" is null or not defined');var i=Object(this),n=i.length>>>0;if(0==n)return!1;var o,r,e=0|e,s=Math.max(0<=e?e:n-Math.abs(e),0);for(;s<n;){if((o=i[s])===(r=t)||"number"==typeof o&&"number"==typeof r&&isNaN(o)&&isNaN(r))return!0;s++}return!1},configurable:!0,writable:!0}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null==this)throw new TypeError('"this" is null or not defined');var e=Object(this),i=e.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var n=arguments[1],o=0;o<i;){var r=e[o];if(t.call(n,r,o,e))return r;o++}},configurable:!0,writable:!0}),Array.prototype.findIndex||(Array.prototype.findIndex=function(t){if(null==this)throw new TypeError("Array.prototype.findIndex called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,i=Object(this),n=i.length>>>0,o=arguments[1],r=0;r<n;r++)if(e=i[r],t.call(o,e,r,i))return r;return-1})},function(t,e){String.prototype.includes||(String.prototype.includes=function(t,e){"use strict";return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}),String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){return e=e||0,this.indexOf(t,e)===e}}),String.prototype.padStart||(String.prototype.padStart=function(t,e){return t>>=0,e=String(e||" "),this.length>t?String(this):((t-=this.length)>e.length&&(e+=e.repeat(t/e.length)),e.slice(0,t)+String(this))}),String.prototype.padEnd||(String.prototype.padEnd=function(t,e){return t>>=0,e=String(e||" "),this.length>t?String(this):((t-=this.length)>e.length&&(e+=e.repeat(t/e.length)),String(this)+e.slice(0,t))})},function(t,e){var i,n,o,r;Element&&!Element.prototype.matches&&((i=Element.prototype).matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector),"classList"in SVGElement.prototype||Object.defineProperty(SVGElement.prototype,"classList",{get:function(){var i=this;return{contains:function(t){return-1!==i.className.baseVal.split(" ").indexOf(t)},add:function(t){return i.setAttribute("class",i.getAttribute("class")+" "+t)},remove:function(t){var e=i.getAttribute("class").replace(new RegExp("(\\s|^)".concat(t,"(\\s|$)"),"g"),"$2");i.classList.contains(t)&&i.setAttribute("class",e)},toggle:function(t){this.contains(t)?this.remove(t):this.add(t)}}},configurable:!0}),Object.entries||(n=Function.bind.call(Function.call,Array.prototype.reduce),o=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),r=Function.bind.call(Function.call,Array.prototype.concat),Object.entries=function(i){return n(Object.keys(i),function(t,e){return r(t,"string"==typeof e&&o(i,e)?[[e,i[e]]]:[])},[])}),Event.prototype.composedPath||(Event.prototype.composedPath=function(){if(this.path)return this.path;var t=this.target;for(this.path=[];null!==t.parentNode;)this.path.push(t),t=t.parentNode;return this.path.push(document,window),this.path})},function(t,e){Math.sign=Math.sign||function(t){return 0===(t=+t)||isNaN(t)?t:0<t?1:-1}},function(t,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),e(115);var i=e(116);o.cssManager=i.cssManager;var n=e(2);o.EventSystem=n.EventSystem;var r=e(0);o.awaitRedraw=r.awaitRedraw,o.resizeHandler=r.resizeHandler,o.setTheme=r.setTheme;var s=e(59);o.Uploader=s.Uploader;var a=e(8);o.DataCollection=a.DataCollection,o.TreeCollection=a.TreeCollection,o.DataProxy=a.DataProxy,o.dataDrivers=a.dataDrivers,o.ajax=a.ajax;var l=e(11);o.Layout=l.Layout;i=e(35);o.List=i.List;n=e(33);o.Calendar=n.Calendar;r=e(52);o.Colorpicker=r.Colorpicker;s=e(185);o.Chart=s.Chart;a=e(34);o.Combobox=a.Combobox;l=e(206);o.DataView=l.DataView;i=e(210);o.Form=i.Form;n=e(42);o.Grid=n.Grid;r=e(10);o.message=r.message,o.alert=r.alert,o.confirm=r.confirm,o.enableTooltip=r.enableTooltip,o.disableTooltip=r.disableTooltip,o.tooltip=r.tooltip;s=e(229);o.Menu=s.Menu,o.ContextMenu=s.ContextMenu;a=e(12);o.Popup=a.Popup;l=e(232);o.Ribbon=l.Ribbon;i=e(234);o.Sidebar=i.Sidebar;n=e(48);o.Slider=n.Slider;r=e(236);o.Tabbar=r.Tabbar;s=e(45);o.Timepicker=s.Timepicker;a=e(37);o.Toolbar=a.Toolbar;l=e(238);o.Tree=l.Tree;i=e(240);o.Window=i.Window;n=e(52),r=e(44),s=e(16),a=e(50),l=e(98),i=e(71),e=window;o.i18n=e.dhx&&e.dhx.i18n?e.dhx.i18n:{},o.i18n.setLocale=function(t,e){var i,n=o.i18n[t];for(i in e)n[i]=e[i]},o.i18n.colorpicker=o.i18n.colorpicker||n.locale,o.i18n.message=o.i18n.message||r.default,o.i18n.calendar=o.i18n.calendar||s.locale,o.i18n.combobox=o.i18n.combobox||a.default,o.i18n.form=o.i18n.form||l.default,o.i18n.timepicker=o.i18n.timepicker||i.default},function(t,e,i){},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(1),i=(o.prototype.update=function(){this._styleCont.innerHTML!==this._generateCss()&&(document.head.appendChild(this._styleCont),this._styleCont.innerHTML=this._generateCss())},o.prototype.remove=function(t){delete this._classes[t],this.update()},o.prototype.add=function(t,e,i){void 0===i&&(i=!1);var n=this._toCssString(t),t=this._findSameClassId(n);return t&&e&&e!==t?(this._classes[e]=this._classes[t],e):t||this._addNewClass(n,e,i)},o.prototype.get=function(t){if(this._classes[t]){for(var e={},i=0,n=this._classes[t].split(";");i<n.length;i++){var o=n[i];o&&(e[(o=o.split(":"))[0]]=o[1])}return e}return null},o.prototype.destructor=function(){this._classes=this._styleCont=null},o.prototype._findSameClassId=function(t){for(var e in this._classes)if(t===this._classes[e])return e;return null},o.prototype._addNewClass=function(t,e,i){e=e||"dhx_generated_class_"+n.uid();return this._classes[e]=t,i||this.update(),e},o.prototype._toCssString=function(t){var e,i="";for(e in t){var n=t[e];i+=e.replace(/[A-Z]{1}/g,function(t){return"-"+t.toLowerCase()})+":"+n+";"}return i},o.prototype._generateCss=function(){var t,e="";for(t in this._classes)e+="."+t+"{"+this._classes[t]+"}\n";return e},o);function o(){this._classes={};var t=document.createElement("style");t.id="dhx_generated_styles",this._styleCont=document.head.appendChild(t)}e.CssManager=i,e.cssManager=new i},function(t,o,r){(function(t){var e=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function n(t,e){this._id=t,this._clearFn=e}o.setTimeout=function(){return new n(i.call(setTimeout,e,arguments),clearTimeout)},o.setInterval=function(){return new n(i.call(setInterval,e,arguments),clearInterval)},o.clearTimeout=o.clearInterval=function(t){t&&t.close()},n.prototype.unref=n.prototype.ref=function(){},n.prototype.close=function(){this._clearFn.call(e,this._id)},o.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},o.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},o._unrefActive=o.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;0<=e&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},r(118),o.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,o.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,r(40))},function(t,e,i){(function(t,p){!function(i,n){"use strict";var o,r,s,a,l,c,e,u,t;function d(t){delete r[t]}function h(t){if(s)setTimeout(h,0,t);else{var e=r[t];if(e){s=!0;try{!function(t){var e=t.callback,i=t.args;switch(i.length){case 0:e();break;case 1:e(i[0]);break;case 2:e(i[0],i[1]);break;case 3:e(i[0],i[1],i[2]);break;default:e.apply(n,i)}}(e)}finally{d(t),s=!1}}}}function f(t){t.source===i&&"string"==typeof t.data&&0===t.data.indexOf(u)&&h(+t.data.slice(u.length))}i.setImmediate||(o=1,s=!(r={}),a=i.document,t=(t=Object.getPrototypeOf&&Object.getPrototypeOf(i))&&t.setTimeout?t:i,l="[object process]"==={}.toString.call(i.process)?function(t){p.nextTick(function(){h(t)})}:function(){if(i.postMessage&&!i.importScripts){var t=!0,e=i.onmessage;return i.onmessage=function(){t=!1},i.postMessage("","*"),i.onmessage=e,t}}()?(u="setImmediate$"+Math.random()+"$",i.addEventListener?i.addEventListener("message",f,!1):i.attachEvent("onmessage",f),function(t){i.postMessage(u+t,"*")}):i.MessageChannel?((e=new MessageChannel).port1.onmessage=function(t){h(t.data)},function(t){e.port2.postMessage(t)}):a&&"onreadystatechange"in a.createElement("script")?(c=a.documentElement,function(t){var e=a.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,c.removeChild(e),e=null},c.appendChild(e)}):function(t){setTimeout(h,0,t)},t.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i<e.length;i++)e[i]=arguments[i+1];return t={callback:t,args:e},r[o]=t,l(o),o++},t.clearImmediate=d)}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,i(40),i(119))},function(t,e){var i,n,t=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function s(e){if(i===setTimeout)return setTimeout(e,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(t){i=o}try{n="function"==typeof clearTimeout?clearTimeout:r}catch(t){n=r}}();var a,l=[],c=!1,u=-1;function d(){c&&a&&(c=!1,a.length?l=a.concat(l):u=-1,l.length&&h())}function h(){if(!c){var t=s(d);c=!0;for(var e=l.length;e;){for(a=l,l=[];++u<e;)a&&a[u].run();u=-1,e=l.length}a=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===r||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function p(){}t.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];l.push(new f(t,e)),1!==l.length||c||s(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=p,t.addListener=p,t.once=p,t.off=p,t.removeListener=p,t.removeAllListeners=p,t.emit=p,t.prependListener=p,t.prependOnceListener=p,t.listeners=function(t){return[]},t.binding=function(t){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(t){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},function(t,e,i){
|
|
13
13
|
/**
|
|
14
14
|
* Copyright (c) 2017, Leon Sorokin
|
|
15
15
|
* All rights reserved. (MIT Licensed)
|
|
@@ -18,4 +18,4 @@ if(window.dhx&&(window.dhx_legacy=dhx,delete window.dhx),function(t,e){"object"=
|
|
|
18
18
|
* A thin, fast, dependency-free vdom view layer
|
|
19
19
|
* @preserve https://github.com/leeoniya/domvm (v3.2.6, micro build)
|
|
20
20
|
*/
|
|
21
|
-
t.exports=function(){"use strict";var I=1,l=2,O=3,P=4,D=5,t=typeof window!=="undefined",e,r=(t?window:{}).requestAnimationFrame,c={};function i(){}var p=Array.isArray;function u(t){return t!=null}function s(t){return t!=null&&t.constructor===Object}function o(t,e,i,n){t.splice.apply(t,[i,n].concat(e))}function a(t){var e=typeof t;return e==="string"||e==="number"}function d(t){return typeof t==="function"}function h(t){return typeof t==="object"&&d(t.then)}function f(t){var e=arguments;for(var i=1;i<e.length;i++)for(var n in e[i])t[n]=e[i][n];return t}function g(t,e,i){var n;while(n=e.shift())if(e.length===0)t[n]=i;else t[n]=t=t[n]||{}}function v(t,e){var i=[];for(var n=e;n<t.length;n++)i.push(t[n]);return i}function _(t,e){for(var i in t)if(t[i]!==e[i])return false;return true}function m(t,e){var i=t.length;if(e.length!==i)return false;for(var n=0;n<i;n++)if(t[n]!==e[n])return false;return true}function y(t){if(!r)return t;var e,i,n;function o(){e=0;t.apply(i,n)}return function(){i=this;n=arguments;if(!e)e=r(o)}}function b(t,e,i){return function(){return t.apply(i,e)}}function w(t){var e=t.slice();var i=[];i.push(0);var n;var o;for(var r=0,s=t.length;r<s;++r){var a=i[i.length-1];if(t[a]<t[r]){e[r]=a;i.push(r);continue}n=0;o=i.length-1;while(n<o){var l=(n+o)/2|0;if(t[i[l]]<t[r])n=l+1;else o=l}if(t[r]<t[i[n]]){if(n>0)e[r]=i[n-1];i[n]=r}}n=i.length;o=i[n-1];while(n-- >0){i[n]=o;o=e[o]}return i}function x(t,e){var i=0;var n=e.length-1;var o;var r=n<=2147483647?true:false;if(r)while(i<=n){o=i+n>>1;if(e[o]===t)return o;else if(e[o]<t)i=o+1;else n=o-1}else while(i<=n){o=Math.floor((i+n)/2);if(e[o]===t)return o;else if(e[o]<t)i=o+1;else n=o-1}return i==e.length?null:i}function E(t){return t[0]==="o"&&t[1]==="n"}function C(t){return t[0]==="_"}function S(t){return t==="style"}function k(t){t&&t.el&&t.el.offsetHeight}function V(t){return t.node!=null&&t.node.el!=null}function M(t,e){switch(e){case"value":case"checked":case"selected":return true}return false}function T(t){t=t||c;while(t.vm==null&&t.parent)t=t.parent;return t.vm}function H(){}var n=H.prototype={constructor:H,type:null,vm:null,key:null,ref:null,data:null,hooks:null,ns:null,el:null,tag:null,attrs:null,body:null,flags:0,_class:null,_diff:null,_dead:false,_lis:false,idx:null,parent:null};function F(t){var e=new H;e.type=l;e.body=t;return e}var R={},L=/\[(\w+)(?:=(\w+))?\]/g;function A(t){{var e=R[t];if(e==null){var i,n,o,r;R[t]=e={tag:(i=t.match(/^[-\w]+/))?i[0]:"div",id:(n=t.match(/#([-\w]+)/))?n[1]:null,class:(o=t.match(/\.([-\w.]+)/))?o[1].replace(/\./g," "):null,attrs:null};while(r=L.exec(t)){if(e.attrs==null)e.attrs={};e.attrs[r[1]]=r[2]||""}}return e}}var j=1,$=2,N=4,z=8;function W(t,e,i,n){var o=new H;o.type=I;if(u(n))o.flags=n;o.attrs=e;var r=A(t);o.tag=r.tag;if(r.id||r.class||r.attrs){var s=o.attrs||{};if(r.id&&!u(s.id))s.id=r.id;if(r.class){o._class=r.class;s.class=r.class+(u(s.class)?" "+s.class:"")}if(r.attrs)for(var a in r.attrs)if(!u(s[a]))s[a]=r.attrs[a];o.attrs=s}var l=o.attrs;if(u(l)){if(u(l._key))o.key=l._key;if(u(l._ref))o.ref=l._ref;if(u(l._hooks))o.hooks=l._hooks;if(u(l._data))o.data=l._data;if(u(l._flags))o.flags=l._flags;if(!u(o.key))if(u(o.ref))o.key=o.ref;else if(u(l.id))o.key=l.id;else if(u(l.name))o.key=l.name+(l.type==="radio"||l.type==="checkbox"?l.value:"")}if(i!=null)o.body=i;return o}function B(t,e,i){var n=["refs"].concat(e.split("."));g(t,n,i)}function G(t){while(t=t.parent)t.flags|=j}function q(t,e,i,n){if(t.type===D||t.type===P)return;t.parent=e;t.idx=i;t.vm=n;if(t.ref!=null)B(T(t),t.ref,t);var o=t.hooks,r=n&&n.hooks;if(o&&(o.willRemove||o.didRemove)||r&&(r.willUnmount||r.didUnmount))G(t);if(p(t.body))Y(t);else;}function Y(t){var e=t.body;for(var i=0;i<e.length;i++){var n=e[i];if(n===false||n==null)e.splice(i--,1);else if(p(n))o(e,n,i--,1);else{if(n.type==null)e[i]=n=F(""+n);if(n.type===l)if(n.body==null||n.body==="")e.splice(i--,1);else if(i>0&&e[i-1].type===l){e[i-1].body+=n.body;e.splice(i--,1)}else q(n,t,i,null);else q(n,t,i,null)}}}var X={animationIterationCount:true,boxFlex:true,boxFlexGroup:true,boxOrdinalGroup:true,columnCount:true,flex:true,flexGrow:true,flexPositive:true,flexShrink:true,flexNegative:true,flexOrder:true,gridRow:true,gridColumn:true,order:true,lineClamp:true,borderImageOutset:true,borderImageSlice:true,borderImageWidth:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,tabSize:true,widows:true,zIndex:true,zoom:true,fillOpacity:true,floodOpacity:true,stopOpacity:true,strokeDasharray:true,strokeDashoffset:true,strokeMiterlimit:true,strokeOpacity:true,strokeWidth:true};function U(t,e){return!isNaN(e)&&!X[t]?e+"px":e}function K(t,e){var i=(t.attrs||c).style;var n=e?(e.attrs||c).style:null;if(i==null||a(i))t.el.style.cssText=i;else{for(var o in i){var r=i[o];if(n==null||r!=null&&r!==n[o])t.el.style[o]=U(o,r)}if(n)for(var s in n)if(i[s]==null)t.el.style[s]=""}}var J=[];function Z(t,e,i,n,o){if(t!=null){var r=i.hooks[e];if(r)if(e[0]==="d"&&e[1]==="i"&&e[2]==="d")o?k(i.parent)&&r(i,n):J.push([r,i,n]);else return r(i,n)}}function Q(t){if(J.length){k(t.node);var e;while(e=J.shift())e[0](e[1],e[2])}}var tt=t?document:null;function et(t){while(t._node==null)t=t.parentNode;return t._node}function it(t,e){if(e!=null)return tt.createElementNS(e,t);return tt.createElement(t)}function nt(t){return tt.createTextNode(t)}function ot(t){return tt.createComment(t)}function rt(t){return t.nextSibling}function st(t){return t.previousSibling}function at(t){var e=t.vm;var i=e!=null&&Z(e.hooks,"willUnmount",e,e.data);var n=Z(t.hooks,"willRemove",t);if((t.flags&j)===j&&p(t.body))for(var o=0;o<t.body.length;o++)at(t.body[o]);return i||n}function lt(t,e,i){var n=e._node,o=n.vm;if(p(n.body))if((n.flags&j)===j)for(var r=0;r<n.body.length;r++)lt(e,n.body[r].el);else ut(n);delete e._node;t.removeChild(e);Z(n.hooks,"didRemove",n,null,i);if(o!=null){Z(o.hooks,"didUnmount",o,o.data,i);o.node=null}}function ct(t,e){var i=e._node;if(i._dead)return;var n=at(i);if(n!=null&&h(n)){i._dead=true;n.then(b(lt,[t,e,true]))}else lt(t,e)}function ut(t){var e=t.body;for(var i=0;i<e.length;i++){var n=e[i];delete n.el._node;if(n.vm!=null)n.vm.node=null;if(p(n.body))ut(n)}}function dt(t){var e=t.el;if((t.flags&j)===0){p(t.body)&&ut(t);e.textContent=null}else{var i=e.firstChild;do{var n=rt(i);ct(e,i)}while(i=n)}}function ht(t,e,i){var n=e._node,o=e.parentNode!=null;var r=e===i||!o?n.vm:null;if(r!=null)Z(r.hooks,"willMount",r,r.data);Z(n.hooks,o?"willReinsert":"willInsert",n);t.insertBefore(e,i);Z(n.hooks,o?"didReinsert":"didInsert",n);if(r!=null)Z(r.hooks,"didMount",r,r.data)}function ft(t,e,i){ht(t,e,i?rt(i):null)}var pt={};function gt(t){f(pt,t)}function vt(t){var e=this,i=e,n=v(arguments,1).concat(i,i.data);do{var o=e.onemit,o=o?o[t]:null;if(o){o.apply(e,n);break}}while(e=e.parent());if(pt[t])pt[t].apply(e,n)}var _t=i;function mt(t){_t=t.onevent||_t;if(t.onemit)gt(t.onemit)}function yt(t,e,i){t[e]=i}function bt(t,e,i,n,o){var r=t.apply(o,e.concat([i,n,o,o.data]));o.onevent(i,n,o,o.data,e);_t.call(null,i,n,o,o.data,e);if(r===false){i.preventDefault();i.stopPropagation()}}function wt(t){var e=et(t.target);var i=T(e);var n=t.currentTarget._node.attrs["on"+t.type],o,r;if(p(n)){o=n[0];r=n.slice(1);bt(o,r,t,e,i)}else for(var s in n)if(t.target.matches(s)){var a=n[s];if(p(a)){o=a[0];r=a.slice(1)}else{o=a;r=[]}bt(o,r,t,e,i)}}function xt(t,e,i,n){if(i===n)return;var o=t.el;if(i==null||d(i))yt(o,e,i);else if(n==null)yt(o,e,wt)}function Et(t,e,i){if(e[0]==="."){e=e.substr(1);i=true}if(i)t.el[e]="";else t.el.removeAttribute(e)}function Ct(t,e,i,n,o){var r=t.el;if(i==null)!o&&Et(t,e,false);else if(t.ns!=null)r.setAttribute(e,i);else if(e==="class")r.className=i;else if(e==="id"||typeof i==="boolean"||n)r[e]=i;else if(e[0]===".")r[e.substr(1)]=i;else r.setAttribute(e,i)}function St(t,e,i){var n=t.attrs||c;var o=e.attrs||c;if(n===o);else{for(var r in n){var s=n[r];var a=M(t.tag,r);var l=a?t.el[r]:o[r];if(s===l);else if(S(r))K(t,e);else if(C(r));else if(E(r))xt(t,r,s,l);else Ct(t,r,s,a,i)}for(var r in o)!(r in n)&&!C(r)&&Et(t,r,M(t.tag,r)||E(r))}}function kt(t,e,i,n){if(t.type===P){e=t.data;i=t.key;n=t.opts;t=t.view}return new qt(t,e,i,n)}function It(t){for(var e=0;e<t.body.length;e++){var i=t.body[e];var n=i.type;if(n<=O)ht(t.el,Ot(i));else if(n===P){var o=kt(i.view,i.data,i.key,i.opts)._redraw(t,e,false);n=o.node.type;ht(t.el,Ot(o.node))}else if(n===D){var o=i.vm;o._redraw(t,e);n=o.node.type;ht(t.el,o.node.el)}}}function Ot(t,e){if(t.el==null)if(t.type===I){t.el=e||it(t.tag,t.ns);if(t.attrs!=null)St(t,c,true);if((t.flags&z)===z)t.body.body(t);if(p(t.body))It(t);else if(t.body!=null&&t.body!=="")t.el.textContent=t.body}else if(t.type===l)t.el=e||nt(t.body);else if(t.type===O)t.el=e||ot(t.body);t.el._node=t;return t.el}function Pt(t,e){return e[t.idx+1]}function Dt(t,e){return e[t.idx-1]}function Vt(t){return t.parent}window.lisMove=Ft;var Mt=1,Tt=2;function Ht(l,c,u,d,h,f,p,g){return function(t,e,i,n,o,r){var s,a;if(n[d]!=null){if((s=n[d]._node)==null){n[d]=l(n[d]);return}if(Vt(s)!==t){a=l(n[d]);s.vm!=null?s.vm.unmount(true):ct(e,n[d]);n[d]=a;return}}if(n[h]==o)return Tt;else if(n[h].el==null){u(e,Ot(n[h]),n[d]);n[h]=c(n[h],i)}else if(n[h].el===n[d]){n[h]=c(n[h],i);n[d]=l(n[d])}else if(!r&&s===n[p]){a=n[d];n[d]=l(a);g(e,a,n[f]);n[f]=a}else{if(r&&n[d]!=null)return Ft(l,c,u,d,h,e,i,s,n);return Mt}}}function Ft(t,e,i,n,o,r,s,a,l){if(a._lis){i(r,l[o].el,l[n]);l[o]=e(l[o],s)}else{var c=x(a.idx,l.tombs);a._lis=true;var u=t(l[n]);i(r,l[n],c!=null?s[l.tombs[c]].el:c);if(c==null)l.tombs.push(a.idx);else l.tombs.splice(c,0,a.idx);l[n]=u}}var Rt=Ht(rt,Pt,ht,"lftSib","lftNode","rgtSib","rgtNode",ft),Lt=Ht(st,Dt,ft,"rgtSib","rgtNode","lftSib","lftNode",ht);function At(t,e){var i=e.body,n=t.el,o=t.body,r={lftNode:o[0],rgtNode:o[o.length-1],lftSib:(i[0]||c).el,rgtSib:(i[i.length-1]||c).el};t:while(1){while(1){var s=Rt(t,n,o,r,null,false);if(s===Mt)break;if(s===Tt)break t}while(1){var a=Lt(t,n,o,r,r.lftNode,false);if(a===Mt)break;if(a===Tt)break t}jt(t,n,o,r);break}}function jt(t,e,i,n){var o=Array.prototype.slice.call(e.childNodes);var r=[];for(var s=0;s<o.length;s++){var a=o[s]._node;if(a.parent===t)r.push(a.idx)}var l=w(r).map(function(t){return r[t]});for(var c=0;c<l.length;c++)i[l[c]]._lis=true;n.tombs=l;while(1){var u=Rt(t,e,i,n,null,true);if(u===Tt)break}}function $t(t){return t.el._node.parent!==t.parent}function Nt(t,e,i){return e[i]}function zt(t,e,i){for(;i<e.length;i++){var n=e[i];if(n.vm!=null){if(t.type===P&&n.vm.view===t.view&&n.vm.key===t.key||t.type===D&&n.vm===t.vm)return n}else if(!$t(n)&&t.tag===n.tag&&t.type===n.type&&t.key===n.key&&(t.flags&~j)===(n.flags&~j))return n}return null}function Wt(t,e,i){return e[e._keys[t.key]]}function Bt(t,e){Z(e.hooks,"willRecycle",e,t);var i=t.el=e.el;var n=e.body;var o=t.body;i._node=t;if(t.type===l&&o!==n){i.nodeValue=o;return}if(t.attrs!=null||e.attrs!=null)St(t,e,false);var r=p(n);var s=p(o);var a=(t.flags&z)===z;if(r){if(s||a)Gt(t,e);else if(o!==n)if(o!=null)i.textContent=o;else dt(e)}else if(s){dt(e);It(t)}else if(o!==n)if(i.firstChild)i.firstChild.nodeValue=o;else i.textContent=o;Z(e.hooks,"didRecycle",e,t)}function Gt(t,e){var i=t.body,n=i.length,o=e.body,r=o.length,s=(t.flags&z)===z,a=(t.flags&$)===$,l=(t.flags&N)===N,c=!a&&t.type===I,u=true,d=l?Wt:a||s?Nt:zt;if(l){var h={};for(var f=0;f<o.length;f++)h[o[f].key]=f;o._keys=h}if(c&&n===0){dt(e);if(s)t.body=[];return}var p,g,v,_=0,m=false,y=0;if(s){var b={key:null};var w=Array(n)}for(var f=0;f<n;f++){if(s){var x=false;var E=null;if(u){if(l)b.key=i.key(f);p=d(b,o,y)}if(p!=null){v=p.idx;E=i.diff(f,p);if(E===true){g=p;g.parent=t;g.idx=f;g._lis=false}else x=true}else x=true;if(x){g=i.tpl(f);q(g,t,f);g._diff=E!=null?E:i.diff(f);if(p!=null)Bt(g,p)}else;w[f]=g}else{var g=i[f];var C=g.type;if(C<=O){if(p=u&&d(g,o,y)){Bt(g,p);v=p.idx}}else if(C===P){if(p=u&&d(g,o,y)){v=p.idx;var S=p.vm._update(g.data,t,f)}else var S=kt(g.view,g.data,g.key,g.opts)._redraw(t,f,false);C=S.node.type}else if(C===D){var k=V(g.vm);var S=g.vm._update(g.data,t,f,k);C=S.node.type}}if(!l&&p!=null){if(v===y){y++;if(y===r&&n>r){p=null;u=false}}else m=true;if(r>100&&m&&++_%10===0)while(y<r&&$t(o[y]))y++}}if(s)t.body=w;c&&At(t,e)}function qt(t,e,i,n){var o=this;o.view=t;o.data=e;o.key=i;if(n){o.opts=n;o.config(n)}var r=s(t)?t:t.call(o,o,e,i,n);if(d(r))o.render=r;else{o.render=r.render;o.config(r)}o._redrawAsync=y(function(t){return o.redraw(true)});o._updateAsync=y(function(t){return o.update(t,true)});o.init&&o.init.call(o,o,o.data,o.key,n)}var Yt=qt.prototype={constructor:qt,_diff:null,init:null,view:null,key:null,data:null,state:null,api:null,opts:null,node:null,hooks:null,onevent:i,refs:null,render:null,mount:Xt,unmount:Ut,config:function(t){var e=this;if(t.init)e.init=t.init;if(t.diff)e.diff=t.diff;if(t.onevent)e.onevent=t.onevent;if(t.hooks)e.hooks=f(e.hooks||{},t.hooks);if(t.onemit)e.onemit=f(e.onemit||{},t.onemit)},parent:function(){return T(this.node.parent)},root:function(){var t=this.node;while(t.parent)t=t.parent;return t.vm},redraw:function(t){var e=this;t?e._redraw(null,null,V(e)):e._redrawAsync();return e},update:function(t,e){var i=this;e?i._update(t,null,null,V(i)):i._updateAsync(t);return i},_update:Zt,_redraw:Jt,_redrawAsync:null,_updateAsync:null};function Xt(t,e){var i=this;if(e){dt({el:t,flags:0});i._redraw(null,null,false);if(t.nodeName.toLowerCase()!==i.node.tag){Ot(i.node);ht(t.parentNode,i.node.el,t);t.parentNode.removeChild(t)}else ht(t.parentNode,Ot(i.node,t),t)}else{i._redraw(null,null);if(t)ht(t,i.node.el)}if(t)Q(i);return i}function Ut(t){var e=this;var i=e.node;var n=i.el.parentNode;ct(n,i.el);if(!t)Q(e)}function Kt(t,e,i,n){if(i!=null){i.body[n]=e;e.idx=n;e.parent=i;e._lis=false}return t}function Jt(t,e,i){var n=t==null;var o=this;var r=o.node&&o.node.el&&o.node.el.parentNode;var s=o.node,a,l;if(o.diff!=null){a=o._diff;o._diff=l=o.diff(o,o.data);if(s!=null){var c=p(a)?m:_;var u=a===l||c(a,l);if(u)return Kt(o,s,t,e)}}r&&Z(o.hooks,"willRedraw",o,o.data);var d=o.render.call(o,o,o.data,a,l);if(d===s)return Kt(o,s,t,e);o.refs=null;if(o.key!=null&&d.key!==o.key)d.key=o.key;o.node=d;if(t){q(d,t,e,o);t.body[e]=d}else if(s&&s.parent){q(d,s.parent,s.idx,o);s.parent.body[s.idx]=d}else q(d,null,null,o);if(i!==false)if(s)if(s.tag!==d.tag||s.key!==d.key){s.vm=d.vm=null;var h=s.el.parentNode;var f=rt(s.el);ct(h,s.el);ht(h,Ot(d),f);s.el=d.el;d.vm=o}else Bt(d,s);else Ot(d);r&&Z(o.hooks,"didRedraw",o,o.data);if(n&&r)Q(o);return o}function Zt(t,e,i,n){var o=this;if(t!=null)if(o.data!==t){Z(o.hooks,"willUpdate",o,t);o.data=t}return o._redraw(e,i,n)}function Qt(t,e,i,n){var o,r;if(i==null)if(s(e))o=e;else r=e;else{o=e;r=i}return W(t,o,r,n)}var te="http://www.w3.org/2000/svg";function ee(t,e,i,n){var o=Qt(t,e,i,n);o.ns=te;return o}function ie(t){var e=new H;e.type=O;e.body=t;return e}function ne(t,e,i,n){this.view=t;this.data=e;this.key=i;this.opts=n}function oe(t,e,i,n){return new ne(t,e,i,n)}function re(t){this.vm=t}function se(t){return new re(t)}function ae(t){var e=new H;e.type=I;e.el=e.key=t;return e}function le(r,s){var o=r.length;var a={items:r,length:o,key:function(t){return s.key(r[t],t)},diff:function(t,e){var i=s.diff(r[t],t);if(e==null)return i;var n=e._diff;var o=i===n||p(n)?m(i,n):_(i,n);return o||i},tpl:function(t){return s.tpl(r[t],t)},map:function(t){s.tpl=t;return a},body:function(t){var e=Array(o);for(var i=0;i<o;i++){var n=a.tpl(i);n._diff=a.diff(i);e[i]=n;q(n,t,i)}t.body=e}};return a}ne.prototype={constructor:ne,type:P,view:null,data:null,key:null,opts:null},re.prototype={constructor:re,type:D,vm:null};var ce={config:mt,ViewModel:qt,VNode:H,createView:kt,defineElement:Qt,defineSvgElement:ee,defineText:F,defineComment:ie,defineView:oe,injectView:se,injectElement:ae,lazyList:le,FIXED_BODY:$,DEEP_REMOVE:j,KEYED_LIST:N,LAZY_LIST:z};function ue(t,e){!function(t,e,i){{var n,o;null!=e.type?null==t.vm&&(q(e,t.parent,t.idx,null),Bt(t.parent.body[t.idx]=e,t),i&&k(e),Q(T(e))):((n=Object.create(t)).attrs=f({},t.attrs),o=f(t.attrs,e),null!=t._class&&(e=o.class,o.class=null!=e&&""!==e?t._class+" "+e:t._class),St(t,n),i&&k(t))}}(this,t,e)}function de(t,e,i){if(null!=e.type)null==t.vm&&(q(e,t.parent,t.idx,null),Bt(t.parent.body[t.idx]=e,t),i&&k(e),Q(T(e)));else{var n=Object.create(t);(n=Object.create(t)).attrs=f({},t.attrs);var o=f(t.attrs,e),s;null!=t._class&&(e=o.class,o.class=null!=e&&""!==e?t._class+" "+e:t._class),St(t,n),i&&k(t)}}function he(t,e){var i=t.body;if(p(i))for(var n=0;n<i.length;n++){var o=i[n];if(o.vm!=null)e.push(o.vm);else he(o,e)}return e}function fe(t){var e=arguments;var i=e.length;var n,o;if(i>1){var r=1;if(s(e[1])){o=e[1];r=2}if(i===r+1&&(a(e[r])||p(e[r])||o&&(o._flags&z)===z))n=e[r];else n=v(e,r)}return W(t,o,n)}function pe(){var t=fe.apply(null,arguments);return t.ns=te,t}return n.patch=function(t,e){!function(t,e,i){{var n,o;null!=e.type?null==t.vm&&(q(e,t.parent,t.idx,null),Bt(t.parent.body[t.idx]=e,t),i&&k(e),Q(T(e))):((n=Object.create(t)).attrs=f({},t.attrs),o=f(t.attrs,e),null!=t._class&&(e=o.class,o.class=null!=e&&""!==e?t._class+" "+e:t._class),St(t,n),i&&k(t))}}(this,t,e)},Yt.emit=function(t){var e=this,i=e,n=v(arguments,1).concat(i,i.data);do{var o=e.onemit,o=o?o[t]:null;if(o){o.apply(e,n);break}}while(e=e.parent());pt[t]&&pt[t].apply(e,n)},Yt.onemit=null,Yt.body=function(){return function t(e,i){var n=e.body;if(p(n))for(var o=0;o<n.length;o++){var r=n[o];null!=r.vm?i.push(r.vm):t(r,i)}return i}(this.node,[])},ce.defineElementSpread=fe,ce.defineSvgElementSpread=function(){var t=fe.apply(null,arguments);return t.ns=te,t},ce}()},function(t,i,n){"use strict";(function(s){var l=this&&this.__assign||function(){return(l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(i,"__esModule",{value:!0});var c=n(1),u=n(24),d=n(23),h=n(1),t=(e.prototype.load=function(t,e){var i=this;if(!t.config||this._parent.events.fire(d.DataEvents.beforeLazyLoad,[]))return this._parent.loadData=t.load().then(function(t){return t?i.parse(t,e):[]}).catch(function(t){i._parent.events.fire(d.DataEvents.loadError,[t])})},e.prototype.parse=function(t,e){var n=this;if(void 0===e&&(e=d.DataDriver.json),"json"!==e||u.hasJsonOrArrayStructure(t)||this._parent.events.fire(d.DataEvents.loadError,["Uncaught SyntaxError: Unexpected end of input"]),!((t=(e=u.toDataDriver(e)).toJsonArray(t))instanceof Array)){var i=t.total_count-1,o=t.from;if(t=t.data,0!==this._parent.getLength())return t.forEach(function(t,e){var i=o+e,e=n._parent.getId(i);c.isId(e)?(i=n._parent.getItem(e))&&i.$empty&&(i=t.id||i.id,h.isDefined(t.id)&&n._parent.changeId(e,i,!0),n._parent.update(i,l(l({},t),{$empty:void 0}),!0)):u.dhxWarning("item not found")}),this._parent.events.fire(d.DataEvents.afterLazyLoad,[o,t.length]),this._parent.events.fire(d.DataEvents.change),t;for(var r=[],s=0,a=0;s<=i;s++)o<=s&&s<=o+t.length-1?(r.push(t[a]),a++):r.push({$empty:!0});t=r}return this._parent.getInitialData()&&this._parent.removeAll(),this._parent.$parse(t),t},e.prototype.save=function(o){for(var r=this,t=this._getUniqueOrder(),e=this,i=0,n=t;i<n.length;i++)!function(i){var n,t;i.saving||i.pending?u.dhxWarning("item is saving"):(n=e._findPrevState(i.id))&&n.saving?(t=new s(function(t,e){n.promise.then(function(){i.pending=!1,t(r._setPromise(i,o))}).catch(function(t){r._removeFromOrder(n),r._setPromise(i,o),u.dhxWarning(t),e(t)})}),e._addToChain(t),i.pending=!0):e._setPromise(i,o)}(n[i]);t.length&&this._parent.saveData.then(function(){r._saving=!1})},e.prototype.updateChanges=function(t){this._changes=t},e.prototype._setPromise=function(e,t){var i,n=this;switch(e.status){case"remove":i="delete";break;case"add":i="insert";break;default:i=e.status}return e.promise=t.save(e.obj,i),e.promise.then(function(){n._removeFromOrder(e)}).catch(function(t){e.saving=!1,e.error=!0,u.dhxError(t)}),e.saving=!0,this._saving=!0,this._addToChain(e.promise),e.promise},e.prototype._addToChain=function(t){this._parent.saveData&&this._saving?this._parent.saveData=this._parent.saveData.then(function(){return t}):this._parent.saveData=t},e.prototype._findPrevState=function(t){for(var e=0,i=this._changes.order;e<i.length;e++){var n=i[e];if(n.id===t)return n}return null},e.prototype._removeFromOrder=function(e){this._changes.order=this._changes.order.filter(function(t){return!u.isEqualObj(t,e)})},e.prototype._getUniqueOrder=function(){return this._changes.order.reduce(function(t,e){var i=t.findIndex(function(t){return t.id===e.id}),n=-1<i?t[i]:null;return n&&!1===n.saving&&"add"===n.status?"remove"===e.status?t.splice(i,1):n.obj=e.obj:n&&!1===n.saving&&"update"===n.status?t.splice(i,1,e):t.push(e),t},[])},e);function e(t,e){this._parent=t,this._changes=e}i.Loader=t}).call(this,n(17))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(123);o.prototype.toJsonArray=function(t){return this.getRows(t)},o.prototype.toJsonObject=function(t){var e;return"string"==typeof t&&(e=this._fromString(t)),function t(e,i){i=i||{};var n=e.attributes;if(n&&n.length)for(var o=0;o<n.length;o++)i[n[o].name]=n[o].value;for(var r,s=e.childNodes,o=0;o<s.length;o++)1===s[o].nodeType&&(i[r=s[o].tagName]?("function"!=typeof i[r].push&&(i[r]=[i[r]]),i[r].push(t(s[o],{}))):i[r]=t(s[o],{}));return i}(e)},o.prototype.serialize=function(t){return n.jsonToXML(t)},o.prototype.getFields=function(t){return t},o.prototype.getRows=function(t){if("string"==typeof t&&(t=this._fromString(t)),t){t=t.childNodes&&t.childNodes[0]&&t.childNodes[0].childNodes;return t&&t.length?this._getRows(t):null}return[]},o.prototype._getRows=function(t){for(var e=[],i=0;i<t.length;i++)"item"===t[i].tagName&&e.push(this._nodeToJS(t[i]));return e},o.prototype._fromString=function(t){try{return(new DOMParser).parseFromString(t,"text/xml")}catch(t){return null}},o.prototype._nodeToJS=function(t){var e={};if(this._haveAttrs(t))for(var i=t.attributes,n=0;n<i.length;n++){var o=i[n],r=o.name,o=o.value;e[r]=this._toType(o)}if(3===t.nodeType)return e.value=e.value||this._toType(t.textContent),e;var s=t.childNodes;if(s)for(n=0;n<s.length;n++){var a=s[n],l=a.tagName;l&&("items"===l&&a.childNodes?e[l]=this._getRows(a.childNodes):this._haveAttrs(a)?e[l]=this._nodeToJS(a):e[l]=this._toType(a.textContent))}return e},o.prototype._toType=function(t){return"false"===t||"true"===t?"true"===t:t},o.prototype._haveAttrs=function(t){return t.attributes&&t.attributes.length},i=o;function o(){}e.XMLDriver=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=4;function s(t){return" ".repeat(t)}e.jsonToXML=function(t,e){void 0===e&&(e="root");for(var i='<?xml version="1.0" encoding="iso-8859-1"?>\n<'+e+">",n=0;n<t.length;n++)i+="\n"+function e(t,i){void 0===i&&(i=r);var n,o=s(i)+"<item>\n";for(n in t)Array.isArray(t[n])?(o+=s(i+r)+"<"+n+">\n",o+=t[n].map(function(t){return e(t,i+2*r)}).join("\n")+"\n",o+=s(i+r)+"</"+n+">\n"):o+=s(i+r)+("<"+n+">"+t[n])+"</"+n+">\n";return o+=s(i)+"</item>"}(t[n]);return i+"\n</"+e+">"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(24),i=(n.prototype.sort=function(t,e,i){this._createSorter(e),i===e&&(e=null),(i||e)&&this._sort(t,i,e)},n.prototype._createSorter=function(i){var n=this;i&&!i.rule&&(i.rule=function(t,e){t=null!==(t=n._checkVal(i.as,t[i.by]))&&void 0!==t?t:"",e=null!==(e=n._checkVal(i.as,e[i.by]))&&void 0!==e?e:"";return o.naturalCompare(t.toString(),e.toString())})},n.prototype._checkVal=function(t,e){return t?t.call(this,e):e},n.prototype._sort=function(t,n,o){var r=this,s={asc:1,desc:-1};return t.sort(function(t,e){var i=0;return n&&(i=n.rule.call(r,t,e)*(s[n.dir]||s.asc)),0===i&&o&&(i=o.rule.call(r,t,e)*(s[o.dir]||s.asc)),i})},n);function n(){}e.Sort=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var u=i(1),s=i(61),a=i(26),d=i(24),h=i(23);function l(t,e,i,n){void 0!==n&&-1!==n&&t[i]&&t[i][n]?t[i].splice(n,0,e):(t[i]||(t[i]=[]),t[i].push(e))}var c,o=(c=s.DataCollection,o(f,c),f.prototype.add=function(t,i,n){var o=this;if(void 0===i&&(i=-1),void 0===n&&(n=this._root),this.events.fire(h.DataEvents.beforeAdd,[t]))return"object"!=typeof t&&(t={value:t}),t=Array.isArray(t)?t.map(function(t,e){return o._add(t,i,n,e)}):this._add(t,i,n),this._reapplyFilters(!1),t},f.prototype.getRoot=function(){return this._root},f.prototype.getParent=function(t,e){if(void 0===e&&(e=!1),!this._pull[t])return null;t=this._pull[t].parent;return e?this._pull[t]:t},f.prototype.getItems=function(t){return this._childs&&this._childs[t]?this._childs[t]:[]},f.prototype.getLength=function(t){return void 0===t&&(t=this._root),this._childs[t]?this._childs[t].length:null},f.prototype.removeAll=function(t){if(u.isId(t)){if(this._childs[t])for(var e=0,i=r(this._childs[t]);e<i.length;e++){var n=i[e];this.remove(n.id)}}else{c.prototype.removeAll.call(this);var o=this._root;this._initChilds=null,this._childs=((t={})[o]=[],t)}},f.prototype.getIndex=function(e){var t=this.getParent(e);return t&&this._childs[t]?u.findIndex(this._childs[t],function(t){return t.id===e}):-1},f.prototype.sort=function(t){var e=this;if(t){for(var i in this._childs)this._sort.sort(this._childs[i],t);if(this._initChilds&&Object.keys(this._initChilds).length)for(var i in this._initChilds)this._sort.sort(this._initChilds[i],t)}else this._childs={},this._parse_data(Object.keys(this._pull).map(function(t){return e._pull[t]})),this._reapplyFilters(!1);this.events.fire(h.DataEvents.change,[void 0,"sort",t])},f.prototype.filter=function(t,e,i){if(null!=e&&e.$restore&&(t=this._normalizeFilters(t||this._filters)),!(t&&null!=e&&e.add||(this.restoreOrder(),null!=e&&e.$restore)))for(var n in this._filters){var o=this._filters[n],r=o.rule,o=o.config;null!=o&&o.permanent?this._applyFilter(r,o):delete this._filters[n]}var s;if(!t||null!=e&&e.$restore)for(var n in t)this._applyFilter(t[n],this._filters[n].config);else s=(null==e?void 0:e.id)||u.uid(),(e=e||{}).type=e.type||h.TreeFilterType.all,this._filters[s]={rule:t,config:e},this._applyFilter(t,e);return i||(i=this._getPureFilters(this._filters),this.events.fire(h.DataEvents.filter,[u.isEmptyObj(i)?null:i])),s},f.prototype.restoreOrder=function(){this._initChilds&&(this._childs=this._initChilds,this._initChilds=null)},f.prototype.copy=function(t,i,n,o){var r=this;return void 0===n&&(n=this),void 0===o&&(o=this._root),t instanceof Array?t.map(function(t,e){return r._copy(t,i,n,o,e)}):this._copy(t,i,n,o)},f.prototype.move=function(t,i,n,o){var r=this;return void 0===n&&(n=this),void 0===o&&(o=this._root),t instanceof Array?t.map(function(t,e){return r._move(t,i,n,o,e)}):this._move(t,i,n,o)},f.prototype.forEach=function(t,e,i){if(void 0===e&&(e=this._root),void 0===i&&(i=1/0),this.haveItems(e)&&!(i<1))for(var n=this._childs[e],o=0;o<n.length;o++)t.call(this,n[o],o,n),this.haveItems(n[o].id)&&this.forEach(t,n[o].id,--i)},f.prototype.eachChild=function(t,e,i,n){if(void 0===i&&(i=!0),void 0===n&&(n=function(){return!0}),this.haveItems(t))for(var o=0;o<this._childs[t].length;o++)e.call(this,this._childs[t][o],o),i&&n(this._childs[t][o])&&this.eachChild(this._childs[t][o].id,e,i,n)},f.prototype.getNearId=function(t){return t},f.prototype.loadItems=function(e,i){var t,n=this;void 0===i&&(i=h.DataDriver.json),this.events.fire(h.DataEvents.beforeItemLoad,[e])&&(t=(t=this.config.autoload.toString())+(t.includes("?")?"&id="+e:"?id="+e),new a.DataProxy(t).load().then(function(t){t=(i=d.toDataDriver(i)).toJsonArray(t),n._parse_data(t,e),n.events.fire(h.DataEvents.change),n.events.fire(h.DataEvents.afterItemLoad,[e])}).catch(function(t){n.events.fire(h.DataEvents.loadError,[t])}))},f.prototype.refreshItems=function(t,e){void 0===e&&(e=h.DataDriver.json),this.removeAll(t),this.loadItems(t,e)},f.prototype.eachParent=function(t,e,i){void 0===i&&(i=!1);t=this.getItem(t);t&&(i&&e.call(this,t),t.parent!==this._root&&(i=this.getItem(t.parent),e.call(this,i),this.eachParent(t.parent,e)))},f.prototype.haveItems=function(t){return t in this._childs},f.prototype.canCopy=function(e,t){if(e===t)return!1;var i=!0;return this.eachParent(t,function(t){return t.id===e?i=!1:null}),i},f.prototype.serialize=function(t,e){void 0===t&&(t=h.DataDriver.json);e=this._serialize(this._root,e),t=d.toDataDriver(t);if(t)return t.serialize(e)},f.prototype.getId=function(t,e){if(void 0===e&&(e=this._root),this._childs[e]&&this._childs[e][t])return this._childs[e][t].id},f.prototype.map=function(t,e,i){void 0===e&&(e=this._root),void 0===i&&(i=!0);var n=[];if(!this.haveItems(e))return n;for(var o,r=0;r<this._childs[e].length;r++)n.push(t.call(this,this._childs[e][r],r,this._childs)),i&&(o=this.map(t,this._childs[e][r].id,i),n=n.concat(o));return n},f.prototype.getRawData=function(t,e,i,n,o){return o=null!=o?o:this._root,this._childs[o]?(o=o===this._root?c.prototype.getRawData.call(this,t,e,this._childs[o]):this._childs[o],2===n?this.flatten(o):o):[]},f.prototype.flatten=function(t){var i=this,n=[];return t.forEach(function(t){n.push(t);var e=i._childs[t.id];e&&t.$opened&&(n=n.concat(i.flatten(e)))}),n},f.prototype._add=function(t,e,i,n){void 0===e&&(e=-1),void 0===i&&(i=this._root),this._setParent(t,i),0<n&&-1!==e&&(e+=1);e=c.prototype._add.call(this,t,e);if(Array.isArray(t.items))for(var o=0,r=t.items;o<r.length;o++){var s=r[o];this.add(s,-1,t.id)}return e},f.prototype._setParent=function(t,e){t.parent=t.parent?t.parent.toString():e;t=this._pull[t.parent];t&&!t.items&&(t.items=[])},f.prototype._copy=function(t,e,i,n,o){if(void 0===i&&(i=this),void 0===n&&(n=this._root),!this.exists(t))return null;var r=this._childs[t];if(o&&(e=-1===e?-1:e+o),i===this&&!this.canCopy(t,n))return null;o=d.copyWithoutInner(this.getItem(t),{items:!0});if(i.exists(t)&&(o.id=u.uid()),d.isTreeCollection(i)){if(this.exists(t)&&(o.parent=n,i!==this&&n===this._root&&(o.parent=i.getRoot()),i.add(o,e),t=o.id),r)for(var s=0,a=r;s<a.length;s++){var l=a[s].id,c=this.getIndex(l);"string"==typeof t&&this.copy(l,c,i,t)}return t}i.add(o,e)},f.prototype._move=function(t,e,i,n,o){if(void 0===i&&(i=this),void 0===n&&(n=this._root),!this.exists(t))return null;if(o&&(e=-1===e?-1:e+o),i!==this){if(!d.isTreeCollection(i))return i.add(d.copyWithoutInner(this.getItem(t)),e),void this.remove(t);var r=this.copy(t,e,i,n);return this.remove(t),r}if(!this.canCopy(t,n))return null;i=this.getParent(t),r=this.getIndex(t),r=this._childs[i].splice(r,1)[0];return r.parent=n,this._childs[i].length||delete this._childs[i],this.haveItems(n)||(this._childs[n]=[]),-1===e?e=this._childs[n].push(r):this._childs[n].splice(e,0,r),this.events.fire(h.DataEvents.change,[t,"update",this.getItem(t)]),t},f.prototype._reset=function(t){if(u.isId(t))for(var e=0,i=r(this._childs[t]);e<i.length;e++){var n=i[e];this.remove(n.id)}else{c.prototype._reset.call(this);var o=this._root;this._initChilds=null,this._childs=((t={})[o]=[],t)}},f.prototype._removeCore=function(e){var t;this._pull[e]&&(t=this.getParent(e),this._childs[t]=this._childs[t].filter(function(t){return t.id!==e}),t===this._root||this._childs[t].length||delete this._childs[t],this._initChilds&&this._initChilds[t]&&(this._initChilds[t]=this._initChilds[t].filter(function(t){return t.id!==e}),t===this._root||this._initChilds[t].length||delete this._initChilds[t]),this._initOrder&&this._initOrder.length&&(this._initOrder=this._initOrder.filter(function(t){return t.id!==e})),this._fastDeleteChilds(this._childs,e),this._initChilds&&this._fastDeleteChilds(this._initChilds,e))},f.prototype._addToOrder=function(t,e,i){var n=this._childs,o=this._initChilds,r=e.parent;(this._pull[e.id]=e).parent&&this._pull[e.parent]&&this._pull[e.parent].items&&!this._pull[e.parent].items.find(function(t){return t.id===e.id})&&this._pull[e.parent].items.push(e),c.prototype._addToOrder.call(this,t,e,i),l(n,e,r,i),o&&l(o,e,r,i)},f.prototype._parse_data=function(t,e){var i;void 0===e&&(e=this._root);for(var n=this._order.length,o=0,r=t;o<r.length;o++){var s=r[o];this.config.init&&(s=this.config.init(s)),s&&"object"!=typeof s&&(s={value:s}),s.id=null!==(i=s.id)&&void 0!==i?i:u.uid(),s.parent=void 0===s.parent||null===s.parent||s.parent&&s.$items?e:s.parent,this._pull[s.id]&&d.dhxError("Item "+s.id+" already exist"),this._pull[s.id]=s,this._order[n++]=s,this._childs[s.parent]||(this._childs[s.parent]=[]),this._childs[s.parent].push(s),s.items&&s.items instanceof Object&&this._parse_data(s.items,s.id)}},f.prototype._fastDeleteChilds=function(t,e){if(this._pull[e]&&delete this._pull[e],t[e]){for(var i=0;i<t[e].length;i++)this._fastDeleteChilds(t,t[e][i].id);delete t[e]}},f.prototype._recursiveFilter=function(o,e,t,i,n){var r=this,s=this._childs[t];if(s){var a,l=function(t){switch(e.type){case h.TreeFilterType.all:return!0;case h.TreeFilterType.level:return i===e.level;case h.TreeFilterType.leafs:return!r.haveItems(t.id)}};a="function"==typeof o?function(t){return l(t)&&o(t)}:function(t){var e,i,n=!0;for(i in o)if(o[i].by&&""!==o[i].match&&(n=o[i].compare?o[i].compare(t[o[i].by],o[i].match,t):-1!==(null===(e=t[o[i].by])||void 0===e?void 0:e.toString().toLocaleLowerCase().indexOf(o[i].match.toString().toLowerCase()))),!n)break;return l(t)&&n},(a=s.filter(a)).length?n[t]=a:t===this._root&&(n[t]=[]);for(var c=0,u=s;c<u.length;c++){var d=u[c];this._recursiveFilter(o,e,d.id,i+1,n)}}},f.prototype._serialize=function(t,n){var o=this;return void 0===t&&(t=this._root),this.map(function(t){var e,i={};for(e in t)"parent"===e||"items"===e||e.startsWith("$")||(i[e]=t[e]);return n&&(i=n(i)),o.haveItems(t.id)&&(i.items=o._serialize(t.id,n)),i},t,!1)},f.prototype._applyFilter=function(t,e){var i,n=this;if(t&&("function"==typeof t||!u.isEmptyObj(t))){this._initOrder||(this._initOrder=this._order),this._initChilds||(this._initChilds=this._childs);var o={};if("function"!=typeof t)if(i={},u.isDefined(t.by))i[t.by]=t;else for(var r in t)i[r]=t[r];else i=t;this._recursiveFilter(i,e,this._root,0,o),Object.keys(o).forEach(function(t){for(var e=n.getParent(t),i=n.getItem(t);e;)o[e]||(o[e]=[]),i&&!o[e].find(function(t){return t.id===i.id})&&o[e].push(i),i=n.getItem(e),e=n.getParent(e)}),this._childs=o}},f.prototype._normalizeFilters=function(t){var e,i={};for(e in t)i[e]=t[e].rule;return i},f);function f(t,e){var i=c.call(this,t,e)||this;i._childs={};e=i._root=t&&t.rootId||"_ROOT_"+u.uid();return i._childs=((t={})[e]=[],t),i._initChilds=null,i}e.TreeCollection=o},function(t,e,i){"use strict";var m=this&&this.__assign||function(){return(m=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},y=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var h=i(3),b=i(42),f=i(161),p=i(23),w=i(24),x=i(1);var n=(o.prototype.setItem=function(t,e){f.collectionStore.setItem(t,e)},o.prototype.onMouseDown=function(t,e,i){var n,o,r,s;1!==t.which&&!t.targetTouches||(t.targetTouches?(document.addEventListener("touchmove",this._onMouseMove,!1),document.addEventListener("touchend",this._onMouseUp,!1)):(document.addEventListener("mousemove",this._onMouseMove),document.addEventListener("mouseup",this._onMouseUp)),o=(n=h.locateNode(t,"data-dhx-id"))&&n.getAttribute("data-dhx-id"),r=h.locate(t,"data-dhx-widget-id"),Array.isArray(e)&&e.includes(o)?(this._transferData.source=y(e),this._itemsForGhost=i):(this._transferData.source=[o],this._itemsForGhost=null),o&&r&&(e=(s=h.getBox(n)).left,i=s.top,s=(t.targetTouches?t.targetTouches[0]:t).pageX,t=(t.targetTouches?t.targetTouches[0]:t).pageY,this._transferData.initXOffset=s-e,this._transferData.initYOffset=t-i,this._transferData.x=s,this._transferData.y=t,this._transferData.componentId=r,this._transferData.start=o,this._transferData.item=n))},o.prototype.isDrag=function(){return this._isDrag},o.prototype.cancelCanDrop=function(t){this._canMove=!1,this._isDrag=!1;var e=this._transferData,i=e.start,n=e.source,o=e.target,e=e.dropComponentId,n={start:i,source:n,target:o},e=f.collectionStore.getItem(e);e&&o&&e.events.fire(p.DragEvents.cancelDrop,[n,t]),this._transferData.dropComponentId=null,this._transferData.target=null},o.prototype._moveGhost=function(t,e){this._transferData.ghost&&(this._transferData.ghost.style.left=t-this._transferData.initXOffset+"px",this._transferData.ghost.style.top=e-this._transferData.initYOffset+"px")},o.prototype._removeGhost=function(){document.body.removeChild(this._transferData.ghost)},o.prototype._onDrop=function(t){var e,i,n,o,r;this._canMove&&(r=(o=this._transferData).start,i=o.source,e=o.target,n=o.dropComponentId,i={start:r,source:i,target:e,dropPosition:o.dropPosition},n=(o=f.collectionStore.getItem(n))&&o.config,o&&"source"!==n.dragMode&&o.events.fire(p.DragEvents.beforeDrop,[i,t])&&(o={id:e,component:o},r={id:r,component:this._transferData.component,newId:null},this._move(r,o),r.newId&&r.component!==o.component&&(i.start=r.newId),o.component.events.fire(p.DragEvents.afterDrop,[i,t]))),this._endDrop(t)},o.prototype._onDragStart=function(t,e,i){var n=f.collectionStore.getItem(e),o=n.config,r=this._transferData,e={start:r.start,source:r.source,target:r.target};if("target"===o.dragMode||n._pregroupData)return null;r=function(t,e,i){void 0===i&&(i=!1);var n=t.getBoundingClientRect(),o=document.createElement("div"),r=t.cloneNode(!0),s=window.getComputedStyle(t.parentElement).fontSize;return r.style.width=n.width+"px",r.style.height=n.height+"px",r.style.maxHeight=n.height+"px",r.style.opacity="0.8",r.style.fontSize=s,i&&e&&e.length||o.appendChild(r),e&&e.length&&e.forEach(function(t,e){t=t.cloneNode(!0);t.style.width=n.width+"px",t.style.height=n.height+"px",t.style.maxHeight=n.height+"px",t.style.top=12*(e+1)-n.height-n.height*e+"px",t.style.left=12*(e+1)+"px",t.style.opacity="0.6",t.style.zIndex=""+(-e-1),i||(t.style.fontSize=s,t.style.overflow="hidden"),o.appendChild(t)}),o.className="dhx_drag-ghost",o}(this._transferData.item,this._itemsForGhost,"row"===o.dragItem||"column"===o.dragItem||"both"===o.dragItem);return n.events.fire(p.DragEvents.beforeDrag,[e,i,r])&&x.isId(t)?(n.events.fire(p.DragEvents.dragStart,[e,i]),this._isDrag=!0,this._toggleTextSelection(!0),this._transferData.component=n,this._transferData.dragConfig=o,r):null},o.prototype._onDrag=function(t){var e=(t.targetTouches?t.targetTouches[0]:t).clientX,i=(t.targetTouches?t.targetTouches[0]:t).clientY,n=document.elementFromPoint(e,i),o=h.locate(n,"data-dhx-widget-id");if(o){var r=f.collectionStore.getItem(o),s=!!h.locateNodeByClassName(n,"dhx_grid-header")||!!h.locateNodeByClassName(n,"dhx_grid-footer"),a=r&&r.config.columns?r.config:void 0,l=a&&("both"===a.dragItem||"column"===a.dragItem);if(!s||l){var c=h.locate(n,"data-dhx-id"),u=h.locate(n,"data-dhx-root-id");if(!c&&!u)return this.cancelCanDrop(t),this._transferData.dropComponentId=o,this._transferData.target=null,void this._canDrop(t);var d=this._transferData,e=d.dropComponentId,i=d.start,a=d.source,s=d.target,l=d.componentId,n=d.dropPosition;if("complex"===r.config.dropBehaviour){d=function(t){var e=t.clientY;if(!(t=h.locateNode(t)))return null;if(t=t.childNodes[0]){t=t.getBoundingClientRect();return(e-t.top)/t.height}}(t);this._transferData.dropPosition=d<=.25?"top":.75<=d?"bottom":"in"}else if((s===c||!c&&s===u)&&e===o)return;e={id:i,component:this._transferData.component};"source"!==r.config.dragMode&&(e.component.events.fire(p.DragEvents.dragOut,[{start:i,source:a,target:s},t]),o!==l||!w.isTreeCollection(e.component.data)||w.isTreeCollection(e.component.data)&&e.component.data.canCopy(e.id,c)?(this.cancelCanDrop(t),this._transferData.target=c||u,this._transferData.dropComponentId=o,e.component.events.fire(p.DragEvents.dragIn,[{start:i,source:a,target:s,dropPosition:n},t])&&this._canDrop(t)):this.cancelCanDrop(t))}else this._canMove&&this.cancelCanDrop(t)}else this._canMove&&this.cancelCanDrop(t)},o.prototype._move=function(i,e){var t=i.component,n=e.component,o=i.component.data,r=e.component.data,s=0,a=e.id,l=w.isTreeCollection(r)?e.component.config.dropBehaviour:void 0,c=i.component.config.columns?i.component.config:void 0,u=c&&("both"===c.dragItem||"column"===c.dragItem)&&c.columns.map(function(t){return t.id}).filter(function(t){return t===i.id||t===e.id}).length;if(u&&i.component===e.component){if(i.id===e.id)return;var d=(h=t.config.columns.map(function(t){return m({},t)})).findIndex(function(t){return t.id===i.id});return-1===(f=h.findIndex(function(t){return t.id===e.id}))?void 0:(h.splice(f,0,h.splice(d,1)[0]),t.setColumns(h),void t.paint())}if(u&&i.component instanceof b.ProGrid&&e.component instanceof b.ProGrid){var h,d=(h=t.config.columns.map(function(t){return m({},t)})).findIndex(function(t){return t.id===i.id}),c=n.config.columns.map(function(t){return m({},t)}),u=n.data.getLength(),f=c.findIndex(function(t){return t.id===e.id}),p=[],g=i.id;t.data.forEach(function(t){var e;p.push(((e={id:t.id})[g]=t[i.id],e))}),u?t.data.forEach(function(t,e){t=n.data.getItem(t.id);t?n.data.update(t.id,m(m({},t),p[e])):n.data.add(p[e])}):n.data.parse(p);d=h.splice(d,1)[0];return c.find(function(t){return t.id===g})||c.splice(f,0,d),n.setColumns(c),n.paint(),t.setColumns(h),void t.paint()}var v=e.id===n.config.rootParent;switch(l){case"child":break;case"sibling":a=r.getParent(a),s=r.getIndex(e.id)+1;break;case"complex":var _=this._transferData.dropPosition;v?(a=e.id,s=r.getLength()):"top"===_?(a=r.getParent(a),s=r.getIndex(e.id)):"bottom"===_&&(a=r.getParent(a),s=r.getIndex(e.id)+1);break;default:s=x.isId(e.id)?i.component===e.component&&r.getIndex(i.id)<r.getIndex(e.id)?r.getIndex(e.id)-1:(-1<r.getIndex(i.id)&&(i.newId=x.uid()),r.getIndex(e.id)):-1}this._transferData.dragConfig.dragCopy?this._transferData.source instanceof Array&&1<this._transferData.source.length?this._transferData.source.map(function(t){o.copy(t,s,r,a),-1<s&&s++}):o.copy(i.id,s,r,a):this._transferData.source instanceof Array&&1<this._transferData.source.length?o.move(this._transferData.source,s,r,a):n instanceof b.Grid&&!n.config.columns.length?(l=t.data.getItem(i.id),n.data.parse([m({},l)]),n.setColumns(y(t.config.columns)),n.paint(),t.data.remove(i.id),t.paint()):o.move(i.id,s,r,a,i.newId)},o.prototype._endDrop=function(t){var e;this._toggleTextSelection(!1),this._transferData.component&&(e={start:(e=this._transferData).start,source:e.source,target:e.target},this._transferData.component.events.fire(p.DragEvents.afterDrag,[e,t])),this.cancelCanDrop(t),this._canMove=!0,this._transferData={},this._transferData.target=null,this._transferData.dropComponentId=null},o.prototype._canDrop=function(t){this._canMove=!0;var e=this._transferData,i={start:e.start,source:e.source,target:e.target,dropPosition:e.dropPosition},e=f.collectionStore.getItem(this._transferData.dropComponentId);e&&this._transferData.target&&(e instanceof b.Grid&&(i.dragItem=this._transferData.item.classList.contains("dhx_grid-row")?"row":"column"),e.events.fire(p.DragEvents.canDrop,[i,t]))},o.prototype._toggleTextSelection=function(t){t?document.body.classList.add("dhx_no-select"):document.body.classList.remove("dhx_no-select")},o);function o(){var a=this;this._transferData={},this._canMove=!0,this._isDrag=!1,this._onMouseMove=function(t){if(a._transferData.start){var e=(t.targetTouches?t.targetTouches[0]:t).pageX,i=(t.targetTouches?t.targetTouches[0]:t).pageY,n=a._transferData,o=n.x,r=n.y,s=n.start,n=n.componentId;if(!a._transferData.ghost){if(Math.abs(o-e)<3&&Math.abs(r-i)<3)return;n=a._onDragStart(s,n,t);if(!n)return void a._endDrop(t);a._transferData.ghost=n,document.body.appendChild(a._transferData.ghost)}a._moveGhost(e,i),a._onDrag(t)}},this._onMouseUp=function(t){a._transferData.x&&(a._transferData.ghost?(a._removeGhost(),a._onDrop(t)):a._endDrop(t),t.targetTouches?(document.removeEventListener("touchmove",a._onMouseMove),document.removeEventListener("touchend",a._onMouseUp)):(document.removeEventListener("mousemove",a._onMouseMove),document.removeEventListener("mouseup",a._onMouseUp)))}}i=window.dhxHelpers=window.dhxHelpers||{};i.dragManager=i.dragManager||new n,e.dragManager=i.dragManager},function(t,e,i){"use strict";var y=this&&this.__assign||function(){return(y=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},a=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var m=i(15),l=i(8),b=i(1),c=i(16),w=i(3),x=i(0);n.prototype.pdf=function(t){this._rawExport(t,"pdf",this._view)},n.prototype.png=function(t){this._rawExport(t,"png",this._view)},n.prototype.xlsx=function(t){return this._export(t)},n.prototype.csv=function(t){var e;void 0===t&&(t={}),t=y({asFile:!0,rowDelimiter:"\n",columnDelimiter:",",skipHeader:0},t),e="getRoot"in this._view.data&&t.flat?this.getFlatCSV(t):this._getCSV(t);var i=t.name||"grid_export";return t.asFile&&b.downloadFile(e,i+".csv","text/csv"),e},n.prototype._export=function(t){void 0===t&&(t={});for(var u=this._view.config.columns.filter(function(t){return!t.hidden}),d={},e=m.transpose(u.map(function(t){return t.header.map(function(t){return t.text||" "})})),h=[],f={default:{color:"#000000",background:"#FFFFFF",fontSize:14,bold:!1}},p=[],o={},i=this._view.data.serialize().map(function(n,t){return d[n.id]=t,u.map(function(t,e){var i;return o[t.id]=e,n[t.id]instanceof Date&&(i=t.format||"%M %d %Y","string"==typeof n[t.id]?n[t.id]=c.getFormattedDate(i,c.stringToDate(n[t.id],i)):"object"==typeof n[t.id]&&(n[t.id]=c.getFormattedDate(i,n[t.id]))),n[t.id]||e||!n.$groupName?m.removeHTMLTags(n[t.id]):"^ "+n.$groupName})}),g=[],v=this._view.content,_=this,n=0,r=u;n<r.length;n++)!function(t){var n,e,o,i;t.footer&&(n=t.id,i=e=_._view.data.serialize().reduce(function(t,e){return void 0===e[n]||""===e[n]||isNaN(e[n])||t.push(parseFloat(e[n])),t},[]),"tree"===_._view.config.type&&(i=(o=_._view.data).serialize().reduce(function(t,e){var i;return 0===e.$level&&(void 0===e[n]||""===e[n]||isNaN(e[n])?(i=0,o.eachChild(e.id,function(t){o.haveItems(t.id)||(i+=parseFloat(t[n]))}),t.push(i)):t.push(parseFloat(e[n])||0)),t},[])),t.footer[0].content?(s=v[t.footer[0].content].calculate(e,i),g.push((null==s?void 0:s.toString())||" ")):g.push(t.footer[0].css||t.footer[0].text||" "));var r,s="number"===t.type||"percent"===t.type?"right":t.align;for(r in h.push({width:t.$width,align:s}),t.$cellCss){var a,l=t.$cellCss[r].trim(),c=l.split("").reduce(function(t,e){e=(t<<5)-t+e.charCodeAt(0);return Math.abs(e&e)},0).toString();f[c]||(a=document.body,(a=m.getStyleByClass(l,a,"dhx_grid-row",f.default))&&(f[c]=a)),f[c]&&p.push([d[r],u.indexOf(t),c])}}(r[n]);g.length&&i.push(g);var s,i={name:t.name||"data",columns:h,header:e,data:i,styles:{cells:p,css:f}};return t.url&&((s=document.createElement("form")).setAttribute("target","_blank"),s.setAttribute("action",t.url),s.setAttribute("method","POST"),s.style.visibility="hidden",(t=document.createElement("textarea")).setAttribute("name","data"),t.value=JSON.stringify(i),s.appendChild(t),document.body.appendChild(s),s.submit(),setTimeout(function(){s.parentNode.removeChild(s)},100)),i},n.prototype.getFlatCSV=function(o){var e=this._view.data,t=e.getRoot(),r=this._view.config.columns[0],s=e.getMaxLevel(),i="";e.eachChild(t,function(n){var t=function(t,e){for(var i,n=[],o=0;o<=s;o++)t&&t[r.id]?(n[t.$level]=t[r.id],t=(i=e.getParent(t.id,!0))&&i.id?i:null):n[o]="";return n}(n,e).join(o.columnDelimiter);i+=t+Object.keys(n).reduce(function(t,e,i){return"id"===e||"parent"===e||e.startsWith("$")||0===i?t:t+o.columnDelimiter+(null===n[e]?"":n[e])},""),i+=o.rowDelimiter});var t=this._export(o),n=function(t,e){for(var i=0;i<t.length;i++)t[i]=e;return t}(new Array(s+1),""),t=t.header.map(function(t){return t.splice.apply(t,a([0,1],n)),t});return new l.CsvDriver(o).serialize(t,!0)+o.rowDelimiter+i},n.prototype._getCSV=function(t){var e=this._export(t),i=e.header,t=new l.CsvDriver(t);return t.serialize(i,!0)+"\n"+t.serialize(e.data,!0)},n.prototype._rawExport=function(i,t,e){void 0===i&&(i={});var n=document.createElement("div");n.setAttribute("style","display: none;");var o=e.config,r=o.headerRowHeight,s=void 0===r?0:r,a=o.footerRowHeight,l=void 0===a?0:a,c=o.$totalHeight,u=void 0===c?0:c,r=o.$headerLevel,a=void 0===r?0:r,c=o.$footerLevel,r=void 0===c?0:c,c=o.$footer,d=o.columns,h="",f=e.config.exportStyles;"boolean"!=typeof i.exportStyles&&!Array.isArray(i.exportStyles)||(f=i.exportStyles),i.url=i.url||"https://export.dhtmlx.com/"+this._name+"/"+t+"/"+this._version,"pdf"===t&&(p=i.pdf,i.pdf=y(y({},p),{printBackground:!1,format:null!==(p=null==p?void 0:p.format)&&void 0!==p?p:"A4"}));var p=e.config.$totalWidth,s=u+a*(s+1)+1;c&&(s+=r*(l+1));for(var g=[],v=0;v<d.length;v++){var _=d[v];g.push(y(y({},_),{width:_.$width}))}var s=y(y({},e.config),{width:p,height:s,columns:g,data:e.data.getRawData(),keyNavigation:!1,selection:!1,resizable:!1}),m=new e.constructor(n,b.getCloneObject(s));x.awaitRedraw().then(function(){!0===f?h=w.getPageLinksCss()+"<style>"+w.getPageInlineCss()+"</style>":Array.isArray(f)&&f.length&&(h=""+w.getPageLinksCss(f)),null!==(t=n.children[0])&&void 0!==t&&t.setAttribute("data-dhx-theme",i.theme||"light");var t="\n\t\t\t\t\t"+h+"\n\t\t\t\t\t"+n.innerHTML+"\n\t\t\t\t",e=document.createElement("form");e.setAttribute("method","POST"),e.setAttribute("action",i.url),e.innerHTML='<input type="hidden" name="raw"><input type="hidden" name="config">',e.childNodes[0].value=t,e.childNodes[1].value=JSON.stringify(i),document.body.appendChild(e),e.submit(),setTimeout(function(){var t;m.destructor(),null!==(t=n.parentNode)&&void 0!==t&&t.removeChild(n),null!==(t=e.parentNode)&&void 0!==t&&t.removeChild(e)},100)}).catch(function(){var t;m.destructor(),null!==(t=n.parentNode)&&void 0!==t&&t.removeChild(n)})},i=n;function n(t,e,i){this._name=t,this._version=e,this._view=i}e.Exporter=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i(1),a=i(3),l=i(43),c=new WeakMap,u=new Map;function d(t,e){var i=document.createElement("div");return i.setAttribute("data-position",e),i.className="dhx_message-container dhx_message-container--"+e+(t===document.body?" dhx_message-container--in-body":""),i}e.message=function(t){"string"==typeof t&&(t={text:t}),t.position=t.position||l.MessageContainerPosition.topRight;var e=document.createElement("div");e.className="dhx_widget dhx_message "+(t.css||""),e.setAttribute("role","alert"),(o=t.text&&s.uid())&&e.setAttribute("aria-describedby",o),t.html?e.innerHTML=t.html:(e.innerHTML='<span class="dhx_message__text" id='+o+"></span>\n\t\t"+(t.icon?'<span class="dhx_message__icon dxi '+t.icon+'"></span>':""),e.querySelector("#"+o).textContent=t.text);var i=t.node?a.toNode(t.node):document.body;"static"===getComputedStyle(i).position&&(i.style.position="relative"),(o=u.get(i))?o[t.position]||(o[t.position]={stack:[],container:d(i,t.position)}):u.set(i,((n={})[t.position]={stack:[],container:d(i,t.position)},n));var n=(o=u.get(i)[t.position]).stack,o=o.container;function r(t){void 0===t&&(t=!0),e&&(function(t,e){e&&clearTimeout(c.get(t));var i=t.parentNode,n=i.getAttribute("data-position"),o=i.parentNode;(e=u.get(o))&&(!(e=e[n])||-1!==(e=(n=e.stack).indexOf(t))&&(i.removeChild(t),n.splice(e,1),0===n.length&&o.removeChild(i)))}(e,t),e=null)}return 0===n.length&&i.appendChild(o),n.push(e),o.appendChild(e),t.expire&&(t=setTimeout(function(){return r(!1)},t.expire),c.set(e,t)),e.onclick=function(){return r()},{close:function(){return r()}}}},function(t,n,o){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0});var e=o(44),i=o(66),c=o(1);n.alert=function(s){var a=s.buttons&&s.buttons[0]?s.buttons[0]:e.default.apply,l=i.blockScreen(s.blockerCss);return new t(function(e){var t="dhx_alert__"+c.uid()+"_content",i="dhx_alert__"+c.uid()+"_header",n=document.createElement("div");n.setAttribute("role","alert"),n.setAttribute("aria-modal","true"),s.text&&n.setAttribute("aria-describedby",t),s.header&&n.setAttribute("aria-labelledby",i),n.className="dhx_widget dhx_alert "+(s.css||"");var o=function(t){"Escape"!==t.key&&"Esc"!==t.key||(r(t),e(!1))};function r(t){t.preventDefault(),l(),document.body.removeChild(n),document.removeEventListener("keydown",o)}n.innerHTML="\n\t\t\t"+(s.header?"<div id="+i+' class="dhx_alert__header"> '+(!1!==s.htmlEnable?s.header:"")+" </div>":"")+"\n\t\t\t"+(s.text?"<div id="+t+' class="dhx_alert__content">'+(!1!==s.htmlEnable?s.text:"")+"</div>":"")+'\n\t\t\t<div class="dhx_alert__footer '+(s.buttonsAlignment?"dhx_alert__footer--"+s.buttonsAlignment:"")+'">\n\t\t\t\t<button type="button" aria-label="confirm" class="dhx_alert__apply-button dhx_button dhx_button--view_flat dhx_button--color_primary dhx_button--size_medium">'+a+"</button>\n\t\t\t</div>",!1===s.htmlEnable&&(s.header&&(n.querySelector("#"+i).textContent=s.header),s.text&&(n.querySelector("#"+t).textContent=s.text)),document.body.appendChild(n),n.querySelector(".dhx_alert__apply-button").focus(),n.querySelector("button").addEventListener("click",function(t){r(t),e(!0)}),document.addEventListener("keydown",o)})}}).call(this,o(17))},function(t,n,o){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0});var e=o(44),i=o(66),h=o(1);n.confirm=function(l){l.buttonsAlignment=l.buttonsAlignment||"right";var c=l.buttons&&l.buttons[1]?l.buttons[1]:e.default.apply,u=l.buttons&&l.buttons[0]?l.buttons[0]:e.default.reject,d=i.blockScreen("dhx_alert__overlay-confirm "+(l.blockerCss||""));return new t(function(e){var i=document.createElement("div");i.setAttribute("role","alertdialog"),i.setAttribute("aria-modal","true");var n,t=l.header&&h.uid(),o=l.header&&h.uid();o&&i.setAttribute("aria-describedby",o),t&&i.setAttribute("aria-labelledby",t);function r(t){d(),i.removeEventListener("click",s),document.removeEventListener("keydown",a),document.body.removeChild(i),e(t)}var s=function(t){"BUTTON"===t.target.tagName&&r(t.target.classList.contains("dhx_alert__confirm-aply"))},a=function(t){"Escape"===t.key||"Esc"===t.key?(i.querySelector(".dhx_alert__confirm-aply").focus(),r(t.target.classList.contains("dhx_alert__confirm-reject"))):"Tab"===t.key&&("aply"===n?(n="reject",i.querySelector(".dhx_alert__confirm-reject").focus()):(n="aply",i.querySelector(".dhx_alert__confirm-aply").focus()),t.preventDefault())};i.className="dhx_widget dhx_alert dhx_alert--confirm"+(l.css?" "+l.css:""),i.innerHTML="\n\t\t"+(l.header?'<div class="dhx_alert__header" id='+t+"> "+(!1!==l.htmlEnable?l.header:"")+" </div>":"")+"\n\t\t"+(l.text?'<div class="dhx_alert__content" id='+o+">"+(!1!==l.htmlEnable?l.text:"")+"</div>":"")+'\n\t\t\t<div class="dhx_alert__footer '+(l.buttonsAlignment?"dhx_alert__footer--"+l.buttonsAlignment:"")+'">\n\t\t\t\t<button type="button" aria-label="reject" class="dhx_alert__confirm-reject dhx_button dhx_button--view_link dhx_button--color_primary dhx_button--size_medium">'+u+'</button>\n\t\t\t\t<button type="button" aria-label="aply"class="dhx_alert__confirm-aply dhx_button dhx_button--view_flat dhx_button--color_primary dhx_button--size_medium">'+c+"</button>\n\t\t\t</div>",!1===l.htmlEnable&&(l.header&&(i.querySelector("#"+t).textContent=l.header),l.text&&(i.querySelector("#"+o).textContent=l.text)),document.body.appendChild(i),n="aply",i.querySelector(".dhx_alert__confirm-aply").focus(),i.addEventListener("click",s),document.addEventListener("keydown",a)})}}).call(this,o(17))},function(t,e,i){"use strict";var d=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var L=i(0),s=i(8),A=i(1),o=i(2),j=i(9),h=i(19),$=i(20),r=i(20),N=i(15),i=(n.prototype.setCell=function(e,i,t,n){var o,r=this;void 0===t&&(t=!1),void 0===n&&(n=!1);var s="tree"===this._grid.config.type;if(this._gridId&&h.focusManager.getFocusId()!==this._gridId&&h.focusManager.setFocusId(this._gridId),!(this.config.disabled||this._grid.config.$editable||(null===(o=this._selectedCells[0])||void 0===o?void 0:o.row.id)===((null===(o=e)||void 0===o?void 0:o.id)||e)&&(null===(o=this._selectedCells[0])||void 0===o?void 0:o.column.id)===((null===(o=i)||void 0===o?void 0:o.id)||i))&&(this._multiselection||!this._selectedCells.length||this._removeCell(null===(a=this._selectedCell)||void 0===a?void 0:a.row,null===(c=this._selectedCell)||void 0===c?void 0:c.column))){if(this._multiselection){if(t||n||this._removeCells(),this._selectedCells.find(function(t){return t.row.id===((null===e||void 0===e?void 0:e.id)||e)&&t.column.id===((null===i||void 0===i?void 0:i.id)||i)}))return void this.removeCell((null===e||void 0===e?void 0:e.id)||e,(null===i||void 0===i?void 0:i.id)||i);n&&1<this._selectedCells.length&&!s&&d(this._selectedCells).forEach(function(t,e){var i=t.row,t=t.column;0<e&&r.removeCell(i.id,t.id)})}e=this._grid.data.getItem(e&&e.id||e);var a,l,c,u,t=null===(c=null===(a=this._grid.config)||void 0===a?void 0:a.columns)||void 0===c?void 0:c.filter(function(t){return!t.hidden});i=i||(null==t?void 0:t[0]),(i=this._grid.getColumn(i.id||i))&&e&&(this._multiselection&&n&&this._selectedCells.length&&!s?(c=null===(a=this._selectedCells)||void 0===a?void 0:a[0],n=this._grid.data.getIndex(c.row.id),(s=this._grid.data.getIndex(e.id))<n&&(n=(l=[s,n])[0],s=l[1]),"cell"===this._type||"complex"===this._type?(l=(a=t.map(function(t){return t.id})).indexOf(c.column.id),c=a.indexOf(i.id),-1!==l&&-1!==c&&(c<l&&(l=(a=[c,l])[0],c=a[1]),u=t.slice(l,c+1),this._grid.data.mapRange(n,s,function(e){u.forEach(function(t){-1===r._findIndex({row:e,column:t})&&r._setCell(e,t)})}))):this._grid.data.mapRange(n,s,function(t){-1===r._findIndex({row:t,column:i})&&r._setCell(t,i)})):this._setCell(e,i),L.awaitRedraw().then(function(){r._grid.paint(),r._setBrowserFocus()}))}},n.prototype.removeCell=function(i,n){var t,o=this;i&&n&&("cell"===this._type||"complex"===this._type)?(t=this._selectedCells.find(function(t){var e=t.row,t=t.column;return e.id==i&&t.id==n}))&&this._removeCell(t.row,t.column):i?this._selectedCells.filter(function(t){return t.row.id==i}).forEach(function(t){var e=t.row,t=t.column;o._removeCell(e,t)}):this._removeCells(),L.awaitRedraw().then(function(){o._grid.paint()})},n.prototype.getCell=function(){return this._selectedCell},n.prototype.getCells=function(){return this._selectedCells},n.prototype.disable=function(){this.removeCell(),this.config.disabled=!0,this._grid.paint()},n.prototype.enable=function(){this.config.disabled=!1,this._grid.paint()},n.prototype.toHTML=function(){var o=this;if(!this._isUnselected()){if(this._multiselection){var r=[],s={};return this._selectedCells.forEach(function(t,e,i){var n=o._normalizeCell(t);r.push(o._toHTML(n.row,n.column,e===i.length-1||"cell"===o._type||"complex"===o._type,s[t.row.id])),s[t.row.id]=!0}),r}var t=this._normalizeCell(this._selectedCell);return this._toHTML(t.row,t.column,!0)}},n.prototype._setCell=function(t,e){t&&e&&A.isDefined(t.id)&&A.isDefined(e.id)&&this.events.fire(j.GridSelectionEvents.beforeSelect,[t,e])&&(this._selectedCell={row:t,column:e},this._multiselection?this._selectedCells.push(this._selectedCell):this._selectedCells=[this._selectedCell],this.events.fire(j.GridSelectionEvents.afterSelect,[t,e]))},n.prototype._removeCell=function(e,i,t){if(void 0===t&&(t=!1),!(e&&i&&A.isDefined(e.id)&&A.isDefined(i.id)))return!1;if(!t&&!this.events.fire(j.GridSelectionEvents.beforeUnSelect,[e,i]))return!1;var n=this._selectedCells.findIndex(function(t){return t.row.id===e.id&&t.column.id===i.id});return this._selectedCells.splice(n,1),this._selectedCell&&i.id===this._selectedCell.column.id&&e.id===this._selectedCell.row.id&&(this._selectedCell=null===(n=this._selectedCells)||void 0===n?void 0:n[(null===(n=this._selectedCells)||void 0===n?void 0:n.length)-1]),t||this.events.fire(j.GridSelectionEvents.afterUnSelect,[e,i]),!0},n.prototype._removeCells=function(e){var i=this;void 0===e&&(e=!1),d(this._selectedCells).forEach(function(t){i._removeCell(null==t?void 0:t.row,null==t?void 0:t.column,e)})},n.prototype._init=function(){var r=this;this._grid.events.on(j.GridEvents.cellClick,function(t,e,i){r.setCell(t,e,i.ctrlKey||i.metaKey,i.shiftKey)}),this._grid.data.events.on(s.DataEvents.beforeRemove,function(t){var e,i,n,o;t&&r._selectedCell&&r._selectedCell.row&&r._selectedCell.row.id===t.id&&(o=void 0,i=r._grid.data.getIndex(t.id),o=r._grid.data instanceof s.TreeCollection?(null===(e=(n=r._grid.data.getItems(t.parent))[i+1])||void 0===e?void 0:e.id)||(null===(n=n[i-1])||void 0===n?void 0:n.id)||t.parent:r._grid.data.getId(i+1)||r._grid.data.getId(i-1),A.isId(o)&&(r.setCell(o),r._grid.paint()))}),this._grid.data.events.on(s.DataEvents.removeAll,function(){r._removeCells()}),this._grid.data.events.on(s.DataEvents.load,function(){r._removeCells(!0)})},n.prototype._toHTML=function(e,t,i,n){void 0===i&&(i=!1),void 0===n&&(n=!1);var o=this._grid.data.getRawData(0,-1,null,2);if(-1===A.findIndex(o,function(t){return t.id==e.id}))return null;var r,s,a,l,c,u,d,h=this._grid.config,f=h.topSplit,p=h.bottomSplit,g=h.$totalWidth,v=h.$totalHeight,_=h.columns,m=null==_?void 0:_.filter(function(t){return!t.hidden}),y={left:$.getCurrFixedCols(this._grid.config,j.Split.left),right:$.getCurrFixedCols(this._grid.config,j.Split.right)},b=this._grid.data.getLength(),w={top:f?this._grid.data.getRawData(0,f):[],bottom:p?this._grid.data.getRawData(b-p,b):[]},x={left:null===(M=null==y?void 0:y.left)||void 0===M?void 0:M.map(function(t){return t.id}),right:null===(T=null==y?void 0:y.right)||void 0===T?void 0:T.map(function(t){return t.id})},E={top:w.top.map(function(t){return t.id}),bottom:w.bottom.map(function(t){return t.id})},C=null===(H=null==y?void 0:y.left)||void 0===H?void 0:H.reduce(function(t,e){return t+(e.$width||0)},0),S=null===(F=null==y?void 0:y.right)||void 0===F?void 0:F.reduce(function(t,e){return t+(e.$width||0)},0),k=w.top.reduce(function(t,e){return t+e.$height},0),I=w.bottom.reduce(function(t,e){return t+e.$height},0),O=this._grid.getCellRect(e.id,t.id),P=this._grid.getScrollState(),D=O.y,V=null===(R=E.top)||void 0===R?void 0:R.includes(e.id),_=null===(h=x.left)||void 0===h?void 0:h.includes(t.id),b=y.left.length&&C>O.x-P.x,M=w.top.length&&k>O.y-P.y,T=O.width,H=O.height-1,F=null,R=null,h=b?C+P.x:O.x;b&&(T-=(_?N.getTotalWidth(y.left.slice(0,m.indexOf(t))):C)-(O.x-P.x)),M&&(H-=(V?N.getTotalHeight(w.top.slice(0,o.indexOf(e))):k)-(O.y-P.y)-1,D+=O.height-H),V&&(D=O.y+P.y,(r=this._grid.getSpan(e.id,t.id))&&1<r.rowspan?(l=o.indexOf(e),F=N.getTotalHeight(w.top.slice(l,l+r.rowspan))):H=f===E.top.indexOf(e.id)+1?O.height-1:O.height),_&&(h=O.x+P.x,(r=this._grid.getSpan(e.id,t.id))&&1<r.colspan?(l=null==m?void 0:m.indexOf(t),R=N.getTotalWidth(y.left.slice(l,l+r.colspan))):T=y.left.length===x.left.indexOf(t.id)+1?O.width-1:O.width),(null!==(k=y.right)&&void 0!==k&&k.length||p)&&(r=this._grid.getSpan(e.id,t.id),f=this._getReverseScrollState(P),null!==(k=y.right)&&void 0!==k&&k.length&&(s=(null===(k=x.right)||void 0===k?void 0:k.includes(t.id))||r&&m.indexOf(t)+(r.colspan||1)>m.length-y.right.length,(a=g-S<f.x+O.x+O.width)&&!s&&(T-=f.x+O.x+O.width-g+S),s&&(T=!r||null!==(k=x.right)&&void 0!==k&&k.includes(r.column)?(c=null!==(c=x.right)&&void 0!==c&&c.indexOf(t.id)?0:1,h=O.x-f.x+c,O.width-c):(l=m.length-m.indexOf(t)-(r.colspan||1),S=g-S,h=O.x+f.x<1+S?O.x:S-f.x+1,R=N.getTotalWidth(l?y.right.slice(0,-l):y.right)-1,O.width-f.x))),p&&(u=E.bottom.includes(e.id)||r&&o.indexOf(e)+(r.rowspan||1)>o.length-p,(d=v-I<f.y+O.y+O.height)&&!u&&(H-=f.y+O.y+O.height-v+I),u&&(H=r&&!E.bottom.includes(r.row)?(I=v-I,c=(l=o.length-o.indexOf(e)-(r.rowspan||1))?0:1,D=O.y+f.y<I?O.y:I-f.y,F=N.getTotalHeight(l?w.bottom.slice(0,-l):w.bottom)-c,O.height-f.y-c):(D=O.y-f.y,O.height-(p===E.bottom.indexOf(e.id)+1?1:0)))));E=null;"row"!==this._type&&"complex"!==this._type||n||(E=L.el(".dhx_grid-selected-row",{style:{width:null!==(n=y.left)&&void 0!==n&&n.length?g-P.x:g,height:H,minHeight:F,minWidth:R,display:H<0&&!F?"none":"flex",top:D,left:null!==(y=y.left)&&void 0!==y&&y.length?P.x:0,position:"absolute"}}));P=null;return"cell"!==this._type&&"complex"!==this._type||!i||(P=L.el(".dhx_grid-selected-cell",{style:{width:T,height:H,top:D,minHeight:F,minWidth:R,left:h,position:"absolute",display:T<0&&!R||H<0&&!F?"none":"flex",borderLeft:b&&!_?"none":null,borderRight:a&&!s?"none":null,borderTop:M&&!V?"none":null,borderBottom:d&&!u?"none":null}})),L.el(".dhx_grid-selection",{style:{zIndex:20}},[E,P])},n.prototype._isUnselected=function(){return!this._selectedCell||!this._selectedCell.row||!this._selectedCell.column||0===this._selectedCells.length},n.prototype._findIndex=function(i){var n=this;void 0===i&&(i=this._selectedCell);var o=-1;return this._selectedCells.some(function(t,e){if("cell"===n._type||"complex"===n._type){if(A.compare(t.row,i.row)&&A.compare(t.column,i.column))return o=e,!0}else if("row"===n._type&&A.compare(t.row,i.row))return o=e,!0}),o},n.prototype._setBrowserFocus=function(){var t,e,i=this._grid.getRootView().data.getRootNode();!i||(t=i.querySelector(".dhx_grid_data"))&&this._selectedCell&&this._selectedCell.row&&this._selectedCell.column&&(e=t.querySelector('[data-dhx-id="'+this._selectedCell.row.id+'"]'),t=this._grid.getSpan(this._selectedCell.row.id,this._selectedCell.column.id),!e||(e=(i=t?i.querySelector(".dhx_span-spans"):null)?i.querySelector('[data-dhx-col-id="'+t.column+'"][data-dhx-id="'+t.row+'"]'):e.querySelector('[data-dhx-col-id="'+this._selectedCell.column.id+'"]'))&&(e.tabIndex=0,e.focus({preventScroll:!0})))},n.prototype._getReverseScrollState=function(t){var e=this._grid.config.$headerLevel*this._grid.config.headerRowHeight,i=this._grid.config.$footerLevel*this._grid.config.footerRowHeight,n=r.calcScrollBarWidth(this._grid.config,!(null===(o=this._grid.scrollView)||void 0===o||!o.config.enable)),o=this._grid.config.$totalWidth-this._grid.config.$width+$.BORDERS+n.y,n=this._grid.config.$totalHeight-this._grid.config.$height+e+i+$.BORDERS+n.x;return{x:0<o?o-t.x:0,y:0<n?n-t.y:0}},n.prototype._normalizeCell=function(t){var e=t.row,t=t.column,i=this._grid.getSpan(e.id,t.id);return{row:i&&e.id!==i.row?this._grid.data.getItem(i.row):e,column:i&&t.id!==i.column?this._grid.config.columns.find(function(t){return t.id===i.column}):t}},n);function n(t,e,i,n){this._grid=t,this.config=e,this._gridId=n,this._selectedCell,this._selectedCells=[],this._type=["cell","row","complex"].includes(this._grid.config.selection)&&this._grid.config.selection||"complex",this._multiselection=!!t.config.multiselection,this.events=i||new o.EventSystem(this),this._init()}e.Selection=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o,r=i(9),s=i(133),a=i(134),l=i(135),c=i(145),u=i(146),d=i(153),h={cell:{row:null,col:null},editor:null,gridId:null};e.getEditor=function(t,e,i){var n="boolean"===e.type?"checkbox":i.$editable.editorType;if(void 0===n&&(n=i.autoHeight?"textarea":"input"),h.cell.row===t.id&&h.cell.col===e.id&&h.gridId===i.gridId&&i.$editable.editor)return h.editor;switch("checkbox"!==n&&(h={cell:{row:t.id,col:e.id},editor:h.editor,gridId:i.gridId}),o||(o=function(){h={cell:{row:null,col:null},editor:null,gridId:null}},i.events.on(r.GridEvents.afterEditEnd,o)),n){case"input":return h.editor=new s.InputEditor(t,e,i);case"textarea":return h.editor=new d.TextAreaEditor(t,e,i);case"select":return h.editor=new a.SelectEditor(t,e,i);case"datePicker":return h.editor=new l.DateEditor(t,e,i);case"checkbox":return new c.CheckboxEditor(t,e,i);case"multiselect":case"combobox":return h.editor=new u.ComboboxEditor(t,e,i);default:return h.editor=new s.InputEditor(t,e,i)}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(9),r=i(1),i=(s.prototype.endEdit=function(t){var e;t||(e=this._input.value),this._config.events.fire(o.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(this._input.removeEventListener("blur",this._handlers.onBlur),this._input.removeEventListener("change",this._handlers.onChange),"string"!==this._cell.col.type&&r.isNumeric(e)&&(e=parseFloat(e)),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.events.fire(o.GridEvents.afterEditEnd,[e,this._cell.row,this._cell.col])):this._input.focus()},s.prototype.toHTML=function(t){var e=this._cell.row[this._cell.col.id];return this._input&&(e=this._input.value),this._config.$editable.editor=this,n.el("input.dhx_cell-editor.dhx_cell-editor__input",{_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor",value:null!=t?t:e})},s.prototype._initHandlers=function(){var e=this;this._handlers={onBlur:function(){e.endEdit()},onChange:function(){e.endEdit()},didInsert:function(t){t=t.el;(e._input=t).focus(),t.setSelectionRange(0,t.value.length),t.addEventListener("change",e._handlers.onChange),t.addEventListener("blur",e._handlers.onBlur)}}},s);function s(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}e.InputEditor=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(9),r=i(18),i=(s.prototype.endEdit=function(t){var e;t||(e=this._input.value),this._config.events.fire(o.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(this._input.removeEventListener("blur",this._handlers.onBlur),this._input.removeEventListener("keydown",this._handlers.onkeydown),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.events.fire(o.GridEvents.afterEditEnd,[e,this._cell.row,this._cell.col])):this._input.focus()},s.prototype.toHTML=function(){var t=r.getEditorOptions(this._cell.col,this._cell.row).map(function(t){return"string"==typeof t?{id:""+t,value:t}:t})||[],e=this._cell.row[this._cell.col.id];this._input&&(e=this._input.options[this._input.selectedIndex].value);t=t.map(function(t){return n.el("option",{selected:t.id.toString()===(null==e?void 0:e.toString()),value:t.id},t.value)});return this._config.$editable.editor=this,n.el("select.dhx_cell-editor.dhx_cell-editor__select",{_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor"},t)},s.prototype._initHandlers=function(){var e=this;this._handlers={onBlur:function(){e.endEdit()},onkeydown:function(t){"Escape"===t.key&&e.endEdit()},didInsert:function(t){t=t.el;(e._input=t).focus(),t.addEventListener("blur",e._handlers.onBlur),t.addEventListener("keydown",e._handlers.onkeydown)}}},s);function s(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}e.SelectEditor=i},function(t,e,i){"use strict";var n=this&&this.__rest||function(t,e){var i={};for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(i[o[n]]=t[o[n]]);return i};Object.defineProperty(e,"__esModule",{value:!0});var s=i(0),a=i(9),o=i(33),l=i(16),r=i(12),i=(c.prototype.endEdit=function(t,e){var i=this;if(this._handlers){var n=this._calendar.config.dateFormat,o=this._cell.row[this._cell.col.id],r=this._input.value;if(!t){if(o instanceof Date||e)return this._value=this._calendar.getValue(),this._input.value=this._value,void this._popup.hide();!l.stringToDate(r,n,!0)&&r||(!o||r.length!==o.length)&&o&&r||(this._value=r)}this._config.events.fire(a.GridEvents.beforeEditEnd,[this._value,this._cell.row,this._cell.col])?(this._input.removeEventListener("focus",this._handlers.onFocus),this._input.removeEventListener("change",this._handlers.onChange),document.removeEventListener("mousedown",this._handlers.onOuterClick),s.awaitRedraw().then(function(){i._popup.destructor(),i._calendar.destructor()}),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.events.fire(a.GridEvents.afterEditEnd,[this._value,this._cell.row,this._cell.col])):this._input.focus()}},c.prototype.toHTML=function(){var t=this._cell.row[this._cell.col.id];return this._config.$editable.editor=this,document.addEventListener("mousedown",this._handlers.onOuterClick),s.el("input.dhx_cell-editor.dhx_cell-editor__input.dhx_cell-editor__datepicker",{_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor",value:t})},c.prototype._cleanConfig=function(t){var e=t.editorConfig||{},e=(e.value,e.range,e.dateFormat,n(e,["value","range","dateFormat"]));return e.dateFormat=t.format,e},c.prototype._initHandlers=function(){var i=this;this._handlers={onFocus:function(){s.awaitRedraw().then(function(){i._popup.show(i._input,{centering:!0,mode:"bottom",theme:i._input})})},onChange:function(){i.endEdit()},onOuterClick:function(t){var e;t.target instanceof Node&&(e=i._input&&i._input.contains(t.target),t=i._popup&&i._popup.getRootNode()&&i._popup.getRootNode().contains(t.target),e||t||i._popup.hide())},didInsert:function(t){t=t.el;i._input=t,i._input.addEventListener("focus",i._handlers.onFocus),i._input.addEventListener("change",i._handlers.onChange),t.focus(),t.setSelectionRange(t.value.length,t.value.length)}}},c);function c(t,e,i){var n=this;this._config=i,this._cell={row:t,col:e},this._calendar=new o.Calendar(null,this._cleanConfig(e));t=this._cell.row[this._cell.col.id],e=this._calendar.config.dateFormat;(l.stringToDate(t,e,!0)||t instanceof Date)&&(this._calendar.setValue(t),this._value=this._calendar.getValue(),this._cell.row[this._cell.col.id]=this._value),this._popup=new r.Popup,this._popup.attach(this._calendar),this._calendar.events.on(o.CalendarEvents.change,function(){n.endEdit(!1,!0)}),this._popup.events.on(r.PopupEvents.afterHide,function(){n.endEdit()}),this._initHandlers()}e.DateEditor=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),y=this&&this.__assign||function(){return(y=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},b=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(1),w=i(0),a=i(2),l=i(5),c=i(45),u=i(144),x=i(16),d=i(73),h=i(3),o=(r=l.View,o(f,r),f.prototype.setValue=function(t){if(!t||t instanceof Array&&0===t.length)return!1;var e=t instanceof Array?t[0]:t,i=x.DateHelper.toDateObject(e,this.config.dateFormat),e=x.DateHelper.copy(this._getSelected());return!!this.events.fire(d.CalendarEvents.beforeChange,[i,e,!1])&&(this._selected=[],this._setSelected(t),this._timepicker&&(this._timepicker.setValue(i),this._time=this._timepicker.getValue()),this.showDate(this._getSelected()),this.events.fire(d.CalendarEvents.change,[i,e,!1]),this.paint(),!0)},f.prototype.getValue=function(t){var e=this;return void 0===t&&(t=!1),this._selected[0]?this.config.range?t?this._selected.map(function(t){return x.DateHelper.copy(t)}):this._selected.map(function(t){return x.getFormattedDate(e.config.dateFormat,t)}):t?x.DateHelper.copy(this._selected[0]):x.getFormattedDate(this.config.dateFormat,this._selected[0]):""},f.prototype.getCurrentMode=function(){return this._currentViewMode},f.prototype.showDate=function(t,e){t&&(this._currentDate=x.DateHelper.copy(t)),e&&(this._currentViewMode=e),this.paint()},f.prototype.destructor=function(){this._linkedCalendar&&this._unlink(),this._timepicker&&this._timepicker.destructor(),this.events&&this.events.clear(),this.config=this.events=null,this._uid=this._selected=this._currentDate=this._currentViewMode=this._handlers=this._timepicker=this._time=null,this.unmount()},f.prototype.clear=function(){var t=this.getValue(!0);this.events.fire(d.CalendarEvents.beforeChange,["",t,!1])&&(this.config.timePicker&&(this._timepicker.clear(),this._time=this._timepicker.getValue()),this._selected=[],this.showDate(null,this.config.mode),this.events.fire(d.CalendarEvents.change,[this.getValue(!0),t,!1]))},f.prototype.link=function(t){var e=this;this._linkedCalendar&&this._unlink(),this._linkedCalendar=t;var i=this.getValue(!0),n=t.getValue(!0),o=i&&x.DateHelper.dayStart(i),r=n&&x.DateHelper.dayStart(n);this.config.$rangeMark&&this._linkedCalendar.config.$rangeMark||(this.config.$rangeMark=this._linkedCalendar.config.$rangeMark=function(t){if(o&&r)return o<=t&&t<=r&&function(t){if(x.DateHelper.isSameDay(r,o))return null;var e="dhx_calendar-day--in-range";return x.DateHelper.isSameDay(t,o)&&(e+=" dhx_calendar-day--first-date"),x.DateHelper.isSameDay(t,r)&&(e+=" dhx_calendar-day--last-date"),e}(t)}),this.config.disabledDates&&this._linkedCalendar.config.disabledDates||(this.config.disabledDates=function(t){if(r)return r<t},this._linkedCalendar.config.disabledDates=function(t){if(o)return t<o}),this.config.thisMonthOnly=!0,t.config.thisMonthOnly=!0,this.events.on(d.CalendarEvents.change,function(t){o=t?x.DateHelper.dayStart(t):null,e._linkedCalendar.paint()},"link"),this._linkedCalendar.events.on(d.CalendarEvents.change,function(t){r=t?x.DateHelper.dayStart(t):null,e.paint()},"link"),this._linkedCalendar.paint(),this.paint()},f.prototype._unlink=function(){this._linkedCalendar&&(this.config.$rangeMark=this._linkedCalendar.config.$rangeMark=null,this.config.disabledDates=this._linkedCalendar.config.disabledDates=null,this.events.detach(d.CalendarEvents.change,"link"),this._linkedCalendar.events.detach(d.CalendarEvents.change,"link"),this._linkedCalendar.paint(),this._linkedCalendar=null)},f.prototype._setSelected=function(t){var i,n=this,e=t instanceof Array?t[0]:t,e=x.DateHelper.toDateObject(e,this.config.dateFormat);t instanceof Array&&this.config.range?(i=[],t.forEach(function(t,e){e<2&&i.push(x.DateHelper.toDateObject(t,n.config.dateFormat))}),2===i.length&&i[0]<i[1]?i.forEach(function(t){return n._selected.push(t)}):this._selected[0]=i[0]):this._selected[0]=e},f.prototype._getSelected=function(){return this._selected[this._selected.length-1]},f.prototype._draw=function(){switch(this._currentViewMode){case"calendar":return this.events.fire(d.CalendarEvents.modeChange,["calendar"]),this._drawCalendar();case"month":return this.events.fire(d.CalendarEvents.modeChange,["month"]),this._drawMonthSelector();case"year":return this.events.fire(d.CalendarEvents.modeChange,["year"]),this._drawYearSelector();case"timepicker":return this.events.fire(d.CalendarEvents.modeChange,["timepicker"]),this._drawTimepicker()}},f.prototype._initHandlers=function(){function n(t){void 0===t&&(t=!1);var e=0;switch(o._currentViewMode){case"calendar":e=t?-7:7;break;case"month":e=t?-4:4;break;case"year":e=t?-4:4}return e}var o=this,r={Up:"ArrowUp",Down:"ArrowDown",Right:"ArrowRight",Left:"ArrowLeft",Esc:"Escape",Spacebar:"Space"};this._handlers={onkeydown:{".dhx_calendar-year, .dhx_calendar-month, .dhx_calendar-day":function(t,e){switch(48<=(i=t).which&&i.which<=57||65<=i.which&&i.which<=90?String.fromCharCode(i.which):(i=32===i.which?i.code:i.key,h.isIE()&&r[i]||i)){case"Enter":o._selectDate(t,e);break;case"ArrowLeft":o._moveBrowseFocus(t,e,-1);break;case"ArrowRight":o._moveBrowseFocus(t,e,1);break;case"ArrowUp":o._moveBrowseFocus(t,e,n(!0));break;case"ArrowDown":o._moveBrowseFocus(t,e,n())}var i}},onclick:{".dhx_calendar-year, .dhx_calendar-month, .dhx_calendar-day":function(t,e){o._selectDate(t,e)},".dhx_calendar-action__cancel":function(){o.showDate(o._getSelected(),"calendar"),o.events.fire(d.CalendarEvents.cancelClick,[])},".dhx_calendar-action__show-month":function(){return o.showDate(null,"month")},".dhx_calendar-action__show-year":function(){return o.showDate(null,"year")},".dhx_calendar-action__next":function(){var t;switch(o._currentViewMode){case"calendar":t=x.DateHelper.addMonth(o._currentDate,1);break;case"month":t=x.DateHelper.addYear(o._currentDate,1);break;case"year":t=x.DateHelper.addYear(o._currentDate,12)}o.showDate(t)},".dhx_calendar-action__prev":function(){var t;switch(o._currentViewMode){case"calendar":t=x.DateHelper.addMonth(o._currentDate,-1);break;case"month":t=x.DateHelper.addYear(o._currentDate,-1);break;case"year":t=x.DateHelper.addYear(o._currentDate,-12)}o.showDate(t)},".dhx_calendar-action__show-timepicker":function(){o._currentViewMode="timepicker",o.paint()}},onmouseover:{".dhx_calendar-day":function(t,e){o.events.fire(d.CalendarEvents.dateMouseOver,[new Date(e.attrs._date),t]),o.events.fire(d.CalendarEvents.dateHover,[new Date(e.attrs._date),t])}}}},f.prototype._getData=function(r){var t,s=this;switch(this._isSelectedInCurrentRange=!1,this.config.weekStart){case"saturday":t=-1;break;case"monday":t=1;break;default:t=0}for(var e=[],i=6,a=x.DateHelper.weekStart(x.DateHelper.monthStart(r),t);i--;){for(var n=x.DateHelper.getWeekNumber(a),l=0,o=7,c=[],u=function(){var t,e=x.DateHelper.isWeekEnd(a),i=r.getMonth()===a.getMonth(),n=d.config.disabledDates&&d.config.disabledDates(a),o=[];d.config.range&&d._selected[0]&&d._selected[1]&&(t=function(){if(s._selected[0]&&s._selected[1]){var t=x.DateHelper.dayStart(s._selected[0]),e=x.DateHelper.dayStart(s._selected[1]);return t<=a&&a<=e&&(x.DateHelper.isSameDay(s._selected[0],s._selected[1])?null:"dhx_calendar-day--in-range")}},d.config.$rangeMark=t),e&&o.push("dhx_calendar-day--weekend"),i||(d.config.thisMonthOnly?(l++,o.push("dhx_calendar-day--hidden")):o.push("dhx_calendar-day--muffled")),!d.config.mark||(i=d.config.mark(a))&&o.push(i),d.config.$rangeMark&&(t=d.config.$rangeMark(a))&&o.push(t),n&&(e?o.push("dhx_calendar-day--weekend-disabled"):o.push("dhx_calendar-day--disabled")),d._selected.forEach(function(t,e){t&&x.DateHelper.isSameDay(t,a)&&(s._isSelectedInCurrentRange=!0,t="dhx_calendar-day--selected",s.config.range&&(t+=" dhx_calendar-day--selected-"+(0===e?"first ":"last")),o.push(t))}),c.push({date:a,day:a.getDate(),css:o.join(" ")}),a=x.DateHelper.addDay(a)},d=this;o--;)u();e.push({weekNumber:n,days:c,disabledWeekNumber:7===l})}return e},f.prototype._drawCalendar=function(){var t,i=this,e=this._currentDate,n=this.config,o=n.weekStart,r=n.thisMonthOnly,s=n.css,a=n.timePicker,l=n.width;switch(o){case"saturday":t=b([x.locale.daysShort[6]],x.locale.daysShort.slice(0,-1));break;case"monday":t=b(x.locale.daysShort.slice(1),[x.locale.daysShort[0]]);break;default:t=x.locale.daysShort}for(var c,n=t.map(function(t){return w.el(".dhx_calendar-weekday",t)}),o=this._getData(e),u=!0,d=this._getSelected(),h=function(t){var e={role:"button",tabindex:-1,"aria-pressed":"false"};return t&&(i._isSelectedInCurrentRange?(t=t.date)&&d&&t.getTime()===d.getTime()&&(e.tabindex=0,e["aria-pressed"]="true"):u&&(e.tabindex=0),u=!1),e},f=[],p=[],g=0,v=o;g<v.length;g++){var _=v[g],m=_.days.map(function(t){return w.el("div.dhx_calendar-day",y({class:t.css,_date:t.date},h(t)),t.day)});!this.config.weekNumbers||_.disabledWeekNumber&&r||p.push(w.el("div",{class:"dhx_calendar-week-number"},_.weekNumber)),f=f.concat(m)}this.config.weekNumbers&&(c=w.el(".dhx_calendar__week-numbers",p));s="dhx_calendar dhx_widget"+(s?" "+s:"")+(a?" dhx_calendar--with_timepicker":"")+(this.config.weekNumbers?" dhx_calendar--with_week-numbers":"");return w.el("div",y({class:s,style:{width:this.config.weekNumbers?parseInt(l.toString())+48+"px":l}},this._handlers),[w.el(".dhx_calendar__wrapper",[this._drawHeader(w.el("button.dhx_calendar-action__show-month.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--circle",{"aria-live":"polite",type:"button"},x.locale.months[e.getMonth()]+" "+e.getFullYear())),this.config.weekNumbers&&w.el(".dhx_calendar__dates-wrapper",[w.el(".dhx_calendar__weekdays",n),w.el(".dhx_calendar__days",f),c]),!this.config.weekNumbers&&w.el(".dhx_calendar__weekdays",n),!this.config.weekNumbers&&w.el(".dhx_calendar__days",f),a?w.el(".dhx_timepicker__actions",[w.el("button.dhx_calendar__timepicker-button.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--width_full.dhx_button--circle.dhx_calendar-action__show-timepicker",{type:"button"},[w.el("span.dhx_button__icon.dxi.dxi-clock-outline"),w.el("span.dhx_button__text",this._time)])]):null])])},f.prototype._drawMonthSelector=function(){function o(t){return u&&e===t}var t=this._currentDate,e=t.getMonth(),i=this._getSelected()?this._getSelected().getFullYear():null,n=this.config,r=n.css,s=n.timePicker,a=n.weekNumbers,l=n.width,n=n.mode,s="dhx_calendar dhx_widget"+(r?" "+r:"")+(s?" dhx_calendar--with_timepicker":"")+(a?" dhx_calendar--with_week-numbers":""),c=!0,u=i===t.getFullYear();return w.el("div",y({class:s,style:{width:a?parseInt(l.toString())+48+"px":l}},this._handlers),[w.el(".dhx_calendar__wrapper",[this._drawHeader(w.el("button.dhx_calendar-action__show-year.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--circle",{"aria-live":"polite",type:"button"},t.getFullYear())),w.el(".dhx_calendar__months",x.locale.monthsShort.map(function(t,e){return w.el("div",y(y({class:"dhx_calendar-month"+(o(e)?" dhx_calendar-month--selected":"")},(i=e,n={role:"button",tabindex:-1,"aria-pressed":"false"},t&&(u?o(i)&&(n.tabindex=0,n["aria-pressed"]="true"):c&&(n.tabindex=0),c=!1),n)),{_date:e}),t);var i,n})),"month"!==n?w.el(".dhx_calendar__actions",[w.el("button.dhx_button.dhx_button--color_primary.dhx_button--view_link.dhx_button--size_small.dhx_button--width_full.dhx_button--circle.dhx_calendar-action__cancel",{type:"button"},x.locale.cancel)]):null])])},f.prototype._drawYearSelector=function(){function n(t){return e._getSelected()&&t===e._getSelected().getFullYear()}var e=this,t=this._currentDate,i=x.DateHelper.getTwelweYears(t),o=this.config,r=o.css,s=o.timePicker,a=o.weekNumbers,t=o.width,o=o.mode,s="dhx_calendar dhx_widget"+(r?" "+r:"")+(s?" dhx_calendar--with_timepicker":"")+(a?" dhx_calendar--with_week-numbers":""),l=!0,c=this._getSelected()&&i.includes(this._getSelected().getFullYear());return w.el("div",y({class:s,style:{width:a?parseInt(t.toString())+48+"px":t}},this._handlers),[w.el(".dhx_calendar__wrapper",[this._drawHeader(w.el("button.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--circle",{"aria-live":"polite",type:"button"},i[0]+"-"+i[i.length-1])),w.el(".dhx_calendar__years",i.map(function(t){return w.el("div",y({class:"dhx_calendar-year"+(n(t)?" dhx_calendar-year--selected":""),_date:t},(i={role:"button",tabindex:-1,"aria-pressed":"false"},(e=t)&&(c?n(e)&&(i.tabindex=0,i["aria-pressed"]="true"):l&&(i.tabindex=0),l=!1),i)),t);var e,i})),"year"!==o&&"month"!==o?w.el(".dhx_calendar__actions",[w.el("button.dhx_button.dhx_button--color_primary.dhx_button--view_link.dhx_button--size_small.dhx_button--width_full.dhx_button--circle.dhx_calendar-action__cancel",{type:"button"},x.locale.cancel)]):null])])},f.prototype._drawHeader=function(t){return w.el(".dhx_calendar__navigation",[w.el("button.dhx_calendar-navigation__button.dhx_calendar-action__prev"+u.linkButtonClasses+".dhx_button--icon.dhx_button--circle",{"aria-label":"prev",type:"button"},[w.el(".dhx_button__icon.dxi.dxi-chevron-left")]),t,w.el("button.dhx_calendar-navigation__button.dhx_calendar-action__next"+u.linkButtonClasses+".dhx_button--icon.dhx_button--circle",{"aria-label":"next",type:"button"},[w.el(".dhx_button__icon.dxi.dxi-chevron-right")])])},f.prototype._drawTimepicker=function(){var t=this.config,e=t.css,i=t.weekNumbers,t=t.width;return w.el(".dhx_widget.dhx-calendar",{class:e?" "+e:"",style:{width:i?parseInt(t.toString())+48+"px":t}},[w.inject(this._timepicker.getRootView())])},f.prototype._selectDate=function(t,e){var i=e.attrs._date,n=x.DateHelper.copy(this._getSelected());switch(this._currentViewMode){case"calendar":var o=this.config.timePicker?x.DateHelper.mergeHoursAndMinutes(i,this._getSelected()||this._currentDate):i;if(!this.events.fire(d.CalendarEvents.beforeChange,[o,n,!0]))return;this.config.range&&1===this._selected.length&&this._selected[0]<o?this._selected.push(o):(this._selected=[],this._selected[0]=o),e.el.blur(),this.showDate(this._getSelected()),this.events.fire(d.CalendarEvents.change,[i,n,!0]);break;case"month":if("month"!==this.config.mode)x.DateHelper.setMonth(this._currentDate,i),this.showDate(null,"calendar"),this.events.fire(d.CalendarEvents.monthSelected,[i]);else{var r=x.DateHelper.fromYearAndMonth(this._currentDate.getFullYear()||this._getSelected().getFullYear(),i);if(!this.events.fire(d.CalendarEvents.beforeChange,[r,n,!0]))return;this._currentDate=r,this._selected[0]=r,this.events.fire(d.CalendarEvents.change,[this._getSelected(),n,!0]),this.events.fire(d.CalendarEvents.monthSelected,[i]),this.paint()}break;case"year":if("year"!==this.config.mode)x.DateHelper.setYear(this._currentDate,i),this.showDate(null,"month"),this.events.fire(d.CalendarEvents.yearSelected,[i]);else{r=x.DateHelper.fromYear(i);if(!this.events.fire(d.CalendarEvents.beforeChange,[r,n,!0]))return;this._currentDate=r,this._selected[0]=r,this.events.fire(d.CalendarEvents.change,[this._getSelected(),n,!0]),this.events.fire(d.CalendarEvents.yearSelected,[i]),this.paint()}}},f.prototype._moveBrowseFocus=function(t,e,i){e&&(!(i=e.parent.body[e.idx+i])||(i=i.el)&&(t.target.tabIndex=-1,i.tabIndex=0,i.focus({preventScroll:!0})))},f);function f(t,e){void 0===e&&(e={});var o=r.call(this,t,s.extend({weekStart:"sunday",thisMonthOnly:!1,dateFormat:window&&window.dhx&&window.dhx.dateFormat,width:"250px"},e))||this;switch(o._selected=[],o.events=new a.EventSystem,o.config.disabledDates=o.config.disabledDates||o.config.block,o.config.mode=o.config.mode||o.config.view,o.config.dateFormat||(o.config.timePicker?12===o.config.timeFormat?o.config.dateFormat="%d/%m/%y %h:%i %A":o.config.dateFormat="%d/%m/%y %H:%i":o.config.dateFormat="%d/%m/%y"),o.config.value&&o._setSelected(o.config.value),o.config.date?o._currentDate=x.DateHelper.toDateObject(o.config.date,o.config.dateFormat):o._getSelected()?o._currentDate=x.DateHelper.copy(o._getSelected()):o._currentDate=new Date,o.config.mode){case"month":o._currentViewMode="month";break;case"year":o._currentViewMode="year";break;case"timepicker":o._currentViewMode=o.config.timePicker?"timepicker":"calendar";break;default:o._currentViewMode="calendar"}o._initHandlers(),o.config.timePicker&&(o._timepicker=new c.Timepicker(null,{timeFormat:o.config.timeFormat,controls:!0}),e=o._getSelected()||new Date,o._timepicker.setValue(e),o._time=o._timepicker.getValue(),o._timepicker.events.on(c.TimepickerEvents.afterClose,function(){o._timepicker.setValue(o._time),o.showDate(null,"calendar")}),o._timepicker.events.on(c.TimepickerEvents.afterApply,function(){var t=o._timepicker.getValue(!0),e=t.hour,i=t.minute,n=t.AM,t=o._getSelected(),n=x.DateHelper.withHoursAndMinutes(o._getSelected()||new Date,e,i,n);o.events.fire(d.CalendarEvents.beforeChange,[n,t,!0])&&(o._selected[o._selected.length-1]=n,o.events.fire(d.CalendarEvents.change,[n,t,!0])),o._time=o._timepicker.getValue(),o.showDate(null,"calendar")}));return o.mount(t,w.create({render:function(){return o._draw()}})),o}e.Calendar=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(1),a=i(0),l=i(2),c=i(5),u=i(11),d=i(48),h=i(71),f=i(143),p=i(72),g=i(3);function v(t,e){return isNaN(t)?0:Math.min(e,Math.max(0,t))}var _,o=(_=c.View,o(m,_),m.prototype.getValue=function(t){return 12===this.config.timeFormat&&(this._time.hour=this._time.hour%12||12),this._getValue(this._time,t)},m.prototype.setValue=function(t){this._setValue(t),this._hoursSlider.setValue(this._time.hour),this._minutesSlider.setValue(this._time.minute),this._inputsView.paint()},m.prototype.clear=function(){24===this.config.timeFormat?this.setValue("00:00"):this.setValue("12:00AM")},m.prototype.destructor=function(){this._minutesSlider&&this._minutesSlider.destructor(),this._hoursSlider&&this._hoursSlider.destructor(),this.events&&this.events.clear(),this.layout&&this.layout.destructor(),this.config=this.events=null,this._handlers=this._time=this._inputsView=this._minutesSlider=this._hoursSlider=null,this.unmount()},m.prototype.getRootView=function(){return this.layout.getRootView()},m.prototype._getValue=function(t,e){var i=t.hour,n=t.minute,t=t.AM;if(e){e={hour:i,minute:n};return 12===this.config.timeFormat&&(e.AM=t),e}return(i<10?"0"+i:i)+":"+(n<10?"0"+n:n)+(12===this.config.timeFormat?t?"AM":"PM":"")},m.prototype._setValue=function(t){var e,i,n=0,o=0;return"number"==typeof t&&(t=new Date(t)),t instanceof Date?(n=t.getMinutes(),o=t.getHours()):Array.isArray(t)?(o=v(t[0],23),n=v(t[1],59),t[2]&&"pm"===t[2].toLowerCase()&&(e=!0)):"string"==typeof t?(o=v(+(i=t.match(/\d+/g))[0],23),n=v(+i[1],59),t.toLowerCase().includes("pm")&&(e=!0)):"object"==typeof t&&t.hasOwnProperty("hour")&&t.hasOwnProperty("minute")&&(o=t.hour,n=t.minute,e=!t.AM),e&&o<12&&(o+=12),12===this.config.timeFormat&&!f.isTimeCheck(t)&&12<=o&&(e=!0),this._time={hour:o,minute:n,AM:!e}},m.prototype._initUI=function(t){var e=this,i={gravity:!1,css:"dhx_widget dhx_timepicker "+(this.config.css||"")+(this.config.controls?" dhx_timepicker--with-controls":""),rows:[{id:"timepicker",css:"dhx_timepicker__inputs"},{id:"hour-slider",css:"dhx_timepicker__hour"},{id:"minute-slider",css:"dhx_timepicker__minute"}]};this.config.controls&&(i.rows.unshift({id:"close-action",css:"dhx_timepicker__close"}),i.rows.push({id:"save-action",css:"dhx_timepicker__save"}));var n=this.layout=new u.Layout(t,i),o=a.create({render:function(){return e._draw()}}),t=this._inputsView=c.toViewLike(o),i=this._minutesSlider=new d.Slider(null,{min:0,max:59,step:1,tooltip:!1,labelPosition:"top",label:h.default.minutes,value:this.config.value?this._time.minute:0}),o=this._hoursSlider=new d.Slider(null,{min:0,max:23,step:1,tooltip:!1,labelPosition:"top",label:h.default.hours,value:!this.config.value||12===this._time.hour&&this._time.AM?0:this._time.hour});n.getCell("timepicker").attach(t),n.getCell("hour-slider").attach(o),n.getCell("minute-slider").attach(i),this.config.controls&&(n.getCell("save-action").attach(function(){return a.el("button.dhx_timepicker__button-save.dhx_button.dhx_button--view_flat.dhx_button--color_primary.dhx_button--size_small.dhx_button--circle.dhx_button--width_full",{onclick:e._outerHandlers.save,type:"button"},h.default.save)}),n.getCell("close-action").attach(function(){return a.el("button.dhx_timepicker__button-close.dhx_button.dhx_button--view_link.dhx_button--size_medium.dhx_button--view_link.dhx_button--color_secondary.dhx_button--icon.dhx_button--circle",{_ref:"close",onclick:e._outerHandlers.close,type:"button","aria-label":"close timepicker"},[a.el("span.dhx_button__icon.dxi.dxi-close")])}))},m.prototype._initHandlers=function(){function e(t){var e=v(parseInt(t.value,10),59);t.value=e.toString(),n._minutesSlider.setValue(e)}function i(t){var e=v(parseInt(t.value,10),23);t.value=e.toString(),n._hoursSlider.setValue(e)}var n=this;this._handlers={onchange:{".dhx_timepicker-input--hour":function(t){return i(t.target)},".dhx_timepicker-input--minutes":function(t){return e(t.target)}},oninput:{".dhx_timepicker-input--hour":function(t){(g.isSafari()||g.isFirefox())&&i(t.target)},".dhx_timepicker-input--minutes":function(t){(g.isSafari()||g.isFirefox())&&e(t.target)}}},this._outerHandlers={close:function(){n.events.fire(p.TimepickerEvents.beforeClose,[n.getValue(n._isTimeObj())])&&(n.events.fire(p.TimepickerEvents.afterClose,[n.getValue(n._isTimeObj())]),n.events.fire(p.TimepickerEvents.close,[]))},save:function(){n.events.fire(p.TimepickerEvents.beforeApply,[n.getValue(n._isTimeObj())])&&(n.events.fire(p.TimepickerEvents.afterApply,[n.getValue(n._isTimeObj())]),n.events.fire(p.TimepickerEvents.apply,[n.getValue()]),n.events.fire(p.TimepickerEvents.save,[n._time]))}}},m.prototype._initEvents=function(){var i=this;this._hoursSlider.events.on(d.SliderEvents.beforeChange,function(t){if(!(t<i._hoursSlider.config.min||t>i._hoursSlider.config.max)){var e=r({},i._time);12===i.config.timeFormat?(e.AM=t<12,e.hour=t%12||12):e.hour=t;t=i._isTimeObj();return i.events.fire(p.TimepickerEvents.beforeChange,[i._getValue(e,t)])}}),this._hoursSlider.events.on(d.SliderEvents.change,function(t){t<i._hoursSlider.config.min||t>i._hoursSlider.config.max||(12===i.config.timeFormat?(i._time.AM=t<12,i._time.hour=t%12||12):i._time.hour=t,t=i._isTimeObj(),i.events.fire(p.TimepickerEvents.change,[i.getValue(t)]),i._inputsView.paint())}),this._minutesSlider.events.on(d.SliderEvents.beforeChange,function(t){if(!(t<i._minutesSlider.config.min||t>i._minutesSlider.config.max)){var e=r(r({},i._time),{minute:t}),t=i._isTimeObj();return i.events.fire(p.TimepickerEvents.beforeChange,[i._getValue(e,t)])}}),this._minutesSlider.events.on(d.SliderEvents.change,function(t){t<i._minutesSlider.config.min||t>i._minutesSlider.config.max||(i._time.minute=t,t=i._isTimeObj(),i.events.fire(p.TimepickerEvents.change,[i.getValue(t)]),i._inputsView.paint())})},m.prototype._draw=function(){return a.el(".dhx_timepicker-inputs",r({},this._handlers),[a.el("input.dhx_timepicker-input.dhx_timepicker-input--hour",{_key:"hour",_ref:"hour",value:1<this.getValue(!0).hour.toString().length?this.getValue(!0).hour:"0"+this.getValue(!0).hour,"aria-label":"hours"}),a.el("span.dhx_timepicker-delimer",":"),a.el("input.dhx_timepicker-input.dhx_timepicker-input--minutes",{_key:"minute",value:1<this.getValue(!0).minute.toString().length?this.getValue(!0).minute:"0"+this.getValue(!0).minute,"aria-label":"minutes"}),12===this.config.timeFormat?a.el(".dhx_timepicker-ampm",this._time.AM?"AM":"PM"):null])},m.prototype._isTimeObj=function(){var t;return"timeobject"===(null===(t=this.config.valueFormat)||void 0===t?void 0:t.toLowerCase())},m);function m(t,e){void 0===e&&(e={});e=_.call(this,t,s.extend({timeFormat:24,controls:!1,valueFormat:"string",actions:!1},e))||this;return e.events=new l.EventSystem(e),e._time={hour:0,minute:0,AM:!0},12===e.config.timeFormat&&(e._time.hour=12),e.config.controls=e.config.controls||e.config.actions,e.config.value&&e._setValue(e.config.value),e._initUI(t),e._initHandlers(),e._initEvents(),e}e.Timepicker=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getBlockRange=function(t,e,i){return void 0===i&&(i=!0),i?{min:t.left+window.pageXOffset,max:e.right+window.pageXOffset}:{min:t.top+window.pageYOffset,max:e.bottom+window.pageYOffset}},e.getMarginSize=function(t){return t&&("space"===t.type||"wide"===t.type)?12:0}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(46),a=i(140),o=(r=s.Layout,o(l,r),l.prototype._createCell=function(t){var e=t.rows||t.cols||t.views?(t.parent=this._root,new l(this,t)):new a.ProCell(this,t);return this._root._all[e.id]=e,t.init&&t.init(e,t),e},l);function l(t,e){return r.call(this,t,e)||this}e.ProLayout=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),h=this&&this.__assign||function(){return(h=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,f=i(1),p=i(0),s=i(21),i=i(68),o=(r=i.Cell,o(a,r),a.prototype._getFirstRootView=function(t){return void 0===t&&(t=this),t.getParent()&&t.getParent().getRootView()?t.getParent().getRootView():this._getFirstRootView(t.getParent())},a.prototype.toVDOM=function(t){if(null===this.config&&(this.config={}),!this.config.hidden){var e,i=this.config.$fieldset,n=this._calculateStyle(),o=f.isDefined(this.config.padding)?isNaN(Number(this.config.padding))?{padding:this.config.padding}:{padding:this.config.padding+"px"}:"",r=this.config.full||this.config.html?n:h(h({},n),o);this.config.html||(e=this._ui?((d=this._ui.getRootView()).render&&(d=p.inject(d)),d?[this.scrollView.render(d)]:d||null):t?this.scrollView.render([t]):t||null);var s=this.config.resizable&&!this._isLastCell()&&this._getNextCell()&&!this.config.collapsed?p.el(".dhx_layout-resizer."+(this._isXDirection()?"dhx_layout-resizer--x":"dhx_layout-resizer--y"),h(h({},this._resizerHandlers),{_ref:"resizer_"+this._uid}),[p.el("span.dhx_layout-resizer__icon",{class:"dxi "+(this._isXDirection()?"dxi-dots-vertical":"dxi-dots-horizontal")})]):null,a={};if(this.config.on)for(var l in this.config.on)a["on"+l]=this.config.on[l];var c="",u=this.config.cols||this.config.rows;if(this.config.type&&u)switch(this.config.type){case"line":c=" dhx_layout-line";break;case"wide":c=" dhx_layout-wide";break;case"space":c=" dhx_layout-space"}var d=p.el(".dhx_layout-cell-content",{_key:this._uid+"_html",style:o},[p.el(".dhx_layout-cell-inner_html",{".innerHTML":this.config.html})]),d=p.el("div",h(h(((t={_key:this._uid,_ref:this._uid})["aria-label"]=this.config.id?"tab-content-"+this.config.id:null,t["data-cell-id"]=null!==(u=this.config.id)&&void 0!==u?u:null,t),a),{class:this._getCss(!1)+(this.config.css?" "+this.config.css:"")+(this.config.collapsed?" dhx_layout-cell--collapsed":"")+(this.config.resizable?" dhx_layout-cell--resizable":"")+(this.config.type&&!this.config.full?c:""),style:i?n:r}),[i?p.el("fieldset.dhx_form-fieldset",{class:this.config.$disabled?" dhx_form-fieldset--disabled":"",style:o,disabled:this.config.$disabled},[p.el("legend.dhx_form-fieldset-legend",{class:"dhx_form-fieldset-legend--"+(this.config.labelAlignment||"left")},this.config.label),p.el(".dhx_layout-cell-content",{class:this._getCss(!1)},[e])]):this.config.full?[p.el("div",{tabindex:this.config.collapsable?"0":"-1",class:"dhx_layout-cell-header"+(this._isXDirection()?" dhx_layout-cell-header--col":" dhx_layout-cell-header--row")+(this.config.collapsable?" dhx_layout-cell-header--collapseble":"")+(this.config.collapsed?" dhx_layout-cell-header--collapsed":"")+(((this.getParent()||{}).config||{}).isAccordion?" dhx_layout-cell-header--accordion":""),style:{height:this.config.headerHeight},onclick:this._handlers.toggle,onkeydown:this._handlers.enterCollapse},[this.config.headerIcon&&p.el("span.dhx_layout-cell-header__icon",{class:this.config.headerIcon}),this.config.headerImage&&p.el(".dhx_layout-cell-header__image-wrapper",[p.el("img",{src:this.config.headerImage,class:"dhx_layout-cell-header__image"})]),this.config.header&&p.el("h3.dhx_layout-cell-header__title",this.config.header),this.config.collapsable?p.el("div.dhx_layout-cell-header__collapse-icon",{class:this._getCollapseIcon()}):p.el("div.dhx_layout-cell-header__collapse-icon",{class:"dxi dxi-empty"})]),this.config.collapsed?null:p.el("div",{style:h(h({},o),{height:"calc(100% - "+(this.config.headerHeight||37)+"px)"}),class:this._getCss(!0)+" dhx_layout-cell-content"+(this.config.type?c:"")},this.config.html?[p.el("div",{".innerHTML":this.config.html,class:"dhx_layout-cell dhx_layout-cell-inner_html"})]:e)]:!this.config.html||this.config.rows&&this.config.cols&&this.config.views?e:[this.config.collapsed?null:this.scrollView&&this.scrollView.config.enable?this.scrollView.render([d],this._uid):d],this._checkProgress()&&this._getProgressBar()]);return s?[d,s]:d}},a);function a(t,e){var i=r.call(this,t,e)||this;return i.scrollView=new s.ScrollView(function(){return i._getFirstRootView()}),i}e.ProCell=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l=this&&this.__assign||function(){return(l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r=i(1),c=i(0),s=i(2),a=i(13),u=i(5),d=i(12),h=i(70),f=i(3);function p(t,e,i){return t<e?e:i<t?i:t}var g,o=(g=u.View,o(v,g),v.prototype.disable=function(){this._disabled=!0,this.paint()},v.prototype.enable=function(){this._disabled=!1,this.paint()},v.prototype.isDisabled=function(){return this._disabled},v.prototype.focus=function(t){this.getRootView().refs[t?"extraRunner":"runner"].el.focus()},v.prototype.blur=function(){this.getRootView().refs[this._isExtraActive?"extraRunner":"runner"].el.blur()},v.prototype.getValue=function(){var t,e;return this.config.range?(t=this._getValue(this._currentPosition))<(e=this._getValue(this._extraCurrentPosition))?[t,e]:[e,t]:[this._getValue(this._currentPosition)]},v.prototype.setValue=function(t){var e=this._getValue(this._currentPosition);if(Array.isArray(t)&&1<t.length){var i=this._getValue(this._extraCurrentPosition);this.events.fire(h.SliderEvents.beforeChange,[t[0],e,!1])&&(this._setValue(t[0],!1),this.events.fire(h.SliderEvents.change,[t[0],e,!1])),this.events.fire(h.SliderEvents.beforeChange,[t[1],i,!0])&&(this._setValue(t[1],!0),this.events.fire(h.SliderEvents.change,[t[1],i,!0]))}else{if(t=parseFloat(t),isNaN(t))throw new Error("Wrong value type, for more info check documentation https://docs.dhtmlx.com/suite/slider__api__slider_setvalue_method.html");this.events.fire(h.SliderEvents.beforeChange,[t,e,!1])&&(this._setValue(t),this.events.fire(h.SliderEvents.change,[t,e,!1]))}this.paint()},v.prototype.destructor=function(){this._keyManager&&this._keyManager.destructor(),document.body.contains(this._tooltip)&&document.body.removeChild(this._tooltip),this._tooltip=null,this.unmount()},v.prototype._calcSliderPosition=function(){var t=this.getRootView();t&&(t=t.refs.track.el.getBoundingClientRect(),this._offsets={left:t.left+window.pageXOffset,top:t.top+window.pageYOffset},this._length="horizontal"===this.config.mode?t.width:t.height)},v.prototype._initHotkeys=function(){var t,e=this,i={arrowLeft:function(t){t.preventDefault(),e._move(-e.config.step,t.target.classList.contains("dhx_slider__thumb--extra"))},arrowRight:function(t){t.preventDefault(),e._move(e.config.step,t.target.classList.contains("dhx_slider__thumb--extra"))},arrowUp:function(t){t.preventDefault(),e._move(e.config.step,t.target.classList.contains("dhx_slider__thumb--extra"))},arrowDown:function(t){t.preventDefault(),e._move(-e.config.step,t.target.classList.contains("dhx_slider__thumb--extra"))}};for(t in i)this._keyManager.addHotKey(t,i[t])},v.prototype._move=function(t,e){void 0===e&&(e=!1),this.config.inverse&&(t=-t);var i=this.config,n=i.max,o=i.min,r=e?this._getValue(this._extraCurrentPosition):this._getValue(this._currentPosition),i=r+t;(n<i||i<o)&&(i=r),this.events.fire(h.SliderEvents.beforeChange,[i,r,e])&&(this._setValue(r+t,e),this.events.fire(h.SliderEvents.change,[i,r,e]),this.paint())},v.prototype._initStartPosition=function(){var t,e,i=this.config,n=i.max,o=i.min,r=i.range,i=(t=this.config.value,e=this.config.min,i=this.config.max,(t=void 0===t?[]:Array.isArray(t)?t:"string"==typeof t?t.split(",").map(function(t){return parseInt(t,10)}):[t])[0]=void 0===t[0]?e:p(t[0],e,i),t[1]=void 0===t[1]?i:p(t[1],e,i),t),t=i[0],i=i[1];this._currentPosition=(t-o)/(n-o)*100,r&&(this._extraCurrentPosition=(n-i)/(n-o)*100),this._currentPosition=(t-o)/(n-o)*100,r&&(this._extraCurrentPosition=(i-o)/(n-o)*100),this._isInverse()&&(this._currentPosition=100-this._currentPosition,r&&(this._extraCurrentPosition=100-this._extraCurrentPosition))},v.prototype._getValue=function(t){this._isInverse()&&(t=100-t);var e=this.config,i=e.min,n=e.max,e=e.step;if(100===t)return n;if(0===t)return i;t=t*(n-i)/100,n=t%e,e=e/2<=n?e:0;return+(Number(i)+Number(t)-n+e).toFixed(5)},v.prototype._setValue=function(t,e){void 0===e&&(e=!1);var i=this.config,n=i.max,i=i.min;if(n<t||t<i)return!1;i=(t-i)/(n-i)*100,i=this._isInverse()?100-i:i;e?this._extraCurrentPosition=i:this._currentPosition=i},v.prototype._initHandlers=function(){function e(t){if(t.cancelable&&t.preventDefault(),t=((t.targetTouches?t.targetTouches[0]:t)[n._axis]-n._getBegining())/n._length*100,n._findNewDirection){if(Math.abs(n._currentPosition-t)<1)return;t>n._currentPosition?n._possibleRange=[n._currentPosition,100]:n._possibleRange=[0,n._currentPosition],n._findNewDirection=null}n._inSide(t)&&n._updatePosition(t,n._isExtraActive),n.paint()}function i(t){var e,i;n._disabled||3===t.which||(n.events.fire(h.SliderEvents.mousedown,[t]),n._isMouseMoving=!0,e=t.target.classList.contains("dhx_slider__thumb--extra")?(n._isExtraActive=!0,n._extraCurrentPosition):(n._isExtraActive=!1,n._currentPosition),n._findNewDirection=null,n.config.range?(t=(i=n._currentPosition>n._extraCurrentPosition?[n._currentPosition,n._extraCurrentPosition]:[n._extraCurrentPosition,n._currentPosition])[0],i=i[1],n._currentPosition===n._extraCurrentPosition?(n._findNewDirection=e,n._possibleRange=[0,100]):n._possibleRange=e<t?[0,t]:[i,100]):n._possibleRange=[0,100])}var n=this,o=function(t){n.events.fire(h.SliderEvents.mouseup,[t]),setTimeout(function(){n._isMouseMoving=!1,n.paint()},4),t.targetTouches?(document.removeEventListener("touchend",o),document.removeEventListener("touchmove",e)):(document.removeEventListener("mouseup",o),document.removeEventListener("mousemove",e))};this.config.helpMessage&&(this._helper=new d.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"}),this._helper.attachHTML(this.config.helpMessage)),this._handlers={showHelper:function(t){t.preventDefault(),t.stopPropagation(),n._helper.show(t.target,{theme:t.target})},onmousedown:function(t){i(t),document.addEventListener("mousemove",e),document.addEventListener("mouseup",o)},ontouchstart:function(t){n._setTooltip(t),n._mouseIn=!1,i(t),document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",o),n.paint()},ontouchend:function(t){n._setTooltip(t),n._mouseIn=!1,n.paint()},onlabelClick:function(){n.getRootView().refs.runner.el.focus()},onclick:function(t){var e;n._disabled||n._isMouseMoving||3===t.which||(e=(t[n._axis]-n._getBegining())/n._length*100,t=n.getRootView().refs,!n.config.range||Math.abs(n._currentPosition-e)<Math.abs(n._extraCurrentPosition-e)?(n._updatePosition(e,!1),t.runner.el.focus()):(n._updatePosition(e,!0),t.extraRunner.el.focus()),n.paint())},onmouseover:function(t){n._setTooltip(t),n._mouseIn=!0,n.paint()},onmouseout:function(t){n._setTooltip(t),n._mouseIn=!1,n.paint()},onfocus:function(t){n._setTooltip(t),n._focusIn=!0,n.events.fire(h.SliderEvents.focus,[]),n.paint()},onblur:function(t){n._setTooltip(t),n._focusIn=!1,n.events.fire(h.SliderEvents.blur,[]),n.paint()},onkeydown:function(t){n.events.fire(h.SliderEvents.keydown,[t])}}},v.prototype._getBegining=function(){return"horizontal"===this.config.mode?this._offsets.left-window.pageXOffset:this._offsets.top-window.pageYOffset},v.prototype._inSide=function(t){var e=this._possibleRange;return t<e[0]?(this._updatePosition(e[0],this._isExtraActive),!1):!(t>e[1])||(this._updatePosition(e[1],this._isExtraActive),!1)},v.prototype._updatePosition=function(t,e){void 0===e&&(e=!1),100<t&&(t=100),t<0&&(t=0);var i=this.config,n=i.max,o=i.min,i=e?this._extraCurrentPosition:this._currentPosition,i=this._getValue(i),t=this._getValue(t);i!==t&&this.events.fire(h.SliderEvents.beforeChange,[t,i,e])&&(o=(t-o)/(n-o)*100,o=this._isInverse()?100-o:o,e?this._extraCurrentPosition=o:this._currentPosition=o,this.events.fire(h.SliderEvents.change,[t,i,e]))},v.prototype._getRunnerStyle=function(t){void 0===t&&(t=!1);var e="horizontal"===this.config.mode?"left":"top",i=t?this._extraCurrentPosition:this._currentPosition;return(t={})[e]=i+"%",t},v.prototype._isInverse=function(){return this.config.inverse&&"horizontal"===this.config.mode||!this.config.inverse&&"vertical"===this.config.mode},v.prototype._getRunnerCss=function(t){return void 0===t&&(t=!1),"dhx_slider__thumb"+(t?" dhx_slider__thumb--extra":"")+(this._isMouseMoving&&(t&&this._isExtraActive||!t&&!this._isExtraActive)?" dhx_slider__thumb--active":"")+(this._disabled?" dhx_slider__thumb--disabled":"")+(this._isNullable(t?this._extraCurrentPosition:this._currentPosition)&&!this.config.range?" dhx_slider__thumb--nullable":"")},v.prototype._draw=function(){var t=this.config,e=t.labelPosition,i=t.mode,n=t.hiddenLabel,o=t.tick,r=t.majorTick,s=t.css,a=t.helpMessage,t=f.getLabelStyle(l(l({},this.config),{required:!1}));return!this._tooltip||this._mouseIn&&this._focusIn&&this._isMouseMoving||document.body.contains(this._tooltip)&&document.body.removeChild(this._tooltip),c.el("div",{class:"dhx_slider dhx_slider--mode_"+i+("left"===e?" dhx_slider--label-inline":"")+(n?" dhx_slider--label_sr":"")+(o?" dhx_slider--ticks":"")+(r?" dhx_slider--major-ticks":"")+(s?" "+s:"")+(this._disabled?" dhx_slider--disabled":"")},[t?c.el("label.dhx_label.dhx_slider__label",{style:t.style,class:a?"dhx_label--with-help":"",onclick:this._handlers.onlabelClick},a?[t.label&&c.el("span.dhx_label__holder",t.label),c.el("span.dhx_label-help.dxi.dxi-help-circle-outline",{tabindex:"0",role:"button",onclick:this._handlers.showHelper})]:t.label):null,this._drawSlider()])},v.prototype._drawSlider=function(){return c.el(".dhx_widget.dhx_slider__track-holder",{"data-dhx-widget-id":this._uid},[c.el(".dhx_slider__track",{_ref:"track",onmouseover:this._handlers.onmouseover,onmouseout:this._handlers.onmouseout,onclick:this._handlers.onclick},[this._getDetector(),c.el("div",{_ref:"runner",class:this._getRunnerCss(),ontouchstart:this._handlers.ontouchstart,ontouchend:this._handlers.ontouchend,onmousedown:this._handlers.onmousedown,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,style:this._getRunnerStyle(),tabindex:0}),this.config.tooltip&&(this._mouseIn||this._focusIn||this._isMouseMoving)?this._drawTooltip():null,this.config.tooltip&&this.config.range&&(this._mouseIn||this._focusIn||this._isMouseMoving)?this._drawTooltip(!0):null,this.config.range?c.el("div",{_ref:"extraRunner",class:this._getRunnerCss(!0),ontouchstart:this._handlers.ontouchstart,ontouchend:this._handlers.ontouchend,onmousedown:this._handlers.onmousedown,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,style:this._getRunnerStyle(!0),tabindex:0}):null]),this.config.tick?this._drawTicks():null])},v.prototype._getDetector=function(){var t;if(this._disabled)return c.el(".dhx_slider__range");var e="horizontal"===this.config.mode?"left":"top",i="horizontal"===this.config.mode?"width":"height";if(this.config.range){var n=this._currentPosition>this._extraCurrentPosition?[this._currentPosition,this._extraCurrentPosition]:[this._extraCurrentPosition,this._currentPosition],o=n[0],r=n[1];return c.el(".dhx_slider__range",{style:((n={})[e]=r+"%",n[i]=o-r+"%",n)})}return this._isInverse()?c.el(".dhx_slider__range",{style:((t={})[e]=this._currentPosition+"%",t[i]=100-this._currentPosition+"%",t)}):c.el(".dhx_slider__range",{style:((t={})[e]=0,t[i]=this._currentPosition+"%",t)})},v.prototype._drawTooltip=function(t){var e,i,n;void 0===t&&(t=!1),"none"!==this._activeTooltip&&this.getRootView()&&(e="extraTooltip"===this._activeTooltip?this._extraCurrentPosition:this._currentPosition,i="horizontal"===this.config.mode?"left":"top",n="",(t&&this._isExtraActive||!t&&!this._isExtraActive)&&(n+=" dhx_slider__thumb-label--active"),this._tooltip||(this._tooltip=document.createElement("div")),t=("tooltip"===this._activeTooltip?this.getRootView().refs.runner:this.getRootView().refs.extraRunner).el.getBoundingClientRect(),this._tooltip.className="dhx_slider__thumb-label"+n,this._tooltip.style.left=t.x+("left"==i?6:-30)+window.pageXOffset+"px",this._tooltip.style.top=t.y+("left"==i?-30:6)+window.pageYOffset+"px",this._tooltip.innerText=this._getValue(e).toString(),document.body.appendChild(this._tooltip))},v.prototype._getTicks=function(){for(var t=this.config,e=t.max,i=t.min,n=t.step,o=t.tick,r=t.majorTick,s=e-i,a=n*o/s,l=[],c=0,u=0;c<1;){var d=+(Number(i)+c*s).toFixed(5),h=u%r==0;l.push({position:(this._isInverse()?100*(1-c):100*c)+"%",isMultiple:h,label:h&&"function"==typeof this.config.tickTemplate?this.config.tickTemplate(d):null}),c+=a,u++}return l.push({position:(this._isInverse()?0:100)+"%",isMultiple:!0,label:"function"==typeof this.config.tickTemplate?this.config.tickTemplate(e):null}),l},v.prototype._drawTicks=function(){var i="horizontal"===this.config.mode?"left":"top";return c.el(".dhx_slider__ticks-holder",this._getTicks().map(function(t){var e;return c.el("div",{class:"dhx_slider__tick"+(t.isMultiple?" dhx_slider__tick--major":""),style:((e={})[i]=t.position,e)},void 0!==t.label?[c.el(".dhx_slider__tick-label",t.label)]:null)}))},v.prototype._isNullable=function(t){return this._isInverse()?100===t:0===t},v.prototype._setTooltip=function(t){t.target.classList.contains("dhx_slider__thumb--extra")?this._activeTooltip="extraTooltip":t.target.classList.contains("dhx_slider__thumb")?this._activeTooltip="tooltip":this._activeTooltip="none"},v);function v(t,e){var i=g.call(this,t,r.extend({mode:"horizontal",min:0,max:100,step:1,tooltip:!0},e))||this;i._disabled=!1,i.config.helpMessage=i.config.helpMessage||i.config.help,void 0!==i.config.thumbLabel&&(i.config.tooltip=i.config.thumbLabel),i.config.labelInline&&(i.config.labelPosition="left"),i.events=new s.EventSystem(i),i._axis="horizontal"===i.config.mode?"clientX":"clientY",i._initStartPosition(),i._keyManager=new a.KeyManager(function(){var t;return document.activeElement===(null===(t=null===(t=i.getRootView().refs)||void 0===t?void 0:t[i._isExtraActive?"extraRunner":"runner"])||void 0===t?void 0:t.el)}),i._initHotkeys();e=c.create({render:function(){return i._draw()},hooks:{didMount:function(){return i._calcSliderPosition()},didRedraw:function(){return i._calcSliderPosition()}}});return i._initHandlers(),i.mount(t,e),i}e.Slider=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,a=i(1),l=i(0),c=i(2),u=i(3),d=i(5),h=i(69),o=(r=d.View,o(f,r),f.prototype.show=function(t,e,i){var n=this;void 0===e&&(e={}),this.events.fire(h.PopupEvents.beforeShow,[t])&&(t=u.toNode(t),this._isActive?this._setPopupSize(t,e):(i&&this.attach(i),e.theme&&this._setTheme(e.theme),this._popup.style.left="0",this._popup.style.top="0",l.awaitRedraw().then(function(){n._setPopupSize(t,e),n._popup.style.position="fixed",document.body.appendChild(n._popup),n._isActive=!0}).then(function(){n._popup.style.position="absolute",n.events.fire(h.PopupEvents.afterShow,[t]),n._outerClickDestructor=n._detectOuterClick(t)})))},f.prototype.hide=function(){this._hide(!1,null)},f.prototype.isVisible=function(){return this._isActive},f.prototype.attach=function(t,e){return this._html=null,"object"==typeof t?this._ui=t:"string"==typeof t?this._ui=new window.dhx[t](null,e):"function"==typeof t&&(t.prototype instanceof d.View?this._ui=new t(null,e):this._ui={getRootView:function(){return t(e)}}),this.paint(),this._ui},f.prototype.attachHTML=function(t){this._html=t,this.paint()},f.prototype.getWidget=function(){return this._ui},f.prototype.getContainer=function(){return this.getRootView().refs.content.el},f.prototype.toVDOM=function(){var t;return this._html?t=l.el(".dhx_popup__inner-html-content",{".innerHTML":this._html}):(t=this._ui?this._ui.getRootView():null)&&t.render&&(t=l.inject(t)),l.el("div",{class:"dhx_popup-content",tabindex:0,onclick:this._clickEvent,_key:this._uid,_ref:"content"},[t])},f.prototype.destructor=function(){this.hide(),this._outerClickDestructor&&this._outerClickDestructor(),this._popup=null},f.prototype._setTheme=function(t){"string"==typeof t?this._popup.setAttribute("data-dhx-theme",t):(t=null===(t=null==t?void 0:t.closest("[data-dhx-theme]"))||void 0===t?void 0:t.getAttribute("data-dhx-theme"))&&this._popup.setAttribute("data-dhx-theme",t)},f.prototype._setPopupSize=function(t,e,i){var n=this;void 0===i&&(i=3);var o=this._popup.getBoundingClientRect(),r=o.width,o=o.height;if(this._timeout&&(clearTimeout(this._timeout),this._timeout=null),!i||0!==r&&0!==o){r=u.fitPosition(t,s(s({centering:!0,mode:"bottom"},e),{width:r,height:o})),o=r.left,r=r.top;if(this._popup.style.left=o,this._popup.style.top=r,e.indent&&0!==e.indent)switch(e.mode){case"top":this._popup.style.top=parseInt(this._popup.style.top.slice(0,-2),null)-parseInt(e.indent.toString(),null)+"px";break;case"bottom":this._popup.style.top=parseInt(this._popup.style.top.slice(0,-2),null)+parseInt(e.indent.toString(),null)+"px";break;case"left":this._popup.style.left=parseInt(this._popup.style.left.slice(0,-2),null)-parseInt(e.indent.toString(),null)+"px";break;case"right":this._popup.style.left=parseInt(this._popup.style.left.slice(0,-2),null)+parseInt(e.indent.toString(),null)+"px";break;default:this._popup.style.top=parseInt(this._popup.style.top.slice(0,-2),null)+parseInt(e.indent.toString(),null)+"px"}}else this._timeout=setTimeout(function(){n._isActive&&(n._setPopupSize(t,e,i-1),n._timeout=null)})},f.prototype._detectOuterClick=function(n){var o=this,r=!1,s=new WeakMap,a=function(t){var e=t.target,i=document.querySelectorAll(".dhx_popup");for(r?i.forEach(function(t){return s.has(t)||s.set(t,o._popup)}):(r=Boolean(i.length))&&i.forEach(function(t){return s.set(t,!0)});e;){if(e===n||e===o._popup||s.get(e)===o._popup)return;e=e.parentNode}o._hide(!0,t)&&document.removeEventListener("mousedown",a)};return document.addEventListener("mousedown",a),function(){return document.removeEventListener("mousedown",a)}},f.prototype._hide=function(t,e){if(this._isActive)return!!this.events.fire(h.PopupEvents.beforeHide,[t,e])&&(document.body.removeChild(this._popup),this._isActive=!1,this._outerClickDestructor&&(this._outerClickDestructor(),this._outerClickDestructor=null),this.events.fire(h.PopupEvents.afterHide,[e]),!0)},f);function f(t){void 0===t&&(t={});var e=r.call(this,null,a.extend({},t))||this,i=e._popup=document.createElement("div");return i.className="dhx_widget dhx_popup"+(e.config.css?" "+e.config.css:""),i.style.position="absolute",i.setAttribute("role","dialog"),i.setAttribute("aria-modal","true"),i.setAttribute("aria-live","polite"),e.config.theme&&e._setTheme(e.config.theme),e.mount(i,l.create({render:function(){return e.toVDOM()}})),e._clickEvent=function(t){return e.events.fire(h.PopupEvents.click,[t])},e.events=t.events||new c.EventSystem(e),e._isActive=!1,e}e.Popup=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isTimeCheck=function(t){return/(^12:[0-5][0-9]?AM$)/i.test(t)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.linkButtonClasses=".dhx_button.dhx_button--view_link.dhx_button--icon.dhx_button--size_medium.dhx_button--color_secondary"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(1),o=i(0),r=i(9),i=(s.prototype.endEdit=function(){var t=this._checked;this._config.events.fire(r.GridEvents.beforeEditEnd,[t,this._cell.row,this._cell.col])?(this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.events.fire(r.GridEvents.afterEditEnd,[t,this._cell.row,this._cell.col])):this._input.checked=!t},s.prototype.toHTML=function(){void 0===this._checked&&(this._checked=this._cell.row[this._cell.col.id]);var t=n.uid();return o.el("div.dhx_checkbox.dhx_cell-editor__checkbox",[o.el("label",{style:{display:"none"},for:t},this._checked||"false"),o.el("input.dhx_checkbox__input",{type:"checkbox",_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor","data-dhx-checked":(!!this._checked).toString(),checked:this._checked,id:t,style:{userSelect:"none"}}),o.el("span.dhx_checkbox__visual-input")])},s.prototype._initHandlers=function(){var e=this;this._handlers={onClick:function(){var t=!e._input.checked;e._config.events.fire(r.GridEvents.beforeEditStart,[e._cell.row,e._cell.col,"checkbox"])?(e._checked=t,e._config.events.fire(r.GridEvents.afterEditStart,[e._cell.row,e._cell.col,"checkbox"]),e.endEdit()):e._input.checked=!t},didInsert:function(t){e._checkbox=t.el.parentNode.lastChild,e._input=t.el.parentNode.querySelector("input"),t.el.parentNode.addEventListener("click",e._handlers.onClick)}}},s);function s(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}e.CheckboxEditor=i},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(0),r=i(9),s=i(34),a=i(19),l=i(18),i=(c.prototype.endEdit=function(t){var e,i,n=this;t||(e=this._input.getValue(),e="multiselect"===this._cell.col.editorType?e.split(",").join(", "):e),this._config.events.fire(r.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(i=l.getEditorOptions(this._cell.col,this._cell.row),this._input.popup.hide(),document.removeEventListener("mousedown",this._handlers.onOuterClick),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),a.focusManager.setFocusId(this._config.gridId),null!=e&&e.toString().split(", ").forEach(function(e){var t=i.find(function(t){return"string"==typeof t?t===e:t.id.toString()===e});e&&!t&&(n._cell.col.$customOptions||(n._cell.col.$customOptions=[]),n._cell.col.$customOptions.push(n._input.data.getItem(e)))}),this._config.events.fire(r.GridEvents.afterEditEnd,[e,this._cell.row,this._cell.col])):this._input.focus()},c.prototype.toHTML=function(){var e=this,t=l.getEditorOptions(this._cell.col,this._cell.row).map(function(t){return"string"==typeof t?{id:""+t,value:t}:t})||[];return this._input||(this._input=new s.Combobox(null,n({itemHeight:37,css:"dhx_cell-editor__combobox",multiselection:"multiselect"===this._cell.col.editorType,htmlEnable:this._cell.col.htmlEnable},this._cell.col.editorConfig)),this._input.data.parse(t),t=this._cell.row[this._cell.col.id],t="multiselect"===this._cell.col.editorType?((null==t?void 0:t.toString())||"").split(", "):t,this._input.setValue(t),this._input.events.on("keydown",this._handlers.onkeydown),this._input.data.events.on("beforeAdd",function(t){if(t.id!==t.value)return e._input.addOption({id:t.value,value:t.value},!0),!1})),document.addEventListener("mousedown",this._handlers.onOuterClick),this._config.$editable.editor=this,o.awaitRedraw().then(function(){var t=e._input.getRootView().refs.holder.el;e._input.popup.getContainer().style.width=t.offsetWidth+"px",e._input.popup.show(t)}),a.focusManager.setFocusId(this._input._uid),o.inject(this._input.getRootView())},c.prototype._initHandlers=function(){var i=this;this._handlers={onOuterClick:function(t){var e;t.target instanceof Node&&(e=i._input&&i._input.getRootNode()&&i._input.getRootNode().contains(t.target),t=i._input.popup&&i._input.popup.getRootNode()&&i._input.popup.getRootNode().contains(t.target),e||t||i.endEdit())},onkeydown:function(t){"Escape"!==t.key&&"Tab"!==t.key||i.endEdit()}}},c);function c(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}e.ComboboxEditor=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KEY_CODES={BACKSPACE:8,ENTER:13,ESC:27,DOWN_ARROW:40,UP_ARROW:38,LEFT_ARROW:37,RIGHT_ARROW:39}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(149);e.getEditor=function(t,e){return new n.InputEditor(t,e)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(49),i=(r.prototype.endEdit=function(){var t;this._input&&(t=this._input.value,this._list.events.fire(o.ListEvents.beforeEditEnd,[t,this._item.id])?(this._input.removeEventListener("blur",this._handlers.onBlur),this._input.removeEventListener("change",this._handlers.onChange),this._input.removeEventListener("keydown",this._handlers.onKeyDown),this._handlers={},this._mode=!1,this._list.events.fire(o.ListEvents.afterEditEnd,[t,this._item.id])):this._input.focus())},r.prototype.toHTML=function(){this._mode=!0;var t=this._config.itemHeight;return n.el(".dhx_input__wrapper",{role:"presentation"},[n.el("div.dhx_input__container",{role:"presentation"},[n.el("input.dhx_input",{class:this._item.css?" "+this._item.css:"",style:{height:t,width:"100%",padding:"8px 12px"},_hooks:{didInsert:this._handlers.didInsert},_key:this._item.id,"data-dhx-id":this._item.id})])])},r.prototype._initHandlers=function(){var e=this;this._handlers={onBlur:function(){e.endEdit()},onChange:function(){e.endEdit()},onKeyDown:function(t){"Enter"===t.key&&e._item.value===e._input.value&&e.endEdit(),"Escape"===t.key&&(e._input.value=e._item.value,e.endEdit())},didInsert:function(t){t=t.el;(e._input=t).focus(),t.value=e._item.value,t.setSelectionRange(0,t.value.length),t.addEventListener("change",e._handlers.onChange),t.addEventListener("blur",e._handlers.onBlur),t.addEventListener("keydown",e._handlers.onKeyDown)}}},r);function r(t,e){var i=this;this._list=e,this._config=e.config,this._item=t,this._list.events.on(o.ListEvents.focusChange,function(t,e){i._mode&&e!==i._item.id&&i.endEdit()}),this._initHandlers()}e.InputEditor=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,l=i(0),c=i(21),i=i(75),o=(a=i.List,o(u,a),u.prototype.destructor=function(){a.prototype.destructor.call(this),this.scrollView=null},u.prototype.scrollTo=function(t){var e,i=this.getRootView();i&&i.node&&i.node.el&&void 0!==t&&(e=null!==(i=this.scrollView)&&void 0!==i&&i.config.enable?null===(e=this.getRootNode())||void 0===e?void 0:e.querySelector(".scroll-view"):this.getRootNode(),this._scrollTo(t,e))},u.prototype._renderList=function(){var i=this,t=this._getRange(),e=this.data.getRawData(t[0],t[1]).map(function(t,e){return i._renderItem(t,e)});this.config.virtual&&(e=s([l.el(".div",{style:{height:t[2]+"px"}})],e,[l.el(".div",{style:{height:t[3]+"px"}})]));var n=this.scrollView&&this.scrollView.config.enable,t=(this.config.css||"")+(this.config.multiselection&&this.selection.getItem()?" dhx_no-select--pointer":"")+(n?" dhx_list--scroll-view":"");return l.el("ul.dhx_widget.dhx_list",r(r({style:{"max-height":this.config.height,position:"relative"},class:t,"data-dhx-widget-id":this._uid},this._handlers),this._getListAriaAttrs(this.config,this.data.getLength())),n?[].concat(this.scrollView.render(e)):e)},u);function u(t,e){var i=a.call(this,t,e)||this;return i.scrollView=new c.ScrollView(function(){return i.getRootView()}),i.paint(),i}e.ProList=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(o.prototype.startNewListen=function(t){this._isActive=!0,this._sequence="",this._currentAction=t},o.prototype.endListen=function(){this._currentAction=null,this.reset(),this._isActive=!1},o.prototype.reset=function(){this._sequence=""},o.prototype._change=function(){this._currentAction(this._sequence),this._addClearTimeout()},o.prototype._addClearTimeout=function(){var t=this;this._clearTimeout&&clearTimeout(this._clearTimeout),this._clearTimeout=setTimeout(function(){t.reset(),t._clearTimeout=null},2e3)},o);function o(){var e=this;this._sequence="",document.addEventListener("keydown",function(t){e._isActive&&("Backspace"===(t=t.key)&&0<e._sequence.length&&(e._sequence=e._sequence.slice(0,e._sequence.length-1),e._change()),t.length<2&&(e._sequence+=t,e._change()))})}e.KeyListener=n},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(74),a=i(35),l=i(11),c=i(77),o=(r=s.Combobox,o(u,r),u.prototype._createLayout=function(){var t=this.list=new a.ProList(null,{$template:s.$template,template:this.config.template,htmlEnable:this.config.htmlEnable,virtual:this.config.virtual,keyNavigation:!0,multiselection:this.config.multiselection,itemHeight:this.config.itemHeight,height:this.config.listHeight,data:this.data}),e=this._layout=new l.ProLayout(this.popup.getContainer(),{css:"dhx_combobox-options dhx_combobox__options",rows:[{id:"select-unselect-all",hidden:!this.config.multiselection||!this.config.selectAllButton},{id:"list",height:"content"},{id:"not-found",hidden:!0}],on:{click:{".dhx_combobox__action-select-all":this._handlers.selectAll,".dhx_combobox-options__action-create-option":this._handlers.addOption}}});e.getCell("list").attach(t),this.config.multiselection&&this.config.selectAllButton&&e.getCell("select-unselect-all").attach(c.selectAllView)},u);function u(t,e){return r.call(this,t,e)||this}e.ProCombobox=o},function(t,e,i){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),s=i(9),o=i(1),a=i(18),i=(l.prototype.endEdit=function(t){var e;t||(e=this._editor.value),this._config.events.fire(s.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(this._editor.removeEventListener("blur",this._handlers.onBlur),this._editor.removeEventListener("change",this._handlers.onChange),this._editor.removeEventListener("input",this._handlers.onInput),"string"!==this._cell.col.type&&o.isNumeric(e)&&(e=parseFloat(e)),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.events.fire(s.GridEvents.afterEditEnd,[e,this._cell.row,this._cell.col])):this._editor.focus()},l.prototype.toHTML=function(){var t=this._cell.row[this._cell.col.id];this._editor&&(t=this._editor.value);var e=void 0!==(this._config.$editable.editor=this)._cell.row.height||this._cell.col.htmlEnable?"dhx_cell-editor dhx_cell-editor__textarea_constant-height":"dhx_cell-editor dhx_cell-editor__textarea";return n.el("textarea",{_hooks:{didInsert:this._handlers.didInsert},_ref:"textarea",_key:"cell_editor","data-dhx-id":"cell_editor",value:t,class:e,style:{width:this._width}})},l.prototype._initHandlers=function(){var o=this;this._handlers={onBlur:function(){o.endEdit()},onChange:function(){o.endEdit()},onInput:function(t){if(void 0===o._cell.row.height&&!o._cell.col.htmlEnable){var e=o._getCurrentHeight(o._editor.value,{width:o._cell.col.$width-2,maxHeight:o._config.rowHeight});o._cell.row[o._cell.col.id]=o._editor.value;var i=a.getCalculatedRowHeight(a.getMaxRowHeight(o._cell.row,o._config.columns)),n=a.getCalculatedRowHeight(a.getMaxRowHeight(((n={})[o._cell.col.id]=o._cell.row[o._cell.col.id],n),o._config.columns));if(o._minHeight=i===n?o._config.rowHeight:i,e>=o._minHeight&&e!==o._prevHeight){if(!o._config.events.fire(s.GridEvents.beforeRowResize,[o._cell.row,t,e]))return;o._config.events.fire(s.GridEvents.afterRowResize,[o._cell.row,t,e])}o._prevHeight=e}},didInsert:function(t){o._editor=t.el,o._editor.focus(),o._editor.setSelectionRange(0,o._editor.value.length),o._editor.addEventListener("change",o._handlers.onChange),o._editor.addEventListener("blur",o._handlers.onBlur),o._editor.addEventListener("input",o._handlers.onInput)}}},l.prototype._getCurrentHeight=function(t,e){e=r({width:100,maxHeight:40,lineHeight:20},e);var i=document.createElement("textarea");i.className="dhx_cell-editor dhx_cell-editor__textarea",i.value=t,i.style.width=e.width+"px",i.style.lineHeight=e.lineHeight+"px",i.style.maxHeight=e.maxHeight+"px",i.style.boxSizing="border-box",document.body.appendChild(i);var n=this._getElementHeight(i),o=i.value.split("\n").length,t=Math.round(n/e.lineHeight),n=n<e.maxHeight?e.maxHeight:n;return document.body.removeChild(i),1===o&&o===t?e.maxHeight:n},l.prototype._getElementHeight=function(t){return t.scrollHeight},l);function l(t,e,i){this._config=i,this._cell={row:t,col:e},this._width=this._cell.col.$width;e=0;this._config.firstColId===this._cell.col.id&&this._cell.row.hasOwnProperty("$level")&&(e=a.getTreeCellWidthOffset(this._cell.row)),this._width-=e-4,this._initHandlers()}e.TextAreaEditor=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=i(0),l=i(18),a=i(1),s=i(155),o=i(156),c=i(157);function n(t,n,e,i){if(t&&n&&e){var o=t.id,t=i?i(o,n.data):n.data.reduce(function(t,e){return void 0===e[o]||""===e[o]||isNaN(e[o])||t.push(parseFloat(e[o])),t},[]),i=t;return"tree"===n.type&&(i=n.data.reduce(function(t,e){var i;return 0===e.$level&&(void 0===e[o]||""===e[o]||isNaN(e[o])?(i=0,n.datacollection.eachChild(e.id,function(t){n.datacollection.haveItems(t.id)||(i+=parseFloat(t[o]))}),t.push(i)):t.push(parseFloat(e[o])||0)),t},[])),e(t,i)}}e.getContent=function(){var i=this;return{inputFilter:{element:{},toHtml:function(t,e){var i=this,n=a.uid(),o=t.id.toString(),n=new c.InputFilter(t,e,n,this.value[o]);return n.events.on("change",function(t){i.value[o]=t}),(this.element[o]=n).getFilter()},match:function(t){var e=t.val,i=t.match,n=t.col;if(!a.isDefined(e))return!1;t=[];t.push(l.toFormat(e,n.type,n.format)),n.format&&0<(r=n.format.lastIndexOf("#"))&&t.push(l.toFormat(e,n.type,n.format.slice(r)));for(var o="",r=0;r<i.length;r++){var s=i.charCodeAt(r);o+=32<s&&s<48||63===s||90<s&&s<95||124===s?"\\"+i[r]:i[r]}return t.some(function(t){return new RegExp(""+o,"i").test(t)})},value:{}},selectFilter:{element:{},toHtml:function(t,e){var i=this,n=t.id.toString(),t=new o.SelectFilter(t,e,t.$uniqueData,this.value[n]);return t.events.on("change",function(t){i.value[n]=t}),(this.element[n]=t).getFilter()},match:function(t){var e=t.val,i=t.match,t=t.col,t=l.toFormat(e,t.type,t.format);return!i||(t||"boolean"==typeof t)&&t.toString()==i},value:{}},comboFilter:{element:{},toHtml:function(t,e){var i,n=this,o=t.id.toString();return!this.element[o]&&e.events?(i=t.header.filter(function(t){return void 0!==t.filterConfig})[0],(i=new s.ComboFilter(t,e,t.$uniqueData,this.value[o],i)).events.on("change",function(t){n.value[o]=t}),this.element[o]=i):i=this.element[t.id]||new s.ComboFilter(t),r.inject(i.getFilter().getRootView())},match:function(t){var e=t.val,i=t.match,n=void 0===i?"":i,i=t.multi,o=void 0!==i&&i,t=t.col,r=l.toFormat(e,t.type,t.format);if(Array.isArray(n)){for(var s=void 0,a=0;a<n.length;a++)if("break"===function(e){if(s=o&&"string"==typeof r?r.split(", ").some(function(t){return t===n[e]}):n[e]===r)return"break"}(a))break;return!n||!n.length||s}return void 0===n||r===n},destroy:function(){if(i.content&&i.content.comboFilter.element){var t,e=i.content.comboFilter.element;for(t in e)e[t].destructor(),delete e[t]}},value:{}},sum:{calculate:function(t,e){return e.reduce(function(t,e){return t+(parseFloat(e)||0)},0)},toHtml:function(t,e){e=n(t,e,this.calculate);return t.format||"percent"===t.type?l.toFormat(e,t.type,t.format):e?e.toFixed(3):null}},avg:{calculate:function(t,e){return t.length?e.reduce(function(t,e){return t+e},0)/t.length:null},toHtml:function(t,e){e=n(t,e,this.calculate);return t.format||"percent"===t.type?l.toFormat(e,t.type,t.format):e?e.toFixed(3):null}},min:{calculate:function(t){return t.length?Math.min.apply(Math,t):null},toHtml:function(t,e){e=n(t,e,this.calculate);return t.format||"percent"===t.type?l.toFormat(e,t.type,t.format):e?e.toFixed(3):null}},max:{calculate:function(t){return t.length?Math.max.apply(Math,t):null},toHtml:function(t,e){e=n(t,e,this.calculate);return t.format||"percent"===t.type?l.toFormat(e,t.type,t.format):e?e.toFixed(3):null}},count:{calculate:function(t,e){return e.length},validate:function(i,t){return t.reduce(function(t,e){return void 0!==e[i]&&""!==e[i]&&(isNaN(e)?t.push(1):t.push(e)),t},[])},toHtml:function(t,e){return n(t,e,this.calculate,this.validate)}}}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(34),r=i(2),o=i(8),s=i(1),a=i(9),i=(l.prototype.initFilter=function(){this._filter=new n.Combobox(null,Object.assign({},this.filterConfig)),this.data&&this._filter.data&&this._setData()},l.prototype.initHandlers=function(){var t,i=this,n=this.column.id.toString();this.config.events.on(o.DataEvents.load,function(){i._setData()}),this._filter.events.on("change",function(t){var e;t&&(Array.isArray(t)?t.find(function(t){return i._filter.data.getItem(t)}):i._filter.data.getItem(t))&&(e=i._filter.config.multiselection?i._filter.list.selection.getItem().map(function(t){if(t&&i._filter.data.getItem(t.id))return t.value}):i._filter.list.selection.getItem().value),i.value=e,null!==(e=i.config.events)&&void 0!==e&&e.fire(a.GridEvents.filterChange,[i.value,n,"comboFilter",i._silentMode]),i._silentMode&&void 0===i.value&&(i._silentMode=!1)}),this.config.events.on(a.GridEvents.filterChange,function(t){i.events.fire(a.HeaderFilterEvent.change,[t])}),this._filter.popup.events.on("afterHide",function(){i.filterConfig.multiselection||i._filter.list.selection.getItem()||i.clear()}),this._filter.popup.events.on("afterShow",function(){!i.filterConfig.multiselection&&(""===i.value||i.filterConfig.readonly&&void 0!==i.value)&&i.clear()}),null!==(t=this.config.events)&&void 0!==t&&t.on(a.GridEvents.scroll,function(){var t;i._isFocused&&null!==(t=i._filter.getRootView().refs)&&void 0!==t&&t.input&&i._filter.focus()}),null!==(t=this.config.events)&&void 0!==t&&t.on(a.GridEvents.headerCellMouseDown,function(t){t.id!==i.column.id&&i.blur()}),null!==(t=this.config.events)&&void 0!==t&&t.on(a.GridEvents.cellMouseDown,function(){return i.blur()}),this.config.events.on(o.DataEvents.change,function(t,e){i.column.hidden||"add"!==e&&"update"!==e&&"remove"!==e||("add"!==e&&i._checkValue(),i._setData(!0))}),this.config.events.on(o.DataEvents.removeAll,function(){i.clear(!0),i._setData()}),this.config.events.on(a.GridEvents.afterRowShow,function(){i._setData(!0)}),this.config.events.on(a.GridEvents.afterRowHide,function(){i.column.hidden||(i._checkValue(),i._setData(!0))}),this.config.events.on(o.DataEvents.filter,function(t){i.column.hidden||(!t||o.isOnlyPermanentFilters(t)?i.clear(!0):i._checkValue(),i.filterConfig.multiselection&&i._filter.popup.isVisible()||i._setData(!0))}),this.config.events.on(a.GridEvents.afterColumnShow,function(){i.filterConfig.multiselection||(i._checkValue(),i._setData())}),this.config.events.on(a.GridEvents.afterColumnHide,function(){i.filterConfig.multiselection||i._setData()})},l.prototype.getFilter=function(){return this._filter},l.prototype.setValue=function(e,t){var i,n=this;!this.filterConfig.multiselection&&Array.isArray(e)||(s.isDefined(e)?(null!=e&&e.length||""===e)&&(i=this.filterConfig.multiselection&&Array.isArray(e)?e.map(function(e){var t;return null===(t=n._filter.data.find(function(t){return t.value===e}))||void 0===t?void 0:t.id}):null===(i=this._filter.data.find(function(t){return t.value===e}))||void 0===i?void 0:i.id,this._filter.setValue(i,t)):(t&&(this._silentMode=!0),this._filter.clear(),this.filterConfig.multiselection||void 0===this.value||(this.value=void 0,null!==(t=this.config.events)&&void 0!==t&&t.fire(a.GridEvents.filterChange,[this.value,this.column.id,"comboFilter"]))))},l.prototype.clear=function(t){void 0!==this.value&&this.setValue(null,t)},l.prototype.focus=function(){var t;this._isFocused=!0,null!==(t=this._filter.getRootView().refs)&&void 0!==t&&t.input&&this._filter.focus()},l.prototype.blur=function(){var t;this._isFocused=!1,null!==(t=this._filter.getRootView().refs)&&void 0!==t&&t.input&&this._filter.blur()},l.prototype._setData=function(t){var e=this;void 0===t&&(t=!1);function i(){e._filter.data.parse(e.column.$uniqueData.map(function(t){return{value:t}}))}void 0===this.value?i():t&&this.filterConfig.multiselection&&(i(),this.setValue(this.value,!0))},l.prototype._checkValue=function(){if(void 0!==this.value)for(var i=Array.isArray(this.value)?this.value:[this.value],n=this,t=0,e=i;t<e.length;t++)if("break"===function(e){return n.column.$uniqueData.includes(e)?"continue":(1<i.length?(t=n._filter.data.find(function(t){return t.value===e}),n._filter.list.selection.remove(t.id)):n.clear(),"break");var t}(e[t]))break},l);function l(t,e,i,n,o){this.events=new r.EventSystem,this._silentMode=!1,this.column=t,this.config=e,this.data=i,this.value=n,this.filterConfig=(null==o?void 0:o.filterConfig)||{},(this.column.htmlEnable||null!==(o=this.config)&&void 0!==o&&o.htmlEnable&&!1!==this.column.htmlEnable)&&(this.filterConfig.readonly=!0,this.filterConfig.template||(this.filterConfig.template=function(t){return t.value})),this.initFilter(),this.config&&this.initHandlers()}e.ComboFilter=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(2),r=i(9),i=(s.prototype.initHandlers=function(){var n=this;this._handlers={onchange:function(t){var e,i=(null===(e=t.target)||void 0===e?void 0:e.value)||(null===(e=null===(e=t.composedPath())||void 0===e?void 0:e[0])||void 0===e?void 0:e.value)||(null===(i=t.explicitOriginalTarget)||void 0===i?void 0:i.value);n.setValue(i)},onfocus:function(){n._isFocused=!0},onblur:function(){n._isFocused=!1}}},s.prototype.initFilter=function(){var t,i=this;this._filter=n.el("label.dhx_grid-filter__label.dxi.dxi-menu-down",{_ref:this.column.id+"_filter"},[n.el("select.dxi.dxi-menu-down",{type:"text",class:"dhx_input dhx_grid-filter dhx_grid-filter--select",onchange:this._handlers.onchange,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,_key:this.column.id},[n.el("option",{value:""},""),this.data.map(function(t){return""!==(t=null!=t?t:"")&&n.el("option",{value:t,selected:i.value===t.toString()},t)})])]),null!==(t=this.config.events)&&void 0!==t&&t.on(r.GridEvents.scroll,function(){var t,e=null===(t=null===(t=null===(t=null===(t=i.config.events)||void 0===t?void 0:t.context)||void 0===t?void 0:t.getRootView())||void 0===t?void 0:t.refs[i.column.id+"_filter"])||void 0===t?void 0:t.el;i._isFocused&&e&&n.awaitRedraw().then(function(){e.focus()})}),null!==(t=this.config.events)&&void 0!==t&&t.on(r.GridEvents.headerCellMouseDown,function(t){t.id!==i.column.id&&i.blur()}),null!==(t=this.config.events)&&void 0!==t&&t.on(r.GridEvents.cellMouseDown,function(){return i.blur()})},s.prototype.getFilter=function(){return this._filter},s.prototype.setValue=function(t,e){this.value=t||"",this.events.fire(r.HeaderFilterEvent.change,[t]),null!==(t=this.config.events)&&void 0!==t&&t.fire(r.GridEvents.filterChange,[this.value,this.column.id,"selectFilter",e])},s.prototype.clear=function(t){this.setValue("",t)},s.prototype.focus=function(){this._isFocused=!0;var t=null===(t=null===(t=null===(t=null===(t=this.config.events)||void 0===t?void 0:t.context)||void 0===t?void 0:t.getRootView())||void 0===t?void 0:t.refs[this.column.id+"_filter"])||void 0===t?void 0:t.el;t&&t.focus()},s.prototype.blur=function(){this._isFocused=!1;var t=null===(t=null===(t=null===(t=null===(t=this.config.events)||void 0===t?void 0:t.context)||void 0===t?void 0:t.getRootView())||void 0===t?void 0:t.refs[this.column.id+"_filter"])||void 0===t?void 0:t.el;t&&t.blur()},s);function s(t,e,i,n){this.events=new o.EventSystem,this.column=t,this.config=e,this.data=i,this.value=n||"",this.initHandlers(),this.initFilter()}e.SelectFilter=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(2),r=i(9),i=(s.prototype.initHandlers=function(){var n=this;this._handlers={onchange:function(i){n._inputDelay&&clearTimeout(n._inputDelay),n._inputDelay=setTimeout(function(){var t,e=(null===(t=i.target)||void 0===t?void 0:t.value)||(null===(t=null===(t=i.composedPath())||void 0===t?void 0:t[0])||void 0===t?void 0:t.value)||(null===(e=i.explicitOriginalTarget)||void 0===e?void 0:e.value);n.setValue(e)},500)},onfocus:function(){n._isFocused=!0},onblur:function(){n._isFocused=!1}}},s.prototype.initFilter=function(){var t,i=this;this._filter=n.el("div.dhx_grid-filter__label.dxi.dxi-magnify",{"aria-label":"Type to search",_ref:this.column.id+"_filter"},[n.el("label",{style:{display:"none"},"aria-label":"Type to search",for:this.id},"Type to search"),n.el("input",{type:"text",class:"dhx_input dhx_grid-filter",oninput:this._handlers.onchange,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,_key:this.column.id,id:this.id,value:this.value})]),null!==(t=this.config.events)&&void 0!==t&&t.on(r.GridEvents.scroll,function(){var t,e=null===(t=null===(t=null===(t=null===(t=i.config.events)||void 0===t?void 0:t.context)||void 0===t?void 0:t.getRootView())||void 0===t?void 0:t.refs[i.column.id+"_filter"])||void 0===t?void 0:t.el;i._isFocused&&e&&n.awaitRedraw().then(function(){var t;null!==(t=e.querySelector("input"))&&void 0!==t&&t.focus()})}),null!==(t=this.config.events)&&void 0!==t&&t.on(r.GridEvents.headerCellMouseDown,function(t){t.id!==i.column.id&&i.blur()}),null!==(t=this.config.events)&&void 0!==t&&t.on(r.GridEvents.cellMouseDown,function(){return i.blur()})},s.prototype.getFilter=function(){return this._filter},s.prototype.setValue=function(t,e){this.value=t||"",this.events.fire(r.HeaderFilterEvent.change,[this.value]),null!==(t=this.config.events)&&void 0!==t&&t.fire(r.GridEvents.filterChange,[this.value,this.column.id,"inputFilter",e])},s.prototype.clear=function(t){this.setValue("",t)},s.prototype.focus=function(){var t;this._isFocused=!0;var e=null===(e=null===(e=null===(e=null===(e=this.config.events)||void 0===e?void 0:e.context)||void 0===e?void 0:e.getRootView())||void 0===e?void 0:e.refs[this.column.id+"_filter"])||void 0===e?void 0:e.el;e&&null!==(t=e.querySelector("input"))&&void 0!==t&&t.focus()},s.prototype.blur=function(){var t;this._isFocused=!1;var e=null===(e=null===(e=null===(e=null===(e=this.config.events)||void 0===e?void 0:e.context)||void 0===e?void 0:e.getRootView())||void 0===e?void 0:e.refs[this.column.id+"_filter"])||void 0===e?void 0:e.el;e&&null!==(t=e.querySelector("input"))&&void 0!==t&&t.blur()},s);function s(t,e,i,n){this.events=new o.EventSystem,this.column=t,this.config=e,this.id=i,this.value=n||"",this.initHandlers(),this.initFilter()}e.InputFilter=i},function(t,e,i){"use strict";var v=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var _=i(1),m=i(9),y=i(20);e.startResize=function(a,l,t,e){var i,c=a.config.rightSplit;t.targetTouches&&t.preventDefault();var u=(t.targetTouches?t.targetTouches[0]:t).clientX,d=a.config.columns.filter(function(t){return!t.hidden}),h=c?d.slice(-c).map(function(t){return t.id}):[],f=!(null===(i=a.scrollView)||void 0===i||!i.config.enable),p=c?y.calcScrollBarWidth(a.config,f).xState:null,g=0;function n(t){var e,i,n=_.findIndex(d,function(t){return t.id===l}),o=(t.targetTouches?t.targetTouches[0]:t).clientX,r=o-a.getRootNode().getBoundingClientRect().left,s=y.calcScrollBarWidth(a.config,f);a.config.leftSplit===n+1&&r>=a.config.$width-s.y-2||c&&h.includes(l)&&s.xState!==p||(g=g||d[n].$width,e=d[n].minWidth||40,r=d[n].maxWidth,s=o-u,o=v(d),s=g+(p&&h.includes(l)?-s:s),r&&r<=s||s<=e?(s<=e&&(i=e),r<=s&&(i=r)):i=s,o[n].$width=i,o[n].$fixed=!0,a.events.fire(m.GridEvents.resize,[d[n],t]),a.paint())}a.config.$resizing=l;var o=function(){t.targetTouches?(document.removeEventListener("touchmove",n),document.removeEventListener("touchend",o)):(document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",o)),e()};t.targetTouches?(document.addEventListener("touchmove",n),document.addEventListener("touchend",o)):(document.addEventListener("mousemove",n),document.addEventListener("mouseup",o)),a.paint()}},function(t,e,i){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(9),u=i(3),a=i(15),l=i(1);function c(t,e,i,n,o,r,s){var a,l,c;void 0===o&&(o=!1),void 0===r&&(r=!1),void 0===s&&(s=!1),e.config.$editable||!e.config.selection||u.locateNodeByClassName(t,"dhx_grid-header-cell")||(t&&t.preventDefault(),a=e.selection.getCell(),t=e.config.columns.filter(function(t){return!t.hidden}),a&&("vertical"===i?o?(l=1===n?e.data.getItem(e.data.getId(e.data.getLength()-1)):e.data.getItem(e.data.getId(0)),e.selection.setCell(l.id,a.column.id,r,s),e.scrollTo(l.id.toString(),a.column.id.toString())):0<=(c=e.data.getIndex(a.row.id.toString()))+n&&c+n<e.data.getLength()&&(l=e.data.getItem(e.data.getId(c+n)),e.selection.setCell(l.id,a.column.id,r,s),e.scrollTo(l.id.toString(),a.column.id.toString())):o?(l=1===n?t[t.length-1]:t[0],e.selection.setCell(a.row.id,l.id,r,s),e.scrollTo(a.row.id.toString(),l.id.toString())):0<=(c=t.indexOf(a.column))+n&&c+n<t.length&&(e.selection.setCell(a.row.id,t[c+n].id,r,s),e.scrollTo(a.row.id.toString(),t[c+n].id.toString()))))}function d(t,e){var i=t.selection.getCell(),n=i&&t.getSpan(i.row.id,i.column.id);if(n){if("up"===e||"down"===e){var o=l.findIndex(t.config.data,function(t){return t.id===n.row}),r=l.findIndex(t.config.data,function(t){return t.id===i.row.id});return"up"===e?o-r-1:o+(n.rowspan||1)-r}t=t.config.columns.filter(function(t){return!t.hidden}),o=l.findIndex(t,function(t){return t.id===n.column}),r=l.findIndex(t,function(t){return t.id===i.column.id});return"left"===e?o-r-1:o+(n.colspan||1)-r}return"down"===e||"right"===e?1:-1}e.selectionMove=c,e.getKeysHandlers=function(o){var t,n="cell"===o.config.selection||"complex"===o.config.selection||!0===o.config.selection,e={};if(o.getRootView()){var i=null===(t=null===(t=null===(t=o.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.grid_body)||void 0===t?void 0:t.el;if(!i)return;e={pageUp:function(t){t.preventDefault(),i.scrollTop-=i.clientHeight},pageDown:function(t){t.preventDefault(),i.scrollTop+=i.clientHeight},home:function(t){t.preventDefault(),i.scrollTop=0},end:function(t){t.preventDefault(),i.scrollTop+=i.scrollHeight}}}return r({enter:function(t){var e,i=u.locateNodeByClassName(t,"dhx_grid-header-cell");i&&(e=i.getAttribute("data-dhx-id"),i=t.target.getAttribute("dhx_resized"),!e||(t=o.getColumn(e))&&a.isSortable(o.config,t)&&!i&&o.events.fire(s.GridEvents.afterSort,[e])),n?(e=o.selection.getCell())&&(!1!==e.column.editable&&o.config.editable||e.column.editable)&&(o.config.$editable?o.editEnd():"boolean"===e.column.type?o.events.fire(s.GridEvents.beforeEditStart,[e.row,e.column,"checkbox"])&&(o.events.fire(s.GridEvents.afterEditStart,[e.row,e.column,"checkbox"]),o.events.fire(s.GridEvents.beforeEditEnd,[!e.row[e.column.id],e.row,e.column])&&o.events.fire(s.GridEvents.afterEditEnd,[!e.row[e.column.id],e.row,e.column])):o.editCell(e.row.id,e.column.id,e.column.editorType)):o.config.$editable&&o.editEnd()},space:function(t){var e,i=o.selection.getCell();n&&(null!==(e=null==i?void 0:i.column.editable)&&void 0!==e?e:o.config.editable)&&!o.config.$editable&&i&&"boolean"===i.column.type&&(t.preventDefault(),o.events.fire(s.GridEvents.beforeEditStart,[i.row,i.column,"checkbox"])&&(o.events.fire(s.GridEvents.afterEditStart,[i.row,i.column,"checkbox"]),o.events.fire(s.GridEvents.beforeEditEnd,[!i.row[i.column.id],i.row,i.column])&&o.events.fire(s.GridEvents.afterEditEnd,[!i.row[i.column.id],i.row,i.column])))},escape:function(){o.config.$editable&&o.editEnd(!0)},tab:function(t){var e,i,n;o.config.selection&&!u.locateNodeByClassName(t,"dhx_grid-header-cell")&&(o.config.$editable&&o.editEnd(),n=o.selection.getCell(),e=o.config.columns.filter(function(t){return!t.hidden}),n&&(0<=(i=e.indexOf(n.column)+1)&&i<e.length?(t&&t.preventDefault(),o.selection.setCell(n.row.id,e[i].id),o.scrollTo(n.row.id.toString(),e[i].id.toString())):0<=i&&((n=o.data.getIndex(n.row.id.toString())+1)<o.data.getLength()&&(t&&t.preventDefault(),o.selection.setCell(o.data.getId(n),e[0].id),o.scrollTo(o.data.getId(n).toString(),e[0].id.toString())))))},"shift+tab":function(t){var e,i,n;o.config.selection&&!u.locateNodeByClassName(t,"dhx_grid-header-cell")&&(o.config.$editable&&o.editEnd(),n=o.selection.getCell(),e=o.config.columns.filter(function(t){return!t.hidden}),n&&(0<=(i=e.indexOf(n.column)-1)&&i<e.length?(t&&t.preventDefault(),o.selection.setCell(n.row.id,e[i].id),o.scrollTo(n.row.id.toString(),e[i].id.toString())):i<o.data.getLength()&&(0<=(n=o.data.getIndex(n.row.id.toString())-1)&&(t&&t.preventDefault(),o.selection.setCell(o.data.getId(n),e[e.length-1].id),o.scrollTo(o.data.getId(n).toString(),e[e.length-1].id.toString())))))},arrowUp:function(t){c(t,o,"vertical",d(o,"up"))},"ctrl+arrowUp":function(t){c(t,o,"vertical",-1,!0)},"shift+arrowUp":function(t){o.config.multiselection&&c(t,o,"vertical",-1,!1,!1,!0)},"ctrl+shift+arrowUp":function(t){o.config.multiselection&&c(t,o,"vertical",-1,!0,!1,!0)},arrowDown:function(t){c(t,o,"vertical",d(o,"down"))},"ctrl+arrowDown":function(t){c(t,o,"vertical",1,!0)},"shift+arrowDown":function(t){o.config.multiselection&&c(t,o,"vertical",1,!1,!1,!0)},"ctrl+shift+arrowDown":function(t){o.config.multiselection&&c(t,o,"vertical",1,!0,!1,!0)},arrowRight:function(t){c(t,o,"horizontal",d(o,"right"))},"ctrl+arrowRight":function(t){c(t,o,"horizontal",1,!0)},"shift+arrowRight":function(t){o.config.multiselection&&c(t,o,"horizontal",1,!1,!1,!0)},"ctrl+shift+arrowRight":function(t){o.config.multiselection&&c(t,o,"horizontal",1,!0,!1,!0)},arrowLeft:function(t){c(t,o,"horizontal",d(o,"left"))},"ctrl+arrowLeft":function(t){c(t,o,"horizontal",-1,!0)},"shift+arrowLeft":function(t){o.config.multiselection&&c(t,o,"horizontal",-1,!1,!1,!0)},"ctrl+shift+arrowLeft":function(t){o.config.multiselection&&c(t,o,"horizontal",-1,!0,!1,!0)}},e)}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,l=i(65),c=i(9),f=i(8),u=i(3),d=i(18),p=i(20),h=i(0),g=i(21),o=(a=l.Grid,o(v,a),v.prototype._createView=function(){var i=this;return h.create({render:function(t,e){return i._destructed?h.el("div"):p.proRender(t,e,i._htmlEvents,i.selection,i._uid)},hooks:this._initHooks()},this)},v.prototype._setEventHandlers=function(){var r=this;a.prototype._setEventHandlers.call(this),this.events.on(c.GridEvents.headerCellMouseDown,function(t,e){var i=u.locateNodeByClassName(e,"dhx_header-row"),i=i&&i.getAttribute("aria-rowindex");null!==(i=t.header[Number(i)-1])&&void 0!==i&&i.content||(e.targetTouches?r._touch.timer=setTimeout(function(){r._dragStartColumn(e,t)},r._touch.duration):r._dragStartColumn(e,t))}),this._events.on(c.GridSystemEvents.headerCellTouchMove,function(t,e){r._touch.start&&e.preventDefault(),r._clearTouchTimer()}),this._events.on(c.GridSystemEvents.headerCellTouchEnd,function(){r._touch.start=!1,r._clearTouchTimer()}),this.events.on(c.GridEvents.resize,function(){r._parseColumns(),r._setUniqueData(!0)}),this.events.on(c.GridEvents.afterResizeEnd,function(){r.config.autoHeight&&(r.config.data=r.data.map(function(t){var e=d.getMaxRowHeight(t,r.config.columns);return t.$height=d.getCalculatedRowHeight(e,{rowHeight:r.config.rowHeight,padding:8}),t}))}),this.events.on(c.GridEvents.afterRowResize,function(t,e,i){var n=r.data.getItem(t.id),o=n.id,t=n.height,n=n.$height;t&&t!==n&&r.data.update(o,{height:i}),r.data.update(o,{$height:i},!0),r.config.data=r.data.map(function(t){return t}),r.paint()}),this.events.on(c.GridEvents.scroll,function(){r._lazyLoad()}),this.events.on(f.DataEvents.dataRequest,function(t,e){var i=r.data.dataProxy;i&&i.config&&r._prepareDataFromTo(r.data,t,e)})},v.prototype._prepareData=function(t){var e,i=this;return this._adjustColumns(),(Array.isArray(t)||f.isTreeCollection(t)?t:0!==(e=t.getInitialData()||[]).length?e:t.getRawData(0,t.getLength())).map(function(t){var e;return i.config.autoHeight&&void 0===t.height?(e=d.getMaxRowHeight(t,i.config.columns),t.$height=d.getCalculatedRowHeight(e,{rowHeight:i.config.rowHeight,padding:8})||i.config.rowHeight):t.$height=t.height||i.config.rowHeight,t})},v.prototype._prepareDataFromTo=function(t,e,i){var n=this;return t.mapRange(e,i,function(t){var e=d.getMaxRowHeight(t,n.config.columns);return t.$height=d.getCalculatedRowHeight(e,{rowHeight:n.config.rowHeight,padding:8})||n.config.rowHeight,t})},v.prototype._dragStart=function(t){if(this.config.dragMode&&("row"===this.config.dragItem||"both"===this.config.dragItem)&&!this.config.$editable){var e=this.getColumn(t.target.getAttribute("data-dhx-col-id"));if(!1!==(null==e?void 0:e.draggable)){e=u.locateNode(t,"data-dhx-id"),e=e&&e.getAttribute("data-dhx-id");t.targetTouches&&(this._touch.start=!0);var i=[e];if(this.config.multiselection&&1<(i=s(i,this.selection.getCells().map(function(t){return t.row.id}))).length){for(var n=this.data.getInitialData(),o={},r=0;r<i.length;r++)!function(t){var e=i[t],t=null==n?void 0:n.findIndex(function(t){return t.id==e});o[t]=e}(r);i=s(Object.values(o))}return f.dragManager.onMouseDown(t,i,[this._getRowGhost(i)])}}},v.prototype._lazyLoad=function(){var i=this,t=this.data.dataProxy;if(t&&t.config){var e=this.data.getRawData(0,-1,null,2);if(e.length){var n,o=p.getRenderConfig(this,e,{width:this.config.$width,height:this.config.$height}),r=t.config.limit,s=r,a=o.currentRows,l=a[0],c=a[a.length-1],u=this.data.getIndex(c.id),e=function(t){for(var e=1;e<a.length;e++)if("firstFilledRow"===t&&!a[e].$empty&&a[e-1].$empty||"firstEmptyRow"===t&&a[e].$empty&&!a[e-1].$empty)return i.data.getIndex(a[e].id)};if(l.$empty)if(c.$empty)n=this.data.getIndex(l.id);else{var d=e("firstFilledRow"),o=d-s;o<0&&(o=0);for(var h=o;h<d;h++)if(this.data.getItem(this.data.getId(h)).$empty){s=d-(n=h);break}}else c.$empty?n=e("firstEmptyRow"):(n=null!==(c=e("firstEmptyRow"))&&void 0!==c?c:this.data.getIndex(l.id),s=(null!==(e=e("firstFilledRow"))&&void 0!==e?e:u)-n);!this.data.isDataLoaded(n,u)&&this.data.events.fire(f.DataEvents.beforeLazyLoad,[])&&(t.updateUrl(null,{from:n,limit:s}),t.config.limit=r,this.data.load(t).then(function(){i.config.autoHeight&&i._prepareDataFromTo(i.data,n,u)}))}}},v.prototype._getColumnGhost=function(t){var e=this._container||u.toNode(this._uid),i=e.querySelector(".dhx_header-row"),n=i.querySelector('.dhx_grid-header-cell[data-dhx-id="'+t.id+'"]'),n=Array.from(i.childNodes).indexOf(n)+1,t=e.querySelectorAll('.dhx_grid-header-cell[data-dhx-id="'+t.id+'"]:not(.dhx_span-cell)'),n=e.querySelectorAll(".dhx_grid_data .dhx_grid-cell:nth-child("+n+")"),o=document.createElement("div");return t.forEach(function(t){return o.appendChild(t.cloneNode(!0))}),n.forEach(function(t){return o.appendChild(t.cloneNode(!0))}),o},v.prototype._dragStartColumn=function(t,e){function i(t){return t.classList.contains("dhx_grid-custom-content-cell")}var n=t.target;i(n.parentElement)||i(n.parentElement.parentElement)||!(e.draggable||"column"===this.config.dragItem&&!1!==e.draggable||"both"===this.config.dragItem&&!1!==e.draggable)||u.locateNodeByClassName(t,"dhx_resizer_grip_wrap")||(t.targetTouches&&(this._touch.start=!0),f.dragManager.onMouseDown(t,[e.id],[this._getColumnGhost(e)]))},v);function v(t,e){var i=a.call(this,t,r({autoHeight:!1},e))||this;return i.scrollView=new g.ScrollView(function(){return i.getRootView()},{scrollHandler:function(t){return i.events.fire(c.GridEvents.scroll,[{y:t.target.scrollTop,x:t.target.scrollLeft}])}}),i}e.ProGrid=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(o.prototype.setItem=function(t,e){this._store[t]=e},o.prototype.getItem=function(t){return this._store[t]||null},o);function o(){this._store={}}var r=window.dhxHelpers=window.dhxHelpers||{};r.collectionStore=r.collectionStore||new n,e.collectionStore=r.collectionStore},function(t,l,c){"use strict";(function(t){var n,e=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(l,"__esModule",{value:!0});var o,i=c(26),r=c(1),s=c(41),e=(o=i.DataProxy,e(a,o),a.prototype.load=function(){var i=this;return new t(function(t,e){i._timeout?(clearTimeout(i._timeout),i._timeout=setTimeout(function(){s.ajax.get(i.url,{responseType:"text"}).then(t).catch(e),i._cooling=!0},i.config.delay),i._cooling&&(t(null),i._cooling=!1)):(s.ajax.get(i.url,{responseType:"text"}).then(t).catch(e),i._cooling=!0,i._timeout=setTimeout(function(){}))})},a);function a(t,e){var i=o.call(this,t)||this;return i.config=r.extend({from:0,limit:50,delay:50,prepare:0},e),i.updateUrl(t,{from:i.config.from,limit:i.config.limit}),i}l.LazyDataProxy=e}).call(this,c(17))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),n=i(28),r=i(23),s=i(1),i=(a.prototype.getId=function(){return this._selected},a.prototype.getItem=function(){return s.isId(this._selected)?this._data.getItem(this._selected):null},a.prototype.remove=function(t){return t=null!=t?t:this._selected,!s.isDefined(t)||!!this.events.fire(n.SelectionEvents.beforeUnSelect,[t])&&(this._data.update(t,{$selected:!1},!0),this._selected=null,this.events.fire(n.SelectionEvents.afterUnSelect,[t]),!0)},a.prototype.add=function(t){this._selected!==t&&!this.config.disabled&&this._data.exists(t)&&(this.remove(),this._addSingle(t))},a.prototype.enable=function(){this.config.disabled=!1},a.prototype.disable=function(){this.remove(),this.config.disabled=!0},a.prototype._addSingle=function(t){this.events.fire(n.SelectionEvents.beforeSelect,[t])&&(this._selected=t,this._data.update(t,{$selected:!0},!0),this.events.fire(n.SelectionEvents.afterSelect,[t]))},a);function a(t,e,i){var n=this;this.events=i||new o.EventSystem(this),this._data=e,this.config=t,this._data.events.on(r.DataEvents.removeAll,function(){n._selected=null}),this._data.events.on(r.DataEvents.change,function(){var t;!s.isId(n._selected)||(t=n._data.getNearId(n._selected))!==n._selected&&(n._selected=null,t&&n.add(t))})}e.Selection=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,l=i(1),c=i(0),u=i(2),d=i(3),h=i(21),f=i(5),p=i(8),g=i(11),v=i(10),_=i(37),m=i(22),y=i(51),b=i(36),w=i(60),x=i(178),E=i(179),C=i(180),S=i(181),o=(a=f.View,o(k,a),k.prototype.destructor=function(){this.toolbar.destructor(),this._readStack.stop(),this.uploader.unlinkDropArea(),this.uploader.abort()},k.prototype.getRootView=function(){return this._layout.getRootView()},k.prototype._initUI=function(t){var e=this,i=this.config.toolbar?x.layoutConfig:x.layoutConfigWithoutTopbar;i.on=this._getDragEvents();t=this._layout=new g.Layout(t,i),i=this.toolbar=new _.Toolbar(null,{css:"vault-toolbar"});this.toolbar.data.parse([{id:"add",tooltip:y.default.add,type:"button",icon:"dxi-plus"},{id:"upload",tooltip:y.default.upload,type:"button",icon:"dxi icon-upload"},{id:"spacer",type:"spacer"},{id:"remove-all",tooltip:y.default.clearAll,type:"button",icon:"dxi-delete-forever"}]),this._hideUploadAndDeleteButtons(),this._vaultView=f.toViewLike(c.create({render:function(){return e._draw()}})),this.config.toolbar&&t.getCell("topbar").attach(i),t.getCell("vault").attach(this._vaultView)},k.prototype._initHandlers=function(){var i=this;this._handlers={onclick:{".action-add":function(){return i.uploader.selectFile()},".action-remove-file":function(t){var e=d.locate(t);e&&(i.data.update(e,{$toRemove:!0}),setTimeout(function(){i.data.update(e,{$toRemove:!1},!0),i.data.remove(e)},200))}},onmouseover:{".action-download":function(t){v.tooltip(y.default.download,{node:t.target,position:v.Position.bottom})},".action-remove-file":function(t){v.tooltip(y.default.clear,{node:t.target,position:v.Position.bottom})},".title-content, .dhx-file-name":function(t){var e=d.locate(t),e=i.data.getItem(e);v.tooltip(e.name,{node:t.target,position:v.Position.bottom,css:"tooltip-light"})}}}},k.prototype._getDragEvents=function(){var o=this,r={left:null,top:null,width:null,height:null};return{dragleave:function(t){o._canDrop&&(t.pageX>r.left+r.width-1||t.pageX<r.left||t.pageY>r.top+r.height-1||t.pageY<r.top)&&(o._canDrop=!1,o.config.toolbar&&o._layout.getCell("topbar").show(),o._layout.config.css="vault-layout",o._layout.paint())},dragenter:function(t){if(t.preventDefault(),!o.uploader.isActive&&!o._canDrop){for(var e=0,i=t.dataTransfer.types;e<i.length;e++){var n=i[e];if("Files"!==n&&"application/x-moz-file"!==n)return void(o._canDrop=!1)}o._canDrop=!0;t=o.getRootView().node.el.getBoundingClientRect();r.left=t.left+window.pageXOffset,r.top=t.top+window.pageYOffset,r.width=t.width,r.height=t.height,o._canDrop=!0,o.config.toolbar&&o._layout.getCell("topbar").hide(),o._layout.config.css="vault-layout dhx-dragin",o._layout.paint()}},dragover:function(t){t.preventDefault()},drop:function(t){t.preventDefault(),o._canDrop&&(t=t.dataTransfer,o.uploader.parseFiles(t),o._canDrop=!1,o.config.toolbar&&o._layout.getCell("topbar").show(),o._layout.config.css="vault-layout",o._layout.paint())}}},k.prototype._hideUploadAndDeleteButtons=function(){this.toolbar.hide(["upload","remove-all"])},k.prototype._showUploadAndDeleteButtons=function(){this.uploader.config.autosend?this.toolbar.show("remove-all"):this.toolbar.show(["upload","remove-all"])},k.prototype._initEvents=function(){var e=this;this.data.events.on(p.DataEvents.change,function(){e.data.getLength()?e._showUploadAndDeleteButtons():e._hideUploadAndDeleteButtons(),e._vaultView.paint()}),this.events.on(b.UploaderEvents.uploadBegin,function(){e.config.toolbar&&e._layout.getCell("topbar").attach(e._progressBar)}),this.events.on(b.UploaderEvents.uploadComplete,function(){e.config.mode===b.VaultMode.grid&&e.uploader.config.autosend&&e._readStack.read(),e.config.toolbar&&e._layout.getCell("topbar").attach(e.toolbar)}),this.toolbar.events.on(m.NavigationBarEvents.click,function(t){switch(t){case"add":e.uploader.selectFile();break;case"remove-all":e.data.removeAll();break;case"upload":e.uploader.send()}}),this.events.on(b.ProgressBarEvents.cancel,function(){e.uploader.abort(),e._vaultView.paint()})},k.prototype._draw=function(){var t=!this.data.getLength(),e=this.config.mode===b.VaultMode.grid?this._drawGrid():this._drawList();return c.el("div",r(r({class:"vault dhx_widget"+(this._canDrop?" drop-here":"")},this._handlers),{"data-dhx-widget-id":this._uid}),[this._canDrop||t?this._drawDropableArea():this.config.customScroll?this._scrollView.render(e):e])},k.prototype._getFileActions=function(t){var e,i=[],n=[],o=[c.el(".dhx-default-actions",i),c.el(".dhx-hover-actions",n)];if(t.status===b.FileStatus.inprogress)return o;t.status!==b.FileStatus.failed&&t.link&&(e=(r=(this.config.downloadURL||"")+t.link).split("/").pop().split("?")[0],r=c.el("a",{download:e,class:"download-link",href:r},[c.el(".icon-btn.dxi.dxi-download.action-download")]),n.push(r));var r=c.el(".icon-btn.dxi.dxi-delete-forever.action-remove-file");return n.push(r),t.status===b.FileStatus.failed&&(r=c.el(".dxi.dxi-alert-circle.warning-status"),i.push(r)),t.status===b.FileStatus.uploaded&&(t=c.el(".dxi.dxi-checkbox-marked-circle.uploaded-status"),i.push(t)),o},k.prototype._drawList=function(){var r=this;return c.el(".dhx-files-block.dhx-webkit-scroll",this.data.map(function(t){var e=t.status===b.FileStatus.failed&&t.request,i=t.status===b.FileStatus.inprogress,n=t.status===b.FileStatus.queue,o=t.status!==b.FileStatus.uploaded;return c.el("div",{class:"dhx-file-item"+(t.$toRemove?" to-remove":"")+(n?" in-queue":""),"data-dhx-id":t.id,_key:t.id},[c.el(".dhx-file-icon",[c.el("div",{class:"dhx-file-type "+E.getFileClassName(t)+(o?" not-loaded":"")})]),c.el(".dhx-file-title",[c.el(".dhx-title-content",t.name),c.el(".dhx-file-info",[e&&c.el(".warn-message",t.request.statusText||y.default.error),i?c.el(".progress-value",(100*t.progress).toFixed(1)+"%"):c.el(".dhx-size"+(e?".dhx-size-error":""),E.getBasis(t.size))])]),i&&c.el(".dhx-download-progress",{style:{width:(100*t.progress).toFixed(1)+"%"}}),!i&&c.el(".dhx-file-action",r._getFileActions(t))])}))},k.prototype._drawDropableArea=function(){return c.el(".dhx-dropable-area.drop-files-here",[c.el(".dhx-big-icon-block",[c.el(".dxi.icon-upload")]),!this._canDrop&&c.el(".drop-area-bold-text",y.default.dragAndDrop),!this._canDrop&&c.el(".drop-area-bold-text",y.default.filesOrFoldersHere),!this._canDrop&&c.el(".drop-area-light-text",y.default.or),!this._canDrop&&c.el("button.dhx_btn.dhx_btn--flat.dhx_btn--small.action-add",y.default.browse)])},k.prototype._drawGrid=function(){var l=this;return c.el("div",{class:"dhx-files-grid dhx-webkit-scroll"},[c.el(".dhx-grid-content",this.data.map(function(a){var t=a.status===b.FileStatus.inprogress,e=a.status===b.FileStatus.queue,i=a.status===b.FileStatus.failed;return c.el("div",{class:"dhx-file-grid-item"+(t?" in-progress":"")+(a.$toRemove?" to-remove":"")+(e?" in-queue":"")+(i?" failed":""),"data-dhx-id":a.id,_key:a.id},[c.el(".dhx-preview-wrapper",s([a.preview?c.el(".dhx-server-file-preview",[c.el("img",{src:a.preview})]):a.image?c.el("canvas",{width:98*l.config.scaleFactor,height:98*l.config.scaleFactor,_hooks:{didInsert:function(t){var e=E.calculateCover(a.image),i=e.dx,n=e.dy,o=e.sx,r=e.sy,s=e.sHeight,e=e.sWidth;t.el.getContext("2d").drawImage(a.image,o,r,e,s,i,n,98*l.config.scaleFactor,98*l.config.scaleFactor)}}}):c.el("div",{class:"dhx-file-preview dhx-file-type "+E.getFileClassName(a)}),t&&l._drawCircle(a.progress)],l._getFileActions(a),[c.el(".dhx-file-info",[i&&c.el(".warn-message",a.request.statusText||y.default.error),!t&&c.el(".dhx-size"+(i?".dhx-size-error":""),E.getBasis(a.size))])])),c.el(".dhx-file-name",E.truncateWord(a.name))])}))])},k.prototype._drawCircle=function(t){return c.el(".progress-layout",[c.el(".progress-amount",(100*t).toFixed(1)+"%"),c.sv("svg",{xmlns:"http://www.w3.org/2000/svg",class:"progress-circle",viewBox:"0 0 60 60"},[c.sv("circle",{cx:30,cy:30,r:28,"stroke-width":4,class:"progress-bar-background"}),c.sv("circle.active-circle",{cx:30,cy:30,r:28,"stroke-width":4,"stroke-dasharray":"175.9 175.9","stroke-dashoffset":175.9*(1-t),class:"progress-bar-active"})])])},k);function k(t,e){void 0===e&&(e={});var n=a.call(this,null,l.extend({mode:b.VaultMode.list,toolbar:!0,updateFromResponse:!0,scaleFactor:4,customScroll:!0,uploader:{},progressBar:{}},e))||this;return n.config.toolbar||(n.config.uploader.autosend=!0),e.data?(n.data=e.data,n.events=e.data.events,n.events.context=n):(n.events=new u.EventSystem(n),n.data=new p.DataCollection({},n.events)),n.data.config.init=function(t){return t.status=t.status||b.FileStatus.uploaded,t.file?(t.size=t.file.size,t.name=t.file.name):(t.size=t.size||0,t.name=t.name||""),n.config.mode===b.VaultMode.grid&&t.file&&E.isImage(t)&&n._readStack.add(t,n.uploader.config.autosend),t},n._readStack=new S.ReadStackPreview(n.data),n.uploader=new w.Uploader(n.config.uploader,n.data,n.events),n._scrollView=new h.ScrollView(function(){return n._vaultView.getRootView()}),n._progressBar=new C.ProgressBar(n.events,n.config.progressBar),n.events.on(b.UploaderEvents.uploadProgress,function(t,e,i){return n._progressBar.setState(t,{current:e,total:i})}),n._initHandlers(),n._initUI(t),n._initEvents(),n}e.Vault=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),u=this&&this.__assign||function(){return(u=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r=i(1),d=i(0),a=i(2),s=i(10),h=i(3),l=i(13),c=i(5),f=i(8),p=i(38);var g,o=(g=c.View,o(v,g),v.prototype.paint=function(){g.prototype.paint.call(this),this._isContextMenu&&!this._vpopups&&this._init(),this._vpopups&&this._vpopups.redraw()},v.prototype.disable=function(t){var e=this;void 0!==t?this._setProp(t,"disabled",!0):this.data.forEach(function(t){t=t.id;return e._setProp(t,"disabled",!0)})},v.prototype.enable=function(t){var e=this;void 0!==t?this._setProp(t,"disabled",!1):this.data.forEach(function(t){t=t.id;return e._setProp(t,"disabled",!1)})},v.prototype.isDisabled=function(t){t=this.data.getItem(t);if(t)return t.disabled||!1},v.prototype.show=function(t){var e=this;void 0!==t?this._setProp(t,"hidden",!1):this.data.forEach(function(t){t=t.id;return e._setProp(t,"hidden",!1)})},v.prototype.hide=function(t){var e=this;void 0!==t?this._setProp(t,"hidden",!0):this.data.forEach(function(t){t=t.id;return e._setProp(t,"hidden",!0)})},v.prototype.destructor=function(){this.events.clear(),this._keyManager&&this._keyManager.destructor(),this._vpopups&&this._vpopups.node&&this._vpopups.unmount(),this.unmount()},v.prototype.select=function(t,e){var i=this;if(void 0===e&&(e=!0),!r.isId(t))throw new Error("Function argument cannot be empty, for more info check documentation https://docs.dhtmlx.com");e&&this.unselect(),this.data.update(t,{active:!0}),this.data.eachParent(t,function(t){i.data.update(t.id,{active:!0})})},v.prototype.unselect=function(t){var e=this;r.isId(t)?(this.data.update(t,{active:!1}),this.data.eachChild(t,function(t){e.data.update(t.id,{active:!1})})):this.data.forEach(function(t){e.data.update(t.id,{active:!1})})},v.prototype.isSelected=function(t){if(r.isId(t)&&this.data.getItem(t))return!!this.data.getItem(t).active},v.prototype.getSelected=function(){var e=[];return this.data.forEach(function(t){t.active&&e.push(t.id)}),e},v.prototype._customHandlers=function(){return{}},v.prototype._close=function(t){var e=this;this._popupActive&&this.events.fire(p.NavigationBarEvents.beforeHide,[this._activeMenu,t])&&(this._activeParents&&this._activeParents.forEach(function(t){return e.data.exists(t)&&e.data.update(t,{$activeParent:!1})}),"click"===this.config.navigationType&&(this._isActive=!1),clearTimeout(this._currentTimeout),this._popupActive=!1,this._activeMenu=null,this._vpopups.node&&this._vpopups.unmount(),this._vpopups=null,this.events.fire(p.NavigationBarEvents.afterHide,[t]),this.paint())},v.prototype._init=function(){var t,e,i=this;this._isContextMenu&&!this._activePosition||(t=this.getRootNode()||document.documentElement,e=null===(t=null==t?void 0:t.closest("[data-dhx-theme]"))||void 0===t?void 0:t.getAttribute("data-dhx-theme"),this._vpopups=d.create({render:function(){var t;return d.el("div",{"data-dhx-widget-id":i._uid,"data-dhx-theme":e||"light",class:"dhx_"+(null===(t=i.config)||void 0===t?void 0:t.$name)+"--popup-menu "+(i._isContextMenu?" dhx_context-menu":"")+" "+(i.config.css?i.config.css.split(" ").map(function(t){return i._isContextMenu?t:t+"--popup-menu"}).join(" "):""),onmousemove:i._handlers.onmousemove,onmouseleave:i._handlers.onmouseleave,onclick:i._handlers.onclick,onmousedown:i._handlers.onmousedown},i._drawPopups())}}),this._vpopups.mount(document.body))},v.prototype._initHandlers=function(){var a=this;this._isActive="click"!==this.config.navigationType,this._handlers=u({onmousemove:function(t){var e,i;!a._isActive||(i=h.locateNode(t))&&(e=i.getAttribute("data-dhx-id"),a._activeMenu!==e&&(a.data.haveItems(e)&&(a._vpopups||a._init(),i=h.getRealPosition(i),a.data.update(e,{$position:i},!1)),a._activeItemChange(e,t)))},onmouseleave:function(t){var e,i;"click"!==a.config.navigationType&&(a._popupActive?(i=h.locateNode(t,"data-dhx-id","relatedTarget"))?(e=i.getAttribute("data-dhx-id"),a.data.getItem(e)||(a._close(t),a._activeItemChange(null,t)),a.data.haveItems(e)&&(a._vpopups||a._init(),i=h.getRealPosition(i),a.data.update(e,{$position:i},!1),a._activeItemChange(e,t))):(a._close(t),a._activeItemChange(null,t)):a._activeItemChange(null,t))},onclick:function(t){var e=h.locateNode(t);if(e){var i=e.getAttribute("data-dhx-id");if(!a.isDisabled(i)){var n=a.data.getItem(i);if(null==n||!n.multiClick)if(a.data.haveItems(i))a._vpopups||a._init(),i!==a._currentRoot&&(a._isActive||(a._isActive=!0),a._setRoot(i),e=h.getRealPosition(e),a.data.update(i,{$position:e},!1),a._activeItemChange(i,t),a.events.fire(p.NavigationBarEvents.click,[i,t]));else switch(null==n?void 0:n.type){case"input":case"title":break;case"menuItem":case"selectButton":a._onMenuItemClick(i,t);break;case"imageButton":case"button":case"customButton":case"customHTML":case"navItem":n.twoState&&a.data.update(n.id,{active:!n.active}),a.events.fire(p.NavigationBarEvents.click,[i,t]),a._close(t);break;default:a._close(t)}}}},onmousedown:function(t){var e,i,n,o,r,s=h.locateNode(t);s&&(e=s.getAttribute("data-dhx-id"),null!=(s=a.data.getItem(e))&&s.multiClick&&(i=365,r=function(){clearTimeout(n),document.removeEventListener("mouseup",r)},(o=function(){a.events.fire(p.NavigationBarEvents.click,[e,t]),50<i&&(i-=55),n=setTimeout(o,i)})(),document.addEventListener("mouseup",r)))}},this._customHandlers())},v.prototype._initEvents=function(){function e(){n.paint(),t&&clearTimeout(t),t=setTimeout(function(){var i={};n.data.eachChild(n.data.getRoot(),function(t){var e;t.group&&(t.twoState=!0,(e=i)[(t=t).group]?(t.active&&(e[t.group].active=t.id),e[t.group].elements.push(t.id)):e[t.group]={active:t.active?t.id:null,elements:[t.id]})},!0),n._groups=i,n._resetHotkeys(),t=null,n.paint()},100)}var n=this,t=null;[p.DataEvents.change,p.DataEvents.filter].forEach(function(t){n.events.on(t,e)}),this.events.on(p.NavigationBarEvents.click,function(t){var e=n.data.getItem(t),t=n.data.getItem(null==e?void 0:e.parent);t&&"selectButton"===t.type&&n.data.update(e.parent,{value:e.value,icon:e.icon}),null!=e&&e.group&&((t=n._groups[e.group]).active&&n.data.update(t.active,{active:!1}),t.active=e.id,n.data.update(e.id,{active:!0}))}),this.events.on(p.NavigationBarEvents.inputChange,function(t,e){n.data.update(t,{value:e})}),this._customInitEvents()},v.prototype._getMode=function(t,e,i){return void 0===i&&(i=!1),t.parent===e?"bottom":"right"},v.prototype._drawMenuItems=function(t,e){var i=this;return void 0===e&&(e=!0),this.data.map(function(t){return i._factory(t,e)},t,!1)},v.prototype._setRoot=function(t){},v.prototype._getParents=function(t,e){var i=[],n=!1,o=this.data.getItem(t),o=o&&o.disabled;return this.data.eachParent(t,function(t){t.id===e?(i.push(t.id),n=!0):n||i.push(t.id)},!o),this._isContextMenu&&this._activePosition&&i.push(e),i},v.prototype._listenOuterClick=function(){this._documentHaveListener||(document.addEventListener("click",this._documentClick,!0),this._documentHaveListener=!0)},v.prototype._customInitEvents=function(){},v.prototype._drawPopups=function(){var a=this,t=this._activeMenu;if(!this._isContextMenu&&!t)return null;var e=this.getRootNode(),e=e&&e.offsetParent&&e.offsetParent.offsetParent,l=s.getZIndex(e),c=this._currentRoot,t=this._getParents(t,c);return(this._activeParents=t).forEach(function(t){return a.data.exists(t)&&a.data.update(t,{$activeParent:!0},!1)}),t.map(function(r){if(!a.data.haveItems(r))return null;var s=a.data.getItem(r)||a._rootItem;return a._popupActive=!0,d.el("ul",u({class:"dhx_widget dhx_menu"+(a.config.menuCss?" "+a.config.menuCss:""),_key:r,_hooks:{didInsert:function(t){var e=t.el.getBoundingClientRect(),i=e.width,n=e.height,o=a._isContextMenu&&a._activePosition&&r===c?a._activePosition:s.$position,e=a._getMode(s,c,o===a._activePosition),n=h.calculatePosition(o,{mode:e,auto:!0,width:i,height:n});s.$style=u(u({},n),{zIndex:a._activePosition&&a._activePosition.zIndex||l}),t.patch({style:s.$style})},didRecycle:function(t,e){var i,n;a._isContextMenu&&a._activePosition&&r===c&&(i=(n=e.el.getBoundingClientRect()).width,n=n.height,n=h.calculatePosition(a._activePosition,{mode:a._getMode(s,c,!0),width:i,height:n}),s.$style=u(u({},n),{zIndex:a._activePosition.zIndex||l}),e.patch({style:s.$style}))}},tabindex:0,style:s.$style||{position:"absolute"}},{role:"menu","aria-labeledby":s.id,"aria-live":"polite"}),a._drawMenuItems(r))}).reverse()},v.prototype._onMenuItemClick=function(t,e){var i=this.data.getItem(t);i.disabled||(i.twoState&&this.data.update(i.id,{active:!i.active}),this.events.fire(p.NavigationBarEvents.click,[t,e]),this._close(e))},v.prototype._activeItemChange=function(t,e){var i,n=this;this._activeParents&&(i=this._getParents(t,this._currentRoot),this._activeParents.forEach(function(t){n.data.exists(t)&&!i.includes(t)&&n.data.update(t,{$activeParent:!1},!1)})),r.isId(t)&&!this._documentHaveListener&&this._listenOuterClick(),r.isId(t)&&this.data.haveItems(t)?(this._activeMenu===t&&this._popupActive||this.events.fire(p.NavigationBarEvents.openMenu,[t]),clearTimeout(this._currentTimeout),this.paint()):(clearTimeout(this._currentTimeout),this._currentTimeout=setTimeout(function(){return n.paint()},400)),this._activeMenu=t},v.prototype._resetHotkeys=function(){var e=this;this._keyManager.removeHotKey(null,this),this.data.map(function(t){t.hotkey&&e._keyManager.addHotKey(t.hotkey,function(){return e._onMenuItemClick(t.id,null)})})},v.prototype._setProp=function(t,e,i){var n=this;Array.isArray(t)?t.forEach(function(t){return n.data.update(t,((t={})[e]=i,t))}):this.data.update(t,((t={})[e]=i,t))},v);function v(t,e){var s=g.call(this,t,e)||this;return s._isContextMenu=!1,s._documentHaveListener=!1,s.config=r.extend({rootId:"string"==typeof t&&t||s._uid},e),s._rootItem={},!Array.isArray(s.config.data)&&s.config.data&&s.config.data.events?(s.data=s.config.data,s.events=s.data.events,s.events.context=s):(s.events=new a.EventSystem(s),s.data=new f.TreeCollection({rootId:s.config.rootId},s.events)),s._documentClick=function(t){var e,i,n,o,r;s._documentHaveListener&&(e=h.locateNode(t),i=s.data.getRoot(),n=e&&e.getAttribute("data-dhx-id"),o=s.data.getParent(n),r="ontouchstart"in window||navigator.msMaxTouchPoints,document.removeEventListener("click",s._documentClick),s._documentHaveListener=!1,((!r||e)&&s._isContextMenu||i!==o&&o&&s.data.getItem(n))&&o&&s.data.getItem(n)&&i===h.locate(t,"data-dhx-widget-id")||s._close(t))},s._currentRoot=s.data.getRoot(),s._factory=s._getFactory(),s._initHandlers(),s._keyManager=new l.KeyManager(function(t,e){return e===s._uid}),s._initEvents(),Array.isArray(s.config.data)&&s.data.parse(s.config.data),s}e.Navbar=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var d=i(167),h=i(168),f=i(169),p=i(170),g=i(171),v=i(172),_=i(173),m=i(174),y=i(175),b=i(176),w=i(29);e.createFactory=function(t){for(var n=t.defaultType,e=t.allowedTypes,o=t.widgetName,t=t.widget,r=new Set,i=0,s=e;i<s.length;i++){var a=s[i];r.add(a)}var l=t.config,c=t.events,u=t.data;return function(t,e){if(t.hidden)return null;if(!(t.type&&"button"!==t.type&&"navItem"!==t.type&&"menuItem"!==t.type||t.value||t.icon||t.html))return null;t.type=t.type||n,r&&!r.has(t.type)&&(t.type=n),"imageButton"===t.type&&"ribbon"!==o&&(t.active=!1),e&&"spacer"!==t.type&&"separator"!==t.type&&"customHTML"!==t.type&&(t.type="menuItem"),u.haveItems(t.id)&&function(t,e,i){switch(t){case"sidebar":case"context-menu":e.$openIcon="right";break;case"toolbar":e.parent===i.getRoot()?e.$openIcon="right":e.$openIcon="bottom";break;case"menu":e.parent!==this.data.getRoot()&&(e.$openIcon="right");break;case"ribbon":var n=i.getItem(e.parent);n&&"block"!==e.type&&("block"===n.type?e.$openIcon="bottom":e.$openIcon="right")}}(o,t,u),"toolbar"===o&&t.items&&t.items.forEach(function(t){t.type||(t.type="menuItem")});var i="customHTML"!==t.type&&function(t,e,i,n){switch(t.type){case"navItem":case"selectButton":return h.navItem(t,i,n.collapsed);case"button":return d.button(t,i);case"title":return y.title(t,i);case"separator":return _.separator(t,i);case"spacer":return m.spacer(t,i);case"input":return g.input(t,e,i);case"imageButton":return p.imageButton(t,i);case"menuItem":return v.menuItem(t,i,n.asMenuItem);case"customHTMLButton":return f.customHTMLButton(t,i,n.asMenuItem);case"datePicker":return b.datePicker(t,e,i);case"block":default:throw new Error("unknown item type "+t.type)}}(t,c,o,{asMenuItem:e,collapsed:"sidebar"!==o||l.collapsed});return w.navbarComponentMixin(o,t,e,i)}}},function(t,e,i){"use strict";var s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var a=i(0),l=i(29);e.button=function(t,e){var i,n,o=t.icon&&!t.value,r=o?" dhx_navbar-count--absolute":" dhx_navbar-count--button-inline";return a.el("button.dhx_button",s({class:l.getNavbarButtonCSS(t,e),"data-dhx-id":t.id,disabled:t.disabled,type:"button"},(n=(i=t).active||i.$activeParent,e={"aria-disabled":i.disabled?"true":"false","aria-label":i.value||i.tooltip||i.id||" "+(i.count||"")},i.items&&(e.id=i.id,e["aria-haspopup"]="menu",n&&(e["aria-expanded"]="true")),e)),[t.icon?l.getIcon(t.icon,"button"):null,t.html?a.el("div.dhx_button__text",{".innerHTML":t.html}):t.value&&a.el("span.dhx_button__text",t.value),0<t.count&&l.getCount(t,r,o),t.value&&t.$openIcon?a.el("span.dhx_button__icon.dhx_button__icon--menu.dxi.dxi-menu-right",{"aria-hidden":"true"}):null,t.loading&&a.el("span.dhx_button__loading",{"aria-hidden":"true"},[a.el("span.dhx_button__loading-icon.dxi.dxi-loading")])])}},function(t,e,i){"use strict";var s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var a=i(0),l=i(29);e.navItem=function(t,e,i){var n,o,r,e=" dhx_"+e+"-button";return a.el("button",s({class:"dhx_button"+e+(t.active||t.$activeParent?e+"--active":"")+(t.disabled?e+"--disabled":"")+(t.$openIcon?e+"--select":"")+(t.circle?e+"--circle":"")+(t.size?" "+e+"--"+t.size:"")+(!t.value&&t.icon?e+"--icon":"")+(t.css?" "+t.css:""),"data-dhx-id":t.id,disabled:t.disabled,type:"button"},(o={"aria-disabled":(n=t).disabled?"true":"false","aria-label":n.value||" "},r=n.active||n.$activeParent,"selectButton"===n.type||n.items?(o.id=n.id,o["aria-haspopup"]="menu",r&&(o["aria-expanded"]="true")):((n.twoState||r)&&(o["aria-pressed"]=r?"true":"false"),!n.value&&n.icon&&n.tooltip&&(o["aria-label"]=n.tooltip+" "+(n.count||""))),o)),[t.icon&&a.el("span",{class:t.icon+e+"__icon","aria-hidden":"true"}),t.html&&a.el("div",{class:e.trim()+"__html",".innerHTML":t.html}),!t.html&&t.value&&a.el("span",{class:e.trim()+"__text"},t.value),0<t.count&&l.getCount(t,e+"__count",i),t.$openIcon&&a.el("span.dxi.dxi-menu-right",{class:e+"__caret","aria-hidden":"true"})])}},function(t,e,i){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r=i(0);e.customHTMLButton=function(t,e,i){var n,i=i?" dhx_button dhx_menu-button":" dhx_button dhx_nav-menu-button";return r.el("button",o({class:"dhx_custom-button"+i+(t.$activeParent?i+"--active":""),"data-dhx-id":t.id,type:"button",".innerHTML":t.html},(i={"aria-disabled":(n=t).disabled?"true":"false"},(n.twoState||n.active||n.$activeParent)&&(i["aria-pressed"]=n.active||n.$activeParent?"true":"false"),i)),t.html?"":t.value)}},function(t,e,i){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(0),a=i(29);e.imageButton=function(t,e){var i,n,o="dhx_"+e+"-button-image",e="ribbon"===e;return s.el("button.dhx_button",r({class:o+(t.size?" "+o+"--"+t.size:"")+(!t.value&&t.src?" "+o+"--icon":"")+(e&&t.$openIcon?" "+o+"--select":"")+(t.active?" "+o+"--active":""),"data-dhx-id":t.id,type:"button"},(n={"aria-disabled":(i=t).disabled?"true":"false"},(i.twoState||i.active)&&(n["aria-pressed"]=i.active?"true":"false"),!i.value&&i.src&&i.tooltip&&(n["aria-label"]=i.tooltip+" "+(i.count||"")),n)),[e&&t.value&&t.$openIcon&&s.el("span.dxi.dxi-menu-right",{class:o+"__caret","aria-hidden":"true"}),t.html?s.el("div",{class:o+"__text",".innerHTML":t.html}):t.value&&s.el("span",{class:o+"__text"},t.value),t.src&&s.el("span",{class:o+"__image",style:{backgroundImage:"url("+t.src+")"},role:"presentation"}),0<t.count&&a.getCount(t,o+"__count",!0)])}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(38);function r(t,e){t.fire(o.NavigationBarEvents.inputBlur,[e])}function s(t,e){t.fire(o.NavigationBarEvents.inputFocus,[e])}function a(t,e,i){t.fire(o.NavigationBarEvents.inputChange,[e,i.target.value])}e.input=function(e,i,t){return n.el(".dhx_form-group.dhx_form-group--no-message-holder"+(e.hiddenLabel?".dhx_form-group--label_sr":".dhx_form-group--inline")+".dhx_"+t+"__input",{style:{width:e.width||"200px"},role:"presentation"},[e.label&&n.el("label.dhx_label",{for:e.id,style:{maxWidth:e.hiddenLabel?null:"100%"}},e.label),n.el(".dhx_input__wrapper",{role:"presentation"},[n.el("input.dhx_input",{id:e.id,placeholder:e.placeholder,class:e.icon?"dhx_input--icon-padding":"",autocomplete:e.autocomplete?"on":"off",value:e.value,disabled:e.disabled,onblur:[r,i,e.id],onfocus:[s,i,e.id],oninput:[a,i,e.id],"data-dhx-id":e.id,_hooks:{didInsert:function(t){i&&i.fire(o.NavigationBarEvents.inputCreated,[e.id,t.el])}},_key:e.id,"aria-label":e.label||e.helpMessage||"type "+(e.placeholder?"text like "+e.placeholder:"text")}),e.icon?n.el(".dhx_input__icon",{class:e.icon,"aria-hidden":"true"}):null])])}},function(t,e,i){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(0),a=i(29);e.menuItem=function(t,e,i){var n,o=i?" dhx_menu-button":" dhx_nav-menu-button";return s.el("button",r({class:"dhx_button"+o+(t.disabled?o+"--disabled":"")+(t.active||t.$activeParent?o+"--active":""),disabled:t.disabled,"data-dhx-id":t.id,type:"button"},(o={role:"menuitem","aria-disabled":(n=t).disabled?"true":"false"},n.items&&(o["aria-haspopup"]="true"),o)),i?[t.icon||t.value||t.html?s.el("span.dhx_menu-button__block.dhx_menu-button__block--left",[t.icon&&s.el("span.dhx_menu-button__icon",{class:t.icon}),t.html?s.el("div.dhx_menu-button__text",{".innerHTML":t.html}):t.value&&s.el("span.dhx_menu-button__text",t.value)]):null,0<t.count||t.hotkey||t.items?s.el("span.dhx_menu-button__block.dhx_menu-button__block--right",[0<t.count&&a.getCount(t," dhx_menu-button__count",!1),t.hotkey&&s.el("span.dhx_menu-button__hotkey",t.hotkey),t.items&&s.el("span.dhx_menu-button__caret.dxi.dxi-menu-right")]):null]:[t.icon&&s.el("span.dhx_menu-button__icon",{class:t.icon}),t.html?s.el("div.dhx_menu-button__text",{".innerHTML":t.html}):t.value&&s.el("span.dhx_nav-menu-button__text",t.value),0<t.count&&a.getCount(t," dhx_menu-button__count",!1)])}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.separator=function(t,e){return null}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.spacer=function(t,e){return null}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0);e.title=function(t,e){return n.el("span",{class:"dhx_navbar-title dhx_navbar-title--"+e,"data-dhx-id":t.id,".innerHTML":t.html,"aria-label":t.value||""},t.html?null:t.value)}},function(t,e,i){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(0),a=i(33),l=i(12),c=i(38),n=i(16);function u(t,e,i){i=i.target;i&&(i.value=e.$calendar.getValue()),t.fire(c.NavigationBarEvents.inputBlur,[null==e?void 0:e.id])}function d(t,e,i){s.awaitRedraw().then(function(){return e.$popup.show(i.target,{theme:i.target})}),t.fire(c.NavigationBarEvents.inputFocus,[null==e?void 0:e.id])}function h(t,e){var i=e.target.value,e=t.$calendar.config.dateFormat;return i.length?n.stringToDate(i,e,!0)&&t.$calendar.setValue(n.stringToDate(i,e)):t.$calendar.clear(),!1}e.datePicker=function(n,o,t){n.$popup||(n.$popup=new l.Popup),n.$calendar||(n.$calendar=new a.Calendar(null,r(r({},n),{css:"dhx_widget--bordered"})),n.$popup.attach(n.$calendar),n.$calendar.events.on("change",function(t,e,i){i&&n.$popup.isVisible()&&n.$popup.hide();i="date"===(null===(i=n.valueFormat)||void 0===i?void 0:i.toLowerCase());o.fire(c.NavigationBarEvents.inputChange,[n.id,n.$calendar.getValue(i)])}));var e=n.$calendar.getValue();return n.mode&&"calendar"!==n.mode&&n.$calendar.showDate(void 0,n.mode),s.el(".dhx_form-group.dhx_form-group--no-message-holder"+(n.hiddenLabel?".dhx_form-group--label_sr":".dhx_form-group--inline")+".dhx_"+t+"__input",{style:{width:n.width||"200px"},role:"presentation"},[n.label&&s.el("label.dhx_label",{for:n.id,style:{maxWidth:n.hiddenLabel?null:"100%"}},n.label),s.el(".dhx_input__wrapper",{role:"presentation"},[s.el("input.dhx_input",{id:n.id,placeholder:n.placeholder,class:n.icon?"dhx_input--icon-padding":"",value:e,disabled:n.disabled,onblur:[u,o,n],onfocus:[d,o,n],oninput:[h,n],"data-dhx-id":n.id,readOnly:!0!==n.editable,_hooks:{didInsert:function(t){o&&o.fire(c.NavigationBarEvents.inputCreated,[n.id,t.el])}},_key:n.id,"aria-label":n.label||n.helpMessage||"type "+(n.placeholder?"text like "+n.placeholder:"text")}),n.icon?s.el(".dhx_input__icon",{class:n.icon,"aria-hidden":"true"}):null])])}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(81),l=i(21),c=i(0),u=i(3),d=i(10),o=(s=a.Toolbar,o(h,s),h.prototype._draw=function(t){var i=this,e=this.data.getLength()?this.data.reduce(function(t,e){switch(e.type){case"title":return t||20;case"button":return"small"===e.size&&(!t||t<=28)?28:t||32;default:return 32}},0)+24:null,t=[c.el("ul.dhx_navbar.dhx_navbar--horizontal",r(r({"data-dhx-widget-id":this._uid,tabindex:0},{role:"toolbar","aria-label":t||""}),{onclick:this._handlers.onclick,onmousedown:this._handlers.onmousedown,oninput:this._handlers.input,onmouseover:this._handlers.tooltip,_hooks:{didInsert:function(t){t.el.addEventListener("keyup",function(t){var e;9!==t.which||(e=u.locateNode(document.activeElement))&&(t=e.getAttribute("data-dhx-id"),null!=(t=i.data.getItem(t))&&t.tooltip&&d.tooltip(t.tooltip,{node:e,position:d.Position.bottom,force:!0}))},!0)}}}),this.data.map(function(t){return i._factory(t)},this.data.getRoot(),!1))];return c.el("nav.dhx_widget.dhx_toolbar",{style:{height:e},class:this.config.css||""},this.scrollView&&this.scrollView.config.enable?[].concat(this.scrollView.render(t)):t)},h);function h(t,e){var i=s.call(this,t,e)||this;return i.scrollView=new l.ScrollView(function(){return i.getRootView()}),i}e.ProToolbar=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.layoutConfig={css:"vault-layout",rows:[{id:"topbar",css:"vault-topbar"},{id:"vault",css:"vault-file-grid"}]},e.layoutConfigWithoutTopbar={css:"vault-layout",rows:[{id:"vault",css:"vault-file-grid"}]}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(51),o=["byte","kilobyte","megabyte","gigabyte"];e.getBasis=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=0),t<1024?t+" "+n.default[o[e]]:this.getBasis(Math.round(t/1024),e+1)};var r;function s(t){return{extension:t.name.split(".").pop()||"none",mime:t.file?t.file.type:""}}function a(t,e){switch(t){case"jpg":case"jpeg":case"gif":case"png":case"bmp":case"tiff":case"pcx":case"svg":case"ico":return r.image;case"avi":case"mpg":case"mpeg":case"rm":case"move":case"mov":case"mkv":case"flv":case"f4v":case"mp4":case"3gp":case"wmv":case"webm":case"vob":return r.video;case"rar":case"zip":case"tar":case"tgz":case"arj":case"gzip":case"bzip2":case"7z":case"ace":case"apk":case"deb":case"zipx":case"cab":case"tar-gz":case"rpm":case"xar":return r.archive;case"xlr":case"xls":case"xlsm":case"xlsx":case"ods":case"csv":case"tsv":return r.table;case"doc":case"docx":case"docm":case"dot":case"dotx":case"odt":case"wpd":case"wps":case"pages":return r.document;case"wav":case"aiff":case"au":case"mp3":case"aac":case"wma":case"ogg":case"flac":case"ape":case"wv":case"m4a":case"mid":case"midi":return r.audio;case"pot":case"potm":case"potx":case"pps":case"ppsm":case"ppsx":case"ppt":case"pptx":case"pptm":case"odp":return r.presentation;case"html":case"htm":case"eml":return r.web;case"exe":return r.application;case"dmg":return r.apple;case"pdf":case"ps":case"eps":return r.pdf;case"psd":return r.psd;case"txt":case"djvu":case"nfo":case"xml":return r.text;default:switch(e.split("/")[0]){case"image":return r.image;case"audio":return r.audio;case"video":return r.video;default:return r.other}}}e.truncateWord=function(t,e){if(void 0===e&&(e=13),t.length<=e)return t;var i,n=t.lastIndexOf(".");return(-1===n?(i=t.substr(t.length-4),t.substr(0,e-7)):(n=n-3,i=t.substr(n),t.substr(0,e-(t.length-n))))+"..."+i},e.calculateCover=function(t){var e,i,n,o=t.width,r=t.height,o=1<(t=o/r)?(e=i=r,n=(o-i)/2,0):t<1?(n=0,(r-(e=i=o))/2):(i=e=o,n=0);return{sx:n,sy:o,sWidth:i,sHeight:e,dx:0,dy:0}},(i=r=e.FileType||(e.FileType={})).image="image",i.video="video",i.archive="archive",i.table="table",i.document="document",i.presentation="presentation",i.application="application",i.web="web",i.apple="apple",i.pdf="pdf",i.psd="psd",i.audio="audio",i.other="other",i.text="text",e.getFileType=a,e.getFileClassName=function(t){var e=s(t),t=e.mime;return a(e=e.extension,t)+" extension-"+e},e.isImage=function(t){var e=s(t),t=e.mime;return a(e.extension,t)===r.image}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(0),a=i(5),l=i(51),c=i(36),o=(r=a.View,o(u,r),u.prototype.setState=function(t,e){this._progress=t,this.config.template?this._progressText=this.config.template(t,e):this._progressText=this._progress.toFixed(1)+"%",this.paint()},u.prototype._draw=function(){return s.el(".progress-bar",{_key:this._uid},[s.el(".progress-indicator",{style:{width:this._progress+"%"}}),s.el(".progress-text",{".innerHTML":this._progressText}),s.el("button",{class:"dhx_btn dhx_btn--flat dhx_btn_small action-abort-all",onclick:this._abortUpload},l.default.cancel)])},u);function u(t,e){var i=r.call(this,null,e)||this;i.events=t,i._progress=0;return i.mount(null,s.create({render:function(){return i._draw()}})),i._abortUpload=function(){i.events.fire(c.ProgressBarEvents.cancel)},i}e.ProgressBar=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(o.prototype.add=function(t,e){void 0===e&&(e=!1),this._readerStack.push(t),e||this.read()},o.prototype.read=function(){var i,t,n=this;this._readerStack.length&&!this._isActive&&(i=this._readerStack.shift(),this._isActive=!0,(t=new FileReader).readAsDataURL(i.file),t.onload=function(t){var e=new Image;e.src=t.target.result,e.onload=function(){n._data.exists(i.id)&&n._data.update(i.id,{image:e}),n._isActive=!1,n.read()}},t.onerror=function(){n._isActive=!1,n.read()})},o.prototype.stop=function(){this._readerStack=[]},o);function o(t){this._readerStack=[],this._isActive=!1,this._data=t}e.ReadStackPreview=n},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(0),l=i(2),c=i(3),u=i(5),d=i(1),h=i(53),f=i(82),p=i(54),g=i(83),v=i(67),_=i(10),m=i(183),y=i(184),b=i(13),w=i(19),x=i(1),o=(s=u.View,o(E,s),E.prototype.destructor=function(){this.events&&this.events.clear(),this.config=this.events=this._selected=this._handlers=this._pickerState=this._inputTimeout=null,this.unmount()},E.prototype.clear=function(){this.events.fire(g.ColorpickerEvents.beforeChange,[""])&&(this._selected="",this.events.fire(g.ColorpickerEvents.change,[this._selected]),this.paint())},E.prototype.setValue=function(t){this.events.fire(g.ColorpickerEvents.beforeChange,[t])&&(!this._focusColor(t)&&w.focusManager.getFocusId()!==this._uid||(this.events.fire(g.ColorpickerEvents.change,[this._selected]),this.events.fire(g.ColorpickerEvents.colorChange,[this._selected])))},E.prototype.setFocus=function(t){this._focusColor(t)&&this.paint()},E.prototype.getValue=function(){return this._selected||""},E.prototype.getCustomColors=function(){return this.config.customColors},E.prototype.setCustomColors=function(t){this.config.customColors=t.map(function(t){return t.toUpperCase()}),this.paint()},E.prototype.setCurrentMode=function(t){"palette"!==t&&"picker"!==t||(this.config.mode=t,this.events.fire(g.ColorpickerEvents.modeChange,[t]),this.events.fire(g.ColorpickerEvents.viewChange,[t]),this.paint())},E.prototype.getCurrentMode=function(){return this.config.mode},E.prototype.getView=function(){return this.getCurrentMode()},E.prototype.setView=function(t){this.setCurrentMode(t)},E.prototype.focusValue=function(t){this.setFocus(t)},E.prototype._setHandlers=function(){var i=this;this._handlers={click:{".dhx_palette__cell":this._onColorClick},mousedown:function(t){i._pickerMove(t)},touchstart:function(t){i._pickerMove(t)},buttonsClick:function(t){i.setCurrentMode("palette"),"cancel"!==t?"apply"!==t||i.config.customColors.includes(i._pickerState.background)||(i.setValue(i._pickerState.background),i.events.fire(g.ColorpickerEvents.apply,[]),i.events.fire(g.ColorpickerEvents.selectClick,[])):i.events.fire(g.ColorpickerEvents.cancelClick,[])},customColorClick:function(){i.setView("picker")},oninput:function(e){i._inputTimeout&&clearTimeout(i._inputTimeout),i._inputTimeout=setTimeout(function(){var t=e.target.value;-1===t.indexOf("#")&&(t="#"+t),i._pickerState.customHex=t,h.isHex(t)&&(i._pickerState.hsv=h.HexToHSV(t),i.paint())},100)},contextmenu:{".dhx_palette__cell":function(t,e){t.preventDefault();e=i.config.customColors.indexOf(e.data.color);-1!==e&&i._removeCustomColor(e),i.paint()}},mouseover:{".dhx_palette__cell":function(t){t.target&&v.tooltip(p.default.rightClickToDelete,{node:t.target,position:_.Position.bottom})},".dhx_colorpicker-custom-colors__picker":function(t){t.target&&v.tooltip(p.default.addNewColor,{node:t.target,position:_.Position.bottom})}}},this.events.on(g.ColorpickerEvents.change,function(){i.paint()}),this.events.on(g.ColorpickerEvents.colorChange,function(){i.paint()})},E.prototype._pickerMove=function(t){var e=c.locate(t);this._pickerState.customHex="","picker_palette"===e?this._setPaletteGrip(t):this._setRangeGrip(t);var i="picker_palette"===e?this._setPaletteGrip:this._setRangeGrip,n=t.targetTouches?"touchmove":"mousemove",t=t.targetTouches?"touchend":"mouseup";document.addEventListener(n,i),document.addEventListener(t,function(){document.removeEventListener(n,i)}),this.paint()},E.prototype._focusColor=function(t){if(void 0===t||t.length<4)return!1;var i=t.toUpperCase();if(!h.isHex(i))return!1;var e=this.config.palette.reduce(function(e,t){return e||(t.forEach(function(t){t.toUpperCase()===i&&(e=!0)}),e)},!1),t=f.grayShades.includes(i);return e||t||((t=this.getCustomColors()).includes(i.toUpperCase())||t.push(i.toUpperCase())),this._selected=i||null,this._pickerState.hsv=h.HexToHSV(i),!0},E.prototype._removeCustomColor=function(t){this.config.customColors.splice(t,1)},E.prototype._getCells=function(t,n){var o=this;return void 0===n&&(n=""),t.reduce(function(t,e){var i=(o._selected||"").toUpperCase()===e.toUpperCase()?"dhx_palette__cell--selected":"";return t.push(a.el(".dhx_palette__cell",{class:i+" "+n,_data:{color:e},style:"background:"+e,tabindex:0})),t},[])},E.prototype._getGrayShades=function(){return a.el(".dhx_palette__row",this._getCells(f.grayShades))},E.prototype._getPalette=function(){var i=this;return this.config.palette.reduce(function(t,e){return t.push(a.el(".dhx_palette__col",i._getCells(e))),t},[])},E.prototype._getContent=function(){var t=!this.config.pickerOnly&&"palette"===this.config.mode?r([this.config.grayShades&&this._getGrayShades()],this._getPalette(),[!this.config.paletteOnly&&a.el(".dhx_colorpicker-custom-colors",{onmouseover:this._handlers.mouseover},[a.el(".dhx_colorpicker-custom-colors__header",[p.default.customColors]),a.el(".dhx_palette--custom.dhx_palette__row",r(this._getCells(this.config.customColors,"dhx_custom-color__cell"),[a.el(".dhx_colorpicker-custom-colors__picker",{class:"dxi dxi-plus",onclick:this._handlers.customColorClick,onmouseover:this._handlers.mouseover,tabindex:0})]))])]):[m.getPicker(this,this._pickerState,this._handlers)];return a.el(".dhx_widget.dhx_colorpicker",{class:this.config.css,style:{width:this.config.width},"data-dhx-widget-id":this._uid},[a.el(".dhx_palette",{onclick:this._handlers.click,oncontextmenu:this._handlers.contextmenu},t)])},E.prototype._initHotKey=function(){var t,i=this,e={enter:function(t){if(c.locateNodeByClassName(t,"dhx_palette__cell")){var e=x.rgbToHex(t.target.style.background);if(!i.events.fire(g.ColorpickerEvents.beforeChange,[e]))return;i._selected=e,i.events.fire(g.ColorpickerEvents.change,[i._selected]),i.events.fire(g.ColorpickerEvents.colorChange,[i._selected])}c.locateNodeByClassName(t,"dhx_colorpicker-custom-colors__picker")&&i.setCurrentMode("picker")}};for(t in e)this._keyManager.addHotKey(t,e[t])},E);function E(t,e){var n=s.call(this,t,e)||this;n._setPaletteGrip=function(t){var e=n.getRootView().refs.picker_palette.el.getBoundingClientRect(),i=(t.targetTouches?t.targetTouches[0]:t).clientX,t=(t.targetTouches?t.targetTouches[0]:t).clientY-e.top,i=i-e.left,t=y.calculatePaletteGrip(e,t,i),i=t.s,t=t.v;n._pickerState.hsv.s=i,n._pickerState.hsv.v=t,n.paint()},n._setRangeGrip=function(t){var e=n.getRootView().refs.hue_range.el.getBoundingClientRect(),t=(t.targetTouches?t.targetTouches[0]:t).clientX-e.left,e=y.calculateRangeGrip(e,t),t=e.h,e=e.rangeLeft;n._pickerState.hsv.h=t,n._pickerState.rangeLeft=e,n.paint()},n._onColorClick=function(t,e){e=e.data.color.toUpperCase();n.events.fire(g.ColorpickerEvents.beforeChange,[e])&&(n._selected=e,n.events.fire(g.ColorpickerEvents.change,[n._selected]),n.events.fire(g.ColorpickerEvents.colorChange,[n._selected]))},n._container=t,n.config=d.extend({css:"",grayShades:!0,pickerOnly:!1,paletteOnly:!1,customColors:[],palette:f.palette,width:"238px",mode:"palette"},n.config),n.config.palette||(n.config.palette=f.palette),n.config.customColors&&(n.config.customColors=n.config.customColors.map(function(t){return t.toUpperCase()})),n._pickerState={hsv:{h:0,s:1,v:1},customHex:""},n.events=new l.EventSystem(n),n._setHandlers(),n._keyManager=new b.KeyManager(function(t,e){return e===n._uid}),n._initHotKey();t=a.create({render:function(){return n._getContent()}});return n.mount(n._container,t),n}e.Colorpicker=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=i(53),c=i(0),u=i(54);e.getPicker=function(t,e,i){var n=l.HSVtoRGB(e.hsv);e.background=l.RGBToHex(n);var o=l.RGBToHex(l.HSVtoRGB({h:e.hsv.h,s:1,v:1})),r=t.getRootView(),s=(a=r.refs?r.refs.picker_palette.el.getBoundingClientRect():{height:200,width:218,x:0,y:0}).height-2,n=a.width-2,r=s-e.hsv.v*s-4,s=e.hsv.s*n-4,a=(n=a.width-6)-(360-e.hsv.h)/360*n,n=(l.isHex(e.customHex)?e.customHex:e.background).replace("#","");return c.el(".dhx_colorpicker-picker",{},[c.el(".dhx_colorpicker-picker__palette",{style:{height:132,background:o},onmousedown:i.mousedown,ontouchstart:i.touchstart,"data-dhx-id":"picker_palette",_ref:"picker_palette"},[c.el(".dhx_palette_grip",{style:{top:r,left:s},tabindex:0})]),c.el(".dhx_colorpicker-hue-range",{style:{height:16},onmousedown:i.mousedown,ontouchstart:i.touchstart,"data-dhx-id":"hue_range",_key:"hue_range",_ref:"hue_range"},[c.el(".dhx_colorpicker-hue-range__grip",{style:{left:a},tabindex:0})]),c.el(".dhx_colorpicker-value",[c.el(".dhx_colorpicker-value__color",{style:{background:e.background}}),c.el(".dhx_colorpicker-value__input__wrapper",[c.el("input",{class:"dhx_colorpicker-value__input",value:n,oninput:i.oninput,maxlength:"7",_key:"hex_input","aria-label":"type color in HEX format"})])]),c.el(".dhx_colorpicker-picker__buttons",[!t.config.pickerOnly&&c.el("button",{class:"dhx_button dhx_button--size_medium dhx_button--view_link dhx_button--color_primary",onclick:[i.buttonsClick,"cancel"]},u.default.cancel),c.el("button",{class:"dhx_button dhx_button--size_medium dhx_button--view_flat dhx_button--color_primary",onclick:[i.buttonsClick,"apply"]},u.default.select)])])},e.calculatePaletteGrip=function(t,e,i){var t=(n=t.refs.picker_palette.el.getBoundingClientRect()).height,n=n.width;e=e<0?0:t<e?t:e,i=i<0?0:n<i?n:i,n=Math.round(i/(n/100)),t=100-Math.round(e/(t/100)),this._pickerState.hsv.s=n/100,this._pickerState.hsv.v=t/100}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.calculatePaletteGrip=function(t,e,i){var n=t.height,t=t.width;return e=e<0?0:n<e?n:e,i=i<0?0:t<i?t:i,{s:Math.round(i/(t/100))/100,v:(100-Math.round(e/(n/100)))/100}},e.calculateRangeGrip=function(t,e){return t=t.width,e=e<0?0:t<e?t:e,{h:Math.round(e/t*360),rangeLeft:e}}},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(84)),n(e(205)),n(e(25))},function(t,e,i){"use strict";var c=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var u=i(0),d=i(187),i=(n.prototype.add=function(t){this._data.push(t)},n.prototype.clear=function(){this._data.forEach(function(t){return t.destructor&&t.destructor()}),this._data=[]},n.prototype.getSizes=function(){return this._sizes},n.prototype.toVDOM=function(e,i){var n={left:20,right:20,top:10,bottom:10},t=this._data.filter(function(t){return!t.dataReady||t.dataReady().length});this._data.forEach(function(t){return!t.scaleReady||t.scaleReady(n)});var o=0,r=0;t.forEach(function(t){t.seriesShift&&(o+=t.seriesShift(),r++)});var s=o/r,o=r?(s-o)/2:0;t.forEach(function(t){t.seriesShift&&(t.seriesShift(o),o+=s)}),this._sizes=n;var a=e-n.left-n.right,l=i-n.top-n.bottom,l=u.sv("g",{transform:"translate("+n.left+", "+n.top+")"},c([u.sv("rect.dhx_chart-graph_area",{width:0<a?a:0,height:0<l?l:0,fill:"transparent"})],t.map(function(t){return t.paint(e-(n.left+n.right),i-(n.top+n.bottom))}))),t=u.sv("defs",[d.dropShadow(),d.shadow()]);return u.sv("svg",{width:e,height:i,role:"graphics-document"},[t,l])},n);function n(){this._data=[],this._sizes={left:20,right:20,top:10,bottom:10}}e.ComposeLayer=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0);e.shadow=function(){return n.sv("filter",{id:"shadow"},[n.sv("feDiffuseLighting",{in:"SourceGraphic",result:"light","lighting-color":"white"},[n.sv("feDistantLight",{azimuth:90,elevation:25})]),n.sv("feComposite",{in:"SourceGraphic",in2:"light",operator:"arithmetic",k1:"1",k2:"0",k3:"0",k4:"0"})])},e.dropShadow=function(){return n.sv("filter",{id:"dropshadow",x:"-100%",y:"-100%",width:"300%",height:"300%"},[n.sv("feGaussianBlur",{in:"SourceAlpha",stdDeviation:2}),n.sv("feOffset",{dx:0,dy:0,result:"offsetblur"}),n.sv("feOffset",{dx:0,dy:0,result:"offsetblur"}),n.sv("feFlood",{"flood-color":"rgba(85,85,85,0.5)"}),n.sv("feComposite",{in2:"offsetblur",operator:"in"}),n.sv("feMerge",[n.sv("feMergeNode"),n.sv("feMergeNode",{in:"SourceGraphic"})])])}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i(1),h=i(0),n={circle:function(t,e,i){return h.sv("circle",{id:s.uid(),r:5,fill:e,class:"figure "+("none"!==t?"with-stroke":""),"stroke-width":2,"fill-opacity":i,stroke:t,transform:"translate(0, -1)"})},rect:function(t,e,i){return h.sv("rect",{id:s.uid(),fill:e,"fill-opacity":i,width:10,"stroke-width":2,height:10,class:"figure "+("none"!==t?"with-stroke":""),stroke:t,transform:"translate(-5, -5)"})},line:function(t,e,i,n){var o=function(t,e,i){return h.sv("stop",{offset:e+"%","stop-color":t,class:t?"":i})},r="lg"+s.uid(),o=h.sv("linearGradient",{id:r},[o(t[1],0,"heat-negative"),o(e,n,"heat-neutral"),o(t[0],100,"heat-positive")]),t=h.sv("rect",{id:s.uid(),y:16,fill:"url(#"+r+")","fill-opacity":i,width:500,"stroke-width":2,height:16,class:"figure figure-line",stroke:t});return h.sv("g",{id:s.uid(),width:500,height:16},[o,t])}};e.legendShape=function(t,e){var i;return"string"==typeof t&&(i=n[t]),i("line"===t?[e.positiveColor,e.negativeColor]:e.color||"none",e.fill,e.alpha||1,"line"===t&&e.minValue<0?100*Math.abs(e.minValue)/(e.maxValue-e.minValue):0)},e.legendTicks=function(t,e){if("line"===t&&!isNaN(e.maxValue)&&!isNaN(e.minValue)){for(var i=e.maxValue,n=e.minValue,o=e.step,t=e.tick,r=e.majorTick,s=e.tickTemplate,a=t||10,l=(i-n)/a,c=[],u=0;u<=Math.ceil(l/(o||1));u++){var d=(e.minValue+a*(o||1)*u).toFixed();c.push(d>e.maxValue?e.maxValue:d)}return c=c.map(function(t,e,i){t=(e%(r||1)==0||e===i.length-1)&&h.sv("text",{x:e===i.length-1?499.5:500*e/l*(o||1)-.5,y:34},s?s(t):t),e=h.sv("rect",{x:e===i.length-1?499.5:500*e/l*(o||1)-.5,y:18,width:1,height:4});return h.sv("g",{transform:"translate(0, 16)",class:"legend-tick"},[t,e])})}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(190),o=i(55),i=i(192),o={radial:n.RadialScale,text:i.TextScale,numeric:o.Scale};e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,a=i(30),i=i(55),o=(r=i.Scale,o(s,r),s.prototype.paint=function(t,e){var i=this;if(this.config.hidden)return null;var n=this.config.zebra,o=this.config.value,r=this.config.showAxis?this._axis.steps:null,s=this._axis.steps.map(function(t){return i.point(t)}),n={scales:this._data.map(function(t){return t[o]}),axis:s,realAxis:r,zebra:n,attribute:o};return a.radarScale(n,t,e)},s.prototype.point=function(t){return(t-this._axis.min)/(this._axis.max-this._axis.min)},s);function s(t,e){return r.call(this,t,e,"radial")||this}e.RadialScale=o},function(t,e,i){"use strict";var s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},n=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var o=i(6),r=[1,2,3,5,10],i=(a.prototype.getScale=function(){var t=this.config.log?this._logSteps():this._calculateSteps(this._getStep());return{min:t[0],max:t[t.length-1],steps:t}},a.prototype._getStep=function(){var t=this.config.maxTicks,e=this.config.max-this.config.min,i=Math.floor(o.log10(e/t)),i=Math.pow(10,i)||1,t=e/i/t;return r[n(r,[t]).sort(function(t,e){return t-e}).indexOf(t)]*i},a.prototype._calculateSteps=function(t){for(var e=Math.floor(this.config.min/t),i=Math.ceil(this.config.max/t),n=[],o="radial"===this.config.type?e-1:e;o<=i;o++){var r=t*o;Math.floor(r)!==r&&(r=parseFloat(r.toFixed(8))),n.push(r)}return n},a.prototype._logSteps=function(){var t=[];if(this.config.min<0){for(var e=Math.ceil(o.log10(-this.config.min));0<e;e--)t.push(-Math.pow(10,e));t.push(0)}if(0<this.config.max)for(var i=Math.ceil(o.log10(this.config.max)),e=0;e<=i;e++)t.push(Math.pow(10,e));return t},a.prototype._addPadding=function(){this.config.min-=this.config.padding},a);function a(t,e){void 0===e&&(e={}),this._data=t;for(var i=[],n=0,o=this._data;n<o.length;n++){var r=o[n];"number"==typeof r&&i.push(r),"string"!=typeof r||isNaN(parseFloat(r))||i.push(parseFloat(r))}t={min:Math.min.apply(Math,i),max:Math.max.apply(Math,i),maxTicks:this._data.length<20?this._data.length:20};this.config=s(s({},t),e),this.config.padding&&this._addPadding()}e.AxisCreator=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(6),l=i(55),i=i(86),c={left:i.left,right:i.right,bottom:i.bottom,top:i.top},d={left:i.leftGrid,right:i.rightGrid,bottom:i.bottomGrid,top:i.topGrid},o=(s=l.Scale,o(u,s),u.prototype.scaleReady=function(t){var e=this._data.getLength()-1,i=this._data.map(this.locator);this._axis={max:e,steps:i},t[this._position]+=this.config.size},u.prototype.point=function(t){var e=this._axis.steps.indexOf(t);if(this._padding){var i=this._axis.max+1,t=.5/i,i=e/i;return this._isXDirection?t+i:1-t-i}return this._isXDirection?e/this._axis.max:1-e/this._axis.max},u.prototype.paint=function(i,n){var o=this;if(this.config.hidden)return null;var t=this._axis.steps.map(function(t,e){return[o._isXDirection?o._getAxisPoint(e)*i:o.point(t)*n,t]});return c[this._position](t,this.config,i,n)},u.prototype.scaleGrid=function(){var s=this,a=this._position,l=this.config.grid,c=this.config.dashed,u=this.config.hidden;return{paint:function(t,e){var i,n,o=s._axis.steps.indexOf(s.config.targetLine),r=(i=t,n=e,s._axis.steps.map(function(t,e){return[s._isXDirection?s._getAxisPoint(e)*i:s._getAxisPoint(e)*n,t]})),o={targetLine:o,dashed:c,grid:l,hidden:u};return d[a](r,t,e,o)}}},u.prototype._setDefaults=function(t){this.locator=a.locator(t.text),this.config=r(r({},{scalePadding:30,textPadding:12,grid:!0,targetLine:null,showText:!0}),t)},u.prototype._getAxisPoint=function(t){var e=this._axis.max;if(this._padding){var i=e+1,n=.5/i,i=t/i;return this._isXDirection?n+i:1-n-i}return this._isXDirection?t/e:1-t/e},u);function u(){return null!==s&&s.apply(this,arguments)||this}e.TextScale=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,i=i(90),o=(r=i.default,o(s,r),s.prototype.addScale=function(t,e){t="top"===t||"bottom"===t?"left":"top";r.prototype.addScale.call(this,t,e)},s.prototype.paint=function(t,e,i){return r.prototype.paint.call(this,e,t,i)},s.prototype.getTooltipType=function(t,e,i){return void 0!==this.config.baseLine&&this._baseLinePosition>e?"left":"right"},s.prototype.getClosest=function(t,e){for(var i=[1/0,null,null,null],n=0,o=this._points;n<o.length;n++){var r=o[n],s=this._getClosestDist(t,e,r[1],r[0]);i[0]>s&&(i[0]=s,i[1]=r[1],i[2]=r[0],i[3]=r[2])}return i},s.prototype._getText=function(t){return t[4].toString()},s.prototype._getClosestDist=function(t,e,i,n){return this.config.stacked&&i<t?1/0:Math.abs(e-n)},s.prototype._path=function(t,e){return t[0]+=this._shift,"\nM "+e+" "+(t[0]-this.config.barWidth/2)+"\nH "+t[1]+"\nv "+this.config.barWidth+"\nH "+e},s.prototype._base=function(t){var e=this.config.baseLine;return this._baseLinePosition=void 0!==e?this.yScale.point(e)*t:0},s.prototype._text=function(t,e,i){e=(e+t[1])/2,t=t[0];return{x:e,y:t,class:"bar-text",transform:i&&!isNaN(i)?"rotate("+i+" "+e+" "+t+")":""}},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),B=this&&this.__assign||function(){return(B=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,G=i(0),q=i(30),Y=i(6),i=i(57),o=(r=i.default,o(s,r),s.prototype.paint=function(V,M){function T(t,e,i){return void 0===i&&(i=0),{role:"graphics-symbol","aria-roledescription":"piece of donut","aria-label":(e||"")+", "+t+" ("+Y.roundToTwoNumAfterPoint(i)+"%)"}}var H=this,t=this.config,F=t.stroke,e=t.strokeWidth,R=t.useLines,L=t.subType,A=!e||e<1?4:15<e?15:e,j=V<M?V/2:M/2,$=-.25,N=[],z=[],W=[];return 1<this._points.length&&F&&N.push(G.sv("circle",{cx:0,cy:0,r:j-.5,fill:F})),this._points.forEach(function(t,e){var i=[],n=t[0],o=t[1],r=t[2],s=t[3],a=t[4],l=0===n||1===n?-1e-6:0,c=q.getCoordinates($,j,j,1<H._points.length&&F?A/2:null),u=c[0],d=c[1],h=$+n/2;$+=n+l;var f=q.getCoordinates($,j,j,1<H._points.length&&F?-A/2:null),p=f[0],g=f[1],v=.5<n?1:0,_=q.getCoordinates(h,j,j),m=-.25<h&&h<.25,y=.5<h||h<0,b=h<.25?5:-5,c=[5,30],l=c[0],w=c[1],f=[q.getCoordinates(h,j+l,j+l),q.getCoordinates(h,j+w,j+w)],c=f[0],x=f[1];switch(H.config.subType){case"basic":var E=m?"donut-value-title start-text":"donut-value-title end-text",C=y?-20:10,S=q.getCoordinates(h,j+10,j+10),k=m?"donut-value start-text":"donut-value end-text",I={text1:{x:(R?x:S)[0],y:(R?x:S)[1]+C,width:0,height:0,class:""},text2:{x:(R?x:S)[0],y:(R?x:S)[1]+C+16,width:0,height:0,class:""},changeSector:!1,line:b,right:m,dy:C},O=G.sv("text",B(B({x:(R?x:S)[0],y:(R?x:S)[1]+C,class:E},T(o,s,n)),{tabindex:0}),[Y.verticalCenteredText(s.toString())]),E=G.sv("text",{x:(R?x:S)[0],y:(R?x:S)[1]+C+16,class:k,"aria-hidden":"true"},[Y.verticalCenteredText(o.toString())]),k=Y.getSizesSVGText(s.toString(),{font:"normal 14px Roboto",lineHeight:14});I.text1.width=k[0],I.text1.height=k[1],k=Y.getSizesSVGText(o.toString(),{font:"normal 12px Roboto",lineHeight:12}),I.text2.width=k[0],I.text2.height=k[1];var P=R?j+w:j+10;0!==z.length&&(m?(z.forEach(function(t){Y.checkPositions(I.text1,t.text1,P,P,I),Y.checkPositions(I.text1,t.text2,P,P,I)}),I.text1.class&&(I.text2.class=I.text1.class)):(z.forEach(function(t){Y.checkPositions(I.text2,t.text2,P,P,I),Y.checkPositions(I.text2,t.text1,P,P,I)}),I.text2.class&&(I.text1.class=I.text2.class)),O.attrs.x=I.text1.x,O.attrs.y=I.text1.y,E.attrs.x=I.text2.x,E.attrs.y=I.text2.y,(I.text1.class||I.text2.class)&&(O.attrs.class=I.text1.class,E.attrs.class=I.text2.class),b=I.line,R?(x[0]=I.text1.x,x[1]=I.text1.y-C):(S[0]=I.text1.x,S[1]=I.text1.y-C)),z.push(I);S=G.sv("text",B({x:7*_[0]/9,y:7*_[1]/9,class:"pie-inner-value"},T(o,s,n)),[Y.verticalCenteredText(Math.round(100*n)+"%")]);i.push(G.sv("g",{id:r+"-text",class:"chart donut"},[O,E])),i.push(S);break;case"valueOnly":var D=G.sv("text",B(B({x:7*_[0]/9,y:7*_[1]/9,class:"pie-inner-value"},T(o,s,n)),{tabindex:0}),[Y.verticalCenteredText(""+o)]);i.push(D);break;case"percentOnly":D=G.sv("text",B(B({x:7*_[0]/9,y:7*_[1]/9,class:"pie-inner-value"},T(o,s,n)),{tabindex:0}),[Y.verticalCenteredText(Math.round(100*n)+"%")]);i.push(D)}R&&"basic"===L&&(C=y?3:0,i.push(G.sv("path",{d:"M"+c[0]+" "+c[1]+" L"+x[0]+"\n\t\t\t\t\t\t\t"+(x[1]+C)+" h "+b,id:r+"-connector",class:"pie-value-connector chart donut"})));l=0,f=0,c=A/(2*Math.sin(Math.PI/H._points.length));1<H._points.length&&F&&(l=(c=q.getCoordinates(h,c,c))[0],f=c[1]);g="M "+u+" "+d+" A "+j+" "+j+" 0 "+v+" 1 "+p+" "+g+"\n\t\t\t\tL "+(0+l)+" "+(0+f),l=q.getCoordinates(h,4,4),f=l[0],l=l[1],l=G.sv("path",{d:g,_key:r,fill:a||Y.getDefaultColor(e),class:"chart donut",onclick:[H._handlers.onclick,t[1],t[2]],onmouseout:[q.pieLikeHandlers.onmouseout],onmouseover:[q.pieLikeHandlers.onmouseover,f,l],role:"presentation"});i.unshift(l),N.push(G.sv("g",{id:r},i)),1===H._points.length?W.push([V/2,M/2]):W.push([.8*_[0]+V/2,.8*_[1]+M/2])}),this._center=[V/2,M/2],this._tooltipData=W,(N=N.concat([])).push(G.sv("circle",{cx:0,cy:0,r:5*j/9,fill:"#FFFFFF",role:"presentation"})),G.sv("g",B(B({transform:"translate("+V/2+", "+M/2+")"},{"aria-label":"chart "+(this.config.text||"")}),{tabindex:0}),N)},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),Y=this&&this.__assign||function(){return(Y=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,X=i(1),U=i(0),K=i(30),J=i(6),i=i(57),o=(r=i.default,o(s,r),s.prototype.paint=function(V,M){var T=this,t=this.config,H=t.stroke,e=t.strokeWidth,F=t.gradient,R=t.useLines,L=t.showText,A=t.showTextTemplate,j=t.subType,$=!e||e<1?4:15<e?15:e,N=V<M?V/2:M/2,z=-.25,W=[],B=[],e=[],G=[],q=[];return 1<this._points.length&&H&&e.push(U.sv("circle",{cx:0,cy:0,r:N-.5,fill:H})),this._points.forEach(function(t,e){var i=[],n=t[0],o=t[1],r=t[2],s=t[3],a=t[4],l=0===n||1===n?-1e-6:0,c=a||J.getDefaultColor(e);F&&(p=F(a),g="gradient"+X.uid(),v=J.getRadialGradient(p.options,p.stops,g),c="url(#"+g+")",G.push(v));var u=K.getCoordinates(z,N,N,1<T._points.length&&H?$/2:null),e=u[0],a=u[1],d=z+n/2,h=d<.25?5:-5,f=K.getCoordinates(d,N,N);z+=n+l;var p=K.getCoordinates(z,N,N,1<T._points.length&&H?-$/2:null),g=p[0],v=p[1],u=.5<n?1:0,l=[5,30],p=l[0],_=l[1],l=[K.getCoordinates(d,N+p,N+p),K.getCoordinates(d,N+_,N+_)],p=l[0],m=l[1],y=-.25<d&&d<.25,b=.5<d||d<0,w=-.25<d&&d<.25?"pie-value start-text":"pie-value end-text";switch((L||A)&&!1!==L&&(D=U.sv("text",{x:.7*f[0],y:.7*f[1],class:"pie-inner-value","aria-hidden":"true"},[A?J.verticalCenteredText(A(o.toString())):J.verticalCenteredText(o.toString())]),i.push(D)),T.config.subType){case"basic":var x=b?-20:10,E=K.getCoordinates(d,N+10,N+10),C=y?"donut-value start-text":"donut-value end-text",S={text1:{x:(R?m:E)[0],y:(R?m:E)[1]+x,width:0,height:0,class:""},text2:{x:(R?m:E)[0],y:(R?m:E)[1]+x+16,width:0,height:0,class:""},changeSector:!1,line:h,right:y,dy:x},k=U.sv("text",Y({x:(R?m:E)[0],y:(R?m:E)[1]+x,class:w},(I=n,{role:"graphics-symbol","aria-roledescription":"piece of pie","aria-label":(s||"")+", "+o+" ("+J.roundToTwoNumAfterPoint(I)+"%)"})),[J.verticalCenteredText(s.toString())]),I=U.sv("text",{x:(R?m:E)[0],y:(R?m:E)[1]+x+16,class:C,"aria-hidden":"true"},[J.verticalCenteredText(o.toString())]),C=J.getSizesSVGText(s.toString(),{font:"normal 14px Roboto",lineHeight:14});S.text1.width=C[0],S.text1.height=C[1],C=J.getSizesSVGText(o.toString(),{font:"normal 12px Roboto",lineHeight:12}),S.text2.width=C[0],S.text2.height=C[1];var O=R?N+_:N+10;0!==W.length&&(y?(W.forEach(function(t){J.checkPositions(S.text1,t.text1,O,O,S),J.checkPositions(S.text1,t.text2,O,O,S)}),S.text1.class&&(S.text2.class=S.text1.class)):(W.forEach(function(t){J.checkPositions(S.text2,t.text2,O,O,S),J.checkPositions(S.text2,t.text1,O,O,S)}),S.text2.class&&(S.text1.class=S.text2.class)),k.attrs.x=S.text1.x,k.attrs.y=S.text1.y,I.attrs.x=S.text2.x,I.attrs.y=S.text2.y,(S.text1.class||S.text2.class)&&(k.attrs.class=S.text1.class,I.attrs.class=S.text2.class),h=S.line,R?(m[0]=S.text1.x,m[1]=S.text1.y-x):(E[0]=S.text1.x,E[1]=S.text1.y-x)),W.push(S);E=U.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[J.verticalCenteredText(Math.round(100*n)+"%")]);i.push(U.sv("g",{id:r+"-text",class:"chart donut"},[k,I])),i.push(E);break;case"valueOnly":var P=U.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[J.verticalCenteredText(""+o)]);i.push(P);break;case"percentOnly":P=U.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[J.verticalCenteredText(Math.round(100*n)+"%")]);i.push(P)}R&&"basic"===j&&(x=b?3:0,i.push(U.sv("path",{d:"M"+p[0]+" "+p[1]+" L"+m[0]+"\n\t\t\t\t\t\t\t"+(m[1]+x)+" h "+h,id:r+"-connector",class:"pie-value-connector chart pie"})));var l=0,D=0,p=$/(2*Math.sin(Math.PI/T._points.length));1<T._points.length&&H&&(l=(p=K.getCoordinates(d,p,p))[0],D=p[1]);v="M "+e+" "+a+" A "+N+" "+N+" 0 "+u+" 1 "+g+" "+v+"\n\t\t\t\tL "+(0+l)+" "+(0+D),l=K.getCoordinates(d,4,4),D=l[0],l=l[1],l=U.sv("path",{d:v,class:"chart pie",_key:r,fill:c,onclick:[T._handlers.onclick,t[1],t[2]],onmouseover:[K.pieLikeHandlers.onmouseover,D,l],onmouseout:[K.pieLikeHandlers.onmouseout],role:"presentation"});i.unshift(l),q.push(U.sv("g",{id:r},i)),1===T._points.length?B.push([V/2,M/2]):B.push([.7*f[0]+V/2,.7*f[1]+M/2])}),this._center=[V/2,M/2],this._tooltipData=B,e.push(U.sv("defs",G)),e=(e=e.concat(q)).concat([]),U.sv("g",Y(Y({transform:"translate("+V/2+", "+M/2+")"},{"aria-label":"chart "+(this.config.text||"")}),{tabindex:0}),e)},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),Y=this&&this.__assign||function(){return(Y=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,X=i(0),U=i(30),K=i(6),i=i(57),o=(r=i.default,o(s,r),s.prototype.paint=function(M,T){var H=this,t=this.config,F=t.subType,R=t.useLines,L=t.showText,A=t.showTextTemplate,j=M<T?M/2:T/2,$=.5*j,N=j/5,z=[],W=-.25,B=[],G=[],q=[];return this._points.forEach(function(t,e){var i=t[0],n=t[1],o=t[2],r=t[3],s=t[4],a=0===i||1===i?-1e-6:0,l=U.getCoordinates(W,j,$),c=l[0],u=l[1],d=W+i/2,h=d<.25?5:-5,f=U.getCoordinates(d,j,$),p=0;0<d&&d<.5&&(p=N*Math.sin(2*Math.PI*d));var g=U.getCoordinates(d,j+5+p,5+$+p),v=U.getCoordinates(d,j+30+p,30+$+p),_=W+i+a,m=U.getCoordinates(_,j,$),l=m[0],a=m[1],m=.5<i?1:0,y=-.25<d&&d<.25,b=.5<d||d<0,w=y?"pie-value start-text":"pie-value end-text";switch(H.config.subType){case"basic":var x=b?-20:10,E=y?"donut-value start-text":"donut-value end-text",C={text1:{x:(R?v:g)[0],y:(R?v:g)[1]+x,width:0,height:0,class:""},text2:{x:(R?v:g)[0],y:(R?v:g)[1]+x+16,width:0,height:0,class:""},changeSector:!1,line:h,right:y,dy:x},S=X.sv("text",Y({x:(R?v:g)[0],y:(R?v:g)[1]+x,dx:R?0<h/2+h?10:-10:null,class:w},(I=i,{role:"graphics-symbol","aria-roledescription":"piece of pie","aria-label":(r||"")+", "+n+" ("+K.roundToTwoNumAfterPoint(I)+"%)"})),[K.verticalCenteredText(r.toString())]),k=X.sv("text",{x:(R?v:g)[0],y:(R?v:g)[1]+x+16,dx:R?0<h/2+h?10:-10:null,class:E,"aria-hidden":"true"},[K.verticalCenteredText(n.toString())]),I=X.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[K.verticalCenteredText(Math.round(100*i)+"%")]),E=K.getSizesSVGText(r.toString(),{font:"normal 14px Roboto",lineHeight:14});C.text1.width=E[0],C.text1.height=E[1],E=K.getSizesSVGText(n.toString(),{font:"normal 12px Roboto",lineHeight:12}),C.text2.width=E[0],C.text2.height=E[1];var O=R?j+30+p:j+5+p,P=R?30+$+p:5+$+p;0!==q.length&&(y?(q.forEach(function(t){K.checkPositions(C.text1,t.text1,O,P,C),K.checkPositions(C.text1,t.text2,O,P,C)}),C.text1.class&&(C.text2.class=C.text1.class)):(q.forEach(function(t){K.checkPositions(C.text2,t.text2,O,P,C),K.checkPositions(C.text2,t.text1,O,P,C)}),C.text2.class&&(C.text1.class=C.text2.class)),S.attrs.x=C.text1.x,S.attrs.y=C.text1.y,k.attrs.x=C.text2.x,k.attrs.y=C.text2.y,(C.text1.class||C.text2.class)&&(S.attrs.class=C.text1.class,k.attrs.class=C.text2.class),h=C.line,R?(v[0]=C.text1.x,v[1]=C.text1.y-x):(g[0]=C.text1.x,g[1]=C.text1.y-x)),q.push(C),G.push(S,k,I);break;case"valueOnly":var D=X.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[K.verticalCenteredText(n.toString())]);G.push(D);break;case"percentOnly":D=X.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[K.verticalCenteredText(Math.round(100*i)+"%")]);G.push(D)}R&&"basic"===F&&G.push(X.sv("path",{d:"M"+g[0]+" "+g[1]+" L"+v[0]+" "+v[1]+" h "+h,class:"pie-value-connector"})),(L||A)&&!1!==L&&(V=X.sv("text",{x:.7*f[0],y:.7*f[1],class:"pie-inner-value","aria-hidden":"true"},[A?K.verticalCenteredText(A(n)):K.verticalCenteredText(n.toString())]),G.push(V));var V="";W<=0&&.5<=_?V="M "+j+" 0 v "+N+" A "+j+" "+$+" 0 1 1 "+-j+" "+N+" v "+-N:W<=0&&_<.5?V="M "+j+" 0 v "+N+" A "+j+" "+$+" 0 0 1 "+l+" "+(a+N)+" v "+-N:0<W&&W<=.5&&.5<=_?V="M "+c+" "+u+" v "+N+" A "+j+" "+$+" 0 0 1 "+-j+" "+N+" v "+-N:0<W&&_<.5&&(V="M "+c+" "+u+" v "+N+" A "+j+" "+$+" 0 0 1 "+l+" "+(a+N)+" v "+-N),V&&(V=X.sv("path",{_key:o+"__shadow__",d:V,fill:s||K.getDefaultColor(e),onclick:[H._handlers.onclick,t[1],t[2]],class:"chart pie3d addition",stroke:"none",filter:"url(#shadow)",role:"presentation"}),B.push(V));a="M "+c+" "+u+" A "+j+" "+$+" 0 "+m+" 1 "+l+" "+a+" L 0 0";B.push(X.sv("path",{d:a,_key:o,fill:s||K.getDefaultColor(e),stroke:"none",onclick:[H._handlers.onclick,t[1],t[2]],class:"chart pie3d",role:"presentation"})),1===H._points.length?z.push([M/2,T/2]):z.push([.7*f[0]+M/2,.7*f[1]+T/2]),W=_}),this._center=[M/2,T/2],this._tooltipData=z,B=B.concat(G),X.sv("g",Y(Y({transform:"translate("+M/2+", "+T/2+")"},{"aria-label":"chart "+(this.config.text||"")}),{tabindex:0}),B)},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(0),c=i(30),l=i(6),i=i(31),o=(s=i.default,o(u,s),u.prototype.addScale=function(t,e){this._scale=e},u.prototype.scaleReady=function(t){for(var e in t)t[e]+=this.config.paddings;return t},u.prototype.dataReady=function(n){var o=this;if(!this.config.active)return this._points=[];var r=l.locator(this._scale.config.value);return this._points=this._data.map(function(t,e){var i=o._locator(t),i=[i,i,t.id,i,i];return n&&(i[1]+=n[e][1]),r&&i.push(r(t)),i}),this._points},u.prototype.getTooltipText=function(t){if(this.config.tooltip){t=this._defaultLocator(this._data.getItem(t));return this.config.tooltipTemplate?this.config.tooltipTemplate(t):t}},u.prototype.paint=function(t,e){var o=this;s.prototype.paint.call(this,t,e);if(this.config.active){var i=this.config,t=[],e=this._points.map(function(t,e){return(e?"L":"M")+t[0]+" "+t[1]}).join(" ")+"Z";return t.push(a.sv("path",{d:e,stroke:i.color,"stroke-width":i.strokeWidth,fill:i.fill,"fill-opacity":i.alpha,class:"chart radar"})),i.pointType&&(e=this._points.map(function(t){return o._drawPointType(t[0],t[1],l.calcPointRef(t[2],o.id))}).map(function(t){var e,i,n;return t&&t.attrs&&(t.attrs=r(r({},t.attrs),(e=t.key,i=o._points,e&&(n=i.find(function(t){return e.includes(t[2])})),{role:"graphics-symbol","aria-roledescription":"point","aria-label":n?"point x="+n[5]+" y="+n[4]:"",tabindex:0}))),t}),t.push(a.sv("g",e))),a.sv("g",r(r({id:"seria"+i.id},{"aria-label":"chart "+(this.config.value||"")}),{tabindex:0}),t)}},u.prototype._calckFinalPoints=function(n,o){var r=this,s=n<o?n/2:o/2,a=1/this._data.getLength(),l=-.25-a;this._points.forEach(function(t,e){l+=a;var i=r._scale.point(t[0]),i=c.getCoordinates(l,i*s,i*s);t[0]=i[0]+n/2,t[1]=i[1]+o/2})},u.prototype._defaultLocator=function(t){return this._locator(t)},u.prototype._setDefaults=function(t){this._locator=l.locator(t.value),t.scales=t.scales||["radial"],this.config=r(r({},{strokeWidth:2,active:!0,tooltip:!0,paddings:5,color:"none",fill:"none",pointType:"circle"}),t),this.config.pointType&&(t=this.config.pointColor||this.config.color,this._drawPointType=this._getPointType(this.config.pointType,t))},u);function u(){return null!==s&&s.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(58),l=i(6),o=(s=a.default,o(c,s),c.prototype.addScale=function(t,e){"bottom"===t||"top"===t?(this.xScale=e,this._xLocator=l.locator(this.config.value)):(this.yScale=e,this._yLocator=l.locator(this.config.valueY))},c.prototype._setDefaults=function(t){this.config=r(r({},{active:!0,tooltip:!0,pointType:"rect"}),t);var e=this.config.pointType,t=this.config.pointColor||this.config.color;e&&(this._drawPointType=this._getPointType(e,t))},c);function c(){return null!==s&&s.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,a=i(0),l=i(91),i=i(58),o=(r=i.default,o(s,r),s.prototype._getForm=function(t,e,i,n,o){var r=e.color,s=e.css,t=l.default(t);return a.sv("path",{id:"seria"+e.id,d:t,class:s,stroke:r,"stroke-width":2,fill:"none"})},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,h=i(0),f=i(91),i=i(88),o=(r=i.default,o(s,r),s.prototype._form=function(t,e,i,n){var o=this.config,r=o.fill,s=o.alpha,a=o.strokeWidth,l=o.color,c=o.id,u=this.config.css,d="",o=this._points[0],d=n?f.default([].concat(n).reverse())+" "+f.default(this._points,!0)+" Z":"M"+o[0]+" "+e+" V "+o[1]+" "+f.default(this._points)+" V"+e+" H "+o[0];a&&(o=f.default(this._points),l=h.sv("path",{d:o,"stroke-width":a,stroke:l,fill:"none","stroke-linecap":"butt",class:u}),i.push(l));s=h.sv("path",{id:"seria"+c,d:d,class:u,fill:r,"fill-opacity":s,stroke:"none"});return i.push(s),i},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),E=this&&this.__assign||function(){return(E=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,C=i(1),S=i(0),s=i(8),k=i(6),a=i(25),i=i(31),o=(r=i.default,o(l,r),l.prototype.scaleReady=function(t){for(var e in t)t[e]+=this.config.paddings;return t},l.prototype.toggle=function(e){var t=this.config.treeSeries.find(function(t){return t.id===e});t&&(t.active=!t.active)},l.prototype.dataReady=function(){var s=this;if(!this.config.active)return this._points=[];var a="groupName"===this.config.legendType;return this._sum=0,this._data.forEach(function(t){var e,i=s._data.getItem(s._data.getParent(t.id));i&&i.$hidden&&1<s._maxLevel||(e=s._valueLocator(t))&&(i=s._getSerie(a?t.id:e,a),t.color=(i||t).color,t.$hidden=!!i&&!i.active,!t.$hidden&&e&&(s._sum+=parseFloat(t[s.config.value])))}),this._points=[],this._data.eachChild(this._data.getRoot(),function(t){var o,e,r,i;t.$hidden||(o=s._valueLocator(t),e=s._textLocator(t),r=[],!o&&s._data.haveItems(t.id)&&(o=0,s._data.eachChild(t.id,function(t){var e,i,n;t.$hidden||(e=s._valueLocator(t),i=s._textLocator(t),n=t.color||(null===(n=s._getSerie(a?t.id:e,a))||void 0===n?void 0:n.color),e&&(o+=e),r.push([0,e,t.id,i,n]))})),t.percent=parseFloat(o)/s._sum,i=t.color||(null===(i=s._getSerie(a?t.id:o,a))||void 0===i?void 0:i.color),s._points.push([t.percent,o,t.id.toString(),e,i,{items:r}]))},!1),this._maxLevel=this._getMaxLevel(),this._points},l.prototype.paint=function(t,e){var p=this;if(!!this.config.treeSeries.find(function(t){return t.active})){var g=this.config.strokeWidth,v=[],_=[],i=[],n=1<this._maxLevel?2*g:g,t=t-n,e=e-n;this._layout={id:C.uid(),area:t*e,width:t,height:e,restArea:t*e,restWidth:t,restHeight:e,startX:n/2,startY:n/2,stroke:n};var m=this._layout.startX,y=this._layout.startY;return this._layout.width>=this._layout.height?this._layout.cols=[]:this._layout.rows=[],this._points.sort(function(t,e){return e[0]-t[0]}),this._points.forEach(function(e,t,i){var n,o,r,s,a,l,c,u,d=e[0],h=(e[1],e[2]),f=(e[3],e[4],e[5]);0!==d&&(n=(r=p._drawBar(e,t,i,p._layout,m,y,!(!f||null===(a=f.items)||void 0===a||!a.length)))[0],o=r[1],d=r[2],t=r[3],i=r[4],a=r[5],r=r[6],m=a[0],y=a[1],_.push(S.sv("g",{id:h},[n,o,r])),v.push(d),f&&null!==(s=f.items)&&void 0!==s&&s.length&&(s=a[2]-g,a=a[3]-g,l={id:C.uid(),parent:p._layout.id,area:s*a,width:s,height:a,restArea:s*a,restWidth:s,restHeight:a,startX:m+g/2,startY:y+g/2+("asc"!==p.config.direction&&r?g/2:0),stroke:g},c=l.startX,u=l.startY,l.width>=l.height?l.cols=[]:l.rows=[],f.items.map(function(t){return t[0]=t[1]/e[1]}),f.items.sort(function(t,e){return e[0]-t[0]}),f.items.forEach(function(t,e,i){var n=t[2],o=p._drawBar(t,e,i,l,c,u,!1),r=o[0],t=o[1],e=o[2],i=o[3],o=o[4];_.push(S.sv("g",{id:n},[r,t])),v.push(e),c=i,u=o})),m=t,y=i)}),i.push(S.sv("defs",v)),i=i.concat(_),S.sv("g",E(E({id:"seria"+this.config.id},{"aria-label":"chart "+(this.config.text||"")}),{tabindex:0,transform:"asc"===this.config.direction?"rotate(180 "+(this._layout.startX+this._layout.width/2)+" "+(this._layout.startY+this._layout.height/2)+")":""}),i)}},l.prototype._drawBar=function(t,e,i,n,o,r,s){var a=this,l=t[0],c=t[1],u=t[2],d=t[3],h=t[4],f=this.config,p=f.stroke,g=f.showText,v=f.showTextTemplate,_=l*n.area,m=this._getDeepParent(n),y=s&&0<l&&d,b=n.startX+n.width-m.restWidth,w=n.startY+n.height-m.restHeight;o=b<o?b:o,r=w<r?w:r;f=this._getBar(m,_,o,r,i,e,n.area),b=f[0],w=f[1],m=f[2],o=f[3],r=f[4];if(!(b[2]<0||b[3]<0)){this._recountParentArea(_,r,n);var x,f=y?S.sv("rect",{x:b[0]+n.stroke/4,y:"asc"===this.config.direction?b[1]+b[3]-this._headerHeight-n.stroke/2:b[1]+n.stroke/4,width:b[2]-n.stroke/2,height:this._headerHeight+n.stroke/4,stroke:p,"stroke-width":n.stroke/2,class:"treeMap-header",_key:u,onclick:function(){return a._toggleGroup(u)}}):null,_=y?S.sv("text",{x:b[0]+b[2]/2,y:"asc"===this.config.direction?b[1]+b[3]-this._headerHeight/2-n.stroke/2:b[1]+this._headerHeight/2+n.stroke/2,class:"header-text","aria-hidden":"true",transform:"asc"===this.config.direction?"rotate(180 "+(b[0]+b[2]/2)+" "+(b[1]+b[3]-this._headerHeight/2-n.stroke/2)+")":""},[v?k.verticalCenteredText(v(null==d?void 0:d.toString())):k.verticalCenteredText(null==d?void 0:d.toString())]):null,r=s&&0<l&&d?S.sv("g",{},[f,_]):null,y=v?v(null==d?void 0:d.toString()):null==d?void 0:d.toString(),f=k.getSizesSVGText(y,{font:"normal 12px Roboto",lineHeight:14})[0]<b[2]-2*n.stroke,_=C.uid(),v=b[2]>2*n.stroke&&b[3]>2*n.stroke?S.sv("clipPath",{id:_,"clip-rule":"nonzero"},[S.sv("rect",{x:b[0]+n.stroke,y:b[1]+n.stroke,width:b[2]-2*n.stroke,height:b[3]-2*n.stroke,fill:"none",stroke:"black"})]):null,e=S.sv("rect",E(E({},(x=l,{role:"graphics-symbol","aria-roledescription":"piece of treeMap","aria-label":(d||"")+", "+c+" ("+k.roundToTwoNumAfterPoint(x)+"%)"})),{x:b[0],y:b[1],width:b[2],height:b[3],stroke:p,"stroke-width":n.stroke,class:"chart treeMap",_key:u,fill:h,onclick:[this._handlers.onclick,t[1],t[2]],onmousemove:1<this._maxLevel&&1===this._getDataLevel(u)?"":[this._handlers.onmousemove,i[e][2],this.id],onmouseleave:1<this._maxLevel&&1===this._getDataLevel(u)?"":[this._handlers.onmouseleave,i[e][2],this.id]})),y=g?S.sv("text",{x:f?w[0]:b[0]+n.stroke,y:w[1],class:"treeMap-inner-value "+(f?"":"start-text"),"aria-hidden":"true","clip-path":'url("#'+_+'")',transform:"asc"===this.config.direction?"rotate(180 "+w[0]+" "+w[1]+")":""},[k.verticalCenteredText(y)]):null;return s&&r&&(b[1]+="asc"===this.config.direction?0:this._headerHeight,b[3]-=this._headerHeight+n.stroke/4),[e,y,v,m,o,b,r]}},l.prototype._getBar=function(t,e,i,n,l,c,u){var o,r,s,a,d=this,h=function(t,e,i,n){for(var o={area:0,width:t.width,height:t.height},r=e;r<=i;r++)o.area+=l[r][0]*u;"rows"===n?o.width=o.area/o.height:o.height=o.area/o.width;var s="rows"===n?o.width:t.area/o.height,a="rows"===n?t.area/o.width:o.height;return(s/a>d._aspectRatio||a/s>d._aspectRatio)&&.01<l[c][0]&&i!==d._points.length-1?h(t,e,i+1,n):[s,a,o]},f=i,p=n,g=t.restWidth>t.restHeight?"cols":"rows",v="cols"==g?"rows":"cols",_="cols"==g?e/t.restHeight:t.restWidth,m="cols"==g?t.restHeight:e/t.restWidth;return(m/_>this._aspectRatio||_/m>this._aspectRatio)&&0!==Math.round(e-t.restArea)&&c<l.length-2&&e<t.restArea?(o=void 0,r={id:C.uid(),area:e,width:_,height:m},s=h(r,c,c+1,v),r.width=s[0],r.height=s[1],o=s[2],_=r.width,m=r.height,(s={id:C.uid(),area:o.area,width:o.width,height:o.height,restArea:o.area,restWidth:"cols"==v?o.width-_:o.width,restHeight:"cols"==v?o.height:o.height-m})[v]=[r],o=s,r.parent=o.id,t[g]||t[v]?t[v]?(a=C.uid(),t[v].push(((s={id:a,parent:t.id,area:t.restArea,width:t.restWidth,height:t.restHeight,restArea:t.restArea,restWidth:"cols"==g?t.restWidth-o.width:t.restWidth,restHeight:"cols"==g?t.restHeight:t.restHeight-o.height})[g]=[o],s)),o.parent=a):(t[g].push(o),o.parent=t.id):(t[g]=[o],o.parent=t.id),"cols"==g?(t.restWidth-=o.width,p+=m):(t.restHeight-=o.height,f+=_)):(r={id:C.uid(),area:e,width:_,height:m},t[v]&&t.restArea.toFixed(2)>e.toFixed(2)?(a=C.uid(),t[v].push(((v={id:a,parent:t.id,area:t.restArea,width:t.restWidth,height:t.restHeight,restArea:t.restArea,restWidth:"cols"==g?t.restWidth-_:t.restWidth,restHeight:"cols"==g?t.restHeight:t.restHeight-m})[g]=[r],v)),r.parent=a):((t.cols||t.rows).push(r),r.parent=t.id,"cols"==g?t.restWidth-=_:t.restHeight-=m),"cols"==g?(f+=_,p=0===Math.round(t.restArea-e)?p+m:p):(p+=m,f=0===Math.round(t.restArea-e)?f+_:f)),[[i,n,r.width,r.height],[i+r.width/2,n+r.height/2],f,p,r.parent]},l.prototype._setDefaults=function(t){this.config=E(E({},{active:!0,stroke:"#FFFFFF",strokeWidth:2,showText:!0,tooltip:!0,paddings:5,color:"none",fill:"none",direction:"desc"}),t),this._headerHeight=25,this._aspectRatio=2.5,this._valueLocator=k.locator(t.value),this._textLocator=k.locator(t.text)},l.prototype._defaultLocator=function(t){return[this._valueLocator(t),this._textLocator(t)]},l.prototype._getSerie=function(i,n){var o=this;return this.config.treeSeries.find(function(t){if(n){var e=o._data.getParent(i);return t.id===e||t.id===i}return t.from&&t.to&&i>=t.from&&i<t.to||t.less&&i<t.less||t.greater&&i>t.greater})},l.prototype._getDataLevel=function(t){var e=1;return this._data.eachParent(t,function(){e++}),e},l.prototype._getMaxLevel=function(){var e=this,i=1;return this._data.forEach(function(t){t=e._getDataLevel(t.id);i=Math.max(t,i)}),i},l.prototype._getDeepParent=function(t){var e=null===(e=t.cols||t.rows)||void 0===e?void 0:e.find(function(t){return t.restArea&&0<Math.round(t.restArea)});return e?this._getDeepParent(e):t},l.prototype._getLayoutObj=function(t,e){var i;if(void 0===e&&(e=this._layout),e.id===t)i=e;else{var n=e.cols||e.rows;if(!n||!n.length)return;for(var o=0;o<n.length&&!(i=this._getLayoutObj(t,n[o]));o++);}return i},l.prototype._recountParentArea=function(t,e,i){e=this._getLayoutObj(e,i);e&&e.id!==i.parent&&(e.restArea-=t,e.parent&&this._recountParentArea(t,e.parent,i))},l.prototype._toggleGroup=function(e){var i=this,n=0;this.config.treeSeries.forEach(function(t){t.active&&n++}),this._data.eachChild(this._data.getRoot(),function(t){t.id!==e&&("groupName"===i.config.legendType?(1<n&&(i._getSerie(t.id,!0).active=!0),i._events.fire(a.ChartEvents.toggleSeries,[t.id])):(t.$hidden=!t.$hidden,i._events.fire(s.DataEvents.change)))},!1)},l);function l(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,_=i(1),S=i(16),k=i(0),m=i(8),l=i(6),i=i(31),o=(a=i.default,o(c,a),c.prototype.scaleReady=function(t){for(var e in t)t[e]+=this.config.paddings;return t},c.prototype.dataReady=function(){var a,l,c=this,u=[];this._years=[],this._points=[],this.config.startDate&&(a="string"==typeof this.config.startDate?S.stringToDate(this.config.startDate,this.config.dateFormat):this.config.startDate),this.config.endDate&&(l="string"==typeof this.config.endDate?S.stringToDate(this.config.endDate,this.config.dateFormat):this.config.endDate),(null==l?void 0:l.getTime())<(null==a?void 0:a.getTime())&&m.dhxError("Incorrect endDate/startDate property set, see docs: https://docs.dhtmlx.com/suite/chart/api/chart_series_config"),this._data.forEach(function(t){var i=Number(c._valueLocator(t)),n=c._dateLocator(t);"string"==typeof n&&(n=S.stringToDate(n,c.config.dateFormat));var e=null===n||void 0===n?void 0:n.getTime(),o=(null===(s=t.id)||void 0===s?void 0:s.toString())||_.uid();if(a||l){var r=S.DateHelper.dayStart(n).getTime(),t=a&&S.DateHelper.dayStart(a).getTime()||0,s=l&&S.DateHelper.dayStart(l).getTime()||1/0;if(r<t||s<r)return}r=u.findIndex(function(t){var e=t[0],t=t[1],e=S.DateHelper.isSameDay(new Date(e),n);return e&&(i+=t),e});-1<r&&(u[r]=[e,i,o]),i&&(c._minValue=!c._minValue||i<c._minValue?i:c._minValue,c._maxValue=!c._maxValue||i>c._maxValue?i:c._maxValue),r<0&&u.push([e,i,o])}),u.sort(function(t,e){return t[0]-e[0]}),this._minValue===this._maxValue&&(this._minValue-=10),this._maxValue=!isNaN(this.config.maxValue)&&this.config.maxValue||this._maxValue,this._minValue=!isNaN(this.config.minValue)&&this.config.minValue||this._minValue,this._maxValue=10*Math.ceil(this._maxValue/10),this._minValue=10*Math.floor(this._minValue/10);var t=a||new Date(u[0][0]),e=l||new Date(u[u.length-1][0]),i=t.getFullYear(),n=e.getFullYear();this.config.startDate||this.config.endDate?this.config.startDate&&!this.config.endDate?(t=new Date(t.getFullYear()+1,t.getMonth(),t.getDate()-1),e.getTime()>t.getTime()&&t.setFullYear(e.getFullYear()+1),n=(l=t).getFullYear()):!this.config.startDate&&this.config.endDate&&(a=new Date(i,0,1)):(n=e.getFullYear(),a=new Date(i,0,1),l=new Date(n,11,31));for(var o=0,r=new Date(a.getTime()),s=new Date(l.getFullYear(),l.getMonth(),l.getDate()+1);!S.DateHelper.isSameDay(r,s);){var d=u.length&&new Date(u[o][0]),h=function(){return r.setDate(r.getDate()+1)};if(u.length)if(o<u.length-1){for(;!S.DateHelper.isSameDay(r,d);)this._points.push([r.getTime(),0,_.uid()]),h();this._points.push(u[o]),o+=1}else S.DateHelper.isSameDay(r,d)?this._points.push(u[o]):this._points.push([r.getTime(),0,_.uid()]);else this._points.push([r.getTime(),0,_.uid()]);h()}for(var f=new Date,p=a.getMonth(),g=a.getDate(),v=0;v<this._points.length;v++)f.setTime(this._points[v][0]),(0===v||p===f.getMonth()&&g===f.getDate()&&v!==this._points.length-1)&&this._years.push({year:f.getFullYear(),startIndex:v});return this._points},c.prototype.paint=function(t,e){var m,y,b=this,i=this.config,n=i.days,w=i.months;switch(this.config.weekStart){case"saturday":m=-1;break;case"monday":m=1;break;default:m=0}switch(this.config.weekStart){case"saturday":y=s([null==n?void 0:n[6]],n.slice(0,-1));break;case"monday":y=s(n.slice(1),[null==n?void 0:n[0]]);break;default:y=n}var x=[],i=[],E=0,C=0;this._years.forEach(function(t,i){for(var e=t.year,n=t.startIndex,o=new Date(e,0,1),r=[],s=[],a=0,l=1,c=n;c<b._points.length&&c!==(null===(_=b._years[i+1])||void 0===_?void 0:_.startIndex);c++){var u=b._points[c],d=u[0],h=u[1],f=u[2],p=new Date;p.setTime(d);var g=p.getMonth(),v=S.DateHelper.addDay(p,-1*m).getDay();0!==v||S.DateHelper.isSameDay(o,p)||(l+=1);var _=0<=h?h/b._maxValue||0:h/b._minValue||0;0<b._maxValue*b._minValue&&(_=(h-b._minValue)/(b._maxValue-b._minValue));u=10+l*(b._cellSize+2),d=.5+(v+1)*(b._cellSize+2)+i*(y.length*b._cellSize+b._headerHeight);6===v&&(C=d+4*b._cellSize),r.push(k.sv("rect",{x:u,y:d,fill:b.config.color,width:b._cellSize,height:b._cellSize,onclick:[b._handlers.onclick,h,f],onmousemove:[b._handlers.onmousemove,f,b.id],onmouseleave:[b._handlers.onmouseleave,f,b.id],class:b.config.color?"":"heat-neutral"},[]));v="";0<=h&&!b.config.positiveColor?v="heat-positive":h<0&&!b.config.negativeColor&&(v="heat-negative"),0!==_&&r.push(k.sv("rect",{x:u,y:d,fill:0<=h?b.config.positiveColor:b.config.negativeColor,"fill-opacity":isFinite(_)?_:0,width:b._cellSize,height:b._cellSize,onclick:[b._handlers.onclick,h,f],onmousemove:[b._handlers.onmousemove,f,b.id],onmouseleave:[b._handlers.onmouseleave,f,b.id],class:v},[])),a=u+b._cellSize,1===p.getDate()&&(u=null==w?void 0:w[g],p=10+l*(b._cellSize+2),g=b._cellSize-2+i*(y.length*b._cellSize+b._headerHeight)+y.length*(b._cellSize+2)+4.5,u=k.sv("text",{x:p,y:8+g+12.5,class:"start-text"},[u]),g=k.sv("rect",{x:p,y:g,height:8,width:1}),s.push(k.sv("g",{class:"heat-month-text"},[g,u])))}t=y.map(function(t,e){return k.sv("text",{x:20,y:.5+(e+1)*(b._cellSize+2)+b._cellSize/2+i*(y.length*b._cellSize+b._headerHeight),class:"end-text heat-day-text"},[k.sv("tspan",{dy:"0.5ex"},[t])])}),n=k.sv("text",{x:10+b._cellSize+2,y:b._cellSize-4+i*(y.length*b._cellSize+b._headerHeight),class:"start-text heat-year-text"},[e]);x.push(k.sv("g",{id:e+"_year"},[n,s,t,r])),E=a<E?E:a});i.push(k.sv("defs",[])),i=i.concat(x);e=e/C<1?e/C:1,t=(t-E*e)/2;return k.sv("g",r(r({id:"seria"+this.config.id},{"aria-label":"chart "+(this.config.text||"")}),{tabindex:0,transform:"translate("+(0<t?t:0)+", 26) scale("+e+")"}),i)},c.prototype._setDefaults=function(t){this.config=r(r({},{tooltip:!0,paddings:5,weekStart:"sunday",days:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),t),this._headerHeight=70,this._cellSize=16,this._valueLocator=l.locator(t.value),this._dateLocator=l.locator(t.date)},c.prototype._defaultLocator=function(t){return[this._valueLocator(t),S.getFormattedDate("%d/%m/%y",this._dateLocator(t))]},c);function c(){return null!==a&&a.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var g=i(10),s=i(6),v=i(89),n=i(25),i=(o.prototype.destructor=function(){this._tooltip&&(document.body.removeChild(this._tooltip),this._tooltip=null)},o.prototype._showLineTooltip=function(t){for(var e,i,n,o,r,s="",a=this._chart.getRootView(),l=0,c=0,u=t;c<u.length;c++){var d,h,f,p=u[c];l+=p.top,this._prevLine=a&&a.refs&&a.refs["line"+Math.round(p.left)]&&a.refs["line"+Math.round(p.left)].el,this._prevLine.classList.add("grid-line__active"),!p.text||(h=(d=this._chart.getSeries(p.seriaId)).getPoints()).length&&d.config.tooltip&&(f=d.config.pointColor||(d.config.color&&"none"!==d.config.color?d.config.color:d.config.fill),f=v.getShadeHTMLHelper("empty"!==d.config.pointType&&d.config.pointType?d.config.pointType:"simpleRect",f),s+='<div class="line-point" _ref="dhx_tooltip_'+d.config.id+'_box">\n\t\t\t\t<svg class="dhx_tooltip_svg" role="graphics-document" style="width: 8px; height: 8px;">'+f(4,4,h[0][2])+'</svg>\n\t\t\t\t<span class="dhx_line-point-text" _ref="dhx_tooltip_'+d.config.id+'_text">'+p.text+"</span>\n\t\t\t</div>")}s&&(this._tooltip||this._createTooltip(),e=document.body.offsetHeight,r=document.body.offsetWidth,this._tooltip.innerHTML=s,this._tooltip.classList.add("dhx_chart_tooltip__visible"),o=l/t.length,i=this._prevLine.getBoundingClientRect(),n=this._tooltip.offsetHeight,t=this._tooltip.offsetWidth,e<(o=o-n/2+i.top+window.scrollY)+n&&(o-=o+n-e),r<(r=i.left+10)+t&&(r=i.left-t-10),(t=g.getZIndex(this._chart.getRootNode()))&&(this._tooltip.style.zIndex=t.toString()),this._tooltip.style.left=r+"px",this._tooltip.style.top=o+"px")},o.prototype._showTooltip=function(t,e){this._tooltip||this._createTooltip();var i=document.body.offsetHeight,n=document.body.offsetWidth;this._tooltip.innerHTML=t,this._tooltip.classList.add("dhx_chart_tooltip__visible");var o=this._tooltip.offsetHeight,r=this._tooltip.offsetWidth,s=e.pageY+10,t=e.pageX+10;i<s+o&&(s=e.pageY-o),n<t+r&&(t=e.pageX-r-10);r=g.getZIndex(this._chart.getRootNode());r&&(this._tooltip.style.zIndex=r.toString()),this._tooltip.style.left=t+"px",this._tooltip.style.top=s+"px"},o.prototype._showTooltipOnClosest=function(t){this._tooltip||this._createTooltip();var e,i,n,o,r=this._chart.getSeries(t[4]);!r||(o=r.getTooltipText(t[3]))&&(e=this._chart._layers.getSizes(),i=this._chart.getRootNode().getBoundingClientRect(),this._tooltip.innerHTML=o,this._tooltip.classList.add("dhx_chart_tooltip__visible"),n=document.body.offsetHeight,r=this._tooltip.offsetHeight,n<(o=t[2]+i.top+r/2+e.top-("radar"===this._chart.config.type?10:15))+r&&(o=t[2]+i.top-r/2+e.top-("radar"===this._chart.config.type?10:15)),n<o+r&&this._tooltip.classList.remove("dhx_chart_tooltip__visible"),(r=g.getZIndex(this._chart.getRootNode()))&&(this._tooltip.style.zIndex=r.toString()),this._tooltip.style.left=i.left+t[1]+10+"px",this._tooltip.style.top=o+"px")},o.prototype._createTooltip=function(){this._tooltip=document.createElement("div"),this._tooltip.setAttribute("data-dhx-widget-id",this._chart._uid),this._tooltip.classList.add("dhx_chart_tooltip","dhx_chart_tooltip_line","dhx_chart_tooltip__hidden","tooltip-text"),document.body.appendChild(this._tooltip)},o.prototype._initEvents=function(){var a=this;this._chart.events.on(n.ChartEvents.chartMouseMove,function(n,o){var r,s;a._prevLine&&a._prevLine.classList.remove("grid-line__active"),a._mouseOverBar||(r=[],s=[1/0,null,null,null,null],a._chart.eachSeries(function(t){var e,i=t.config.type;"line"===i||"spline"===i||"splineArea"===i||"area"===i?"number"==typeof(e={value:(e=t.getClosestVertical(n))[4],text:t.getTooltipText(e[3]),seriaId:t.config.id,left:e[1],top:e[2]}).left&&"number"==typeof e.top&&r.push(e):"pie"!==i&&"pie3D"!==i&&"donut"!==i&&"radar"!==i||(i=t.getClosest(n,o),s[0]>i[0]&&(s[0]=i[0],s[1]=i[1],s[2]=i[2],s[3]=i[3],s[4]=t.id))}),r.length?(r.sort(function(t,e){return e.value-t.value}),a._showLineTooltip(r)):a._showTooltipOnClosest(s))}),this._chart.events.on(n.ChartEvents.seriaMouseMove,function(t,e,i){a._mouseOverBar=!0;var n=a._chart.getRootView(),o=a._chart.getSeries(e),r=o.getTooltipText(t),e=n&&n.refs&&n.refs[s.calcPointRef(t,e)].el;null!=e&&e.setAttribute("fill-opacity",.6<o.config.alpha?o.config.alpha-.4:1),r?a._showTooltip(r,i):a._tooltip&&a._tooltip.classList.remove("dhx_chart_tooltip__visible")}),this._chart.events.on(n.ChartEvents.seriaMouseLeave,function(t,e){a._mouseOverBar=!1;var i=a._chart.getRootView(),n=a._chart.getSeries(e);"area"===n.config.type||"treeMap"===n.config.type||"calendarHeatMap"===n.config.type||null!=(e=i&&i.refs&&i.refs[s.calcPointRef(t,e)].el)&&e.setAttribute("fill-opacity",n.config.alpha),a._tooltip&&a._tooltip.classList.remove("dhx_chart_tooltip__visible")}),this._chart.events.on(n.ChartEvents.chartMouseLeave,function(){a._tooltip&&a._tooltip.classList.remove("dhx_chart_tooltip__visible"),a._prevLine&&a._prevLine.classList.remove("grid-line__active")})},o);function o(t){this._chart=t,this._initEvents()}e.Tooltip=i},function(t,e,i){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(3),i=(n.prototype.pdf=function(t){this._rawExport(t,"pdf",this._view)},n.prototype.png=function(t){this._rawExport(t,"png",this._view)},n.prototype._rawExport=function(t,e,i){void 0===t&&(t={}),t.url=t.url||"https://export.dhtmlx.com/"+this._name+"/"+e+"/"+this._version,"pdf"===e&&(n=t.pdf||{},t.pdf=r(r({},n),{printBackground:!1}));var e="",n=i.config.exportStyles;"boolean"!=typeof t.exportStyles&&!Array.isArray(t.exportStyles)||(n=t.exportStyles),!0===n?e=s.getPageLinksCss()+"<style>"+s.getPageInlineCss()+"</style>":null!=n&&n.length&&(e=""+s.getPageLinksCss(n));n=document.createElement("div");n.setAttribute("style","display: none;");i=i.getRootView().node.el.cloneNode(!0);i.setAttribute("data-dhx-theme",t.theme||"light"),n.appendChild(i);var e="\n\t\t\t"+e+"\n\t\t\t"+n.innerHTML+"\n\t\t",o=document.createElement("form");o.setAttribute("method","POST"),o.setAttribute("action",t.url),o.innerHTML='<input type="hidden" name="raw"><input type="hidden" name="config">',o.childNodes[0].value=e,o.childNodes[1].value=JSON.stringify(t),document.body.appendChild(o),o.submit(),null!==(t=n.parentNode)&&void 0!==t&&t.removeChild(n),setTimeout(function(){var t;null!==(t=o.parentNode)&&void 0!==t&&t.removeChild(o)},100)},n);function n(t,e){this._name=t,this._view=e,this._version="8.2.2"}e.Exporter=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),g=this&&this.__assign||function(){return(g=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,v=i(92),_=i(87),m=i(1),y=i(6),b=i(85),i=i(84),o=(r=i.Chart,o(s,r),s.prototype.setConfig=function(r){var s,a=this;if(this.config=r,this._layers.clear(),this._series={},this._scales={},r.scales)for(var t in r.scales){var e=g({},r.scales[t]);void 0!==r.scales[t].min&&(s=r.scales[t].min),e.type=e.type||this._detectScaleType(e,t),r.scales.radial&&"radial"!==t&&(e.hidden=!0),this._setScale(e,t)}var i,n,o,l,c,u,d,h,f,p=new v.default;this._layers.add(p),null!==(c=r.series)&&void 0!==c&&c.forEach(function(t,e){var i;void 0!==t.baseLine&&t.baseLine<s&&(t.baseLine=void 0);var n=g({},t);switch(n.type=n.type||r.type,n.type){case"bar":case"xbar":case"area":case"splineArea":n.color||(n.color=n.fill||y.getDefaultColor(e)),n.fill||(n.fill=n.color||y.getDefaultColor(e));break;case"treeMap":n.legendType=(null===(i=r.legend)||void 0===i?void 0:i.type)||"groupName",null!==(i=null===(i=r.legend)||void 0===i?void 0:i.treeSeries)&&void 0!==i&&i.map(function(t,e){var i;t.active=null===(i=t.active)||void 0===i||i,t.id=null!==(i=t.id)&&void 0!==i?i:m.uid(),t.color||(t.color=y.getDefaultColor(e,"range"===n.legendType))}),n.treeSeries=null===(i=r.legend)||void 0===i?void 0:i.treeSeries;break;case"calendarHeatMap":n.dateFormat||(n.dateFormat="%d/%m/%y");break;case"scatter":n.pointColor||(n.pointColor=n.color||y.getDefaultColor(e))}t=_.default[n.type];(n.barWidth||a.config.barWidth)&&(n.barWidth=n.barWidth||a.config.barWidth);var o=new t(a.data,n,a.events),t=y.getScales(r.scales);(1<t.length&&"radial"!==t[0]||"radial"===t[0]?t:["bottom","left"]).forEach(function(t){var e=a._scales[t];e&&(o.addScale(t,e),n.stacked?e.add(p):e.add(o))}),a._series[o.id]=o,(n.stacked?p:a._layers).add(o)}),r.legend&&((f=g({},r.legend)).series&&(f.$seriesInfo=f.series.map(function(t){return a._series[t]})),"calendarHeatMap"===this.config.type&&(i=(d=null===(h=null===(u=this.config)||void 0===u?void 0:u.series)||void 0===h?void 0:h[0]).value,n=d.positiveColor,o=d.negativeColor,l=d.color,c=d.minValue,u=d.maxValue,f.type="scale",f.form="line",f.values?(d=(h=null===(d=null===(h=this.config)||void 0===h?void 0:h.series)||void 0===d?void 0:d[0]).color,h=h.value,f.values=g(g({},f.values),{color:d,positiveColor:n,negativeColor:o,value:h,minValue:c,maxValue:u})):f.values={positiveColor:n,negativeColor:o,color:l,text:"",value:i,minValue:c,maxValue:u}),f=new b.Legend(this.data,f,this.events),this._layers.add(f)),this.paint()},s);function s(t,e){return void 0===e&&(e={}),r.call(this,t,e)||this}e.ProChart=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(93)),n(e(209)),n(e(94))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(208);e.getEditor=function(t,e){return new n.InputEditor(t,e)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0),n=i(94),i=(r.prototype.endEdit=function(){var t;this._input&&(t=this._input.value,this._dataView.events.fire(n.DataViewEvents.beforeEditEnd,[t,this._item.id])?(this._input.removeEventListener("blur",this._handlers.onBlur),this._input.removeEventListener("change",this._handlers.onChange),this._input.removeEventListener("keydown",this._handlers.onKeyDown),this._handlers={},this._mode=!1,this._dataView.events.fire(n.DataViewEvents.afterEditEnd,[t,this._item.id])):this._input.focus())},r.prototype.toHTML=function(t){this._mode=!0;var e=this._config,i=e.itemsInRow,n=e.gap,e=function(t){return parseFloat(t)};return o.el(".dhx_input__wrapper",{style:{width:"calc("+100/i+"% - "+e(n)+" * "+(i-1)/i+"px)",maxWidth:"calc("+100/i+"% - "+e(n)+" * "+(i-1)/i+"px)",marginRight:t?"":n},role:"presentation"},[o.el("div.dhx_input__container",{style:{height:"100%"},role:"presentation"},[o.el("input.dhx_input",{class:(this._item.css?" "+this._item.css:"")+(t?" dhx_dataview-item--last-item-in-row":""),style:{padding:"8px, 12px",width:"100%",height:"100%"},_hooks:{didInsert:this._handlers.didInsert},_key:this._item.id,"data-dhx-id":this._item.id})])])},r.prototype._initHandlers=function(){var e=this;this._handlers={onBlur:function(){e.endEdit()},onChange:function(){e.endEdit()},onKeyDown:function(t){"Enter"===t.key&&e._item.value===e._input.value&&e.endEdit(),"Escape"===t.key&&(e._input.value=e._item.value,e.endEdit())},didInsert:function(t){t=t.el;(e._input=t).focus(),t.value=e._item.value,t.setSelectionRange(0,t.value.length),t.addEventListener("change",e._handlers.onChange),t.addEventListener("blur",e._handlers.onBlur),t.addEventListener("keydown",e._handlers.onKeyDown)}}},r);function r(t,e){var i=this;this._dataView=e,this._config=e.config,this._item=t,this._dataView.events.on(n.DataViewEvents.focusChange,function(t,e){i._mode&&e!==i._item.id&&i.endEdit()}),this._initHandlers()}e.InputEditor=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l=this&&this.__assign||function(){return(l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(21),a=i(93),c=i(0),o=(r=a.DataView,o(u,r),u.prototype.destructor=function(){r.prototype.destructor.call(this),this.scrollView=null},u.prototype.scrollTo=function(t){var e,i=this.getRootView();i&&i.node&&i.node.el&&void 0!==t&&(e=null!==(i=this.scrollView)&&void 0!==i&&i.config.enable?null===(e=this.getRootNode())||void 0===e?void 0:e.querySelector(".scroll-view"):this.getRootNode(),this._scrollTo(t,e))},u.prototype._renderList=function(){var n=this,t=this.data.getRawData(0,-1),e=this.config,o=e.itemsInRow,i=e.css,r=e.gap,s=0,a=t.reduce(function(t,e,i){return 0===s&&t.push([]),t[t.length-1].push(n._renderItem(e,i)),s=(s+1)%o,t},[]),e=a.map(function(t,e){return c.el(".dhx_dataview-row",{style:{margin:r},"aria-label":"Row "+(e+1)},t)}),t=this.scrollView&&this.scrollView.config.enable,i=(i||"")+" dhx_widget dhx_dataview"+(this.config.multiselection&&this.selection.getItem()?" dhx_no-select--pointer":"")+(t?" dhx_dataview--scroll-view":"");return c.el("",l(l(l({},this._handlers),{"data-dhx-widget-id":this._uid,class:i,style:{height:this.config.height}}),this.getDataViewAriaAttrs(this.config,this.data.getLength(),a.length,o)),t?[this.scrollView.render(e)]:e)},u);function u(t,e){void 0===e&&(e={});var i=r.call(this,t,e)||this;return i.scrollView=new s.ScrollView(function(){return i.getRootView()}),i.paint(),i}e.ProDataView=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(95)),n(e(227)),n(e(4))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(33),l=i(16),c=i(2),d=i(0),u=i(1),h=i(14),f=i(12),p=i(4),g=i(7),v=i(13),o=(s=h.Label,o(_,s),_.prototype.destructor=function(){this.events&&this.events.clear(),this.calendar&&this.calendar.destructor(),this._popup&&this._popup.destructor(),this.events=this._uid=this._propsCalendar=this._propsItem=this._props=this._isValid=null,s.prototype._destructor.call(this),this.unmount()},_.prototype.setProperties=function(t){if(t&&!u.isEmptyObj(t)&&this.events.fire(p.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e],this._propsCalendar.includes(e)&&(this.calendar.config[e]=t[e]));this.events.fire(p.ItemEvent.afterChangeProperties,[this.getProperties()]),this.calendar.paint(),this.paint()}},_.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},_.prototype.show=function(){var t=this.config,e=t.value;t.hidden&&this.events.fire(p.ItemEvent.beforeShow,[e])&&(this.config.hidden=!1,this.events.fire(p.ItemEvent.afterShow,[e]))},_.prototype.hide=function(t){var e=this.config,i=e.value;e.hidden&&!t||!this.events.fire(p.ItemEvent.beforeHide,[i,t])||(this.config.hidden=!0,this.events.fire(p.ItemEvent.afterHide,[i,t]))},_.prototype.isVisible=function(){return!this.config.hidden},_.prototype.disable=function(){this.config.disabled=!0,this.paint()},_.prototype.enable=function(){var t;this.config.disabled=!1,null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.paint()},_.prototype.isDisabled=function(){return!!this.config.disabled},_.prototype.validate=function(t,e){void 0===t&&(t=!1);var i=void 0===e?this.getValue():e,e="date"===(null===(e=this.config.valueFormat)||void 0===e?void 0:e.toLowerCase())?i instanceof Date:l.stringToDate(i,this.calendar.config.dateFormat,!0);if(t||this.events.fire(p.ItemEvent.beforeValidate,[i]))return this._isValid=this.config.validation?this.config.validation(i):!!e,t||this.events.fire(p.ItemEvent.afterValidate,[i,this._isValid]),this._isValid},_.prototype.clearValidate=function(){this.config.$validationStatus=p.ValidationStatus.pre,this.paint()},_.prototype.setValue=function(t){void 0!==t&&t!==this.config.value&&this.calendar.setValue(t)},_.prototype.getValue=function(t){var e;return this.calendar.getValue("date"===(null===(e=this.config.valueFormat)||void 0===e?void 0:e.toLowerCase())||t)||""},_.prototype.focus=function(){var t=this;d.awaitRedraw().then(function(){t.getRootView().refs.input.el.focus()})},_.prototype.blur=function(){var t=this;d.awaitRedraw().then(function(){t._popup.hide(),t.getRootView().refs.input.el.blur()})},_.prototype.clear=function(){""!==this.config.value&&this.calendar.clear()},_.prototype.getWidget=function(){return this.calendar},_.prototype._initView=function(t){var e,i=this;if(u.isEmptyObj(t))throw new Error("Check the configuration is correct");for(e in this.calendar&&this.calendar.destructor(),this._popup&&this._popup.destructor(),this.config={type:t.type,id:t.id,name:t.name,disabled:!1,editable:!1,hidden:!1,value:"",mode:"calendar",weekStart:"sunday",weekNumbers:!1,timePicker:!1,dateFormat:"%d/%m/%y",timeFormat:24,thisMonthOnly:!1,valueFormat:"string",required:!1,icon:"",placeholder:"",label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t)"id"!==e&&"type"!==e&&"name"!==e&&(this.config[e]=t[e]);this._popup=new f.Popup,this.calendar=new a.Calendar(null,g.widgetConfig(t)),this._popup.attach(this.calendar),this.config.hidden&&d.awaitRedraw().then(function(){i.hide(!0)})},_.prototype._initHandlers=function(){var n=this;this.calendar.events.on(a.CalendarEvents.beforeChange,function(t){var e;return""!==t&&"date"!==(null===(e=n.config.valueFormat)||void 0===e?void 0:e.toLowerCase())&&(t=l.getFormattedDate(n.calendar.config.dateFormat,t)),n.events.fire(p.ItemEvent.beforeChange,[t])}),this.calendar.events.on(a.CalendarEvents.change,function(){var t;n.config.value=n.calendar.getValue("date"===(null===(t=n.config.valueFormat)||void 0===t?void 0:t.toLowerCase())),n.events.fire(p.ItemEvent.change,[n.config.value]),g.isVerify(n.config)&&n.validate(),n._popup.hide(),n.paint()}),this.events.on(p.ItemEvent.afterValidate,function(){n.config.$validationStatus=n._isValid?p.ValidationStatus.success:p.ValidationStatus.error,n.paint()}),this.events.on(p.ItemEvent.blur,function(){n._popupIsFocus=!1,n.paint()}),this._popup.events.on(f.PopupEvents.afterHide,function(){document.activeElement!==n.getRootView().refs.input.el&&n.events.fire(p.ItemEvent.blur,[n.getValue()]),n.paint()}),document.addEventListener("keydown",function(t){var e,i=document.activeElement;(null===(e=null===(e=null===(e=n.getRootView())||void 0===e?void 0:e.refs)||void 0===e?void 0:e.input)||void 0===e?void 0:e.el)!==i&&!n._popup.isVisible()||n.events.fire(p.ItemEvent.keydown,[t])}),document.addEventListener("mousedown",function(){n._popup.getContainer()!==document.activeElement&&(n._popupIsFocus=!1)})},_.prototype._getHandlers=function(){var e=this;return{onblur:function(){e._popup.isVisible()||e.events.fire(p.ItemEvent.blur,[e.getValue()]),e.paint()},onfocus:function(){var t;e._popup.isVisible()||(t=e.getRootView().refs.input.el,e._popup.show(t,{theme:t}),e.events.fire(p.ItemEvent.focus,[e.getValue()]),e.paint())},oninput:function(t){t=t.target.value;e.events.fire(p.ItemEvent.input,[t])},onchange:function(t){t=t.target.value;e.config.editable&&l.stringToDate(t,e.calendar.config.dateFormat,!0)?e.setValue(t):""===t&&e.clear()}}},_.prototype._initHotkeys=function(){var t,i=this,e={"shift+tab":function(){i._applyTab()},tab:function(){i._applyTab()},escape:function(){i._popup.isVisible()&&i.getRootView().refs.input.el.focus(),i._popup.hide()},enter:function(t){t.preventDefault(),i._popup.isVisible()||(t=i.getRootView().refs.input.el,i._popup.show(t,{theme:t}))},arrowRight:function(t){var e=i._popup.getContainer();i._popup.isVisible()&&!i._popupIsFocus&&(t.preventDefault(),e.focus(),i._popupIsFocus=!0)}};for(t in e)this._keyManager.addHotKey(t,e[t])},_.prototype._draw=function(){var t=this.config,e=t.icon,i=t.required,n=t.disabled,o=t.placeholder,r=t.name,s=t.id,a=t.editable,l=t.label,c=t.helpMessage,t=this.calendar.getValue(),u=this._popup.isVisible()||(null===(u=null===(u=null===(u=this.getRootView())||void 0===u?void 0:u.refs)||void 0===u?void 0:u.input)||void 0===u?void 0:u.el)===document.activeElement;return d.el("div.dhx_form-group",{class:g.getFormItemCss(this.config,g.isVerify(this.config),u)},[this._drawLabel(),d.el(".dhx_input__wrapper",[d.el("div.dhx_input__container",{},[d.el(".dhx_input__icon",{class:e||"dxi dxi-calendar-today"}),d.el("input.dhx_input.dhx_input--icon-padding",{tabindex:0,"data-dhx-id":r||s,_key:this._uid,_ref:"input",value:t,type:"text",required:i,disabled:n,class:u&&"dhx_input--focus",placeholder:o||"",name:r||"",id:s||this._uid,onfocus:this._handlers.onfocus,oninput:this._handlers.oninput,onchange:this._handlers.onchange,onblur:this._handlers.onblur,autocomplete:"off",readOnly:!a,"aria-label":l||(a?"type or":"")+" select date","aria-describedby":c?"dhx_label__help_"+(s||this._uid):null})]),g.getValidationMessage(this.config)&&d.el("span.dhx_input__caption",{},g.getValidationMessage(this.config))])])},_.prototype._applyTab=function(){var t;document.activeElement===(null===(t=null===(t=null===(t=this._popup.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.content)||void 0===t?void 0:t.el)||this._popupIsFocus||this._popup.hide()},_);function _(t,e){var i=s.call(this,null,e)||this;i.events=new c.EventSystem,i._isValid=!0,i._popupIsFocus=!1,i._propsItem=["required","validation","valueFormat","icon","placeholder","editable","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage"],i._propsCalendar=["mode","mark","disabledDates","weekStart","weekNumbers","timePicker","dateFormat","timeFormat","thisMonthOnly"],i._props=r(g.baseProps,i._propsItem,i._propsCalendar),i._keyManager=new v.KeyManager(function(){var t,e=document.activeElement;return(null===(t=null===(t=null===(t=i.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.input)||void 0===t?void 0:t.el)===e||i._popup.isVisible()}),i._initView(e),i._initHandlers(),i._initHotkeys();return i.mount(t,d.create({render:function(){return i._draw()}})),i}e.DatePicker=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,p=i(0),l=i(5),c=i(4),u=i(2),d=i(1),h=i(7),o=(a=l.View,o(f,a),f.prototype.destructor=function(){this.events&&this.events.clear(),this.config=this._propsItem=this._props=this.events=this._handlers=this._uid=null,this.unmount()},f.prototype.setProperties=function(t){if(t&&!d.isEmptyObj(t)&&this.events.fire(c.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this.config.text=this.config.text||this.config.value,this.events.fire(c.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},f.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},f.prototype.show=function(){var t=this.config,e=t.text,e=void 0===e?"":e;t.hidden&&this.events.fire(c.ItemEvent.beforeShow,[e])&&(this.config.hidden=!1,this.events.fire(c.ItemEvent.afterShow,[e]))},f.prototype.hide=function(t){void 0===t&&(t=!1);var e=this.config,i=e.text,i=void 0===i?"":i;e.hidden&&!t||!this.events.fire(c.ItemEvent.beforeHide,[i,t])||(this.config.hidden=!0,this.events.fire(c.ItemEvent.afterHide,[i,t]))},f.prototype.isVisible=function(){return!this.config.hidden},f.prototype.disable=function(){this.config.disabled=!0,this.paint()},f.prototype.enable=function(){var t;this.config.disabled=!1,null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.paint()},f.prototype.isDisabled=function(){return!!this.config.disabled},f.prototype.focus=function(){var t=this;p.awaitRedraw().then(function(){t.getRootView().refs.button.el.focus()})},f.prototype.blur=function(){var t=this;p.awaitRedraw().then(function(){t.getRootView().refs.button.el.blur()})},f.prototype._draw=function(){var t=this.config,e=t.color,i=t.size,n=t.view,o=t.full,r=t.loading,s=t.circle,a=t.icon,l=t.text,c=t.disabled,u=t.submit,d=t.id,h=t.name,f={danger:" dhx_button--color_danger",secondary:" dhx_button--color_secondary",primary:" dhx_button--color_primary",success:" dhx_button--color_success"}[e]||" dhx_button--color_primary",t={small:" dhx_button--size_small",medium:" dhx_button--size_medium"}[i]||" dhx_button--size_medium",e={flat:" dhx_button--view_flat",link:" dhx_button--view_link"}[n]||" dhx_button--view_flat",i=o?" dhx_button--width_full":"",n=s?" dhx_button--circle":"",o=r?" dhx_button--loading":"",s=a&&!l?" dhx_button--icon":"";return p.el("button",{disabled:c,id:d,"data-dhx-id":h||d,onclick:this._handlers.onclick,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,type:u?"submit":"button",class:"dhx_button"+f+t+e+i+n+o+s,_ref:"button"},[a&&p.el("span.dhx_button__icon",{class:a}),l&&p.el("span.dhx_button__text",l),r&&p.el("span.dhx_button__loading",[p.el("span.dhx_button__loading-icon.dxi.dxi-loading")])])},f);function f(t,e){var i=a.call(this,t,r({disabled:!1,hidden:!1,submit:!1,full:!1,circle:!1,loading:!1,view:"flat",size:"medium",color:"primary",width:"content",height:"content",url:"",text:"",icon:""},e))||this;i._propsItem=["submit","url","text","icon","view","size","color","full","circle","loading"],i._props=s(h.baseProps,i._propsItem),i.config.text=i.config.text||i.config.value||"",i.events=new u.EventSystem,i._handlers={onclick:function(t){return i.events.fire(c.ItemEvent.click,[t])},onblur:function(){return i.events.fire(c.ItemEvent.blur,[i.config.text])},onfocus:function(){return i.events.fire(c.ItemEvent.focus,[i.config.text])},onkeydown:function(t){return i.events.fire(c.ItemEvent.keydown,[t])}},i.config.hidden&&p.awaitRedraw().then(function(){i.hide(!0)});return i.mount(t,p.create({render:function(){return i._draw()}})),i}e.Button=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,l=i(0),c=i(11),u=i(2),d=i(96),h=i(14),f=i(4),p=i(1),g=i(7),v=i(12),o=(a=h.Label,o(_,a),_.prototype.destructor=function(){this.events&&this.events.clear(),this.layout&&this.layout.destructor(),this.events=this._uid=this._propsItem=this._props=this._isValid=this._buttons=null,a.prototype._destructor.call(this),this.unmount()},_.prototype.setProperties=function(e,t){if(void 0!==e&&this.events.fire(f.ItemEvent.beforeChangeProperties,[this.getProperties()])){if("object"==typeof e&&!p.isEmptyObj(e)){for(var i in e)this._props.includes(i)&&(this.config[i]=e[i]);e.hasOwnProperty("options")&&(this._initView(this.config),this._initHandlers())}var n;"string"!=typeof e||!t||p.isEmptyObj(t)||(n=this._buttons.find(function(t){return t.config.id===e}))&&n.setProperties(t,!0),this.events.fire(f.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},_.prototype.getProperties=function(e){if(void 0!==e)return this._buttons.find(function(t){return t.config.id===e}).getProperties();var t,i={};for(t in this.config)this._props.includes(t)&&(i[t]=this.config[t]);return i},_.prototype.getValue=function(e){if(void 0===e){var i={};return this._buttons.forEach(function(t){i[t.config.id]=t.getValue()}),i}var t=this._buttons.find(function(t){return t.config.id===e});if(e&&t)return t.getValue()},_.prototype.setValue=function(t){if(void 0!==t&&!p.isEmptyObj(t)){for(var n=this.getValue(),o=this,e=0,i=Object.entries(t);e<i.length;e++){var r=i[e];!function(e,t){var i=o._buttons.find(function(t){return t.config.id===e});i&&(i=i.config.value,n[e]="string"==typeof i?t&&i||"":!!t)}(r[0],r[1])}if(this.events.fire(f.ItemEvent.beforeChange,[n])){for(var s=this,a=0,l=Object.entries(t);a<l.length;a++){var c=l[a];!function(e,t){var i=s._buttons.find(function(t){return t.config.id===e});i&&i.setValue(!!t,!0)}(c[0],c[1])}this.events.fire(f.ItemEvent.change,[this.getValue()]),g.isVerify(this.config)&&this.validate()}}},_.prototype.isChecked=function(e){if(void 0===e){var i={};return this._buttons.forEach(function(t){i[t.config.id]=t.isChecked()}),i}var t=this._buttons.find(function(t){return t.config.id===e});if(e&&t)return t.isChecked()},_.prototype.focus=function(e){var i=this;l.awaitRedraw().then(function(){if(i._buttons.length){if(!e)return i._buttons[0].focus();var t=i._buttons.find(function(t){return t.config.id===e});t&&t.focus()}})},_.prototype.blur=function(){var t=this;l.awaitRedraw().then(function(){t._buttons.length&&t._buttons.forEach(function(t){t.blur()})})},_.prototype.show=function(e){var t,i=e&&this._buttons.find(function(t){return t.config.id===e});p.isDefined(e)&&!i||(!i&&(this.config.hidden||this._buttons.some(function(t){return t.config.hidden}))||(null===(t=null==i?void 0:i.config)||void 0===t?void 0:t.hidden))&&this.events.fire(f.ItemEvent.beforeShow,[this.getValue(),e])&&(i?null!=i&&i.show():this._buttons.forEach(function(t){return t.show()}),this.config.hidden=!1,this.events.fire(f.ItemEvent.afterShow,[this.getValue(),e]))},_.prototype.hide=function(e,t){var i,n=e&&this._buttons.find(function(t){return t.config.id===e});p.isDefined(e)&&!n||(!n&&this.config.hidden||(null===(i=null==n?void 0:n.config)||void 0===i?void 0:i.hidden))&&!t||!this.events.fire(f.ItemEvent.beforeHide,[this.getValue(),e,t])||(n?(null!=n&&n.hide(),this.config.hidden=this._buttons.every(function(t){return t.config.hidden})):(this._buttons.forEach(function(t){return t.hide()}),this.config.hidden=!0),this.events.fire(f.ItemEvent.afterHide,[this.getValue(),e,t]))},_.prototype.isVisible=function(e){var t,i=this._buttons.find(function(t){return t.config.id===e});return!(this.config.hidden||p.isDefined(e)&&null!==(t=null==i?void 0:i.config)&&void 0!==t&&t.hidden)},_.prototype.enable=function(e){var t,i=e&&this._buttons.find(function(t){return t.config.id===e});p.isDefined(e)&&!i||(!i&&(this.config.disabled||this._buttons.some(function(t){return t.config.disabled}))||(null===(t=null==i?void 0:i.config)||void 0===t?void 0:t.disabled))&&(i?null!=i&&i.enable():this._buttons.forEach(function(t){return t.enable()}),this.config.disabled=!1,null!==(i=this.parent)&&void 0!==i&&i.isDisabled()&&this.parent.enable(),this.paint())},_.prototype.disable=function(e,t){var i,n=e&&this._buttons.find(function(t){return t.config.id===e});p.isDefined(e)&&!n||(!n&&this.config.disabled||(null===(i=null==n?void 0:n.config)||void 0===i?void 0:i.disabled))&&!t||(n?(null!=n&&n.disable(),this.config.disabled=this._buttons.every(function(t){return t.config.disabled})):(this._buttons.forEach(function(t){return t.disable()}),this.config.disabled=!0),this.paint())},_.prototype.isDisabled=function(e){var t=this._buttons.find(function(t){return t.config.id===e});return Boolean(this.config.disabled||p.isDefined(e)&&(null===(t=null==t?void 0:t.config)||void 0===t?void 0:t.disabled))},_.prototype.clear=function(){var e;this._buttons.some(function(t){return t.isChecked()})&&(e={},this._buttons.forEach(function(t){e[t.config.id]="string"==typeof t.config.value&&""}),this.events.fire(f.ItemEvent.beforeChange,[e])&&(this._buttons.forEach(function(t){t.clear(!0)}),this.events.fire(f.ItemEvent.change,[e]),g.isVerify(this.config)&&this.validate()))},_.prototype.validate=function(t){var e=this;if(void 0===t&&(t=!1),t||this.events.fire(f.ItemEvent.beforeValidate,[this.getValue()]))return this.config.required&&(this._isValid=this._buttons.some(function(t){return t.config.$required&&!!t.config.checked})),t||(this._buttons.forEach(function(t){t.config.$validationStatus=e._isValid?f.ValidationStatus.success:f.ValidationStatus.error}),this.config.$validationStatus=this._isValid?f.ValidationStatus.success:f.ValidationStatus.error,this.events.fire(f.ItemEvent.afterValidate,[this.getValue(),this._isValid])),this._isValid},_.prototype.clearValidate=function(){this.config.$validationStatus=f.ValidationStatus.pre,this._buttons.forEach(function(t){t.clearValidate()}),this.paint()},_.prototype._initView=function(e){var t,n=this;if(p.isEmptyObj(e)||!e.options||p.isEmptyObj(e.options))throw new Error("Check the configuration is correct");for(t in this.layout&&this.layout.destructor(),this._buttons.length&&(this._buttons.forEach(function(t){t.destructor()}),this._buttons=[]),this.config={type:e.type,id:e.id,name:e.name,disabled:!1,hidden:!1,options:{},required:!1,label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},e)"id"!==t&&"type"!==t&&"name"!==t&&(this.config[t]=e[t]);this.config.helpMessage&&(this._helper=new v.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"}),this._helper.attachHTML(this.config.helpMessage));var i=this.config.options.rows||this.config.options.cols;null!=i&&i.forEach(function(t){t.id=t.id||p.uid(),t.$group=!0}),this.layout=new c.Layout(null,this.config.options),null!=i&&i.forEach(function(t){var i=new d.Checkbox(null,r(r({},t),{disabled:e.disabled||t.disabled,name:e.name,$required:e.required}));n._buttons.push(i),n.layout.getCell(t.id).attach(i),i.events.on(f.ItemEvent.beforeChange,function(t){var e=r(r({},n.getValue()),((e={})[i.config.id]=t,e));return n.events.fire(f.ItemEvent.beforeChange,[e])}),i.events.on(f.ItemEvent.change,function(){n.events.fire(f.ItemEvent.change,[n.getValue()]),g.isVerify(n.config)&&n.validate()}),i.events.on(f.ItemEvent.focus,function(t,e){n.events.fire(f.ItemEvent.focus,[n.getValue(),e])}),i.events.on(f.ItemEvent.blur,function(t,e){n.events.fire(f.ItemEvent.blur,[n.getValue(),e])}),i.events.on(f.ItemEvent.keydown,function(t,e){n.events.fire(f.ItemEvent.keydown,[t,e])}),i.events.on(f.ItemEvent.afterHide,function(){l.awaitRedraw().then(function(){var t;null!==(t=n.layout.getCell(i.config.id))&&void 0!==t&&t.hide()})}),i.events.on(f.ItemEvent.afterShow,function(){var t;null!==(t=n.layout.getCell(i.config.id))&&void 0!==t&&t.show()})}),this.config.value&&this.setValue(this.config.value),this.clearValidate(),!this.config.disabled&&this._buttons.length&&this._buttons.every(function(t){return t.config.disabled})&&(this.config.disabled=!0),this.config.hidden&&l.awaitRedraw().then(function(){return n.hide(void 0,!0)})},_.prototype._initHandlers=function(){var t=this;this.events.on(f.ItemEvent.change,function(){t.config.value=t.getValue(),t.paint()}),this.events.on(f.ItemEvent.afterValidate,function(){t.config.$validationStatus=t._isValid?f.ValidationStatus.success:f.ValidationStatus.error,t.paint()})},_.prototype._draw=function(){var t=this.config.hidden?" dhx_form-group--hidden":"",e=this.config,i=e.label,n=e.labelWidth,o=e.helpMessage,r=e.required,s=e.name,e=e.id;return l.el("fieldset.dhx_form-group-fieldset",{},[l.el("div.dhx_form-group.dhx_form-group--checkbox-group",{class:g.getFormItemCss(this.config,g.isVerify(this.config))+t,"data-dhx-id":s||e,role:"radiogroup"},[i||n||o||r?this._drawLabel():null,l.el("div.dhx_checkbox-group--container",{},[this.layout&&l.inject(this.layout.getRootView()),r&&g.getValidationMessage(this.config)&&l.el("span.dhx_input__caption",g.getValidationMessage(this.config))])])])},_);function _(t,e){var i=a.call(this,null,e)||this;i.events=new u.EventSystem,i._buttons=[],i._isValid=!0,i._propsItem=["required","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage","options"],i._props=s(g.baseProps,i._propsItem),i._initView(e),i._initHandlers();return i.mount(t,l.create({render:function(){return i._draw()}})),i}e.CheckboxGroup=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,l=i(0),c=i(1),u=i(11),d=i(12),h=i(2),f=i(215),p=i(7),g=i(14),v=i(4),o=(a=g.Label,o(_,a),_.prototype.destructor=function(){this.events&&this.events.clear(),this.layout&&this.layout.destructor(),this.events=this._uid=this._propsItem=this._props=this._isValid=this._buttons=null,a.prototype._destructor.call(this),this.unmount()},_.prototype.setProperties=function(e,t){if(void 0!==e&&this.events.fire(v.ItemEvent.beforeChangeProperties,[this.getProperties()])){if("object"==typeof e&&!c.isEmptyObj(e)){for(var i in e)this._props.includes(i)&&(this.config[i]=e[i]);e.hasOwnProperty("options")&&(this._initView(this.config),this._initHandlers())}var n;"string"!=typeof e||!t||c.isEmptyObj(t)||(n=this._buttons.find(function(t){return t.config.id===e}))&&n.setProperties(t),this.events.fire(v.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},_.prototype.getProperties=function(e){if(void 0!==e)return this._buttons.find(function(t){return t.config.id===e}).getProperties();var t,i={};for(t in this.config)this._props.includes(t)&&(i[t]=this.config[t]);return i},_.prototype.getValue=function(){var e=this;return this._buttons.forEach(function(t){t.getValue()&&(e.config.value=t.getValue()||"")}),this.config.value||""},_.prototype.setValue=function(t){t!==this.config.value&&(this._setValue(t),this.events.fire(v.ItemEvent.change,[t]),p.isVerify(this.config)&&this.validate())},_.prototype.focus=function(e){var i=this;l.awaitRedraw().then(function(){if(i._buttons.length){if(!e)return i._buttons[0].focus();var t=i._buttons.find(function(t){return t.config.id===e});return t?t.focus():void 0}})},_.prototype.blur=function(){var t=this;l.awaitRedraw().then(function(){t._buttons.length&&t._buttons.forEach(function(t){return t.blur()})})},_.prototype.show=function(e){var t,i=e&&this._buttons.find(function(t){return t.config.id===e});c.isDefined(e)&&!i||(!i&&(this.config.hidden||this._buttons.some(function(t){return t.config.hidden}))||(null===(t=null==i?void 0:i.config)||void 0===t?void 0:t.hidden))&&this.events.fire(v.ItemEvent.beforeShow,[this.getValue(),e])&&(i?null!=i&&i.show():this._buttons.forEach(function(t){return t.show()}),this.config.hidden=!1,this.events.fire(v.ItemEvent.afterShow,[this.getValue(),e]))},_.prototype.hide=function(e,t){var i,n=e&&this._buttons.find(function(t){return t.config.id===e});c.isDefined(e)&&!n||(!n&&this.config.hidden||(null===(i=null==n?void 0:n.config)||void 0===i?void 0:i.hidden))&&!t||!this.events.fire(v.ItemEvent.beforeHide,[this.getValue(),e,t])||(n?(null!=n&&n.hide(),this.config.hidden=this._buttons.every(function(t){return t.config.hidden})):(this._buttons.forEach(function(t){return t.hide()}),this.config.hidden=!0),this.events.fire(v.ItemEvent.afterHide,[this.getValue(),e,t]))},_.prototype.isVisible=function(e){var t,i=this._buttons.find(function(t){return t.config.id===e});return!(this.config.hidden||c.isDefined(e)&&null!==(t=null==i?void 0:i.config)&&void 0!==t&&t.hidden)},_.prototype.enable=function(e){var t,i=e&&this._buttons.find(function(t){return t.config.id===e});c.isDefined(e)&&!i||(!i&&(this.config.disabled||this._buttons.some(function(t){return t.config.disabled}))||(null===(t=null==i?void 0:i.config)||void 0===t?void 0:t.disabled))&&(i?null!=i&&i.enable():this._buttons.forEach(function(t){return t.enable()}),this.config.disabled=!1,null!==(i=this.parent)&&void 0!==i&&i.isDisabled()&&this.parent.enable(),this.paint())},_.prototype.disable=function(e,t){var i,n=e&&this._buttons.find(function(t){return t.config.id===e});c.isDefined(e)&&!n||(!n&&this.config.disabled||(null===(i=null==n?void 0:n.config)||void 0===i?void 0:i.disabled))&&!t||(n?(null!=n&&n.disable(),this.config.disabled=this._buttons.every(function(t){return t.config.disabled})):(this._buttons.forEach(function(t){return t.disable()}),this.config.disabled=!0),this.paint())},_.prototype.isDisabled=function(e){var t=this._buttons.find(function(t){return t.config.id===e});return Boolean(this.config.disabled||c.isDefined(e)&&(null===(t=null==t?void 0:t.config)||void 0===t?void 0:t.disabled))},_.prototype.clear=function(){""!==this.config.value&&(this._buttons.forEach(function(t){t.clear()}),this.config.value="",this.events.fire(v.ItemEvent.change,[this.config.value]))},_.prototype.validate=function(t){var e=this;if(void 0===t&&(t=!1),t||this.events.fire(v.ItemEvent.beforeValidate,[this.getValue()]))return this.config.required&&(this._isValid=this._buttons.some(function(t){return e.config.required&&!!t.config.checked})),t||(this._buttons.forEach(function(t){t.config.$validationStatus=e._isValid?v.ValidationStatus.success:v.ValidationStatus.error}),this.config.$validationStatus=this._isValid?v.ValidationStatus.success:v.ValidationStatus.error,this.events.fire(v.ItemEvent.afterValidate,[this.getValue(),this._isValid])),this._isValid},_.prototype.clearValidate=function(){this.config.$validationStatus=v.ValidationStatus.pre,this._buttons.map(function(t){t.clearValidate()}),this.paint()},_.prototype._initView=function(i){var t,n=this;if(c.isEmptyObj(i)||!i.options||c.isEmptyObj(i.options))throw new Error("Check the configuration is correct");for(t in this.layout&&this.layout.destructor(),this._buttons.length&&(this._buttons.forEach(function(t){t.destructor()}),this._buttons=[]),this.config={type:i.type,id:i.id,name:i.name,disabled:!1,hidden:!1,options:{},required:!1,label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},i)"id"!==t&&"type"!==t&&"name"!==t&&(this.config[t]=i[t]);this.config.hidden&&l.awaitRedraw().then(function(){return n.hide(void 0,!0)});var e=this.config.options.rows||this.config.options.cols;null!=e&&e.forEach(function(t){t.id=t.id||c.uid()}),this.layout=new u.Layout(null,this.config.options),null!=e&&e.forEach(function(t){var e=new f.RadioButton(null,r(r({},t),{disabled:i.disabled||t.disabled,$name:i.name,$required:i.required}));n._buttons.push(e),n.layout.getCell(t.id).attach(e),e.events.on(f.RadioButtonEvents.beforeChange,function(){return n.events.fire(v.ItemEvent.beforeChange,[e.config.value||""])}),e.events.on(f.RadioButtonEvents.change,function(){n._buttons.map(function(t){t.config.id!==e.config.id&&t.setValue(!1)}),n.events.fire(v.ItemEvent.change,[n.getValue()]),p.isVerify(n.config)&&n.validate()}),e.events.on(f.RadioButtonEvents.focus,function(t,e){n.events.fire(v.ItemEvent.focus,[t,e])}),e.events.on(f.RadioButtonEvents.blur,function(t,e){n.events.fire(v.ItemEvent.blur,[t,e])}),e.events.on(f.RadioButtonEvents.keydown,function(t,e){n.events.fire(v.ItemEvent.keydown,[t,e])}),e.events.on(v.ItemEvent.afterHide,function(){l.awaitRedraw().then(function(){n.layout.getCell(e.config.id).hide()})}),e.events.on(v.ItemEvent.afterShow,function(){n.layout.getCell(e.config.id).show()})}),!this.config.disabled&&this._buttons.length&&this._buttons.every(function(t){return t.config.disabled})&&(this.config.disabled=!0)},_.prototype._initHandlers=function(){var t=this;this.events.on(v.ItemEvent.beforeChange,function(){return t.paint()}),this.events.on(v.ItemEvent.change,function(){t.config.value=t.getValue(),t.paint()}),this.events.on(v.ItemEvent.afterValidate,function(){t.config.$validationStatus=t._isValid?v.ValidationStatus.success:v.ValidationStatus.error,t.paint()})},_.prototype._draw=function(){var t=this.config,e=t.label,i=t.labelWidth,n=t.helpMessage,o=t.required,r=t.hidden,s=t.name,t=t.id,r=r?" dhx_form-group--hidden":"";return l.el("fieldset.dhx_form-group-fieldset",{},[l.el("div.dhx_form-group.dhx_form-group--radio-group",{class:p.getFormItemCss(this.config,p.isVerify(this.config))+r,"data-dhx-id":s||t},[e||i||n||o?[this._drawLabel()]:null,l.el("div.dhx_radio-group--container",{},[this.layout&&l.inject(this.layout.getRootView()),o&&p.getValidationMessage(this.config)&&l.el("span.dhx_input__caption",p.getValidationMessage(this.config))])])])},_.prototype._setValue=function(e){void 0!==e&&-1!==this._buttons.findIndex(function(t){return t.config.value===e})&&this._buttons.forEach(function(t){e===t.config.value?t.setValue(!0):t.setValue(!1)})},_);function _(t,e){var i=a.call(this,null,e)||this;i.events=new h.EventSystem,i._buttons=[],i._isValid=!0,i._propsItem=["required","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage","options"],i._props=s(p.baseProps,i._propsItem),i._initView(e),i._initHandlers(),i.config.value&&i._setValue(i.config.value),i.clearValidate(),i.config.helpMessage&&(i._helper=new d.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"}),i._helper.attachHTML(i.config.helpMessage));return i.mount(t,l.create({render:function(){return i._draw()}})),i}e.RadioGroup=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,l=i(1),c=i(0),u=i(2),d=i(5),h=i(7),f=i(4);(i=a=e.RadioButtonEvents||(e.RadioButtonEvents={})).beforeChange="beforeChange",i.change="change",i.focus="focus",i.blur="blur",i.keydown="keydown",i.beforeHide="beforeHide",i.afterHide="afterHide",i.beforeShow="beforeShow",i.afterShow="afterShow";var p,o=(p=d.View,o(g,p),g.prototype.destructor=function(){this.events&&this.events.clear(),this.config=this.events=this._handlers=this._uid=this._props=this._propsItem=null,this.unmount()},g.prototype.setProperties=function(t){if(t&&!l.isEmptyObj(t)){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this.paint()}},g.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},g.prototype.getValue=function(){if(this.config.checked)return this.config.value},g.prototype.setValue=function(t){this.config.checked=t,this.paint()},g.prototype.show=function(){this.config.hidden&&this.events.fire(a.beforeShow,[])&&(this.config.hidden=!1,this.events.fire(a.afterShow,[]))},g.prototype.hide=function(){!this.config.hidden&&this.events.fire(a.beforeHide,[])&&(this.config.hidden=!0,this.events.fire(a.afterHide,[]))},g.prototype.isVisible=function(){return!this.config.hidden},g.prototype.focus=function(){var t=this;c.awaitRedraw().then(function(){t.getRootView().refs.input.el.focus()})},g.prototype.blur=function(){var t=this;c.awaitRedraw().then(function(){t.getRootView().refs.input.el.blur()})},g.prototype.disable=function(){this.config.disabled=!0,this.paint()},g.prototype.enable=function(){var t;this.config.disabled=!1,null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.paint()},g.prototype.isDisabled=function(){return!!this.config.disabled},g.prototype.clear=function(){this.config.checked=!1,this.paint()},g.prototype.validate=function(){var t=!1;return this.config.checked&&(t=!0),this.config.$validationStatus=t?f.ValidationStatus.success:f.ValidationStatus.error,this.paint(),t},g.prototype.clearValidate=function(){this.config.$validationStatus=f.ValidationStatus.pre,this.paint()},g.prototype._draw=function(){var t=this.config,e=t.id,i=t.value,n=t.checked,o=t.disabled,r=t.$name,s=t.$required,t=t.text;return c.el("label.dhx_radiobutton.dhx_form-group",{class:h.getFormItemCss(this.config,!!s)},[c.el("input.dhx_radiobutton__input",{type:"radio",id:e,value:i||"",name:r||"",disabled:o,checked:n,onchange:this._handlers.onchange,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,required:s,_ref:"input"}),c.el("span.dhx_radiobutton__visual-input"),c.el("span.dhx_text",[t])])},g);function g(t,e){void 0===e&&(e={});var i=p.call(this,t,r({text:"",width:"content",height:"content"},e))||this;i._propsItem=["text"],i._props=s(h.baseProps,i._propsItem),i._handlers={onchange:function(t){t=t.target.checked;i.events.fire(a.beforeChange,[t])&&(i.config.checked=t,i.events.fire(a.change,[t]))},onfocus:function(){return i.events.fire(a.focus,[i.getValue()||"",i.config.id])},onblur:function(){var t;return null===(t=i.events)||void 0===t?void 0:t.fire(a.blur,[i.getValue()||"",i.config.id])},onkeydown:function(t){i.events.fire(a.keydown,[t,i.config.id])}},i.events=new u.EventSystem;return i.mount(t,c.create({render:function(){return i._draw()}})),i}e.RadioButton=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,u=i(0),l=i(1),c=i(14),d=i(7),h=i(2),f=i(4),o=(a=c.Label,o(p,a),p.prototype.destructor=function(){this.events&&this.events.clear(),this.events=this._uid=this._propsItem=this._props=this._isValid=null,a.prototype._destructor.call(this),this.unmount()},p.prototype.setProperties=function(t){if(t&&!l.isEmptyObj(t)&&this.events.fire(f.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this.events.fire(f.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},p.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},p.prototype.show=function(){this.config.hidden&&this.events.fire(f.ItemEvent.beforeShow,[this.getValue()])&&(this.config.hidden=!1,this.events.fire(f.ItemEvent.afterShow,[this.getValue()]))},p.prototype.hide=function(t){this.config.hidden&&!t||!this.events.fire(f.ItemEvent.beforeHide,[this.getValue(),!!t])||(this.config.hidden=!0,this.events.fire(f.ItemEvent.afterHide,[this.getValue(),!!t]))},p.prototype.isVisible=function(){return!this.config.hidden},p.prototype.disable=function(e){var t=l.isDefined(e)&&this.config.options.find(function(t){return t.value===e});l.isDefined(e)&&!t||!t&&this.config.disabled||(null==t?void 0:t.disabled)||(t?(t.disabled=!0,this.config.disabled=this.config.options.every(function(t){return t.disabled})):(this.config.options=this.config.options.map(function(t){return r(r({},t),{disabled:!0})}),this.config.disabled=!0),this.paint())},p.prototype.enable=function(e){var t=l.isDefined(e)&&this.config.options.find(function(t){return t.value===e});l.isDefined(e)&&!t||(!t&&(this.config.disabled||this.config.options.some(function(t){return t.disabled}))||(null==t?void 0:t.disabled))&&(t?t.disabled=!1:this.config.options=this.config.options.map(function(t){return r(r({},t),{disabled:!1})}),this.config.disabled=!1,null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.paint())},p.prototype.isDisabled=function(e){var t=this.config.options.find(function(t){return t.value===e});return Boolean(this.config.disabled||l.isDefined(e)&&(null==t?void 0:t.disabled))},p.prototype.validate=function(t){void 0===t&&(t=!1);var e=this.config,i=e.value,e=e.validation;if(t||this.events.fire(f.ItemEvent.beforeValidate,[i]))return this._isValid=e?this.config.validation(i):void 0!==i&&!!String(i).length,t||this.events.fire(f.ItemEvent.afterValidate,[i,this._isValid]),this._isValid},p.prototype.clearValidate=function(){this.config.$validationStatus=f.ValidationStatus.pre,this.paint()},p.prototype.clear=function(){var t=null===(t=null===(t=this.config)||void 0===t?void 0:t.options[0])||void 0===t?void 0:t.value;this.config.value!==t&&this.events.fire(f.ItemEvent.beforeChange,[t])&&(this.config.value=t,this.events.fire(f.ItemEvent.change,[t]),d.isVerify(this.config)&&this.validate(),this.paint())},p.prototype.setValue=function(e){void 0!==e&&e!==this.config.value&&-1!==this.config.options.findIndex(function(t){return t.value===e})&&this.events.fire(f.ItemEvent.beforeChange,[e])&&(this.config.value=e,this.events.fire(f.ItemEvent.change,[e]),d.isVerify(this.config)&&this.validate(),this.paint())},p.prototype.focus=function(){var t=this;u.awaitRedraw().then(function(){t.getRootView().refs.select.el.focus()})},p.prototype.blur=function(){var t=this;u.awaitRedraw().then(function(){t.getRootView().refs.select.el.blur()})},p.prototype.getValue=function(){return this.config.value},p.prototype.setOptions=function(t){if(!t||!t.length)throw new Error("Function argument cannot be empty, for more info check documentation https://docs.dhtmlx.com/suite/form__select.html#addingselect");this.events.fire(f.ItemEvent.beforeChangeOptions,[s(t)])&&(this._checkOptions(t),this.config.options=s(t),this.events.fire(f.ItemEvent.changeOptions,[s(t)]),this.setValue(this.config.options[0].value),this.paint())},p.prototype.getOptions=function(){return this.config.options},p.prototype._initView=function(t){var e,i=this;if(l.isEmptyObj(t))throw new Error("Check the configuration is correct");for(e in this._checkOptions(t.options),this.config={type:t.type,id:t.id,name:t.name,disabled:!1,hidden:!1,required:!1,icon:"",label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content",options:t.options,value:t.options[0].value},t)"id"!==e&&"type"!==e&&"name"!==e&&(this.config[e]=t[e]);!this.config.disabled&&this.config.options.length&&this.config.options.every(function(t){return t.disabled})&&(this.config.disabled=!0),this.config.hidden&&u.awaitRedraw().then(function(){return i.hide(!0)}),this.paint()},p.prototype._initHandlers=function(){var t=this;this.events.on(f.ItemEvent.afterValidate,function(){t.config.$validationStatus=t._isValid?f.ValidationStatus.success:f.ValidationStatus.error,t.paint()})},p.prototype._getHandlers=function(){var i=this;return{onchange:function(e){var t=i.config.options.map(function(t){return t.value}).find(function(t){return t==e.target.value});i.events.fire(f.ItemEvent.beforeChange,[t])&&(i.config.value=t,i.events.fire(f.ItemEvent.change,[t]),d.isVerify(i.config)&&i.validate(),i.paint())},onblur:function(){i._uid&&(i.events.fire(f.ItemEvent.blur,[i.getValue()]),i.paint())},onfocus:function(){i.events.fire(f.ItemEvent.focus,[i.getValue()]),i.paint()}}},p.prototype._draw=function(){var t=this.config,e=t.id,i=t.options,n=t.icon,o=t.value,r=t.label,s=t.labelWidth,a=t.helpMessage,l=t.required,c=t.name,t=(null===(t=null===(t=null===(t=this.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.select)||void 0===t?void 0:t.el)===document.activeElement;return u.el(".dhx_form-group",{class:d.getFormItemCss(this.config,d.isVerify(this.config),t)},[(r||s||a)&&this._drawLabel(),u.el(".dhx_input__wrapper",{},[u.el("div.dhx_input__container",{},[u.el(".dhx_input__icon",{class:n||"dxi dxi-menu-down"}),u.el("select.dhx_select.dhx_input",{id:e,"data-dhx-id":c||e,tabindex:0,class:t&&"dhx_input--focus",onchange:this._handlers.onchange,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,_ref:"select",required:l},i.length&&i.map(function(t){return u.el("option",{value:t.value,disabled:t.disabled,selected:o===t.value},t.content)}))]),d.getValidationMessage(this.config)&&u.el("span.dhx_input__caption",d.getValidationMessage(this.config))])])},p.prototype._checkOptions=function(t){if(0===t.length)throw new Error("Property options* cannot be empty, for more info check documentation https://docs.dhtmlx.com/suite/form__select.html#addingselect");t.forEach(function(t){if(!t.hasOwnProperty("value")||!t.hasOwnProperty("content"))throw new Error("The object must contain two required properties value and content, for more info check documentation https://docs.dhtmlx.com/suite/form__select.html#addingselect")})},p);function p(t,e){var i=a.call(this,null,e)||this;return i.events=new h.EventSystem,i._isValid=!0,i._propsItem=["required","validation","icon","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage"],i._props=s(d.baseProps,i._propsItem),i._initView(e),i._initHandlers(),i}e.Select=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var s,p=i(0),g=i(7),a=i(39),l=i(4),v=i(1),o=(s=a.Input,o(c,s),c.prototype.getValue=function(){var t;return String(null!==(t=this.config.value)&&void 0!==t?t:"")},c.prototype.focus=function(){var t=this;p.awaitRedraw().then(function(){t.getRootView().refs.textarea.el.focus()})},c.prototype.blur=function(){var t=this;p.awaitRedraw().then(function(){t.getRootView().refs.textarea.el.blur()})},c.prototype.setProperties=function(t){if(t&&!v.isEmptyObj(t)&&this.events.fire(l.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this.events.fire(l.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},c.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},c.prototype._initView=function(t){var e,i=this;if(v.isEmptyObj(t))throw new Error("Check the configuration is correct");for(e in this.config={type:t.type,id:t.id,name:t.name,disabled:!1,hidden:!1,required:!1,validation:void 0,placeholder:"",readOnly:!1,label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t)"id"!==e&&"type"!==e&&"name"!==e&&(this.config[e]=t[e]);this.config.hidden&&p.awaitRedraw().then(function(){i.hide(!0)}),this.paint()},c.prototype._draw=function(){var t=this.config,e=t.id,i=t.value,n=t.disabled,o=t.name,r=t.placeholder,s=t.required,a=t.resizable,l=t.readOnly,c=t.maxlength,u=t.minlength,d=t.label,h=t.helpMessage,f=t.height,t=(null===(t=null===(t=null===(t=this.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.textarea)||void 0===t?void 0:t.el)===document.activeElement;return p.el("div.dhx_form-group.dhx_form-group--textarea",{class:g.getFormItemCss(this.config,g.isVerify(this.config),t)},[this._drawLabel(),p.el(".dhx_input__wrapper",[p.el("textarea.dhx_input.dhx_input--textarea",{type:"text",id:e,"data-dhx-id":o||e,placeholder:r||"",value:v.isDefined(i)?i:"",name:o||"",disabled:n,required:s,readOnly:l,maxlength:c,minlength:u,onblur:this._handlers.onblur,oninput:this._handlers.oninput,onchange:this._handlers.onchange,onfocus:this._handlers.onfocus,onkeydown:this._handlers.onkeydown,_hooks:{didInsert:function(t){"content"===f&&((t=t.el).style.height=t.scrollHeight+"px")}},style:{resize:a?"both":"none"},_ref:"textarea","aria-label":d||(l?i:"")+" type text","aria-describedby":h?"dhx_label__help_"+(e||this._uid):null}),g.getValidationMessage(this.config)&&p.el("span.dhx_input__caption",{},g.getValidationMessage(this.config))])])},c);function c(){var t=null!==s&&s.apply(this,arguments)||this;return t._propsItem=["required","validation","placeholder","readOnly","maxlength","minlength","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage"],t._props=r(g.baseProps,t._propsItem),t}e.Textarea=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(0),l=i(1),c=i(7),u=i(39),d=i(4),o=(s=u.Input,o(h,s),h.prototype.setProperties=function(t){if(t&&!l.isEmptyObj(t)&&this.events.fire(d.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this.events.fire(d.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},h.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},h.prototype._initView=function(t){var e,i=this;if(l.isEmptyObj(t))throw new Error("Check the configuration is correct");for(e in this.config={type:t.type,id:t.id,name:t.name,disabled:!1,hidden:!1,value:"",inputType:"text",label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",width:"content",height:"content"},t)"id"!==e&&"type"!==e&&"name"!==e&&(this.config[e]=t[e]);this.config.hidden&&a.awaitRedraw().then(function(){i.hide(!0)}),this.paint()},h.prototype._draw=function(){var t=this.config,e=t.id,i=t.value,n=t.name,o=t.inputType,r=t.label,t=(null!=i?i:"").toString().length;return a.el("div.dhx_form-group.dhx_form-group--textinput",{class:c.getFormItemCss(this.config)},[this._drawLabel(),a.el(".dhx_input__wrapper",[a.el("input.dhx_input.dhx_input--textinput",{type:["text","number","password"].includes(o)?o:"text",readOnly:!0,id:e,"data-dhx-id":n||e,value:null!=i?i:"",name:n,_ref:"input",tabindex:-1,role:"presentation","aria-label":r||i,size:20<t?t:20,onkeydown:this._handlers.onkeydown})])])},h);function h(){var t=null!==s&&s.apply(this,arguments)||this;return t._propsItem=["inputType","label","labelWidth","labelPosition","hiddenLabel","helpMessage"],t._props=r(c.baseProps,t._propsItem),t}e.Text=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(0),l=i(1),c=i(7),u=i(34),d=i(2),h=i(14),f=i(4),o=(s=h.Label,o(p,s),p.prototype.destructor=function(){this.events&&this.events.clear(),this.combobox&&this.combobox.destructor(),this.events=this._uid=this._propsCombo=this._propsItem=this._props=this._isValid=null,s.prototype._destructor.call(this),this.unmount()},p.prototype.setProperties=function(i){var n=this;a.awaitRedraw().then(function(){if(i&&!l.isEmptyObj(i)&&n.events.fire(f.ItemEvent.beforeChangeProperties,[n.getProperties()])){for(var t in i)n._props.includes(t)&&(n.config[t]=i[t]);var e=[];n.getWidget().data.forEach(function(t){return e.push(t)}),n.config.data=e,n._initView(n.config),n._initHandlers(),n.events.fire(f.ItemEvent.afterChangeProperties,[n.getProperties()]),n.combobox.paint(),n.paint()}})},p.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},p.prototype.show=function(){var t=this.config,e=t.value;t.hidden&&this.events.fire(f.ItemEvent.beforeShow,[e])&&(this.config.hidden=!1,this.events.fire(f.ItemEvent.afterShow,[e]))},p.prototype.hide=function(t){var e=this.config,i=e.value;e.hidden&&!t||!this.events.fire(f.ItemEvent.beforeHide,[i,t])||(this.config.hidden=!0,this.events.fire(f.ItemEvent.afterHide,[i,t]))},p.prototype.isVisible=function(){return!this.config.hidden},p.prototype.disable=function(){this.config.disabled=!0,this.combobox.disable(),this.paint()},p.prototype.enable=function(){var t;this.config.disabled=!1,this.combobox.enable(),null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.paint()},p.prototype.isDisabled=function(){return!!this.config.disabled},p.prototype.clear=function(){this.config.value&&(this.config.value="",this.combobox.clear())},p.prototype.getValue=function(){return this.config.multiselection?this.combobox.getValue(!0)||[]:this.combobox.getValue()||""},p.prototype.setValue=function(t){void 0!==t&&t!==this.config.value&&this.combobox.setValue(t)},p.prototype.validate=function(t,e){var i=this;void 0===t&&(t=!1);var n=void 0===e?this.getValue():e;return!(!t&&!this.events.fire(f.ItemEvent.beforeValidate,[n]))&&(e=Array.isArray(n)?n.map(function(t){return i._getItemText(t)}):this._getItemText(n)||"",this._isValid=this.config.validation?this.config.validation(n,e):this._exsistData(n),t||(this.config.$validationStatus=this._isValid?f.ValidationStatus.success:f.ValidationStatus.error,this.config.required&&this._validationStatus(),this.events.fire(f.ItemEvent.afterValidate,[n,this._isValid])),this._isValid)},p.prototype.clearValidate=function(){this.config.$validationStatus=f.ValidationStatus.pre,this._validationStatus(),this.paint()},p.prototype.getWidget=function(){return this.combobox},p.prototype.focus=function(){var t=this;a.awaitRedraw().then(function(){t.combobox.focus()})},p.prototype.blur=function(){var t=this;a.awaitRedraw().then(function(){t.combobox.blur()})},p.prototype._initView=function(t){var e=this;if(l.isEmptyObj(t))throw new Error("Check the configuration is correct");this.combobox&&this.combobox.destructor(),this.config={type:t.type,id:t.id,name:t.name,disabled:!1,hidden:!1,value:"",readOnly:!1,multiselection:!1,selectAllButton:!1,itemHeight:32,virtual:!1,listHeight:224,required:!1,placeholder:"",label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"};var i,n={};for(i in t)"id"!==i&&"type"!==i&&"name"!==i&&(this.config[i]=t[i],"validation"!==i&&(n[i]=t[i]));this.combobox=new u.Combobox(null,n),this.config.hidden&&a.awaitRedraw().then(function(){e.hide(!0)}),this.paint()},p.prototype._initHandlers=function(){var i=this;this.combobox.events.on(u.ComboboxEvents.beforeChange,function(t){return i.events.fire(f.ItemEvent.beforeChange,[t])}),this.combobox.events.on(u.ComboboxEvents.change,function(){var t=i.config.value=i.getValue();i.events.fire(f.ItemEvent.change,[t]),c.isVerify(i.config)&&i.validate(),i.paint()}),this.combobox.events.on(u.ComboboxEvents.focus,function(){i.events.fire(f.ItemEvent.focus,[i.getValue()]),i.paint()}),this.combobox.events.on(u.ComboboxEvents.blur,function(){i.events.fire(f.ItemEvent.blur,[i.getValue()]),i.paint()}),this.combobox.events.on(u.ComboboxEvents.keydown,function(t,e){"Enter"===t.code&&t.preventDefault(),i.events.fire(f.ItemEvent.keydown,[t,e])}),this.events.on(f.ItemEvent.afterValidate,function(){i.config.$validationStatus=i._isValid?f.ValidationStatus.success:f.ValidationStatus.error,i.paint()})},p.prototype._validationStatus=function(){var t;if(!(this.combobox.popup.isVisible()||(null===(t=null===(t=null===(t=this.combobox.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.input)||void 0===t?void 0:t.el)===document.activeElement))switch(this.config.$validationStatus){case f.ValidationStatus.success:return this.combobox.config.css=(this.config.css||"")+" dhx_form-group--state_success";case f.ValidationStatus.error:return this.combobox.config.css=(this.config.css||"")+" dhx_form-group--state_error";case f.ValidationStatus.pre:default:return this.combobox.config.css=this.config.css||""}return this.combobox.config.css=this.config.css||""},p.prototype._getRootView=function(){return this.combobox.getRootView()},p.prototype._draw=function(){var t=this.config,e=t.labelWidth,i=t.labelPosition,n=t.name,t=t.id;return a.el(".dhx_form-group",{"data-dhx-id":n||t},[a.inject(this._getRootView()),a.el("div",{style:{"margin-left":e&&"left"===i?"calc("+e+" + 16px)":""},class:this._validationStatus()},[a.el("span.dhx_input__caption",c.getValidationMessage(this.config))])])},p.prototype._exsistData=function(t){var e=this;return!!l.isDefined(t)&&(t instanceof Array?!!t.length&&t.every(function(t){return e.combobox.data.exists(t)}):this.combobox.data.exists(t))},p.prototype._getItemText=function(t){return null===(t=this.combobox.data.getItem(t))||void 0===t?void 0:t.value},p);function p(t,e){var i=s.call(this,null,e)||this;return i.events=new d.EventSystem,i._isValid=!0,i._propsItem=["required","validation","placeholder","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage","readonly","readOnly"],i._propsCombo=["template","filter","multiselection","selectAllButton","itemsCount","itemHeight","virtual","listHeight"],i._props=r(c.baseProps,i._propsItem,i._propsCombo),i._initView(e),i._initHandlers(),i}e.Combo=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,l=i(0),c=i(1),u=i(48),d=i(2),h=i(14),f=i(4),p=i(7),o=(a=h.Label,o(g,a),g.prototype.destructor=function(){this.events&&this.events.clear(),this.slider&&this.slider.destructor(),this.events=this._uid=this._propsSlider=this._propsItem=this._props=null,a.prototype._destructor.call(this),this.unmount()},g.prototype.setProperties=function(t){if(t&&!c.isEmptyObj(t)&&this.events.fire(f.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this._initView(this.config),this._initHandlers(),this.events.fire(f.ItemEvent.afterChangeProperties,[this.getProperties()]),this.slider.paint(),this.paint()}},g.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},g.prototype.show=function(){var t=this.config,e=t.value;t.hidden&&this.events.fire(f.ItemEvent.beforeShow,[e])&&(this.config.hidden=!1,this.events.fire(f.ItemEvent.afterShow,[e]))},g.prototype.hide=function(t){var e=this.config,i=e.value;e.hidden&&!t||!this.events.fire(f.ItemEvent.beforeHide,[i,t])||(this.config.hidden=!0,this.events.fire(f.ItemEvent.afterHide,[i,t]))},g.prototype.isVisible=function(){return!this.config.hidden},g.prototype.disable=function(){this.config.disabled=!0,this.slider.disable(),this.paint()},g.prototype.enable=function(){var t;this.config.disabled=!1,this.slider.enable(),null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.paint()},g.prototype.isDisabled=function(){return!!this.config.disabled},g.prototype.clear=function(){var t=this.config,e=t.value,t=t.min;e[0]!==t&&this.slider.setValue(t)},g.prototype.getValue=function(){return this.slider.getValue()},g.prototype.setValue=function(t){void 0!==t&&t!==this.config.value&&this.slider.setValue(t)},g.prototype.getWidget=function(){return this.slider},g.prototype.focus=function(t){var e=this;l.awaitRedraw().then(function(){e.slider.focus(t)})},g.prototype.blur=function(){var t=this;l.awaitRedraw().then(function(){t.slider.blur()})},g.prototype._initView=function(t){var e=this;if(c.isEmptyObj(t))throw new Error("Check the configuration is correct");this.slider&&this.slider.destructor();var i,n={type:t.type,id:t.id,name:t.name,mode:"horizontal",min:0,max:100,step:1,range:!1,inverse:!1,tooltip:!0,disabled:!1,hidden:!1,label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",width:"content",height:"content"};for(i in t)"id"!==i&&"type"!==i&&"name"!==i&&(n[i]=t[i]);this.config=r({type:this.config.type},n),this.slider=new u.Slider(null,n),this.config.disabled&&this.slider.disable(),this.config.value=this.slider.getValue(),this.config.hidden&&l.awaitRedraw().then(function(){e.hide(!0)})},g.prototype._initHandlers=function(){var s=this;this.slider.events.on(u.SliderEvents.beforeChange,function(t,e,i){var n,o,r=[t];return s.config.range&&(n=(o=s.getValue())[0],o=o[1],r=i?[n,t]:[t,o]),s.events.fire(f.ItemEvent.beforeChange,[r])}),this.slider.events.on(u.SliderEvents.change,function(){var t;s._uid&&(t=s.config.value=s.slider.getValue(),s.events.fire(f.ItemEvent.change,[t]),s.paint())}),this.slider.events.on(u.SliderEvents.focus,function(){s.events.fire(f.ItemEvent.focus,[s.getValue()])}),this.slider.events.on(u.SliderEvents.blur,function(){s.events.fire(f.ItemEvent.blur,[s.getValue()])}),this.slider.events.on(u.SliderEvents.keydown,function(t){s.events.fire(f.ItemEvent.keydown,[t])})},g.prototype._drawSlider=function(){var t=this.config,e=t.name,t=t.id;return l.el("div.dhx_form-group",{"data-dhx-id":e||t},[l.inject(this.slider.getRootView())])},g);function g(t,e){var i=a.call(this,t,e)||this;i.events=new d.EventSystem,i._propsItem=["label","labelWidth","labelPosition","hiddenLabel","helpMessage"],i._propsSlider=["min","max","step","mode","range","inverse","tooltip","tick","tickTemplate","majorTick"],i._props=s(p.baseProps,i._propsItem,i._propsSlider),i._initView(e),i._initHandlers();return i.mount(t,l.create({render:function(){return i._drawSlider()}})),i}e.SliderForm=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(45),u=i(0),l=i(1),c=i(14),d=i(12),h=i(2),f=i(4),p=i(7),g=i(13),o=(s=c.Label,o(v,s),v.prototype.destructor=function(){this.events&&this.events.clear(),this.timepicker&&this.timepicker.destructor(),this._popup&&this._popup.destructor(),this.events=this._uid=this._propsItem=this._propsTimepicker=this._props=this._isValid=null,s.prototype._destructor.call(this),this.unmount()},v.prototype.setProperties=function(e){var i=this;u.awaitRedraw().then(function(){if(e&&!l.isEmptyObj(e)&&i.events.fire(f.ItemEvent.beforeChangeProperties,[i.getProperties()])){for(var t in e)i._props.includes(t)&&(i.config[t]=e[t]);i._initView(i.config),i._initHandlers(),i.events.fire(f.ItemEvent.afterChangeProperties,[i.getProperties()]),i.paint()}})},v.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},v.prototype.show=function(){this.config.hidden&&this.events.fire(f.ItemEvent.beforeShow,[this.getValue("timeObject"===this.config.valueFormat)])&&(this.config.hidden=!1,this.events.fire(f.ItemEvent.afterShow,[this.getValue("timeObject"===this.config.valueFormat)]))},v.prototype.hide=function(t){this.config.hidden&&!t||!this.events.fire(f.ItemEvent.beforeHide,[this.getValue("timeObject"===this.config.valueFormat),t])||(this.config.hidden=!0,this.events.fire(f.ItemEvent.afterHide,[this.getValue("timeObject"===this.config.valueFormat),t]))},v.prototype.isVisible=function(){return!this.config.hidden},v.prototype.disable=function(){this.config.disabled=!0,this.paint()},v.prototype.enable=function(){var t;this.config.disabled=!1,null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.paint()},v.prototype.isDisabled=function(){return!!this.config.disabled},v.prototype.validate=function(t,e){void 0===t&&(t=!1);e=void 0===e?this.getValue("timeObject"===this.config.valueFormat):e;if(t||this.events.fire(f.ItemEvent.beforeValidate,[e]))return this._isValid=this.config.validation?this.config.validation(e):p.isTimeFormat(this.getValue(),this.config.timeFormat),t||this.events.fire(f.ItemEvent.afterValidate,[e,this._isValid]),this._isValid},v.prototype.clearValidate=function(){this.config.$validationStatus=f.ValidationStatus.pre,this.paint()},v.prototype.setValue=function(t){if(void 0!==t&&t!==this.config.value){if(this.timepicker.setValue(t),this.config.controls){t=this.getValue(this._isTimeObject());if(!this.events.fire(f.ItemEvent.beforeChange,[t]))return;this.config.value=this.timepicker.getValue(),this.events.fire(f.ItemEvent.change,[t])}p.isVerify(this.config)&&this.validate(),this.paint()}},v.prototype.getValue=function(t){return t?this.timepicker.getValue(t):this.config.value||""},v.prototype.focus=function(){var t=this;u.awaitRedraw().then(function(){t.getRootView().refs.input.el.focus()})},v.prototype.blur=function(){var t=this;u.awaitRedraw().then(function(){t._popup.hide(),t.getRootView().refs.input.el.blur()})},v.prototype.clear=function(){""!==this.config.value&&this._clear()},v.prototype.getWidget=function(){return this.timepicker},v.prototype._initView=function(t){var e,i=this;if(l.isEmptyObj(t))throw new Error("Check the configuration is correct");for(e in this.timepicker&&this.timepicker.destructor(),this._popup&&this._popup.destructor(),this.config={type:t.type,id:t.id,name:t.name,disabled:!1,editable:!1,hidden:!1,timeFormat:24,controls:!1,valueFormat:"string",required:!1,icon:"",placeholder:"",label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t)"id"!==e&&"type"!==e&&"name"!==e&&(this.config[e]=t[e]);this._popup=new d.Popup,this.timepicker=new a.Timepicker(null,p.widgetConfig(t)),this._popup.attach(this.timepicker),this.config.hasOwnProperty("value")&&(this.config.value=this.timepicker.getValue()),this.config.hidden&&u.awaitRedraw().then(function(){i.hide(!0)})},v.prototype._initHandlers=function(){var n=this;this.events.on(f.ItemEvent.afterValidate,function(){n.config.$validationStatus=n._isValid?f.ValidationStatus.success:f.ValidationStatus.error,n.paint()}),this.config.controls?(this.timepicker.events.on(a.TimepickerEvents.afterClose,function(){n._popup.hide()}),this.timepicker.events.on(a.TimepickerEvents.afterApply,function(){n._afterApply(!0)}),this._popup.events.on(d.PopupEvents.afterHide,function(){n.config.value&&n.config.value!==n.timepicker.getValue()?n.timepicker.setValue(n.config.value):""!==n.config.value&&void 0!==n.config.value||n._clear(!0)})):(this.timepicker.events.on(a.TimepickerEvents.beforeChange,function(t){return n.events.fire(f.ItemEvent.beforeChange,[t])}),this.timepicker.events.on(a.TimepickerEvents.change,function(t){var e=12===n.config.timeFormat?"12:00AM":"00:00",i=n.timepicker.getValue();""===n.config.value&&e===i||n.config.value===i||(n.config.value=n.timepicker.getValue(),n.events.fire(f.ItemEvent.change,[t]),p.isVerify(n.config)&&n.validate(),n.paint())})),this._popup.events.on(d.PopupEvents.afterHide,function(){document.activeElement!==n.getRootView().refs.input.el&&n.events.fire(f.ItemEvent.blur,[n.getValue()]),n.paint()}),this.events.on(f.ItemEvent.input,function(t){var e=12===n.config.timeFormat?7:5;t.length>=e&&p.isTimeFormat(t,n.config.timeFormat)?n.timepicker.setValue(t):""!==t||n.config.controls||n._clear()}),this.events.on(f.ItemEvent.afterChangeProperties,function(){n.config.value=n.timepicker.getValue(),n.paint()}),this.events.on(f.ItemEvent.blur,function(){n._popupIsFocus=!1,n.paint()}),document.addEventListener("keydown",function(t){var e,i=document.activeElement;(null===(e=null===(e=null===(e=n.getRootView())||void 0===e?void 0:e.refs)||void 0===e?void 0:e.input)||void 0===e?void 0:e.el)!==i&&!n._popup.isVisible()||n.events.fire(f.ItemEvent.keydown,[t])}),document.addEventListener("mousedown",function(){n._popup.getContainer()!==document.activeElement&&(n._popupIsFocus=!1)})},v.prototype._getHandlers=function(){var e=this;return{onfocus:function(){var t;e._popup.isVisible()||(t=e.getRootView().refs.input.el,e._popup.show(t,{theme:t}),e.events.fire(f.ItemEvent.focus,[e.getValue()]),e.paint())},onblur:function(){e._popup.isVisible()||e.events.fire(f.ItemEvent.blur,[e.getValue()]),e.paint()},oninput:function(t){t=t.target.value;e.events.fire(f.ItemEvent.input,[t])}}},v.prototype._initHotkeys=function(){var t,i=this,e={"shift+tab":function(){i._applyTab()},tab:function(){i._applyTab()},escape:function(){i._popup.isVisible()&&i.getRootView().refs.input.el.focus(),i._popup.hide()},enter:function(t){t.preventDefault();t=i.getRootView().refs.input.el;i._popup.isVisible()||i._popup.show(t,{theme:t}),i._popupIsFocus&&i.config.controls?i._afterApply(!0):(i._popup.hide(),i.paint())},arrowRight:function(t){var e=i._popup.getContainer();i._popupIsFocus=e.contains(document.activeElement),i._popup.isVisible()&&!i._popupIsFocus&&(t.preventDefault(),e.focus(),i._popupIsFocus=!0)}};for(t in e)this._keyManager.addHotKey(t,e[t])},v.prototype._draw=function(){var t=this.config,e=t.value,i=t.required,n=t.disabled,o=t.placeholder,r=t.name,s=t.id,a=t.editable,l=t.label,t=t.helpMessage,c=this._popup.isVisible()||(null===(c=null===(c=null===(c=this.getRootView())||void 0===c?void 0:c.refs)||void 0===c?void 0:c.input)||void 0===c?void 0:c.el)===document.activeElement;return u.el("div.dhx_form-group",{class:p.getFormItemCss(this.config,p.isVerify(this.config),c)},[this._drawLabel(),u.el(".dhx_input__wrapper",[u.el("div.dhx_input__container",{},[u.el(".dhx_input__icon.dxi.dxi-clock-outline"),u.el("input.dhx_input.dhx_input--icon-padding",{tabindex:0,"data-dhx-id":r||s,_key:this._uid,_ref:"input",value:e,type:"text",required:i,disabled:n,class:c&&"dhx_input--focus",placeholder:o||"",name:r||"",id:s||this._uid,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,oninput:this._handlers.oninput,autocomplete:"off",readOnly:!a,"aria-label":l||(a?"type or":"")+" select date","aria-describedby":t?"dhx_label__help_"+(s||this._uid):null})]),p.getValidationMessage(this.config)&&u.el("span.dhx_input__caption",{},p.getValidationMessage(this.config))])])},v.prototype._clear=function(t){(t||this.events.fire(f.ItemEvent.beforeChange,[""]))&&(this.config.value="",this.timepicker.clear(),t||(this.events.fire(f.ItemEvent.change,[""]),p.isVerify(this.config)&&this.validate()),this.paint())},v.prototype._afterApply=function(t){if(void 0===t&&(t=!1),""!==this.getRootView().refs.input.el.value||t){t=this.timepicker.getValue(this._isTimeObject());if(!this.events.fire(f.ItemEvent.beforeChange,[t]))return;this.config.value=this.timepicker.getValue(),this.events.fire(f.ItemEvent.change,[t]),p.isVerify(this.config)&&this.validate()}else this.clear();this._popup.hide(),this.paint()},v.prototype._applyTab=function(){var t;document.activeElement===(null===(t=null===(t=null===(t=this._popup.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.content)||void 0===t?void 0:t.el)||this._popupIsFocus||this._popup.hide()},v.prototype._isTimeObject=function(){var t;return"timeobject"===(null===(t=this.config.valueFormat)||void 0===t?void 0:t.toLowerCase())},v);function v(t,e){var i=s.call(this,null,e)||this;i.events=new h.EventSystem,i._isValid=!0,i._popupIsFocus=!1,i._propsItem=["required","validation","icon","placeholder","editable","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage"],i._propsTimepicker=["timeFormat","controls","valueFormat"],i._props=r(p.baseProps,i._propsItem,i._propsTimepicker),i._keyManager=new g.KeyManager(function(){var t,e=document.activeElement;return(null===(t=null===(t=null===(t=i.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.input)||void 0===t?void 0:t.el)===e||i._popup.isVisible()}),i._initView(e),i._initHandlers(),i._initHotkeys();return i.mount(t,u.create({render:function(){return i._draw()}})),i}e.TimePicker=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(52),l=i(2),d=i(0),c=i(1),u=i(14),h=i(12),f=i(4),p=i(7),g=i(13),o=(s=u.Label,o(v,s),v.prototype.destructor=function(){this.events&&this.events.clear(),this._popup&&this._popup.destructor(),this.colorpicker&&this.colorpicker.destructor(),this.events=this._uid=this._propsColorpicker=this._propsItem=this._props=this._isValid=null,s.prototype._destructor.call(this),this.unmount()},v.prototype.setProperties=function(t){if(t&&!c.isEmptyObj(t)&&this.events.fire(f.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e],this._propsColorpicker.includes(e)&&(this.colorpicker.config[e]=t[e]));this.events.fire(f.ItemEvent.afterChangeProperties,[this.getProperties()]),this.colorpicker.paint(),this.paint()}},v.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},v.prototype.show=function(){var t=this.config,e=t.value;t.hidden&&this.events.fire(f.ItemEvent.beforeShow,[e])&&(this.config.hidden=!1,this.events.fire(f.ItemEvent.afterShow,[e]))},v.prototype.hide=function(t){var e=this.config,i=e.value;e.hidden&&!t||!this.events.fire(f.ItemEvent.beforeHide,[i,t])||(this.config.hidden=!0,this.events.fire(f.ItemEvent.afterHide,[i,t]))},v.prototype.isVisible=function(){return!this.config.hidden},v.prototype.disable=function(){this.config.disabled=!0,this.paint()},v.prototype.enable=function(){var t;this.config.disabled=!1,null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.paint()},v.prototype.isDisabled=function(){return!!this.config.disabled},v.prototype.validate=function(t,e){void 0===t&&(t=!1);e=void 0===e?this.getValue():e;if(t||this.events.fire(f.ItemEvent.beforeValidate,[e]))return this._isValid=this.config.validation?this.config.validation(e):a.isHex(e),t||this.events.fire(f.ItemEvent.afterValidate,[e,this._isValid]),this._isValid},v.prototype.clearValidate=function(){this.config.$validationStatus=f.ValidationStatus.pre,this.paint()},v.prototype.setValue=function(t){void 0!==t&&t!==this.config.value&&this.colorpicker.setValue(t)},v.prototype.getValue=function(){return this.colorpicker.getValue()},v.prototype.clear=function(){""!==this.config.value&&this.colorpicker.clear()},v.prototype.getWidget=function(){return this.colorpicker},v.prototype.focus=function(){var t=this;d.awaitRedraw().then(function(){t.getRootView().refs.input.el.focus()})},v.prototype.blur=function(){var t=this;d.awaitRedraw().then(function(){t._popup.hide(),t.getRootView().refs.input.el.blur()})},v.prototype._initView=function(t){var e,i=this;if(c.isEmptyObj(t))throw new Error("Check the configuration is correct");for(e in this.colorpicker&&this.colorpicker.destructor(),this._popup&&this._popup.destructor(),this.config={type:t.type,id:t.id,name:t.name,disabled:!1,editable:!1,hidden:!1,value:"",grayShades:!0,pickerOnly:!1,paletteOnly:!1,customColors:[],palette:a.palette,mode:"palette",required:!1,icon:"",placeholder:"",label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t)"id"!==e&&"type"!==e&&"name"!==e&&(this.config[e]=t[e]);this._popup=new h.Popup,this.colorpicker=new a.Colorpicker(null,p.widgetConfig(t)),this._popup.attach(this.colorpicker),this.config.hidden&&d.awaitRedraw().then(function(){i.hide(!0)})},v.prototype._initHandlers=function(){var n=this;this.colorpicker.events.on(a.ColorpickerEvents.beforeChange,function(t){return n.events.fire(f.ItemEvent.beforeChange,[t])}),this.colorpicker.events.on(a.ColorpickerEvents.change,function(){n.config.value=n.colorpicker.getValue(),n.events.fire(f.ItemEvent.change,[n.config.value]),p.isVerify(n.config)&&n.validate(),n._popup.hide(),n.paint()}),this.events.on(f.ItemEvent.afterValidate,function(){n.config.$validationStatus=n._isValid?f.ValidationStatus.success:f.ValidationStatus.error,n.paint()}),this._popup.events.on(h.PopupEvents.afterHide,function(){document.activeElement!==n.getRootView().refs.input.el&&n.events.fire(f.ItemEvent.blur,[n.getValue()]),n.paint()}),this.events.on(f.ItemEvent.blur,function(){n._popupIsFocus=!1,n.paint()}),document.addEventListener("keydown",function(t){var e,i=document.activeElement;(null===(e=null===(e=null===(e=n.getRootView())||void 0===e?void 0:e.refs)||void 0===e?void 0:e.input)||void 0===e?void 0:e.el)!==i&&!n._popup.isVisible()||n.events.fire(f.ItemEvent.keydown,[t])}),document.addEventListener("mousedown",function(){n._popup.getContainer()!==document.activeElement&&(n._popupIsFocus=!1)})},v.prototype._getHandlers=function(){var e=this;return{onblur:function(){e._popup.isVisible()||e.events.fire(f.ItemEvent.blur,[e.getValue()]),e.paint()},onfocus:function(){var t;e._popup.isVisible()||(t=e.getRootView().refs.input.el,e._popup.show(t,{theme:t}),e.events.fire(f.ItemEvent.focus,[e.getValue()]),e.paint())},oninput:function(t){t=t.target.value;e.events.fire(f.ItemEvent.input,[t])},onchange:function(t){t=t.target.value;e.config.editable&&a.isHex(t)?e.setValue(t):""===t&&e.clear()}}},v.prototype._initHotkeys=function(){var t,i=this,e={"shift+tab":function(){i._applyTab()},tab:function(){i._applyTab()},escape:function(){i._popup.isVisible()&&i.getRootView().refs.input.el.focus(),i._popup.hide()},enter:function(t){t.preventDefault(),i._popup.isVisible()||(t=i.getRootView().refs.input.el,i._popup.show(t,{theme:t}))},arrowRight:function(t){var e=i._popup.getContainer();i._popup.isVisible()&&!i._popupIsFocus&&(t.preventDefault(),e.focus(),i._popupIsFocus=!0)}};for(t in e)this._keyManager.addHotKey(t,e[t])},v.prototype._draw=function(){var t=this.config,e=t.required,i=t.value,n=t.icon,o=t.disabled,r=t.placeholder,s=t.name,a=t.id,l=t.editable,c=t.label,t=t.helpMessage,u=this._popup.isVisible()||(null===(u=null===(u=null===(u=this.getRootView())||void 0===u?void 0:u.refs)||void 0===u?void 0:u.input)||void 0===u?void 0:u.el)===document.activeElement;return d.el("div.dhx_form-group",{class:p.getFormItemCss(this.config,p.isVerify(this.config),u)},[this._drawLabel(),d.el(".dhx_input__wrapper",[d.el("div.dhx_input__container",{},[d.el(".dhx_input__icon",{class:n||"dxi dxi-eyedropper-variant"+(i?" dhx_input__icon--color-selected":""),style:{"background-color":i||"transparent"}}),d.el("input.dhx_input.dhx_input--icon-padding",{tabindex:0,"data-dhx-id":s||a,_key:this._uid,_ref:"input",value:i,type:"text",required:e,disabled:o,class:u&&"dhx_input--focus",placeholder:r||"",name:s||"",id:a||this._uid,onfocus:this._handlers.onfocus,oninput:this._handlers.oninput,onchange:this._handlers.onchange,onblur:this._handlers.onblur,autocomplete:"off",readOnly:!l,"aria-label":c||(l?"type or":"")+" select color","aria-describedby":t?"dhx_label__help_"+(a||this._uid):null})]),p.getValidationMessage(this.config)&&d.el("span.dhx_input__caption",{},p.getValidationMessage(this.config))])])},v.prototype._applyTab=function(){var t;document.activeElement===(null===(t=null===(t=null===(t=this._popup.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.content)||void 0===t?void 0:t.el)||this._popupIsFocus||this._popup.hide()},v);function v(t,e){var i=s.call(this,null,e)||this;i.events=new l.EventSystem,i._isValid=!0,i._popupIsFocus=!1,i._propsItem=["required","validation","icon","placeholder","editable","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage"],i._propsColorpicker=["mode","grayShades","customColors","palette"],i._props=r(p.baseProps,i._propsItem,i._propsColorpicker),i._keyManager=new g.KeyManager(function(){var t,e=document.activeElement;return(null===(t=null===(t=null===(t=i.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.input)||void 0===t?void 0:t.el)===e||i._popup.isVisible()}),i._initView(e),i._initHandlers(),i._initHotkeys();return i.mount(t,d.create({render:function(){return i._draw()}})),i}e.ColorPicker=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(0),l=i(5),c=i(4),u=i(2),d=i(1),h=i(7),o=(s=l.View,o(f,s),f.prototype.destructor=function(){this.events&&this.events.clear(),this.config=this.events=null,this.unmount()},f.prototype.setProperties=function(t){if(t&&!d.isEmptyObj(t)&&this.events.fire(c.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)h.baseProps.includes(e)&&(this.config[e]=t[e]);this.events.fire(c.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},f.prototype.getProperties=function(){for(var t={},e=0,i=h.baseProps;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},f.prototype.show=function(){this.config.hidden&&this.events.fire(c.ItemEvent.beforeShow,[])&&(this.config.hidden=!1,this.events.fire(c.ItemEvent.afterShow,[]))},f.prototype.hide=function(t){this.config.hidden&&!t||!this.events.fire(c.ItemEvent.beforeHide,[!!t])||(this.config.hidden=!0,this.events.fire(c.ItemEvent.afterHide,[!!t]))},f.prototype.isVisible=function(){return!this.config.hidden},f.prototype._draw=function(){return a.el("div")},f);function f(t,e){var i=s.call(this,t,r({disabled:!1,hidden:!1,width:"content",height:"content"},e))||this;i.events=new u.EventSystem,i.config.hidden&&a.awaitRedraw().then(function(){i.hide(!0)});return i.mount(t,a.create({render:function(){return i._draw()}})),i}e.Spacer=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),c=this&&this.__assign||function(){return(c=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},r=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var s,u=i(0),a=i(1),l=i(2),d=i(14),h=i(4),f=i(7),p=i(97),o=(s=d.Label,o(g,s),g.prototype.send=function(t){var i=this,e=this.config,n=e.target,o=e.value,r=e.updateFromResponse,s=e.headerParams;if(!this._isUpload&&n&&null!=o&&o.file&&o.status!==p.FileStatus.uploaded&&this.events.fire(h.ItemEvent.beforeUploadFile,[o])){var t=this._createFormData(o,t),a=new XMLHttpRequest;if(this._isUpload=!0,this.config.value=c(c({},o),{status:p.FileStatus.inprogress,request:a}),this.events.fire(h.ItemEvent.uploadBegin,[this.config.value]),this.events.fire(h.ItemEvent.uploadProgress,[0,this.config.value]),a.open("POST",n),s)for(var l in s)a.setRequestHeader(l,s[l]);a.upload.onprogress=function(t){t=t.loaded/t.total;i.config.value=c(c({},i.config.value),{progress:t}),i.events.fire(h.ItemEvent.uploadProgress,[100*t,i.config.value])},a.onloadend=function(){var t=200===a.status?p.FileStatus.uploaded:p.FileStatus.failed,e=200===a.status&&a.response?JSON.parse(a.response):null;i.config.value=c(c({},i.config.value),{status:t}),t===p.FileStatus.uploaded?(e&&r&&(i.config.value=c(c({},i.config.value),e)),i.events.fire(h.ItemEvent.uploadFile,[i.config.value,e])):i.events.fire(h.ItemEvent.uploadFail,[i.config.value]),i._isUpload=!1,i.events.fire(h.ItemEvent.uploadComplete,[i.config.value])},a.send(t)}},g.prototype.selectFile=function(){var t;null!==(t=null===(t=null===(t=this.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.input)&&void 0!==t&&t.el.click()},g.prototype.setValue=function(t){this.events.fire(h.ItemEvent.beforeChange,[t])&&(this.config.value=!a.isEmptyObj(t)&&c({id:a.uid(),status:p.FileStatus.queue,progress:0,path:""},t)||{},this.events.fire(h.ItemEvent.change,[this.getValue()]),f.isVerify(this.config)&&this.validate())},g.prototype.getValue=function(){return this.config.value||{}},g.prototype.clear=function(){this.setValue({})},g.prototype.disable=function(){this.config.disabled=!0,this.paint()},g.prototype.enable=function(){var t;this.config.disabled=!1,null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.paint()},g.prototype.isDisabled=function(){return!!this.config.disabled},g.prototype.show=function(){this.config.hidden&&this.events.fire(h.ItemEvent.beforeShow,[this.getValue()])&&(this.config.hidden=!1,this.events.fire(h.ItemEvent.afterShow,[this.getValue()]))},g.prototype.hide=function(t){void 0===t&&(t=!1),this.config.hidden&&!t||!this.events.fire(h.ItemEvent.beforeHide,[this.getValue(),t])||(this.config.hidden=!0,this.events.fire(h.ItemEvent.afterHide,[this.getValue(),t]))},g.prototype.isVisible=function(){return!this.config.hidden},g.prototype.validate=function(t,e){e=e||this.getValue();return!(!t&&!this.events.fire(h.ItemEvent.beforeValidate,[e]))&&(this._isValid=!!("function"==typeof this.config.validation?this.config.validation(e):e.src),t||this.events.fire(h.ItemEvent.afterValidate,[e,this._isValid]),this._isValid)},g.prototype.clearValidate=function(){this.config.$validationStatus=h.ValidationStatus.pre,this.paint()},g.prototype.setProperties=function(t){if(t&&!a.isEmptyObj(t)&&this.events.fire(h.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this.events.fire(h.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},g.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},g.prototype.focus=function(){var e=this;u.awaitRedraw().then(function(){var t;null!==(t=null===(t=null===(t=e.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.input)&&void 0!==t&&t.el.focus(),e.paint()})},g.prototype.blur=function(){var e=this;u.awaitRedraw().then(function(){var t;null!==(t=null===(t=null===(t=e.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.input)&&void 0!==t&&t.el.blur(),e.paint()})},g.prototype.destructor=function(){this.events&&this.events.clear(),s.prototype._destructor.call(this),this.unmount()},g.prototype._initView=function(t){this.config=c({size:"medium",labelPosition:"top",width:"content",height:"content",accept:"image/*",fieldName:"file",target:"",alt:"",css:"",label:"",errorMessage:"",successMessage:"",helpMessage:"",icon:"",labelWidth:"",placeholder:"",preMessage:"",removeIcon:!0,circle:!1,readOnly:!1,hiddenLabel:!1,autosend:!1,updateFromResponse:!0},t),this.paint()},g.prototype._initHandlers=function(){var o=this;this._handlers=c({change:function(t){var e=null===(t=null===(e=t.target)||void 0===e?void 0:e.files)||void 0===t?void 0:t[0];!o.config.readOnly&&e&&(t=URL.createObjectURL(e),o.setValue({file:e,src:t}),o.config.autosend&&o._isValid&&o.send())},drop:function(t){t.preventDefault();var e=null===(t=null===(e=t.dataTransfer)||void 0===e?void 0:e.files)||void 0===t?void 0:t[0];!o.config.readOnly&&e&&(t=URL.createObjectURL(e),o._dragover=!1,o.setValue({file:e,src:t}),o.config.autosend&&o._isValid&&o.send())},dragover:function(t){if(t.preventDefault(),!o.config.readOnly){for(var e=0,i=t.dataTransfer.types;e<i.length;e++){var n=i[e];if("Files"!==n&&"application/x-moz-file"!==n)return}o._dragoverTimeout?clearTimeout(o._dragoverTimeout):o.paint(),o._dragover=!0,o._dragoverTimeout=setTimeout(function(){o._dragover=!1,o._dragoverTimeout=null,o.paint()},150)}},onfocus:function(){return o.events.fire(h.ItemEvent.focus,[o.getValue()])},onblur:function(){return o.events.fire(h.ItemEvent.blur,[o.getValue()])},onkeydown:function(t){return o.events.fire(h.ItemEvent.keydown,[t])}},this._handlers),this.events.on(h.ItemEvent.change,function(){return o.paint()}),this.events.on(h.ItemEvent.afterValidate,function(){o.config.$validationStatus=o._isValid?h.ValidationStatus.success:h.ValidationStatus.error,o.paint()})},g.prototype._draw=function(){var t=this.config,e=t.hidden,i=t.alt,n=t.circle,o=t.size,r=t.label,s=t.value,a=t.readOnly,l=e?" dhx_form-group--hidden":"",t="",e={};return this._dragover&&(t+="dhx_avatar--on-drag "),n&&(t+="dhx_avatar--circle "),o&&"string"!=typeof o?e.width=e.height=o:o&&["small","medium","large"].includes(o)?t+="dhx_avatar-size--"+o+" ":t+="dhx_avatar-size--medium ",u.el("div.dhx_form-group.dhx_form-group--avatar",{"aria-label":i||r,role:"img",class:f.getFormItemCss(this.config,f.isVerify(this.config),!1)+l},[this._drawLabel(),u.el("div.dhx_avatar",{class:t,style:e,ondragover:this._handlers.dragover,ondrop:this._handlers.drop},[null!=s&&s.src?this._drawImage(this.config):this._drawPreview(this.config),!a&&this._drawCover(this.config)]),f.getValidationMessage(this.config)&&u.el("span.dhx_input__caption",f.getValidationMessage(this.config))])},g.prototype._drawImage=function(t){var e=t.alt,t=t.value;return u.el("img.dhx_avatar__image",{src:null==t?void 0:t.src,alt:e})},g.prototype._drawPreview=function(t){var e=t.icon,i=t.placeholder,t=t.preview;return u.el("div.dhx_avatar__preview",{style:c({},t?{"background-image":"url("+t}:{})},[t?null:[e&&u.el("div.dhx_avatar__preview-icon",{class:e}),i&&u.el("div.dhx_avatar__preview-placeholder",{"aria-placeholder":i},i)]])},g.prototype._drawCover=function(t){var e=this,i=t.accept,n=t.id,o=t.value,t=t.removeIcon;return u.el("div.dhx_avatar__cover",[u.el("label.dhx_avatar__cover-upload",[u.el("input.dhx_avatar__cover-input",{_ref:"input",id:n,accept:i,type:"file",onchange:this._handlers.change,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown}),u.el("i.dhx_avatar__cover-icon.dxi.dxi-vault")]),(null==o?void 0:o.src)&&t&&u.el("div.dhx_avatar__cover-remove",{onclick:function(){return e.clear()}},[u.el("i.dhx_avatar__cover-icon.dxi.dxi-delete-forever")])])},g.prototype._createFormData=function(t,e){var i=this.config.fieldName,n=this.config.params,o=new FormData;if(e)for(var r in e)o.append(r,e[r]);if(n)for(var r in n)o.append(r,n[r]);return o.append(i,t.file,t.file.name),o.append(i+"_fullname",t.path+t.file.name),o.append(i+"_id",t.id),o},g);function g(t,e){t=s.call(this,t,e)||this;return t.events=new l.EventSystem,t._propsItem=["validation","required","readOnly","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage","size","circle","alt","icon","placeholder","preview","accept","autosend","params","headerParams","fieldName","target","updateFromResponse","removeIcon"],t._props=r(f.baseProps,t._propsItem),t._isValid=!0,t._isUpload=!1,t._initView(e),t._initHandlers(),t}e.Avatar=o},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var r=i(2),s=i(4),a=i(7),l=i(1),c=i(0),i=(u.prototype.forEach=function(t,e){void 0===e&&(e=!1);for(var i=e?this.getTreeAttachments(this.getAttachments()):this.attachments,n=0;n<i.length;n++)t.call(this,i[n],n,i)},u.prototype.disable=function(){this.forEach(function(t){return"function"==typeof t.disable&&t.disable()}),this.config.disabled=this.cell.config.$disabled=!0,this.cell.paint()},u.prototype.enable=function(){var t;this.config.disabled=this.cell.config.$disabled=!1,this.attachments.every(function(t){return t.isDisabled()})&&this.forEach(function(t){return"function"==typeof t.enable&&t.enable()}),null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.cell.paint()},u.prototype.isDisabled=function(){return!!this.config.disabled},u.prototype.show=function(){this.config.hidden&&(this.forEach(function(t){return"function"==typeof t.hide&&t.show()}),this.config.hidden=!1,this.cell.show())},u.prototype.hide=function(e){void 0===e&&(e=!1),this.config.hidden&&!e||(this.forEach(function(t){"function"==typeof t.hide&&("checkboxgroup"===t.config.type||"radiogroup"===t.config.type?t.hide(void 0,e):t.hide(e))}),this.config.hidden=!0,this.cell.hide())},u.prototype.isVisible=function(){return!this.config.hidden},u.prototype.setProperties=function(t){if(t&&!l.isEmptyObj(t)&&this.events.fire(s.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this.props.includes(e)&&(this.config[e]=t[e]);this.events.fire(s.ItemEvent.afterChangeProperties,[this.getProperties()])}},u.prototype.getProperties=function(){for(var t={},e=0,i=this.props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},u.prototype.destructor=function(){this.cell.hide(),this.events.clear(),this.attachments=[]},u.prototype.setCell=function(t){this.cell=t},u.prototype.getCell=function(){return this.cell},u.prototype.setAttachments=function(t){this.attachments=t},u.prototype.getAttachments=function(){return this.attachments},u.prototype.getTreeAttachments=function(t){for(var e=[],i=0;i<t.length;i++){var n=t[i];e.push(n),"fieldset"===n.config.type&&e.push.apply(e,n.getTreeAttachments(n.getAttachments()))}return e},u);function u(t){var e=this;this.events=new r.EventSystem,this.attachments=[],this.propsItem=["label","labelAlignment","align"],this.props=o(a.baseProps,this.propsItem),this.config=n({disabled:!1,hidden:!1,width:"content",height:"content",labelAlignment:"left",label:"",css:""},t),c.awaitRedraw().then(function(){var t;e.config.hidden&&e.hide(!0),e.config.disabled&&e.disable(),null!==(t=e.cell)&&void 0!==t&&t.events.on("afterShow",function(){e.config.hidden=!1}),null!==(t=e.cell)&&void 0!==t&&t.events.on("afterHide",function(){e.config.hidden=!0})})}e.Fieldset=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),h=this&&this.__assign||function(){return(h=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},r=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var s,f=i(4),a=i(99),l=i(5),c=i(0),u=i(7),d=i(2),p=i(1),o=(s=l.View,o(g,s),g.prototype.setValue=function(t){var i;if(t&&!p.isEmptyObj(t)){if(!this.config.multiselection)for(var e=Object.entries(t).find(function(t){t[0];return t[1]}),n=this.getValue(),o=0,r=Object.entries(n);o<r.length;o++){var s=r[o],a=s[0],s=s[1],s="boolean"==typeof s?!1:"number"==typeof s?0:"string"==typeof s?"":s;t[a]=e&&e[0]===a?e[1]:s}if(!this.events.fire(f.ItemEvent.beforeChange,[h(h({},this.getValue()),t)]))return!1;for(var l=this,c=0,u=Object.entries(t);c<u.length;c++){var d=u[c];!function(e,t){null!==(i=l.items.find(function(t){return t.config.id===e}))&&void 0!==i&&i.setValue(!!t,!0)}(d[0],d[1])}this.events.fire(f.ItemEvent.change,[this.getValue()])}},g.prototype.getValue=function(e){if(e){var t=this.items.find(function(t){return t.config.id===e});if(t)return t.getValue()}var i={};return this.items.forEach(function(t){i[t.config.id]=t.getValue()}),i},g.prototype.isSelected=function(e){if(e){var t=this.items.find(function(t){return t.config.id===e});if(t)return t.isSelected()}var i={};return this.items.forEach(function(t){i[t.config.id]=t.isSelected()}),i},g.prototype.show=function(e){var t=e&&this.items.find(function(t){return t.config.id===e});t&&!t.config.hidden||!this.events.fire(f.ItemEvent.beforeShow,[this.getValue(),e])||(t?t.show():this.items.forEach(function(t){return t.show()}),this.config.hidden=!1,this.checkVisibleOrder(!!t),this.events.fire(f.ItemEvent.afterShow,[this.getValue(),e]))},g.prototype.hide=function(e,t){var i=e&&this.items.find(function(t){return t.config.id===e});this.config.hidden&&!t||i&&i.config.hidden||!this.events.fire(f.ItemEvent.beforeHide,[this.getValue(),e,t])||(i?(i.hide(),this.config.hidden=this.items.every(function(t){return t.config.hidden})):(this.items.forEach(function(t){return t.hide()}),this.config.hidden=!0),this.checkVisibleOrder(!!i),this.events.fire(f.ItemEvent.afterHide,[this.getValue(),e,t]))},g.prototype.isVisible=function(e){var t=this.items.find(function(t){return t.config.id===e});return t?t.isVisible():!this.config.hidden},g.prototype.focus=function(e){var i=this;c.awaitRedraw().then(function(){var t=i.items.find(function(t){return t.config.id===e})||i.items[0];t&&t.focus()})},g.prototype.blur=function(){var t=this;c.awaitRedraw().then(function(){t.items.forEach(function(t){return t.blur()})})},g.prototype.disable=function(e){var t=e&&this.items.find(function(t){return t.config.id===e});this.config.disabled||t&&t.config.disabled||(t?(t.disable(),this.config.disabled=this.items.every(function(t){return t.config.disabled})):(this.items.forEach(function(t){return t.disable()}),this.config.disabled=!0),this.paint())},g.prototype.enable=function(e){var t=e&&this.items.find(function(t){return t.config.id===e});!t&&!this.config.disabled||t&&!t.config.disabled||(t?null!=t&&t.enable():this.items.forEach(function(t){return t.enable()}),this.config.disabled=!1,null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.paint())},g.prototype.isDisabled=function(e){var t=this.items.find(function(t){return t.config.id===e});return t?t.isDisabled():!!this.config.disabled},g.prototype.setProperties=function(t,e){var i=this.items.find(function(t){return t.config.id===e});if(t&&!p.isEmptyObj(t)&&this.events.fire(f.ItemEvent.beforeChangeProperties,[h(h({},(i||this).getProperties()),t)])){if(i)i.setProperties(t);else for(var n in t)this.props.includes(n)&&(this.config[n]=t[n]);this.events.fire(f.ItemEvent.afterChangeProperties,[(i||this).getProperties()])}},g.prototype.getProperties=function(e){if(e){var t=this.items.find(function(t){return t.config.id===e});if(t)return t.getProperties()}for(var i={},n=0,o=this.props;n<o.length;n++){var r=o[n];i[r]=this.config[r]}return i},g.prototype.destructor=function(){this.events.clear(),this.unmount()},g.prototype.initView=function(){var t,i=this;if(null===(t=this.config.options)||void 0===t||!t.length)throw new Error("Check the configuration is correct");this.items=this.config.options.map(function(t,e){return t.id||(t.id=t.name||p.uid()),i.config.gap&&(t.$gap=e&&i.config.gap),new a.ToggleButton(null,h(h({},t),{$group:!0}))}),this.config.value&&this.setValue(this.config.value),this.checkVisibleOrder()},g.prototype.initHandlers=function(){var n=this;this.items.forEach(function(i){i.events.on(f.ItemEvent.keydown,function(t){n.events.fire(f.ItemEvent.keydown,[t,i.config.id])}),i.events.on(f.ItemEvent.focus,function(){n.events.fire(f.ItemEvent.focus,[n.getValue(),i.config.id])}),i.events.on(f.ItemEvent.blur,function(){n.events.fire(f.ItemEvent.blur,[n.getValue(),i.config.id])}),i.events.on(f.ItemEvent.beforeChange,function(t){var e;return"string"==typeof i.config.value&&(t=t?i.config.value:""),"number"==typeof i.config.value&&(t=t?i.config.value:0),n.setValue(((e={})[i.config.id]=t,e))})})},g.prototype.draw=function(){var t=this.config,e=t.hidden,i=t.id,n=t.name,o=t.full,r=t.gap,t=this.items.map(function(t){return c.inject(t.getRootView())});return c.el("div.dhx_form-group.dhx_form-group--toggle-group.dhx_toggle-group",{"data-dhx-id":n||i,"aria-label":n||i,role:"group",class:(e?"dhx_form-group--hidden ":"")+(o?"dhx_toggle-group--full ":"")+(r?"dhx_toggle-group--segmented ":"")+u.getFormItemCss(this.config)},[t])},g.prototype.checkVisibleOrder=function(t){var e,i,n=this.items.map(function(t){return delete t.config.$extraCss,t}).filter(function(t){return!t.config.hidden});n.length&&(e=this.items.findIndex(function(t){return t.config.id===n[0].config.id}),i=this.items.findIndex(function(t){return t.config.id===n[n.length-1].config.id}),this.items[e].config.$extraCss="dhx_toggle--first ",this.items[i].config.$extraCss=this.items[i].config.$extraCss?this.items[i].config.$extraCss+"dhx_toggle--last ":"dhx_toggle--last "),t&&this.items.forEach(function(t){return t.paint()})},g);function g(t,e){var i=s.call(this,t,h({full:!1,multiselect:!1,disabled:!1,hidden:!1,width:"content",height:"content",gap:0,css:"",padding:"",items:[]},e))||this;i.events=new d.EventSystem,i.items=[],i.props=r(u.baseProps,["options","full","gap","multiselect"]),i.initView(),i.initHandlers(),i.config.hidden&&c.awaitRedraw().then(function(){console.log("hidden"),i.hide(void 0,!0)});return i.mount(t,c.create({render:function(){return i.draw()}})),i}e.ToggleGroup=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(95),a=i(4),l=i(11),c=i(228),u=i(7),o=(r=s.Form,o(d,r),d.prototype._initItemHandlers=function(t,e){var i=this;r.prototype._initItemHandlers.call(this,t,e),"container"===t.type&&((t=this._attachments[e]=new c.Container(null,t)).events.on(a.ItemEvent.beforeChangeProperties,function(t){return i.events.fire(a.FormEvents.beforeChangeProperties,[e,t])}),t.events.on(a.ItemEvent.afterChangeProperties,function(t){i._changeProps(e,t),i.events.fire(a.FormEvents.afterChangeProperties,[e,t]),i.layout.paint()}),t.events.on(a.ItemEvent.beforeHide,function(t){if(!t)return i.events.fire(a.FormEvents.beforeHide,[e])}),t.events.on(a.ItemEvent.beforeShow,function(){return i.events.fire(a.FormEvents.beforeShow,[e])}),t.events.on(a.ItemEvent.afterHide,function(t){i.layout.getCell(e).hide(),t||i.events.fire(a.FormEvents.afterHide,[e])}),t.events.on(a.ItemEvent.afterShow,function(){i.layout.getCell(e).show(),i.events.fire(a.FormEvents.afterShow,[e])}))},d.prototype._initUI=function(t){var e=this._attachments={},i={padding:"8px"};this.config.css+=" dhx_form",this._createLayoutConfig(this.config,i),this.layout=new l.ProLayout(t,i),u.setAttacments(e,this.layout)},d);function d(t,e){return r.call(this,t,e)||this}e.ProForm=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(0),l=i(5),c=i(4),u=i(2),d=i(1),h=i(11),f=i(7),o=(s=l.View,o(p,s),p.prototype.attach=function(t){this.container.attach(t)},p.prototype.attachHTML=function(t){this.container.attachHTML(t)},p.prototype.show=function(){this.config.hidden&&this.events.fire(c.ItemEvent.beforeShow,[])&&(this.config.hidden=!1,this.events.fire(c.ItemEvent.afterShow,[]))},p.prototype.hide=function(t){void 0===t&&(t=!1),this.config.hidden&&!t||!this.events.fire(c.ItemEvent.beforeHide,[t])||(this.config.hidden=!0,this.events.fire(c.ItemEvent.afterHide,[t]))},p.prototype.isVisible=function(){return!this.config.hidden},p.prototype.disable=function(){this.config.disabled=!0,this.paint()},p.prototype.enable=function(){var t;this.config.disabled=!1,null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.paint()},p.prototype.isDisabled=function(){return!!this.config.disabled},p.prototype.setProperties=function(t){if(t&&!d.isEmptyObj(t)&&this.events.fire(c.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)f.baseProps.includes(e)&&(this.config[e]=t[e]);this.events.fire(c.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},p.prototype.getProperties=function(){for(var t={},e=0,i=f.baseProps;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},p.prototype._getRootView=function(){return this.container.getRootView()},p.prototype._draw=function(){var t=this.config,e=t.name,i=t.id,t=t.disabled?" dhx_form-group--disabled":"";return a.el(".dhx_form-group.dhx_form-group--container",{class:t,"data-dhx-id":e||i},[a.inject(this._getRootView())])},p);function p(t,e){var i=s.call(this,t,r({disabled:!1,hidden:!1,width:"content",height:"content"},e))||this;if(i.events=new u.EventSystem,d.isEmptyObj(e))throw new Error("Check the configuration is correct");i.container&&i.container.destructor();var n,o={};for(n in e)"id"!==n&&"type"!==n&&"name"!==n&&"width"!==n&&"height"!==n&&(i.config[n]=e[n],"validation"!==n&&(o[n]=e[n]));i.container=new h.Layout(null,{rows:[o]}),o.html&&i.container.attachHTML(o.html),i.config.hidden&&a.awaitRedraw().then(function(){i.hide(!0)}),i.paint();return i.mount(t,a.create({render:function(){return i._draw()}})),i}e.Container=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(230)),n(e(231))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(1),a=i(3),l=i(10),c=i(22),o=(r=c.Navbar,o(u,r),u.prototype.showAt=function(t,e){void 0===e&&(e="bottom"),t instanceof MouseEvent?(this._close(t),this._changeActivePosition({left:window.pageXOffset+t.x+1,right:window.pageXOffset+t.x+1,top:window.pageYOffset+t.y,bottom:window.pageYOffset+t.y,zIndex:l.getZIndex(t.target)},e)):window.TouchEvent&&t instanceof TouchEvent?(this._close(t),this._changeActivePosition({left:window.pageXOffset+t.touches[0].clientX,right:window.pageXOffset+t.touches[0].clientX,top:window.pageYOffset+t.touches[0].clientY,bottom:window.pageYOffset+t.touches[0].clientY,zIndex:l.getZIndex(t.target)},e)):(t instanceof HTMLElement||"string"==typeof t)&&(t=a.toNode(t),this._changeActivePosition(a.getRealPosition(t),e))},u.prototype._getFactory=function(){return c.createFactory({widget:this,defaultType:"menuItem",allowedTypes:["menuItem","spacer","separator","customHTML","customHTMLButton"],widgetName:"context-menu"})},u.prototype._close=function(t){var e=this;this.events.on(c.NavigationBarEvents.afterHide,function(){e._activeMenu=null,e._changeActivePosition(null,null)}),r.prototype._close.call(this,t)},u.prototype._getMode=function(t,e,i){return i?this._mode:"right"},u.prototype._changeActivePosition=function(t,e){this._activePosition=t,this._mode=e,this._listenOuterClick(),this.paint()},u);function u(t,e){e=r.call(this,t,s.extend({$name:"context-menu"},e))||this;return e._isContextMenu=!0,e}e.ContextMenu=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(1),a=i(0),l=i(22),o=(r=l.Navbar,o(c,r),c.prototype._getFactory=function(){return l.createFactory({widget:this,defaultType:"menuItem",allowedTypes:["menuItem","spacer","separator","customHTML","customHTMLButton"],widgetName:"menu-nav"})},c.prototype._draw=function(){return a.el("ul.dhx_widget",{"data-dhx-widget-id":this._uid,onmousemove:this._handlers.onmousemove,onmouseleave:this._handlers.onmouseleave,onclick:this._handlers.onclick,onmousedown:this._handlers.onmousedown,class:"dhx_menu-nav "+(this.config.css||"")},this._drawMenuItems(this.data.getRoot(),!1))},c);function c(t,e){var i=r.call(this,t,s.extend({$name:"menu"},e))||this;return i.mount(t,a.create({render:function(){return i._draw()}})),i}e.Menu=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(100)),n(e(233))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(100),a=i(21),l=i(0),c=i(3),u=i(10),o=(r=s.Ribbon,o(d,r),d.prototype._draw=function(){var i=this;this._heightCalculate();var t=[l.el("ul.dhx_ribbon-content.dhx_ribbon-content--full-width",{style:{height:Math.max.apply(Math,this._widgetHeight)}},this.data.map(function(t){return"block"===t.type?i._drawBlock(t,!0):i._factory(t)},this.data.getRoot(),!1))],e=Math.max.apply(Math,this._widgetHeight);return l.el("ul.dhx_ribbon.dhx_widget",{"data-dhx-widget-id":this._uid,class:this.config.css||"",tabindex:0,onclick:this._handlers.onclick,onmousedown:this._handlers.onmousedown,oninput:this._listeners.input,onmouseover:this._listeners.tooltip,_hooks:{didInsert:function(t){t.el.addEventListener("keyup",function(t){var e;9!==t.which||(e=c.locateNode(document.activeElement))&&(t=e.getAttribute("data-dhx-id"),(t=i.data.getItem(t)).tooltip&&u.tooltip(t.tooltip,{node:e,position:u.Position.bottom,force:!0}))},!0)}}},[l.el("li",{class:"dhx_ribbon-block dhx_ribbon-block--root",style:{height:this._haveTitle?e+24:e}},this.scrollView&&this.scrollView.config.enable?[].concat(this.scrollView.render(t)):t)])},d);function d(t,e){var i=r.call(this,t,e)||this;return i.scrollView=new a.ScrollView(function(){return i.getRootView()}),i}e.ProRibbon=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(101)),n(e(235)),n(e(102))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(0),a=i(3),l=i(21),c=i(101),u=i(10),o=(r=c.Sidebar,o(d,r),d.prototype._draw=function(){var i=this,t=this.config,e=t.width,t=t.minWidth,t=this.config.collapsed?t:e,e=[s.el("ul.dhx_navbar.dhx_navbar--vertical",{"data-dhx-widget-id":this._uid,tabindex:0,onclick:this._handlers.onclick,onmousedown:this._handlers.onmousedown,oninput:this._handlers.input,onmouseover:this._handlers.tooltip,_hooks:{didInsert:function(t){t.el.addEventListener("keyup",function(t){var e;9!==t.which||(e=a.locateNode(document.activeElement))&&(t=e.getAttribute("data-dhx-id"),((t=i.data.getItem(t)).tooltip||i.config.collapsed&&t.value)&&u.tooltip(t.tooltip||t.value,{node:e,position:u.Position.right,force:!0}))},!0)}}},this.data.map(function(t){return i._factory(t)},this.data.getRoot(),!1))];return s.el("nav.dhx_widget.dhx_sidebar",{class:(this.config.css||"")+(this.config.collapsed?" dhx_sidebar--minimized":""),style:{width:t+"px"}},this.scrollView&&this.scrollView.config.enable?[].concat(this.scrollView.render(e)):e)},d);function d(t,e){var i=r.call(this,t,e)||this;return i.scrollView=new l.ScrollView(function(){return i.getRootView()}),i}e.ProSidebar=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(237)),n(e(103))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,l=i(1),c=i(0),u=i(2),d=i(3),h=i(13),f=i(19),p=i(11),g=i(103),o=(a=p.Layout,o(v,a),v.prototype.toVDOM=function(){var t=this;this._getTabContainer();var e,i=null;return this.config.noContent||(i=this.getCell(this.config.activeView))&&(e=this._disabled.includes(this.config.activeView)?" dhx_tabbar-content--disabled":"",i.config.css?-1!==i.config.css.indexOf("dhx_tabbar-content--disabled")?i.config.css=i.config.css.replace("dhx_tabbar-content--disabled",""):i.config.css=i.config.css+e:i.config.css=e),c.awaitRedraw().then(function(){t._tabsContainer||t.paint()}),this._tabsContainer&&(this._tabFontSize=parseFloat(getComputedStyle(this._tabsContainer).getPropertyValue("font-size"))),c.el("div",{class:"dhx_widget dhx_tabbar"+(this.config.mode?" dhx_tabbar--"+this.config.mode:"")+(this.config.css?" "+this.config.css:"")},this._tabsContainer?s(this._drawTabs(),[i?i.toVDOM():null]):[])},v.prototype.destructor=function(){this.events&&this.events.clear(),this._keyManager&&this._keyManager.destructor(),a.prototype.destructor.call(this),this.unmount(),this._tabsContainer=this._beforeScrollSize=this._afterScrollSize=this._keyManager=null,this.config=this.events=this._cells=this._handlers=null},v.prototype.getWidget=function(){var e=this;return this._cells.filter(function(t){return e.getActive()===t.id})[0].getWidget()},v.prototype.setActive=function(t){var e;this._cells.map(function(t){return t.id}).includes(t)&&!this._disabled.includes(t)&&(e=this.config.activeView,this.events.fire(g.TabbarEvents.beforeChange,[t,e])&&(this.config.activeView=t,this.getCell(t).show(),this._focusTab(t),this.events.fire(g.TabbarEvents.change,[t,e])))},v.prototype.getActive=function(){return this.config?this.config.activeView:null},v.prototype.addTab=function(t,e){this.addCell(t,e),1!==this._cells.length||t.disabled||this.setActive(this._cells[0].id)},v.prototype.removeTab=function(t){var e=this;if(this.events.fire(g.TabbarEvents.beforeClose,[t])){if(t===this.config.activeView){var i=this._getEnableTabs().length,n=l.findIndex(this._getEnableTabs(),function(t){return t.id===e.config.activeView});if(n<0)return;n===i-1&&--n,a.prototype.removeCell.call(this,t),1===i?this.config.activeView=null:this.setActive(this._getEnableTabs()[n].id)}else a.prototype.removeCell.call(this,t);this.events.fire(g.TabbarEvents.afterClose,[t]),this.events.fire(g.TabbarEvents.close,[t])}},v.prototype.disableTab=function(t){return!(!this._cells.map(function(t){return t.id}).includes(t)||this._disabled.includes(t))&&(this._disabled.push(t),this.paint(),!0)},v.prototype.enableTab=function(e){var t;this._disabled.includes(e)&&(t=this._disabled.filter(function(t){return t!==e}),this._disabled=s(t),this.paint())},v.prototype.isDisabled=function(t){return this._disabled.includes(t||this.config.activeView)},v.prototype.removeCell=function(t){this.removeTab(t)},v.prototype._initHandlers=function(){var u=this;a.prototype._initHandlers.call(this),this._handlers=r(r({},this._handlers),{onTabClick:function(i){c.awaitRedraw().then(function(){var t=d.locate(i,"dhx_tabid");if(t&&!u._disabled.includes(t)){var e=u.config.activeView;if(i.target.classList.contains("dhx_tabbar-tab__close"))u.removeTab(t);else{if(!u.events.fire(g.TabbarEvents.beforeChange,[t,e]))return;e!==(u.config.activeView=t)&&u.events.fire(g.TabbarEvents.change,[u.config.activeView,e])}u.paint()}})},onScrollClick:function(t){var n=d.locate(t,"mode");if(!n)switch(t.key){case"ArrowRight":n="right";break;case"ArrowLeft":n="left";break;case"ArrowUp":n="up";break;case"ArrowDown":n="down"}var o,r,s,a,l,c,t={behavior:"smooth"};u._isHorizontalMode()?(o=u._normalizeSize({width:u._getSizes(u._cells[0].config).width}).width,r=u._normalizeSize({width:u._getSizes(u._cells[u._cells.length-1].config).width}).width,u._tabsContainer&&(s=u._tabsContainer.scrollWidth,u._cells.reduce(function(t,e,i){if(t>=u._tabsContainer.scrollLeft&&0!==i&&"left"===n)o=Math.abs(u._normalizeSize({width:u._getSizes(u._cells[i-1].config).width}).width-(t-u._tabsContainer.scrollLeft));else{if(!(t>s+u._tabsContainer.scrollLeft&&"right"===n))return t+u._normalizeSize({width:u._getSizes(e.config).width}).width;r=Math.abs(s+u._tabsContainer.scrollLeft-t)}},0)),t.left="left"===n?u._tabsContainer.scrollLeft-o:u._tabsContainer.scrollLeft+r):(a=u._normalizeSize({height:u._getSizes(u._cells[0].config).height}).height,l=u._normalizeSize({height:u._getSizes(u._cells[u._cells.length-1].config).height}).height,u._tabsContainer&&(c=u._tabsContainer.clientHeight,u._cells.reduce(function(t,e,i){if(t>=u._tabsContainer.scrollTop&&0!==i&&"up"===n)a=Math.abs(u._normalizeSize({height:u._getSizes(u._cells[i-1].config).height}).height-(t-u._tabsContainer.scrollTop));else{if(!(t>c+u._tabsContainer.scrollTop&&"down"===n))return t+u._normalizeSize({height:u._getSizes(e.config).height}).height;l=Math.abs(c+u._tabsContainer.scrollTop-t)}},0)),t.top="up"===n?u._tabsContainer.scrollTop-a:u._tabsContainer.scrollTop+l),d.isIE()?(u._tabsContainer.scrollLeft=t.left,u._tabsContainer.scrollTop=t.top):u._tabsContainer.scrollTo(t)},onHeaderScroll:l.debounce(function(){u.paint()},10)})},v.prototype._isHorizontalMode=function(){return"bottom"===this.config.mode||"top"===this.config.mode},v.prototype._focusTab=function(t,e){var i=this;c.awaitRedraw().then(function(){i.getRootView().refs[t].el.focus(),e&&i._handlers.onScrollClick(e)})},v.prototype._getEnableTabs=function(){var e=this;return this._cells.filter(function(t){return!e._disabled.includes(t.config.id)})},v.prototype._getIndicatorPosition=function(){var n=this,o=l.findIndex(this._cells,function(t){return t.id===n.config.activeView});-1===o&&(o=0);var t=this.getCell(this.config.activeView);if(this._isHorizontalMode()){var e=this._normalizeSize({width:this._getSizes(t.config).width}),i=e.width,e=e.unit,r=this._tabsContainer.clientWidth;return{left:0,transform:"translateX("+this._cells.reduce(function(t,e,i){e=n._normalizeSize({width:n._getSizes(e.config).width});return"%"===e.unit&&(e.width=r/100*e.width),i<o?t+e.width:t},0)+"px)",transition:"all 0.1s ease",width:i+e,height:"2px"}}var i=this._normalizeSize({height:this._getSizes(t.config).height}),t=i.height,e=i.unit,s=this._tabsContainer.clientHeight;return{top:0,transform:"translateY("+this._cells.reduce(function(t,e,i){e=n._normalizeSize({height:n._getSizes(e.config).height});return"%"===e.unit&&(e.height=s/100*e.height),i<o?t+e.height:t},0)+"px)",transition:"all 0.1s ease",height:t+e,width:"2px"}},v.prototype._drawTabs=function(){var r=this;if(!this._cells.length)return[];this._beforeScrollSize=0,this._afterScrollSize=0;var t=this._isHorizontalMode(),e=t?(i=this._tabsContainer.clientWidth,e=Math.round(this._cells.reduce(function(t,e){return r._normalizeSize({width:r._getSizes(e.config).width}).width+t},0)),this._tabsContainer&&i<=e?(this._beforeScrollSize=this._tabsContainer.scrollLeft,this._afterScrollSize=e-(i+this._beforeScrollSize)):i<=e&&(this._afterScrollSize=e-i),{height:this.config.tabHeight||"45px",top:"top"===this.config.mode?0:""}):(i=this._tabsContainer.clientHeight,e=Math.round(this._cells.reduce(function(t,e){return r._normalizeSize({height:r._getSizes(e.config).height}).height+t},0)),this._tabsContainer&&i<=e?(this._beforeScrollSize=this._tabsContainer.scrollTop,this._afterScrollSize=e-(i+this._beforeScrollSize)):this._afterScrollSize=e-i,{width:this.config.tabWidth||"200px",left:"left"===this.config.mode?0:""}),i=this._getIndicatorPosition();return[c.el(".dhx_tabbar-header__wrapper",{onscroll:this._handlers.onHeaderScroll,class:this.config.tabAlign&&this._beforeScrollSize<=0&&this._afterScrollSize<=0?"dhx_tabbar-header__wrapper-"+this.config.tabAlign:""},[c.el("ul."+this.config.mode,{tabs_id:this._uid,class:"dhx_tabbar-header ",onclick:this._handlers.onTabClick},s(this._cells.map(function(t){var e=r.config,i=e.closable,n=e.closeButtons,o=e.activeView,e=r._disabled.includes(t.config.id);return c.el("li",{class:"dhx_tabbar-tab"+(t.config.tabCss?" "+t.config.tabCss:""),dhx_tabid:t.id,role:"presentation",style:r._getSizes(t.config)},[c.el("button.dhx_button.dhx_tabbar-tab-button"+(o===t.id?".dhx_tabbar-tab-button--active":"")+(e?".dhx_tabbar-tab-button--disabled":""),{tabindex:"0","aria-controls":t.id,id:"tab-content-"+t.id,"aria-selected":""+(o===t.id),_ref:t.id.toString(),type:"button",disabled:e},[c.el("span.dhx_button__text",t.config.tab)]),Array.isArray(i)&&i.includes(t.config.id)&&!e||i&&"boolean"==typeof i&&!e||n&&"boolean"==typeof n&&!e?c.el("div.dhx_tabbar-tab__close.dxi--small.dxi.dxi-close",{tabindex:0,role:"button","aria-pressed":"false"}):null])}),[c.el(".dhx_tabbar-header-active",{style:i})]))]),0<this._beforeScrollSize&&c.el(".dhx_tabbar_scroll",{class:"dxi dxi-chevron-"+(t?"left":"up")+" arrow-"+(t?"left":"up"),_key:"startArrow",onclick:this._handlers.onScrollClick,mode:t?"left":"up",style:e}),0<this._afterScrollSize&&c.el(".dhx_tabbar_scroll",{class:"dxi dxi-chevron-"+(t?"right":"down")+" arrow-"+(t?"right":"down"),_key:"endArrow",onclick:this._handlers.onScrollClick,mode:t?"right":"down",style:e})]},v.prototype._getSizes=function(t){"number"==typeof t.tabWidth&&(t.tabWidth=t.tabWidth+"px"),"number"==typeof t.tabHeight&&(t.tabHeight=t.tabHeight+"px"),"number"==typeof this.config.tabWidth&&(this.config.tabWidth=this.config.tabWidth+"px"),"number"==typeof this.config.tabHeight&&(this.config.tabHeight=this.config.tabHeight+"px");var e=this.config.tabWidth||(this._isHorizontalMode()?l.getStringWidth(t.tab.toUpperCase(),{font:"500 "+this._tabFontSize+".4px Arial"})+50+"px":"200px"),i=this.config.tabHeight||"45px";return this._isHorizontalMode()?void 0!==t.tabWidth&&(e=t.tabWidth):void 0!==t.tabHeight&&(i=t.tabHeight),(this.config.tabAutoWidth&&!1!==t.tabAutoWidth||t.tabAutoWidth)&&void 0===this.config.tabWidth&&void 0===t.tabWidth&&(e=this._getTabAutoWidth()),(this.config.tabAutoHeight&&!1!==t.tabAutoHeight||t.tabAutoHeight)&&void 0===this.config.tabHeight&&void 0===t.tabHeight&&(i=this._getTabAutoHeight()),{width:e,height:i}},v.prototype._normalizeSize=function(t){var e={};if(1<=Object.keys(t).length)for(var i in t)"number"==typeof t[i]?e.unit="px":(t[i].includes("%")?(e[i]=t[i].slice(0,-1),e.unit="%"):t[i].includes("px")&&(e[i]=t[i].slice(0,-2),e.unit="px"),e[i]=parseFloat(e[i]));return e},v.prototype._getTabAutoWidth=function(){var e=this,t=this._tabsContainer.clientWidth,i=0,n=0;return this._cells.forEach(function(t){t.config.tabAutoWidth||e.config.tabAutoWidth&&!1!==t.config.tabAutoWidth?t.config.tabWidth?i+=e._normalizeSize({width:t.config.tabWidth}).width:n++:i+=e._normalizeSize({width:e._getSizes(t.config).width}).width}),(t-i)/n+"px"},v.prototype._getTabAutoHeight=function(){var e=this,t=this._tabsContainer.clientHeight,i=0,n=0;return this._cells.forEach(function(t){t.config.tabAutoHeight||e.config.tabAutoHeight&&!1!==t.config.tabAutoHeight?t.config.tabHeight?i+=e._normalizeSize({height:t.config.tabHeight}).height:n++:i+=e._normalizeSize({height:e._getSizes(t.config).height}).height}),(t-i)/n+"px"},v.prototype._getTabContainer=function(){var t,e=this;this._tabsContainer?this.getRootNode()?(t=this.getRootNode()&&this.getRootNode().getElementsByClassName("dhx_tabbar-header__wrapper")[0])&&this._tabsContainer!==t&&(this._tabsContainer=t,this.paint()):c.awaitRedraw().then(function(){return e.paint()}):(this._tabsContainer=this.getRootNode(),this.paint())},v.prototype._initHotkeys=function(){function t(t){t.preventDefault();var e=o._getEnableTabs(),i=l.findIndex(e,function(t){return t.id===o.config.activeView}),n=o.config.activeView;-1!==i&&(i=(i===e.length-1?e[0]:e[i+1]).id,o.events.fire(g.TabbarEvents.beforeChange,[i,n])&&(o.config.activeView=i,o.events.fire(g.TabbarEvents.change,[o.config.activeView,n]),o._focusTab(o.config.activeView,t),o.paint()))}function e(t){t.preventDefault();var e=o._getEnableTabs(),i=l.findIndex(e,function(t){return t.id===o.config.activeView}),n=o.config.activeView;-1!==i&&(i=(0===i?e[e.length-1]:e[i-1]).id,o.events.fire(g.TabbarEvents.beforeChange,[i,n])&&(o.config.activeView=i,o.events.fire(g.TabbarEvents.change,[o.config.activeView,n]),o._focusTab(o.config.activeView,t),o.paint()))}var i,o=this,n="right"===this.config.mode||"left"===this.config.mode,r={arrowRight:t,arrowUp:n?e:t,arrowLeft:e,arrowDown:n?t:e};for(i in r)this._keyManager.addHotKey(i,r[i])},v);function v(t,e){var i,n=a.call(this,t,l.extend({mode:"top"},e))||this;return n._tabFontSize=14,n._keyManager=new h.KeyManager(function(){return d.locate(document.activeElement,"tabs_id")===n._uid}),n._initHotkeys(),n.config.disabled&&(e=n.config.disabled,i=n._cells.map(function(t){return t.id}),Array.isArray(e)?e.forEach(function(t){i.includes(t)&&!n._disabled.includes(t)&&n._disabled.push(t)}):i.includes(e)&&!n._disabled.includes(e)&&n._disabled.push(e),n.paint()),n.events=new u.EventSystem(n),f.focusManager.setFocusId(n._uid),n}e.Tabbar=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(239)),n(e(104)),n(e(105))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),u=this&&this.__assign||function(){return(u=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var c=i(1),d=i(0),r=i(2),s=i(3),a=i(28),l=i(5),h=i(8),f=i(104),p=i(13),g=i(19),v=i(105);function _(t,e){return t?e?"openFolder":"folder":"file"}var m,o=(m=l.View,o(y,m),y.prototype.focusItem=function(t){var e=this;this._focusId=t,this.data.eachParent(t,function(t){t.opened||e.expand(t.id)}),d.awaitRedraw().then(function(){return e._scrollTo(t)}),this.events.fire(v.TreeEvents.focusChange,[this.data.getIndex(t),t]),this.paint()},y.prototype.destructor=function(){this.events&&this.events.clear(),this._keyManager&&this._keyManager.destructor(),this.config=this.events=this.selection=null,this._editor=this._handlers=this._root=this._focusId=this._right=this._keyManager=this._touch=this._isDraget=null,this.unmount()},y.prototype.editItem=function(t,e){var i;this._editor.isEditable()||(i=this.data.getItem(t),this.events.fire(v.TreeEvents.beforeEditStart,[i.value,t])&&(this.data.update(t,{$edit:!0,$editConfig:e},!0),this.events.fire(v.TreeEvents.afterEditStart,[i.value,t])))},y.prototype.getState=function(){var e={};return this.data.eachChild(this._root,function(t){e[t.id]={open:t.opened,selected:t.$mark}},!0),e},y.prototype.setState=function(e){this.data.eachChild(this._root,function(t){t.id in e&&(t.opened=e[t.id].open,t.$mark=e[t.id].selected)},!0),this.paint()},y.prototype.toggle=function(t){var e=this.data.getItem(t);e.$autoload?this.events.fire(v.TreeEvents.beforeExpand,[t])&&(this.data.loadItems(t),this.data.update(t,{$autoload:!1,opened:!0}),this.events.fire(v.TreeEvents.afterExpand,[t])):e.opened?this.collapse(t):this.expand(t)},y.prototype.getChecked=function(){var e=[];return this.data.eachChild(this._root,function(t){t.$mark===v.SelectStatus.selected&&e.push(t.id)}),e},y.prototype.checkItem=function(t){c.isId(t)&&this.data.getItem(t)&&(this._updateItemCheck(t,v.SelectStatus.selected),this.paint())},y.prototype.collapse=function(t){this.data.haveItems(t)&&this.events.fire(v.TreeEvents.beforeCollapse,[t])&&(this.data.update(t,{opened:!1}),this.events.fire(v.TreeEvents.afterCollapse,[t]))},y.prototype.collapseAll=function(){var e=this;this.data.eachChild(this._root,function(t){t=t.id;return e.collapse(t)},!0)},y.prototype.expand=function(t){this.data.haveItems(t)&&this.events.fire(v.TreeEvents.beforeExpand,[t])&&(this.data.update(t,{opened:!0}),this.events.fire(v.TreeEvents.afterExpand,[t]))},y.prototype.expandAll=function(){var e=this;this.data.eachChild(this._root,function(t){t=t.id;return e.expand(t)},!0)},y.prototype.uncheckItem=function(t){c.isId(t)&&this.data.getItem(t)&&(this._updateItemCheck(t,v.SelectStatus.unselected),this.paint())},y.prototype.close=function(t){this.collapse(t)},y.prototype.closeAll=function(){this.collapseAll()},y.prototype.open=function(t){this.expand(t)},y.prototype.openAll=function(){this.expandAll()},y.prototype.unCheckItem=function(t){this.uncheckItem(t)},y.prototype._draw=function(){this._getRightPos();var t=this._drawItems(this.data.getRoot());return d.el("ul",u({class:"dhx_widget dhx_tree"+(this._isSelectionActive?"":" dhx_tree--no-selection ")+(this.config.css?" "+this.config.css:""),"data-dhx-widget-id":this._uid,tabindex:0,"data-dhx-root-id":this.config.rootId},this._handlers),t)},y.prototype._initEvents=function(){var r=this;this.data.events.on(h.DataEvents.change,function(t,e,i){"remove"===e&&r._updateParents(i.parent,!0),"add"===e&&r._updateParents(t),r.paint()}),this.data.events.on(h.DataEvents.filter,function(){r.paint()}),this.data.events.on(h.DataEvents.beforeRemove,function(t){var e,i,n=t.id,o=t.parent;n==r._focusId&&(e=r.data.findAll(function(t){return t.parent===o}),i=o,1<e.length&&(t=e.findIndex(function(t){return t.id===n}),i=e[t===e.length-1?e.length-2:t+1].id),r.selection.remove(n),r.selection.add(i),r.focusItem(i))}),this._editor.events.on(f.EditorEvents.begin,function(t){t===r._uid&&(r.config.$editable=!0)}),this._editor.events.on(f.EditorEvents.end,function(t,e,i){return!!r.events.fire(v.TreeEvents.beforeEditEnd,[i,e])&&(r._uid===t&&r.data.update(e,{$edit:!1,value:i}),r.config.$editable=!1,void r.events.fire(v.TreeEvents.afterEditEnd,[i,e]))}),this.events.on(h.DragEvents.beforeDrag,function(t,e,i){var n=t.start,t=r.data.getItem(n),n=_(r.config.isFolder?r.config.isFolder(t):r.data.haveItems(t.id),t.opened),n=(t.icon||r.config.icon)[n]||r.config.icon[n];i.innerHTML='<div class="dhx_tree-list-item__icon '+n+'"></div><span class="dhx_tree-list-item__text">'+(t.text||t.value)+"</span>"}),this.events.on(h.DragEvents.canDrop,function(t){var e=t.target,t=t.dropPosition,t="complex"===r.config.dropBehaviour?"top"===t?"dhx_tree-drop--top":"bottom"===t?"dhx_tree-drop--bottom":"dhx_tree-drop--in-folder":"child"===r.config.dropBehaviour?"dhx_tree-drop--in-folder":"dhx_tree-drop--bottom";r.data.exists(e)&&r.data.update(e,{$drophere:t},!0),r.paint()}),this.events.on(h.DragEvents.cancelDrop,function(t){t=t.target;r.data.exists(t)&&r.data.update(t,{$drophere:null},!0)}),this.events.on(h.DragEvents.afterDrop,function(t){var e=t.target,t=t.dropPosition;("child"===r.config.dropBehaviour||"complex"===r.config.dropBehaviour&&"in"===t)&&r.expand(e)}),this.events.on(h.DragEvents.dragStart,function(){r._isSelectionActive=!1,r._autoScroll(),r.paint()}),this.events.on(h.DragEvents.afterDrag,function(t){r._isSelectionActive=!0,r._isDraget=!0,r.data.exists(t.start)&&r.selection.add(t.start),r.paint()}),this.events.on(v.TreeEvents.itemClick,function(t){r._focusId=t,r.paint()}),this.events.on(a.SelectionEvents.afterSelect,function(){return r.paint()}),this.events.on(a.SelectionEvents.afterUnSelect,function(){return r.paint()})},y.prototype._autoScroll=function(){var i,n,o,r,s,t,a,e,l=this.getRootNode();l&&(i=null,t=l.getBoundingClientRect(),n=t.top,o=t.bottom,r=t.left,s=t.right,t=t.height,a=function(t){"up"===t||"down"===t?l.scrollBy(0,"up"===t?-20:20):l.scrollBy("left"===t?-20:20,0),i=setTimeout(function(){a(t)},100)},e=function(t){var e=t.clientX,t=t.clientY;o-20<t&&t<o&&r<e&&e<s?i||a("down"):n<t&&t<n+20&&r<e&&e<s?i||a("up"):i&&(clearTimeout(i),i=null)},t<l.scrollHeight&&(document.addEventListener("pointermove",e),document.addEventListener("pointerup",function(){document.removeEventListener("pointermove",e),i&&clearTimeout(i)},{once:!0})))},y.prototype._scrollTo=function(t){var e,i=this.getRootNode(),n=i.querySelector('[data-dhx-id="'+t+'"]');n&&(e=i.getBoundingClientRect(),n=(t=n.getBoundingClientRect()).top-e.top,e=t.top+t.height-e.top-e.height,n<0?i.scrollBy(0,n):0<e&&i.scrollBy(0,e))},y.prototype._initHandlers=function(){var n=this;this._handlers={onmouseleave:function(t){h.dragManager.cancelCanDrop(t)},onclick:function(t){if(n._isDraget)n._isDraget=!1;else{var e=s.locate(t);if(e)if(t.target.classList.contains("dhx_tree-toggle-button"))n.toggle(e);else{if(t.target.classList.contains("dhx_tree-checkbox")){if(!n.events.fire(v.TreeEvents.beforeCheck,[n.data.getIndex(e),e]))return;var i=n.data.getItem(e);return i.$mark===v.SelectStatus.unselected?n.checkItem(e):n.uncheckItem(e),void n.events.fire(v.TreeEvents.afterCheck,[n.data.getIndex(e),e,!!i.$mark])}n.events.fire(v.TreeEvents.itemClick,[e,t]),n.data.exists(e)&&n.selection.add(e)}}},ondblclick:function(t){n._dblClick(t)},ondragstart:function(t){t.preventDefault()},onmousedown:function(t){n._dragStart(t)},ontouchstart:function(t){n._touch.timer=setTimeout(function(){n._dragStart(t)},n._touch.duration),n._touch.timeStamp?(n._touch.dblDuration>=n._touch.timeStamp-+t.timeStamp.toFixed()&&n._dblClick(t),n._touch.timeStamp=null):n._touch.timeStamp=+t.timeStamp.toFixed(),setTimeout(function(){n._touch.timeStamp=null},n._touch.dblDuration)},ontouchmove:function(t){n._touch.start&&t.preventDefault(),n._clearTouchTimer()},ontouchend:function(){n._touch.start=!1,n._clearTouchTimer()},oncontextmenu:function(t){var e=s.locate(t);e&&(n.events.fire(v.TreeEvents.itemRightClick,[e,t]),n.events.fire(v.TreeEvents.itemContextMenu,[e,t]))}};var t=this.config.eventHandlers;if(t)for(var e=0,i=Object.entries(t);e<i.length;e++){var o=i[e],r=o[0],o=o[1];this._handlers[r]=s.eventHandler(function(t){var e=u({},n.data.getItem(s.locate(t)));return Object.keys(e).forEach(function(t){t.startsWith("$")&&delete e[t]}),e},o,this._handlers[r])}},y.prototype._dblClick=function(t){var e=s.locate(t);e&&(this.events.fire(v.TreeEvents.itemDblClick,[e,t]),this.config.editable&&this.editItem(e))},y.prototype._clearTouchTimer=function(){this._touch.timer&&(clearTimeout(this._touch.timer),this._touch.timer=null)},y.prototype._dragStart=function(t){this.config.dragMode&&"target"!==this.config.dragMode&&(this._editor.isEditable()||(this._touch.start=!0,h.dragManager.onMouseDown(t)))},y.prototype._getRightPos=function(t,e){if(void 0===e&&(e=0),!c.isId(t))for(var i=this.data.getRoot(),n=0,o=this.data.findAll(function(t){return t.parent===i});n<o.length;n++){var r=o[n];return this._getRightPos(r.id,e)}t=this.data.getItem(t);if(t&&(this._right=e,this.data.haveItems(t.id)&&t.opened&&t.items))for(var s=0,a=t.items;s<a.length;s++){var l=a[s];this._getRightPos(l.id,e+1)}},y.prototype._drawItems=function(t,l){var c=this;return void 0===l&&(l=0),this.data.getRawData(0,-1,null,0,t).map(function(t){if(t){var e,i,n,o=!!c.config.isFolder&&c.config.isFolder(t);(t.$autoload||c.data.haveItems(t.id))&&(o=!0,e=d.el("div",{class:"dxi dxi-menu-right dhx_tree-toggle-button"},""),t.opened&&(e=d.el("div",{class:"dxi dxi-menu-down dhx_tree-toggle-button dhx_tree-toggle-button--open"},""),i=c._drawItems(t.id,l+1))),t.checkbox&&(s=t.$mark===v.SelectStatus.indeterminate?"dxi-minus-box":t.$mark===v.SelectStatus.selected?"dxi-checkbox-marked":"dxi-checkbox-blank-outline",n=d.el("div",{class:"dhx_tree-checkbox dxi "+s}));var r=_(o,t.opened),s=(t.icon||c.config.icon)[r]||c.config.icon[r];r=t.$edit?c._editor.edit(c._uid,u({item:t},t.$editConfig)):d.el("span",{class:"dhx_tree-list-item__text"},t.text||t.value),c.config.template&&(r="string"!=typeof(a=c.config.template(t,o))||(!t.hasOwnProperty("value")||t.$edit)&&t.hasOwnProperty("value")?r:d.el("div.dhx_tree-template__wrapper",{".innerHTML":a}));var a=c.config.itemHeight||null;return o?d.el("li",{class:"dhx_tree-list-item dhx_tree-list-item--parent"+(t.css?" "+t.css:""),"data-dhx-id":t.id,_key:t.id},[d.el("div.dhx_tree-folder",{class:(t.id==c._focusId?" dhx_tree-folder--focused":"")+(t.$selected?" dhx_tree-folder--selected":"")+(t.$drophere?" "+t.$drophere:""),style:{left:-20*l+"px",right:0,"margin-left":20*l+"px",minHeight:a}},[e,d.el("div.dhx_tree-list-item__content",[n,d.el("div",{class:"dhx_tree-list-item__icon "+s}),r])]),i&&d.el("ul.dhx_tree-list",i)]):d.el("li",{class:"dhx_tree-list__item dhx_tree-list-item"+(t.id==c._focusId?" dhx_tree-list-item--focused":"")+(t.$selected?" dhx_tree-list-item--selected":"")+(t.$drophere?" "+t.$drophere:"")+(o?"dhx_tree-list-item--folder":"")+(t.css?" "+t.css:""),style:{left:-20*l+"px",right:0,"margin-left":20*l+"px",minHeight:a},"data-dhx-id":t.id,level:l},[e,d.el("div",{class:"dhx_tree-list-item__content"},[n,d.el("div",{class:"dhx_tree-list-item__icon "+s}),r])])}})},y.prototype._updateItemCheck=function(t,e){this.data.update(t,{$mark:e},!0),this.data.eachChild(t,function(t){return t.$mark=e}),this._updateParents(t)},y.prototype._updateParents=function(t,e){var n=this;void 0===e&&(e=!1),t!==this._root&&this.data.eachParent(t,function(t){var e=0,i=0;n.data.eachChild(t.id,function(t){if(t.checkbox)switch(t.$mark){case v.SelectStatus.unselected:i++;break;case v.SelectStatus.selected:e++}},!0),t.$mark=0!==e&&0!==i?v.SelectStatus.indeterminate:0===e&&0!==i?v.SelectStatus.unselected:v.SelectStatus.selected},e)},y.prototype._initHotkeys=function(){function i(){var t=o._focusId;return t||(t=o.data.getRoot(),o.data.getItems(t)[0].id)}var t,o=this,r=function(e,t){void 0===t&&(t=!1);var i=o.data.getItem(e);if(o.data.haveItems(e)&&i.opened&&!t)return o.data.getItems(e)[0].id;var n=o.data.getParent(e),i=o.data.getItems(n),t=c.findIndex(i,function(t){return t.id===e});return t+1<i.length?i[t+1].id:n===o.data.getRoot()?null:r(n,!0)},e={arrowLeft:function(t){t.preventDefault();var e=i(),t=o.data.getParent(e);o.data.getRoot()!==t?!o.data.getItem(e).opened?o.focusItem(t):e!==o.data.getRoot()&&o.collapse(e):o.collapse(e)},arrowRight:function(t){t.preventDefault();t=i();if(o.data.getItem(t).$autoload)return o.events.fire(v.TreeEvents.beforeExpand,[t])?(o.data.loadItems(t),o.data.update(t,{$autoload:!1,opened:!0}),void o.events.fire(v.TreeEvents.afterExpand,[t])):void 0;o.data.haveItems(t)&&o.expand(t)},arrowUp:function(t){t.preventDefault();t=function(t){var e=o.data.getIndex(t),t=o.data.getParent(t);if(0<e){var i=o.data.getItems(t)[e-1];if(!o.data.haveItems(i.id)||!i.opened)return i.id;for(;o.data.haveItems(i.id)&&i.opened;)var n=o.data.getItems(i.id),i=n[n.length-1];return i.id}return t===o.data.getRoot()?null:t}(i());t&&o.focusItem(t)},arrowDown:function(t){t.preventDefault();t=i(),t=r(t);t&&o.focusItem(t)},enter:function(){var t=i();t&&o.selection.add(t)}};for(t in e)this._keyManager.addHotKey(t,e[t])},y);function y(t,e){void 0===e&&(e={});var i=m.call(this,t,e)||this;i._touch={duration:350,dblDuration:300,timer:null,start:!1,timeStamp:null},i.config=c.extend({dropBehaviour:"child",icon:{file:"dxi dxi-file-outline",folder:"dxi dxi-folder",openFolder:"dxi dxi-folder-open"},keyNavigation:!0,editable:!1,selection:!0,rootId:"string"==typeof t&&t||i._uid},e),i.config.editable=i.config.editable||i.config.editing;e=function(t){var e;return i.config.collapsed&&null!==(e=t.items)&&void 0!==e&&e.length&&(t.opened=!1),t.$mark=v.SelectStatus.unselected,t.checkbox=null!==(e=t.checkbox)&&void 0!==e?e:i.config.checkbox,t.$autoload=Boolean(t.items&&"string"==typeof i.config.autoload),t.$editor=!1,t};Array.isArray(i.config.data)?(i.events=new r.EventSystem(i),i.data=new h.TreeCollection({autoload:i.config.autoload,init:e,rootId:i.config.rootId||t},i.events),i.data.parse(i.config.data)):i.config.data&&i.config.data.events?(i.data=i.config.data,i.data.config.init=e,i.events=i.data.events,i.events.context=i):(i.events=new r.EventSystem(i),i.data=new h.TreeCollection({autoload:i.config.autoload,init:e,rootId:i.config.rootId||t},i.events)),i._isSelectionActive=!0,i.selection=new h.Selection({disabled:!i.config.selection},i.data,i.events),i.config.keyNavigation&&(i._keyManager=new p.KeyManager(function(t,e){return e===i._uid}),i._initHotkeys()),i._editor=new f.Editor,i._initEvents(),i._initHandlers(),i.config.dragMode&&h.dragManager.setItem(i._uid,i),i._root=i.data.getRoot();return i.mount(t,d.create({render:function(){return i._draw()}})),g.focusManager.setFocusId(i._uid),i}e.Tree=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(106)),n(e(243))},function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.detectDrag=function(r){return new t(function(e){var i=function(){document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",i),e(!1)},n=setTimeout(function(){i()},1e3),o=function(t){(4<Math.abs(t.pageX-r.pageX)||4<Math.abs(t.pageY-r.pageY))&&(document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",i),clearTimeout(n),e({x:r.pageX,y:r.pageY}))};document.addEventListener("mousemove",o),document.addEventListener("mouseup",i)})}}).call(this,i(17))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={popups:{},lastActive:null,freeCount:0,add:function(t,e){this.lastActive&&this.popups[this.lastActive].classList.remove("dhx_popup--window_active"),this.lastActive=t,e.classList.add("dhx_popup--window_active"),this.popups[t]=e},setActive:function(t){var e;t===this.lastActive||(e=this.popups[t])&&(this.lastActive&&this.popups[this.lastActive].classList.remove("dhx_popup--window_active"),this.lastActive=t,e.classList.add("dhx_popup--window_active"))},openFreeWindow:function(t){0===this.freeCount&&t.classList.add("dhx_window--no-scroll"),this.freeCount++},closeFreeWindow:function(t){this.freeCount--,0===this.freeCount&&t.classList.remove("dhx_window--no-scroll")}}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(106),a=i(37),l=i(11),c=i(22),f=i(107),o=(r=s.Window,o(u,r),u.prototype._startResize=function(r){var t,e,s=this,a=100|this.config.minWidth,l=100|this.config.minHeight,c=this._popup.offsetLeft,u=this._popup.offsetTop,d=this._popup.offsetWidth,h=this._popup.offsetHeight,i=this.getRootView().refs;switch(!0){case r.bottom&&r.left:e="dhx_window-body-pointer--bottom_left",t=i.bottomLeft;break;case r.bottom&&r.right:e="dhx_window-body-pointer--bottom_right",t=i.bottomLeft;break;case r.top&&r.left:e="dhx_window-body-pointer--top_left",t=i.bottomLeft;break;case r.top&&r.right:e="dhx_window-body-pointer--top-right",t=i.right;break;case r.top:e="dhx_window-body-pointer--top",t=i.bottomLeft;break;case r.bottom:e="dhx_window-body-pointer--bottom",t=i.bottomLeft;break;case r.left:e="dhx_window-body-pointer--left",t=i.bottomLeft;break;case r.right:e="dhx_window-body-pointer--right",t=i.right}t.el.classList.add("dhx_window-resizer--active"),this.config.node.classList.add("dhx_window--stop_selection"),this.config.node.classList.add(e);function n(t){var e=(o=s._getContainerParams()).containerInnerWidth,i=o.containerInnerHeight,n=o.containerXOffset,o=o.containerYOffset,t={width:s._notInNode()?t.pageX-c:t.pageX-s.config.node.offsetLeft-c,height:s._notInNode()?t.pageY-u:t.pageY-s.config.node.offsetTop-u,left:s._notInNode()?t.pageX:t.pageX-s.config.node.offsetLeft,top:s._notInNode()?t.pageY:t.pageY-s.config.node.offsetTop};r.right&&(t.width<a?t.width=a:t.width>n+e-c&&(t.width=n+e-c),s._popup.style.width=t.width+"px"),r.bottom&&(t.height<l?t.height=l:t.height>o+i-u&&(t.height=o+i-u),s._popup.style.height=t.height+"px"),r.left&&(c+d-t.left<a&&(t.left=c+d-a),t.width=c+d-t.left,s.config.left=t.left,s._popup.style.left=t.left+"px",s._popup.style.width=t.width+"px"),r.top&&(t.top<o?t.top=o:u+h-t.top<l&&(t.top=u+h-l),t.height=u+h-t.top,s.config.top=t.top,s._popup.style.top=t.top+"px",s._popup.style.height=t.height+"px"),s.config.width=s._popup.offsetWidth,s.config.height=s._popup.offsetHeight,s.events.fire(f.WindowEvents.resize,[t,{left:c,top:u,height:h,width:d},r]),s.scrollView&&s.scrollView.update()}var o=function(){document.removeEventListener("mouseup",o),document.removeEventListener("mousemove",n),s.config.node.classList.remove("dhx_window--stop_selection"),s.config.node.classList.remove(e),t.el.classList.remove("dhx_window-resizer--active")};document.addEventListener("mouseup",o),document.addEventListener("mousemove",n)},u.prototype._initUI=function(){var i=this,t=[],e=(this.config.header||this.config.title||this.config.closable||this.config.movable)&&!1!==this.config.header;e&&t.push({id:"header",height:"content",css:"dhx_window-header "+(this.config.movable?"dhx_window-header--movable":""),on:{mousedown:this.config.movable&&this._handlers.move,dblclick:this._handlers.headerDblClick}}),t.push({id:"content",css:e?"dhx_window-content":"dhx_window-content-without-header"}),this.config.footer&&t.push({id:"footer",height:"content",css:"dhx_window-footer"}),this.config.resizable&&t.push({id:"resizers",height:"content",css:"resizers"});var n,o=this._layout=new l.ProLayout(this._popup,{css:"dhx_window"+(this.config.modal?" dhx_window--modal":""),rows:t,on:{mousedown:this._handlers.setActive},id:this._uid}),t=this._layout.getCell("content");t&&t.scrollView&&(this.scrollView=t.scrollView),e&&(n=this.header=new a.Toolbar,this.config.title&&(this.header.data.add({type:"title",value:this.config.title,id:"title",css:"title_max"}),this._popup.setAttribute("aria-label",this.config.title)),this.config.closable&&(this.header.data.add({type:"spacer"}),this.header.data.add({id:"close",type:"button",view:"link",size:"medium",color:"secondary",circle:!0,icon:"dxi dxi-close"}),n.events.on(c.NavigationBarEvents.click,function(t,e){"close"===t&&i._hide(e)})),o.getCell("header").attach(n)),this.config.footer&&(n=this.footer=new a.Toolbar,o.getCell("footer").attach(n)),this.config.resizable&&o.getCell("resizers").attach(function(){return i._drawResizers()})},u);function u(t){return r.call(this,t)||this}e.ProWindow=o}],o.c=n,o.d=function(t,e,i){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(i,n,function(t){return e[t]}.bind(null,n));return i},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/codebase/",o(o.s=108);function o(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return i[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var i,n}),window.dhx_legacy){if(window.dhx)for(var key in dhx)dhx_legacy[key]=dhx[key];window.dhx=dhx_legacy,delete window.dhx_legacy}
|
|
21
|
+
t.exports=function(){"use strict";var I=1,l=2,O=3,P=4,D=5,t=typeof window!=="undefined",e,r=(t?window:{}).requestAnimationFrame,c={};function i(){}var p=Array.isArray;function u(t){return t!=null}function s(t){return t!=null&&t.constructor===Object}function o(t,e,i,n){t.splice.apply(t,[i,n].concat(e))}function a(t){var e=typeof t;return e==="string"||e==="number"}function d(t){return typeof t==="function"}function h(t){return typeof t==="object"&&d(t.then)}function f(t){var e=arguments;for(var i=1;i<e.length;i++)for(var n in e[i])t[n]=e[i][n];return t}function g(t,e,i){var n;while(n=e.shift())if(e.length===0)t[n]=i;else t[n]=t=t[n]||{}}function v(t,e){var i=[];for(var n=e;n<t.length;n++)i.push(t[n]);return i}function _(t,e){for(var i in t)if(t[i]!==e[i])return false;return true}function m(t,e){var i=t.length;if(e.length!==i)return false;for(var n=0;n<i;n++)if(t[n]!==e[n])return false;return true}function y(t){if(!r)return t;var e,i,n;function o(){e=0;t.apply(i,n)}return function(){i=this;n=arguments;if(!e)e=r(o)}}function b(t,e,i){return function(){return t.apply(i,e)}}function w(t){var e=t.slice();var i=[];i.push(0);var n;var o;for(var r=0,s=t.length;r<s;++r){var a=i[i.length-1];if(t[a]<t[r]){e[r]=a;i.push(r);continue}n=0;o=i.length-1;while(n<o){var l=(n+o)/2|0;if(t[i[l]]<t[r])n=l+1;else o=l}if(t[r]<t[i[n]]){if(n>0)e[r]=i[n-1];i[n]=r}}n=i.length;o=i[n-1];while(n-- >0){i[n]=o;o=e[o]}return i}function x(t,e){var i=0;var n=e.length-1;var o;var r=n<=2147483647?true:false;if(r)while(i<=n){o=i+n>>1;if(e[o]===t)return o;else if(e[o]<t)i=o+1;else n=o-1}else while(i<=n){o=Math.floor((i+n)/2);if(e[o]===t)return o;else if(e[o]<t)i=o+1;else n=o-1}return i==e.length?null:i}function E(t){return t[0]==="o"&&t[1]==="n"}function C(t){return t[0]==="_"}function S(t){return t==="style"}function k(t){t&&t.el&&t.el.offsetHeight}function V(t){return t.node!=null&&t.node.el!=null}function M(t,e){switch(e){case"value":case"checked":case"selected":return true}return false}function T(t){t=t||c;while(t.vm==null&&t.parent)t=t.parent;return t.vm}function H(){}var n=H.prototype={constructor:H,type:null,vm:null,key:null,ref:null,data:null,hooks:null,ns:null,el:null,tag:null,attrs:null,body:null,flags:0,_class:null,_diff:null,_dead:false,_lis:false,idx:null,parent:null};function F(t){var e=new H;e.type=l;e.body=t;return e}var R={},L=/\[(\w+)(?:=(\w+))?\]/g;function A(t){{var e=R[t];if(e==null){var i,n,o,r;R[t]=e={tag:(i=t.match(/^[-\w]+/))?i[0]:"div",id:(n=t.match(/#([-\w]+)/))?n[1]:null,class:(o=t.match(/\.([-\w.]+)/))?o[1].replace(/\./g," "):null,attrs:null};while(r=L.exec(t)){if(e.attrs==null)e.attrs={};e.attrs[r[1]]=r[2]||""}}return e}}var j=1,$=2,N=4,z=8;function W(t,e,i,n){var o=new H;o.type=I;if(u(n))o.flags=n;o.attrs=e;var r=A(t);o.tag=r.tag;if(r.id||r.class||r.attrs){var s=o.attrs||{};if(r.id&&!u(s.id))s.id=r.id;if(r.class){o._class=r.class;s.class=r.class+(u(s.class)?" "+s.class:"")}if(r.attrs)for(var a in r.attrs)if(!u(s[a]))s[a]=r.attrs[a];o.attrs=s}var l=o.attrs;if(u(l)){if(u(l._key))o.key=l._key;if(u(l._ref))o.ref=l._ref;if(u(l._hooks))o.hooks=l._hooks;if(u(l._data))o.data=l._data;if(u(l._flags))o.flags=l._flags;if(!u(o.key))if(u(o.ref))o.key=o.ref;else if(u(l.id))o.key=l.id;else if(u(l.name))o.key=l.name+(l.type==="radio"||l.type==="checkbox"?l.value:"")}if(i!=null)o.body=i;return o}function B(t,e,i){var n=["refs"].concat(e.split("."));g(t,n,i)}function G(t){while(t=t.parent)t.flags|=j}function q(t,e,i,n){if(t.type===D||t.type===P)return;t.parent=e;t.idx=i;t.vm=n;if(t.ref!=null)B(T(t),t.ref,t);var o=t.hooks,r=n&&n.hooks;if(o&&(o.willRemove||o.didRemove)||r&&(r.willUnmount||r.didUnmount))G(t);if(p(t.body))Y(t);else;}function Y(t){var e=t.body;for(var i=0;i<e.length;i++){var n=e[i];if(n===false||n==null)e.splice(i--,1);else if(p(n))o(e,n,i--,1);else{if(n.type==null)e[i]=n=F(""+n);if(n.type===l)if(n.body==null||n.body==="")e.splice(i--,1);else if(i>0&&e[i-1].type===l){e[i-1].body+=n.body;e.splice(i--,1)}else q(n,t,i,null);else q(n,t,i,null)}}}var X={animationIterationCount:true,boxFlex:true,boxFlexGroup:true,boxOrdinalGroup:true,columnCount:true,flex:true,flexGrow:true,flexPositive:true,flexShrink:true,flexNegative:true,flexOrder:true,gridRow:true,gridColumn:true,order:true,lineClamp:true,borderImageOutset:true,borderImageSlice:true,borderImageWidth:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,tabSize:true,widows:true,zIndex:true,zoom:true,fillOpacity:true,floodOpacity:true,stopOpacity:true,strokeDasharray:true,strokeDashoffset:true,strokeMiterlimit:true,strokeOpacity:true,strokeWidth:true};function U(t,e){return!isNaN(e)&&!X[t]?e+"px":e}function K(t,e){var i=(t.attrs||c).style;var n=e?(e.attrs||c).style:null;if(i==null||a(i))t.el.style.cssText=i;else{for(var o in i){var r=i[o];if(n==null||r!=null&&r!==n[o])t.el.style[o]=U(o,r)}if(n)for(var s in n)if(i[s]==null)t.el.style[s]=""}}var J=[];function Z(t,e,i,n,o){if(t!=null){var r=i.hooks[e];if(r)if(e[0]==="d"&&e[1]==="i"&&e[2]==="d")o?k(i.parent)&&r(i,n):J.push([r,i,n]);else return r(i,n)}}function Q(t){if(J.length){k(t.node);var e;while(e=J.shift())e[0](e[1],e[2])}}var tt=t?document:null;function et(t){while(t._node==null)t=t.parentNode;return t._node}function it(t,e){if(e!=null)return tt.createElementNS(e,t);return tt.createElement(t)}function nt(t){return tt.createTextNode(t)}function ot(t){return tt.createComment(t)}function rt(t){return t.nextSibling}function st(t){return t.previousSibling}function at(t){var e=t.vm;var i=e!=null&&Z(e.hooks,"willUnmount",e,e.data);var n=Z(t.hooks,"willRemove",t);if((t.flags&j)===j&&p(t.body))for(var o=0;o<t.body.length;o++)at(t.body[o]);return i||n}function lt(t,e,i){var n=e._node,o=n.vm;if(p(n.body))if((n.flags&j)===j)for(var r=0;r<n.body.length;r++)lt(e,n.body[r].el);else ut(n);delete e._node;t.removeChild(e);Z(n.hooks,"didRemove",n,null,i);if(o!=null){Z(o.hooks,"didUnmount",o,o.data,i);o.node=null}}function ct(t,e){var i=e._node;if(i._dead)return;var n=at(i);if(n!=null&&h(n)){i._dead=true;n.then(b(lt,[t,e,true]))}else lt(t,e)}function ut(t){var e=t.body;for(var i=0;i<e.length;i++){var n=e[i];delete n.el._node;if(n.vm!=null)n.vm.node=null;if(p(n.body))ut(n)}}function dt(t){var e=t.el;if((t.flags&j)===0){p(t.body)&&ut(t);e.textContent=null}else{var i=e.firstChild;do{var n=rt(i);ct(e,i)}while(i=n)}}function ht(t,e,i){var n=e._node,o=e.parentNode!=null;var r=e===i||!o?n.vm:null;if(r!=null)Z(r.hooks,"willMount",r,r.data);Z(n.hooks,o?"willReinsert":"willInsert",n);t.insertBefore(e,i);Z(n.hooks,o?"didReinsert":"didInsert",n);if(r!=null)Z(r.hooks,"didMount",r,r.data)}function ft(t,e,i){ht(t,e,i?rt(i):null)}var pt={};function gt(t){f(pt,t)}function vt(t){var e=this,i=e,n=v(arguments,1).concat(i,i.data);do{var o=e.onemit,o=o?o[t]:null;if(o){o.apply(e,n);break}}while(e=e.parent());if(pt[t])pt[t].apply(e,n)}var _t=i;function mt(t){_t=t.onevent||_t;if(t.onemit)gt(t.onemit)}function yt(t,e,i){t[e]=i}function bt(t,e,i,n,o){var r=t.apply(o,e.concat([i,n,o,o.data]));o.onevent(i,n,o,o.data,e);_t.call(null,i,n,o,o.data,e);if(r===false){i.preventDefault();i.stopPropagation()}}function wt(t){var e=et(t.target);var i=T(e);var n=t.currentTarget._node.attrs["on"+t.type],o,r;if(p(n)){o=n[0];r=n.slice(1);bt(o,r,t,e,i)}else for(var s in n)if(t.target.matches(s)){var a=n[s];if(p(a)){o=a[0];r=a.slice(1)}else{o=a;r=[]}bt(o,r,t,e,i)}}function xt(t,e,i,n){if(i===n)return;var o=t.el;if(i==null||d(i))yt(o,e,i);else if(n==null)yt(o,e,wt)}function Et(t,e,i){if(e[0]==="."){e=e.substr(1);i=true}if(i)t.el[e]="";else t.el.removeAttribute(e)}function Ct(t,e,i,n,o){var r=t.el;if(i==null)!o&&Et(t,e,false);else if(t.ns!=null)r.setAttribute(e,i);else if(e==="class")r.className=i;else if(e==="id"||typeof i==="boolean"||n)r[e]=i;else if(e[0]===".")r[e.substr(1)]=i;else r.setAttribute(e,i)}function St(t,e,i){var n=t.attrs||c;var o=e.attrs||c;if(n===o);else{for(var r in n){var s=n[r];var a=M(t.tag,r);var l=a?t.el[r]:o[r];if(s===l);else if(S(r))K(t,e);else if(C(r));else if(E(r))xt(t,r,s,l);else Ct(t,r,s,a,i)}for(var r in o)!(r in n)&&!C(r)&&Et(t,r,M(t.tag,r)||E(r))}}function kt(t,e,i,n){if(t.type===P){e=t.data;i=t.key;n=t.opts;t=t.view}return new qt(t,e,i,n)}function It(t){for(var e=0;e<t.body.length;e++){var i=t.body[e];var n=i.type;if(n<=O)ht(t.el,Ot(i));else if(n===P){var o=kt(i.view,i.data,i.key,i.opts)._redraw(t,e,false);n=o.node.type;ht(t.el,Ot(o.node))}else if(n===D){var o=i.vm;o._redraw(t,e);n=o.node.type;ht(t.el,o.node.el)}}}function Ot(t,e){if(t.el==null)if(t.type===I){t.el=e||it(t.tag,t.ns);if(t.attrs!=null)St(t,c,true);if((t.flags&z)===z)t.body.body(t);if(p(t.body))It(t);else if(t.body!=null&&t.body!=="")t.el.textContent=t.body}else if(t.type===l)t.el=e||nt(t.body);else if(t.type===O)t.el=e||ot(t.body);t.el._node=t;return t.el}function Pt(t,e){return e[t.idx+1]}function Dt(t,e){return e[t.idx-1]}function Vt(t){return t.parent}window.lisMove=Ft;var Mt=1,Tt=2;function Ht(l,c,u,d,h,f,p,g){return function(t,e,i,n,o,r){var s,a;if(n[d]!=null){if((s=n[d]._node)==null){n[d]=l(n[d]);return}if(Vt(s)!==t){a=l(n[d]);s.vm!=null?s.vm.unmount(true):ct(e,n[d]);n[d]=a;return}}if(n[h]==o)return Tt;else if(n[h].el==null){u(e,Ot(n[h]),n[d]);n[h]=c(n[h],i)}else if(n[h].el===n[d]){n[h]=c(n[h],i);n[d]=l(n[d])}else if(!r&&s===n[p]){a=n[d];n[d]=l(a);g(e,a,n[f]);n[f]=a}else{if(r&&n[d]!=null)return Ft(l,c,u,d,h,e,i,s,n);return Mt}}}function Ft(t,e,i,n,o,r,s,a,l){if(a._lis){i(r,l[o].el,l[n]);l[o]=e(l[o],s)}else{var c=x(a.idx,l.tombs);a._lis=true;var u=t(l[n]);i(r,l[n],c!=null?s[l.tombs[c]].el:c);if(c==null)l.tombs.push(a.idx);else l.tombs.splice(c,0,a.idx);l[n]=u}}var Rt=Ht(rt,Pt,ht,"lftSib","lftNode","rgtSib","rgtNode",ft),Lt=Ht(st,Dt,ft,"rgtSib","rgtNode","lftSib","lftNode",ht);function At(t,e){var i=e.body,n=t.el,o=t.body,r={lftNode:o[0],rgtNode:o[o.length-1],lftSib:(i[0]||c).el,rgtSib:(i[i.length-1]||c).el};t:while(1){while(1){var s=Rt(t,n,o,r,null,false);if(s===Mt)break;if(s===Tt)break t}while(1){var a=Lt(t,n,o,r,r.lftNode,false);if(a===Mt)break;if(a===Tt)break t}jt(t,n,o,r);break}}function jt(t,e,i,n){var o=Array.prototype.slice.call(e.childNodes);var r=[];for(var s=0;s<o.length;s++){var a=o[s]._node;if(a.parent===t)r.push(a.idx)}var l=w(r).map(function(t){return r[t]});for(var c=0;c<l.length;c++)i[l[c]]._lis=true;n.tombs=l;while(1){var u=Rt(t,e,i,n,null,true);if(u===Tt)break}}function $t(t){return t.el._node.parent!==t.parent}function Nt(t,e,i){return e[i]}function zt(t,e,i){for(;i<e.length;i++){var n=e[i];if(n.vm!=null){if(t.type===P&&n.vm.view===t.view&&n.vm.key===t.key||t.type===D&&n.vm===t.vm)return n}else if(!$t(n)&&t.tag===n.tag&&t.type===n.type&&t.key===n.key&&(t.flags&~j)===(n.flags&~j))return n}return null}function Wt(t,e,i){return e[e._keys[t.key]]}function Bt(t,e){Z(e.hooks,"willRecycle",e,t);var i=t.el=e.el;var n=e.body;var o=t.body;i._node=t;if(t.type===l&&o!==n){i.nodeValue=o;return}if(t.attrs!=null||e.attrs!=null)St(t,e,false);var r=p(n);var s=p(o);var a=(t.flags&z)===z;if(r){if(s||a)Gt(t,e);else if(o!==n)if(o!=null)i.textContent=o;else dt(e)}else if(s){dt(e);It(t)}else if(o!==n)if(i.firstChild)i.firstChild.nodeValue=o;else i.textContent=o;Z(e.hooks,"didRecycle",e,t)}function Gt(t,e){var i=t.body,n=i.length,o=e.body,r=o.length,s=(t.flags&z)===z,a=(t.flags&$)===$,l=(t.flags&N)===N,c=!a&&t.type===I,u=true,d=l?Wt:a||s?Nt:zt;if(l){var h={};for(var f=0;f<o.length;f++)h[o[f].key]=f;o._keys=h}if(c&&n===0){dt(e);if(s)t.body=[];return}var p,g,v,_=0,m=false,y=0;if(s){var b={key:null};var w=Array(n)}for(var f=0;f<n;f++){if(s){var x=false;var E=null;if(u){if(l)b.key=i.key(f);p=d(b,o,y)}if(p!=null){v=p.idx;E=i.diff(f,p);if(E===true){g=p;g.parent=t;g.idx=f;g._lis=false}else x=true}else x=true;if(x){g=i.tpl(f);q(g,t,f);g._diff=E!=null?E:i.diff(f);if(p!=null)Bt(g,p)}else;w[f]=g}else{var g=i[f];var C=g.type;if(C<=O){if(p=u&&d(g,o,y)){Bt(g,p);v=p.idx}}else if(C===P){if(p=u&&d(g,o,y)){v=p.idx;var S=p.vm._update(g.data,t,f)}else var S=kt(g.view,g.data,g.key,g.opts)._redraw(t,f,false);C=S.node.type}else if(C===D){var k=V(g.vm);var S=g.vm._update(g.data,t,f,k);C=S.node.type}}if(!l&&p!=null){if(v===y){y++;if(y===r&&n>r){p=null;u=false}}else m=true;if(r>100&&m&&++_%10===0)while(y<r&&$t(o[y]))y++}}if(s)t.body=w;c&&At(t,e)}function qt(t,e,i,n){var o=this;o.view=t;o.data=e;o.key=i;if(n){o.opts=n;o.config(n)}var r=s(t)?t:t.call(o,o,e,i,n);if(d(r))o.render=r;else{o.render=r.render;o.config(r)}o._redrawAsync=y(function(t){return o.redraw(true)});o._updateAsync=y(function(t){return o.update(t,true)});o.init&&o.init.call(o,o,o.data,o.key,n)}var Yt=qt.prototype={constructor:qt,_diff:null,init:null,view:null,key:null,data:null,state:null,api:null,opts:null,node:null,hooks:null,onevent:i,refs:null,render:null,mount:Xt,unmount:Ut,config:function(t){var e=this;if(t.init)e.init=t.init;if(t.diff)e.diff=t.diff;if(t.onevent)e.onevent=t.onevent;if(t.hooks)e.hooks=f(e.hooks||{},t.hooks);if(t.onemit)e.onemit=f(e.onemit||{},t.onemit)},parent:function(){return T(this.node.parent)},root:function(){var t=this.node;while(t.parent)t=t.parent;return t.vm},redraw:function(t){var e=this;t?e._redraw(null,null,V(e)):e._redrawAsync();return e},update:function(t,e){var i=this;e?i._update(t,null,null,V(i)):i._updateAsync(t);return i},_update:Zt,_redraw:Jt,_redrawAsync:null,_updateAsync:null};function Xt(t,e){var i=this;if(e){dt({el:t,flags:0});i._redraw(null,null,false);if(t.nodeName.toLowerCase()!==i.node.tag){Ot(i.node);ht(t.parentNode,i.node.el,t);t.parentNode.removeChild(t)}else ht(t.parentNode,Ot(i.node,t),t)}else{i._redraw(null,null);if(t)ht(t,i.node.el)}if(t)Q(i);return i}function Ut(t){var e=this;var i=e.node;var n=i.el.parentNode;ct(n,i.el);if(!t)Q(e)}function Kt(t,e,i,n){if(i!=null){i.body[n]=e;e.idx=n;e.parent=i;e._lis=false}return t}function Jt(t,e,i){var n=t==null;var o=this;var r=o.node&&o.node.el&&o.node.el.parentNode;var s=o.node,a,l;if(o.diff!=null){a=o._diff;o._diff=l=o.diff(o,o.data);if(s!=null){var c=p(a)?m:_;var u=a===l||c(a,l);if(u)return Kt(o,s,t,e)}}r&&Z(o.hooks,"willRedraw",o,o.data);var d=o.render.call(o,o,o.data,a,l);if(d===s)return Kt(o,s,t,e);o.refs=null;if(o.key!=null&&d.key!==o.key)d.key=o.key;o.node=d;if(t){q(d,t,e,o);t.body[e]=d}else if(s&&s.parent){q(d,s.parent,s.idx,o);s.parent.body[s.idx]=d}else q(d,null,null,o);if(i!==false)if(s)if(s.tag!==d.tag||s.key!==d.key){s.vm=d.vm=null;var h=s.el.parentNode;var f=rt(s.el);ct(h,s.el);ht(h,Ot(d),f);s.el=d.el;d.vm=o}else Bt(d,s);else Ot(d);r&&Z(o.hooks,"didRedraw",o,o.data);if(n&&r)Q(o);return o}function Zt(t,e,i,n){var o=this;if(t!=null)if(o.data!==t){Z(o.hooks,"willUpdate",o,t);o.data=t}return o._redraw(e,i,n)}function Qt(t,e,i,n){var o,r;if(i==null)if(s(e))o=e;else r=e;else{o=e;r=i}return W(t,o,r,n)}var te="http://www.w3.org/2000/svg";function ee(t,e,i,n){var o=Qt(t,e,i,n);o.ns=te;return o}function ie(t){var e=new H;e.type=O;e.body=t;return e}function ne(t,e,i,n){this.view=t;this.data=e;this.key=i;this.opts=n}function oe(t,e,i,n){return new ne(t,e,i,n)}function re(t){this.vm=t}function se(t){return new re(t)}function ae(t){var e=new H;e.type=I;e.el=e.key=t;return e}function le(r,s){var o=r.length;var a={items:r,length:o,key:function(t){return s.key(r[t],t)},diff:function(t,e){var i=s.diff(r[t],t);if(e==null)return i;var n=e._diff;var o=i===n||p(n)?m(i,n):_(i,n);return o||i},tpl:function(t){return s.tpl(r[t],t)},map:function(t){s.tpl=t;return a},body:function(t){var e=Array(o);for(var i=0;i<o;i++){var n=a.tpl(i);n._diff=a.diff(i);e[i]=n;q(n,t,i)}t.body=e}};return a}ne.prototype={constructor:ne,type:P,view:null,data:null,key:null,opts:null},re.prototype={constructor:re,type:D,vm:null};var ce={config:mt,ViewModel:qt,VNode:H,createView:kt,defineElement:Qt,defineSvgElement:ee,defineText:F,defineComment:ie,defineView:oe,injectView:se,injectElement:ae,lazyList:le,FIXED_BODY:$,DEEP_REMOVE:j,KEYED_LIST:N,LAZY_LIST:z};function ue(t,e){!function(t,e,i){{var n,o;null!=e.type?null==t.vm&&(q(e,t.parent,t.idx,null),Bt(t.parent.body[t.idx]=e,t),i&&k(e),Q(T(e))):((n=Object.create(t)).attrs=f({},t.attrs),o=f(t.attrs,e),null!=t._class&&(e=o.class,o.class=null!=e&&""!==e?t._class+" "+e:t._class),St(t,n),i&&k(t))}}(this,t,e)}function de(t,e,i){if(null!=e.type)null==t.vm&&(q(e,t.parent,t.idx,null),Bt(t.parent.body[t.idx]=e,t),i&&k(e),Q(T(e)));else{var n=Object.create(t);(n=Object.create(t)).attrs=f({},t.attrs);var o=f(t.attrs,e),s;null!=t._class&&(e=o.class,o.class=null!=e&&""!==e?t._class+" "+e:t._class),St(t,n),i&&k(t)}}function he(t,e){var i=t.body;if(p(i))for(var n=0;n<i.length;n++){var o=i[n];if(o.vm!=null)e.push(o.vm);else he(o,e)}return e}function fe(t){var e=arguments;var i=e.length;var n,o;if(i>1){var r=1;if(s(e[1])){o=e[1];r=2}if(i===r+1&&(a(e[r])||p(e[r])||o&&(o._flags&z)===z))n=e[r];else n=v(e,r)}return W(t,o,n)}function pe(){var t=fe.apply(null,arguments);return t.ns=te,t}return n.patch=function(t,e){!function(t,e,i){{var n,o;null!=e.type?null==t.vm&&(q(e,t.parent,t.idx,null),Bt(t.parent.body[t.idx]=e,t),i&&k(e),Q(T(e))):((n=Object.create(t)).attrs=f({},t.attrs),o=f(t.attrs,e),null!=t._class&&(e=o.class,o.class=null!=e&&""!==e?t._class+" "+e:t._class),St(t,n),i&&k(t))}}(this,t,e)},Yt.emit=function(t){var e=this,i=e,n=v(arguments,1).concat(i,i.data);do{var o=e.onemit,o=o?o[t]:null;if(o){o.apply(e,n);break}}while(e=e.parent());pt[t]&&pt[t].apply(e,n)},Yt.onemit=null,Yt.body=function(){return function t(e,i){var n=e.body;if(p(n))for(var o=0;o<n.length;o++){var r=n[o];null!=r.vm?i.push(r.vm):t(r,i)}return i}(this.node,[])},ce.defineElementSpread=fe,ce.defineSvgElementSpread=function(){var t=fe.apply(null,arguments);return t.ns=te,t},ce}()},function(t,i,n){"use strict";(function(s){var l=this&&this.__assign||function(){return(l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(i,"__esModule",{value:!0});var c=n(1),u=n(24),d=n(23),h=n(1),t=(e.prototype.load=function(t,e){var i=this;if(!t.config||this._parent.events.fire(d.DataEvents.beforeLazyLoad,[]))return this._parent.loadData=t.load().then(function(t){return t?i.parse(t,e):[]}).catch(function(t){i._parent.events.fire(d.DataEvents.loadError,[t])})},e.prototype.parse=function(t,e){var n=this;if(void 0===e&&(e=d.DataDriver.json),"json"!==e||u.hasJsonOrArrayStructure(t)||this._parent.events.fire(d.DataEvents.loadError,["Uncaught SyntaxError: Unexpected end of input"]),!((t=(e=u.toDataDriver(e)).toJsonArray(t))instanceof Array)){var i=t.total_count-1,o=t.from;if(t=t.data,0!==this._parent.getLength())return t.forEach(function(t,e){var i=o+e,e=n._parent.getId(i);c.isId(e)?(i=n._parent.getItem(e))&&i.$empty&&(i=t.id||i.id,h.isDefined(t.id)&&n._parent.changeId(e,i,!0),n._parent.update(i,l(l({},t),{$empty:void 0}),!0)):u.dhxWarning("item not found")}),this._parent.events.fire(d.DataEvents.afterLazyLoad,[o,t.length]),this._parent.events.fire(d.DataEvents.change),t;for(var r=[],s=0,a=0;s<=i;s++)o<=s&&s<=o+t.length-1?(r.push(t[a]),a++):r.push({$empty:!0});t=r}return this._parent.getInitialData()&&this._parent.removeAll(),this._parent.$parse(t),t},e.prototype.save=function(o){for(var r=this,t=this._getUniqueOrder(),e=this,i=0,n=t;i<n.length;i++)!function(i){var n,t;i.saving||i.pending?u.dhxWarning("item is saving"):(n=e._findPrevState(i.id))&&n.saving?(t=new s(function(t,e){n.promise.then(function(){i.pending=!1,t(r._setPromise(i,o))}).catch(function(t){r._removeFromOrder(n),r._setPromise(i,o),u.dhxWarning(t),e(t)})}),e._addToChain(t),i.pending=!0):e._setPromise(i,o)}(n[i]);t.length&&this._parent.saveData.then(function(){r._saving=!1})},e.prototype.updateChanges=function(t){this._changes=t},e.prototype._setPromise=function(e,t){var i,n=this;switch(e.status){case"remove":i="delete";break;case"add":i="insert";break;default:i=e.status}return e.promise=t.save(e.obj,i),e.promise.then(function(){n._removeFromOrder(e)}).catch(function(t){e.saving=!1,e.error=!0,u.dhxError(t)}),e.saving=!0,this._saving=!0,this._addToChain(e.promise),e.promise},e.prototype._addToChain=function(t){this._parent.saveData&&this._saving?this._parent.saveData=this._parent.saveData.then(function(){return t}):this._parent.saveData=t},e.prototype._findPrevState=function(t){for(var e=0,i=this._changes.order;e<i.length;e++){var n=i[e];if(n.id===t)return n}return null},e.prototype._removeFromOrder=function(e){this._changes.order=this._changes.order.filter(function(t){return!u.isEqualObj(t,e)})},e.prototype._getUniqueOrder=function(){return this._changes.order.reduce(function(t,e){var i=t.findIndex(function(t){return t.id===e.id}),n=-1<i?t[i]:null;return n&&!1===n.saving&&"add"===n.status?"remove"===e.status?t.splice(i,1):n.obj=e.obj:n&&!1===n.saving&&"update"===n.status?t.splice(i,1,e):t.push(e),t},[])},e);function e(t,e){this._parent=t,this._changes=e}i.Loader=t}).call(this,n(17))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(123);o.prototype.toJsonArray=function(t){return this.getRows(t)},o.prototype.toJsonObject=function(t){var e;return"string"==typeof t&&(e=this._fromString(t)),function t(e,i){i=i||{};var n=e.attributes;if(n&&n.length)for(var o=0;o<n.length;o++)i[n[o].name]=n[o].value;for(var r,s=e.childNodes,o=0;o<s.length;o++)1===s[o].nodeType&&(i[r=s[o].tagName]?("function"!=typeof i[r].push&&(i[r]=[i[r]]),i[r].push(t(s[o],{}))):i[r]=t(s[o],{}));return i}(e)},o.prototype.serialize=function(t){return n.jsonToXML(t)},o.prototype.getFields=function(t){return t},o.prototype.getRows=function(t){if("string"==typeof t&&(t=this._fromString(t)),t){t=t.childNodes&&t.childNodes[0]&&t.childNodes[0].childNodes;return t&&t.length?this._getRows(t):null}return[]},o.prototype._getRows=function(t){for(var e=[],i=0;i<t.length;i++)"item"===t[i].tagName&&e.push(this._nodeToJS(t[i]));return e},o.prototype._fromString=function(t){try{return(new DOMParser).parseFromString(t,"text/xml")}catch(t){return null}},o.prototype._nodeToJS=function(t){var e={};if(this._haveAttrs(t))for(var i=t.attributes,n=0;n<i.length;n++){var o=i[n],r=o.name,o=o.value;e[r]=this._toType(o)}if(3===t.nodeType)return e.value=e.value||this._toType(t.textContent),e;var s=t.childNodes;if(s)for(n=0;n<s.length;n++){var a=s[n],l=a.tagName;l&&("items"===l&&a.childNodes?e[l]=this._getRows(a.childNodes):this._haveAttrs(a)?e[l]=this._nodeToJS(a):e[l]=this._toType(a.textContent))}return e},o.prototype._toType=function(t){return"false"===t||"true"===t?"true"===t:t},o.prototype._haveAttrs=function(t){return t.attributes&&t.attributes.length},i=o;function o(){}e.XMLDriver=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=4;function s(t){return" ".repeat(t)}e.jsonToXML=function(t,e){void 0===e&&(e="root");for(var i='<?xml version="1.0" encoding="iso-8859-1"?>\n<'+e+">",n=0;n<t.length;n++)i+="\n"+function e(t,i){void 0===i&&(i=r);var n,o=s(i)+"<item>\n";for(n in t)Array.isArray(t[n])?(o+=s(i+r)+"<"+n+">\n",o+=t[n].map(function(t){return e(t,i+2*r)}).join("\n")+"\n",o+=s(i+r)+"</"+n+">\n"):o+=s(i+r)+("<"+n+">"+t[n])+"</"+n+">\n";return o+=s(i)+"</item>"}(t[n]);return i+"\n</"+e+">"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(24),i=(n.prototype.sort=function(t,e,i){this._createSorter(e),i===e&&(e=null),(i||e)&&this._sort(t,i,e)},n.prototype._createSorter=function(i){var n=this;i&&!i.rule&&(i.rule=function(t,e){t=null!==(t=n._checkVal(i.as,t[i.by]))&&void 0!==t?t:"",e=null!==(e=n._checkVal(i.as,e[i.by]))&&void 0!==e?e:"";return o.naturalCompare(t.toString(),e.toString())})},n.prototype._checkVal=function(t,e){return t?t.call(this,e):e},n.prototype._sort=function(t,n,o){var r=this,s={asc:1,desc:-1};return t.sort(function(t,e){var i=0;return n&&(i=n.rule.call(r,t,e)*(s[n.dir]||s.asc)),0===i&&o&&(i=o.rule.call(r,t,e)*(s[o.dir]||s.asc)),i})},n);function n(){}e.Sort=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var u=i(1),s=i(61),a=i(26),d=i(24),h=i(23);function l(t,e,i,n){void 0!==n&&-1!==n&&t[i]&&t[i][n]?t[i].splice(n,0,e):(t[i]||(t[i]=[]),t[i].push(e))}var c,o=(c=s.DataCollection,o(f,c),f.prototype.add=function(t,i,n){var o=this;if(void 0===i&&(i=-1),void 0===n&&(n=this._root),this.events.fire(h.DataEvents.beforeAdd,[t]))return"object"!=typeof t&&(t={value:t}),t=Array.isArray(t)?t.map(function(t,e){return o._add(t,i,n,e)}):this._add(t,i,n),this._reapplyFilters(!1),t},f.prototype.getRoot=function(){return this._root},f.prototype.getParent=function(t,e){if(void 0===e&&(e=!1),!this._pull[t])return null;t=this._pull[t].parent;return e?this._pull[t]:t},f.prototype.getItems=function(t){return this._childs&&this._childs[t]?this._childs[t]:[]},f.prototype.getLength=function(t){return void 0===t&&(t=this._root),this._childs[t]?this._childs[t].length:null},f.prototype.removeAll=function(t){if(u.isId(t)){if(this._childs[t])for(var e=0,i=r(this._childs[t]);e<i.length;e++){var n=i[e];this.remove(n.id)}}else{c.prototype.removeAll.call(this);var o=this._root;this._initChilds=null,this._childs=((t={})[o]=[],t)}},f.prototype.getIndex=function(e){var t=this.getParent(e);return t&&this._childs[t]?u.findIndex(this._childs[t],function(t){return t.id===e}):-1},f.prototype.sort=function(t){var e=this;if(t){for(var i in this._childs)this._sort.sort(this._childs[i],t);if(this._initChilds&&Object.keys(this._initChilds).length)for(var i in this._initChilds)this._sort.sort(this._initChilds[i],t)}else this._childs={},this._parse_data(Object.keys(this._pull).map(function(t){return e._pull[t]})),this._reapplyFilters(!1);this.events.fire(h.DataEvents.change,[void 0,"sort",t])},f.prototype.filter=function(t,e,i){if(null!=e&&e.$restore&&(t=this._normalizeFilters(t||this._filters)),!(t&&null!=e&&e.add||(this.restoreOrder(),null!=e&&e.$restore)))for(var n in this._filters){var o=this._filters[n],r=o.rule,o=o.config;null!=o&&o.permanent?this._applyFilter(r,o):delete this._filters[n]}var s;if(!t||null!=e&&e.$restore)for(var n in t)this._applyFilter(t[n],this._filters[n].config);else s=(null==e?void 0:e.id)||u.uid(),(e=e||{}).type=e.type||h.TreeFilterType.all,this._filters[s]={rule:t,config:e},this._applyFilter(t,e);return i||(i=this._getPureFilters(this._filters),this.events.fire(h.DataEvents.filter,[u.isEmptyObj(i)?null:i])),s},f.prototype.restoreOrder=function(){this._initChilds&&(this._childs=this._initChilds,this._initChilds=null)},f.prototype.copy=function(t,i,n,o){var r=this;return void 0===n&&(n=this),void 0===o&&(o=this._root),t instanceof Array?t.map(function(t,e){return r._copy(t,i,n,o,e)}):this._copy(t,i,n,o)},f.prototype.move=function(t,i,n,o){var r=this;return void 0===n&&(n=this),void 0===o&&(o=this._root),t instanceof Array?t.map(function(t,e){return r._move(t,i,n,o,e)}):this._move(t,i,n,o)},f.prototype.forEach=function(t,e,i){if(void 0===e&&(e=this._root),void 0===i&&(i=1/0),this.haveItems(e)&&!(i<1))for(var n=this._childs[e],o=0;o<n.length;o++)t.call(this,n[o],o,n),this.haveItems(n[o].id)&&this.forEach(t,n[o].id,--i)},f.prototype.eachChild=function(t,e,i,n){if(void 0===i&&(i=!0),void 0===n&&(n=function(){return!0}),this.haveItems(t))for(var o=0;o<this._childs[t].length;o++)e.call(this,this._childs[t][o],o),i&&n(this._childs[t][o])&&this.eachChild(this._childs[t][o].id,e,i,n)},f.prototype.getNearId=function(t){return t},f.prototype.loadItems=function(e,i){var t,n=this;void 0===i&&(i=h.DataDriver.json),this.events.fire(h.DataEvents.beforeItemLoad,[e])&&(t=(t=this.config.autoload.toString())+(t.includes("?")?"&id="+e:"?id="+e),new a.DataProxy(t).load().then(function(t){t=(i=d.toDataDriver(i)).toJsonArray(t),n._parse_data(t,e),n.events.fire(h.DataEvents.change),n.events.fire(h.DataEvents.afterItemLoad,[e])}).catch(function(t){n.events.fire(h.DataEvents.loadError,[t])}))},f.prototype.refreshItems=function(t,e){void 0===e&&(e=h.DataDriver.json),this.removeAll(t),this.loadItems(t,e)},f.prototype.eachParent=function(t,e,i){void 0===i&&(i=!1);t=this.getItem(t);t&&(i&&e.call(this,t),t.parent!==this._root&&(i=this.getItem(t.parent),e.call(this,i),this.eachParent(t.parent,e)))},f.prototype.haveItems=function(t){return t in this._childs},f.prototype.canCopy=function(e,t){if(e===t)return!1;var i=!0;return this.eachParent(t,function(t){return t.id===e?i=!1:null}),i},f.prototype.serialize=function(t,e){void 0===t&&(t=h.DataDriver.json);e=this._serialize(this._root,e),t=d.toDataDriver(t);if(t)return t.serialize(e)},f.prototype.getId=function(t,e){if(void 0===e&&(e=this._root),this._childs[e]&&this._childs[e][t])return this._childs[e][t].id},f.prototype.map=function(t,e,i){void 0===e&&(e=this._root),void 0===i&&(i=!0);var n=[];if(!this.haveItems(e))return n;for(var o,r=0;r<this._childs[e].length;r++)n.push(t.call(this,this._childs[e][r],r,this._childs)),i&&(o=this.map(t,this._childs[e][r].id,i),n=n.concat(o));return n},f.prototype.getRawData=function(t,e,i,n,o){return o=null!=o?o:this._root,this._childs[o]?(o=o===this._root?c.prototype.getRawData.call(this,t,e,this._childs[o]):this._childs[o],2===n?this.flatten(o):o):[]},f.prototype.flatten=function(t){var i=this,n=[];return t.forEach(function(t){n.push(t);var e=i._childs[t.id];e&&t.$opened&&(n=n.concat(i.flatten(e)))}),n},f.prototype._add=function(t,e,i,n){void 0===e&&(e=-1),void 0===i&&(i=this._root),this._setParent(t,i),0<n&&-1!==e&&(e+=1);e=c.prototype._add.call(this,t,e);if(Array.isArray(t.items))for(var o=0,r=t.items;o<r.length;o++){var s=r[o];this.add(s,-1,t.id)}return e},f.prototype._setParent=function(t,e){t.parent=t.parent?t.parent.toString():e;t=this._pull[t.parent];t&&!t.items&&(t.items=[])},f.prototype._copy=function(t,e,i,n,o){if(void 0===i&&(i=this),void 0===n&&(n=this._root),!this.exists(t))return null;var r=this._childs[t];if(o&&(e=-1===e?-1:e+o),i===this&&!this.canCopy(t,n))return null;o=d.copyWithoutInner(this.getItem(t),{items:!0});if(i.exists(t)&&(o.id=u.uid()),d.isTreeCollection(i)){if(this.exists(t)&&(o.parent=n,i!==this&&n===this._root&&(o.parent=i.getRoot()),i.add(o,e),t=o.id),r)for(var s=0,a=r;s<a.length;s++){var l=a[s].id,c=this.getIndex(l);"string"==typeof t&&this.copy(l,c,i,t)}return t}i.add(o,e)},f.prototype._move=function(t,e,i,n,o){if(void 0===i&&(i=this),void 0===n&&(n=this._root),!this.exists(t))return null;if(o&&(e=-1===e?-1:e+o),i!==this){if(!d.isTreeCollection(i))return i.add(d.copyWithoutInner(this.getItem(t)),e),void this.remove(t);var r=this.copy(t,e,i,n);return this.remove(t),r}if(!this.canCopy(t,n))return null;i=this.getParent(t),r=this.getIndex(t),r=this._childs[i].splice(r,1)[0];return r.parent=n,this._childs[i].length||delete this._childs[i],this.haveItems(n)||(this._childs[n]=[]),-1===e?e=this._childs[n].push(r):this._childs[n].splice(e,0,r),this.events.fire(h.DataEvents.change,[t,"update",this.getItem(t)]),t},f.prototype._reset=function(t){if(u.isId(t))for(var e=0,i=r(this._childs[t]);e<i.length;e++){var n=i[e];this.remove(n.id)}else{c.prototype._reset.call(this);var o=this._root;this._initChilds=null,this._childs=((t={})[o]=[],t)}},f.prototype._removeCore=function(e){var t;this._pull[e]&&(t=this.getParent(e),this._childs[t]=this._childs[t].filter(function(t){return t.id!==e}),t===this._root||this._childs[t].length||delete this._childs[t],this._initChilds&&this._initChilds[t]&&(this._initChilds[t]=this._initChilds[t].filter(function(t){return t.id!==e}),t===this._root||this._initChilds[t].length||delete this._initChilds[t]),this._initOrder&&this._initOrder.length&&(this._initOrder=this._initOrder.filter(function(t){return t.id!==e})),this._fastDeleteChilds(this._childs,e),this._initChilds&&this._fastDeleteChilds(this._initChilds,e))},f.prototype._addToOrder=function(t,e,i){var n=this._childs,o=this._initChilds,r=e.parent;(this._pull[e.id]=e).parent&&this._pull[e.parent]&&this._pull[e.parent].items&&!this._pull[e.parent].items.find(function(t){return t.id===e.id})&&this._pull[e.parent].items.push(e),c.prototype._addToOrder.call(this,t,e,i),l(n,e,r,i),o&&l(o,e,r,i)},f.prototype._parse_data=function(t,e){var i;void 0===e&&(e=this._root);for(var n=this._order.length,o=0,r=t;o<r.length;o++){var s=r[o];this.config.init&&(s=this.config.init(s)),s&&"object"!=typeof s&&(s={value:s}),s.id=null!==(i=s.id)&&void 0!==i?i:u.uid(),s.parent=void 0===s.parent||null===s.parent||s.parent&&s.$items?e:s.parent,this._pull[s.id]&&d.dhxError("Item "+s.id+" already exist"),this._pull[s.id]=s,this._order[n++]=s,this._childs[s.parent]||(this._childs[s.parent]=[]),this._childs[s.parent].push(s),s.items&&s.items instanceof Object&&this._parse_data(s.items,s.id)}},f.prototype._fastDeleteChilds=function(t,e){if(this._pull[e]&&delete this._pull[e],t[e]){for(var i=0;i<t[e].length;i++)this._fastDeleteChilds(t,t[e][i].id);delete t[e]}},f.prototype._recursiveFilter=function(o,e,t,i,n){var r=this,s=this._childs[t];if(s){var a,l=function(t){switch(e.type){case h.TreeFilterType.all:return!0;case h.TreeFilterType.level:return i===e.level;case h.TreeFilterType.leafs:return!r.haveItems(t.id)}};a="function"==typeof o?function(t){return l(t)&&o(t)}:function(t){var e,i,n=!0;for(i in o)if(o[i].by&&""!==o[i].match&&(n=o[i].compare?o[i].compare(t[o[i].by],o[i].match,t):-1!==(null===(e=t[o[i].by])||void 0===e?void 0:e.toString().toLocaleLowerCase().indexOf(o[i].match.toString().toLowerCase()))),!n)break;return l(t)&&n},(a=s.filter(a)).length?n[t]=a:t===this._root&&(n[t]=[]);for(var c=0,u=s;c<u.length;c++){var d=u[c];this._recursiveFilter(o,e,d.id,i+1,n)}}},f.prototype._serialize=function(t,n){var o=this;return void 0===t&&(t=this._root),this.map(function(t){var e,i={};for(e in t)"parent"===e||"items"===e||e.startsWith("$")||(i[e]=t[e]);return n&&(i=n(i)),o.haveItems(t.id)&&(i.items=o._serialize(t.id,n)),i},t,!1)},f.prototype._applyFilter=function(t,e){var i,n=this;if(t&&("function"==typeof t||!u.isEmptyObj(t))){this._initOrder||(this._initOrder=this._order),this._initChilds||(this._initChilds=this._childs);var o={};if("function"!=typeof t)if(i={},u.isDefined(t.by))i[t.by]=t;else for(var r in t)i[r]=t[r];else i=t;this._recursiveFilter(i,e,this._root,0,o),Object.keys(o).forEach(function(t){for(var e=n.getParent(t),i=n.getItem(t);e;)o[e]||(o[e]=[]),i&&!o[e].find(function(t){return t.id===i.id})&&o[e].push(i),i=n.getItem(e),e=n.getParent(e)}),this._childs=o}},f.prototype._normalizeFilters=function(t){var e,i={};for(e in t)i[e]=t[e].rule;return i},f);function f(t,e){var i=c.call(this,t,e)||this;i._childs={};e=i._root=t&&t.rootId||"_ROOT_"+u.uid();return i._childs=((t={})[e]=[],t),i._initChilds=null,i}e.TreeCollection=o},function(t,e,i){"use strict";var m=this&&this.__assign||function(){return(m=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},y=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var h=i(3),b=i(42),f=i(161),p=i(23),w=i(24),x=i(1);var n=(o.prototype.setItem=function(t,e){f.collectionStore.setItem(t,e)},o.prototype.onMouseDown=function(t,e,i){var n,o,r,s;1!==t.which&&!t.targetTouches||(t.targetTouches?(document.addEventListener("touchmove",this._onMouseMove,!1),document.addEventListener("touchend",this._onMouseUp,!1)):(document.addEventListener("mousemove",this._onMouseMove),document.addEventListener("mouseup",this._onMouseUp)),o=(n=h.locateNode(t,"data-dhx-id"))&&n.getAttribute("data-dhx-id"),r=h.locate(t,"data-dhx-widget-id"),Array.isArray(e)&&e.includes(o)?(this._transferData.source=y(e),this._itemsForGhost=i):(this._transferData.source=[o],this._itemsForGhost=null),o&&r&&(e=(s=h.getBox(n)).left,i=s.top,s=(t.targetTouches?t.targetTouches[0]:t).pageX,t=(t.targetTouches?t.targetTouches[0]:t).pageY,this._transferData.initXOffset=s-e,this._transferData.initYOffset=t-i,this._transferData.x=s,this._transferData.y=t,this._transferData.componentId=r,this._transferData.start=o,this._transferData.item=n))},o.prototype.isDrag=function(){return this._isDrag},o.prototype.cancelCanDrop=function(t){this._canMove=!1,this._isDrag=!1;var e=this._transferData,i=e.start,n=e.source,o=e.target,e=e.dropComponentId,n={start:i,source:n,target:o},e=f.collectionStore.getItem(e);e&&o&&e.events.fire(p.DragEvents.cancelDrop,[n,t]),this._transferData.dropComponentId=null,this._transferData.target=null},o.prototype._moveGhost=function(t,e){this._transferData.ghost&&(this._transferData.ghost.style.left=t-this._transferData.initXOffset+"px",this._transferData.ghost.style.top=e-this._transferData.initYOffset+"px")},o.prototype._removeGhost=function(){document.body.removeChild(this._transferData.ghost)},o.prototype._onDrop=function(t){var e,i,n,o,r;this._canMove&&(r=(o=this._transferData).start,i=o.source,e=o.target,n=o.dropComponentId,i={start:r,source:i,target:e,dropPosition:o.dropPosition},n=(o=f.collectionStore.getItem(n))&&o.config,o&&"source"!==n.dragMode&&o.events.fire(p.DragEvents.beforeDrop,[i,t])&&(o={id:e,component:o},r={id:r,component:this._transferData.component,newId:null},this._move(r,o),r.newId&&r.component!==o.component&&(i.start=r.newId),o.component.events.fire(p.DragEvents.afterDrop,[i,t]))),this._endDrop(t)},o.prototype._onDragStart=function(t,e,i){var n=f.collectionStore.getItem(e),o=n.config,r=this._transferData,e={start:r.start,source:r.source,target:r.target};if("target"===o.dragMode||n._pregroupData)return null;r=function(t,e,i){void 0===i&&(i=!1);var n=t.getBoundingClientRect(),o=document.createElement("div"),r=t.cloneNode(!0),s=window.getComputedStyle(t.parentElement).fontSize;return r.style.width=n.width+"px",r.style.height=n.height+"px",r.style.maxHeight=n.height+"px",r.style.opacity="0.8",r.style.fontSize=s,i&&e&&e.length||o.appendChild(r),e&&e.length&&e.forEach(function(t,e){t=t.cloneNode(!0);t.style.width=n.width+"px",t.style.height=n.height+"px",t.style.maxHeight=n.height+"px",t.style.top=12*(e+1)-n.height-n.height*e+"px",t.style.left=12*(e+1)+"px",t.style.opacity="0.6",t.style.zIndex=""+(-e-1),i||(t.style.fontSize=s,t.style.overflow="hidden"),o.appendChild(t)}),o.className="dhx_drag-ghost",o}(this._transferData.item,this._itemsForGhost,"row"===o.dragItem||"column"===o.dragItem||"both"===o.dragItem);return n.events.fire(p.DragEvents.beforeDrag,[e,i,r])&&x.isId(t)?(n.events.fire(p.DragEvents.dragStart,[e,i]),this._isDrag=!0,this._toggleTextSelection(!0),this._transferData.component=n,this._transferData.dragConfig=o,r):null},o.prototype._onDrag=function(t){var e=(t.targetTouches?t.targetTouches[0]:t).clientX,i=(t.targetTouches?t.targetTouches[0]:t).clientY,n=document.elementFromPoint(e,i),o=h.locate(n,"data-dhx-widget-id");if(o){var r=f.collectionStore.getItem(o),s=!!h.locateNodeByClassName(n,"dhx_grid-header")||!!h.locateNodeByClassName(n,"dhx_grid-footer"),a=r&&r.config.columns?r.config:void 0,l=a&&("both"===a.dragItem||"column"===a.dragItem);if(!s||l){var c=h.locate(n,"data-dhx-id"),u=h.locate(n,"data-dhx-root-id");if(!c&&!u)return this.cancelCanDrop(t),this._transferData.dropComponentId=o,this._transferData.target=null,void this._canDrop(t);var d=this._transferData,e=d.dropComponentId,i=d.start,a=d.source,s=d.target,l=d.componentId,n=d.dropPosition;if("complex"===r.config.dropBehaviour){d=function(t){var e=t.clientY;if(!(t=h.locateNode(t)))return null;if(t=t.childNodes[0]){t=t.getBoundingClientRect();return(e-t.top)/t.height}}(t);this._transferData.dropPosition=d<=.25?"top":.75<=d?"bottom":"in"}else if((s===c||!c&&s===u)&&e===o)return;e={id:i,component:this._transferData.component};"source"!==r.config.dragMode&&(e.component.events.fire(p.DragEvents.dragOut,[{start:i,source:a,target:s},t]),o!==l||!w.isTreeCollection(e.component.data)||w.isTreeCollection(e.component.data)&&e.component.data.canCopy(e.id,c)?(this.cancelCanDrop(t),this._transferData.target=c||u,this._transferData.dropComponentId=o,e.component.events.fire(p.DragEvents.dragIn,[{start:i,source:a,target:s,dropPosition:n},t])&&this._canDrop(t)):this.cancelCanDrop(t))}else this._canMove&&this.cancelCanDrop(t)}else this._canMove&&this.cancelCanDrop(t)},o.prototype._move=function(i,e){var t=i.component,n=e.component,o=i.component.data,r=e.component.data,s=0,a=e.id,l=w.isTreeCollection(r)?e.component.config.dropBehaviour:void 0,c=i.component.config.columns?i.component.config:void 0,u=c&&("both"===c.dragItem||"column"===c.dragItem)&&c.columns.map(function(t){return t.id}).filter(function(t){return t===i.id||t===e.id}).length;if(u&&i.component===e.component){if(i.id===e.id)return;var d=(h=t.config.columns.map(function(t){return m({},t)})).findIndex(function(t){return t.id===i.id});return-1===(f=h.findIndex(function(t){return t.id===e.id}))?void 0:(h.splice(f,0,h.splice(d,1)[0]),t.setColumns(h),void t.paint())}if(u&&i.component instanceof b.ProGrid&&e.component instanceof b.ProGrid){var h,d=(h=t.config.columns.map(function(t){return m({},t)})).findIndex(function(t){return t.id===i.id}),c=n.config.columns.map(function(t){return m({},t)}),u=n.data.getLength(),f=c.findIndex(function(t){return t.id===e.id}),p=[],g=i.id;t.data.forEach(function(t){var e;p.push(((e={id:t.id})[g]=t[i.id],e))}),u?t.data.forEach(function(t,e){t=n.data.getItem(t.id);t?n.data.update(t.id,m(m({},t),p[e])):n.data.add(p[e])}):n.data.parse(p);d=h.splice(d,1)[0];return c.find(function(t){return t.id===g})||c.splice(f,0,d),n.setColumns(c),n.paint(),t.setColumns(h),void t.paint()}var v=e.id===n.config.rootParent;switch(l){case"child":break;case"sibling":a=r.getParent(a),s=r.getIndex(e.id)+1;break;case"complex":var _=this._transferData.dropPosition;v?(a=e.id,s=r.getLength()):"top"===_?(a=r.getParent(a),s=r.getIndex(e.id)):"bottom"===_&&(a=r.getParent(a),s=r.getIndex(e.id)+1);break;default:s=x.isId(e.id)?i.component===e.component&&r.getIndex(i.id)<r.getIndex(e.id)?r.getIndex(e.id)-1:(-1<r.getIndex(i.id)&&(i.newId=x.uid()),r.getIndex(e.id)):-1}this._transferData.dragConfig.dragCopy?this._transferData.source instanceof Array&&1<this._transferData.source.length?this._transferData.source.map(function(t){o.copy(t,s,r,a),-1<s&&s++}):o.copy(i.id,s,r,a):this._transferData.source instanceof Array&&1<this._transferData.source.length?o.move(this._transferData.source,s,r,a):n instanceof b.Grid&&!n.config.columns.length?(l=t.data.getItem(i.id),n.data.parse([m({},l)]),n.setColumns(y(t.config.columns)),n.paint(),t.data.remove(i.id),t.paint()):o.move(i.id,s,r,a,i.newId)},o.prototype._endDrop=function(t){var e;this._toggleTextSelection(!1),this._transferData.component&&(e={start:(e=this._transferData).start,source:e.source,target:e.target},this._transferData.component.events.fire(p.DragEvents.afterDrag,[e,t])),this.cancelCanDrop(t),this._canMove=!0,this._transferData={},this._transferData.target=null,this._transferData.dropComponentId=null},o.prototype._canDrop=function(t){this._canMove=!0;var e=this._transferData,i={start:e.start,source:e.source,target:e.target,dropPosition:e.dropPosition},e=f.collectionStore.getItem(this._transferData.dropComponentId);e&&this._transferData.target&&(e instanceof b.Grid&&(i.dragItem=this._transferData.item.classList.contains("dhx_grid-row")?"row":"column"),e.events.fire(p.DragEvents.canDrop,[i,t]))},o.prototype._toggleTextSelection=function(t){t?document.body.classList.add("dhx_no-select"):document.body.classList.remove("dhx_no-select")},o);function o(){var a=this;this._transferData={},this._canMove=!0,this._isDrag=!1,this._onMouseMove=function(t){if(a._transferData.start){var e=(t.targetTouches?t.targetTouches[0]:t).pageX,i=(t.targetTouches?t.targetTouches[0]:t).pageY,n=a._transferData,o=n.x,r=n.y,s=n.start,n=n.componentId;if(!a._transferData.ghost){if(Math.abs(o-e)<3&&Math.abs(r-i)<3)return;n=a._onDragStart(s,n,t);if(!n)return void a._endDrop(t);a._transferData.ghost=n,document.body.appendChild(a._transferData.ghost)}a._moveGhost(e,i),a._onDrag(t)}},this._onMouseUp=function(t){a._transferData.x&&(a._transferData.ghost?(a._removeGhost(),a._onDrop(t)):a._endDrop(t),t.targetTouches?(document.removeEventListener("touchmove",a._onMouseMove),document.removeEventListener("touchend",a._onMouseUp)):(document.removeEventListener("mousemove",a._onMouseMove),document.removeEventListener("mouseup",a._onMouseUp)))}}i=window.dhxHelpers=window.dhxHelpers||{};i.dragManager=i.dragManager||new n,e.dragManager=i.dragManager},function(t,e,i){"use strict";var y=this&&this.__assign||function(){return(y=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},a=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var m=i(15),l=i(8),b=i(1),c=i(16),w=i(3),x=i(0);n.prototype.pdf=function(t){this._rawExport(t,"pdf",this._view)},n.prototype.png=function(t){this._rawExport(t,"png",this._view)},n.prototype.xlsx=function(t){return this._export(t)},n.prototype.csv=function(t){var e;void 0===t&&(t={}),t=y({asFile:!0,rowDelimiter:"\n",columnDelimiter:",",skipHeader:0},t),e="getRoot"in this._view.data&&t.flat?this.getFlatCSV(t):this._getCSV(t);var i=t.name||"grid_export";return t.asFile&&b.downloadFile(e,i+".csv","text/csv"),e},n.prototype._export=function(t){void 0===t&&(t={});for(var u=this._view.config.columns.filter(function(t){return!t.hidden}),d={},e=m.transpose(u.map(function(t){return t.header.map(function(t){return t.text||" "})})),h=[],f={default:{color:"#000000",background:"#FFFFFF",fontSize:14,bold:!1}},p=[],o={},i=this._view.data.serialize().map(function(n,t){return d[n.id]=t,u.map(function(t,e){var i;return o[t.id]=e,n[t.id]instanceof Date&&(i=t.format||"%M %d %Y","string"==typeof n[t.id]?n[t.id]=c.getFormattedDate(i,c.stringToDate(n[t.id],i)):"object"==typeof n[t.id]&&(n[t.id]=c.getFormattedDate(i,n[t.id]))),n[t.id]||e||!n.$groupName?m.removeHTMLTags(n[t.id]):"^ "+n.$groupName})}),g=[],v=this._view.content,_=this,n=0,r=u;n<r.length;n++)!function(t){var n,e,o,i;t.footer&&(n=t.id,i=e=_._view.data.serialize().reduce(function(t,e){return void 0===e[n]||""===e[n]||isNaN(e[n])||t.push(parseFloat(e[n])),t},[]),"tree"===_._view.config.type&&(i=(o=_._view.data).serialize().reduce(function(t,e){var i;return 0===e.$level&&(void 0===e[n]||""===e[n]||isNaN(e[n])?(i=0,o.eachChild(e.id,function(t){o.haveItems(t.id)||(i+=parseFloat(t[n]))}),t.push(i)):t.push(parseFloat(e[n])||0)),t},[])),t.footer[0].content?(s=v[t.footer[0].content].calculate(e,i),g.push((null==s?void 0:s.toString())||" ")):g.push(t.footer[0].css||t.footer[0].text||" "));var r,s="number"===t.type||"percent"===t.type?"right":t.align;for(r in h.push({width:t.$width,align:s}),t.$cellCss){var a,l=t.$cellCss[r].trim(),c=l.split("").reduce(function(t,e){e=(t<<5)-t+e.charCodeAt(0);return Math.abs(e&e)},0).toString();f[c]||(a=document.body,(a=m.getStyleByClass(l,a,"dhx_grid-row",f.default))&&(f[c]=a)),f[c]&&p.push([d[r],u.indexOf(t),c])}}(r[n]);g.length&&i.push(g);var s,i={name:t.name||"data",columns:h,header:e,data:i,styles:{cells:p,css:f}};return t.url&&((s=document.createElement("form")).setAttribute("target","_blank"),s.setAttribute("action",t.url),s.setAttribute("method","POST"),s.style.visibility="hidden",(t=document.createElement("textarea")).setAttribute("name","data"),t.value=JSON.stringify(i),s.appendChild(t),document.body.appendChild(s),s.submit(),setTimeout(function(){s.parentNode.removeChild(s)},100)),i},n.prototype.getFlatCSV=function(o){var e=this._view.data,t=e.getRoot(),r=this._view.config.columns[0],s=e.getMaxLevel(),i="";e.eachChild(t,function(n){var t=function(t,e){for(var i,n=[],o=0;o<=s;o++)t&&t[r.id]?(n[t.$level]=t[r.id],t=(i=e.getParent(t.id,!0))&&i.id?i:null):n[o]="";return n}(n,e).join(o.columnDelimiter);i+=t+Object.keys(n).reduce(function(t,e,i){return"id"===e||"parent"===e||e.startsWith("$")||0===i?t:t+o.columnDelimiter+(null===n[e]?"":n[e])},""),i+=o.rowDelimiter});var t=this._export(o),n=function(t,e){for(var i=0;i<t.length;i++)t[i]=e;return t}(new Array(s+1),""),t=t.header.map(function(t){return t.splice.apply(t,a([0,1],n)),t});return new l.CsvDriver(o).serialize(t,!0)+o.rowDelimiter+i},n.prototype._getCSV=function(t){var e=this._export(t),i=e.header,t=new l.CsvDriver(t);return t.serialize(i,!0)+"\n"+t.serialize(e.data,!0)},n.prototype._rawExport=function(i,t,e){void 0===i&&(i={});var n=document.createElement("div");n.setAttribute("style","display: none;");var o=e.config,r=o.headerRowHeight,s=void 0===r?0:r,a=o.footerRowHeight,l=void 0===a?0:a,c=o.$totalHeight,u=void 0===c?0:c,r=o.$headerLevel,a=void 0===r?0:r,c=o.$footerLevel,r=void 0===c?0:c,c=o.$footer,d=o.columns,h="",f=e.config.exportStyles;"boolean"!=typeof i.exportStyles&&!Array.isArray(i.exportStyles)||(f=i.exportStyles),i.url=i.url||"https://export.dhtmlx.com/"+this._name+"/"+t+"/"+this._version,"pdf"===t&&(p=i.pdf,i.pdf=y(y({},p),{printBackground:!1,format:null!==(p=null==p?void 0:p.format)&&void 0!==p?p:"A4"}));var p=e.config.$totalWidth,s=u+a*(s+1)+1;c&&(s+=r*(l+1));for(var g=[],v=0;v<d.length;v++){var _=d[v];g.push(y(y({},_),{width:_.$width}))}var s=y(y({},e.config),{width:p,height:s,columns:g,data:e.data.getRawData(),keyNavigation:!1,selection:!1,resizable:!1}),m=new e.constructor(n,b.getCloneObject(s));x.awaitRedraw().then(function(){!0===f?h=w.getPageLinksCss()+"<style>"+w.getPageInlineCss()+"</style>":Array.isArray(f)&&f.length&&(h=""+w.getPageLinksCss(f)),null!==(t=n.children[0])&&void 0!==t&&t.setAttribute("data-dhx-theme",i.theme||"light");var t="\n\t\t\t\t\t"+h+"\n\t\t\t\t\t"+n.innerHTML+"\n\t\t\t\t",e=document.createElement("form");e.setAttribute("method","POST"),e.setAttribute("action",i.url),e.innerHTML='<input type="hidden" name="raw"><input type="hidden" name="config">',e.childNodes[0].value=t,e.childNodes[1].value=JSON.stringify(i),document.body.appendChild(e),e.submit(),setTimeout(function(){var t;m.destructor(),null!==(t=n.parentNode)&&void 0!==t&&t.removeChild(n),null!==(t=e.parentNode)&&void 0!==t&&t.removeChild(e)},100)}).catch(function(){var t;m.destructor(),null!==(t=n.parentNode)&&void 0!==t&&t.removeChild(n)})},i=n;function n(t,e,i){this._name=t,this._version=e,this._view=i}e.Exporter=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i(1),a=i(3),l=i(43),c=new WeakMap,u=new Map;function d(t,e){var i=document.createElement("div");return i.setAttribute("data-position",e),i.className="dhx_message-container dhx_message-container--"+e+(t===document.body?" dhx_message-container--in-body":""),i}e.message=function(t){"string"==typeof t&&(t={text:t}),t.position=t.position||l.MessageContainerPosition.topRight;var e=document.createElement("div");e.className="dhx_widget dhx_message "+(t.css||""),e.setAttribute("role","alert"),(o=t.text&&s.uid())&&e.setAttribute("aria-describedby",o),t.html?e.innerHTML=t.html:(e.innerHTML='<span class="dhx_message__text" id='+o+"></span>\n\t\t"+(t.icon?'<span class="dhx_message__icon dxi '+t.icon+'"></span>':""),e.querySelector("#"+o).textContent=t.text);var i=t.node?a.toNode(t.node):document.body;"static"===getComputedStyle(i).position&&(i.style.position="relative"),(o=u.get(i))?o[t.position]||(o[t.position]={stack:[],container:d(i,t.position)}):u.set(i,((n={})[t.position]={stack:[],container:d(i,t.position)},n));var n=(o=u.get(i)[t.position]).stack,o=o.container;function r(t){void 0===t&&(t=!0),e&&(function(t,e){e&&clearTimeout(c.get(t));var i=t.parentNode,n=i.getAttribute("data-position"),o=i.parentNode;(e=u.get(o))&&(!(e=e[n])||-1!==(e=(n=e.stack).indexOf(t))&&(i.removeChild(t),n.splice(e,1),0===n.length&&o.removeChild(i)))}(e,t),e=null)}return 0===n.length&&i.appendChild(o),n.push(e),o.appendChild(e),t.expire&&(t=setTimeout(function(){return r(!1)},t.expire),c.set(e,t)),e.onclick=function(){return r()},{close:function(){return r()}}}},function(t,n,o){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0});var e=o(44),i=o(66),c=o(1);n.alert=function(s){var a=s.buttons&&s.buttons[0]?s.buttons[0]:e.default.apply,l=i.blockScreen(s.blockerCss);return new t(function(e){var t="dhx_alert__"+c.uid()+"_content",i="dhx_alert__"+c.uid()+"_header",n=document.createElement("div");n.setAttribute("role","alert"),n.setAttribute("aria-modal","true"),s.text&&n.setAttribute("aria-describedby",t),s.header&&n.setAttribute("aria-labelledby",i),n.className="dhx_widget dhx_alert "+(s.css||"");var o=function(t){"Escape"!==t.key&&"Esc"!==t.key||(r(t),e(!1))};function r(t){t.preventDefault(),l(),document.body.removeChild(n),document.removeEventListener("keydown",o)}n.innerHTML="\n\t\t\t"+(s.header?"<div id="+i+' class="dhx_alert__header"> '+(!1!==s.htmlEnable?s.header:"")+" </div>":"")+"\n\t\t\t"+(s.text?"<div id="+t+' class="dhx_alert__content">'+(!1!==s.htmlEnable?s.text:"")+"</div>":"")+'\n\t\t\t<div class="dhx_alert__footer '+(s.buttonsAlignment?"dhx_alert__footer--"+s.buttonsAlignment:"")+'">\n\t\t\t\t<button type="button" aria-label="confirm" class="dhx_alert__apply-button dhx_button dhx_button--view_flat dhx_button--color_primary dhx_button--size_medium">'+a+"</button>\n\t\t\t</div>",!1===s.htmlEnable&&(s.header&&(n.querySelector("#"+i).textContent=s.header),s.text&&(n.querySelector("#"+t).textContent=s.text)),document.body.appendChild(n),n.querySelector(".dhx_alert__apply-button").focus(),n.querySelector("button").addEventListener("click",function(t){r(t),e(!0)}),document.addEventListener("keydown",o)})}}).call(this,o(17))},function(t,n,o){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0});var e=o(44),i=o(66),h=o(1);n.confirm=function(l){l.buttonsAlignment=l.buttonsAlignment||"right";var c=l.buttons&&l.buttons[1]?l.buttons[1]:e.default.apply,u=l.buttons&&l.buttons[0]?l.buttons[0]:e.default.reject,d=i.blockScreen("dhx_alert__overlay-confirm "+(l.blockerCss||""));return new t(function(e){var i=document.createElement("div");i.setAttribute("role","alertdialog"),i.setAttribute("aria-modal","true");var n,t=l.header&&h.uid(),o=l.header&&h.uid();o&&i.setAttribute("aria-describedby",o),t&&i.setAttribute("aria-labelledby",t);function r(t){d(),i.removeEventListener("click",s),document.removeEventListener("keydown",a),document.body.removeChild(i),e(t)}var s=function(t){"BUTTON"===t.target.tagName&&r(t.target.classList.contains("dhx_alert__confirm-aply"))},a=function(t){"Escape"===t.key||"Esc"===t.key?(i.querySelector(".dhx_alert__confirm-aply").focus(),r(t.target.classList.contains("dhx_alert__confirm-reject"))):"Tab"===t.key&&("aply"===n?(n="reject",i.querySelector(".dhx_alert__confirm-reject").focus()):(n="aply",i.querySelector(".dhx_alert__confirm-aply").focus()),t.preventDefault())};i.className="dhx_widget dhx_alert dhx_alert--confirm"+(l.css?" "+l.css:""),i.innerHTML="\n\t\t"+(l.header?'<div class="dhx_alert__header" id='+t+"> "+(!1!==l.htmlEnable?l.header:"")+" </div>":"")+"\n\t\t"+(l.text?'<div class="dhx_alert__content" id='+o+">"+(!1!==l.htmlEnable?l.text:"")+"</div>":"")+'\n\t\t\t<div class="dhx_alert__footer '+(l.buttonsAlignment?"dhx_alert__footer--"+l.buttonsAlignment:"")+'">\n\t\t\t\t<button type="button" aria-label="reject" class="dhx_alert__confirm-reject dhx_button dhx_button--view_link dhx_button--color_primary dhx_button--size_medium">'+u+'</button>\n\t\t\t\t<button type="button" aria-label="aply"class="dhx_alert__confirm-aply dhx_button dhx_button--view_flat dhx_button--color_primary dhx_button--size_medium">'+c+"</button>\n\t\t\t</div>",!1===l.htmlEnable&&(l.header&&(i.querySelector("#"+t).textContent=l.header),l.text&&(i.querySelector("#"+o).textContent=l.text)),document.body.appendChild(i),n="aply",i.querySelector(".dhx_alert__confirm-aply").focus(),i.addEventListener("click",s),document.addEventListener("keydown",a)})}}).call(this,o(17))},function(t,e,i){"use strict";var d=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var L=i(0),s=i(8),A=i(1),o=i(2),j=i(9),h=i(19),$=i(20),r=i(20),N=i(15),i=(n.prototype.setCell=function(e,i,t,n){var o,r=this;void 0===t&&(t=!1),void 0===n&&(n=!1);var s="tree"===this._grid.config.type;if(this._gridId&&h.focusManager.getFocusId()!==this._gridId&&h.focusManager.setFocusId(this._gridId),!(this.config.disabled||this._grid.config.$editable||(null===(o=this._selectedCells[0])||void 0===o?void 0:o.row.id)===((null===(o=e)||void 0===o?void 0:o.id)||e)&&(null===(o=this._selectedCells[0])||void 0===o?void 0:o.column.id)===((null===(o=i)||void 0===o?void 0:o.id)||i))&&(this._multiselection||!this._selectedCells.length||this._removeCell(null===(a=this._selectedCell)||void 0===a?void 0:a.row,null===(c=this._selectedCell)||void 0===c?void 0:c.column))){if(this._multiselection){if(t||n||this._removeCells(),this._selectedCells.find(function(t){return t.row.id===((null===e||void 0===e?void 0:e.id)||e)&&t.column.id===((null===i||void 0===i?void 0:i.id)||i)}))return void this.removeCell((null===e||void 0===e?void 0:e.id)||e,(null===i||void 0===i?void 0:i.id)||i);n&&1<this._selectedCells.length&&!s&&d(this._selectedCells).forEach(function(t,e){var i=t.row,t=t.column;0<e&&r.removeCell(i.id,t.id)})}e=this._grid.data.getItem(e&&e.id||e);var a,l,c,u,t=null===(c=null===(a=this._grid.config)||void 0===a?void 0:a.columns)||void 0===c?void 0:c.filter(function(t){return!t.hidden});i=i||(null==t?void 0:t[0]),(i=this._grid.getColumn(i.id||i))&&e&&(this._multiselection&&n&&this._selectedCells.length&&!s?(c=null===(a=this._selectedCells)||void 0===a?void 0:a[0],n=this._grid.data.getIndex(c.row.id),(s=this._grid.data.getIndex(e.id))<n&&(n=(l=[s,n])[0],s=l[1]),"cell"===this._type||"complex"===this._type?(l=(a=t.map(function(t){return t.id})).indexOf(c.column.id),c=a.indexOf(i.id),-1!==l&&-1!==c&&(c<l&&(l=(a=[c,l])[0],c=a[1]),u=t.slice(l,c+1),this._grid.data.mapRange(n,s,function(e){u.forEach(function(t){-1===r._findIndex({row:e,column:t})&&r._setCell(e,t)})}))):this._grid.data.mapRange(n,s,function(t){-1===r._findIndex({row:t,column:i})&&r._setCell(t,i)})):this._setCell(e,i),L.awaitRedraw().then(function(){r._grid.paint(),r._setBrowserFocus()}))}},n.prototype.removeCell=function(i,n){var t,o=this;i&&n&&("cell"===this._type||"complex"===this._type)?(t=this._selectedCells.find(function(t){var e=t.row,t=t.column;return e.id==i&&t.id==n}))&&this._removeCell(t.row,t.column):i?this._selectedCells.filter(function(t){return t.row.id==i}).forEach(function(t){var e=t.row,t=t.column;o._removeCell(e,t)}):this._removeCells(),L.awaitRedraw().then(function(){o._grid.paint()})},n.prototype.getCell=function(){return this._selectedCell},n.prototype.getCells=function(){return this._selectedCells},n.prototype.disable=function(){this.removeCell(),this.config.disabled=!0,this._grid.paint()},n.prototype.enable=function(){this.config.disabled=!1,this._grid.paint()},n.prototype.toHTML=function(){var o=this;if(!this._isUnselected()){if(this._multiselection){var r=[],s={};return this._selectedCells.forEach(function(t,e,i){var n=o._normalizeCell(t);r.push(o._toHTML(n.row,n.column,e===i.length-1||"cell"===o._type||"complex"===o._type,s[t.row.id])),s[t.row.id]=!0}),r}var t=this._normalizeCell(this._selectedCell);return this._toHTML(t.row,t.column,!0)}},n.prototype._setCell=function(t,e){t&&e&&A.isDefined(t.id)&&A.isDefined(e.id)&&this.events.fire(j.GridSelectionEvents.beforeSelect,[t,e])&&(this._selectedCell={row:t,column:e},this._multiselection?this._selectedCells.push(this._selectedCell):this._selectedCells=[this._selectedCell],this.events.fire(j.GridSelectionEvents.afterSelect,[t,e]))},n.prototype._removeCell=function(e,i,t){if(void 0===t&&(t=!1),!(e&&i&&A.isDefined(e.id)&&A.isDefined(i.id)))return!1;if(!t&&!this.events.fire(j.GridSelectionEvents.beforeUnSelect,[e,i]))return!1;var n=this._selectedCells.findIndex(function(t){return t.row.id===e.id&&t.column.id===i.id});return this._selectedCells.splice(n,1),this._selectedCell&&i.id===this._selectedCell.column.id&&e.id===this._selectedCell.row.id&&(this._selectedCell=null===(n=this._selectedCells)||void 0===n?void 0:n[(null===(n=this._selectedCells)||void 0===n?void 0:n.length)-1]),t||this.events.fire(j.GridSelectionEvents.afterUnSelect,[e,i]),!0},n.prototype._removeCells=function(e){var i=this;void 0===e&&(e=!1),d(this._selectedCells).forEach(function(t){i._removeCell(null==t?void 0:t.row,null==t?void 0:t.column,e)})},n.prototype._init=function(){var r=this;this._grid.events.on(j.GridEvents.cellClick,function(t,e,i){r.setCell(t,e,i.ctrlKey||i.metaKey,i.shiftKey)}),this._grid.data.events.on(s.DataEvents.beforeRemove,function(t){var e,i,n,o;t&&r._selectedCell&&r._selectedCell.row&&r._selectedCell.row.id===t.id&&(o=void 0,i=r._grid.data.getIndex(t.id),o=r._grid.data instanceof s.TreeCollection?(null===(e=(n=r._grid.data.getItems(t.parent))[i+1])||void 0===e?void 0:e.id)||(null===(n=n[i-1])||void 0===n?void 0:n.id)||t.parent:r._grid.data.getId(i+1)||r._grid.data.getId(i-1),A.isId(o)&&(r.setCell(o),r._grid.paint()))}),this._grid.data.events.on(s.DataEvents.removeAll,function(){r._removeCells()}),this._grid.data.events.on(s.DataEvents.load,function(){r._removeCells(!0)})},n.prototype._toHTML=function(e,t,i,n){void 0===i&&(i=!1),void 0===n&&(n=!1);var o=this._grid.data.getRawData(0,-1,null,2);if(-1===A.findIndex(o,function(t){return t.id==e.id}))return null;var r,s,a,l,c,u,d,h=this._grid.config,f=h.topSplit,p=h.bottomSplit,g=h.$totalWidth,v=h.$totalHeight,_=h.columns,m=null==_?void 0:_.filter(function(t){return!t.hidden}),y={left:$.getCurrFixedCols(this._grid.config,j.Split.left),right:$.getCurrFixedCols(this._grid.config,j.Split.right)},b=this._grid.data.getLength(),w={top:f?this._grid.data.getRawData(0,f):[],bottom:p?this._grid.data.getRawData(b-p,b):[]},x={left:null===(M=null==y?void 0:y.left)||void 0===M?void 0:M.map(function(t){return t.id}),right:null===(T=null==y?void 0:y.right)||void 0===T?void 0:T.map(function(t){return t.id})},E={top:w.top.map(function(t){return t.id}),bottom:w.bottom.map(function(t){return t.id})},C=null===(H=null==y?void 0:y.left)||void 0===H?void 0:H.reduce(function(t,e){return t+(e.$width||0)},0),S=null===(F=null==y?void 0:y.right)||void 0===F?void 0:F.reduce(function(t,e){return t+(e.$width||0)},0),k=w.top.reduce(function(t,e){return t+e.$height},0),I=w.bottom.reduce(function(t,e){return t+e.$height},0),O=this._grid.getCellRect(e.id,t.id),P=this._grid.getScrollState(),D=O.y,V=null===(R=E.top)||void 0===R?void 0:R.includes(e.id),_=null===(h=x.left)||void 0===h?void 0:h.includes(t.id),b=y.left.length&&C>O.x-P.x,M=w.top.length&&k>O.y-P.y,T=O.width,H=O.height-1,F=null,R=null,h=b?C+P.x:O.x;b&&(T-=(_?N.getTotalWidth(y.left.slice(0,m.indexOf(t))):C)-(O.x-P.x)),M&&(H-=(V?N.getTotalHeight(w.top.slice(0,o.indexOf(e))):k)-(O.y-P.y)-1,D+=O.height-H),V&&(D=O.y+P.y,(r=this._grid.getSpan(e.id,t.id))&&1<r.rowspan?(l=o.indexOf(e),F=N.getTotalHeight(w.top.slice(l,l+r.rowspan))):H=f===E.top.indexOf(e.id)+1?O.height-1:O.height),_&&(h=O.x+P.x,(r=this._grid.getSpan(e.id,t.id))&&1<r.colspan?(l=null==m?void 0:m.indexOf(t),R=N.getTotalWidth(y.left.slice(l,l+r.colspan))):T=y.left.length===x.left.indexOf(t.id)+1?O.width-1:O.width),(null!==(k=y.right)&&void 0!==k&&k.length||p)&&(r=this._grid.getSpan(e.id,t.id),f=this._getReverseScrollState(P),null!==(k=y.right)&&void 0!==k&&k.length&&(s=(null===(k=x.right)||void 0===k?void 0:k.includes(t.id))||r&&m.indexOf(t)+(r.colspan||1)>m.length-y.right.length,(a=g-S<f.x+O.x+O.width)&&!s&&(T-=f.x+O.x+O.width-g+S),s&&(T=!r||null!==(k=x.right)&&void 0!==k&&k.includes(r.column)?(c=null!==(c=x.right)&&void 0!==c&&c.indexOf(t.id)?0:1,h=O.x-f.x+c,O.width-c):(l=m.length-m.indexOf(t)-(r.colspan||1),S=g-S,h=O.x+f.x<1+S?O.x:S-f.x+1,R=N.getTotalWidth(l?y.right.slice(0,-l):y.right)-1,O.width-f.x))),p&&(u=E.bottom.includes(e.id)||r&&o.indexOf(e)+(r.rowspan||1)>o.length-p,(d=v-I<f.y+O.y+O.height)&&!u&&(H-=f.y+O.y+O.height-v+I),u&&(H=r&&!E.bottom.includes(r.row)?(I=v-I,c=(l=o.length-o.indexOf(e)-(r.rowspan||1))?0:1,D=O.y+f.y<I?O.y:I-f.y,F=N.getTotalHeight(l?w.bottom.slice(0,-l):w.bottom)-c,O.height-f.y-c):(D=O.y-f.y,O.height-(p===E.bottom.indexOf(e.id)+1?1:0)))));E=null;"row"!==this._type&&"complex"!==this._type||n||(E=L.el(".dhx_grid-selected-row",{style:{width:null!==(n=y.left)&&void 0!==n&&n.length?g-P.x:g,height:H,minHeight:F,minWidth:R,display:H<0&&!F?"none":"flex",top:D,left:null!==(y=y.left)&&void 0!==y&&y.length?P.x:0,position:"absolute"}}));P=null;return"cell"!==this._type&&"complex"!==this._type||!i||(P=L.el(".dhx_grid-selected-cell",{style:{width:T,height:H,top:D,minHeight:F,minWidth:R,left:h,position:"absolute",display:T<0&&!R||H<0&&!F?"none":"flex",borderLeft:b&&!_?"none":null,borderRight:a&&!s?"none":null,borderTop:M&&!V?"none":null,borderBottom:d&&!u?"none":null}})),L.el(".dhx_grid-selection",{style:{zIndex:20}},[E,P])},n.prototype._isUnselected=function(){return!this._selectedCell||!this._selectedCell.row||!this._selectedCell.column||0===this._selectedCells.length},n.prototype._findIndex=function(i){var n=this;void 0===i&&(i=this._selectedCell);var o=-1;return this._selectedCells.some(function(t,e){if("cell"===n._type||"complex"===n._type){if(A.compare(t.row,i.row)&&A.compare(t.column,i.column))return o=e,!0}else if("row"===n._type&&A.compare(t.row,i.row))return o=e,!0}),o},n.prototype._setBrowserFocus=function(){var t,e,i=this._grid.getRootView().data.getRootNode();!i||(t=i.querySelector(".dhx_grid_data"))&&this._selectedCell&&this._selectedCell.row&&this._selectedCell.column&&(e=t.querySelector('[data-dhx-id="'+this._selectedCell.row.id+'"]'),t=this._grid.getSpan(this._selectedCell.row.id,this._selectedCell.column.id),!e||(e=(i=t?i.querySelector(".dhx_span-spans"):null)?i.querySelector('[data-dhx-col-id="'+t.column+'"][data-dhx-id="'+t.row+'"]'):e.querySelector('[data-dhx-col-id="'+this._selectedCell.column.id+'"]'))&&(e.tabIndex=0,e.focus({preventScroll:!0})))},n.prototype._getReverseScrollState=function(t){var e=this._grid.config.$headerLevel*this._grid.config.headerRowHeight,i=this._grid.config.$footerLevel*this._grid.config.footerRowHeight,n=r.calcScrollBarWidth(this._grid.config,!(null===(o=this._grid.scrollView)||void 0===o||!o.config.enable)),o=this._grid.config.$totalWidth-this._grid.config.$width+$.BORDERS+n.y,n=this._grid.config.$totalHeight-this._grid.config.$height+e+i+$.BORDERS+n.x;return{x:0<o?o-t.x:0,y:0<n?n-t.y:0}},n.prototype._normalizeCell=function(t){var e=t.row,t=t.column,i=this._grid.getSpan(e.id,t.id);return{row:i&&e.id!==i.row?this._grid.data.getItem(i.row):e,column:i&&t.id!==i.column?this._grid.config.columns.find(function(t){return t.id===i.column}):t}},n);function n(t,e,i,n){this._grid=t,this.config=e,this._gridId=n,this._selectedCell,this._selectedCells=[],this._type=["cell","row","complex"].includes(this._grid.config.selection)&&this._grid.config.selection||"complex",this._multiselection=!!t.config.multiselection,this.events=i||new o.EventSystem(this),this._init()}e.Selection=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o,r=i(9),s=i(133),a=i(134),l=i(135),c=i(145),u=i(146),d=i(153),h={cell:{row:null,col:null},editor:null,gridId:null};e.getEditor=function(t,e,i){var n="boolean"===e.type?"checkbox":i.$editable.editorType;if(void 0===n&&(n=i.autoHeight?"textarea":"input"),h.cell.row===t.id&&h.cell.col===e.id&&h.gridId===i.gridId&&i.$editable.editor)return h.editor;switch("checkbox"!==n&&(h={cell:{row:t.id,col:e.id},editor:h.editor,gridId:i.gridId}),o||(o=function(){h={cell:{row:null,col:null},editor:null,gridId:null}},i.events.on(r.GridEvents.afterEditEnd,o)),n){case"input":return h.editor=new s.InputEditor(t,e,i);case"textarea":return h.editor=new d.TextAreaEditor(t,e,i);case"select":return h.editor=new a.SelectEditor(t,e,i);case"datePicker":return h.editor=new l.DateEditor(t,e,i);case"checkbox":return new c.CheckboxEditor(t,e,i);case"multiselect":case"combobox":return h.editor=new u.ComboboxEditor(t,e,i);default:return h.editor=new s.InputEditor(t,e,i)}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(9),r=i(1),i=(s.prototype.endEdit=function(t){var e;t||(e=this._input.value),this._config.events.fire(o.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(this._input.removeEventListener("blur",this._handlers.onBlur),this._input.removeEventListener("change",this._handlers.onChange),"string"!==this._cell.col.type&&r.isNumeric(e)&&(e=parseFloat(e)),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.events.fire(o.GridEvents.afterEditEnd,[e,this._cell.row,this._cell.col])):this._input.focus()},s.prototype.toHTML=function(t){var e=this._cell.row[this._cell.col.id];return this._input&&(e=this._input.value),this._config.$editable.editor=this,n.el("input.dhx_cell-editor.dhx_cell-editor__input",{_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor",value:null!=t?t:e})},s.prototype._initHandlers=function(){var e=this;this._handlers={onBlur:function(){e.endEdit()},onChange:function(){e.endEdit()},didInsert:function(t){t=t.el;(e._input=t).focus(),t.setSelectionRange(0,t.value.length),t.addEventListener("change",e._handlers.onChange),t.addEventListener("blur",e._handlers.onBlur)}}},s);function s(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}e.InputEditor=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(9),r=i(18),i=(s.prototype.endEdit=function(t){var e;t||(e=this._input.value),this._config.events.fire(o.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(this._input.removeEventListener("blur",this._handlers.onBlur),this._input.removeEventListener("keydown",this._handlers.onkeydown),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.events.fire(o.GridEvents.afterEditEnd,[e,this._cell.row,this._cell.col])):this._input.focus()},s.prototype.toHTML=function(){var t=r.getEditorOptions(this._cell.col,this._cell.row).map(function(t){return"string"==typeof t?{id:""+t,value:t}:t})||[],e=this._cell.row[this._cell.col.id];this._input&&(e=this._input.options[this._input.selectedIndex].value);t=t.map(function(t){return n.el("option",{selected:t.id.toString()===(null==e?void 0:e.toString()),value:t.id},t.value)});return this._config.$editable.editor=this,n.el("select.dhx_cell-editor.dhx_cell-editor__select",{_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor"},t)},s.prototype._initHandlers=function(){var e=this;this._handlers={onBlur:function(){e.endEdit()},onkeydown:function(t){"Escape"===t.key&&e.endEdit()},didInsert:function(t){t=t.el;(e._input=t).focus(),t.addEventListener("blur",e._handlers.onBlur),t.addEventListener("keydown",e._handlers.onkeydown)}}},s);function s(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}e.SelectEditor=i},function(t,e,i){"use strict";var n=this&&this.__rest||function(t,e){var i={};for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(i[o[n]]=t[o[n]]);return i};Object.defineProperty(e,"__esModule",{value:!0});var s=i(0),a=i(9),o=i(33),l=i(16),r=i(12),i=(c.prototype.endEdit=function(t,e){var i=this;if(this._handlers){var n=this._calendar.config.dateFormat,o=this._cell.row[this._cell.col.id],r=this._input.value;if(!t){if(o instanceof Date||e)return this._value=this._calendar.getValue(),this._input.value=this._value,void this._popup.hide();!l.stringToDate(r,n,!0)&&r||(!o||r.length!==o.length)&&o&&r||(this._value=r)}this._config.events.fire(a.GridEvents.beforeEditEnd,[this._value,this._cell.row,this._cell.col])?(this._input.removeEventListener("focus",this._handlers.onFocus),this._input.removeEventListener("change",this._handlers.onChange),document.removeEventListener("mousedown",this._handlers.onOuterClick),s.awaitRedraw().then(function(){i._popup.destructor(),i._calendar.destructor()}),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.events.fire(a.GridEvents.afterEditEnd,[this._value,this._cell.row,this._cell.col])):this._input.focus()}},c.prototype.toHTML=function(){var t=this._cell.row[this._cell.col.id];return this._config.$editable.editor=this,document.addEventListener("mousedown",this._handlers.onOuterClick),s.el("input.dhx_cell-editor.dhx_cell-editor__input.dhx_cell-editor__datepicker",{_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor",value:t})},c.prototype._cleanConfig=function(t){var e=t.editorConfig||{},e=(e.value,e.range,e.dateFormat,n(e,["value","range","dateFormat"]));return e.dateFormat=t.format,e},c.prototype._initHandlers=function(){var i=this;this._handlers={onFocus:function(){s.awaitRedraw().then(function(){i._popup.show(i._input,{centering:!0,mode:"bottom",theme:i._input})})},onChange:function(){i.endEdit()},onOuterClick:function(t){var e;t.target instanceof Node&&(e=i._input&&i._input.contains(t.target),t=i._popup&&i._popup.getRootNode()&&i._popup.getRootNode().contains(t.target),e||t||i._popup.hide())},didInsert:function(t){t=t.el;i._input=t,i._input.addEventListener("focus",i._handlers.onFocus),i._input.addEventListener("change",i._handlers.onChange),t.focus(),t.setSelectionRange(t.value.length,t.value.length)}}},c);function c(t,e,i){var n=this;this._config=i,this._cell={row:t,col:e},this._calendar=new o.Calendar(null,this._cleanConfig(e));t=this._cell.row[this._cell.col.id],e=this._calendar.config.dateFormat;(l.stringToDate(t,e,!0)||t instanceof Date)&&(this._calendar.setValue(t),this._value=this._calendar.getValue(),this._cell.row[this._cell.col.id]=this._value),this._popup=new r.Popup,this._popup.attach(this._calendar),this._calendar.events.on(o.CalendarEvents.change,function(){n.endEdit(!1,!0)}),this._popup.events.on(r.PopupEvents.afterHide,function(){n.endEdit()}),this._initHandlers()}e.DateEditor=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),y=this&&this.__assign||function(){return(y=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},b=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(1),w=i(0),a=i(2),l=i(5),c=i(45),u=i(144),x=i(16),d=i(73),h=i(3),o=(r=l.View,o(f,r),f.prototype.setValue=function(t){if(!t||t instanceof Array&&0===t.length)return!1;var e=t instanceof Array?t[0]:t,i=x.DateHelper.toDateObject(e,this.config.dateFormat),e=x.DateHelper.copy(this._getSelected());return!!this.events.fire(d.CalendarEvents.beforeChange,[i,e,!1])&&(this._selected=[],this._setSelected(t),this._timepicker&&(this._timepicker.setValue(i),this._time=this._timepicker.getValue()),this.showDate(this._getSelected()),this.events.fire(d.CalendarEvents.change,[i,e,!1]),this.paint(),!0)},f.prototype.getValue=function(t){var e=this;return void 0===t&&(t=!1),this._selected[0]?this.config.range?t?this._selected.map(function(t){return x.DateHelper.copy(t)}):this._selected.map(function(t){return x.getFormattedDate(e.config.dateFormat,t)}):t?x.DateHelper.copy(this._selected[0]):x.getFormattedDate(this.config.dateFormat,this._selected[0]):""},f.prototype.getCurrentMode=function(){return this._currentViewMode},f.prototype.showDate=function(t,e){t&&(this._currentDate=x.DateHelper.copy(t)),e&&(this._currentViewMode=e),this.paint()},f.prototype.destructor=function(){this._linkedCalendar&&this._unlink(),this._timepicker&&this._timepicker.destructor(),this.events&&this.events.clear(),this.config=this.events=null,this._uid=this._selected=this._currentDate=this._currentViewMode=this._handlers=this._timepicker=this._time=null,this.unmount()},f.prototype.clear=function(){var t=this.getValue(!0);this.events.fire(d.CalendarEvents.beforeChange,["",t,!1])&&(this.config.timePicker&&(this._timepicker.clear(),this._time=this._timepicker.getValue()),this._selected=[],this.showDate(null,this.config.mode),this.events.fire(d.CalendarEvents.change,[this.getValue(!0),t,!1]))},f.prototype.link=function(t){var e=this;this._linkedCalendar&&this._unlink(),this._linkedCalendar=t;var i=this.getValue(!0),n=t.getValue(!0),o=i&&x.DateHelper.dayStart(i),r=n&&x.DateHelper.dayStart(n);this.config.$rangeMark&&this._linkedCalendar.config.$rangeMark||(this.config.$rangeMark=this._linkedCalendar.config.$rangeMark=function(t){if(o&&r)return o<=t&&t<=r&&function(t){if(x.DateHelper.isSameDay(r,o))return null;var e="dhx_calendar-day--in-range";return x.DateHelper.isSameDay(t,o)&&(e+=" dhx_calendar-day--first-date"),x.DateHelper.isSameDay(t,r)&&(e+=" dhx_calendar-day--last-date"),e}(t)}),this.config.disabledDates&&this._linkedCalendar.config.disabledDates||(this.config.disabledDates=function(t){if(r)return r<t},this._linkedCalendar.config.disabledDates=function(t){if(o)return t<o}),this.config.thisMonthOnly=!0,t.config.thisMonthOnly=!0,this.events.on(d.CalendarEvents.change,function(t){o=t?x.DateHelper.dayStart(t):null,e._linkedCalendar.paint()},"link"),this._linkedCalendar.events.on(d.CalendarEvents.change,function(t){r=t?x.DateHelper.dayStart(t):null,e.paint()},"link"),this._linkedCalendar.paint(),this.paint()},f.prototype._unlink=function(){this._linkedCalendar&&(this.config.$rangeMark=this._linkedCalendar.config.$rangeMark=null,this.config.disabledDates=this._linkedCalendar.config.disabledDates=null,this.events.detach(d.CalendarEvents.change,"link"),this._linkedCalendar.events.detach(d.CalendarEvents.change,"link"),this._linkedCalendar.paint(),this._linkedCalendar=null)},f.prototype._setSelected=function(t){var i,n=this,e=t instanceof Array?t[0]:t,e=x.DateHelper.toDateObject(e,this.config.dateFormat);t instanceof Array&&this.config.range?(i=[],t.forEach(function(t,e){e<2&&i.push(x.DateHelper.toDateObject(t,n.config.dateFormat))}),2===i.length&&i[0]<i[1]?i.forEach(function(t){return n._selected.push(t)}):this._selected[0]=i[0]):this._selected[0]=e},f.prototype._getSelected=function(){return this._selected[this._selected.length-1]},f.prototype._draw=function(){switch(this._currentViewMode){case"calendar":return this.events.fire(d.CalendarEvents.modeChange,["calendar"]),this._drawCalendar();case"month":return this.events.fire(d.CalendarEvents.modeChange,["month"]),this._drawMonthSelector();case"year":return this.events.fire(d.CalendarEvents.modeChange,["year"]),this._drawYearSelector();case"timepicker":return this.events.fire(d.CalendarEvents.modeChange,["timepicker"]),this._drawTimepicker()}},f.prototype._initHandlers=function(){function n(t){void 0===t&&(t=!1);var e=0;switch(o._currentViewMode){case"calendar":e=t?-7:7;break;case"month":e=t?-4:4;break;case"year":e=t?-4:4}return e}var o=this,r={Up:"ArrowUp",Down:"ArrowDown",Right:"ArrowRight",Left:"ArrowLeft",Esc:"Escape",Spacebar:"Space"};this._handlers={onkeydown:{".dhx_calendar-year, .dhx_calendar-month, .dhx_calendar-day":function(t,e){switch(48<=(i=t).which&&i.which<=57||65<=i.which&&i.which<=90?String.fromCharCode(i.which):(i=32===i.which?i.code:i.key,h.isIE()&&r[i]||i)){case"Enter":o._selectDate(t,e);break;case"ArrowLeft":o._moveBrowseFocus(t,e,-1);break;case"ArrowRight":o._moveBrowseFocus(t,e,1);break;case"ArrowUp":o._moveBrowseFocus(t,e,n(!0));break;case"ArrowDown":o._moveBrowseFocus(t,e,n())}var i}},onclick:{".dhx_calendar-year, .dhx_calendar-month, .dhx_calendar-day":function(t,e){o._selectDate(t,e)},".dhx_calendar-action__cancel":function(){o.showDate(o._getSelected(),"calendar"),o.events.fire(d.CalendarEvents.cancelClick,[])},".dhx_calendar-action__show-month":function(){return o.showDate(null,"month")},".dhx_calendar-action__show-year":function(){return o.showDate(null,"year")},".dhx_calendar-action__next":function(){var t;switch(o._currentViewMode){case"calendar":t=x.DateHelper.addMonth(o._currentDate,1);break;case"month":t=x.DateHelper.addYear(o._currentDate,1);break;case"year":t=x.DateHelper.addYear(o._currentDate,12)}o.showDate(t)},".dhx_calendar-action__prev":function(){var t;switch(o._currentViewMode){case"calendar":t=x.DateHelper.addMonth(o._currentDate,-1);break;case"month":t=x.DateHelper.addYear(o._currentDate,-1);break;case"year":t=x.DateHelper.addYear(o._currentDate,-12)}o.showDate(t)},".dhx_calendar-action__show-timepicker":function(){o._currentViewMode="timepicker",o.paint()}},onmouseover:{".dhx_calendar-day":function(t,e){o.events.fire(d.CalendarEvents.dateMouseOver,[new Date(e.attrs._date),t]),o.events.fire(d.CalendarEvents.dateHover,[new Date(e.attrs._date),t])}}}},f.prototype._getData=function(r){var t,s=this;switch(this._isSelectedInCurrentRange=!1,this.config.weekStart){case"saturday":t=-1;break;case"monday":t=1;break;default:t=0}for(var e=[],i=6,a=x.DateHelper.weekStart(x.DateHelper.monthStart(r),t);i--;){for(var n=x.DateHelper.getWeekNumber(a),l=0,o=7,c=[],u=function(){var t,e=x.DateHelper.isWeekEnd(a),i=r.getMonth()===a.getMonth(),n=d.config.disabledDates&&d.config.disabledDates(a),o=[];d.config.range&&d._selected[0]&&d._selected[1]&&(t=function(){if(s._selected[0]&&s._selected[1]){var t=x.DateHelper.dayStart(s._selected[0]),e=x.DateHelper.dayStart(s._selected[1]);return t<=a&&a<=e&&(x.DateHelper.isSameDay(s._selected[0],s._selected[1])?null:"dhx_calendar-day--in-range")}},d.config.$rangeMark=t),e&&o.push("dhx_calendar-day--weekend"),i||(d.config.thisMonthOnly?(l++,o.push("dhx_calendar-day--hidden")):o.push("dhx_calendar-day--muffled")),!d.config.mark||(i=d.config.mark(a))&&o.push(i),d.config.$rangeMark&&(t=d.config.$rangeMark(a))&&o.push(t),n&&(e?o.push("dhx_calendar-day--weekend-disabled"):o.push("dhx_calendar-day--disabled")),d._selected.forEach(function(t,e){t&&x.DateHelper.isSameDay(t,a)&&(s._isSelectedInCurrentRange=!0,t="dhx_calendar-day--selected",s.config.range&&(t+=" dhx_calendar-day--selected-"+(0===e?"first ":"last")),o.push(t))}),c.push({date:a,day:a.getDate(),css:o.join(" ")}),a=x.DateHelper.addDay(a)},d=this;o--;)u();e.push({weekNumber:n,days:c,disabledWeekNumber:7===l})}return e},f.prototype._drawCalendar=function(){var t,i=this,e=this._currentDate,n=this.config,o=n.weekStart,r=n.thisMonthOnly,s=n.css,a=n.timePicker,l=n.width;switch(o){case"saturday":t=b([x.locale.daysShort[6]],x.locale.daysShort.slice(0,-1));break;case"monday":t=b(x.locale.daysShort.slice(1),[x.locale.daysShort[0]]);break;default:t=x.locale.daysShort}for(var c,n=t.map(function(t){return w.el(".dhx_calendar-weekday",t)}),o=this._getData(e),u=!0,d=this._getSelected(),h=function(t){var e={role:"button",tabindex:-1,"aria-pressed":"false"};return t&&(i._isSelectedInCurrentRange?(t=t.date)&&d&&t.getTime()===d.getTime()&&(e.tabindex=0,e["aria-pressed"]="true"):u&&(e.tabindex=0),u=!1),e},f=[],p=[],g=0,v=o;g<v.length;g++){var _=v[g],m=_.days.map(function(t){return w.el("div.dhx_calendar-day",y({class:t.css,_date:t.date},h(t)),t.day)});!this.config.weekNumbers||_.disabledWeekNumber&&r||p.push(w.el("div",{class:"dhx_calendar-week-number"},_.weekNumber)),f=f.concat(m)}this.config.weekNumbers&&(c=w.el(".dhx_calendar__week-numbers",p));s="dhx_calendar dhx_widget"+(s?" "+s:"")+(a?" dhx_calendar--with_timepicker":"")+(this.config.weekNumbers?" dhx_calendar--with_week-numbers":"");return w.el("div",y({class:s,style:{width:this.config.weekNumbers?parseInt(l.toString())+48+"px":l}},this._handlers),[w.el(".dhx_calendar__wrapper",[this._drawHeader(w.el("button.dhx_calendar-action__show-month.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--circle",{"aria-live":"polite",type:"button"},x.locale.months[e.getMonth()]+" "+e.getFullYear())),this.config.weekNumbers&&w.el(".dhx_calendar__dates-wrapper",[w.el(".dhx_calendar__weekdays",n),w.el(".dhx_calendar__days",f),c]),!this.config.weekNumbers&&w.el(".dhx_calendar__weekdays",n),!this.config.weekNumbers&&w.el(".dhx_calendar__days",f),a?w.el(".dhx_timepicker__actions",[w.el("button.dhx_calendar__timepicker-button.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--width_full.dhx_button--circle.dhx_calendar-action__show-timepicker",{type:"button"},[w.el("span.dhx_button__icon.dxi.dxi-clock-outline"),w.el("span.dhx_button__text",this._time)])]):null])])},f.prototype._drawMonthSelector=function(){function o(t){return u&&e===t}var t=this._currentDate,e=t.getMonth(),i=this._getSelected()?this._getSelected().getFullYear():null,n=this.config,r=n.css,s=n.timePicker,a=n.weekNumbers,l=n.width,n=n.mode,s="dhx_calendar dhx_widget"+(r?" "+r:"")+(s?" dhx_calendar--with_timepicker":"")+(a?" dhx_calendar--with_week-numbers":""),c=!0,u=i===t.getFullYear();return w.el("div",y({class:s,style:{width:a?parseInt(l.toString())+48+"px":l}},this._handlers),[w.el(".dhx_calendar__wrapper",[this._drawHeader(w.el("button.dhx_calendar-action__show-year.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--circle",{"aria-live":"polite",type:"button"},t.getFullYear())),w.el(".dhx_calendar__months",x.locale.monthsShort.map(function(t,e){return w.el("div",y(y({class:"dhx_calendar-month"+(o(e)?" dhx_calendar-month--selected":"")},(i=e,n={role:"button",tabindex:-1,"aria-pressed":"false"},t&&(u?o(i)&&(n.tabindex=0,n["aria-pressed"]="true"):c&&(n.tabindex=0),c=!1),n)),{_date:e}),t);var i,n})),"month"!==n?w.el(".dhx_calendar__actions",[w.el("button.dhx_button.dhx_button--color_primary.dhx_button--view_link.dhx_button--size_small.dhx_button--width_full.dhx_button--circle.dhx_calendar-action__cancel",{type:"button"},x.locale.cancel)]):null])])},f.prototype._drawYearSelector=function(){function n(t){return e._getSelected()&&t===e._getSelected().getFullYear()}var e=this,t=this._currentDate,i=x.DateHelper.getTwelweYears(t),o=this.config,r=o.css,s=o.timePicker,a=o.weekNumbers,t=o.width,o=o.mode,s="dhx_calendar dhx_widget"+(r?" "+r:"")+(s?" dhx_calendar--with_timepicker":"")+(a?" dhx_calendar--with_week-numbers":""),l=!0,c=this._getSelected()&&i.includes(this._getSelected().getFullYear());return w.el("div",y({class:s,style:{width:a?parseInt(t.toString())+48+"px":t}},this._handlers),[w.el(".dhx_calendar__wrapper",[this._drawHeader(w.el("button.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--circle",{"aria-live":"polite",type:"button"},i[0]+"-"+i[i.length-1])),w.el(".dhx_calendar__years",i.map(function(t){return w.el("div",y({class:"dhx_calendar-year"+(n(t)?" dhx_calendar-year--selected":""),_date:t},(i={role:"button",tabindex:-1,"aria-pressed":"false"},(e=t)&&(c?n(e)&&(i.tabindex=0,i["aria-pressed"]="true"):l&&(i.tabindex=0),l=!1),i)),t);var e,i})),"year"!==o&&"month"!==o?w.el(".dhx_calendar__actions",[w.el("button.dhx_button.dhx_button--color_primary.dhx_button--view_link.dhx_button--size_small.dhx_button--width_full.dhx_button--circle.dhx_calendar-action__cancel",{type:"button"},x.locale.cancel)]):null])])},f.prototype._drawHeader=function(t){return w.el(".dhx_calendar__navigation",[w.el("button.dhx_calendar-navigation__button.dhx_calendar-action__prev"+u.linkButtonClasses+".dhx_button--icon.dhx_button--circle",{"aria-label":"prev",type:"button"},[w.el(".dhx_button__icon.dxi.dxi-chevron-left")]),t,w.el("button.dhx_calendar-navigation__button.dhx_calendar-action__next"+u.linkButtonClasses+".dhx_button--icon.dhx_button--circle",{"aria-label":"next",type:"button"},[w.el(".dhx_button__icon.dxi.dxi-chevron-right")])])},f.prototype._drawTimepicker=function(){var t=this.config,e=t.css,i=t.weekNumbers,t=t.width;return w.el(".dhx_widget.dhx-calendar",{class:e?" "+e:"",style:{width:i?parseInt(t.toString())+48+"px":t}},[w.inject(this._timepicker.getRootView())])},f.prototype._selectDate=function(t,e){var i=e.attrs._date,n=x.DateHelper.copy(this._getSelected());switch(this._currentViewMode){case"calendar":var o=this.config.timePicker?x.DateHelper.mergeHoursAndMinutes(i,this._getSelected()||this._currentDate):i;if(!this.events.fire(d.CalendarEvents.beforeChange,[o,n,!0]))return;this.config.range&&1===this._selected.length&&this._selected[0]<o?this._selected.push(o):(this._selected=[],this._selected[0]=o),e.el.blur(),this.showDate(this._getSelected()),this.events.fire(d.CalendarEvents.change,[i,n,!0]);break;case"month":if("month"!==this.config.mode)x.DateHelper.setMonth(this._currentDate,i),this.showDate(null,"calendar"),this.events.fire(d.CalendarEvents.monthSelected,[i]);else{var r=x.DateHelper.fromYearAndMonth(this._currentDate.getFullYear()||this._getSelected().getFullYear(),i);if(!this.events.fire(d.CalendarEvents.beforeChange,[r,n,!0]))return;this._currentDate=r,this._selected[0]=r,this.events.fire(d.CalendarEvents.change,[this._getSelected(),n,!0]),this.events.fire(d.CalendarEvents.monthSelected,[i]),this.paint()}break;case"year":if("year"!==this.config.mode)x.DateHelper.setYear(this._currentDate,i),this.showDate(null,"month"),this.events.fire(d.CalendarEvents.yearSelected,[i]);else{r=x.DateHelper.fromYear(i);if(!this.events.fire(d.CalendarEvents.beforeChange,[r,n,!0]))return;this._currentDate=r,this._selected[0]=r,this.events.fire(d.CalendarEvents.change,[this._getSelected(),n,!0]),this.events.fire(d.CalendarEvents.yearSelected,[i]),this.paint()}}},f.prototype._moveBrowseFocus=function(t,e,i){e&&(!(i=e.parent.body[e.idx+i])||(i=i.el)&&(t.target.tabIndex=-1,i.tabIndex=0,i.focus({preventScroll:!0})))},f);function f(t,e){void 0===e&&(e={});var o=r.call(this,t,s.extend({weekStart:"sunday",thisMonthOnly:!1,dateFormat:window&&window.dhx&&window.dhx.dateFormat,width:"250px"},e))||this;switch(o._selected=[],o.events=new a.EventSystem,o.config.disabledDates=o.config.disabledDates||o.config.block,o.config.mode=o.config.mode||o.config.view,o.config.dateFormat||(o.config.timePicker?12===o.config.timeFormat?o.config.dateFormat="%d/%m/%y %h:%i %A":o.config.dateFormat="%d/%m/%y %H:%i":o.config.dateFormat="%d/%m/%y"),o.config.value&&o._setSelected(o.config.value),o.config.date?o._currentDate=x.DateHelper.toDateObject(o.config.date,o.config.dateFormat):o._getSelected()?o._currentDate=x.DateHelper.copy(o._getSelected()):o._currentDate=new Date,o.config.mode){case"month":o._currentViewMode="month";break;case"year":o._currentViewMode="year";break;case"timepicker":o._currentViewMode=o.config.timePicker?"timepicker":"calendar";break;default:o._currentViewMode="calendar"}o._initHandlers(),o.config.timePicker&&(o._timepicker=new c.Timepicker(null,{timeFormat:o.config.timeFormat,controls:!0}),e=o._getSelected()||new Date,o._timepicker.setValue(e),o._time=o._timepicker.getValue(),o._timepicker.events.on(c.TimepickerEvents.afterClose,function(){o._timepicker.setValue(o._time),o.showDate(null,"calendar")}),o._timepicker.events.on(c.TimepickerEvents.afterApply,function(){var t=o._timepicker.getValue(!0),e=t.hour,i=t.minute,n=t.AM,t=o._getSelected(),n=x.DateHelper.withHoursAndMinutes(o._getSelected()||new Date,e,i,n);o.events.fire(d.CalendarEvents.beforeChange,[n,t,!0])&&(o._selected[o._selected.length-1]=n,o.events.fire(d.CalendarEvents.change,[n,t,!0])),o._time=o._timepicker.getValue(),o.showDate(null,"calendar")}));return o.mount(t,w.create({render:function(){return o._draw()}})),o}e.Calendar=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(1),a=i(0),l=i(2),c=i(5),u=i(11),d=i(48),h=i(71),f=i(143),p=i(72),g=i(3);function v(t,e){return isNaN(t)?0:Math.min(e,Math.max(0,t))}var _,o=(_=c.View,o(m,_),m.prototype.getValue=function(t){return 12===this.config.timeFormat&&(this._time.hour=this._time.hour%12||12),this._getValue(this._time,t)},m.prototype.setValue=function(t){this._setValue(t),this._hoursSlider.setValue(this._time.hour),this._minutesSlider.setValue(this._time.minute),this._inputsView.paint()},m.prototype.clear=function(){24===this.config.timeFormat?this.setValue("00:00"):this.setValue("12:00AM")},m.prototype.destructor=function(){this._minutesSlider&&this._minutesSlider.destructor(),this._hoursSlider&&this._hoursSlider.destructor(),this.events&&this.events.clear(),this.layout&&this.layout.destructor(),this.config=this.events=null,this._handlers=this._time=this._inputsView=this._minutesSlider=this._hoursSlider=null,this.unmount()},m.prototype.getRootView=function(){return this.layout.getRootView()},m.prototype._getValue=function(t,e){var i=t.hour,n=t.minute,t=t.AM;if(e){e={hour:i,minute:n};return 12===this.config.timeFormat&&(e.AM=t),e}return(i<10?"0"+i:i)+":"+(n<10?"0"+n:n)+(12===this.config.timeFormat?t?"AM":"PM":"")},m.prototype._setValue=function(t){var e,i,n=0,o=0;return"number"==typeof t&&(t=new Date(t)),t instanceof Date?(n=t.getMinutes(),o=t.getHours()):Array.isArray(t)?(o=v(t[0],23),n=v(t[1],59),t[2]&&"pm"===t[2].toLowerCase()&&(e=!0)):"string"==typeof t?(o=v(+(i=t.match(/\d+/g))[0],23),n=v(+i[1],59),t.toLowerCase().includes("pm")&&(e=!0)):"object"==typeof t&&t.hasOwnProperty("hour")&&t.hasOwnProperty("minute")&&(o=t.hour,n=t.minute,e=!t.AM),e&&o<12&&(o+=12),12===this.config.timeFormat&&!f.isTimeCheck(t)&&12<=o&&(e=!0),this._time={hour:o,minute:n,AM:!e}},m.prototype._initUI=function(t){var e=this,i={gravity:!1,css:"dhx_widget dhx_timepicker "+(this.config.css||"")+(this.config.controls?" dhx_timepicker--with-controls":""),rows:[{id:"timepicker",css:"dhx_timepicker__inputs"},{id:"hour-slider",css:"dhx_timepicker__hour"},{id:"minute-slider",css:"dhx_timepicker__minute"}]};this.config.controls&&(i.rows.unshift({id:"close-action",css:"dhx_timepicker__close"}),i.rows.push({id:"save-action",css:"dhx_timepicker__save"}));var n=this.layout=new u.Layout(t,i),o=a.create({render:function(){return e._draw()}}),t=this._inputsView=c.toViewLike(o),i=this._minutesSlider=new d.Slider(null,{min:0,max:59,step:1,tooltip:!1,labelPosition:"top",label:h.default.minutes,value:this.config.value?this._time.minute:0}),o=this._hoursSlider=new d.Slider(null,{min:0,max:23,step:1,tooltip:!1,labelPosition:"top",label:h.default.hours,value:!this.config.value||12===this._time.hour&&this._time.AM?0:this._time.hour});n.getCell("timepicker").attach(t),n.getCell("hour-slider").attach(o),n.getCell("minute-slider").attach(i),this.config.controls&&(n.getCell("save-action").attach(function(){return a.el("button.dhx_timepicker__button-save.dhx_button.dhx_button--view_flat.dhx_button--color_primary.dhx_button--size_small.dhx_button--circle.dhx_button--width_full",{onclick:e._outerHandlers.save,type:"button"},h.default.save)}),n.getCell("close-action").attach(function(){return a.el("button.dhx_timepicker__button-close.dhx_button.dhx_button--view_link.dhx_button--size_medium.dhx_button--view_link.dhx_button--color_secondary.dhx_button--icon.dhx_button--circle",{_ref:"close",onclick:e._outerHandlers.close,type:"button","aria-label":"close timepicker"},[a.el("span.dhx_button__icon.dxi.dxi-close")])}))},m.prototype._initHandlers=function(){function e(t){var e=v(parseInt(t.value,10),59);t.value=e.toString(),n._minutesSlider.setValue(e)}function i(t){var e=v(parseInt(t.value,10),23);t.value=e.toString(),n._hoursSlider.setValue(e)}var n=this;this._handlers={onchange:{".dhx_timepicker-input--hour":function(t){return i(t.target)},".dhx_timepicker-input--minutes":function(t){return e(t.target)}},oninput:{".dhx_timepicker-input--hour":function(t){(g.isSafari()||g.isFirefox())&&i(t.target)},".dhx_timepicker-input--minutes":function(t){(g.isSafari()||g.isFirefox())&&e(t.target)}}},this._outerHandlers={close:function(){n.events.fire(p.TimepickerEvents.beforeClose,[n.getValue(n._isTimeObj())])&&(n.events.fire(p.TimepickerEvents.afterClose,[n.getValue(n._isTimeObj())]),n.events.fire(p.TimepickerEvents.close,[]))},save:function(){n.events.fire(p.TimepickerEvents.beforeApply,[n.getValue(n._isTimeObj())])&&(n.events.fire(p.TimepickerEvents.afterApply,[n.getValue(n._isTimeObj())]),n.events.fire(p.TimepickerEvents.apply,[n.getValue()]),n.events.fire(p.TimepickerEvents.save,[n._time]))}}},m.prototype._initEvents=function(){var i=this;this._hoursSlider.events.on(d.SliderEvents.beforeChange,function(t){if(!(t<i._hoursSlider.config.min||t>i._hoursSlider.config.max)){var e=r({},i._time);12===i.config.timeFormat?(e.AM=t<12,e.hour=t%12||12):e.hour=t;t=i._isTimeObj();return i.events.fire(p.TimepickerEvents.beforeChange,[i._getValue(e,t)])}}),this._hoursSlider.events.on(d.SliderEvents.change,function(t){t<i._hoursSlider.config.min||t>i._hoursSlider.config.max||(12===i.config.timeFormat?(i._time.AM=t<12,i._time.hour=t%12||12):i._time.hour=t,t=i._isTimeObj(),i.events.fire(p.TimepickerEvents.change,[i.getValue(t)]),i._inputsView.paint())}),this._minutesSlider.events.on(d.SliderEvents.beforeChange,function(t){if(!(t<i._minutesSlider.config.min||t>i._minutesSlider.config.max)){var e=r(r({},i._time),{minute:t}),t=i._isTimeObj();return i.events.fire(p.TimepickerEvents.beforeChange,[i._getValue(e,t)])}}),this._minutesSlider.events.on(d.SliderEvents.change,function(t){t<i._minutesSlider.config.min||t>i._minutesSlider.config.max||(i._time.minute=t,t=i._isTimeObj(),i.events.fire(p.TimepickerEvents.change,[i.getValue(t)]),i._inputsView.paint())})},m.prototype._draw=function(){return a.el(".dhx_timepicker-inputs",r({},this._handlers),[a.el("input.dhx_timepicker-input.dhx_timepicker-input--hour",{_key:"hour",_ref:"hour",value:1<this.getValue(!0).hour.toString().length?this.getValue(!0).hour:"0"+this.getValue(!0).hour,"aria-label":"hours"}),a.el("span.dhx_timepicker-delimer",":"),a.el("input.dhx_timepicker-input.dhx_timepicker-input--minutes",{_key:"minute",value:1<this.getValue(!0).minute.toString().length?this.getValue(!0).minute:"0"+this.getValue(!0).minute,"aria-label":"minutes"}),12===this.config.timeFormat?a.el(".dhx_timepicker-ampm",this._time.AM?"AM":"PM"):null])},m.prototype._isTimeObj=function(){var t;return"timeobject"===(null===(t=this.config.valueFormat)||void 0===t?void 0:t.toLowerCase())},m);function m(t,e){void 0===e&&(e={});e=_.call(this,t,s.extend({timeFormat:24,controls:!1,valueFormat:"string",actions:!1},e))||this;return e.events=new l.EventSystem(e),e._time={hour:0,minute:0,AM:!0},12===e.config.timeFormat&&(e._time.hour=12),e.config.controls=e.config.controls||e.config.actions,e.config.value&&e._setValue(e.config.value),e._initUI(t),e._initHandlers(),e._initEvents(),e}e.Timepicker=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getBlockRange=function(t,e,i){return void 0===i&&(i=!0),i?{min:t.left+window.pageXOffset,max:e.right+window.pageXOffset}:{min:t.top+window.pageYOffset,max:e.bottom+window.pageYOffset}},e.getMarginSize=function(t){return t&&("space"===t.type||"wide"===t.type)?12:0}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(46),a=i(140),o=(r=s.Layout,o(l,r),l.prototype._createCell=function(t){var e=t.rows||t.cols||t.views?(t.parent=this._root,new l(this,t)):new a.ProCell(this,t);return this._root._all[e.id]=e,t.init&&t.init(e,t),e},l);function l(t,e){return r.call(this,t,e)||this}e.ProLayout=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),h=this&&this.__assign||function(){return(h=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,f=i(1),p=i(0),s=i(21),i=i(68),o=(r=i.Cell,o(a,r),a.prototype._getFirstRootView=function(t){return void 0===t&&(t=this),t.getParent()&&t.getParent().getRootView()?t.getParent().getRootView():this._getFirstRootView(t.getParent())},a.prototype.toVDOM=function(t){if(null===this.config&&(this.config={}),!this.config.hidden){var e,i=this.config.$fieldset,n=this._calculateStyle(),o=f.isDefined(this.config.padding)?isNaN(Number(this.config.padding))?{padding:this.config.padding}:{padding:this.config.padding+"px"}:"",r=this.config.full||this.config.html?n:h(h({},n),o);this.config.html||(e=this._ui?((d=this._ui.getRootView()).render&&(d=p.inject(d)),d?[this.scrollView.render(d)]:d||null):t?this.scrollView.render([t]):t||null);var s=this.config.resizable&&!this._isLastCell()&&this._getNextCell()&&!this.config.collapsed?p.el(".dhx_layout-resizer."+(this._isXDirection()?"dhx_layout-resizer--x":"dhx_layout-resizer--y"),h(h({},this._resizerHandlers),{_ref:"resizer_"+this._uid}),[p.el("span.dhx_layout-resizer__icon",{class:"dxi "+(this._isXDirection()?"dxi-dots-vertical":"dxi-dots-horizontal")})]):null,a={};if(this.config.on)for(var l in this.config.on)a["on"+l]=this.config.on[l];var c="",u=this.config.cols||this.config.rows;if(this.config.type&&u)switch(this.config.type){case"line":c=" dhx_layout-line";break;case"wide":c=" dhx_layout-wide";break;case"space":c=" dhx_layout-space"}var d=p.el(".dhx_layout-cell-content",{_key:this._uid+"_html",style:o},[p.el(".dhx_layout-cell-inner_html",{".innerHTML":this.config.html})]),d=p.el("div",h(h(((t={_key:this._uid,_ref:this._uid})["aria-label"]=this.config.id?"tab-content-"+this.config.id:null,t["data-cell-id"]=null!==(u=this.config.id)&&void 0!==u?u:null,t),a),{class:this._getCss(!1)+(this.config.css?" "+this.config.css:"")+(this.config.collapsed?" dhx_layout-cell--collapsed":"")+(this.config.resizable?" dhx_layout-cell--resizable":"")+(this.config.type&&!this.config.full?c:""),style:i?n:r}),[i?p.el("fieldset.dhx_form-fieldset",{class:this.config.$disabled?" dhx_form-fieldset--disabled":"",style:o,disabled:this.config.$disabled},[p.el("legend.dhx_form-fieldset-legend",{class:"dhx_form-fieldset-legend--"+(this.config.labelAlignment||"left")},this.config.label),p.el(".dhx_layout-cell-content",{class:this._getCss(!1)},[e])]):this.config.full?[p.el("div",{tabindex:this.config.collapsable?"0":"-1",class:"dhx_layout-cell-header"+(this._isXDirection()?" dhx_layout-cell-header--col":" dhx_layout-cell-header--row")+(this.config.collapsable?" dhx_layout-cell-header--collapseble":"")+(this.config.collapsed?" dhx_layout-cell-header--collapsed":"")+(((this.getParent()||{}).config||{}).isAccordion?" dhx_layout-cell-header--accordion":""),style:{height:this.config.headerHeight},onclick:this._handlers.toggle,onkeydown:this._handlers.enterCollapse},[this.config.headerIcon&&p.el("span.dhx_layout-cell-header__icon",{class:this.config.headerIcon}),this.config.headerImage&&p.el(".dhx_layout-cell-header__image-wrapper",[p.el("img",{src:this.config.headerImage,class:"dhx_layout-cell-header__image"})]),this.config.header&&p.el("h3.dhx_layout-cell-header__title",this.config.header),this.config.collapsable?p.el("div.dhx_layout-cell-header__collapse-icon",{class:this._getCollapseIcon()}):p.el("div.dhx_layout-cell-header__collapse-icon",{class:"dxi dxi-empty"})]),this.config.collapsed?null:p.el("div",{style:h(h({},o),{height:"calc(100% - "+(this.config.headerHeight||37)+"px)"}),class:this._getCss(!0)+" dhx_layout-cell-content"+(this.config.type?c:"")},this.config.html?[p.el("div",{".innerHTML":this.config.html,class:"dhx_layout-cell dhx_layout-cell-inner_html"})]:e)]:!this.config.html||this.config.rows&&this.config.cols&&this.config.views?e:[this.config.collapsed?null:this.scrollView&&this.scrollView.config.enable?this.scrollView.render([d],this._uid):d],this._checkProgress()&&this._getProgressBar()]);return s?[d,s]:d}},a);function a(t,e){var i=r.call(this,t,e)||this;return i.scrollView=new s.ScrollView(function(){return i._getFirstRootView()}),i}e.ProCell=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l=this&&this.__assign||function(){return(l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r=i(1),c=i(0),s=i(2),a=i(13),u=i(5),d=i(12),h=i(70),f=i(3);function p(t,e,i){return t<e?e:i<t?i:t}var g,o=(g=u.View,o(v,g),v.prototype.disable=function(){this._disabled=!0,this.paint()},v.prototype.enable=function(){this._disabled=!1,this.paint()},v.prototype.isDisabled=function(){return this._disabled},v.prototype.focus=function(t){this.getRootView().refs[t?"extraRunner":"runner"].el.focus()},v.prototype.blur=function(){this.getRootView().refs[this._isExtraActive?"extraRunner":"runner"].el.blur()},v.prototype.getValue=function(){var t,e;return this.config.range?(t=this._getValue(this._currentPosition))<(e=this._getValue(this._extraCurrentPosition))?[t,e]:[e,t]:[this._getValue(this._currentPosition)]},v.prototype.setValue=function(t){var e=this._getValue(this._currentPosition);if(Array.isArray(t)&&1<t.length){var i=this._getValue(this._extraCurrentPosition);this.events.fire(h.SliderEvents.beforeChange,[t[0],e,!1])&&(this._setValue(t[0],!1),this.events.fire(h.SliderEvents.change,[t[0],e,!1])),this.events.fire(h.SliderEvents.beforeChange,[t[1],i,!0])&&(this._setValue(t[1],!0),this.events.fire(h.SliderEvents.change,[t[1],i,!0]))}else{if(t=parseFloat(t),isNaN(t))throw new Error("Wrong value type, for more info check documentation https://docs.dhtmlx.com/suite/slider__api__slider_setvalue_method.html");this.events.fire(h.SliderEvents.beforeChange,[t,e,!1])&&(this._setValue(t),this.events.fire(h.SliderEvents.change,[t,e,!1]))}this.paint()},v.prototype.destructor=function(){this._keyManager&&this._keyManager.destructor(),document.body.contains(this._tooltip)&&document.body.removeChild(this._tooltip),this._tooltip=null,this.unmount()},v.prototype._calcSliderPosition=function(){var t=this.getRootView();t&&(t=t.refs.track.el.getBoundingClientRect(),this._offsets={left:t.left+window.pageXOffset,top:t.top+window.pageYOffset},this._length="horizontal"===this.config.mode?t.width:t.height)},v.prototype._initHotkeys=function(){var t,e=this,i={arrowLeft:function(t){t.preventDefault(),e._move(-e.config.step,t.target.classList.contains("dhx_slider__thumb--extra"))},arrowRight:function(t){t.preventDefault(),e._move(e.config.step,t.target.classList.contains("dhx_slider__thumb--extra"))},arrowUp:function(t){t.preventDefault(),e._move(e.config.step,t.target.classList.contains("dhx_slider__thumb--extra"))},arrowDown:function(t){t.preventDefault(),e._move(-e.config.step,t.target.classList.contains("dhx_slider__thumb--extra"))}};for(t in i)this._keyManager.addHotKey(t,i[t])},v.prototype._move=function(t,e){void 0===e&&(e=!1),this.config.inverse&&(t=-t);var i=this.config,n=i.max,o=i.min,r=e?this._getValue(this._extraCurrentPosition):this._getValue(this._currentPosition),i=r+t;(n<i||i<o)&&(i=r),this.events.fire(h.SliderEvents.beforeChange,[i,r,e])&&(this._setValue(r+t,e),this.events.fire(h.SliderEvents.change,[i,r,e]),this.paint())},v.prototype._initStartPosition=function(){var t,e,i=this.config,n=i.max,o=i.min,r=i.range,i=(t=this.config.value,e=this.config.min,i=this.config.max,(t=void 0===t?[]:Array.isArray(t)?t:"string"==typeof t?t.split(",").map(function(t){return parseInt(t,10)}):[t])[0]=void 0===t[0]?e:p(t[0],e,i),t[1]=void 0===t[1]?i:p(t[1],e,i),t),t=i[0],i=i[1];this._currentPosition=(t-o)/(n-o)*100,r&&(this._extraCurrentPosition=(n-i)/(n-o)*100),this._currentPosition=(t-o)/(n-o)*100,r&&(this._extraCurrentPosition=(i-o)/(n-o)*100),this._isInverse()&&(this._currentPosition=100-this._currentPosition,r&&(this._extraCurrentPosition=100-this._extraCurrentPosition))},v.prototype._getValue=function(t){this._isInverse()&&(t=100-t);var e=this.config,i=e.min,n=e.max,e=e.step;if(100===t)return n;if(0===t)return i;t=t*(n-i)/100,n=t%e,e=e/2<=n?e:0;return+(Number(i)+Number(t)-n+e).toFixed(5)},v.prototype._setValue=function(t,e){void 0===e&&(e=!1);var i=this.config,n=i.max,i=i.min;if(n<t||t<i)return!1;i=(t-i)/(n-i)*100,i=this._isInverse()?100-i:i;e?this._extraCurrentPosition=i:this._currentPosition=i},v.prototype._initHandlers=function(){function e(t){if(t.cancelable&&t.preventDefault(),t=((t.targetTouches?t.targetTouches[0]:t)[n._axis]-n._getBegining())/n._length*100,n._findNewDirection){if(Math.abs(n._currentPosition-t)<1)return;t>n._currentPosition?n._possibleRange=[n._currentPosition,100]:n._possibleRange=[0,n._currentPosition],n._findNewDirection=null}n._inSide(t)&&n._updatePosition(t,n._isExtraActive),n.paint()}function i(t){var e,i;n._disabled||3===t.which||(n.events.fire(h.SliderEvents.mousedown,[t]),n._isMouseMoving=!0,e=t.target.classList.contains("dhx_slider__thumb--extra")?(n._isExtraActive=!0,n._extraCurrentPosition):(n._isExtraActive=!1,n._currentPosition),n._findNewDirection=null,n.config.range?(t=(i=n._currentPosition>n._extraCurrentPosition?[n._currentPosition,n._extraCurrentPosition]:[n._extraCurrentPosition,n._currentPosition])[0],i=i[1],n._currentPosition===n._extraCurrentPosition?(n._findNewDirection=e,n._possibleRange=[0,100]):n._possibleRange=e<t?[0,t]:[i,100]):n._possibleRange=[0,100])}var n=this,o=function(t){n.events.fire(h.SliderEvents.mouseup,[t]),setTimeout(function(){n._isMouseMoving=!1,n.paint()},4),t.targetTouches?(document.removeEventListener("touchend",o),document.removeEventListener("touchmove",e)):(document.removeEventListener("mouseup",o),document.removeEventListener("mousemove",e))};this.config.helpMessage&&(this._helper=new d.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"}),this._helper.attachHTML(this.config.helpMessage)),this._handlers={showHelper:function(t){t.preventDefault(),t.stopPropagation(),n._helper.show(t.target,{theme:t.target})},onmousedown:function(t){i(t),document.addEventListener("mousemove",e),document.addEventListener("mouseup",o)},ontouchstart:function(t){n._setTooltip(t),n._mouseIn=!1,i(t),document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",o),n.paint()},ontouchend:function(t){n._setTooltip(t),n._mouseIn=!1,n.paint()},onlabelClick:function(){n.getRootView().refs.runner.el.focus()},onclick:function(t){var e;n._disabled||n._isMouseMoving||3===t.which||(e=(t[n._axis]-n._getBegining())/n._length*100,t=n.getRootView().refs,!n.config.range||Math.abs(n._currentPosition-e)<Math.abs(n._extraCurrentPosition-e)?(n._updatePosition(e,!1),t.runner.el.focus()):(n._updatePosition(e,!0),t.extraRunner.el.focus()),n.paint())},onmouseover:function(t){n._setTooltip(t),n._mouseIn=!0,n.paint()},onmouseout:function(t){n._setTooltip(t),n._mouseIn=!1,n.paint()},onfocus:function(t){n._setTooltip(t),n._focusIn=!0,n.events.fire(h.SliderEvents.focus,[]),n.paint()},onblur:function(t){n._setTooltip(t),n._focusIn=!1,n.events.fire(h.SliderEvents.blur,[]),n.paint()},onkeydown:function(t){n.events.fire(h.SliderEvents.keydown,[t])}}},v.prototype._getBegining=function(){return"horizontal"===this.config.mode?this._offsets.left-window.pageXOffset:this._offsets.top-window.pageYOffset},v.prototype._inSide=function(t){var e=this._possibleRange;return t<e[0]?(this._updatePosition(e[0],this._isExtraActive),!1):!(t>e[1])||(this._updatePosition(e[1],this._isExtraActive),!1)},v.prototype._updatePosition=function(t,e){void 0===e&&(e=!1),100<t&&(t=100),t<0&&(t=0);var i=this.config,n=i.max,o=i.min,i=e?this._extraCurrentPosition:this._currentPosition,i=this._getValue(i),t=this._getValue(t);i!==t&&this.events.fire(h.SliderEvents.beforeChange,[t,i,e])&&(o=(t-o)/(n-o)*100,o=this._isInverse()?100-o:o,e?this._extraCurrentPosition=o:this._currentPosition=o,this.events.fire(h.SliderEvents.change,[t,i,e]))},v.prototype._getRunnerStyle=function(t){void 0===t&&(t=!1);var e="horizontal"===this.config.mode?"left":"top",i=t?this._extraCurrentPosition:this._currentPosition;return(t={})[e]=i+"%",t},v.prototype._isInverse=function(){return this.config.inverse&&"horizontal"===this.config.mode||!this.config.inverse&&"vertical"===this.config.mode},v.prototype._getRunnerCss=function(t){return void 0===t&&(t=!1),"dhx_slider__thumb"+(t?" dhx_slider__thumb--extra":"")+(this._isMouseMoving&&(t&&this._isExtraActive||!t&&!this._isExtraActive)?" dhx_slider__thumb--active":"")+(this._disabled?" dhx_slider__thumb--disabled":"")+(this._isNullable(t?this._extraCurrentPosition:this._currentPosition)&&!this.config.range?" dhx_slider__thumb--nullable":"")},v.prototype._draw=function(){var t=this.config,e=t.labelPosition,i=t.mode,n=t.hiddenLabel,o=t.tick,r=t.majorTick,s=t.css,a=t.helpMessage,t=f.getLabelStyle(l(l({},this.config),{required:!1}));return!this._tooltip||this._mouseIn&&this._focusIn&&this._isMouseMoving||document.body.contains(this._tooltip)&&document.body.removeChild(this._tooltip),c.el("div",{class:"dhx_slider dhx_slider--mode_"+i+("left"===e?" dhx_slider--label-inline":"")+(n?" dhx_slider--label_sr":"")+(o?" dhx_slider--ticks":"")+(r?" dhx_slider--major-ticks":"")+(s?" "+s:"")+(this._disabled?" dhx_slider--disabled":"")},[t?c.el("label.dhx_label.dhx_slider__label",{style:t.style,class:a?"dhx_label--with-help":"",onclick:this._handlers.onlabelClick},a?[t.label&&c.el("span.dhx_label__holder",t.label),c.el("span.dhx_label-help.dxi.dxi-help-circle-outline",{tabindex:"0",role:"button",onclick:this._handlers.showHelper})]:t.label):null,this._drawSlider()])},v.prototype._drawSlider=function(){return c.el(".dhx_widget.dhx_slider__track-holder",{"data-dhx-widget-id":this._uid},[c.el(".dhx_slider__track",{_ref:"track",onmouseover:this._handlers.onmouseover,onmouseout:this._handlers.onmouseout,onclick:this._handlers.onclick},[this._getDetector(),c.el("div",{_ref:"runner",class:this._getRunnerCss(),ontouchstart:this._handlers.ontouchstart,ontouchend:this._handlers.ontouchend,onmousedown:this._handlers.onmousedown,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,style:this._getRunnerStyle(),tabindex:0}),this.config.tooltip&&(this._mouseIn||this._focusIn||this._isMouseMoving)?this._drawTooltip():null,this.config.tooltip&&this.config.range&&(this._mouseIn||this._focusIn||this._isMouseMoving)?this._drawTooltip(!0):null,this.config.range?c.el("div",{_ref:"extraRunner",class:this._getRunnerCss(!0),ontouchstart:this._handlers.ontouchstart,ontouchend:this._handlers.ontouchend,onmousedown:this._handlers.onmousedown,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,style:this._getRunnerStyle(!0),tabindex:0}):null]),this.config.tick?this._drawTicks():null])},v.prototype._getDetector=function(){var t;if(this._disabled)return c.el(".dhx_slider__range");var e="horizontal"===this.config.mode?"left":"top",i="horizontal"===this.config.mode?"width":"height";if(this.config.range){var n=this._currentPosition>this._extraCurrentPosition?[this._currentPosition,this._extraCurrentPosition]:[this._extraCurrentPosition,this._currentPosition],o=n[0],r=n[1];return c.el(".dhx_slider__range",{style:((n={})[e]=r+"%",n[i]=o-r+"%",n)})}return this._isInverse()?c.el(".dhx_slider__range",{style:((t={})[e]=this._currentPosition+"%",t[i]=100-this._currentPosition+"%",t)}):c.el(".dhx_slider__range",{style:((t={})[e]=0,t[i]=this._currentPosition+"%",t)})},v.prototype._drawTooltip=function(t){var e,i,n;void 0===t&&(t=!1),"none"!==this._activeTooltip&&this.getRootView()&&(e="extraTooltip"===this._activeTooltip?this._extraCurrentPosition:this._currentPosition,i="horizontal"===this.config.mode?"left":"top",n="",(t&&this._isExtraActive||!t&&!this._isExtraActive)&&(n+=" dhx_slider__thumb-label--active"),this._tooltip||(this._tooltip=document.createElement("div")),t=("tooltip"===this._activeTooltip?this.getRootView().refs.runner:this.getRootView().refs.extraRunner).el.getBoundingClientRect(),this._tooltip.className="dhx_slider__thumb-label"+n,this._tooltip.style.left=t.x+("left"==i?6:-30)+window.pageXOffset+"px",this._tooltip.style.top=t.y+("left"==i?-30:6)+window.pageYOffset+"px",this._tooltip.innerText=this._getValue(e).toString(),document.body.appendChild(this._tooltip))},v.prototype._getTicks=function(){for(var t=this.config,e=t.max,i=t.min,n=t.step,o=t.tick,r=t.majorTick,s=e-i,a=n*o/s,l=[],c=0,u=0;c<1;){var d=+(Number(i)+c*s).toFixed(5),h=u%r==0;l.push({position:(this._isInverse()?100*(1-c):100*c)+"%",isMultiple:h,label:h&&"function"==typeof this.config.tickTemplate?this.config.tickTemplate(d):null}),c+=a,u++}return l.push({position:(this._isInverse()?0:100)+"%",isMultiple:!0,label:"function"==typeof this.config.tickTemplate?this.config.tickTemplate(e):null}),l},v.prototype._drawTicks=function(){var i="horizontal"===this.config.mode?"left":"top";return c.el(".dhx_slider__ticks-holder",this._getTicks().map(function(t){var e;return c.el("div",{class:"dhx_slider__tick"+(t.isMultiple?" dhx_slider__tick--major":""),style:((e={})[i]=t.position,e)},void 0!==t.label?[c.el(".dhx_slider__tick-label",t.label)]:null)}))},v.prototype._isNullable=function(t){return this._isInverse()?100===t:0===t},v.prototype._setTooltip=function(t){t.target.classList.contains("dhx_slider__thumb--extra")?this._activeTooltip="extraTooltip":t.target.classList.contains("dhx_slider__thumb")?this._activeTooltip="tooltip":this._activeTooltip="none"},v);function v(t,e){var i=g.call(this,t,r.extend({mode:"horizontal",min:0,max:100,step:1,tooltip:!0},e))||this;i._disabled=!1,i.config.helpMessage=i.config.helpMessage||i.config.help,void 0!==i.config.thumbLabel&&(i.config.tooltip=i.config.thumbLabel),i.config.labelInline&&(i.config.labelPosition="left"),i.events=new s.EventSystem(i),i._axis="horizontal"===i.config.mode?"clientX":"clientY",i._initStartPosition(),i._keyManager=new a.KeyManager(function(){var t;return document.activeElement===(null===(t=null===(t=i.getRootView().refs)||void 0===t?void 0:t[i._isExtraActive?"extraRunner":"runner"])||void 0===t?void 0:t.el)}),i._initHotkeys();e=c.create({render:function(){return i._draw()},hooks:{didMount:function(){return i._calcSliderPosition()},didRedraw:function(){return i._calcSliderPosition()}}});return i._initHandlers(),i.mount(t,e),i}e.Slider=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,a=i(1),l=i(0),c=i(2),u=i(3),d=i(5),h=i(69),o=(r=d.View,o(f,r),f.prototype.show=function(t,e,i){var n=this;void 0===e&&(e={}),this.events.fire(h.PopupEvents.beforeShow,[t])&&(t=u.toNode(t),this._isActive?this._setPopupSize(t,e):(i&&this.attach(i),e.theme&&this._setTheme(e.theme),this._popup.style.left="0",this._popup.style.top="0",l.awaitRedraw().then(function(){n._setPopupSize(t,e),n._popup.style.position="fixed",document.body.appendChild(n._popup),n._isActive=!0}).then(function(){n._popup.style.position="absolute",n.events.fire(h.PopupEvents.afterShow,[t]),n._outerClickDestructor=n._detectOuterClick(t)})))},f.prototype.hide=function(){this._hide(!1,null)},f.prototype.isVisible=function(){return this._isActive},f.prototype.attach=function(t,e){return this._html=null,"object"==typeof t?this._ui=t:"string"==typeof t?this._ui=new window.dhx[t](null,e):"function"==typeof t&&(t.prototype instanceof d.View?this._ui=new t(null,e):this._ui={getRootView:function(){return t(e)}}),this.paint(),this._ui},f.prototype.attachHTML=function(t){this._html=t,this.paint()},f.prototype.getWidget=function(){return this._ui},f.prototype.getContainer=function(){return this.getRootView().refs.content.el},f.prototype.toVDOM=function(){var t;return this._html?t=l.el(".dhx_popup__inner-html-content",{".innerHTML":this._html}):(t=this._ui?this._ui.getRootView():null)&&t.render&&(t=l.inject(t)),l.el("div",{class:"dhx_popup-content",tabindex:0,onclick:this._clickEvent,_key:this._uid,_ref:"content"},[t])},f.prototype.destructor=function(){this.hide(),this._outerClickDestructor&&this._outerClickDestructor(),this._popup=null},f.prototype._setTheme=function(t){"string"==typeof t?this._popup.setAttribute("data-dhx-theme",t):(t=null===(t=null==t?void 0:t.closest("[data-dhx-theme]"))||void 0===t?void 0:t.getAttribute("data-dhx-theme"))&&this._popup.setAttribute("data-dhx-theme",t)},f.prototype._setPopupSize=function(t,e,i){var n=this;void 0===i&&(i=3);var o=this._popup.getBoundingClientRect(),r=o.width,o=o.height;if(this._timeout&&(clearTimeout(this._timeout),this._timeout=null),!i||0!==r&&0!==o){r=u.fitPosition(t,s(s({centering:!0,mode:"bottom"},e),{width:r,height:o})),o=r.left,r=r.top;if(this._popup.style.left=o,this._popup.style.top=r,e.indent&&0!==e.indent)switch(e.mode){case"top":this._popup.style.top=parseInt(this._popup.style.top.slice(0,-2),null)-parseInt(e.indent.toString(),null)+"px";break;case"bottom":this._popup.style.top=parseInt(this._popup.style.top.slice(0,-2),null)+parseInt(e.indent.toString(),null)+"px";break;case"left":this._popup.style.left=parseInt(this._popup.style.left.slice(0,-2),null)-parseInt(e.indent.toString(),null)+"px";break;case"right":this._popup.style.left=parseInt(this._popup.style.left.slice(0,-2),null)+parseInt(e.indent.toString(),null)+"px";break;default:this._popup.style.top=parseInt(this._popup.style.top.slice(0,-2),null)+parseInt(e.indent.toString(),null)+"px"}}else this._timeout=setTimeout(function(){n._isActive&&(n._setPopupSize(t,e,i-1),n._timeout=null)})},f.prototype._detectOuterClick=function(n){var o=this,r=!1,s=new WeakMap,a=function(t){var e=t.target,i=document.querySelectorAll(".dhx_popup");for(r?i.forEach(function(t){return s.has(t)||s.set(t,o._popup)}):(r=Boolean(i.length))&&i.forEach(function(t){return s.set(t,!0)});e;){if(e===n||e===o._popup||s.get(e)===o._popup)return;e=e.parentNode}o._hide(!0,t)&&document.removeEventListener("mousedown",a)};return document.addEventListener("mousedown",a),function(){return document.removeEventListener("mousedown",a)}},f.prototype._hide=function(t,e){if(this._isActive)return!!this.events.fire(h.PopupEvents.beforeHide,[t,e])&&(document.body.removeChild(this._popup),this._isActive=!1,this._outerClickDestructor&&(this._outerClickDestructor(),this._outerClickDestructor=null),this.events.fire(h.PopupEvents.afterHide,[e]),!0)},f);function f(t){void 0===t&&(t={});var e=r.call(this,null,a.extend({},t))||this,i=e._popup=document.createElement("div");return i.className="dhx_widget dhx_popup"+(e.config.css?" "+e.config.css:""),i.style.position="absolute",i.setAttribute("role","dialog"),i.setAttribute("aria-modal","true"),i.setAttribute("aria-live","polite"),e.config.theme&&e._setTheme(e.config.theme),e.mount(i,l.create({render:function(){return e.toVDOM()}})),e._clickEvent=function(t){return e.events.fire(h.PopupEvents.click,[t])},e.events=t.events||new c.EventSystem(e),e._isActive=!1,e}e.Popup=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isTimeCheck=function(t){return/(^12:[0-5][0-9]?AM$)/i.test(t)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.linkButtonClasses=".dhx_button.dhx_button--view_link.dhx_button--icon.dhx_button--size_medium.dhx_button--color_secondary"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(1),o=i(0),r=i(9),i=(s.prototype.endEdit=function(){var t=this._checked;this._config.events.fire(r.GridEvents.beforeEditEnd,[t,this._cell.row,this._cell.col])?(this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.events.fire(r.GridEvents.afterEditEnd,[t,this._cell.row,this._cell.col])):this._input.checked=!t},s.prototype.toHTML=function(){void 0===this._checked&&(this._checked=this._cell.row[this._cell.col.id]);var t=n.uid();return o.el("div.dhx_checkbox.dhx_cell-editor__checkbox",[o.el("label",{style:{display:"none"},for:t},this._checked||"false"),o.el("input.dhx_checkbox__input",{type:"checkbox",_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor","data-dhx-checked":(!!this._checked).toString(),checked:this._checked,id:t,style:{userSelect:"none"}}),o.el("span.dhx_checkbox__visual-input")])},s.prototype._initHandlers=function(){var e=this;this._handlers={onClick:function(){var t=!e._input.checked;e._config.events.fire(r.GridEvents.beforeEditStart,[e._cell.row,e._cell.col,"checkbox"])?(e._checked=t,e._config.events.fire(r.GridEvents.afterEditStart,[e._cell.row,e._cell.col,"checkbox"]),e.endEdit()):e._input.checked=!t},didInsert:function(t){e._checkbox=t.el.parentNode.lastChild,e._input=t.el.parentNode.querySelector("input"),t.el.parentNode.addEventListener("click",e._handlers.onClick)}}},s);function s(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}e.CheckboxEditor=i},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(0),r=i(9),s=i(34),a=i(19),l=i(18),i=(c.prototype.endEdit=function(t){var e,i,n=this;t||(e=this._input.getValue(),e="multiselect"===this._cell.col.editorType?e.split(",").join(", "):e),this._config.events.fire(r.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(i=l.getEditorOptions(this._cell.col,this._cell.row),this._input.popup.hide(),document.removeEventListener("mousedown",this._handlers.onOuterClick),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),a.focusManager.setFocusId(this._config.gridId),null!=e&&e.toString().split(", ").forEach(function(e){var t=i.find(function(t){return"string"==typeof t?t===e:t.id.toString()===e});e&&!t&&(n._cell.col.$customOptions||(n._cell.col.$customOptions=[]),n._cell.col.$customOptions.push(n._input.data.getItem(e)))}),this._config.events.fire(r.GridEvents.afterEditEnd,[e,this._cell.row,this._cell.col])):this._input.focus()},c.prototype.toHTML=function(){var e=this,t=l.getEditorOptions(this._cell.col,this._cell.row).map(function(t){return"string"==typeof t?{id:""+t,value:t}:t})||[];return this._input||(this._input=new s.Combobox(null,n({itemHeight:37,css:"dhx_cell-editor__combobox",multiselection:"multiselect"===this._cell.col.editorType,htmlEnable:this._cell.col.htmlEnable},this._cell.col.editorConfig)),this._input.data.parse(t),t=this._cell.row[this._cell.col.id],t="multiselect"===this._cell.col.editorType?((null==t?void 0:t.toString())||"").split(", "):t,this._input.setValue(t),this._input.events.on("keydown",this._handlers.onkeydown),this._input.data.events.on("beforeAdd",function(t){if(t.id!==t.value)return e._input.addOption({id:t.value,value:t.value},!0),!1})),document.addEventListener("mousedown",this._handlers.onOuterClick),this._config.$editable.editor=this,o.awaitRedraw().then(function(){var t=e._input.getRootView().refs.holder.el;e._input.popup.getContainer().style.width=t.offsetWidth+"px",e._input.popup.show(t)}),a.focusManager.setFocusId(this._input._uid),o.inject(this._input.getRootView())},c.prototype._initHandlers=function(){var i=this;this._handlers={onOuterClick:function(t){var e;t.target instanceof Node&&(e=i._input&&i._input.getRootNode()&&i._input.getRootNode().contains(t.target),t=i._input.popup&&i._input.popup.getRootNode()&&i._input.popup.getRootNode().contains(t.target),e||t||i.endEdit())},onkeydown:function(t){"Escape"!==t.key&&"Tab"!==t.key||i.endEdit()}}},c);function c(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}e.ComboboxEditor=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KEY_CODES={BACKSPACE:8,ENTER:13,ESC:27,DOWN_ARROW:40,UP_ARROW:38,LEFT_ARROW:37,RIGHT_ARROW:39}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(149);e.getEditor=function(t,e){return new n.InputEditor(t,e)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(49),i=(r.prototype.endEdit=function(){var t;this._input&&(t=this._input.value,this._list.events.fire(o.ListEvents.beforeEditEnd,[t,this._item.id])?(this._input.removeEventListener("blur",this._handlers.onBlur),this._input.removeEventListener("change",this._handlers.onChange),this._input.removeEventListener("keydown",this._handlers.onKeyDown),this._handlers={},this._mode=!1,this._list.events.fire(o.ListEvents.afterEditEnd,[t,this._item.id])):this._input.focus())},r.prototype.toHTML=function(){this._mode=!0;var t=this._config.itemHeight;return n.el(".dhx_input__wrapper",{role:"presentation"},[n.el("div.dhx_input__container",{role:"presentation"},[n.el("input.dhx_input",{class:this._item.css?" "+this._item.css:"",style:{height:t,width:"100%",padding:"8px 12px"},_hooks:{didInsert:this._handlers.didInsert},_key:this._item.id,"data-dhx-id":this._item.id})])])},r.prototype._initHandlers=function(){var e=this;this._handlers={onBlur:function(){e.endEdit()},onChange:function(){e.endEdit()},onKeyDown:function(t){"Enter"===t.key&&e._item.value===e._input.value&&e.endEdit(),"Escape"===t.key&&(e._input.value=e._item.value,e.endEdit())},didInsert:function(t){t=t.el;(e._input=t).focus(),t.value=e._item.value,t.setSelectionRange(0,t.value.length),t.addEventListener("change",e._handlers.onChange),t.addEventListener("blur",e._handlers.onBlur),t.addEventListener("keydown",e._handlers.onKeyDown)}}},r);function r(t,e){var i=this;this._list=e,this._config=e.config,this._item=t,this._list.events.on(o.ListEvents.focusChange,function(t,e){i._mode&&e!==i._item.id&&i.endEdit()}),this._initHandlers()}e.InputEditor=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,l=i(0),c=i(21),i=i(75),o=(a=i.List,o(u,a),u.prototype.destructor=function(){a.prototype.destructor.call(this),this.scrollView=null},u.prototype.scrollTo=function(t){var e,i=this.getRootView();i&&i.node&&i.node.el&&void 0!==t&&(e=null!==(i=this.scrollView)&&void 0!==i&&i.config.enable?null===(e=this.getRootNode())||void 0===e?void 0:e.querySelector(".scroll-view"):this.getRootNode(),this._scrollTo(t,e))},u.prototype._renderList=function(){var i=this,t=this._getRange(),e=this.data.getRawData(t[0],t[1]).map(function(t,e){return i._renderItem(t,e)});this.config.virtual&&(e=s([l.el(".div",{style:{height:t[2]+"px"}})],e,[l.el(".div",{style:{height:t[3]+"px"}})]));var n=this.scrollView&&this.scrollView.config.enable,t=(this.config.css||"")+(this.config.multiselection&&this.selection.getItem()?" dhx_no-select--pointer":"")+(n?" dhx_list--scroll-view":"");return l.el("ul.dhx_widget.dhx_list",r(r({style:{"max-height":this.config.height,position:"relative"},class:t,"data-dhx-widget-id":this._uid},this._handlers),this._getListAriaAttrs(this.config,this.data.getLength())),n?[].concat(this.scrollView.render(e)):e)},u);function u(t,e){var i=a.call(this,t,e)||this;return i.scrollView=new c.ScrollView(function(){return i.getRootView()}),i.paint(),i}e.ProList=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(o.prototype.startNewListen=function(t){this._isActive=!0,this._sequence="",this._currentAction=t},o.prototype.endListen=function(){this._currentAction=null,this.reset(),this._isActive=!1},o.prototype.reset=function(){this._sequence=""},o.prototype._change=function(){this._currentAction(this._sequence),this._addClearTimeout()},o.prototype._addClearTimeout=function(){var t=this;this._clearTimeout&&clearTimeout(this._clearTimeout),this._clearTimeout=setTimeout(function(){t.reset(),t._clearTimeout=null},2e3)},o);function o(){var e=this;this._sequence="",document.addEventListener("keydown",function(t){e._isActive&&("Backspace"===(t=t.key)&&0<e._sequence.length&&(e._sequence=e._sequence.slice(0,e._sequence.length-1),e._change()),t.length<2&&(e._sequence+=t,e._change()))})}e.KeyListener=n},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(74),a=i(35),l=i(11),c=i(77),o=(r=s.Combobox,o(u,r),u.prototype._createLayout=function(){var t=this.list=new a.ProList(null,{$template:s.$template,template:this.config.template,htmlEnable:this.config.htmlEnable,virtual:this.config.virtual,keyNavigation:!0,multiselection:this.config.multiselection,itemHeight:this.config.itemHeight,height:this.config.listHeight,data:this.data}),e=this._layout=new l.ProLayout(this.popup.getContainer(),{css:"dhx_combobox-options dhx_combobox__options",rows:[{id:"select-unselect-all",hidden:!this.config.multiselection||!this.config.selectAllButton},{id:"list",height:"content"},{id:"not-found",hidden:!0}],on:{click:{".dhx_combobox__action-select-all":this._handlers.selectAll,".dhx_combobox-options__action-create-option":this._handlers.addOption}}});e.getCell("list").attach(t),this.config.multiselection&&this.config.selectAllButton&&e.getCell("select-unselect-all").attach(c.selectAllView)},u);function u(t,e){return r.call(this,t,e)||this}e.ProCombobox=o},function(t,e,i){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),s=i(9),o=i(1),a=i(18),i=(l.prototype.endEdit=function(t){var e;t||(e=this._editor.value),this._config.events.fire(s.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(this._editor.removeEventListener("blur",this._handlers.onBlur),this._editor.removeEventListener("change",this._handlers.onChange),this._editor.removeEventListener("input",this._handlers.onInput),"string"!==this._cell.col.type&&o.isNumeric(e)&&(e=parseFloat(e)),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.events.fire(s.GridEvents.afterEditEnd,[e,this._cell.row,this._cell.col])):this._editor.focus()},l.prototype.toHTML=function(){var t=this._cell.row[this._cell.col.id];this._editor&&(t=this._editor.value);var e=void 0!==(this._config.$editable.editor=this)._cell.row.height||this._cell.col.htmlEnable?"dhx_cell-editor dhx_cell-editor__textarea_constant-height":"dhx_cell-editor dhx_cell-editor__textarea";return n.el("textarea",{_hooks:{didInsert:this._handlers.didInsert},_ref:"textarea",_key:"cell_editor","data-dhx-id":"cell_editor",value:t,class:e,style:{width:this._width}})},l.prototype._initHandlers=function(){var o=this;this._handlers={onBlur:function(){o.endEdit()},onChange:function(){o.endEdit()},onInput:function(t){if(void 0===o._cell.row.height&&!o._cell.col.htmlEnable){var e=o._getCurrentHeight(o._editor.value,{width:o._cell.col.$width-2,maxHeight:o._config.rowHeight});o._cell.row[o._cell.col.id]=o._editor.value;var i=a.getCalculatedRowHeight(a.getMaxRowHeight(o._cell.row,o._config.columns)),n=a.getCalculatedRowHeight(a.getMaxRowHeight(((n={})[o._cell.col.id]=o._cell.row[o._cell.col.id],n),o._config.columns));if(o._minHeight=i===n?o._config.rowHeight:i,e>=o._minHeight&&e!==o._prevHeight){if(!o._config.events.fire(s.GridEvents.beforeRowResize,[o._cell.row,t,e]))return;o._config.events.fire(s.GridEvents.afterRowResize,[o._cell.row,t,e])}o._prevHeight=e}},didInsert:function(t){o._editor=t.el,o._editor.focus(),o._editor.setSelectionRange(0,o._editor.value.length),o._editor.addEventListener("change",o._handlers.onChange),o._editor.addEventListener("blur",o._handlers.onBlur),o._editor.addEventListener("input",o._handlers.onInput)}}},l.prototype._getCurrentHeight=function(t,e){e=r({width:100,maxHeight:40,lineHeight:20},e);var i=document.createElement("textarea");i.className="dhx_cell-editor dhx_cell-editor__textarea",i.value=t,i.style.width=e.width+"px",i.style.lineHeight=e.lineHeight+"px",i.style.maxHeight=e.maxHeight+"px",i.style.boxSizing="border-box",document.body.appendChild(i);var n=this._getElementHeight(i),o=i.value.split("\n").length,t=Math.round(n/e.lineHeight),n=n<e.maxHeight?e.maxHeight:n;return document.body.removeChild(i),1===o&&o===t?e.maxHeight:n},l.prototype._getElementHeight=function(t){return t.scrollHeight},l);function l(t,e,i){this._config=i,this._cell={row:t,col:e},this._width=this._cell.col.$width;e=0;this._config.firstColId===this._cell.col.id&&this._cell.row.hasOwnProperty("$level")&&(e=a.getTreeCellWidthOffset(this._cell.row)),this._width-=e-4,this._initHandlers()}e.TextAreaEditor=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i(0),l=i(18),a=i(1),c=i(155),r=i(156),u=i(157);function n(t,n,e,i){if(t&&n&&e){var o=t.id,t=i?i(o,n.data):n.data.reduce(function(t,e){return void 0===e[o]||""===e[o]||isNaN(e[o])||t.push(parseFloat(e[o])),t},[]),i=t;return"tree"===n.type&&(i=n.data.reduce(function(t,e){var i;return 0===e.$level&&(void 0===e[o]||""===e[o]||isNaN(e[o])?(i=0,n.datacollection.eachChild(e.id,function(t){n.datacollection.haveItems(t.id)||(i+=parseFloat(t[o]))}),t.push(i)):t.push(parseFloat(e[o])||0)),t},[])),e(t,i)}}e.getContent=function(){var i=this;return{inputFilter:{element:{},toHtml:function(t,e){var i=this,n=a.uid(),o=t.id.toString(),r=this.element[o];return r?r.value=this.value[o]:((r=new u.InputFilter(t,e,n,this.value[o])).events.on("change",function(t){i.value[o]=t}),this.element[o]=r),r.toHTML()},match:function(t){var e=t.val,i=t.match,n=t.col;if(!a.isDefined(e))return!1;t=[];t.push(l.toFormat(e,n.type,n.format)),n.format&&0<(r=n.format.lastIndexOf("#"))&&t.push(l.toFormat(e,n.type,n.format.slice(r)));for(var o="",r=0;r<i.length;r++){var s=i.charCodeAt(r);o+=32<s&&s<48||63===s||90<s&&s<95||124===s?"\\"+i[r]:i[r]}return t.some(function(t){return new RegExp(""+o,"i").test(t)})},value:{}},selectFilter:{element:{},toHtml:function(t,e){var i=this,n=t.id.toString(),o=this.element[n];return o?(o.value=this.value[n],o.data=t.$uniqueData):((o=new r.SelectFilter(t,e,t.$uniqueData,this.value[n])).events.on("change",function(t){i.value[n]=t}),this.element[n]=o),o.toHTML()},match:function(t){var e=t.val,i=t.match,t=t.col,t=l.toFormat(e,t.type,t.format);return!i||(t||"boolean"==typeof t)&&t.toString()==i},value:{}},comboFilter:{element:{},toHtml:function(t,e){var i,n=this,o=t.id.toString(),r=this.element[o];return r?r.data=t.$uniqueData:(i=t.header.filter(function(t){return void 0!==t.filterConfig})[0],(r=new c.ComboFilter(t,e,t.$uniqueData,this.value[o],i)).events.on("change",function(t){n.value[o]=t}),this.element[o]=r),s.inject(r.getFilter().getRootView())},match:function(t){var e=t.val,i=t.match,n=void 0===i?"":i,i=t.multi,o=void 0!==i&&i,t=t.col,r=l.toFormat(e,t.type,t.format);if(Array.isArray(n)){for(var s=void 0,a=0;a<n.length;a++)if("break"===function(e){if(s=o&&"string"==typeof r?r.split(", ").some(function(t){return t===n[e]}):n[e]===r)return"break"}(a))break;return!n||!n.length||s}return void 0===n||r===n},destroy:function(){if(i.content&&i.content.comboFilter.element){var t,e=i.content.comboFilter.element;for(t in e)e[t].destructor(),delete e[t]}},value:{}},sum:{calculate:function(t,e){return e.reduce(function(t,e){return t+(parseFloat(e)||0)},0)},toHtml:function(t,e){e=n(t,e,this.calculate);return t.format||"percent"===t.type?l.toFormat(e,t.type,t.format):e?e.toFixed(3):null}},avg:{calculate:function(t,e){return t.length?e.reduce(function(t,e){return t+e},0)/t.length:null},toHtml:function(t,e){e=n(t,e,this.calculate);return t.format||"percent"===t.type?l.toFormat(e,t.type,t.format):e?e.toFixed(3):null}},min:{calculate:function(t){return t.length?Math.min.apply(Math,t):null},toHtml:function(t,e){e=n(t,e,this.calculate);return t.format||"percent"===t.type?l.toFormat(e,t.type,t.format):e?e.toFixed(3):null}},max:{calculate:function(t){return t.length?Math.max.apply(Math,t):null},toHtml:function(t,e){e=n(t,e,this.calculate);return t.format||"percent"===t.type?l.toFormat(e,t.type,t.format):e?e.toFixed(3):null}},count:{calculate:function(t,e){return e.length},validate:function(i,t){return t.reduce(function(t,e){return void 0!==e[i]&&""!==e[i]&&(isNaN(e)?t.push(1):t.push(e)),t},[])},toHtml:function(t,e){return n(t,e,this.calculate,this.validate)}}}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(34),r=i(2),o=i(8),s=i(1),a=i(9),i=(l.prototype.initFilter=function(){this._filter=new n.Combobox(null,Object.assign({},this.filterConfig)),this.data&&this._filter.data&&this._setData()},l.prototype.initHandlers=function(){var t,i=this,n=this.column.id.toString();this.config.events.on(o.DataEvents.load,function(){i._setData()}),this._filter.events.on("change",function(t){var e;t&&(Array.isArray(t)?t.find(function(t){return i._filter.data.getItem(t)}):i._filter.data.getItem(t))&&(e=i._filter.config.multiselection?i._filter.list.selection.getItem().map(function(t){if(t&&i._filter.data.getItem(t.id))return t.value}):i._filter.list.selection.getItem().value),i.value=e,null!==(e=i.config.events)&&void 0!==e&&e.fire(a.GridEvents.filterChange,[i.value,n,"comboFilter",i._silentMode]),i._silentMode&&void 0===i.value&&(i._silentMode=!1)}),this.config.events.on(a.GridEvents.filterChange,function(t){i.events.fire(a.HeaderFilterEvent.change,[t])}),this._filter.popup.events.on("afterHide",function(){i.filterConfig.multiselection||i._filter.list.selection.getItem()||i.clear()}),this._filter.popup.events.on("afterShow",function(){!i.filterConfig.multiselection&&(""===i.value||i.filterConfig.readonly&&void 0!==i.value)&&i.clear()}),null!==(t=this.config.events)&&void 0!==t&&t.on(a.GridEvents.scroll,function(){var t;i._isFocused&&null!==(t=i._filter.getRootView().refs)&&void 0!==t&&t.input&&i._filter.focus()}),null!==(t=this.config.events)&&void 0!==t&&t.on(a.GridEvents.headerCellMouseDown,function(t){t.id!==i.column.id&&i.blur()}),null!==(t=this.config.events)&&void 0!==t&&t.on(a.GridEvents.cellMouseDown,function(){return i.blur()}),this.config.events.on(o.DataEvents.change,function(t,e){i.column.hidden||"add"!==e&&"update"!==e&&"remove"!==e||("add"!==e&&i._checkValue(),i._setData(!0))}),this.config.events.on(o.DataEvents.removeAll,function(){i.clear(!0),i._setData()}),this.config.events.on(a.GridEvents.afterRowShow,function(){i._setData(!0)}),this.config.events.on(a.GridEvents.afterRowHide,function(){i.column.hidden||(i._checkValue(),i._setData(!0))}),this.config.events.on(o.DataEvents.filter,function(t){i.column.hidden||(!t||o.isOnlyPermanentFilters(t)?i.clear(!0):i._checkValue(),i.filterConfig.multiselection&&i._filter.popup.isVisible()||i._setData(!0))}),this.config.events.on(a.GridEvents.afterColumnShow,function(){i.filterConfig.multiselection||(i._checkValue(),i._setData())}),this.config.events.on(a.GridEvents.afterColumnHide,function(){i.filterConfig.multiselection||i._setData()})},l.prototype.getFilter=function(){return this._filter},l.prototype.setValue=function(e,t){var i,n=this;!this.filterConfig.multiselection&&Array.isArray(e)||(s.isDefined(e)?(null!=e&&e.length||""===e)&&(i=this.filterConfig.multiselection&&Array.isArray(e)?e.map(function(e){var t;return null===(t=n._filter.data.find(function(t){return t.value===e}))||void 0===t?void 0:t.id}):null===(i=this._filter.data.find(function(t){return t.value===e}))||void 0===i?void 0:i.id,this._filter.setValue(i,t)):(t&&(this._silentMode=!0),this._filter.clear(),this.filterConfig.multiselection||void 0===this.value||(this.value=void 0,null!==(t=this.config.events)&&void 0!==t&&t.fire(a.GridEvents.filterChange,[this.value,this.column.id,"comboFilter"]))))},l.prototype.clear=function(t){void 0!==this.value&&this.setValue(null,t)},l.prototype.focus=function(){var t;this._isFocused=!0,null!==(t=this._filter.getRootView().refs)&&void 0!==t&&t.input&&this._filter.focus()},l.prototype.blur=function(){var t;this._isFocused=!1,null!==(t=this._filter.getRootView().refs)&&void 0!==t&&t.input&&this._filter.blur()},l.prototype._setData=function(t){var e=this;void 0===t&&(t=!1);function i(){e._filter.data.parse(e.column.$uniqueData.map(function(t){return{value:t}}))}void 0===this.value?i():t&&this.filterConfig.multiselection&&(i(),this.setValue(this.value,!0))},l.prototype._checkValue=function(){if(void 0!==this.value)for(var i=Array.isArray(this.value)?this.value:[this.value],n=this,t=0,e=i;t<e.length;t++)if("break"===function(e){return n.column.$uniqueData.includes(e)?"continue":(1<i.length?(t=n._filter.data.find(function(t){return t.value===e}),n._filter.list.selection.remove(t.id)):n.clear(),"break");var t}(e[t]))break},l);function l(t,e,i,n,o){this.events=new r.EventSystem,this._silentMode=!1,this.column=t,this.config=e,this.data=i,this.value=n,this.filterConfig=(null==o?void 0:o.filterConfig)||{},(this.column.htmlEnable||null!==(o=this.config)&&void 0!==o&&o.htmlEnable&&!1!==this.column.htmlEnable)&&(this.filterConfig.readonly=!0,this.filterConfig.template||(this.filterConfig.template=function(t){return t.value})),this.initFilter(),this.config&&this.initHandlers()}e.ComboFilter=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0),r=i(2),s=i(9),i=(n.prototype.toHTML=function(){var e=this;return o.el("label.dhx_grid-filter__label.dxi.dxi-menu-down",{_ref:this.column.id+"_filter"},[o.el("select.dxi.dxi-menu-down",{type:"text",class:"dhx_input dhx_grid-filter dhx_grid-filter--select",onchange:this._handlers.onchange,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,_key:this.column.id},[o.el("option",{value:"",_key:0},""),this.data.map(function(t){return""!==(t=null!=t?t:"")&&o.el("option",{_key:t,value:t,selected:e.value===t.toString()},t)})])])},n.prototype.getFilter=function(){return this.toHTML()},n.prototype.setValue=function(t,e){this.value=t||"",this.events.fire(s.HeaderFilterEvent.change,[t]),null!==(t=this.config.events)&&void 0!==t&&t.fire(s.GridEvents.filterChange,[this.value,this.column.id,"selectFilter",e])},n.prototype.clear=function(t){this.setValue("",t)},n.prototype.focus=function(){this._isFocused=!0;var t=null===(t=null===(t=null===(t=null===(t=this.config.events)||void 0===t?void 0:t.context)||void 0===t?void 0:t.getRootView())||void 0===t?void 0:t.refs[this.column.id+"_filter"])||void 0===t?void 0:t.el;t&&t.focus()},n.prototype.blur=function(){this._isFocused=!1;var t=null===(t=null===(t=null===(t=null===(t=this.config.events)||void 0===t?void 0:t.context)||void 0===t?void 0:t.getRootView())||void 0===t?void 0:t.refs[this.column.id+"_filter"])||void 0===t?void 0:t.el;t&&t.blur()},n.prototype.initHandlers=function(){var t,n=this;this._handlers={onchange:function(t){var e,i=(null===(e=t.target)||void 0===e?void 0:e.value)||(null===(e=null===(e=t.composedPath())||void 0===e?void 0:e[0])||void 0===e?void 0:e.value)||(null===(i=t.explicitOriginalTarget)||void 0===i?void 0:i.value);n.setValue(i)},onfocus:function(){n._isFocused=!0},onblur:function(){n._isFocused=!1}},null!==(t=this.config.events)&&void 0!==t&&t.on(s.GridEvents.scroll,function(){var t,e=null===(t=null===(t=null===(t=null===(t=n.config.events)||void 0===t?void 0:t.context)||void 0===t?void 0:t.getRootView())||void 0===t?void 0:t.refs[n.column.id+"_filter"])||void 0===t?void 0:t.el;n._isFocused&&e&&o.awaitRedraw().then(function(){e.focus()})}),null!==(t=this.config.events)&&void 0!==t&&t.on(s.GridEvents.headerCellMouseDown,function(t){t.id!==n.column.id&&n.blur()}),null!==(t=this.config.events)&&void 0!==t&&t.on(s.GridEvents.cellMouseDown,function(){return n.blur()})},n);function n(t,e,i,n){this.events=new r.EventSystem,this.column=t,this.config=e,this.data=i,this.value=n||"",this.initHandlers(),this.toHTML()}e.SelectFilter=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0),r=i(2),s=i(9),i=(n.prototype.toHTML=function(){return o.el("div.dhx_grid-filter__label.dxi.dxi-magnify",{"aria-label":"Type to search",_ref:this.column.id+"_filter"},[o.el("label",{style:{display:"none"},"aria-label":"Type to search",for:this.id},"Type to search"),o.el("input",{type:"text",class:"dhx_input dhx_grid-filter",oninput:this._handlers.onchange,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,_key:this.column.id,id:this.id,value:this.value})])},n.prototype.getFilter=function(){return this.toHTML()},n.prototype.setValue=function(t,e){this.value=t||"",this.events.fire(s.HeaderFilterEvent.change,[this.value]),null!==(t=this.config.events)&&void 0!==t&&t.fire(s.GridEvents.filterChange,[this.value,this.column.id,"inputFilter",e])},n.prototype.clear=function(t){this.setValue("",t)},n.prototype.focus=function(){var t;this._isFocused=!0;var e=null===(e=null===(e=null===(e=null===(e=this.config.events)||void 0===e?void 0:e.context)||void 0===e?void 0:e.getRootView())||void 0===e?void 0:e.refs[this.column.id+"_filter"])||void 0===e?void 0:e.el;e&&null!==(t=e.querySelector("input"))&&void 0!==t&&t.focus()},n.prototype.blur=function(){var t;this._isFocused=!1;var e=null===(e=null===(e=null===(e=null===(e=this.config.events)||void 0===e?void 0:e.context)||void 0===e?void 0:e.getRootView())||void 0===e?void 0:e.refs[this.column.id+"_filter"])||void 0===e?void 0:e.el;e&&null!==(t=e.querySelector("input"))&&void 0!==t&&t.blur()},n.prototype.initHandlers=function(){var t,n=this;this._handlers={onchange:function(i){n._inputDelay&&clearTimeout(n._inputDelay),n._inputDelay=setTimeout(function(){var t,e=(null===(t=i.target)||void 0===t?void 0:t.value)||(null===(t=null===(t=i.composedPath())||void 0===t?void 0:t[0])||void 0===t?void 0:t.value)||(null===(e=i.explicitOriginalTarget)||void 0===e?void 0:e.value);n.setValue(e)},500)},onfocus:function(){n._isFocused=!0},onblur:function(){n._isFocused=!1}},null!==(t=this.config.events)&&void 0!==t&&t.on(s.GridEvents.scroll,function(){var t,e=null===(t=null===(t=null===(t=null===(t=n.config.events)||void 0===t?void 0:t.context)||void 0===t?void 0:t.getRootView())||void 0===t?void 0:t.refs[n.column.id+"_filter"])||void 0===t?void 0:t.el;n._isFocused&&e&&o.awaitRedraw().then(function(){var t;null!==(t=e.querySelector("input"))&&void 0!==t&&t.focus()})}),null!==(t=this.config.events)&&void 0!==t&&t.on(s.GridEvents.headerCellMouseDown,function(t){t.id!==n.column.id&&n.blur()}),null!==(t=this.config.events)&&void 0!==t&&t.on(s.GridEvents.cellMouseDown,function(){return n.blur()})},n);function n(t,e,i,n){this.events=new r.EventSystem,this.column=t,this.config=e,this.id=i,this.value=n||"",this.initHandlers(),this.toHTML()}e.InputFilter=i},function(t,e,i){"use strict";var v=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var _=i(1),m=i(9),y=i(20);e.startResize=function(a,l,t,e){var i,c=a.config.rightSplit;t.targetTouches&&t.preventDefault();var u=(t.targetTouches?t.targetTouches[0]:t).clientX,d=a.config.columns.filter(function(t){return!t.hidden}),h=c?d.slice(-c).map(function(t){return t.id}):[],f=!(null===(i=a.scrollView)||void 0===i||!i.config.enable),p=c?y.calcScrollBarWidth(a.config,f).xState:null,g=0;function n(t){var e,i,n=_.findIndex(d,function(t){return t.id===l}),o=(t.targetTouches?t.targetTouches[0]:t).clientX,r=o-a.getRootNode().getBoundingClientRect().left,s=y.calcScrollBarWidth(a.config,f);a.config.leftSplit===n+1&&r>=a.config.$width-s.y-2||c&&h.includes(l)&&s.xState!==p||(g=g||d[n].$width,e=d[n].minWidth||40,r=d[n].maxWidth,s=o-u,o=v(d),s=g+(p&&h.includes(l)?-s:s),r&&r<=s||s<=e?(s<=e&&(i=e),r<=s&&(i=r)):i=s,o[n].$width=i,o[n].$fixed=!0,a.events.fire(m.GridEvents.resize,[d[n],t]),a.paint())}a.config.$resizing=l;var o=function(){t.targetTouches?(document.removeEventListener("touchmove",n),document.removeEventListener("touchend",o)):(document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",o)),e()};t.targetTouches?(document.addEventListener("touchmove",n),document.addEventListener("touchend",o)):(document.addEventListener("mousemove",n),document.addEventListener("mouseup",o)),a.paint()}},function(t,e,i){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(9),u=i(3),a=i(15),l=i(1);function c(t,e,i,n,o,r,s){var a,l,c;void 0===o&&(o=!1),void 0===r&&(r=!1),void 0===s&&(s=!1),e.config.$editable||!e.config.selection||u.locateNodeByClassName(t,"dhx_grid-header-cell")||(t&&t.preventDefault(),a=e.selection.getCell(),t=e.config.columns.filter(function(t){return!t.hidden}),a&&("vertical"===i?o?(l=1===n?e.data.getItem(e.data.getId(e.data.getLength()-1)):e.data.getItem(e.data.getId(0)),e.selection.setCell(l.id,a.column.id,r,s),e.scrollTo(l.id.toString(),a.column.id.toString())):0<=(c=e.data.getIndex(a.row.id.toString()))+n&&c+n<e.data.getLength()&&(l=e.data.getItem(e.data.getId(c+n)),e.selection.setCell(l.id,a.column.id,r,s),e.scrollTo(l.id.toString(),a.column.id.toString())):o?(l=1===n?t[t.length-1]:t[0],e.selection.setCell(a.row.id,l.id,r,s),e.scrollTo(a.row.id.toString(),l.id.toString())):0<=(c=t.indexOf(a.column))+n&&c+n<t.length&&(e.selection.setCell(a.row.id,t[c+n].id,r,s),e.scrollTo(a.row.id.toString(),t[c+n].id.toString()))))}function d(t,e){var i=t.selection.getCell(),n=i&&t.getSpan(i.row.id,i.column.id);if(n){if("up"===e||"down"===e){var o=l.findIndex(t.config.data,function(t){return t.id===n.row}),r=l.findIndex(t.config.data,function(t){return t.id===i.row.id});return"up"===e?o-r-1:o+(n.rowspan||1)-r}t=t.config.columns.filter(function(t){return!t.hidden}),o=l.findIndex(t,function(t){return t.id===n.column}),r=l.findIndex(t,function(t){return t.id===i.column.id});return"left"===e?o-r-1:o+(n.colspan||1)-r}return"down"===e||"right"===e?1:-1}e.selectionMove=c,e.getKeysHandlers=function(o){var t,n="cell"===o.config.selection||"complex"===o.config.selection||!0===o.config.selection,e={};if(o.getRootView()){var i=null===(t=null===(t=null===(t=o.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.grid_body)||void 0===t?void 0:t.el;if(!i)return;e={pageUp:function(t){t.preventDefault(),i.scrollTop-=i.clientHeight},pageDown:function(t){t.preventDefault(),i.scrollTop+=i.clientHeight},home:function(t){t.preventDefault(),i.scrollTop=0},end:function(t){t.preventDefault(),i.scrollTop+=i.scrollHeight}}}return r({enter:function(t){var e,i=u.locateNodeByClassName(t,"dhx_grid-header-cell");i&&(e=i.getAttribute("data-dhx-id"),i=t.target.getAttribute("dhx_resized"),!e||(t=o.getColumn(e))&&a.isSortable(o.config,t)&&!i&&o.events.fire(s.GridEvents.afterSort,[e])),n?(e=o.selection.getCell())&&(!1!==e.column.editable&&o.config.editable||e.column.editable)&&(o.config.$editable?o.editEnd():"boolean"===e.column.type?o.events.fire(s.GridEvents.beforeEditStart,[e.row,e.column,"checkbox"])&&(o.events.fire(s.GridEvents.afterEditStart,[e.row,e.column,"checkbox"]),o.events.fire(s.GridEvents.beforeEditEnd,[!e.row[e.column.id],e.row,e.column])&&o.events.fire(s.GridEvents.afterEditEnd,[!e.row[e.column.id],e.row,e.column])):o.editCell(e.row.id,e.column.id,e.column.editorType)):o.config.$editable&&o.editEnd()},space:function(t){var e,i=o.selection.getCell();n&&(null!==(e=null==i?void 0:i.column.editable)&&void 0!==e?e:o.config.editable)&&!o.config.$editable&&i&&"boolean"===i.column.type&&(t.preventDefault(),o.events.fire(s.GridEvents.beforeEditStart,[i.row,i.column,"checkbox"])&&(o.events.fire(s.GridEvents.afterEditStart,[i.row,i.column,"checkbox"]),o.events.fire(s.GridEvents.beforeEditEnd,[!i.row[i.column.id],i.row,i.column])&&o.events.fire(s.GridEvents.afterEditEnd,[!i.row[i.column.id],i.row,i.column])))},escape:function(){o.config.$editable&&o.editEnd(!0)},tab:function(t){var e,i,n;o.config.selection&&!u.locateNodeByClassName(t,"dhx_grid-header-cell")&&(o.config.$editable&&o.editEnd(),n=o.selection.getCell(),e=o.config.columns.filter(function(t){return!t.hidden}),n&&(0<=(i=e.indexOf(n.column)+1)&&i<e.length?(t&&t.preventDefault(),o.selection.setCell(n.row.id,e[i].id),o.scrollTo(n.row.id.toString(),e[i].id.toString())):0<=i&&((n=o.data.getIndex(n.row.id.toString())+1)<o.data.getLength()&&(t&&t.preventDefault(),o.selection.setCell(o.data.getId(n),e[0].id),o.scrollTo(o.data.getId(n).toString(),e[0].id.toString())))))},"shift+tab":function(t){var e,i,n;o.config.selection&&!u.locateNodeByClassName(t,"dhx_grid-header-cell")&&(o.config.$editable&&o.editEnd(),n=o.selection.getCell(),e=o.config.columns.filter(function(t){return!t.hidden}),n&&(0<=(i=e.indexOf(n.column)-1)&&i<e.length?(t&&t.preventDefault(),o.selection.setCell(n.row.id,e[i].id),o.scrollTo(n.row.id.toString(),e[i].id.toString())):i<o.data.getLength()&&(0<=(n=o.data.getIndex(n.row.id.toString())-1)&&(t&&t.preventDefault(),o.selection.setCell(o.data.getId(n),e[e.length-1].id),o.scrollTo(o.data.getId(n).toString(),e[e.length-1].id.toString())))))},arrowUp:function(t){c(t,o,"vertical",d(o,"up"))},"ctrl+arrowUp":function(t){c(t,o,"vertical",-1,!0)},"shift+arrowUp":function(t){o.config.multiselection&&c(t,o,"vertical",-1,!1,!1,!0)},"ctrl+shift+arrowUp":function(t){o.config.multiselection&&c(t,o,"vertical",-1,!0,!1,!0)},arrowDown:function(t){c(t,o,"vertical",d(o,"down"))},"ctrl+arrowDown":function(t){c(t,o,"vertical",1,!0)},"shift+arrowDown":function(t){o.config.multiselection&&c(t,o,"vertical",1,!1,!1,!0)},"ctrl+shift+arrowDown":function(t){o.config.multiselection&&c(t,o,"vertical",1,!0,!1,!0)},arrowRight:function(t){c(t,o,"horizontal",d(o,"right"))},"ctrl+arrowRight":function(t){c(t,o,"horizontal",1,!0)},"shift+arrowRight":function(t){o.config.multiselection&&c(t,o,"horizontal",1,!1,!1,!0)},"ctrl+shift+arrowRight":function(t){o.config.multiselection&&c(t,o,"horizontal",1,!0,!1,!0)},arrowLeft:function(t){c(t,o,"horizontal",d(o,"left"))},"ctrl+arrowLeft":function(t){c(t,o,"horizontal",-1,!0)},"shift+arrowLeft":function(t){o.config.multiselection&&c(t,o,"horizontal",-1,!1,!1,!0)},"ctrl+shift+arrowLeft":function(t){o.config.multiselection&&c(t,o,"horizontal",-1,!0,!1,!0)}},e)}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,l=i(65),c=i(9),f=i(8),u=i(3),d=i(18),p=i(20),h=i(0),g=i(21),o=(a=l.Grid,o(v,a),v.prototype._createView=function(){var i=this;return h.create({render:function(t,e){return i._destructed?h.el("div"):p.proRender(t,e,i._htmlEvents,i.selection,i._uid)},hooks:this._initHooks()},this)},v.prototype._setEventHandlers=function(){var r=this;a.prototype._setEventHandlers.call(this),this.events.on(c.GridEvents.headerCellMouseDown,function(t,e){var i=u.locateNodeByClassName(e,"dhx_header-row"),i=i&&i.getAttribute("aria-rowindex");null!==(i=t.header[Number(i)-1])&&void 0!==i&&i.content||(e.targetTouches?r._touch.timer=setTimeout(function(){r._dragStartColumn(e,t)},r._touch.duration):r._dragStartColumn(e,t))}),this._events.on(c.GridSystemEvents.headerCellTouchMove,function(t,e){r._touch.start&&e.preventDefault(),r._clearTouchTimer()}),this._events.on(c.GridSystemEvents.headerCellTouchEnd,function(){r._touch.start=!1,r._clearTouchTimer()}),this.events.on(c.GridEvents.resize,function(){r._parseColumns(),r._setUniqueData(!0)}),this.events.on(c.GridEvents.afterResizeEnd,function(){r.config.autoHeight&&(r.config.data=r.data.map(function(t){var e=d.getMaxRowHeight(t,r.config.columns);return t.$height=d.getCalculatedRowHeight(e,{rowHeight:r.config.rowHeight,padding:8}),t}))}),this.events.on(c.GridEvents.afterRowResize,function(t,e,i){var n=r.data.getItem(t.id),o=n.id,t=n.height,n=n.$height;t&&t!==n&&r.data.update(o,{height:i}),r.data.update(o,{$height:i},!0),r.config.data=r.data.map(function(t){return t}),r.paint()}),this.events.on(c.GridEvents.scroll,function(){r._lazyLoad()}),this.events.on(f.DataEvents.dataRequest,function(t,e){var i=r.data.dataProxy;i&&i.config&&r._prepareDataFromTo(r.data,t,e)})},v.prototype._prepareData=function(t){var e,i=this;return this._adjustColumns(),(Array.isArray(t)||f.isTreeCollection(t)?t:0!==(e=t.getInitialData()||[]).length?e:t.getRawData(0,t.getLength())).map(function(t){var e;return i.config.autoHeight&&void 0===t.height?(e=d.getMaxRowHeight(t,i.config.columns),t.$height=d.getCalculatedRowHeight(e,{rowHeight:i.config.rowHeight,padding:8})||i.config.rowHeight):t.$height=t.height||i.config.rowHeight,t})},v.prototype._prepareDataFromTo=function(t,e,i){var n=this;return t.mapRange(e,i,function(t){var e=d.getMaxRowHeight(t,n.config.columns);return t.$height=d.getCalculatedRowHeight(e,{rowHeight:n.config.rowHeight,padding:8})||n.config.rowHeight,t})},v.prototype._dragStart=function(t){if(this.config.dragMode&&("row"===this.config.dragItem||"both"===this.config.dragItem)&&!this.config.$editable){var e=this.getColumn(t.target.getAttribute("data-dhx-col-id"));if(!1!==(null==e?void 0:e.draggable)){e=u.locateNode(t,"data-dhx-id"),e=e&&e.getAttribute("data-dhx-id");t.targetTouches&&(this._touch.start=!0);var i=[e];if(this.config.multiselection&&1<(i=s(i,this.selection.getCells().map(function(t){return t.row.id}))).length){for(var n=this.data.getInitialData(),o={},r=0;r<i.length;r++)!function(t){var e=i[t],t=null==n?void 0:n.findIndex(function(t){return t.id==e});o[t]=e}(r);i=s(Object.values(o))}return f.dragManager.onMouseDown(t,i,[this._getRowGhost(i)])}}},v.prototype._lazyLoad=function(){var i=this,t=this.data.dataProxy;if(t&&t.config){var e=this.data.getRawData(0,-1,null,2);if(e.length){var n,o=p.getRenderConfig(this,e,{width:this.config.$width,height:this.config.$height}),r=t.config.limit,s=r,a=o.currentRows,l=a[0],c=a[a.length-1],u=this.data.getIndex(c.id),e=function(t){for(var e=1;e<a.length;e++)if("firstFilledRow"===t&&!a[e].$empty&&a[e-1].$empty||"firstEmptyRow"===t&&a[e].$empty&&!a[e-1].$empty)return i.data.getIndex(a[e].id)};if(l.$empty)if(c.$empty)n=this.data.getIndex(l.id);else{var d=e("firstFilledRow"),o=d-s;o<0&&(o=0);for(var h=o;h<d;h++)if(this.data.getItem(this.data.getId(h)).$empty){s=d-(n=h);break}}else c.$empty?n=e("firstEmptyRow"):(n=null!==(c=e("firstEmptyRow"))&&void 0!==c?c:this.data.getIndex(l.id),s=(null!==(e=e("firstFilledRow"))&&void 0!==e?e:u)-n);!this.data.isDataLoaded(n,u)&&this.data.events.fire(f.DataEvents.beforeLazyLoad,[])&&(t.updateUrl(null,{from:n,limit:s}),t.config.limit=r,this.data.load(t).then(function(){i.config.autoHeight&&i._prepareDataFromTo(i.data,n,u)}))}}},v.prototype._getColumnGhost=function(t){var e=this._container||u.toNode(this._uid),i=e.querySelector(".dhx_header-row"),n=i.querySelector('.dhx_grid-header-cell[data-dhx-id="'+t.id+'"]'),n=Array.from(i.childNodes).indexOf(n)+1,t=e.querySelectorAll('.dhx_grid-header-cell[data-dhx-id="'+t.id+'"]:not(.dhx_span-cell)'),n=e.querySelectorAll(".dhx_grid_data .dhx_grid-cell:nth-child("+n+")"),o=document.createElement("div");return t.forEach(function(t){return o.appendChild(t.cloneNode(!0))}),n.forEach(function(t){return o.appendChild(t.cloneNode(!0))}),o},v.prototype._dragStartColumn=function(t,e){function i(t){return t.classList.contains("dhx_grid-custom-content-cell")}var n=t.target;i(n.parentElement)||i(n.parentElement.parentElement)||!(e.draggable||"column"===this.config.dragItem&&!1!==e.draggable||"both"===this.config.dragItem&&!1!==e.draggable)||u.locateNodeByClassName(t,"dhx_resizer_grip_wrap")||(t.targetTouches&&(this._touch.start=!0),f.dragManager.onMouseDown(t,[e.id],[this._getColumnGhost(e)]))},v);function v(t,e){var i=a.call(this,t,r({autoHeight:!1},e))||this;return i.scrollView=new g.ScrollView(function(){return i.getRootView()},{scrollHandler:function(t){return i.events.fire(c.GridEvents.scroll,[{y:t.target.scrollTop,x:t.target.scrollLeft}])}}),i}e.ProGrid=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(o.prototype.setItem=function(t,e){this._store[t]=e},o.prototype.getItem=function(t){return this._store[t]||null},o);function o(){this._store={}}var r=window.dhxHelpers=window.dhxHelpers||{};r.collectionStore=r.collectionStore||new n,e.collectionStore=r.collectionStore},function(t,l,c){"use strict";(function(t){var n,e=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(l,"__esModule",{value:!0});var o,i=c(26),r=c(1),s=c(41),e=(o=i.DataProxy,e(a,o),a.prototype.load=function(){var i=this;return new t(function(t,e){i._timeout?(clearTimeout(i._timeout),i._timeout=setTimeout(function(){s.ajax.get(i.url,{responseType:"text"}).then(t).catch(e),i._cooling=!0},i.config.delay),i._cooling&&(t(null),i._cooling=!1)):(s.ajax.get(i.url,{responseType:"text"}).then(t).catch(e),i._cooling=!0,i._timeout=setTimeout(function(){}))})},a);function a(t,e){var i=o.call(this,t)||this;return i.config=r.extend({from:0,limit:50,delay:50,prepare:0},e),i.updateUrl(t,{from:i.config.from,limit:i.config.limit}),i}l.LazyDataProxy=e}).call(this,c(17))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),n=i(28),r=i(23),s=i(1),i=(a.prototype.getId=function(){return this._selected},a.prototype.getItem=function(){return s.isId(this._selected)?this._data.getItem(this._selected):null},a.prototype.remove=function(t){return t=null!=t?t:this._selected,!s.isDefined(t)||!!this.events.fire(n.SelectionEvents.beforeUnSelect,[t])&&(this._data.update(t,{$selected:!1},!0),this._selected=null,this.events.fire(n.SelectionEvents.afterUnSelect,[t]),!0)},a.prototype.add=function(t){this._selected!==t&&!this.config.disabled&&this._data.exists(t)&&(this.remove(),this._addSingle(t))},a.prototype.enable=function(){this.config.disabled=!1},a.prototype.disable=function(){this.remove(),this.config.disabled=!0},a.prototype._addSingle=function(t){this.events.fire(n.SelectionEvents.beforeSelect,[t])&&(this._selected=t,this._data.update(t,{$selected:!0},!0),this.events.fire(n.SelectionEvents.afterSelect,[t]))},a);function a(t,e,i){var n=this;this.events=i||new o.EventSystem(this),this._data=e,this.config=t,this._data.events.on(r.DataEvents.removeAll,function(){n._selected=null}),this._data.events.on(r.DataEvents.change,function(){var t;!s.isId(n._selected)||(t=n._data.getNearId(n._selected))!==n._selected&&(n._selected=null,t&&n.add(t))})}e.Selection=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,l=i(1),c=i(0),u=i(2),d=i(3),h=i(21),f=i(5),p=i(8),g=i(11),v=i(10),_=i(37),m=i(22),y=i(51),b=i(36),w=i(60),x=i(178),E=i(179),C=i(180),S=i(181),o=(a=f.View,o(k,a),k.prototype.destructor=function(){this.toolbar.destructor(),this._readStack.stop(),this.uploader.unlinkDropArea(),this.uploader.abort()},k.prototype.getRootView=function(){return this._layout.getRootView()},k.prototype._initUI=function(t){var e=this,i=this.config.toolbar?x.layoutConfig:x.layoutConfigWithoutTopbar;i.on=this._getDragEvents();t=this._layout=new g.Layout(t,i),i=this.toolbar=new _.Toolbar(null,{css:"vault-toolbar"});this.toolbar.data.parse([{id:"add",tooltip:y.default.add,type:"button",icon:"dxi-plus"},{id:"upload",tooltip:y.default.upload,type:"button",icon:"dxi icon-upload"},{id:"spacer",type:"spacer"},{id:"remove-all",tooltip:y.default.clearAll,type:"button",icon:"dxi-delete-forever"}]),this._hideUploadAndDeleteButtons(),this._vaultView=f.toViewLike(c.create({render:function(){return e._draw()}})),this.config.toolbar&&t.getCell("topbar").attach(i),t.getCell("vault").attach(this._vaultView)},k.prototype._initHandlers=function(){var i=this;this._handlers={onclick:{".action-add":function(){return i.uploader.selectFile()},".action-remove-file":function(t){var e=d.locate(t);e&&(i.data.update(e,{$toRemove:!0}),setTimeout(function(){i.data.update(e,{$toRemove:!1},!0),i.data.remove(e)},200))}},onmouseover:{".action-download":function(t){v.tooltip(y.default.download,{node:t.target,position:v.Position.bottom})},".action-remove-file":function(t){v.tooltip(y.default.clear,{node:t.target,position:v.Position.bottom})},".title-content, .dhx-file-name":function(t){var e=d.locate(t),e=i.data.getItem(e);v.tooltip(e.name,{node:t.target,position:v.Position.bottom,css:"tooltip-light"})}}}},k.prototype._getDragEvents=function(){var o=this,r={left:null,top:null,width:null,height:null};return{dragleave:function(t){o._canDrop&&(t.pageX>r.left+r.width-1||t.pageX<r.left||t.pageY>r.top+r.height-1||t.pageY<r.top)&&(o._canDrop=!1,o.config.toolbar&&o._layout.getCell("topbar").show(),o._layout.config.css="vault-layout",o._layout.paint())},dragenter:function(t){if(t.preventDefault(),!o.uploader.isActive&&!o._canDrop){for(var e=0,i=t.dataTransfer.types;e<i.length;e++){var n=i[e];if("Files"!==n&&"application/x-moz-file"!==n)return void(o._canDrop=!1)}o._canDrop=!0;t=o.getRootView().node.el.getBoundingClientRect();r.left=t.left+window.pageXOffset,r.top=t.top+window.pageYOffset,r.width=t.width,r.height=t.height,o._canDrop=!0,o.config.toolbar&&o._layout.getCell("topbar").hide(),o._layout.config.css="vault-layout dhx-dragin",o._layout.paint()}},dragover:function(t){t.preventDefault()},drop:function(t){t.preventDefault(),o._canDrop&&(t=t.dataTransfer,o.uploader.parseFiles(t),o._canDrop=!1,o.config.toolbar&&o._layout.getCell("topbar").show(),o._layout.config.css="vault-layout",o._layout.paint())}}},k.prototype._hideUploadAndDeleteButtons=function(){this.toolbar.hide(["upload","remove-all"])},k.prototype._showUploadAndDeleteButtons=function(){this.uploader.config.autosend?this.toolbar.show("remove-all"):this.toolbar.show(["upload","remove-all"])},k.prototype._initEvents=function(){var e=this;this.data.events.on(p.DataEvents.change,function(){e.data.getLength()?e._showUploadAndDeleteButtons():e._hideUploadAndDeleteButtons(),e._vaultView.paint()}),this.events.on(b.UploaderEvents.uploadBegin,function(){e.config.toolbar&&e._layout.getCell("topbar").attach(e._progressBar)}),this.events.on(b.UploaderEvents.uploadComplete,function(){e.config.mode===b.VaultMode.grid&&e.uploader.config.autosend&&e._readStack.read(),e.config.toolbar&&e._layout.getCell("topbar").attach(e.toolbar)}),this.toolbar.events.on(m.NavigationBarEvents.click,function(t){switch(t){case"add":e.uploader.selectFile();break;case"remove-all":e.data.removeAll();break;case"upload":e.uploader.send()}}),this.events.on(b.ProgressBarEvents.cancel,function(){e.uploader.abort(),e._vaultView.paint()})},k.prototype._draw=function(){var t=!this.data.getLength(),e=this.config.mode===b.VaultMode.grid?this._drawGrid():this._drawList();return c.el("div",r(r({class:"vault dhx_widget"+(this._canDrop?" drop-here":"")},this._handlers),{"data-dhx-widget-id":this._uid}),[this._canDrop||t?this._drawDropableArea():this.config.customScroll?this._scrollView.render(e):e])},k.prototype._getFileActions=function(t){var e,i=[],n=[],o=[c.el(".dhx-default-actions",i),c.el(".dhx-hover-actions",n)];if(t.status===b.FileStatus.inprogress)return o;t.status!==b.FileStatus.failed&&t.link&&(e=(r=(this.config.downloadURL||"")+t.link).split("/").pop().split("?")[0],r=c.el("a",{download:e,class:"download-link",href:r},[c.el(".icon-btn.dxi.dxi-download.action-download")]),n.push(r));var r=c.el(".icon-btn.dxi.dxi-delete-forever.action-remove-file");return n.push(r),t.status===b.FileStatus.failed&&(r=c.el(".dxi.dxi-alert-circle.warning-status"),i.push(r)),t.status===b.FileStatus.uploaded&&(t=c.el(".dxi.dxi-checkbox-marked-circle.uploaded-status"),i.push(t)),o},k.prototype._drawList=function(){var r=this;return c.el(".dhx-files-block.dhx-webkit-scroll",this.data.map(function(t){var e=t.status===b.FileStatus.failed&&t.request,i=t.status===b.FileStatus.inprogress,n=t.status===b.FileStatus.queue,o=t.status!==b.FileStatus.uploaded;return c.el("div",{class:"dhx-file-item"+(t.$toRemove?" to-remove":"")+(n?" in-queue":""),"data-dhx-id":t.id,_key:t.id},[c.el(".dhx-file-icon",[c.el("div",{class:"dhx-file-type "+E.getFileClassName(t)+(o?" not-loaded":"")})]),c.el(".dhx-file-title",[c.el(".dhx-title-content",t.name),c.el(".dhx-file-info",[e&&c.el(".warn-message",t.request.statusText||y.default.error),i?c.el(".progress-value",(100*t.progress).toFixed(1)+"%"):c.el(".dhx-size"+(e?".dhx-size-error":""),E.getBasis(t.size))])]),i&&c.el(".dhx-download-progress",{style:{width:(100*t.progress).toFixed(1)+"%"}}),!i&&c.el(".dhx-file-action",r._getFileActions(t))])}))},k.prototype._drawDropableArea=function(){return c.el(".dhx-dropable-area.drop-files-here",[c.el(".dhx-big-icon-block",[c.el(".dxi.icon-upload")]),!this._canDrop&&c.el(".drop-area-bold-text",y.default.dragAndDrop),!this._canDrop&&c.el(".drop-area-bold-text",y.default.filesOrFoldersHere),!this._canDrop&&c.el(".drop-area-light-text",y.default.or),!this._canDrop&&c.el("button.dhx_btn.dhx_btn--flat.dhx_btn--small.action-add",y.default.browse)])},k.prototype._drawGrid=function(){var l=this;return c.el("div",{class:"dhx-files-grid dhx-webkit-scroll"},[c.el(".dhx-grid-content",this.data.map(function(a){var t=a.status===b.FileStatus.inprogress,e=a.status===b.FileStatus.queue,i=a.status===b.FileStatus.failed;return c.el("div",{class:"dhx-file-grid-item"+(t?" in-progress":"")+(a.$toRemove?" to-remove":"")+(e?" in-queue":"")+(i?" failed":""),"data-dhx-id":a.id,_key:a.id},[c.el(".dhx-preview-wrapper",s([a.preview?c.el(".dhx-server-file-preview",[c.el("img",{src:a.preview})]):a.image?c.el("canvas",{width:98*l.config.scaleFactor,height:98*l.config.scaleFactor,_hooks:{didInsert:function(t){var e=E.calculateCover(a.image),i=e.dx,n=e.dy,o=e.sx,r=e.sy,s=e.sHeight,e=e.sWidth;t.el.getContext("2d").drawImage(a.image,o,r,e,s,i,n,98*l.config.scaleFactor,98*l.config.scaleFactor)}}}):c.el("div",{class:"dhx-file-preview dhx-file-type "+E.getFileClassName(a)}),t&&l._drawCircle(a.progress)],l._getFileActions(a),[c.el(".dhx-file-info",[i&&c.el(".warn-message",a.request.statusText||y.default.error),!t&&c.el(".dhx-size"+(i?".dhx-size-error":""),E.getBasis(a.size))])])),c.el(".dhx-file-name",E.truncateWord(a.name))])}))])},k.prototype._drawCircle=function(t){return c.el(".progress-layout",[c.el(".progress-amount",(100*t).toFixed(1)+"%"),c.sv("svg",{xmlns:"http://www.w3.org/2000/svg",class:"progress-circle",viewBox:"0 0 60 60"},[c.sv("circle",{cx:30,cy:30,r:28,"stroke-width":4,class:"progress-bar-background"}),c.sv("circle.active-circle",{cx:30,cy:30,r:28,"stroke-width":4,"stroke-dasharray":"175.9 175.9","stroke-dashoffset":175.9*(1-t),class:"progress-bar-active"})])])},k);function k(t,e){void 0===e&&(e={});var n=a.call(this,null,l.extend({mode:b.VaultMode.list,toolbar:!0,updateFromResponse:!0,scaleFactor:4,customScroll:!0,uploader:{},progressBar:{}},e))||this;return n.config.toolbar||(n.config.uploader.autosend=!0),e.data?(n.data=e.data,n.events=e.data.events,n.events.context=n):(n.events=new u.EventSystem(n),n.data=new p.DataCollection({},n.events)),n.data.config.init=function(t){return t.status=t.status||b.FileStatus.uploaded,t.file?(t.size=t.file.size,t.name=t.file.name):(t.size=t.size||0,t.name=t.name||""),n.config.mode===b.VaultMode.grid&&t.file&&E.isImage(t)&&n._readStack.add(t,n.uploader.config.autosend),t},n._readStack=new S.ReadStackPreview(n.data),n.uploader=new w.Uploader(n.config.uploader,n.data,n.events),n._scrollView=new h.ScrollView(function(){return n._vaultView.getRootView()}),n._progressBar=new C.ProgressBar(n.events,n.config.progressBar),n.events.on(b.UploaderEvents.uploadProgress,function(t,e,i){return n._progressBar.setState(t,{current:e,total:i})}),n._initHandlers(),n._initUI(t),n._initEvents(),n}e.Vault=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),u=this&&this.__assign||function(){return(u=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r=i(1),d=i(0),a=i(2),s=i(10),h=i(3),l=i(13),c=i(5),f=i(8),p=i(38);var g,o=(g=c.View,o(v,g),v.prototype.paint=function(){g.prototype.paint.call(this),this._isContextMenu&&!this._vpopups&&this._init(),this._vpopups&&this._vpopups.redraw()},v.prototype.disable=function(t){var e=this;void 0!==t?this._setProp(t,"disabled",!0):this.data.forEach(function(t){t=t.id;return e._setProp(t,"disabled",!0)})},v.prototype.enable=function(t){var e=this;void 0!==t?this._setProp(t,"disabled",!1):this.data.forEach(function(t){t=t.id;return e._setProp(t,"disabled",!1)})},v.prototype.isDisabled=function(t){t=this.data.getItem(t);if(t)return t.disabled||!1},v.prototype.show=function(t){var e=this;void 0!==t?this._setProp(t,"hidden",!1):this.data.forEach(function(t){t=t.id;return e._setProp(t,"hidden",!1)})},v.prototype.hide=function(t){var e=this;void 0!==t?this._setProp(t,"hidden",!0):this.data.forEach(function(t){t=t.id;return e._setProp(t,"hidden",!0)})},v.prototype.destructor=function(){this.events.clear(),this._keyManager&&this._keyManager.destructor(),this._vpopups&&this._vpopups.node&&this._vpopups.unmount(),this.unmount()},v.prototype.select=function(t,e){var i=this;if(void 0===e&&(e=!0),!r.isId(t))throw new Error("Function argument cannot be empty, for more info check documentation https://docs.dhtmlx.com");e&&this.unselect(),this.data.update(t,{active:!0}),this.data.eachParent(t,function(t){i.data.update(t.id,{active:!0})})},v.prototype.unselect=function(t){var e=this;r.isId(t)?(this.data.update(t,{active:!1}),this.data.eachChild(t,function(t){e.data.update(t.id,{active:!1})})):this.data.forEach(function(t){e.data.update(t.id,{active:!1})})},v.prototype.isSelected=function(t){if(r.isId(t)&&this.data.getItem(t))return!!this.data.getItem(t).active},v.prototype.getSelected=function(){var e=[];return this.data.forEach(function(t){t.active&&e.push(t.id)}),e},v.prototype._customHandlers=function(){return{}},v.prototype._close=function(t){var e=this;this._popupActive&&this.events.fire(p.NavigationBarEvents.beforeHide,[this._activeMenu,t])&&(this._activeParents&&this._activeParents.forEach(function(t){return e.data.exists(t)&&e.data.update(t,{$activeParent:!1})}),"click"===this.config.navigationType&&(this._isActive=!1),clearTimeout(this._currentTimeout),this._popupActive=!1,this._activeMenu=null,this._vpopups.node&&this._vpopups.unmount(),this._vpopups=null,this.events.fire(p.NavigationBarEvents.afterHide,[t]),this.paint())},v.prototype._init=function(){var t,e,i=this;this._isContextMenu&&!this._activePosition||(t=this.getRootNode()||document.documentElement,e=null===(t=null==t?void 0:t.closest("[data-dhx-theme]"))||void 0===t?void 0:t.getAttribute("data-dhx-theme"),this._vpopups=d.create({render:function(){var t;return d.el("div",{"data-dhx-widget-id":i._uid,"data-dhx-theme":e||"light",class:"dhx_"+(null===(t=i.config)||void 0===t?void 0:t.$name)+"--popup-menu "+(i._isContextMenu?" dhx_context-menu":"")+" "+(i.config.css?i.config.css.split(" ").map(function(t){return i._isContextMenu?t:t+"--popup-menu"}).join(" "):""),onmousemove:i._handlers.onmousemove,onmouseleave:i._handlers.onmouseleave,onclick:i._handlers.onclick,onmousedown:i._handlers.onmousedown},i._drawPopups())}}),this._vpopups.mount(document.body))},v.prototype._initHandlers=function(){var a=this;this._isActive="click"!==this.config.navigationType,this._handlers=u({onmousemove:function(t){var e,i;!a._isActive||(i=h.locateNode(t))&&(e=i.getAttribute("data-dhx-id"),a._activeMenu!==e&&(a.data.haveItems(e)&&(a._vpopups||a._init(),i=h.getRealPosition(i),a.data.update(e,{$position:i},!1)),a._activeItemChange(e,t)))},onmouseleave:function(t){var e,i;"click"!==a.config.navigationType&&(a._popupActive?(i=h.locateNode(t,"data-dhx-id","relatedTarget"))?(e=i.getAttribute("data-dhx-id"),a.data.getItem(e)||(a._close(t),a._activeItemChange(null,t)),a.data.haveItems(e)&&(a._vpopups||a._init(),i=h.getRealPosition(i),a.data.update(e,{$position:i},!1),a._activeItemChange(e,t))):(a._close(t),a._activeItemChange(null,t)):a._activeItemChange(null,t))},onclick:function(t){var e=h.locateNode(t);if(e){var i=e.getAttribute("data-dhx-id");if(!a.isDisabled(i)){var n=a.data.getItem(i);if(null==n||!n.multiClick)if(a.data.haveItems(i))a._vpopups||a._init(),i!==a._currentRoot&&(a._isActive||(a._isActive=!0),a._setRoot(i),e=h.getRealPosition(e),a.data.update(i,{$position:e},!1),a._activeItemChange(i,t),a.events.fire(p.NavigationBarEvents.click,[i,t]));else switch(null==n?void 0:n.type){case"input":case"title":break;case"menuItem":case"selectButton":a._onMenuItemClick(i,t);break;case"imageButton":case"button":case"customButton":case"customHTML":case"navItem":n.twoState&&a.data.update(n.id,{active:!n.active}),a.events.fire(p.NavigationBarEvents.click,[i,t]),a._close(t);break;default:a._close(t)}}}},onmousedown:function(t){var e,i,n,o,r,s=h.locateNode(t);s&&(e=s.getAttribute("data-dhx-id"),null!=(s=a.data.getItem(e))&&s.multiClick&&(i=365,r=function(){clearTimeout(n),document.removeEventListener("mouseup",r)},(o=function(){a.events.fire(p.NavigationBarEvents.click,[e,t]),50<i&&(i-=55),n=setTimeout(o,i)})(),document.addEventListener("mouseup",r)))}},this._customHandlers())},v.prototype._initEvents=function(){function e(){n.paint(),t&&clearTimeout(t),t=setTimeout(function(){var i={};n.data.eachChild(n.data.getRoot(),function(t){var e;t.group&&(t.twoState=!0,(e=i)[(t=t).group]?(t.active&&(e[t.group].active=t.id),e[t.group].elements.push(t.id)):e[t.group]={active:t.active?t.id:null,elements:[t.id]})},!0),n._groups=i,n._resetHotkeys(),t=null,n.paint()},100)}var n=this,t=null;[p.DataEvents.change,p.DataEvents.filter].forEach(function(t){n.events.on(t,e)}),this.events.on(p.NavigationBarEvents.click,function(t){var e=n.data.getItem(t),t=n.data.getItem(null==e?void 0:e.parent);t&&"selectButton"===t.type&&n.data.update(e.parent,{value:e.value,icon:e.icon}),null!=e&&e.group&&((t=n._groups[e.group]).active&&n.data.update(t.active,{active:!1}),t.active=e.id,n.data.update(e.id,{active:!0}))}),this.events.on(p.NavigationBarEvents.inputChange,function(t,e){n.data.update(t,{value:e})}),this._customInitEvents()},v.prototype._getMode=function(t,e,i){return void 0===i&&(i=!1),t.parent===e?"bottom":"right"},v.prototype._drawMenuItems=function(t,e){var i=this;return void 0===e&&(e=!0),this.data.map(function(t){return i._factory(t,e)},t,!1)},v.prototype._setRoot=function(t){},v.prototype._getParents=function(t,e){var i=[],n=!1,o=this.data.getItem(t),o=o&&o.disabled;return this.data.eachParent(t,function(t){t.id===e?(i.push(t.id),n=!0):n||i.push(t.id)},!o),this._isContextMenu&&this._activePosition&&i.push(e),i},v.prototype._listenOuterClick=function(){this._documentHaveListener||(document.addEventListener("click",this._documentClick,!0),this._documentHaveListener=!0)},v.prototype._customInitEvents=function(){},v.prototype._drawPopups=function(){var a=this,t=this._activeMenu;if(!this._isContextMenu&&!t)return null;var e=this.getRootNode(),e=e&&e.offsetParent&&e.offsetParent.offsetParent,l=s.getZIndex(e),c=this._currentRoot,t=this._getParents(t,c);return(this._activeParents=t).forEach(function(t){return a.data.exists(t)&&a.data.update(t,{$activeParent:!0},!1)}),t.map(function(r){if(!a.data.haveItems(r))return null;var s=a.data.getItem(r)||a._rootItem;return a._popupActive=!0,d.el("ul",u({class:"dhx_widget dhx_menu"+(a.config.menuCss?" "+a.config.menuCss:""),_key:r,_hooks:{didInsert:function(t){var e=t.el.getBoundingClientRect(),i=e.width,n=e.height,o=a._isContextMenu&&a._activePosition&&r===c?a._activePosition:s.$position,e=a._getMode(s,c,o===a._activePosition),n=h.calculatePosition(o,{mode:e,auto:!0,width:i,height:n});s.$style=u(u({},n),{zIndex:a._activePosition&&a._activePosition.zIndex||l}),t.patch({style:s.$style})},didRecycle:function(t,e){var i,n;a._isContextMenu&&a._activePosition&&r===c&&(i=(n=e.el.getBoundingClientRect()).width,n=n.height,n=h.calculatePosition(a._activePosition,{mode:a._getMode(s,c,!0),width:i,height:n}),s.$style=u(u({},n),{zIndex:a._activePosition.zIndex||l}),e.patch({style:s.$style}))}},tabindex:0,style:s.$style||{position:"absolute"}},{role:"menu","aria-labeledby":s.id,"aria-live":"polite"}),a._drawMenuItems(r))}).reverse()},v.prototype._onMenuItemClick=function(t,e){var i=this.data.getItem(t);i.disabled||(i.twoState&&this.data.update(i.id,{active:!i.active}),this.events.fire(p.NavigationBarEvents.click,[t,e]),this._close(e))},v.prototype._activeItemChange=function(t,e){var i,n=this;this._activeParents&&(i=this._getParents(t,this._currentRoot),this._activeParents.forEach(function(t){n.data.exists(t)&&!i.includes(t)&&n.data.update(t,{$activeParent:!1},!1)})),r.isId(t)&&!this._documentHaveListener&&this._listenOuterClick(),r.isId(t)&&this.data.haveItems(t)?(this._activeMenu===t&&this._popupActive||this.events.fire(p.NavigationBarEvents.openMenu,[t]),clearTimeout(this._currentTimeout),this.paint()):(clearTimeout(this._currentTimeout),this._currentTimeout=setTimeout(function(){return n.paint()},400)),this._activeMenu=t},v.prototype._resetHotkeys=function(){var e=this;this._keyManager.removeHotKey(null,this),this.data.map(function(t){t.hotkey&&e._keyManager.addHotKey(t.hotkey,function(){return e._onMenuItemClick(t.id,null)})})},v.prototype._setProp=function(t,e,i){var n=this;Array.isArray(t)?t.forEach(function(t){return n.data.update(t,((t={})[e]=i,t))}):this.data.update(t,((t={})[e]=i,t))},v);function v(t,e){var s=g.call(this,t,e)||this;return s._isContextMenu=!1,s._documentHaveListener=!1,s.config=r.extend({rootId:"string"==typeof t&&t||s._uid},e),s._rootItem={},!Array.isArray(s.config.data)&&s.config.data&&s.config.data.events?(s.data=s.config.data,s.events=s.data.events,s.events.context=s):(s.events=new a.EventSystem(s),s.data=new f.TreeCollection({rootId:s.config.rootId},s.events)),s._documentClick=function(t){var e,i,n,o,r;s._documentHaveListener&&(e=h.locateNode(t),i=s.data.getRoot(),n=e&&e.getAttribute("data-dhx-id"),o=s.data.getParent(n),r="ontouchstart"in window||navigator.msMaxTouchPoints,document.removeEventListener("click",s._documentClick),s._documentHaveListener=!1,((!r||e)&&s._isContextMenu||i!==o&&o&&s.data.getItem(n))&&o&&s.data.getItem(n)&&i===h.locate(t,"data-dhx-widget-id")||s._close(t))},s._currentRoot=s.data.getRoot(),s._factory=s._getFactory(),s._initHandlers(),s._keyManager=new l.KeyManager(function(t,e){return e===s._uid}),s._initEvents(),Array.isArray(s.config.data)&&s.data.parse(s.config.data),s}e.Navbar=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var d=i(167),h=i(168),f=i(169),p=i(170),g=i(171),v=i(172),_=i(173),m=i(174),y=i(175),b=i(176),w=i(29);e.createFactory=function(t){for(var n=t.defaultType,e=t.allowedTypes,o=t.widgetName,t=t.widget,r=new Set,i=0,s=e;i<s.length;i++){var a=s[i];r.add(a)}var l=t.config,c=t.events,u=t.data;return function(t,e){if(t.hidden)return null;if(!(t.type&&"button"!==t.type&&"navItem"!==t.type&&"menuItem"!==t.type||t.value||t.icon||t.html))return null;t.type=t.type||n,r&&!r.has(t.type)&&(t.type=n),"imageButton"===t.type&&"ribbon"!==o&&(t.active=!1),e&&"spacer"!==t.type&&"separator"!==t.type&&"customHTML"!==t.type&&(t.type="menuItem"),u.haveItems(t.id)&&function(t,e,i){switch(t){case"sidebar":case"context-menu":e.$openIcon="right";break;case"toolbar":e.parent===i.getRoot()?e.$openIcon="right":e.$openIcon="bottom";break;case"menu":e.parent!==this.data.getRoot()&&(e.$openIcon="right");break;case"ribbon":var n=i.getItem(e.parent);n&&"block"!==e.type&&("block"===n.type?e.$openIcon="bottom":e.$openIcon="right")}}(o,t,u),"toolbar"===o&&t.items&&t.items.forEach(function(t){t.type||(t.type="menuItem")});var i="customHTML"!==t.type&&function(t,e,i,n){switch(t.type){case"navItem":case"selectButton":return h.navItem(t,i,n.collapsed);case"button":return d.button(t,i);case"title":return y.title(t,i);case"separator":return _.separator(t,i);case"spacer":return m.spacer(t,i);case"input":return g.input(t,e,i);case"imageButton":return p.imageButton(t,i);case"menuItem":return v.menuItem(t,i,n.asMenuItem);case"customHTMLButton":return f.customHTMLButton(t,i,n.asMenuItem);case"datePicker":return b.datePicker(t,e,i);case"block":default:throw new Error("unknown item type "+t.type)}}(t,c,o,{asMenuItem:e,collapsed:"sidebar"!==o||l.collapsed});return w.navbarComponentMixin(o,t,e,i)}}},function(t,e,i){"use strict";var s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var a=i(0),l=i(29);e.button=function(t,e){var i,n,o=t.icon&&!t.value,r=o?" dhx_navbar-count--absolute":" dhx_navbar-count--button-inline";return a.el("button.dhx_button",s({class:l.getNavbarButtonCSS(t,e),"data-dhx-id":t.id,disabled:t.disabled,type:"button"},(n=(i=t).active||i.$activeParent,e={"aria-disabled":i.disabled?"true":"false","aria-label":i.value||i.tooltip||i.id||" "+(i.count||"")},i.items&&(e.id=i.id,e["aria-haspopup"]="menu",n&&(e["aria-expanded"]="true")),e)),[t.icon?l.getIcon(t.icon,"button"):null,t.html?a.el("div.dhx_button__text",{".innerHTML":t.html}):t.value&&a.el("span.dhx_button__text",t.value),0<t.count&&l.getCount(t,r,o),t.value&&t.$openIcon?a.el("span.dhx_button__icon.dhx_button__icon--menu.dxi.dxi-menu-right",{"aria-hidden":"true"}):null,t.loading&&a.el("span.dhx_button__loading",{"aria-hidden":"true"},[a.el("span.dhx_button__loading-icon.dxi.dxi-loading")])])}},function(t,e,i){"use strict";var s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var a=i(0),l=i(29);e.navItem=function(t,e,i){var n,o,r,e=" dhx_"+e+"-button";return a.el("button",s({class:"dhx_button"+e+(t.active||t.$activeParent?e+"--active":"")+(t.disabled?e+"--disabled":"")+(t.$openIcon?e+"--select":"")+(t.circle?e+"--circle":"")+(t.size?" "+e+"--"+t.size:"")+(!t.value&&t.icon?e+"--icon":"")+(t.css?" "+t.css:""),"data-dhx-id":t.id,disabled:t.disabled,type:"button"},(o={"aria-disabled":(n=t).disabled?"true":"false","aria-label":n.value||" "},r=n.active||n.$activeParent,"selectButton"===n.type||n.items?(o.id=n.id,o["aria-haspopup"]="menu",r&&(o["aria-expanded"]="true")):((n.twoState||r)&&(o["aria-pressed"]=r?"true":"false"),!n.value&&n.icon&&n.tooltip&&(o["aria-label"]=n.tooltip+" "+(n.count||""))),o)),[t.icon&&a.el("span",{class:t.icon+e+"__icon","aria-hidden":"true"}),t.html&&a.el("div",{class:e.trim()+"__html",".innerHTML":t.html}),!t.html&&t.value&&a.el("span",{class:e.trim()+"__text"},t.value),0<t.count&&l.getCount(t,e+"__count",i),t.$openIcon&&a.el("span.dxi.dxi-menu-right",{class:e+"__caret","aria-hidden":"true"})])}},function(t,e,i){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r=i(0);e.customHTMLButton=function(t,e,i){var n,i=i?" dhx_button dhx_menu-button":" dhx_button dhx_nav-menu-button";return r.el("button",o({class:"dhx_custom-button"+i+(t.$activeParent?i+"--active":""),"data-dhx-id":t.id,type:"button",".innerHTML":t.html},(i={"aria-disabled":(n=t).disabled?"true":"false"},(n.twoState||n.active||n.$activeParent)&&(i["aria-pressed"]=n.active||n.$activeParent?"true":"false"),i)),t.html?"":t.value)}},function(t,e,i){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(0),a=i(29);e.imageButton=function(t,e){var i,n,o="dhx_"+e+"-button-image",e="ribbon"===e;return s.el("button.dhx_button",r({class:o+(t.size?" "+o+"--"+t.size:"")+(!t.value&&t.src?" "+o+"--icon":"")+(e&&t.$openIcon?" "+o+"--select":"")+(t.active?" "+o+"--active":""),"data-dhx-id":t.id,type:"button"},(n={"aria-disabled":(i=t).disabled?"true":"false"},(i.twoState||i.active)&&(n["aria-pressed"]=i.active?"true":"false"),!i.value&&i.src&&i.tooltip&&(n["aria-label"]=i.tooltip+" "+(i.count||"")),n)),[e&&t.value&&t.$openIcon&&s.el("span.dxi.dxi-menu-right",{class:o+"__caret","aria-hidden":"true"}),t.html?s.el("div",{class:o+"__text",".innerHTML":t.html}):t.value&&s.el("span",{class:o+"__text"},t.value),t.src&&s.el("span",{class:o+"__image",style:{backgroundImage:"url("+t.src+")"},role:"presentation"}),0<t.count&&a.getCount(t,o+"__count",!0)])}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(38);function r(t,e){t.fire(o.NavigationBarEvents.inputBlur,[e])}function s(t,e){t.fire(o.NavigationBarEvents.inputFocus,[e])}function a(t,e,i){t.fire(o.NavigationBarEvents.inputChange,[e,i.target.value])}e.input=function(e,i,t){return n.el(".dhx_form-group.dhx_form-group--no-message-holder"+(e.hiddenLabel?".dhx_form-group--label_sr":".dhx_form-group--inline")+".dhx_"+t+"__input",{style:{width:e.width||"200px"},role:"presentation"},[e.label&&n.el("label.dhx_label",{for:e.id,style:{maxWidth:e.hiddenLabel?null:"100%"}},e.label),n.el(".dhx_input__wrapper",{role:"presentation"},[n.el("input.dhx_input",{id:e.id,placeholder:e.placeholder,class:e.icon?"dhx_input--icon-padding":"",autocomplete:e.autocomplete?"on":"off",value:e.value,disabled:e.disabled,onblur:[r,i,e.id],onfocus:[s,i,e.id],oninput:[a,i,e.id],"data-dhx-id":e.id,_hooks:{didInsert:function(t){i&&i.fire(o.NavigationBarEvents.inputCreated,[e.id,t.el])}},_key:e.id,"aria-label":e.label||e.helpMessage||"type "+(e.placeholder?"text like "+e.placeholder:"text")}),e.icon?n.el(".dhx_input__icon",{class:e.icon,"aria-hidden":"true"}):null])])}},function(t,e,i){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(0),a=i(29);e.menuItem=function(t,e,i){var n,o=i?" dhx_menu-button":" dhx_nav-menu-button";return s.el("button",r({class:"dhx_button"+o+(t.disabled?o+"--disabled":"")+(t.active||t.$activeParent?o+"--active":""),disabled:t.disabled,"data-dhx-id":t.id,type:"button"},(o={role:"menuitem","aria-disabled":(n=t).disabled?"true":"false"},n.items&&(o["aria-haspopup"]="true"),o)),i?[t.icon||t.value||t.html?s.el("span.dhx_menu-button__block.dhx_menu-button__block--left",[t.icon&&s.el("span.dhx_menu-button__icon",{class:t.icon}),t.html?s.el("div.dhx_menu-button__text",{".innerHTML":t.html}):t.value&&s.el("span.dhx_menu-button__text",t.value)]):null,0<t.count||t.hotkey||t.items?s.el("span.dhx_menu-button__block.dhx_menu-button__block--right",[0<t.count&&a.getCount(t," dhx_menu-button__count",!1),t.hotkey&&s.el("span.dhx_menu-button__hotkey",t.hotkey),t.items&&s.el("span.dhx_menu-button__caret.dxi.dxi-menu-right")]):null]:[t.icon&&s.el("span.dhx_menu-button__icon",{class:t.icon}),t.html?s.el("div.dhx_menu-button__text",{".innerHTML":t.html}):t.value&&s.el("span.dhx_nav-menu-button__text",t.value),0<t.count&&a.getCount(t," dhx_menu-button__count",!1)])}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.separator=function(t,e){return null}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.spacer=function(t,e){return null}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0);e.title=function(t,e){return n.el("span",{class:"dhx_navbar-title dhx_navbar-title--"+e,"data-dhx-id":t.id,".innerHTML":t.html,"aria-label":t.value||""},t.html?null:t.value)}},function(t,e,i){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(0),a=i(33),l=i(12),c=i(38),n=i(16);function u(t,e,i){i=i.target;i&&(i.value=e.$calendar.getValue()),t.fire(c.NavigationBarEvents.inputBlur,[null==e?void 0:e.id])}function d(t,e,i){s.awaitRedraw().then(function(){return e.$popup.show(i.target,{theme:i.target})}),t.fire(c.NavigationBarEvents.inputFocus,[null==e?void 0:e.id])}function h(t,e){var i=e.target.value,e=t.$calendar.config.dateFormat;return i.length?n.stringToDate(i,e,!0)&&t.$calendar.setValue(n.stringToDate(i,e)):t.$calendar.clear(),!1}e.datePicker=function(n,o,t){n.$popup||(n.$popup=new l.Popup),n.$calendar||(n.$calendar=new a.Calendar(null,r(r({},n),{css:"dhx_widget--bordered"})),n.$popup.attach(n.$calendar),n.$calendar.events.on("change",function(t,e,i){i&&n.$popup.isVisible()&&n.$popup.hide();i="date"===(null===(i=n.valueFormat)||void 0===i?void 0:i.toLowerCase());o.fire(c.NavigationBarEvents.inputChange,[n.id,n.$calendar.getValue(i)])}));var e=n.$calendar.getValue();return n.mode&&"calendar"!==n.mode&&n.$calendar.showDate(void 0,n.mode),s.el(".dhx_form-group.dhx_form-group--no-message-holder"+(n.hiddenLabel?".dhx_form-group--label_sr":".dhx_form-group--inline")+".dhx_"+t+"__input",{style:{width:n.width||"200px"},role:"presentation"},[n.label&&s.el("label.dhx_label",{for:n.id,style:{maxWidth:n.hiddenLabel?null:"100%"}},n.label),s.el(".dhx_input__wrapper",{role:"presentation"},[s.el("input.dhx_input",{id:n.id,placeholder:n.placeholder,class:n.icon?"dhx_input--icon-padding":"",value:e,disabled:n.disabled,onblur:[u,o,n],onfocus:[d,o,n],oninput:[h,n],"data-dhx-id":n.id,readOnly:!0!==n.editable,_hooks:{didInsert:function(t){o&&o.fire(c.NavigationBarEvents.inputCreated,[n.id,t.el])}},_key:n.id,"aria-label":n.label||n.helpMessage||"type "+(n.placeholder?"text like "+n.placeholder:"text")}),n.icon?s.el(".dhx_input__icon",{class:n.icon,"aria-hidden":"true"}):null])])}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(81),l=i(21),c=i(0),u=i(3),d=i(10),o=(s=a.Toolbar,o(h,s),h.prototype._draw=function(t){var i=this,e=this.data.getLength()?this.data.reduce(function(t,e){switch(e.type){case"title":return t||20;case"button":return"small"===e.size&&(!t||t<=28)?28:t||32;default:return 32}},0)+24:null,t=[c.el("ul.dhx_navbar.dhx_navbar--horizontal",r(r({"data-dhx-widget-id":this._uid,tabindex:0},{role:"toolbar","aria-label":t||""}),{onclick:this._handlers.onclick,onmousedown:this._handlers.onmousedown,oninput:this._handlers.input,onmouseover:this._handlers.tooltip,_hooks:{didInsert:function(t){t.el.addEventListener("keyup",function(t){var e;9!==t.which||(e=u.locateNode(document.activeElement))&&(t=e.getAttribute("data-dhx-id"),null!=(t=i.data.getItem(t))&&t.tooltip&&d.tooltip(t.tooltip,{node:e,position:d.Position.bottom,force:!0}))},!0)}}}),this.data.map(function(t){return i._factory(t)},this.data.getRoot(),!1))];return c.el("nav.dhx_widget.dhx_toolbar",{style:{height:e},class:this.config.css||""},this.scrollView&&this.scrollView.config.enable?[].concat(this.scrollView.render(t)):t)},h);function h(t,e){var i=s.call(this,t,e)||this;return i.scrollView=new l.ScrollView(function(){return i.getRootView()}),i}e.ProToolbar=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.layoutConfig={css:"vault-layout",rows:[{id:"topbar",css:"vault-topbar"},{id:"vault",css:"vault-file-grid"}]},e.layoutConfigWithoutTopbar={css:"vault-layout",rows:[{id:"vault",css:"vault-file-grid"}]}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(51),o=["byte","kilobyte","megabyte","gigabyte"];e.getBasis=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=0),t<1024?t+" "+n.default[o[e]]:this.getBasis(Math.round(t/1024),e+1)};var r;function s(t){return{extension:t.name.split(".").pop()||"none",mime:t.file?t.file.type:""}}function a(t,e){switch(t){case"jpg":case"jpeg":case"gif":case"png":case"bmp":case"tiff":case"pcx":case"svg":case"ico":return r.image;case"avi":case"mpg":case"mpeg":case"rm":case"move":case"mov":case"mkv":case"flv":case"f4v":case"mp4":case"3gp":case"wmv":case"webm":case"vob":return r.video;case"rar":case"zip":case"tar":case"tgz":case"arj":case"gzip":case"bzip2":case"7z":case"ace":case"apk":case"deb":case"zipx":case"cab":case"tar-gz":case"rpm":case"xar":return r.archive;case"xlr":case"xls":case"xlsm":case"xlsx":case"ods":case"csv":case"tsv":return r.table;case"doc":case"docx":case"docm":case"dot":case"dotx":case"odt":case"wpd":case"wps":case"pages":return r.document;case"wav":case"aiff":case"au":case"mp3":case"aac":case"wma":case"ogg":case"flac":case"ape":case"wv":case"m4a":case"mid":case"midi":return r.audio;case"pot":case"potm":case"potx":case"pps":case"ppsm":case"ppsx":case"ppt":case"pptx":case"pptm":case"odp":return r.presentation;case"html":case"htm":case"eml":return r.web;case"exe":return r.application;case"dmg":return r.apple;case"pdf":case"ps":case"eps":return r.pdf;case"psd":return r.psd;case"txt":case"djvu":case"nfo":case"xml":return r.text;default:switch(e.split("/")[0]){case"image":return r.image;case"audio":return r.audio;case"video":return r.video;default:return r.other}}}e.truncateWord=function(t,e){if(void 0===e&&(e=13),t.length<=e)return t;var i,n=t.lastIndexOf(".");return(-1===n?(i=t.substr(t.length-4),t.substr(0,e-7)):(n=n-3,i=t.substr(n),t.substr(0,e-(t.length-n))))+"..."+i},e.calculateCover=function(t){var e,i,n,o=t.width,r=t.height,o=1<(t=o/r)?(e=i=r,n=(o-i)/2,0):t<1?(n=0,(r-(e=i=o))/2):(i=e=o,n=0);return{sx:n,sy:o,sWidth:i,sHeight:e,dx:0,dy:0}},(i=r=e.FileType||(e.FileType={})).image="image",i.video="video",i.archive="archive",i.table="table",i.document="document",i.presentation="presentation",i.application="application",i.web="web",i.apple="apple",i.pdf="pdf",i.psd="psd",i.audio="audio",i.other="other",i.text="text",e.getFileType=a,e.getFileClassName=function(t){var e=s(t),t=e.mime;return a(e=e.extension,t)+" extension-"+e},e.isImage=function(t){var e=s(t),t=e.mime;return a(e.extension,t)===r.image}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(0),a=i(5),l=i(51),c=i(36),o=(r=a.View,o(u,r),u.prototype.setState=function(t,e){this._progress=t,this.config.template?this._progressText=this.config.template(t,e):this._progressText=this._progress.toFixed(1)+"%",this.paint()},u.prototype._draw=function(){return s.el(".progress-bar",{_key:this._uid},[s.el(".progress-indicator",{style:{width:this._progress+"%"}}),s.el(".progress-text",{".innerHTML":this._progressText}),s.el("button",{class:"dhx_btn dhx_btn--flat dhx_btn_small action-abort-all",onclick:this._abortUpload},l.default.cancel)])},u);function u(t,e){var i=r.call(this,null,e)||this;i.events=t,i._progress=0;return i.mount(null,s.create({render:function(){return i._draw()}})),i._abortUpload=function(){i.events.fire(c.ProgressBarEvents.cancel)},i}e.ProgressBar=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(o.prototype.add=function(t,e){void 0===e&&(e=!1),this._readerStack.push(t),e||this.read()},o.prototype.read=function(){var i,t,n=this;this._readerStack.length&&!this._isActive&&(i=this._readerStack.shift(),this._isActive=!0,(t=new FileReader).readAsDataURL(i.file),t.onload=function(t){var e=new Image;e.src=t.target.result,e.onload=function(){n._data.exists(i.id)&&n._data.update(i.id,{image:e}),n._isActive=!1,n.read()}},t.onerror=function(){n._isActive=!1,n.read()})},o.prototype.stop=function(){this._readerStack=[]},o);function o(t){this._readerStack=[],this._isActive=!1,this._data=t}e.ReadStackPreview=n},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(0),l=i(2),c=i(3),u=i(5),d=i(1),h=i(53),f=i(82),p=i(54),g=i(83),v=i(67),_=i(10),m=i(183),y=i(184),b=i(13),w=i(19),x=i(1),o=(s=u.View,o(E,s),E.prototype.destructor=function(){this.events&&this.events.clear(),this.config=this.events=this._selected=this._handlers=this._pickerState=this._inputTimeout=null,this.unmount()},E.prototype.clear=function(){this.events.fire(g.ColorpickerEvents.beforeChange,[""])&&(this._selected="",this.events.fire(g.ColorpickerEvents.change,[this._selected]),this.paint())},E.prototype.setValue=function(t){this.events.fire(g.ColorpickerEvents.beforeChange,[t])&&(!this._focusColor(t)&&w.focusManager.getFocusId()!==this._uid||(this.events.fire(g.ColorpickerEvents.change,[this._selected]),this.events.fire(g.ColorpickerEvents.colorChange,[this._selected])))},E.prototype.setFocus=function(t){this._focusColor(t)&&this.paint()},E.prototype.getValue=function(){return this._selected||""},E.prototype.getCustomColors=function(){return this.config.customColors},E.prototype.setCustomColors=function(t){this.config.customColors=t.map(function(t){return t.toUpperCase()}),this.paint()},E.prototype.setCurrentMode=function(t){"palette"!==t&&"picker"!==t||(this.config.mode=t,this.events.fire(g.ColorpickerEvents.modeChange,[t]),this.events.fire(g.ColorpickerEvents.viewChange,[t]),this.paint())},E.prototype.getCurrentMode=function(){return this.config.mode},E.prototype.getView=function(){return this.getCurrentMode()},E.prototype.setView=function(t){this.setCurrentMode(t)},E.prototype.focusValue=function(t){this.setFocus(t)},E.prototype._setHandlers=function(){var i=this;this._handlers={click:{".dhx_palette__cell":this._onColorClick},mousedown:function(t){i._pickerMove(t)},touchstart:function(t){i._pickerMove(t)},buttonsClick:function(t){i.setCurrentMode("palette"),"cancel"!==t?"apply"!==t||i.config.customColors.includes(i._pickerState.background)||(i.setValue(i._pickerState.background),i.events.fire(g.ColorpickerEvents.apply,[]),i.events.fire(g.ColorpickerEvents.selectClick,[])):i.events.fire(g.ColorpickerEvents.cancelClick,[])},customColorClick:function(){i.setView("picker")},oninput:function(e){i._inputTimeout&&clearTimeout(i._inputTimeout),i._inputTimeout=setTimeout(function(){var t=e.target.value;-1===t.indexOf("#")&&(t="#"+t),i._pickerState.customHex=t,h.isHex(t)&&(i._pickerState.hsv=h.HexToHSV(t),i.paint())},100)},contextmenu:{".dhx_palette__cell":function(t,e){t.preventDefault();e=i.config.customColors.indexOf(e.data.color);-1!==e&&i._removeCustomColor(e),i.paint()}},mouseover:{".dhx_palette__cell":function(t){t.target&&v.tooltip(p.default.rightClickToDelete,{node:t.target,position:_.Position.bottom})},".dhx_colorpicker-custom-colors__picker":function(t){t.target&&v.tooltip(p.default.addNewColor,{node:t.target,position:_.Position.bottom})}}},this.events.on(g.ColorpickerEvents.change,function(){i.paint()}),this.events.on(g.ColorpickerEvents.colorChange,function(){i.paint()})},E.prototype._pickerMove=function(t){var e=c.locate(t);this._pickerState.customHex="","picker_palette"===e?this._setPaletteGrip(t):this._setRangeGrip(t);var i="picker_palette"===e?this._setPaletteGrip:this._setRangeGrip,n=t.targetTouches?"touchmove":"mousemove",t=t.targetTouches?"touchend":"mouseup";document.addEventListener(n,i),document.addEventListener(t,function(){document.removeEventListener(n,i)}),this.paint()},E.prototype._focusColor=function(t){if(void 0===t||t.length<4)return!1;var i=t.toUpperCase();if(!h.isHex(i))return!1;var e=this.config.palette.reduce(function(e,t){return e||(t.forEach(function(t){t.toUpperCase()===i&&(e=!0)}),e)},!1),t=f.grayShades.includes(i);return e||t||((t=this.getCustomColors()).includes(i.toUpperCase())||t.push(i.toUpperCase())),this._selected=i||null,this._pickerState.hsv=h.HexToHSV(i),!0},E.prototype._removeCustomColor=function(t){this.config.customColors.splice(t,1)},E.prototype._getCells=function(t,n){var o=this;return void 0===n&&(n=""),t.reduce(function(t,e){var i=(o._selected||"").toUpperCase()===e.toUpperCase()?"dhx_palette__cell--selected":"";return t.push(a.el(".dhx_palette__cell",{class:i+" "+n,_data:{color:e},style:"background:"+e,tabindex:0})),t},[])},E.prototype._getGrayShades=function(){return a.el(".dhx_palette__row",this._getCells(f.grayShades))},E.prototype._getPalette=function(){var i=this;return this.config.palette.reduce(function(t,e){return t.push(a.el(".dhx_palette__col",i._getCells(e))),t},[])},E.prototype._getContent=function(){var t=!this.config.pickerOnly&&"palette"===this.config.mode?r([this.config.grayShades&&this._getGrayShades()],this._getPalette(),[!this.config.paletteOnly&&a.el(".dhx_colorpicker-custom-colors",{onmouseover:this._handlers.mouseover},[a.el(".dhx_colorpicker-custom-colors__header",[p.default.customColors]),a.el(".dhx_palette--custom.dhx_palette__row",r(this._getCells(this.config.customColors,"dhx_custom-color__cell"),[a.el(".dhx_colorpicker-custom-colors__picker",{class:"dxi dxi-plus",onclick:this._handlers.customColorClick,onmouseover:this._handlers.mouseover,tabindex:0})]))])]):[m.getPicker(this,this._pickerState,this._handlers)];return a.el(".dhx_widget.dhx_colorpicker",{class:this.config.css,style:{width:this.config.width},"data-dhx-widget-id":this._uid},[a.el(".dhx_palette",{onclick:this._handlers.click,oncontextmenu:this._handlers.contextmenu},t)])},E.prototype._initHotKey=function(){var t,i=this,e={enter:function(t){if(c.locateNodeByClassName(t,"dhx_palette__cell")){var e=x.rgbToHex(t.target.style.background);if(!i.events.fire(g.ColorpickerEvents.beforeChange,[e]))return;i._selected=e,i.events.fire(g.ColorpickerEvents.change,[i._selected]),i.events.fire(g.ColorpickerEvents.colorChange,[i._selected])}c.locateNodeByClassName(t,"dhx_colorpicker-custom-colors__picker")&&i.setCurrentMode("picker")}};for(t in e)this._keyManager.addHotKey(t,e[t])},E);function E(t,e){var n=s.call(this,t,e)||this;n._setPaletteGrip=function(t){var e=n.getRootView().refs.picker_palette.el.getBoundingClientRect(),i=(t.targetTouches?t.targetTouches[0]:t).clientX,t=(t.targetTouches?t.targetTouches[0]:t).clientY-e.top,i=i-e.left,t=y.calculatePaletteGrip(e,t,i),i=t.s,t=t.v;n._pickerState.hsv.s=i,n._pickerState.hsv.v=t,n.paint()},n._setRangeGrip=function(t){var e=n.getRootView().refs.hue_range.el.getBoundingClientRect(),t=(t.targetTouches?t.targetTouches[0]:t).clientX-e.left,e=y.calculateRangeGrip(e,t),t=e.h,e=e.rangeLeft;n._pickerState.hsv.h=t,n._pickerState.rangeLeft=e,n.paint()},n._onColorClick=function(t,e){e=e.data.color.toUpperCase();n.events.fire(g.ColorpickerEvents.beforeChange,[e])&&(n._selected=e,n.events.fire(g.ColorpickerEvents.change,[n._selected]),n.events.fire(g.ColorpickerEvents.colorChange,[n._selected]))},n._container=t,n.config=d.extend({css:"",grayShades:!0,pickerOnly:!1,paletteOnly:!1,customColors:[],palette:f.palette,width:"238px",mode:"palette"},n.config),n.config.palette||(n.config.palette=f.palette),n.config.customColors&&(n.config.customColors=n.config.customColors.map(function(t){return t.toUpperCase()})),n._pickerState={hsv:{h:0,s:1,v:1},customHex:""},n.events=new l.EventSystem(n),n._setHandlers(),n._keyManager=new b.KeyManager(function(t,e){return e===n._uid}),n._initHotKey();t=a.create({render:function(){return n._getContent()}});return n.mount(n._container,t),n}e.Colorpicker=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=i(53),c=i(0),u=i(54);e.getPicker=function(t,e,i){var n=l.HSVtoRGB(e.hsv);e.background=l.RGBToHex(n);var o=l.RGBToHex(l.HSVtoRGB({h:e.hsv.h,s:1,v:1})),r=t.getRootView(),s=(a=r.refs?r.refs.picker_palette.el.getBoundingClientRect():{height:200,width:218,x:0,y:0}).height-2,n=a.width-2,r=s-e.hsv.v*s-4,s=e.hsv.s*n-4,a=(n=a.width-6)-(360-e.hsv.h)/360*n,n=(l.isHex(e.customHex)?e.customHex:e.background).replace("#","");return c.el(".dhx_colorpicker-picker",{},[c.el(".dhx_colorpicker-picker__palette",{style:{height:132,background:o},onmousedown:i.mousedown,ontouchstart:i.touchstart,"data-dhx-id":"picker_palette",_ref:"picker_palette"},[c.el(".dhx_palette_grip",{style:{top:r,left:s},tabindex:0})]),c.el(".dhx_colorpicker-hue-range",{style:{height:16},onmousedown:i.mousedown,ontouchstart:i.touchstart,"data-dhx-id":"hue_range",_key:"hue_range",_ref:"hue_range"},[c.el(".dhx_colorpicker-hue-range__grip",{style:{left:a},tabindex:0})]),c.el(".dhx_colorpicker-value",[c.el(".dhx_colorpicker-value__color",{style:{background:e.background}}),c.el(".dhx_colorpicker-value__input__wrapper",[c.el("input",{class:"dhx_colorpicker-value__input",value:n,oninput:i.oninput,maxlength:"7",_key:"hex_input","aria-label":"type color in HEX format"})])]),c.el(".dhx_colorpicker-picker__buttons",[!t.config.pickerOnly&&c.el("button",{class:"dhx_button dhx_button--size_medium dhx_button--view_link dhx_button--color_primary",onclick:[i.buttonsClick,"cancel"]},u.default.cancel),c.el("button",{class:"dhx_button dhx_button--size_medium dhx_button--view_flat dhx_button--color_primary",onclick:[i.buttonsClick,"apply"]},u.default.select)])])},e.calculatePaletteGrip=function(t,e,i){var t=(n=t.refs.picker_palette.el.getBoundingClientRect()).height,n=n.width;e=e<0?0:t<e?t:e,i=i<0?0:n<i?n:i,n=Math.round(i/(n/100)),t=100-Math.round(e/(t/100)),this._pickerState.hsv.s=n/100,this._pickerState.hsv.v=t/100}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.calculatePaletteGrip=function(t,e,i){var n=t.height,t=t.width;return e=e<0?0:n<e?n:e,i=i<0?0:t<i?t:i,{s:Math.round(i/(t/100))/100,v:(100-Math.round(e/(n/100)))/100}},e.calculateRangeGrip=function(t,e){return t=t.width,e=e<0?0:t<e?t:e,{h:Math.round(e/t*360),rangeLeft:e}}},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(84)),n(e(205)),n(e(25))},function(t,e,i){"use strict";var c=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var u=i(0),d=i(187),i=(n.prototype.add=function(t){this._data.push(t)},n.prototype.clear=function(){this._data.forEach(function(t){return t.destructor&&t.destructor()}),this._data=[]},n.prototype.getSizes=function(){return this._sizes},n.prototype.toVDOM=function(e,i){var n={left:20,right:20,top:10,bottom:10},t=this._data.filter(function(t){return!t.dataReady||t.dataReady().length});this._data.forEach(function(t){return!t.scaleReady||t.scaleReady(n)});var o=0,r=0;t.forEach(function(t){t.seriesShift&&(o+=t.seriesShift(),r++)});var s=o/r,o=r?(s-o)/2:0;t.forEach(function(t){t.seriesShift&&(t.seriesShift(o),o+=s)}),this._sizes=n;var a=e-n.left-n.right,l=i-n.top-n.bottom,l=u.sv("g",{transform:"translate("+n.left+", "+n.top+")"},c([u.sv("rect.dhx_chart-graph_area",{width:0<a?a:0,height:0<l?l:0,fill:"transparent"})],t.map(function(t){return t.paint(e-(n.left+n.right),i-(n.top+n.bottom))}))),t=u.sv("defs",[d.dropShadow(),d.shadow()]);return u.sv("svg",{width:e,height:i,role:"graphics-document"},[t,l])},n);function n(){this._data=[],this._sizes={left:20,right:20,top:10,bottom:10}}e.ComposeLayer=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0);e.shadow=function(){return n.sv("filter",{id:"shadow"},[n.sv("feDiffuseLighting",{in:"SourceGraphic",result:"light","lighting-color":"white"},[n.sv("feDistantLight",{azimuth:90,elevation:25})]),n.sv("feComposite",{in:"SourceGraphic",in2:"light",operator:"arithmetic",k1:"1",k2:"0",k3:"0",k4:"0"})])},e.dropShadow=function(){return n.sv("filter",{id:"dropshadow",x:"-100%",y:"-100%",width:"300%",height:"300%"},[n.sv("feGaussianBlur",{in:"SourceAlpha",stdDeviation:2}),n.sv("feOffset",{dx:0,dy:0,result:"offsetblur"}),n.sv("feOffset",{dx:0,dy:0,result:"offsetblur"}),n.sv("feFlood",{"flood-color":"rgba(85,85,85,0.5)"}),n.sv("feComposite",{in2:"offsetblur",operator:"in"}),n.sv("feMerge",[n.sv("feMergeNode"),n.sv("feMergeNode",{in:"SourceGraphic"})])])}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i(1),h=i(0),n={circle:function(t,e,i){return h.sv("circle",{id:s.uid(),r:5,fill:e,class:"figure "+("none"!==t?"with-stroke":""),"stroke-width":2,"fill-opacity":i,stroke:t,transform:"translate(0, -1)"})},rect:function(t,e,i){return h.sv("rect",{id:s.uid(),fill:e,"fill-opacity":i,width:10,"stroke-width":2,height:10,class:"figure "+("none"!==t?"with-stroke":""),stroke:t,transform:"translate(-5, -5)"})},line:function(t,e,i,n){var o=function(t,e,i){return h.sv("stop",{offset:e+"%","stop-color":t,class:t?"":i})},r="lg"+s.uid(),o=h.sv("linearGradient",{id:r},[o(t[1],0,"heat-negative"),o(e,n,"heat-neutral"),o(t[0],100,"heat-positive")]),t=h.sv("rect",{id:s.uid(),y:16,fill:"url(#"+r+")","fill-opacity":i,width:500,"stroke-width":2,height:16,class:"figure figure-line",stroke:t});return h.sv("g",{id:s.uid(),width:500,height:16},[o,t])}};e.legendShape=function(t,e){var i;return"string"==typeof t&&(i=n[t]),i("line"===t?[e.positiveColor,e.negativeColor]:e.color||"none",e.fill,e.alpha||1,"line"===t&&e.minValue<0?100*Math.abs(e.minValue)/(e.maxValue-e.minValue):0)},e.legendTicks=function(t,e){if("line"===t&&!isNaN(e.maxValue)&&!isNaN(e.minValue)){for(var i=e.maxValue,n=e.minValue,o=e.step,t=e.tick,r=e.majorTick,s=e.tickTemplate,a=t||10,l=(i-n)/a,c=[],u=0;u<=Math.ceil(l/(o||1));u++){var d=0===u?n:(n+a*(o||1)*u).toFixed();c.push(i<d?i:d)}return c=c.map(function(t,e,i){t=(e%(r||1)==0||e===i.length-1)&&h.sv("text",{x:e===i.length-1?499.5:500*e/l*(o||1)-.5,y:34},s?s(t):t),e=h.sv("rect",{x:e===i.length-1?499.5:500*e/l*(o||1)-.5,y:18,width:1,height:4});return h.sv("g",{transform:"translate(0, 16)",class:"legend-tick"},[t,e])})}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(190),o=i(55),i=i(192),o={radial:n.RadialScale,text:i.TextScale,numeric:o.Scale};e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,a=i(30),i=i(55),o=(r=i.Scale,o(s,r),s.prototype.paint=function(t,e){var i=this;if(this.config.hidden)return null;var n=this.config.zebra,o=this.config.value,r=this.config.showAxis?this._axis.steps:null,s=this._axis.steps.map(function(t){return i.point(t)}),n={scales:this._data.map(function(t){return t[o]}),axis:s,realAxis:r,zebra:n,attribute:o};return a.radarScale(n,t,e)},s.prototype.point=function(t){return(t-this._axis.min)/(this._axis.max-this._axis.min)},s);function s(t,e){return r.call(this,t,e,"radial")||this}e.RadialScale=o},function(t,e,i){"use strict";var s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},n=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var o=i(6),r=[1,2,3,5,10],i=(a.prototype.getScale=function(){var t=this.config.log?this._logSteps():this._calculateSteps(this._getStep());return{min:t[0],max:t[t.length-1],steps:t}},a.prototype._getStep=function(){var t=this.config.maxTicks,e=this.config.max-this.config.min,i=Math.floor(o.log10(e/t)),i=Math.pow(10,i)||1,t=e/i/t;return r[n(r,[t]).sort(function(t,e){return t-e}).indexOf(t)]*i},a.prototype._calculateSteps=function(t){for(var e=Math.floor(this.config.min/t),i=Math.ceil(this.config.max/t),n=[],o="radial"===this.config.type?e-1:e;o<=i;o++){var r=t*o;Math.floor(r)!==r&&(r=parseFloat(r.toFixed(8))),n.push(r)}return n},a.prototype._logSteps=function(){var t=[];if(this.config.min<0){for(var e=Math.ceil(o.log10(-this.config.min));0<e;e--)t.push(-Math.pow(10,e));t.push(0)}if(0<this.config.max)for(var i=Math.ceil(o.log10(this.config.max)),e=0;e<=i;e++)t.push(Math.pow(10,e));return t},a.prototype._addPadding=function(){this.config.min-=this.config.padding},a);function a(t,e){void 0===e&&(e={}),this._data=t;for(var i=[],n=0,o=this._data;n<o.length;n++){var r=o[n];"number"==typeof r&&i.push(r),"string"!=typeof r||isNaN(parseFloat(r))||i.push(parseFloat(r))}t={min:Math.min.apply(Math,i),max:Math.max.apply(Math,i),maxTicks:this._data.length<20?this._data.length:20};this.config=s(s({},t),e),this.config.padding&&this._addPadding()}e.AxisCreator=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(6),l=i(55),i=i(86),c={left:i.left,right:i.right,bottom:i.bottom,top:i.top},d={left:i.leftGrid,right:i.rightGrid,bottom:i.bottomGrid,top:i.topGrid},o=(s=l.Scale,o(u,s),u.prototype.scaleReady=function(t){var e=this._data.getLength()-1,i=this._data.map(this.locator);this._axis={max:e,steps:i},t[this._position]+=this.config.size},u.prototype.point=function(t){var e=this._axis.steps.indexOf(t);if(this._padding){var i=this._axis.max+1,t=.5/i,i=e/i;return this._isXDirection?t+i:1-t-i}return this._isXDirection?e/this._axis.max:1-e/this._axis.max},u.prototype.paint=function(i,n){var o=this;if(this.config.hidden)return null;var t=this._axis.steps.map(function(t,e){return[o._isXDirection?o._getAxisPoint(e)*i:o.point(t)*n,t]});return c[this._position](t,this.config,i,n)},u.prototype.scaleGrid=function(){var s=this,a=this._position,l=this.config.grid,c=this.config.dashed,u=this.config.hidden;return{paint:function(t,e){var i,n,o=s._axis.steps.indexOf(s.config.targetLine),r=(i=t,n=e,s._axis.steps.map(function(t,e){return[s._isXDirection?s._getAxisPoint(e)*i:s._getAxisPoint(e)*n,t]})),o={targetLine:o,dashed:c,grid:l,hidden:u};return d[a](r,t,e,o)}}},u.prototype._setDefaults=function(t){this.locator=a.locator(t.text),this.config=r(r({},{scalePadding:30,textPadding:12,grid:!0,targetLine:null,showText:!0}),t)},u.prototype._getAxisPoint=function(t){var e=this._axis.max;if(this._padding){var i=e+1,n=.5/i,i=t/i;return this._isXDirection?n+i:1-n-i}return this._isXDirection?t/e:1-t/e},u);function u(){return null!==s&&s.apply(this,arguments)||this}e.TextScale=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,i=i(90),o=(r=i.default,o(s,r),s.prototype.addScale=function(t,e){t="top"===t||"bottom"===t?"left":"top";r.prototype.addScale.call(this,t,e)},s.prototype.paint=function(t,e,i){return r.prototype.paint.call(this,e,t,i)},s.prototype.getTooltipType=function(t,e,i){return void 0!==this.config.baseLine&&this._baseLinePosition>e?"left":"right"},s.prototype.getClosest=function(t,e){for(var i=[1/0,null,null,null],n=0,o=this._points;n<o.length;n++){var r=o[n],s=this._getClosestDist(t,e,r[1],r[0]);i[0]>s&&(i[0]=s,i[1]=r[1],i[2]=r[0],i[3]=r[2])}return i},s.prototype._getText=function(t){return t[4].toString()},s.prototype._getClosestDist=function(t,e,i,n){return this.config.stacked&&i<t?1/0:Math.abs(e-n)},s.prototype._path=function(t,e){return t[0]+=this._shift,"\nM "+e+" "+(t[0]-this.config.barWidth/2)+"\nH "+t[1]+"\nv "+this.config.barWidth+"\nH "+e},s.prototype._base=function(t){var e=this.config.baseLine;return this._baseLinePosition=void 0!==e?this.yScale.point(e)*t:0},s.prototype._text=function(t,e,i){e=(e+t[1])/2,t=t[0];return{x:e,y:t,class:"bar-text",transform:i&&!isNaN(i)?"rotate("+i+" "+e+" "+t+")":""}},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),B=this&&this.__assign||function(){return(B=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,G=i(0),q=i(30),Y=i(6),i=i(57),o=(r=i.default,o(s,r),s.prototype.paint=function(V,M){function T(t,e,i){return void 0===i&&(i=0),{role:"graphics-symbol","aria-roledescription":"piece of donut","aria-label":(e||"")+", "+t+" ("+Y.roundToTwoNumAfterPoint(i)+"%)"}}var H=this,t=this.config,F=t.stroke,e=t.strokeWidth,R=t.useLines,L=t.subType,A=!e||e<1?4:15<e?15:e,j=V<M?V/2:M/2,$=-.25,N=[],z=[],W=[];return 1<this._points.length&&F&&N.push(G.sv("circle",{cx:0,cy:0,r:j-.5,fill:F})),this._points.forEach(function(t,e){var i=[],n=t[0],o=t[1],r=t[2],s=t[3],a=t[4],l=0===n||1===n?-1e-6:0,c=q.getCoordinates($,j,j,1<H._points.length&&F?A/2:null),u=c[0],d=c[1],h=$+n/2;$+=n+l;var f=q.getCoordinates($,j,j,1<H._points.length&&F?-A/2:null),p=f[0],g=f[1],v=.5<n?1:0,_=q.getCoordinates(h,j,j),m=-.25<h&&h<.25,y=.5<h||h<0,b=h<.25?5:-5,c=[5,30],l=c[0],w=c[1],f=[q.getCoordinates(h,j+l,j+l),q.getCoordinates(h,j+w,j+w)],c=f[0],x=f[1];switch(H.config.subType){case"basic":var E=m?"donut-value-title start-text":"donut-value-title end-text",C=y?-20:10,S=q.getCoordinates(h,j+10,j+10),k=m?"donut-value start-text":"donut-value end-text",I={text1:{x:(R?x:S)[0],y:(R?x:S)[1]+C,width:0,height:0,class:""},text2:{x:(R?x:S)[0],y:(R?x:S)[1]+C+16,width:0,height:0,class:""},changeSector:!1,line:b,right:m,dy:C},O=G.sv("text",B(B({x:(R?x:S)[0],y:(R?x:S)[1]+C,class:E},T(o,s,n)),{tabindex:0}),[Y.verticalCenteredText(s.toString())]),E=G.sv("text",{x:(R?x:S)[0],y:(R?x:S)[1]+C+16,class:k,"aria-hidden":"true"},[Y.verticalCenteredText(o.toString())]),k=Y.getSizesSVGText(s.toString(),{font:"normal 14px Roboto",lineHeight:14});I.text1.width=k[0],I.text1.height=k[1],k=Y.getSizesSVGText(o.toString(),{font:"normal 12px Roboto",lineHeight:12}),I.text2.width=k[0],I.text2.height=k[1];var P=R?j+w:j+10;0!==z.length&&(m?(z.forEach(function(t){Y.checkPositions(I.text1,t.text1,P,P,I),Y.checkPositions(I.text1,t.text2,P,P,I)}),I.text1.class&&(I.text2.class=I.text1.class)):(z.forEach(function(t){Y.checkPositions(I.text2,t.text2,P,P,I),Y.checkPositions(I.text2,t.text1,P,P,I)}),I.text2.class&&(I.text1.class=I.text2.class)),O.attrs.x=I.text1.x,O.attrs.y=I.text1.y,E.attrs.x=I.text2.x,E.attrs.y=I.text2.y,(I.text1.class||I.text2.class)&&(O.attrs.class=I.text1.class,E.attrs.class=I.text2.class),b=I.line,R?(x[0]=I.text1.x,x[1]=I.text1.y-C):(S[0]=I.text1.x,S[1]=I.text1.y-C)),z.push(I);S=G.sv("text",B({x:7*_[0]/9,y:7*_[1]/9,class:"pie-inner-value"},T(o,s,n)),[Y.verticalCenteredText(Math.round(100*n)+"%")]);i.push(G.sv("g",{id:r+"-text",class:"chart donut"},[O,E])),i.push(S);break;case"valueOnly":var D=G.sv("text",B(B({x:7*_[0]/9,y:7*_[1]/9,class:"pie-inner-value"},T(o,s,n)),{tabindex:0}),[Y.verticalCenteredText(""+o)]);i.push(D);break;case"percentOnly":D=G.sv("text",B(B({x:7*_[0]/9,y:7*_[1]/9,class:"pie-inner-value"},T(o,s,n)),{tabindex:0}),[Y.verticalCenteredText(Math.round(100*n)+"%")]);i.push(D)}R&&"basic"===L&&(C=y?3:0,i.push(G.sv("path",{d:"M"+c[0]+" "+c[1]+" L"+x[0]+"\n\t\t\t\t\t\t\t"+(x[1]+C)+" h "+b,id:r+"-connector",class:"pie-value-connector chart donut"})));l=0,f=0,c=A/(2*Math.sin(Math.PI/H._points.length));1<H._points.length&&F&&(l=(c=q.getCoordinates(h,c,c))[0],f=c[1]);g="M "+u+" "+d+" A "+j+" "+j+" 0 "+v+" 1 "+p+" "+g+"\n\t\t\t\tL "+(0+l)+" "+(0+f),l=q.getCoordinates(h,4,4),f=l[0],l=l[1],l=G.sv("path",{d:g,_key:r,fill:a||Y.getDefaultColor(e),class:"chart donut",onclick:[H._handlers.onclick,t[1],t[2]],onmouseout:[q.pieLikeHandlers.onmouseout],onmouseover:[q.pieLikeHandlers.onmouseover,f,l],role:"presentation"});i.unshift(l),N.push(G.sv("g",{id:r},i)),1===H._points.length?W.push([V/2,M/2]):W.push([.8*_[0]+V/2,.8*_[1]+M/2])}),this._center=[V/2,M/2],this._tooltipData=W,(N=N.concat([])).push(G.sv("circle",{cx:0,cy:0,r:5*j/9,fill:"#FFFFFF",role:"presentation"})),G.sv("g",B(B({transform:"translate("+V/2+", "+M/2+")"},{"aria-label":"chart "+(this.config.text||"")}),{tabindex:0}),N)},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),Y=this&&this.__assign||function(){return(Y=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,X=i(1),U=i(0),K=i(30),J=i(6),i=i(57),o=(r=i.default,o(s,r),s.prototype.paint=function(V,M){var T=this,t=this.config,H=t.stroke,e=t.strokeWidth,F=t.gradient,R=t.useLines,L=t.showText,A=t.showTextTemplate,j=t.subType,$=!e||e<1?4:15<e?15:e,N=V<M?V/2:M/2,z=-.25,W=[],B=[],e=[],G=[],q=[];return 1<this._points.length&&H&&e.push(U.sv("circle",{cx:0,cy:0,r:N-.5,fill:H})),this._points.forEach(function(t,e){var i=[],n=t[0],o=t[1],r=t[2],s=t[3],a=t[4],l=0===n||1===n?-1e-6:0,c=a||J.getDefaultColor(e);F&&(p=F(a),g="gradient"+X.uid(),v=J.getRadialGradient(p.options,p.stops,g),c="url(#"+g+")",G.push(v));var u=K.getCoordinates(z,N,N,1<T._points.length&&H?$/2:null),e=u[0],a=u[1],d=z+n/2,h=d<.25?5:-5,f=K.getCoordinates(d,N,N);z+=n+l;var p=K.getCoordinates(z,N,N,1<T._points.length&&H?-$/2:null),g=p[0],v=p[1],u=.5<n?1:0,l=[5,30],p=l[0],_=l[1],l=[K.getCoordinates(d,N+p,N+p),K.getCoordinates(d,N+_,N+_)],p=l[0],m=l[1],y=-.25<d&&d<.25,b=.5<d||d<0,w=-.25<d&&d<.25?"pie-value start-text":"pie-value end-text";switch((L||A)&&!1!==L&&(D=U.sv("text",{x:.7*f[0],y:.7*f[1],class:"pie-inner-value","aria-hidden":"true"},[A?J.verticalCenteredText(A(o.toString())):J.verticalCenteredText(o.toString())]),i.push(D)),T.config.subType){case"basic":var x=b?-20:10,E=K.getCoordinates(d,N+10,N+10),C=y?"donut-value start-text":"donut-value end-text",S={text1:{x:(R?m:E)[0],y:(R?m:E)[1]+x,width:0,height:0,class:""},text2:{x:(R?m:E)[0],y:(R?m:E)[1]+x+16,width:0,height:0,class:""},changeSector:!1,line:h,right:y,dy:x},k=U.sv("text",Y({x:(R?m:E)[0],y:(R?m:E)[1]+x,class:w},(I=n,{role:"graphics-symbol","aria-roledescription":"piece of pie","aria-label":(s||"")+", "+o+" ("+J.roundToTwoNumAfterPoint(I)+"%)"})),[J.verticalCenteredText(s.toString())]),I=U.sv("text",{x:(R?m:E)[0],y:(R?m:E)[1]+x+16,class:C,"aria-hidden":"true"},[J.verticalCenteredText(o.toString())]),C=J.getSizesSVGText(s.toString(),{font:"normal 14px Roboto",lineHeight:14});S.text1.width=C[0],S.text1.height=C[1],C=J.getSizesSVGText(o.toString(),{font:"normal 12px Roboto",lineHeight:12}),S.text2.width=C[0],S.text2.height=C[1];var O=R?N+_:N+10;0!==W.length&&(y?(W.forEach(function(t){J.checkPositions(S.text1,t.text1,O,O,S),J.checkPositions(S.text1,t.text2,O,O,S)}),S.text1.class&&(S.text2.class=S.text1.class)):(W.forEach(function(t){J.checkPositions(S.text2,t.text2,O,O,S),J.checkPositions(S.text2,t.text1,O,O,S)}),S.text2.class&&(S.text1.class=S.text2.class)),k.attrs.x=S.text1.x,k.attrs.y=S.text1.y,I.attrs.x=S.text2.x,I.attrs.y=S.text2.y,(S.text1.class||S.text2.class)&&(k.attrs.class=S.text1.class,I.attrs.class=S.text2.class),h=S.line,R?(m[0]=S.text1.x,m[1]=S.text1.y-x):(E[0]=S.text1.x,E[1]=S.text1.y-x)),W.push(S);E=U.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[J.verticalCenteredText(Math.round(100*n)+"%")]);i.push(U.sv("g",{id:r+"-text",class:"chart donut"},[k,I])),i.push(E);break;case"valueOnly":var P=U.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[J.verticalCenteredText(""+o)]);i.push(P);break;case"percentOnly":P=U.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[J.verticalCenteredText(Math.round(100*n)+"%")]);i.push(P)}R&&"basic"===j&&(x=b?3:0,i.push(U.sv("path",{d:"M"+p[0]+" "+p[1]+" L"+m[0]+"\n\t\t\t\t\t\t\t"+(m[1]+x)+" h "+h,id:r+"-connector",class:"pie-value-connector chart pie"})));var l=0,D=0,p=$/(2*Math.sin(Math.PI/T._points.length));1<T._points.length&&H&&(l=(p=K.getCoordinates(d,p,p))[0],D=p[1]);v="M "+e+" "+a+" A "+N+" "+N+" 0 "+u+" 1 "+g+" "+v+"\n\t\t\t\tL "+(0+l)+" "+(0+D),l=K.getCoordinates(d,4,4),D=l[0],l=l[1],l=U.sv("path",{d:v,class:"chart pie",_key:r,fill:c,onclick:[T._handlers.onclick,t[1],t[2]],onmouseover:[K.pieLikeHandlers.onmouseover,D,l],onmouseout:[K.pieLikeHandlers.onmouseout],role:"presentation"});i.unshift(l),q.push(U.sv("g",{id:r},i)),1===T._points.length?B.push([V/2,M/2]):B.push([.7*f[0]+V/2,.7*f[1]+M/2])}),this._center=[V/2,M/2],this._tooltipData=B,e.push(U.sv("defs",G)),e=(e=e.concat(q)).concat([]),U.sv("g",Y(Y({transform:"translate("+V/2+", "+M/2+")"},{"aria-label":"chart "+(this.config.text||"")}),{tabindex:0}),e)},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),Y=this&&this.__assign||function(){return(Y=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,X=i(0),U=i(30),K=i(6),i=i(57),o=(r=i.default,o(s,r),s.prototype.paint=function(M,T){var H=this,t=this.config,F=t.subType,R=t.useLines,L=t.showText,A=t.showTextTemplate,j=M<T?M/2:T/2,$=.5*j,N=j/5,z=[],W=-.25,B=[],G=[],q=[];return this._points.forEach(function(t,e){var i=t[0],n=t[1],o=t[2],r=t[3],s=t[4],a=0===i||1===i?-1e-6:0,l=U.getCoordinates(W,j,$),c=l[0],u=l[1],d=W+i/2,h=d<.25?5:-5,f=U.getCoordinates(d,j,$),p=0;0<d&&d<.5&&(p=N*Math.sin(2*Math.PI*d));var g=U.getCoordinates(d,j+5+p,5+$+p),v=U.getCoordinates(d,j+30+p,30+$+p),_=W+i+a,m=U.getCoordinates(_,j,$),l=m[0],a=m[1],m=.5<i?1:0,y=-.25<d&&d<.25,b=.5<d||d<0,w=y?"pie-value start-text":"pie-value end-text";switch(H.config.subType){case"basic":var x=b?-20:10,E=y?"donut-value start-text":"donut-value end-text",C={text1:{x:(R?v:g)[0],y:(R?v:g)[1]+x,width:0,height:0,class:""},text2:{x:(R?v:g)[0],y:(R?v:g)[1]+x+16,width:0,height:0,class:""},changeSector:!1,line:h,right:y,dy:x},S=X.sv("text",Y({x:(R?v:g)[0],y:(R?v:g)[1]+x,dx:R?0<h/2+h?10:-10:null,class:w},(I=i,{role:"graphics-symbol","aria-roledescription":"piece of pie","aria-label":(r||"")+", "+n+" ("+K.roundToTwoNumAfterPoint(I)+"%)"})),[K.verticalCenteredText(r.toString())]),k=X.sv("text",{x:(R?v:g)[0],y:(R?v:g)[1]+x+16,dx:R?0<h/2+h?10:-10:null,class:E,"aria-hidden":"true"},[K.verticalCenteredText(n.toString())]),I=X.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[K.verticalCenteredText(Math.round(100*i)+"%")]),E=K.getSizesSVGText(r.toString(),{font:"normal 14px Roboto",lineHeight:14});C.text1.width=E[0],C.text1.height=E[1],E=K.getSizesSVGText(n.toString(),{font:"normal 12px Roboto",lineHeight:12}),C.text2.width=E[0],C.text2.height=E[1];var O=R?j+30+p:j+5+p,P=R?30+$+p:5+$+p;0!==q.length&&(y?(q.forEach(function(t){K.checkPositions(C.text1,t.text1,O,P,C),K.checkPositions(C.text1,t.text2,O,P,C)}),C.text1.class&&(C.text2.class=C.text1.class)):(q.forEach(function(t){K.checkPositions(C.text2,t.text2,O,P,C),K.checkPositions(C.text2,t.text1,O,P,C)}),C.text2.class&&(C.text1.class=C.text2.class)),S.attrs.x=C.text1.x,S.attrs.y=C.text1.y,k.attrs.x=C.text2.x,k.attrs.y=C.text2.y,(C.text1.class||C.text2.class)&&(S.attrs.class=C.text1.class,k.attrs.class=C.text2.class),h=C.line,R?(v[0]=C.text1.x,v[1]=C.text1.y-x):(g[0]=C.text1.x,g[1]=C.text1.y-x)),q.push(C),G.push(S,k,I);break;case"valueOnly":var D=X.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[K.verticalCenteredText(n.toString())]);G.push(D);break;case"percentOnly":D=X.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[K.verticalCenteredText(Math.round(100*i)+"%")]);G.push(D)}R&&"basic"===F&&G.push(X.sv("path",{d:"M"+g[0]+" "+g[1]+" L"+v[0]+" "+v[1]+" h "+h,class:"pie-value-connector"})),(L||A)&&!1!==L&&(V=X.sv("text",{x:.7*f[0],y:.7*f[1],class:"pie-inner-value","aria-hidden":"true"},[A?K.verticalCenteredText(A(n)):K.verticalCenteredText(n.toString())]),G.push(V));var V="";W<=0&&.5<=_?V="M "+j+" 0 v "+N+" A "+j+" "+$+" 0 1 1 "+-j+" "+N+" v "+-N:W<=0&&_<.5?V="M "+j+" 0 v "+N+" A "+j+" "+$+" 0 0 1 "+l+" "+(a+N)+" v "+-N:0<W&&W<=.5&&.5<=_?V="M "+c+" "+u+" v "+N+" A "+j+" "+$+" 0 0 1 "+-j+" "+N+" v "+-N:0<W&&_<.5&&(V="M "+c+" "+u+" v "+N+" A "+j+" "+$+" 0 0 1 "+l+" "+(a+N)+" v "+-N),V&&(V=X.sv("path",{_key:o+"__shadow__",d:V,fill:s||K.getDefaultColor(e),onclick:[H._handlers.onclick,t[1],t[2]],class:"chart pie3d addition",stroke:"none",filter:"url(#shadow)",role:"presentation"}),B.push(V));a="M "+c+" "+u+" A "+j+" "+$+" 0 "+m+" 1 "+l+" "+a+" L 0 0";B.push(X.sv("path",{d:a,_key:o,fill:s||K.getDefaultColor(e),stroke:"none",onclick:[H._handlers.onclick,t[1],t[2]],class:"chart pie3d",role:"presentation"})),1===H._points.length?z.push([M/2,T/2]):z.push([.7*f[0]+M/2,.7*f[1]+T/2]),W=_}),this._center=[M/2,T/2],this._tooltipData=z,B=B.concat(G),X.sv("g",Y(Y({transform:"translate("+M/2+", "+T/2+")"},{"aria-label":"chart "+(this.config.text||"")}),{tabindex:0}),B)},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(0),c=i(30),l=i(6),i=i(31),o=(s=i.default,o(u,s),u.prototype.addScale=function(t,e){this._scale=e},u.prototype.scaleReady=function(t){for(var e in t)t[e]+=this.config.paddings;return t},u.prototype.dataReady=function(n){var o=this;if(!this.config.active)return this._points=[];var r=l.locator(this._scale.config.value);return this._points=this._data.map(function(t,e){var i=o._locator(t),i=[i,i,t.id,i,i];return n&&(i[1]+=n[e][1]),r&&i.push(r(t)),i}),this._points},u.prototype.getTooltipText=function(t){if(this.config.tooltip){t=this._defaultLocator(this._data.getItem(t));return this.config.tooltipTemplate?this.config.tooltipTemplate(t):t}},u.prototype.paint=function(t,e){var o=this;s.prototype.paint.call(this,t,e);if(this.config.active){var i=this.config,t=[],e=this._points.map(function(t,e){return(e?"L":"M")+t[0]+" "+t[1]}).join(" ")+"Z";return t.push(a.sv("path",{d:e,stroke:i.color,"stroke-width":i.strokeWidth,fill:i.fill,"fill-opacity":i.alpha,class:"chart radar"})),i.pointType&&(e=this._points.map(function(t){return o._drawPointType(t[0],t[1],l.calcPointRef(t[2],o.id))}).map(function(t){var e,i,n;return t&&t.attrs&&(t.attrs=r(r({},t.attrs),(e=t.key,i=o._points,e&&(n=i.find(function(t){return e.includes(t[2])})),{role:"graphics-symbol","aria-roledescription":"point","aria-label":n?"point x="+n[5]+" y="+n[4]:"",tabindex:0}))),t}),t.push(a.sv("g",e))),a.sv("g",r(r({id:"seria"+i.id},{"aria-label":"chart "+(this.config.value||"")}),{tabindex:0}),t)}},u.prototype._calckFinalPoints=function(n,o){var r=this,s=n<o?n/2:o/2,a=1/this._data.getLength(),l=-.25-a;this._points.forEach(function(t,e){l+=a;var i=r._scale.point(t[0]),i=c.getCoordinates(l,i*s,i*s);t[0]=i[0]+n/2,t[1]=i[1]+o/2})},u.prototype._defaultLocator=function(t){return this._locator(t)},u.prototype._setDefaults=function(t){this._locator=l.locator(t.value),t.scales=t.scales||["radial"],this.config=r(r({},{strokeWidth:2,active:!0,tooltip:!0,paddings:5,color:"none",fill:"none",pointType:"circle"}),t),this.config.pointType&&(t=this.config.pointColor||this.config.color,this._drawPointType=this._getPointType(this.config.pointType,t))},u);function u(){return null!==s&&s.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(58),l=i(6),o=(s=a.default,o(c,s),c.prototype.addScale=function(t,e){"bottom"===t||"top"===t?(this.xScale=e,this._xLocator=l.locator(this.config.value)):(this.yScale=e,this._yLocator=l.locator(this.config.valueY))},c.prototype._setDefaults=function(t){this.config=r(r({},{active:!0,tooltip:!0,pointType:"rect"}),t);var e=this.config.pointType,t=this.config.pointColor||this.config.color;e&&(this._drawPointType=this._getPointType(e,t))},c);function c(){return null!==s&&s.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,a=i(0),l=i(91),i=i(58),o=(r=i.default,o(s,r),s.prototype._getForm=function(t,e,i,n,o){var r=e.color,s=e.strokeWidth,t=l.default(t);return a.sv("path",{id:"seria"+e.id,d:t,class:i,stroke:r,"stroke-width":s,fill:"none"})},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,h=i(0),f=i(91),i=i(88),o=(r=i.default,o(s,r),s.prototype._form=function(t,e,i,n){var o=this.config,r=o.fill,s=o.alpha,a=o.strokeWidth,l=o.color,c=o.id,u=this.config.css,d="",o=this._points[0],d=n?f.default([].concat(n).reverse())+" "+f.default(this._points,!0)+" Z":"M"+o[0]+" "+e+" V "+o[1]+" "+f.default(this._points)+" V"+e+" H "+o[0];a&&(o=f.default(this._points),l=h.sv("path",{d:o,"stroke-width":a,stroke:l,fill:"none","stroke-linecap":"butt",class:u}),i.push(l));s=h.sv("path",{id:"seria"+c,d:d,class:u,fill:r,"fill-opacity":s,stroke:"none"});return i.push(s),i},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),E=this&&this.__assign||function(){return(E=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,C=i(1),S=i(0),s=i(8),k=i(6),a=i(25),i=i(31),o=(r=i.default,o(l,r),l.prototype.scaleReady=function(t){for(var e in t)t[e]+=this.config.paddings;return t},l.prototype.toggle=function(e){var t=this.config.treeSeries.find(function(t){return t.id===e});t&&(t.active=!t.active)},l.prototype.dataReady=function(){var s=this;if(!this.config.active)return this._points=[];var a="groupName"===this.config.legendType;return this._sum=0,this._data.forEach(function(t){var e,i=s._data.getItem(s._data.getParent(t.id));i&&i.$hidden&&1<s._maxLevel||(e=s._valueLocator(t))&&(i=s._getSerie(a?t.id:e,a),t.color=(i||t).color,t.$hidden=!!i&&!i.active,!t.$hidden&&e&&(s._sum+=parseFloat(t[s.config.value])))}),this._points=[],this._data.eachChild(this._data.getRoot(),function(t){var o,e,r,i;t.$hidden||(o=s._valueLocator(t),e=s._textLocator(t),r=[],!o&&s._data.haveItems(t.id)&&(o=0,s._data.eachChild(t.id,function(t){var e,i,n;t.$hidden||(e=s._valueLocator(t),i=s._textLocator(t),n=t.color||(null===(n=s._getSerie(a?t.id:e,a))||void 0===n?void 0:n.color),e&&(o+=e),r.push([0,e,t.id,i,n]))})),t.percent=parseFloat(o)/s._sum,i=t.color||(null===(i=s._getSerie(a?t.id:o,a))||void 0===i?void 0:i.color),s._points.push([t.percent,o,t.id.toString(),e,i,{items:r}]))},!1),this._maxLevel=this._getMaxLevel(),this._points},l.prototype.paint=function(t,e){var p=this;if(!!this.config.treeSeries.find(function(t){return t.active})){var g=this.config.strokeWidth,v=[],_=[],i=[],n=1<this._maxLevel?2*g:g,t=t-n,e=e-n;this._layout={id:C.uid(),area:t*e,width:t,height:e,restArea:t*e,restWidth:t,restHeight:e,startX:n/2,startY:n/2,stroke:n};var m=this._layout.startX,y=this._layout.startY;return this._layout.width>=this._layout.height?this._layout.cols=[]:this._layout.rows=[],this._points.sort(function(t,e){return e[0]-t[0]}),this._points.forEach(function(e,t,i){var n,o,r,s,a,l,c,u,d=e[0],h=(e[1],e[2]),f=(e[3],e[4],e[5]);0!==d&&(n=(r=p._drawBar(e,t,i,p._layout,m,y,!(!f||null===(a=f.items)||void 0===a||!a.length)))[0],o=r[1],d=r[2],t=r[3],i=r[4],a=r[5],r=r[6],m=a[0],y=a[1],_.push(S.sv("g",{id:h},[n,o,r])),v.push(d),f&&null!==(s=f.items)&&void 0!==s&&s.length&&(s=a[2]-g,a=a[3]-g,l={id:C.uid(),parent:p._layout.id,area:s*a,width:s,height:a,restArea:s*a,restWidth:s,restHeight:a,startX:m+g/2,startY:y+g/2+("asc"!==p.config.direction&&r?g/2:0),stroke:g},c=l.startX,u=l.startY,l.width>=l.height?l.cols=[]:l.rows=[],f.items.map(function(t){return t[0]=t[1]/e[1]}),f.items.sort(function(t,e){return e[0]-t[0]}),f.items.forEach(function(t,e,i){var n=t[2],o=p._drawBar(t,e,i,l,c,u,!1),r=o[0],t=o[1],e=o[2],i=o[3],o=o[4];_.push(S.sv("g",{id:n},[r,t])),v.push(e),c=i,u=o})),m=t,y=i)}),i.push(S.sv("defs",v)),i=i.concat(_),S.sv("g",E(E({id:"seria"+this.config.id},{"aria-label":"chart "+(this.config.text||"")}),{tabindex:0,transform:"asc"===this.config.direction?"rotate(180 "+(this._layout.startX+this._layout.width/2)+" "+(this._layout.startY+this._layout.height/2)+")":""}),i)}},l.prototype._drawBar=function(t,e,i,n,o,r,s){var a=this,l=t[0],c=t[1],u=t[2],d=t[3],h=t[4],f=this.config,p=f.stroke,g=f.showText,v=f.showTextTemplate,_=l*n.area,m=this._getDeepParent(n),y=s&&0<l&&d,b=n.startX+n.width-m.restWidth,w=n.startY+n.height-m.restHeight;o=b<o?b:o,r=w<r?w:r;f=this._getBar(m,_,o,r,i,e,n.area),b=f[0],w=f[1],m=f[2],o=f[3],r=f[4];if(!(b[2]<0||b[3]<0)){this._recountParentArea(_,r,n);var x,f=y?S.sv("rect",{x:b[0]+n.stroke/4,y:"asc"===this.config.direction?b[1]+b[3]-this._headerHeight-n.stroke/2:b[1]+n.stroke/4,width:b[2]-n.stroke/2,height:this._headerHeight+n.stroke/4,stroke:p,"stroke-width":n.stroke/2,class:"treeMap-header",_key:u,onclick:function(){return a._toggleGroup(u)}}):null,_=y?S.sv("text",{x:b[0]+b[2]/2,y:"asc"===this.config.direction?b[1]+b[3]-this._headerHeight/2-n.stroke/2:b[1]+this._headerHeight/2+n.stroke/2,class:"header-text","aria-hidden":"true",transform:"asc"===this.config.direction?"rotate(180 "+(b[0]+b[2]/2)+" "+(b[1]+b[3]-this._headerHeight/2-n.stroke/2)+")":""},[v?k.verticalCenteredText(v(null==d?void 0:d.toString())):k.verticalCenteredText(null==d?void 0:d.toString())]):null,r=s&&0<l&&d?S.sv("g",{},[f,_]):null,y=v?v(null==d?void 0:d.toString()):null==d?void 0:d.toString(),f=k.getSizesSVGText(y,{font:"normal 12px Roboto",lineHeight:14})[0]<b[2]-2*n.stroke,_=C.uid(),v=b[2]>2*n.stroke&&b[3]>2*n.stroke?S.sv("clipPath",{id:_,"clip-rule":"nonzero"},[S.sv("rect",{x:b[0]+n.stroke,y:b[1]+n.stroke,width:b[2]-2*n.stroke,height:b[3]-2*n.stroke,fill:"none",stroke:"black"})]):null,e=S.sv("rect",E(E({},(x=l,{role:"graphics-symbol","aria-roledescription":"piece of treeMap","aria-label":(d||"")+", "+c+" ("+k.roundToTwoNumAfterPoint(x)+"%)"})),{x:b[0],y:b[1],width:b[2],height:b[3],stroke:p,"stroke-width":n.stroke,class:"chart treeMap",_key:u,fill:h,onclick:[this._handlers.onclick,t[1],t[2]],onmousemove:1<this._maxLevel&&1===this._getDataLevel(u)?"":[this._handlers.onmousemove,i[e][2],this.id],onmouseleave:1<this._maxLevel&&1===this._getDataLevel(u)?"":[this._handlers.onmouseleave,i[e][2],this.id]})),y=g?S.sv("text",{x:f?w[0]:b[0]+n.stroke,y:w[1],class:"treeMap-inner-value "+(f?"":"start-text"),"aria-hidden":"true","clip-path":'url("#'+_+'")',transform:"asc"===this.config.direction?"rotate(180 "+w[0]+" "+w[1]+")":""},[k.verticalCenteredText(y)]):null;return s&&r&&(b[1]+="asc"===this.config.direction?0:this._headerHeight,b[3]-=this._headerHeight+n.stroke/4),[e,y,v,m,o,b,r]}},l.prototype._getBar=function(t,e,i,n,l,c,u){var o,r,s,a,d=this,h=function(t,e,i,n){for(var o={area:0,width:t.width,height:t.height},r=e;r<=i;r++)o.area+=l[r][0]*u;"rows"===n?o.width=o.area/o.height:o.height=o.area/o.width;var s="rows"===n?o.width:t.area/o.height,a="rows"===n?t.area/o.width:o.height;return(s/a>d._aspectRatio||a/s>d._aspectRatio)&&.01<l[c][0]&&i!==d._points.length-1?h(t,e,i+1,n):[s,a,o]},f=i,p=n,g=t.restWidth>t.restHeight?"cols":"rows",v="cols"==g?"rows":"cols",_="cols"==g?e/t.restHeight:t.restWidth,m="cols"==g?t.restHeight:e/t.restWidth;return(m/_>this._aspectRatio||_/m>this._aspectRatio)&&0!==Math.round(e-t.restArea)&&c<l.length-2&&e<t.restArea?(o=void 0,r={id:C.uid(),area:e,width:_,height:m},s=h(r,c,c+1,v),r.width=s[0],r.height=s[1],o=s[2],_=r.width,m=r.height,(s={id:C.uid(),area:o.area,width:o.width,height:o.height,restArea:o.area,restWidth:"cols"==v?o.width-_:o.width,restHeight:"cols"==v?o.height:o.height-m})[v]=[r],o=s,r.parent=o.id,t[g]||t[v]?t[v]?(a=C.uid(),t[v].push(((s={id:a,parent:t.id,area:t.restArea,width:t.restWidth,height:t.restHeight,restArea:t.restArea,restWidth:"cols"==g?t.restWidth-o.width:t.restWidth,restHeight:"cols"==g?t.restHeight:t.restHeight-o.height})[g]=[o],s)),o.parent=a):(t[g].push(o),o.parent=t.id):(t[g]=[o],o.parent=t.id),"cols"==g?(t.restWidth-=o.width,p+=m):(t.restHeight-=o.height,f+=_)):(r={id:C.uid(),area:e,width:_,height:m},t[v]&&t.restArea.toFixed(2)>e.toFixed(2)?(a=C.uid(),t[v].push(((v={id:a,parent:t.id,area:t.restArea,width:t.restWidth,height:t.restHeight,restArea:t.restArea,restWidth:"cols"==g?t.restWidth-_:t.restWidth,restHeight:"cols"==g?t.restHeight:t.restHeight-m})[g]=[r],v)),r.parent=a):((t.cols||t.rows).push(r),r.parent=t.id,"cols"==g?t.restWidth-=_:t.restHeight-=m),"cols"==g?(f+=_,p=0===Math.round(t.restArea-e)?p+m:p):(p+=m,f=0===Math.round(t.restArea-e)?f+_:f)),[[i,n,r.width,r.height],[i+r.width/2,n+r.height/2],f,p,r.parent]},l.prototype._setDefaults=function(t){this.config=E(E({},{active:!0,stroke:"#FFFFFF",strokeWidth:2,showText:!0,tooltip:!0,paddings:5,color:"none",fill:"none",direction:"desc"}),t),this._headerHeight=25,this._aspectRatio=2.5,this._valueLocator=k.locator(t.value),this._textLocator=k.locator(t.text)},l.prototype._defaultLocator=function(t){return[this._valueLocator(t),this._textLocator(t)]},l.prototype._getSerie=function(i,n){var o=this;return this.config.treeSeries.find(function(t){if(n){var e=o._data.getParent(i);return t.id===e||t.id===i}return t.from&&t.to&&i>=t.from&&i<t.to||t.less&&i<t.less||t.greater&&i>t.greater})},l.prototype._getDataLevel=function(t){var e=1;return this._data.eachParent(t,function(){e++}),e},l.prototype._getMaxLevel=function(){var e=this,i=1;return this._data.forEach(function(t){t=e._getDataLevel(t.id);i=Math.max(t,i)}),i},l.prototype._getDeepParent=function(t){var e=null===(e=t.cols||t.rows)||void 0===e?void 0:e.find(function(t){return t.restArea&&0<Math.round(t.restArea)});return e?this._getDeepParent(e):t},l.prototype._getLayoutObj=function(t,e){var i;if(void 0===e&&(e=this._layout),e.id===t)i=e;else{var n=e.cols||e.rows;if(!n||!n.length)return;for(var o=0;o<n.length&&!(i=this._getLayoutObj(t,n[o]));o++);}return i},l.prototype._recountParentArea=function(t,e,i){e=this._getLayoutObj(e,i);e&&e.id!==i.parent&&(e.restArea-=t,e.parent&&this._recountParentArea(t,e.parent,i))},l.prototype._toggleGroup=function(e){var i=this,n=0;this.config.treeSeries.forEach(function(t){t.active&&n++}),this._data.eachChild(this._data.getRoot(),function(t){t.id!==e&&("groupName"===i.config.legendType?(1<n&&(i._getSerie(t.id,!0).active=!0),i._events.fire(a.ChartEvents.toggleSeries,[t.id])):(t.$hidden=!t.$hidden,i._events.fire(s.DataEvents.change)))},!1)},l);function l(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,_=i(1),S=i(16),k=i(0),m=i(8),l=i(6),i=i(31),o=(a=i.default,o(c,a),c.prototype.scaleReady=function(t){for(var e in t)t[e]+=this.config.paddings;return t},c.prototype.dataReady=function(){var a,l,c=this,u=[];this._years=[],this._points=[],this.config.startDate&&(a="string"==typeof this.config.startDate?S.stringToDate(this.config.startDate,this.config.dateFormat):this.config.startDate),this.config.endDate&&(l="string"==typeof this.config.endDate?S.stringToDate(this.config.endDate,this.config.dateFormat):this.config.endDate),(null==l?void 0:l.getTime())<(null==a?void 0:a.getTime())&&m.dhxError("Incorrect endDate/startDate property set, see docs: https://docs.dhtmlx.com/suite/chart/api/chart_series_config"),this._data.forEach(function(t){var i=Number(c._valueLocator(t)),n=c._dateLocator(t);"string"==typeof n&&(n=S.stringToDate(n,c.config.dateFormat));var e=null===n||void 0===n?void 0:n.getTime(),o=(null===(s=t.id)||void 0===s?void 0:s.toString())||_.uid();if(a||l){var r=S.DateHelper.dayStart(n).getTime(),t=a&&S.DateHelper.dayStart(a).getTime()||0,s=l&&S.DateHelper.dayStart(l).getTime()||1/0;if(r<t||s<r)return}r=u.findIndex(function(t){var e=t[0],t=t[1],e=S.DateHelper.isSameDay(new Date(e),n);return e&&(i+=t),e});-1<r&&(u[r]=[e,i,o]),i&&(c._minValue=!c._minValue||i<c._minValue?i:c._minValue,c._maxValue=!c._maxValue||i>c._maxValue?i:c._maxValue),r<0&&u.push([e,i,o])}),u.sort(function(t,e){return t[0]-e[0]}),this._minValue===this._maxValue&&(this._minValue-=10),this._maxValue=!isNaN(this.config.maxValue)&&this.config.maxValue||this._maxValue,this._minValue=!isNaN(this.config.minValue)&&this.config.minValue||this._minValue,this._maxValue=10*Math.ceil(this._maxValue/10),this._minValue=10*Math.floor(this._minValue/10);var t=a||new Date(u[0][0]),e=l||new Date(u[u.length-1][0]),i=t.getFullYear(),n=e.getFullYear();this.config.startDate||this.config.endDate?this.config.startDate&&!this.config.endDate?(t=new Date(t.getFullYear()+1,t.getMonth(),t.getDate()-1),e.getTime()>t.getTime()&&t.setFullYear(e.getFullYear()+1),n=(l=t).getFullYear()):!this.config.startDate&&this.config.endDate&&(a=new Date(i,0,1)):(n=e.getFullYear(),a=new Date(i,0,1),l=new Date(n,11,31));for(var o=0,r=new Date(a.getTime()),s=new Date(l.getFullYear(),l.getMonth(),l.getDate()+1);!S.DateHelper.isSameDay(r,s);){var d=u.length&&new Date(u[o][0]),h=function(){return r.setDate(r.getDate()+1)};if(u.length)if(o<u.length-1){for(;!S.DateHelper.isSameDay(r,d);)this._points.push([r.getTime(),0,_.uid()]),h();this._points.push(u[o]),o+=1}else S.DateHelper.isSameDay(r,d)?this._points.push(u[o]):this._points.push([r.getTime(),0,_.uid()]);else this._points.push([r.getTime(),0,_.uid()]);h()}for(var f=new Date,p=a.getMonth(),g=a.getDate(),v=0;v<this._points.length;v++)f.setTime(this._points[v][0]),(0===v||p===f.getMonth()&&g===f.getDate()&&v!==this._points.length-1)&&this._years.push({year:f.getFullYear(),startIndex:v});return this._points},c.prototype.paint=function(t,e){var m,y,b=this,i=this.config,n=i.days,w=i.months;switch(this.config.weekStart){case"saturday":m=-1;break;case"monday":m=1;break;default:m=0}switch(this.config.weekStart){case"saturday":y=s([null==n?void 0:n[6]],n.slice(0,-1));break;case"monday":y=s(n.slice(1),[null==n?void 0:n[0]]);break;default:y=n}var x=[],i=[],E=0,C=0;this._years.forEach(function(t,i){for(var e=t.year,n=t.startIndex,o=new Date(e,0,1),r=[],s=[],a=0,l=1,c=n;c<b._points.length&&c!==(null===(_=b._years[i+1])||void 0===_?void 0:_.startIndex);c++){var u=b._points[c],d=u[0],h=u[1],f=u[2],p=new Date;p.setTime(d);var g=p.getMonth(),v=S.DateHelper.addDay(p,-1*m).getDay();0!==v||S.DateHelper.isSameDay(o,p)||(l+=1);var _=0<=h?h/b._maxValue||0:h/b._minValue||0;0<b._maxValue*b._minValue&&(_=(h-b._minValue)/(b._maxValue-b._minValue));u=10+l*(b._cellSize+2),d=.5+(v+1)*(b._cellSize+2)+i*(y.length*b._cellSize+b._headerHeight);6===v&&(C=d+4*b._cellSize),r.push(k.sv("rect",{x:u,y:d,fill:b.config.color,width:b._cellSize,height:b._cellSize,onclick:[b._handlers.onclick,h,f],onmousemove:[b._handlers.onmousemove,f,b.id],onmouseleave:[b._handlers.onmouseleave,f,b.id],class:b.config.color?"":"heat-neutral"},[]));v="";0<=h&&!b.config.positiveColor?v="heat-positive":h<0&&!b.config.negativeColor&&(v="heat-negative"),0!==_&&r.push(k.sv("rect",{x:u,y:d,fill:0<=h?b.config.positiveColor:b.config.negativeColor,"fill-opacity":isFinite(_)?_:0,width:b._cellSize,height:b._cellSize,onclick:[b._handlers.onclick,h,f],onmousemove:[b._handlers.onmousemove,f,b.id],onmouseleave:[b._handlers.onmouseleave,f,b.id],class:v},[])),a=u+b._cellSize,1===p.getDate()&&(u=null==w?void 0:w[g],p=10+l*(b._cellSize+2),g=b._cellSize-2+i*(y.length*b._cellSize+b._headerHeight)+y.length*(b._cellSize+2)+4.5,u=k.sv("text",{x:p,y:8+g+12.5,class:"start-text"},[u]),g=k.sv("rect",{x:p,y:g,height:8,width:1}),s.push(k.sv("g",{class:"heat-month-text"},[g,u])))}t=y.map(function(t,e){return k.sv("text",{x:20,y:.5+(e+1)*(b._cellSize+2)+b._cellSize/2+i*(y.length*b._cellSize+b._headerHeight),class:"end-text heat-day-text"},[k.sv("tspan",{dy:"0.5ex"},[t])])}),n=k.sv("text",{x:10+b._cellSize+2,y:b._cellSize-4+i*(y.length*b._cellSize+b._headerHeight),class:"start-text heat-year-text"},[e]);x.push(k.sv("g",{id:e+"_year"},[n,s,t,r])),E=a<E?E:a});i.push(k.sv("defs",[])),i=i.concat(x);e=e/C<1?e/C:1,t=(t-E*e)/2;return k.sv("g",r(r({id:"seria"+this.config.id},{"aria-label":"chart "+(this.config.text||"")}),{tabindex:0,transform:"translate("+(0<t?t:0)+", 26) scale("+e+")"}),i)},c.prototype._setDefaults=function(t){this.config=r(r({},{tooltip:!0,paddings:5,weekStart:"sunday",days:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),t),this._headerHeight=70,this._cellSize=16,this._valueLocator=l.locator(t.value),this._dateLocator=l.locator(t.date)},c.prototype._defaultLocator=function(t){return[this._valueLocator(t),S.getFormattedDate("%d/%m/%y",this._dateLocator(t))]},c);function c(){return null!==a&&a.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var g=i(10),s=i(6),v=i(89),n=i(25),i=(o.prototype.destructor=function(){this._tooltip&&(document.body.removeChild(this._tooltip),this._tooltip=null)},o.prototype._showLineTooltip=function(t){for(var e,i,n,o,r,s="",a=this._chart.getRootView(),l=0,c=0,u=t;c<u.length;c++){var d,h,f,p=u[c];l+=p.top,this._prevLine=a&&a.refs&&a.refs["line"+Math.round(p.left)]&&a.refs["line"+Math.round(p.left)].el,this._prevLine.classList.add("grid-line__active"),!p.text||(h=(d=this._chart.getSeries(p.seriaId)).getPoints()).length&&d.config.tooltip&&(f=d.config.pointColor||(d.config.color&&"none"!==d.config.color?d.config.color:d.config.fill),f=v.getShadeHTMLHelper("empty"!==d.config.pointType&&d.config.pointType?d.config.pointType:"simpleRect",f),s+='<div class="line-point" _ref="dhx_tooltip_'+d.config.id+'_box">\n\t\t\t\t<svg class="dhx_tooltip_svg" role="graphics-document" style="width: 8px; height: 8px;">'+f(4,4,h[0][2])+'</svg>\n\t\t\t\t<span class="dhx_line-point-text" _ref="dhx_tooltip_'+d.config.id+'_text">'+p.text+"</span>\n\t\t\t</div>")}s&&(this._tooltip||this._createTooltip(),e=document.body.offsetHeight,r=document.body.offsetWidth,this._tooltip.innerHTML=s,this._tooltip.classList.add("dhx_chart_tooltip__visible"),o=l/t.length,i=this._prevLine.getBoundingClientRect(),n=this._tooltip.offsetHeight,t=this._tooltip.offsetWidth,e<(o=o-n/2+i.top+window.scrollY)+n&&(o-=o+n-e),r<(r=i.left+10)+t&&(r=i.left-t-10),(t=g.getZIndex(this._chart.getRootNode()))&&(this._tooltip.style.zIndex=t.toString()),this._tooltip.style.left=r+"px",this._tooltip.style.top=o+"px")},o.prototype._showTooltip=function(t,e){this._tooltip||this._createTooltip();var i=document.body.offsetHeight,n=document.body.offsetWidth;this._tooltip.innerHTML=t,this._tooltip.classList.add("dhx_chart_tooltip__visible");var o=this._tooltip.offsetHeight,r=this._tooltip.offsetWidth,s=e.pageY+10,t=e.pageX+10;i<s+o&&(s=e.pageY-o),n<t+r&&(t=e.pageX-r-10);r=g.getZIndex(this._chart.getRootNode());r&&(this._tooltip.style.zIndex=r.toString()),this._tooltip.style.left=t+"px",this._tooltip.style.top=s+"px"},o.prototype._showTooltipOnClosest=function(t){this._tooltip||this._createTooltip();var e,i,n,o,r=this._chart.getSeries(t[4]);!r||(o=r.getTooltipText(t[3]))&&(e=this._chart._layers.getSizes(),i=this._chart.getRootNode().getBoundingClientRect(),this._tooltip.innerHTML=o,this._tooltip.classList.add("dhx_chart_tooltip__visible"),n=document.body.offsetHeight,r=this._tooltip.offsetHeight,n<(o=t[2]+i.top+r/2+e.top-("radar"===this._chart.config.type?10:15))+r&&(o=t[2]+i.top-r/2+e.top-("radar"===this._chart.config.type?10:15)),n<o+r&&this._tooltip.classList.remove("dhx_chart_tooltip__visible"),(r=g.getZIndex(this._chart.getRootNode()))&&(this._tooltip.style.zIndex=r.toString()),this._tooltip.style.left=i.left+t[1]+10+"px",this._tooltip.style.top=o+"px")},o.prototype._createTooltip=function(){this._tooltip=document.createElement("div"),this._tooltip.setAttribute("data-dhx-widget-id",this._chart._uid),this._tooltip.classList.add("dhx_chart_tooltip","dhx_chart_tooltip_line","dhx_chart_tooltip__hidden","tooltip-text"),document.body.appendChild(this._tooltip)},o.prototype._initEvents=function(){var a=this;this._chart.events.on(n.ChartEvents.chartMouseMove,function(n,o){var r,s;a._prevLine&&a._prevLine.classList.remove("grid-line__active"),a._mouseOverBar||(r=[],s=[1/0,null,null,null,null],a._chart.eachSeries(function(t){var e,i=t.config.type;"line"===i||"spline"===i||"splineArea"===i||"area"===i?"number"==typeof(e={value:(e=t.getClosestVertical(n))[4],text:t.getTooltipText(e[3]),seriaId:t.config.id,left:e[1],top:e[2]}).left&&"number"==typeof e.top&&r.push(e):"pie"!==i&&"pie3D"!==i&&"donut"!==i&&"radar"!==i||(i=t.getClosest(n,o),s[0]>i[0]&&(s[0]=i[0],s[1]=i[1],s[2]=i[2],s[3]=i[3],s[4]=t.id))}),r.length?(r.sort(function(t,e){return e.value-t.value}),a._showLineTooltip(r)):a._showTooltipOnClosest(s))}),this._chart.events.on(n.ChartEvents.seriaMouseMove,function(t,e,i){a._mouseOverBar=!0;var n=a._chart.getRootView(),o=a._chart.getSeries(e),r=o.getTooltipText(t),e=n&&n.refs&&n.refs[s.calcPointRef(t,e)].el;null!=e&&e.setAttribute("fill-opacity",.6<o.config.alpha?o.config.alpha-.4:1),r?a._showTooltip(r,i):a._tooltip&&a._tooltip.classList.remove("dhx_chart_tooltip__visible")}),this._chart.events.on(n.ChartEvents.seriaMouseLeave,function(t,e){a._mouseOverBar=!1;var i=a._chart.getRootView(),n=a._chart.getSeries(e);"area"===n.config.type||"treeMap"===n.config.type||"calendarHeatMap"===n.config.type||null!=(e=i&&i.refs&&i.refs[s.calcPointRef(t,e)].el)&&e.setAttribute("fill-opacity",n.config.alpha),a._tooltip&&a._tooltip.classList.remove("dhx_chart_tooltip__visible")}),this._chart.events.on(n.ChartEvents.chartMouseLeave,function(){a._tooltip&&a._tooltip.classList.remove("dhx_chart_tooltip__visible"),a._prevLine&&a._prevLine.classList.remove("grid-line__active")})},o);function o(t){this._chart=t,this._initEvents()}e.Tooltip=i},function(t,e,i){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(3),i=(n.prototype.pdf=function(t){this._rawExport(t,"pdf",this._view)},n.prototype.png=function(t){this._rawExport(t,"png",this._view)},n.prototype._rawExport=function(t,e,i){void 0===t&&(t={}),t.url=t.url||"https://export.dhtmlx.com/"+this._name+"/"+e+"/"+this._version,"pdf"===e&&(n=t.pdf||{},t.pdf=r(r({},n),{printBackground:!1}));var e="",n=i.config.exportStyles;"boolean"!=typeof t.exportStyles&&!Array.isArray(t.exportStyles)||(n=t.exportStyles),!0===n?e=s.getPageLinksCss()+"<style>"+s.getPageInlineCss()+"</style>":null!=n&&n.length&&(e=""+s.getPageLinksCss(n));n=document.createElement("div");n.setAttribute("style","display: none;");i=i.getRootView().node.el.cloneNode(!0);i.setAttribute("data-dhx-theme",t.theme||"light"),n.appendChild(i);var e="\n\t\t\t"+e+"\n\t\t\t"+n.innerHTML+"\n\t\t",o=document.createElement("form");o.setAttribute("method","POST"),o.setAttribute("action",t.url),o.innerHTML='<input type="hidden" name="raw"><input type="hidden" name="config">',o.childNodes[0].value=e,o.childNodes[1].value=JSON.stringify(t),document.body.appendChild(o),o.submit(),null!==(t=n.parentNode)&&void 0!==t&&t.removeChild(n),setTimeout(function(){var t;null!==(t=o.parentNode)&&void 0!==t&&t.removeChild(o)},100)},n);function n(t,e){this._name=t,this._view=e,this._version="8.2.3"}e.Exporter=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),g=this&&this.__assign||function(){return(g=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,v=i(92),_=i(87),m=i(1),y=i(6),b=i(85),i=i(84),o=(r=i.Chart,o(s,r),s.prototype.setConfig=function(r){var s,a=this;if(this.config=r,this._layers.clear(),this._series={},this._scales={},r.scales)for(var t in r.scales){var e=g({},r.scales[t]);void 0!==r.scales[t].min&&(s=r.scales[t].min),e.type=e.type||this._detectScaleType(e,t),r.scales.radial&&"radial"!==t&&(e.hidden=!0),this._setScale(e,t)}var i,n,o,l,c,u,d,h,f,p=new v.default;this._layers.add(p),null!==(c=r.series)&&void 0!==c&&c.forEach(function(t,e){var i;void 0!==t.baseLine&&t.baseLine<s&&(t.baseLine=void 0);var n=g({},t);switch(n.type=n.type||r.type,n.type){case"bar":case"xbar":case"area":case"splineArea":n.color||(n.color=n.fill||y.getDefaultColor(e)),n.fill||(n.fill=n.color||y.getDefaultColor(e));break;case"treeMap":n.legendType=(null===(i=r.legend)||void 0===i?void 0:i.type)||"groupName",null!==(i=null===(i=r.legend)||void 0===i?void 0:i.treeSeries)&&void 0!==i&&i.map(function(t,e){var i;t.active=null===(i=t.active)||void 0===i||i,t.id=null!==(i=t.id)&&void 0!==i?i:m.uid(),t.color||(t.color=y.getDefaultColor(e,"range"===n.legendType))}),n.treeSeries=null===(i=r.legend)||void 0===i?void 0:i.treeSeries;break;case"calendarHeatMap":n.dateFormat||(n.dateFormat="%d/%m/%y");break;case"scatter":n.pointColor||(n.pointColor=n.color||y.getDefaultColor(e))}t=_.default[n.type];(n.barWidth||a.config.barWidth)&&(n.barWidth=n.barWidth||a.config.barWidth);var o=new t(a.data,n,a.events),t=y.getScales(r.scales);(1<t.length&&"radial"!==t[0]||"radial"===t[0]?t:["bottom","left"]).forEach(function(t){var e=a._scales[t];e&&(o.addScale(t,e),n.stacked?e.add(p):e.add(o))}),a._series[o.id]=o,(n.stacked?p:a._layers).add(o)}),r.legend&&((f=g({},r.legend)).series&&(f.$seriesInfo=f.series.map(function(t){return a._series[t]})),"calendarHeatMap"===this.config.type&&(i=(d=null===(h=null===(u=this.config)||void 0===u?void 0:u.series)||void 0===h?void 0:h[0]).value,n=d.positiveColor,o=d.negativeColor,l=d.color,c=d.minValue,u=d.maxValue,f.type="scale",f.form="line",f.values?(d=(h=null===(d=null===(h=this.config)||void 0===h?void 0:h.series)||void 0===d?void 0:d[0]).color,h=h.value,f.values=g(g({},f.values),{color:d,positiveColor:n,negativeColor:o,value:h,minValue:c,maxValue:u})):f.values={positiveColor:n,negativeColor:o,color:l,text:"",value:i,minValue:c,maxValue:u}),f=new b.Legend(this.data,f,this.events),this._layers.add(f)),this.paint()},s);function s(t,e){return void 0===e&&(e={}),r.call(this,t,e)||this}e.ProChart=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(93)),n(e(209)),n(e(94))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(208);e.getEditor=function(t,e){return new n.InputEditor(t,e)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(0),n=i(94),i=(r.prototype.endEdit=function(){var t;this._input&&(t=this._input.value,this._dataView.events.fire(n.DataViewEvents.beforeEditEnd,[t,this._item.id])?(this._input.removeEventListener("blur",this._handlers.onBlur),this._input.removeEventListener("change",this._handlers.onChange),this._input.removeEventListener("keydown",this._handlers.onKeyDown),this._handlers={},this._mode=!1,this._dataView.events.fire(n.DataViewEvents.afterEditEnd,[t,this._item.id])):this._input.focus())},r.prototype.toHTML=function(t){this._mode=!0;var e=this._config,i=e.itemsInRow,n=e.gap,e=function(t){return parseFloat(t)};return o.el(".dhx_input__wrapper",{style:{width:"calc("+100/i+"% - "+e(n)+" * "+(i-1)/i+"px)",maxWidth:"calc("+100/i+"% - "+e(n)+" * "+(i-1)/i+"px)",marginRight:t?"":n},role:"presentation"},[o.el("div.dhx_input__container",{style:{height:"100%"},role:"presentation"},[o.el("input.dhx_input",{class:(this._item.css?" "+this._item.css:"")+(t?" dhx_dataview-item--last-item-in-row":""),style:{padding:"8px, 12px",width:"100%",height:"100%"},_hooks:{didInsert:this._handlers.didInsert},_key:this._item.id,"data-dhx-id":this._item.id})])])},r.prototype._initHandlers=function(){var e=this;this._handlers={onBlur:function(){e.endEdit()},onChange:function(){e.endEdit()},onKeyDown:function(t){"Enter"===t.key&&e._item.value===e._input.value&&e.endEdit(),"Escape"===t.key&&(e._input.value=e._item.value,e.endEdit())},didInsert:function(t){t=t.el;(e._input=t).focus(),t.value=e._item.value,t.setSelectionRange(0,t.value.length),t.addEventListener("change",e._handlers.onChange),t.addEventListener("blur",e._handlers.onBlur),t.addEventListener("keydown",e._handlers.onKeyDown)}}},r);function r(t,e){var i=this;this._dataView=e,this._config=e.config,this._item=t,this._dataView.events.on(n.DataViewEvents.focusChange,function(t,e){i._mode&&e!==i._item.id&&i.endEdit()}),this._initHandlers()}e.InputEditor=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l=this&&this.__assign||function(){return(l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(21),a=i(93),c=i(0),o=(r=a.DataView,o(u,r),u.prototype.destructor=function(){r.prototype.destructor.call(this),this.scrollView=null},u.prototype.scrollTo=function(t){var e,i=this.getRootView();i&&i.node&&i.node.el&&void 0!==t&&(e=null!==(i=this.scrollView)&&void 0!==i&&i.config.enable?null===(e=this.getRootNode())||void 0===e?void 0:e.querySelector(".scroll-view"):this.getRootNode(),this._scrollTo(t,e))},u.prototype._renderList=function(){var n=this,t=this.data.getRawData(0,-1),e=this.config,o=e.itemsInRow,i=e.css,r=e.gap,s=0,a=t.reduce(function(t,e,i){return 0===s&&t.push([]),t[t.length-1].push(n._renderItem(e,i)),s=(s+1)%o,t},[]),e=a.map(function(t,e){return c.el(".dhx_dataview-row",{style:{margin:r},"aria-label":"Row "+(e+1)},t)}),t=this.scrollView&&this.scrollView.config.enable,i=(i||"")+" dhx_widget dhx_dataview"+(this.config.multiselection&&this.selection.getItem()?" dhx_no-select--pointer":"")+(t?" dhx_dataview--scroll-view":"");return c.el("",l(l(l({},this._handlers),{"data-dhx-widget-id":this._uid,class:i,style:{height:this.config.height}}),this.getDataViewAriaAttrs(this.config,this.data.getLength(),a.length,o)),t?[this.scrollView.render(e)]:e)},u);function u(t,e){void 0===e&&(e={});var i=r.call(this,t,e)||this;return i.scrollView=new s.ScrollView(function(){return i.getRootView()}),i.paint(),i}e.ProDataView=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(95)),n(e(227)),n(e(4))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(33),l=i(16),c=i(2),d=i(0),u=i(1),h=i(14),f=i(12),p=i(4),g=i(7),v=i(13),o=(s=h.Label,o(_,s),_.prototype.destructor=function(){this.events&&this.events.clear(),this.calendar&&this.calendar.destructor(),this._popup&&this._popup.destructor(),this.events=this._uid=this._propsCalendar=this._propsItem=this._props=this._isValid=null,s.prototype._destructor.call(this),this.unmount()},_.prototype.setProperties=function(t){if(t&&!u.isEmptyObj(t)&&this.events.fire(p.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e],this._propsCalendar.includes(e)&&(this.calendar.config[e]=t[e]));this.events.fire(p.ItemEvent.afterChangeProperties,[this.getProperties()]),this.calendar.paint(),this.paint()}},_.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},_.prototype.show=function(){var t=this.config,e=t.value;t.hidden&&this.events.fire(p.ItemEvent.beforeShow,[e])&&(this.config.hidden=!1,this.events.fire(p.ItemEvent.afterShow,[e]))},_.prototype.hide=function(t){var e=this.config,i=e.value;e.hidden&&!t||!this.events.fire(p.ItemEvent.beforeHide,[i,t])||(this.config.hidden=!0,this.events.fire(p.ItemEvent.afterHide,[i,t]))},_.prototype.isVisible=function(){return!this.config.hidden},_.prototype.disable=function(){this.config.disabled=!0,this.paint()},_.prototype.enable=function(){var t;this.config.disabled=!1,null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.paint()},_.prototype.isDisabled=function(){return!!this.config.disabled},_.prototype.validate=function(t,e){void 0===t&&(t=!1);var i=void 0===e?this.getValue():e,e="date"===(null===(e=this.config.valueFormat)||void 0===e?void 0:e.toLowerCase())?i instanceof Date:l.stringToDate(i,this.calendar.config.dateFormat,!0);if(t||this.events.fire(p.ItemEvent.beforeValidate,[i]))return this._isValid=this.config.validation?this.config.validation(i):!!e,t||this.events.fire(p.ItemEvent.afterValidate,[i,this._isValid]),this._isValid},_.prototype.clearValidate=function(){this.config.$validationStatus=p.ValidationStatus.pre,this.paint()},_.prototype.setValue=function(t){void 0!==t&&t!==this.config.value&&this.calendar.setValue(t)},_.prototype.getValue=function(t){var e;return this.calendar.getValue("date"===(null===(e=this.config.valueFormat)||void 0===e?void 0:e.toLowerCase())||t)||""},_.prototype.focus=function(){var t=this;d.awaitRedraw().then(function(){t.getRootView().refs.input.el.focus()})},_.prototype.blur=function(){var t=this;d.awaitRedraw().then(function(){t._popup.hide(),t.getRootView().refs.input.el.blur()})},_.prototype.clear=function(){""!==this.config.value&&this.calendar.clear()},_.prototype.getWidget=function(){return this.calendar},_.prototype._initView=function(t){var e,i=this;if(u.isEmptyObj(t))throw new Error("Check the configuration is correct");for(e in this.calendar&&this.calendar.destructor(),this._popup&&this._popup.destructor(),this.config={type:t.type,id:t.id,name:t.name,disabled:!1,editable:!1,hidden:!1,value:"",mode:"calendar",weekStart:"sunday",weekNumbers:!1,timePicker:!1,dateFormat:"%d/%m/%y",timeFormat:24,thisMonthOnly:!1,valueFormat:"string",required:!1,icon:"",placeholder:"",label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t)"id"!==e&&"type"!==e&&"name"!==e&&(this.config[e]=t[e]);this._popup=new f.Popup,this.calendar=new a.Calendar(null,g.widgetConfig(t)),this._popup.attach(this.calendar),this.config.hidden&&d.awaitRedraw().then(function(){i.hide(!0)})},_.prototype._initHandlers=function(){var n=this;this.calendar.events.on(a.CalendarEvents.beforeChange,function(t){var e;return""!==t&&"date"!==(null===(e=n.config.valueFormat)||void 0===e?void 0:e.toLowerCase())&&(t=l.getFormattedDate(n.calendar.config.dateFormat,t)),n.events.fire(p.ItemEvent.beforeChange,[t])}),this.calendar.events.on(a.CalendarEvents.change,function(){var t;n.config.value=n.calendar.getValue("date"===(null===(t=n.config.valueFormat)||void 0===t?void 0:t.toLowerCase())),n.events.fire(p.ItemEvent.change,[n.config.value]),g.isVerify(n.config)&&n.validate(),n._popup.hide(),n.paint()}),this.events.on(p.ItemEvent.afterValidate,function(){n.config.$validationStatus=n._isValid?p.ValidationStatus.success:p.ValidationStatus.error,n.paint()}),this.events.on(p.ItemEvent.blur,function(){n._popupIsFocus=!1,n.paint()}),this._popup.events.on(f.PopupEvents.afterHide,function(){document.activeElement!==n.getRootView().refs.input.el&&n.events.fire(p.ItemEvent.blur,[n.getValue()]),n.paint()}),document.addEventListener("keydown",function(t){var e,i=document.activeElement;(null===(e=null===(e=null===(e=n.getRootView())||void 0===e?void 0:e.refs)||void 0===e?void 0:e.input)||void 0===e?void 0:e.el)!==i&&!n._popup.isVisible()||n.events.fire(p.ItemEvent.keydown,[t])}),document.addEventListener("mousedown",function(){n._popup.getContainer()!==document.activeElement&&(n._popupIsFocus=!1)})},_.prototype._getHandlers=function(){var e=this;return{onblur:function(){e._popup.isVisible()||e.events.fire(p.ItemEvent.blur,[e.getValue()]),e.paint()},onfocus:function(){var t;e._popup.isVisible()||(t=e.getRootView().refs.input.el,e._popup.show(t,{theme:t}),e.events.fire(p.ItemEvent.focus,[e.getValue()]),e.paint())},oninput:function(t){t=t.target.value;e.events.fire(p.ItemEvent.input,[t])},onchange:function(t){t=t.target.value;e.config.editable&&l.stringToDate(t,e.calendar.config.dateFormat,!0)?e.setValue(t):""===t&&e.clear()}}},_.prototype._initHotkeys=function(){var t,i=this,e={"shift+tab":function(){i._applyTab()},tab:function(){i._applyTab()},escape:function(){i._popup.isVisible()&&i.getRootView().refs.input.el.focus(),i._popup.hide()},enter:function(t){t.preventDefault(),i._popup.isVisible()||(t=i.getRootView().refs.input.el,i._popup.show(t,{theme:t}))},arrowRight:function(t){var e=i._popup.getContainer();i._popup.isVisible()&&!i._popupIsFocus&&(t.preventDefault(),e.focus(),i._popupIsFocus=!0)}};for(t in e)this._keyManager.addHotKey(t,e[t])},_.prototype._draw=function(){var t=this.config,e=t.icon,i=t.required,n=t.disabled,o=t.placeholder,r=t.name,s=t.id,a=t.editable,l=t.label,c=t.helpMessage,t=this.calendar.getValue(),u=this._popup.isVisible()||(null===(u=null===(u=null===(u=this.getRootView())||void 0===u?void 0:u.refs)||void 0===u?void 0:u.input)||void 0===u?void 0:u.el)===document.activeElement;return d.el("div.dhx_form-group",{class:g.getFormItemCss(this.config,g.isVerify(this.config),u)},[this._drawLabel(),d.el(".dhx_input__wrapper",[d.el("div.dhx_input__container",{},[d.el(".dhx_input__icon",{class:e||"dxi dxi-calendar-today"}),d.el("input.dhx_input.dhx_input--icon-padding",{tabindex:0,"data-dhx-id":r||s,_key:this._uid,_ref:"input",value:t,type:"text",required:i,disabled:n,class:u&&"dhx_input--focus",placeholder:o||"",name:r||"",id:s||this._uid,onfocus:this._handlers.onfocus,oninput:this._handlers.oninput,onchange:this._handlers.onchange,onblur:this._handlers.onblur,autocomplete:"off",readOnly:!a,"aria-label":l||(a?"type or":"")+" select date","aria-describedby":c?"dhx_label__help_"+(s||this._uid):null})]),g.getValidationMessage(this.config)&&d.el("span.dhx_input__caption",{},g.getValidationMessage(this.config))])])},_.prototype._applyTab=function(){var t;document.activeElement===(null===(t=null===(t=null===(t=this._popup.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.content)||void 0===t?void 0:t.el)||this._popupIsFocus||this._popup.hide()},_);function _(t,e){var i=s.call(this,null,e)||this;i.events=new c.EventSystem,i._isValid=!0,i._popupIsFocus=!1,i._propsItem=["required","validation","valueFormat","icon","placeholder","editable","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage"],i._propsCalendar=["mode","mark","disabledDates","weekStart","weekNumbers","timePicker","dateFormat","timeFormat","thisMonthOnly"],i._props=r(g.baseProps,i._propsItem,i._propsCalendar),i._keyManager=new v.KeyManager(function(){var t,e=document.activeElement;return(null===(t=null===(t=null===(t=i.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.input)||void 0===t?void 0:t.el)===e||i._popup.isVisible()}),i._initView(e),i._initHandlers(),i._initHotkeys();return i.mount(t,d.create({render:function(){return i._draw()}})),i}e.DatePicker=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,p=i(0),l=i(5),c=i(4),u=i(2),d=i(1),h=i(7),o=(a=l.View,o(f,a),f.prototype.destructor=function(){this.events&&this.events.clear(),this.config=this._propsItem=this._props=this.events=this._handlers=this._uid=null,this.unmount()},f.prototype.setProperties=function(t){if(t&&!d.isEmptyObj(t)&&this.events.fire(c.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this.config.text=this.config.text||this.config.value,this.events.fire(c.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},f.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},f.prototype.show=function(){var t=this.config,e=t.text,e=void 0===e?"":e;t.hidden&&this.events.fire(c.ItemEvent.beforeShow,[e])&&(this.config.hidden=!1,this.events.fire(c.ItemEvent.afterShow,[e]))},f.prototype.hide=function(t){void 0===t&&(t=!1);var e=this.config,i=e.text,i=void 0===i?"":i;e.hidden&&!t||!this.events.fire(c.ItemEvent.beforeHide,[i,t])||(this.config.hidden=!0,this.events.fire(c.ItemEvent.afterHide,[i,t]))},f.prototype.isVisible=function(){return!this.config.hidden},f.prototype.disable=function(){this.config.disabled=!0,this.paint()},f.prototype.enable=function(){var t;this.config.disabled=!1,null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.paint()},f.prototype.isDisabled=function(){return!!this.config.disabled},f.prototype.focus=function(){var t=this;p.awaitRedraw().then(function(){t.getRootView().refs.button.el.focus()})},f.prototype.blur=function(){var t=this;p.awaitRedraw().then(function(){t.getRootView().refs.button.el.blur()})},f.prototype._draw=function(){var t=this.config,e=t.color,i=t.size,n=t.view,o=t.full,r=t.loading,s=t.circle,a=t.icon,l=t.text,c=t.disabled,u=t.submit,d=t.id,h=t.name,f={danger:" dhx_button--color_danger",secondary:" dhx_button--color_secondary",primary:" dhx_button--color_primary",success:" dhx_button--color_success"}[e]||" dhx_button--color_primary",t={small:" dhx_button--size_small",medium:" dhx_button--size_medium"}[i]||" dhx_button--size_medium",e={flat:" dhx_button--view_flat",link:" dhx_button--view_link"}[n]||" dhx_button--view_flat",i=o?" dhx_button--width_full":"",n=s?" dhx_button--circle":"",o=r?" dhx_button--loading":"",s=a&&!l?" dhx_button--icon":"";return p.el("button",{disabled:c,id:d,"data-dhx-id":h||d,onclick:this._handlers.onclick,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,type:u?"submit":"button",class:"dhx_button"+f+t+e+i+n+o+s,_ref:"button"},[a&&p.el("span.dhx_button__icon",{class:a}),l&&p.el("span.dhx_button__text",l),r&&p.el("span.dhx_button__loading",[p.el("span.dhx_button__loading-icon.dxi.dxi-loading")])])},f);function f(t,e){var i=a.call(this,t,r({disabled:!1,hidden:!1,submit:!1,full:!1,circle:!1,loading:!1,view:"flat",size:"medium",color:"primary",width:"content",height:"content",url:"",text:"",icon:""},e))||this;i._propsItem=["submit","url","text","icon","view","size","color","full","circle","loading"],i._props=s(h.baseProps,i._propsItem),i.config.text=i.config.text||i.config.value||"",i.events=new u.EventSystem,i._handlers={onclick:function(t){return i.events.fire(c.ItemEvent.click,[t])},onblur:function(){return i.events.fire(c.ItemEvent.blur,[i.config.text])},onfocus:function(){return i.events.fire(c.ItemEvent.focus,[i.config.text])},onkeydown:function(t){return i.events.fire(c.ItemEvent.keydown,[t])}},i.config.hidden&&p.awaitRedraw().then(function(){i.hide(!0)});return i.mount(t,p.create({render:function(){return i._draw()}})),i}e.Button=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,l=i(0),c=i(11),u=i(2),d=i(96),h=i(14),f=i(4),p=i(1),g=i(7),v=i(12),o=(a=h.Label,o(_,a),_.prototype.destructor=function(){this.events&&this.events.clear(),this.layout&&this.layout.destructor(),this.events=this._uid=this._propsItem=this._props=this._isValid=this._buttons=null,a.prototype._destructor.call(this),this.unmount()},_.prototype.setProperties=function(e,t){if(void 0!==e&&this.events.fire(f.ItemEvent.beforeChangeProperties,[this.getProperties()])){if("object"==typeof e&&!p.isEmptyObj(e)){for(var i in e)this._props.includes(i)&&(this.config[i]=e[i]);e.hasOwnProperty("options")&&(this._initView(this.config),this._initHandlers())}var n;"string"!=typeof e||!t||p.isEmptyObj(t)||(n=this._buttons.find(function(t){return t.config.id===e}))&&n.setProperties(t,!0),this.events.fire(f.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},_.prototype.getProperties=function(e){if(void 0!==e)return this._buttons.find(function(t){return t.config.id===e}).getProperties();var t,i={};for(t in this.config)this._props.includes(t)&&(i[t]=this.config[t]);return i},_.prototype.getValue=function(e){if(void 0===e){var i={};return this._buttons.forEach(function(t){i[t.config.id]=t.getValue()}),i}var t=this._buttons.find(function(t){return t.config.id===e});if(e&&t)return t.getValue()},_.prototype.setValue=function(t){if(void 0!==t&&!p.isEmptyObj(t)){for(var n=this.getValue(),o=this,e=0,i=Object.entries(t);e<i.length;e++){var r=i[e];!function(e,t){var i=o._buttons.find(function(t){return t.config.id===e});i&&(i=i.config.value,n[e]="string"==typeof i?t&&i||"":!!t)}(r[0],r[1])}if(this.events.fire(f.ItemEvent.beforeChange,[n])){for(var s=this,a=0,l=Object.entries(t);a<l.length;a++){var c=l[a];!function(e,t){var i=s._buttons.find(function(t){return t.config.id===e});i&&i.setValue(!!t,!0)}(c[0],c[1])}this.events.fire(f.ItemEvent.change,[this.getValue()]),g.isVerify(this.config)&&this.validate()}}},_.prototype.isChecked=function(e){if(void 0===e){var i={};return this._buttons.forEach(function(t){i[t.config.id]=t.isChecked()}),i}var t=this._buttons.find(function(t){return t.config.id===e});if(e&&t)return t.isChecked()},_.prototype.focus=function(e){var i=this;l.awaitRedraw().then(function(){if(i._buttons.length){if(!e)return i._buttons[0].focus();var t=i._buttons.find(function(t){return t.config.id===e});t&&t.focus()}})},_.prototype.blur=function(){var t=this;l.awaitRedraw().then(function(){t._buttons.length&&t._buttons.forEach(function(t){t.blur()})})},_.prototype.show=function(e){var t,i=e&&this._buttons.find(function(t){return t.config.id===e});p.isDefined(e)&&!i||(!i&&(this.config.hidden||this._buttons.some(function(t){return t.config.hidden}))||(null===(t=null==i?void 0:i.config)||void 0===t?void 0:t.hidden))&&this.events.fire(f.ItemEvent.beforeShow,[this.getValue(),e])&&(i?null!=i&&i.show():this._buttons.forEach(function(t){return t.show()}),this.config.hidden=!1,this.events.fire(f.ItemEvent.afterShow,[this.getValue(),e]))},_.prototype.hide=function(e,t){var i,n=e&&this._buttons.find(function(t){return t.config.id===e});p.isDefined(e)&&!n||(!n&&this.config.hidden||(null===(i=null==n?void 0:n.config)||void 0===i?void 0:i.hidden))&&!t||!this.events.fire(f.ItemEvent.beforeHide,[this.getValue(),e,t])||(n?(null!=n&&n.hide(),this.config.hidden=this._buttons.every(function(t){return t.config.hidden})):(this._buttons.forEach(function(t){return t.hide()}),this.config.hidden=!0),this.events.fire(f.ItemEvent.afterHide,[this.getValue(),e,t]))},_.prototype.isVisible=function(e){var t,i=this._buttons.find(function(t){return t.config.id===e});return!(this.config.hidden||p.isDefined(e)&&null!==(t=null==i?void 0:i.config)&&void 0!==t&&t.hidden)},_.prototype.enable=function(e){var t,i=e&&this._buttons.find(function(t){return t.config.id===e});p.isDefined(e)&&!i||(!i&&(this.config.disabled||this._buttons.some(function(t){return t.config.disabled}))||(null===(t=null==i?void 0:i.config)||void 0===t?void 0:t.disabled))&&(i?null!=i&&i.enable():this._buttons.forEach(function(t){return t.enable()}),this.config.disabled=!1,null!==(i=this.parent)&&void 0!==i&&i.isDisabled()&&this.parent.enable(),this.paint())},_.prototype.disable=function(e,t){var i,n=e&&this._buttons.find(function(t){return t.config.id===e});p.isDefined(e)&&!n||(!n&&this.config.disabled||(null===(i=null==n?void 0:n.config)||void 0===i?void 0:i.disabled))&&!t||(n?(null!=n&&n.disable(),this.config.disabled=this._buttons.every(function(t){return t.config.disabled})):(this._buttons.forEach(function(t){return t.disable()}),this.config.disabled=!0),this.paint())},_.prototype.isDisabled=function(e){var t=this._buttons.find(function(t){return t.config.id===e});return Boolean(this.config.disabled||p.isDefined(e)&&(null===(t=null==t?void 0:t.config)||void 0===t?void 0:t.disabled))},_.prototype.clear=function(){var e;this._buttons.some(function(t){return t.isChecked()})&&(e={},this._buttons.forEach(function(t){e[t.config.id]="string"==typeof t.config.value&&""}),this.events.fire(f.ItemEvent.beforeChange,[e])&&(this._buttons.forEach(function(t){t.clear(!0)}),this.events.fire(f.ItemEvent.change,[e]),g.isVerify(this.config)&&this.validate()))},_.prototype.validate=function(t){var e=this;if(void 0===t&&(t=!1),t||this.events.fire(f.ItemEvent.beforeValidate,[this.getValue()]))return this.config.required&&(this._isValid=this._buttons.some(function(t){return t.config.$required&&!!t.config.checked})),t||(this._buttons.forEach(function(t){t.config.$validationStatus=e._isValid?f.ValidationStatus.success:f.ValidationStatus.error}),this.config.$validationStatus=this._isValid?f.ValidationStatus.success:f.ValidationStatus.error,this.events.fire(f.ItemEvent.afterValidate,[this.getValue(),this._isValid])),this._isValid},_.prototype.clearValidate=function(){this.config.$validationStatus=f.ValidationStatus.pre,this._buttons.forEach(function(t){t.clearValidate()}),this.paint()},_.prototype._initView=function(e){var t,n=this;if(p.isEmptyObj(e)||!e.options||p.isEmptyObj(e.options))throw new Error("Check the configuration is correct");for(t in this.layout&&this.layout.destructor(),this._buttons.length&&(this._buttons.forEach(function(t){t.destructor()}),this._buttons=[]),this.config={type:e.type,id:e.id,name:e.name,disabled:!1,hidden:!1,options:{},required:!1,label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},e)"id"!==t&&"type"!==t&&"name"!==t&&(this.config[t]=e[t]);this.config.helpMessage&&(this._helper=new v.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"}),this._helper.attachHTML(this.config.helpMessage));var i=this.config.options.rows||this.config.options.cols;null!=i&&i.forEach(function(t){t.id=t.id||p.uid(),t.$group=!0}),this.layout=new c.Layout(null,this.config.options),null!=i&&i.forEach(function(t){var i=new d.Checkbox(null,r(r({},t),{disabled:e.disabled||t.disabled,name:e.name,$required:e.required}));n._buttons.push(i),n.layout.getCell(t.id).attach(i),i.events.on(f.ItemEvent.beforeChange,function(t){var e=r(r({},n.getValue()),((e={})[i.config.id]=t,e));return n.events.fire(f.ItemEvent.beforeChange,[e])}),i.events.on(f.ItemEvent.change,function(){n.events.fire(f.ItemEvent.change,[n.getValue()]),g.isVerify(n.config)&&n.validate()}),i.events.on(f.ItemEvent.focus,function(t,e){n.events.fire(f.ItemEvent.focus,[n.getValue(),e])}),i.events.on(f.ItemEvent.blur,function(t,e){n.events.fire(f.ItemEvent.blur,[n.getValue(),e])}),i.events.on(f.ItemEvent.keydown,function(t,e){n.events.fire(f.ItemEvent.keydown,[t,e])}),i.events.on(f.ItemEvent.afterHide,function(){l.awaitRedraw().then(function(){var t;null!==(t=n.layout.getCell(i.config.id))&&void 0!==t&&t.hide()})}),i.events.on(f.ItemEvent.afterShow,function(){var t;null!==(t=n.layout.getCell(i.config.id))&&void 0!==t&&t.show()})}),this.config.value&&this.setValue(this.config.value),this.clearValidate(),!this.config.disabled&&this._buttons.length&&this._buttons.every(function(t){return t.config.disabled})&&(this.config.disabled=!0),this.config.hidden&&l.awaitRedraw().then(function(){return n.hide(void 0,!0)})},_.prototype._initHandlers=function(){var t=this;this.events.on(f.ItemEvent.change,function(){t.config.value=t.getValue(),t.paint()}),this.events.on(f.ItemEvent.afterValidate,function(){t.config.$validationStatus=t._isValid?f.ValidationStatus.success:f.ValidationStatus.error,t.paint()})},_.prototype._draw=function(){var t=this.config.hidden?" dhx_form-group--hidden":"",e=this.config,i=e.label,n=e.labelWidth,o=e.helpMessage,r=e.required,s=e.name,e=e.id;return l.el("fieldset.dhx_form-group-fieldset",{},[l.el("div.dhx_form-group.dhx_form-group--checkbox-group",{class:g.getFormItemCss(this.config,g.isVerify(this.config))+t,"data-dhx-id":s||e,role:"radiogroup"},[i||n||o||r?this._drawLabel():null,l.el("div.dhx_checkbox-group--container",{},[this.layout&&l.inject(this.layout.getRootView()),r&&g.getValidationMessage(this.config)&&l.el("span.dhx_input__caption",g.getValidationMessage(this.config))])])])},_);function _(t,e){var i=a.call(this,null,e)||this;i.events=new u.EventSystem,i._buttons=[],i._isValid=!0,i._propsItem=["required","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage","options"],i._props=s(g.baseProps,i._propsItem),i._initView(e),i._initHandlers();return i.mount(t,l.create({render:function(){return i._draw()}})),i}e.CheckboxGroup=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,l=i(0),c=i(1),u=i(11),d=i(12),h=i(2),f=i(215),p=i(7),g=i(14),v=i(4),o=(a=g.Label,o(_,a),_.prototype.destructor=function(){this.events&&this.events.clear(),this.layout&&this.layout.destructor(),this.events=this._uid=this._propsItem=this._props=this._isValid=this._buttons=null,a.prototype._destructor.call(this),this.unmount()},_.prototype.setProperties=function(e,t){if(void 0!==e&&this.events.fire(v.ItemEvent.beforeChangeProperties,[this.getProperties()])){if("object"==typeof e&&!c.isEmptyObj(e)){for(var i in e)this._props.includes(i)&&(this.config[i]=e[i]);e.hasOwnProperty("options")&&(this._initView(this.config),this._initHandlers())}var n;"string"!=typeof e||!t||c.isEmptyObj(t)||(n=this._buttons.find(function(t){return t.config.id===e}))&&n.setProperties(t),this.events.fire(v.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},_.prototype.getProperties=function(e){if(void 0!==e)return this._buttons.find(function(t){return t.config.id===e}).getProperties();var t,i={};for(t in this.config)this._props.includes(t)&&(i[t]=this.config[t]);return i},_.prototype.getValue=function(){var e=this;return this._buttons.forEach(function(t){t.getValue()&&(e.config.value=t.getValue()||"")}),this.config.value||""},_.prototype.setValue=function(t){t!==this.config.value&&(this._setValue(t),this.events.fire(v.ItemEvent.change,[t]),p.isVerify(this.config)&&this.validate())},_.prototype.focus=function(e){var i=this;l.awaitRedraw().then(function(){if(i._buttons.length){if(!e)return i._buttons[0].focus();var t=i._buttons.find(function(t){return t.config.id===e});return t?t.focus():void 0}})},_.prototype.blur=function(){var t=this;l.awaitRedraw().then(function(){t._buttons.length&&t._buttons.forEach(function(t){return t.blur()})})},_.prototype.show=function(e){var t,i=e&&this._buttons.find(function(t){return t.config.id===e});c.isDefined(e)&&!i||(!i&&(this.config.hidden||this._buttons.some(function(t){return t.config.hidden}))||(null===(t=null==i?void 0:i.config)||void 0===t?void 0:t.hidden))&&this.events.fire(v.ItemEvent.beforeShow,[this.getValue(),e])&&(i?null!=i&&i.show():this._buttons.forEach(function(t){return t.show()}),this.config.hidden=!1,this.events.fire(v.ItemEvent.afterShow,[this.getValue(),e]))},_.prototype.hide=function(e,t){var i,n=e&&this._buttons.find(function(t){return t.config.id===e});c.isDefined(e)&&!n||(!n&&this.config.hidden||(null===(i=null==n?void 0:n.config)||void 0===i?void 0:i.hidden))&&!t||!this.events.fire(v.ItemEvent.beforeHide,[this.getValue(),e,t])||(n?(null!=n&&n.hide(),this.config.hidden=this._buttons.every(function(t){return t.config.hidden})):(this._buttons.forEach(function(t){return t.hide()}),this.config.hidden=!0),this.events.fire(v.ItemEvent.afterHide,[this.getValue(),e,t]))},_.prototype.isVisible=function(e){var t,i=this._buttons.find(function(t){return t.config.id===e});return!(this.config.hidden||c.isDefined(e)&&null!==(t=null==i?void 0:i.config)&&void 0!==t&&t.hidden)},_.prototype.enable=function(e){var t,i=e&&this._buttons.find(function(t){return t.config.id===e});c.isDefined(e)&&!i||(!i&&(this.config.disabled||this._buttons.some(function(t){return t.config.disabled}))||(null===(t=null==i?void 0:i.config)||void 0===t?void 0:t.disabled))&&(i?null!=i&&i.enable():this._buttons.forEach(function(t){return t.enable()}),this.config.disabled=!1,null!==(i=this.parent)&&void 0!==i&&i.isDisabled()&&this.parent.enable(),this.paint())},_.prototype.disable=function(e,t){var i,n=e&&this._buttons.find(function(t){return t.config.id===e});c.isDefined(e)&&!n||(!n&&this.config.disabled||(null===(i=null==n?void 0:n.config)||void 0===i?void 0:i.disabled))&&!t||(n?(null!=n&&n.disable(),this.config.disabled=this._buttons.every(function(t){return t.config.disabled})):(this._buttons.forEach(function(t){return t.disable()}),this.config.disabled=!0),this.paint())},_.prototype.isDisabled=function(e){var t=this._buttons.find(function(t){return t.config.id===e});return Boolean(this.config.disabled||c.isDefined(e)&&(null===(t=null==t?void 0:t.config)||void 0===t?void 0:t.disabled))},_.prototype.clear=function(){""!==this.config.value&&(this._buttons.forEach(function(t){t.clear()}),this.config.value="",this.events.fire(v.ItemEvent.change,[this.config.value]))},_.prototype.validate=function(t){var e=this;if(void 0===t&&(t=!1),t||this.events.fire(v.ItemEvent.beforeValidate,[this.getValue()]))return this.config.required&&(this._isValid=this._buttons.some(function(t){return e.config.required&&!!t.config.checked})),t||(this._buttons.forEach(function(t){t.config.$validationStatus=e._isValid?v.ValidationStatus.success:v.ValidationStatus.error}),this.config.$validationStatus=this._isValid?v.ValidationStatus.success:v.ValidationStatus.error,this.events.fire(v.ItemEvent.afterValidate,[this.getValue(),this._isValid])),this._isValid},_.prototype.clearValidate=function(){this.config.$validationStatus=v.ValidationStatus.pre,this._buttons.map(function(t){t.clearValidate()}),this.paint()},_.prototype._initView=function(i){var t,n=this;if(c.isEmptyObj(i)||!i.options||c.isEmptyObj(i.options))throw new Error("Check the configuration is correct");for(t in this.layout&&this.layout.destructor(),this._buttons.length&&(this._buttons.forEach(function(t){t.destructor()}),this._buttons=[]),this.config={type:i.type,id:i.id,name:i.name,disabled:!1,hidden:!1,options:{},required:!1,label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},i)"id"!==t&&"type"!==t&&"name"!==t&&(this.config[t]=i[t]);this.config.hidden&&l.awaitRedraw().then(function(){return n.hide(void 0,!0)});var e=this.config.options.rows||this.config.options.cols;null!=e&&e.forEach(function(t){t.id=t.id||c.uid()}),this.layout=new u.Layout(null,this.config.options),null!=e&&e.forEach(function(t){var e=new f.RadioButton(null,r(r({},t),{disabled:i.disabled||t.disabled,$name:i.name,$required:i.required}));n._buttons.push(e),n.layout.getCell(t.id).attach(e),e.events.on(f.RadioButtonEvents.beforeChange,function(){return n.events.fire(v.ItemEvent.beforeChange,[e.config.value||""])}),e.events.on(f.RadioButtonEvents.change,function(){n._buttons.map(function(t){t.config.id!==e.config.id&&t.setValue(!1)}),n.events.fire(v.ItemEvent.change,[n.getValue()]),p.isVerify(n.config)&&n.validate()}),e.events.on(f.RadioButtonEvents.focus,function(t,e){n.events.fire(v.ItemEvent.focus,[t,e])}),e.events.on(f.RadioButtonEvents.blur,function(t,e){n.events.fire(v.ItemEvent.blur,[t,e])}),e.events.on(f.RadioButtonEvents.keydown,function(t,e){n.events.fire(v.ItemEvent.keydown,[t,e])}),e.events.on(v.ItemEvent.afterHide,function(){l.awaitRedraw().then(function(){n.layout.getCell(e.config.id).hide()})}),e.events.on(v.ItemEvent.afterShow,function(){n.layout.getCell(e.config.id).show()})}),!this.config.disabled&&this._buttons.length&&this._buttons.every(function(t){return t.config.disabled})&&(this.config.disabled=!0)},_.prototype._initHandlers=function(){var t=this;this.events.on(v.ItemEvent.beforeChange,function(){return t.paint()}),this.events.on(v.ItemEvent.change,function(){t.config.value=t.getValue(),t.paint()}),this.events.on(v.ItemEvent.afterValidate,function(){t.config.$validationStatus=t._isValid?v.ValidationStatus.success:v.ValidationStatus.error,t.paint()})},_.prototype._draw=function(){var t=this.config,e=t.label,i=t.labelWidth,n=t.helpMessage,o=t.required,r=t.hidden,s=t.name,t=t.id,r=r?" dhx_form-group--hidden":"";return l.el("fieldset.dhx_form-group-fieldset",{},[l.el("div.dhx_form-group.dhx_form-group--radio-group",{class:p.getFormItemCss(this.config,p.isVerify(this.config))+r,"data-dhx-id":s||t},[e||i||n||o?[this._drawLabel()]:null,l.el("div.dhx_radio-group--container",{},[this.layout&&l.inject(this.layout.getRootView()),o&&p.getValidationMessage(this.config)&&l.el("span.dhx_input__caption",p.getValidationMessage(this.config))])])])},_.prototype._setValue=function(e){void 0!==e&&-1!==this._buttons.findIndex(function(t){return t.config.value===e})&&this._buttons.forEach(function(t){e===t.config.value?t.setValue(!0):t.setValue(!1)})},_);function _(t,e){var i=a.call(this,null,e)||this;i.events=new h.EventSystem,i._buttons=[],i._isValid=!0,i._propsItem=["required","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage","options"],i._props=s(p.baseProps,i._propsItem),i._initView(e),i._initHandlers(),i.config.value&&i._setValue(i.config.value),i.clearValidate(),i.config.helpMessage&&(i._helper=new d.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"}),i._helper.attachHTML(i.config.helpMessage));return i.mount(t,l.create({render:function(){return i._draw()}})),i}e.RadioGroup=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,l=i(1),c=i(0),u=i(2),d=i(5),h=i(7),f=i(4);(i=a=e.RadioButtonEvents||(e.RadioButtonEvents={})).beforeChange="beforeChange",i.change="change",i.focus="focus",i.blur="blur",i.keydown="keydown",i.beforeHide="beforeHide",i.afterHide="afterHide",i.beforeShow="beforeShow",i.afterShow="afterShow";var p,o=(p=d.View,o(g,p),g.prototype.destructor=function(){this.events&&this.events.clear(),this.config=this.events=this._handlers=this._uid=this._props=this._propsItem=null,this.unmount()},g.prototype.setProperties=function(t){if(t&&!l.isEmptyObj(t)){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this.paint()}},g.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},g.prototype.getValue=function(){if(this.config.checked)return this.config.value},g.prototype.setValue=function(t){this.config.checked=t,this.paint()},g.prototype.show=function(){this.config.hidden&&this.events.fire(a.beforeShow,[])&&(this.config.hidden=!1,this.events.fire(a.afterShow,[]))},g.prototype.hide=function(){!this.config.hidden&&this.events.fire(a.beforeHide,[])&&(this.config.hidden=!0,this.events.fire(a.afterHide,[]))},g.prototype.isVisible=function(){return!this.config.hidden},g.prototype.focus=function(){var t=this;c.awaitRedraw().then(function(){t.getRootView().refs.input.el.focus()})},g.prototype.blur=function(){var t=this;c.awaitRedraw().then(function(){t.getRootView().refs.input.el.blur()})},g.prototype.disable=function(){this.config.disabled=!0,this.paint()},g.prototype.enable=function(){var t;this.config.disabled=!1,null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.paint()},g.prototype.isDisabled=function(){return!!this.config.disabled},g.prototype.clear=function(){this.config.checked=!1,this.paint()},g.prototype.validate=function(){var t=!1;return this.config.checked&&(t=!0),this.config.$validationStatus=t?f.ValidationStatus.success:f.ValidationStatus.error,this.paint(),t},g.prototype.clearValidate=function(){this.config.$validationStatus=f.ValidationStatus.pre,this.paint()},g.prototype._draw=function(){var t=this.config,e=t.id,i=t.value,n=t.checked,o=t.disabled,r=t.$name,s=t.$required,t=t.text;return c.el("label.dhx_radiobutton.dhx_form-group",{class:h.getFormItemCss(this.config,!!s)},[c.el("input.dhx_radiobutton__input",{type:"radio",id:e,value:i||"",name:r||"",disabled:o,checked:n,onchange:this._handlers.onchange,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,required:s,_ref:"input"}),c.el("span.dhx_radiobutton__visual-input"),c.el("span.dhx_text",[t])])},g);function g(t,e){void 0===e&&(e={});var i=p.call(this,t,r({text:"",width:"content",height:"content"},e))||this;i._propsItem=["text"],i._props=s(h.baseProps,i._propsItem),i._handlers={onchange:function(t){t=t.target.checked;i.events.fire(a.beforeChange,[t])&&(i.config.checked=t,i.events.fire(a.change,[t]))},onfocus:function(){return i.events.fire(a.focus,[i.getValue()||"",i.config.id])},onblur:function(){var t;return null===(t=i.events)||void 0===t?void 0:t.fire(a.blur,[i.getValue()||"",i.config.id])},onkeydown:function(t){i.events.fire(a.keydown,[t,i.config.id])}},i.events=new u.EventSystem;return i.mount(t,c.create({render:function(){return i._draw()}})),i}e.RadioButton=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,u=i(0),l=i(1),c=i(14),d=i(7),h=i(2),f=i(4),o=(a=c.Label,o(p,a),p.prototype.destructor=function(){this.events&&this.events.clear(),this.events=this._uid=this._propsItem=this._props=this._isValid=null,a.prototype._destructor.call(this),this.unmount()},p.prototype.setProperties=function(t){if(t&&!l.isEmptyObj(t)&&this.events.fire(f.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this.events.fire(f.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},p.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},p.prototype.show=function(){this.config.hidden&&this.events.fire(f.ItemEvent.beforeShow,[this.getValue()])&&(this.config.hidden=!1,this.events.fire(f.ItemEvent.afterShow,[this.getValue()]))},p.prototype.hide=function(t){this.config.hidden&&!t||!this.events.fire(f.ItemEvent.beforeHide,[this.getValue(),!!t])||(this.config.hidden=!0,this.events.fire(f.ItemEvent.afterHide,[this.getValue(),!!t]))},p.prototype.isVisible=function(){return!this.config.hidden},p.prototype.disable=function(e){var t=l.isDefined(e)&&this.config.options.find(function(t){return t.value===e});l.isDefined(e)&&!t||!t&&this.config.disabled||(null==t?void 0:t.disabled)||(t?(t.disabled=!0,this.config.disabled=this.config.options.every(function(t){return t.disabled})):(this.config.options=this.config.options.map(function(t){return r(r({},t),{disabled:!0})}),this.config.disabled=!0),this.paint())},p.prototype.enable=function(e){var t=l.isDefined(e)&&this.config.options.find(function(t){return t.value===e});l.isDefined(e)&&!t||(!t&&(this.config.disabled||this.config.options.some(function(t){return t.disabled}))||(null==t?void 0:t.disabled))&&(t?t.disabled=!1:this.config.options=this.config.options.map(function(t){return r(r({},t),{disabled:!1})}),this.config.disabled=!1,null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.paint())},p.prototype.isDisabled=function(e){var t=this.config.options.find(function(t){return t.value===e});return Boolean(this.config.disabled||l.isDefined(e)&&(null==t?void 0:t.disabled))},p.prototype.validate=function(t){void 0===t&&(t=!1);var e=this.config,i=e.value,e=e.validation;if(t||this.events.fire(f.ItemEvent.beforeValidate,[i]))return this._isValid=e?this.config.validation(i):void 0!==i&&!!String(i).length,t||this.events.fire(f.ItemEvent.afterValidate,[i,this._isValid]),this._isValid},p.prototype.clearValidate=function(){this.config.$validationStatus=f.ValidationStatus.pre,this.paint()},p.prototype.clear=function(){var t=null===(t=null===(t=this.config)||void 0===t?void 0:t.options[0])||void 0===t?void 0:t.value;this.config.value!==t&&this.events.fire(f.ItemEvent.beforeChange,[t])&&(this.config.value=t,this.events.fire(f.ItemEvent.change,[t]),d.isVerify(this.config)&&this.validate(),this.paint())},p.prototype.setValue=function(e){void 0!==e&&e!==this.config.value&&-1!==this.config.options.findIndex(function(t){return t.value===e})&&this.events.fire(f.ItemEvent.beforeChange,[e])&&(this.config.value=e,this.events.fire(f.ItemEvent.change,[e]),d.isVerify(this.config)&&this.validate(),this.paint())},p.prototype.focus=function(){var t=this;u.awaitRedraw().then(function(){t.getRootView().refs.select.el.focus()})},p.prototype.blur=function(){var t=this;u.awaitRedraw().then(function(){t.getRootView().refs.select.el.blur()})},p.prototype.getValue=function(){return this.config.value},p.prototype.setOptions=function(t){if(!t||!t.length)throw new Error("Function argument cannot be empty, for more info check documentation https://docs.dhtmlx.com/suite/form__select.html#addingselect");this.events.fire(f.ItemEvent.beforeChangeOptions,[s(t)])&&(this._checkOptions(t),this.config.options=s(t),this.events.fire(f.ItemEvent.changeOptions,[s(t)]),this.setValue(this.config.options[0].value),this.paint())},p.prototype.getOptions=function(){return this.config.options},p.prototype._initView=function(t){var e,i=this;if(l.isEmptyObj(t))throw new Error("Check the configuration is correct");for(e in this._checkOptions(t.options),this.config={type:t.type,id:t.id,name:t.name,disabled:!1,hidden:!1,required:!1,icon:"",label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content",options:t.options,value:t.options[0].value},t)"id"!==e&&"type"!==e&&"name"!==e&&(this.config[e]=t[e]);!this.config.disabled&&this.config.options.length&&this.config.options.every(function(t){return t.disabled})&&(this.config.disabled=!0),this.config.hidden&&u.awaitRedraw().then(function(){return i.hide(!0)}),this.paint()},p.prototype._initHandlers=function(){var t=this;this.events.on(f.ItemEvent.afterValidate,function(){t.config.$validationStatus=t._isValid?f.ValidationStatus.success:f.ValidationStatus.error,t.paint()})},p.prototype._getHandlers=function(){var i=this;return{onchange:function(e){var t=i.config.options.map(function(t){return t.value}).find(function(t){return t==e.target.value});i.events.fire(f.ItemEvent.beforeChange,[t])&&(i.config.value=t,i.events.fire(f.ItemEvent.change,[t]),d.isVerify(i.config)&&i.validate(),i.paint())},onblur:function(){i._uid&&(i.events.fire(f.ItemEvent.blur,[i.getValue()]),i.paint())},onfocus:function(){i.events.fire(f.ItemEvent.focus,[i.getValue()]),i.paint()}}},p.prototype._draw=function(){var t=this.config,e=t.id,i=t.options,n=t.icon,o=t.value,r=t.label,s=t.labelWidth,a=t.helpMessage,l=t.required,c=t.name,t=(null===(t=null===(t=null===(t=this.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.select)||void 0===t?void 0:t.el)===document.activeElement;return u.el(".dhx_form-group",{class:d.getFormItemCss(this.config,d.isVerify(this.config),t)},[(r||s||a)&&this._drawLabel(),u.el(".dhx_input__wrapper",{},[u.el("div.dhx_input__container",{},[u.el(".dhx_input__icon",{class:n||"dxi dxi-menu-down"}),u.el("select.dhx_select.dhx_input",{id:e,"data-dhx-id":c||e,tabindex:0,class:t&&"dhx_input--focus",onchange:this._handlers.onchange,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,_ref:"select",required:l},i.length&&i.map(function(t){return u.el("option",{value:t.value,disabled:t.disabled,selected:o===t.value},t.content)}))]),d.getValidationMessage(this.config)&&u.el("span.dhx_input__caption",d.getValidationMessage(this.config))])])},p.prototype._checkOptions=function(t){if(0===t.length)throw new Error("Property options* cannot be empty, for more info check documentation https://docs.dhtmlx.com/suite/form__select.html#addingselect");t.forEach(function(t){if(!t.hasOwnProperty("value")||!t.hasOwnProperty("content"))throw new Error("The object must contain two required properties value and content, for more info check documentation https://docs.dhtmlx.com/suite/form__select.html#addingselect")})},p);function p(t,e){var i=a.call(this,null,e)||this;return i.events=new h.EventSystem,i._isValid=!0,i._propsItem=["required","validation","icon","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage"],i._props=s(d.baseProps,i._propsItem),i._initView(e),i._initHandlers(),i}e.Select=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var s,p=i(0),g=i(7),a=i(39),l=i(4),v=i(1),o=(s=a.Input,o(c,s),c.prototype.getValue=function(){var t;return String(null!==(t=this.config.value)&&void 0!==t?t:"")},c.prototype.focus=function(){var t=this;p.awaitRedraw().then(function(){t.getRootView().refs.textarea.el.focus()})},c.prototype.blur=function(){var t=this;p.awaitRedraw().then(function(){t.getRootView().refs.textarea.el.blur()})},c.prototype.setProperties=function(t){if(t&&!v.isEmptyObj(t)&&this.events.fire(l.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this.events.fire(l.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},c.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},c.prototype._initView=function(t){var e,i=this;if(v.isEmptyObj(t))throw new Error("Check the configuration is correct");for(e in this.config={type:t.type,id:t.id,name:t.name,disabled:!1,hidden:!1,required:!1,validation:void 0,placeholder:"",readOnly:!1,label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t)"id"!==e&&"type"!==e&&"name"!==e&&(this.config[e]=t[e]);this.config.hidden&&p.awaitRedraw().then(function(){i.hide(!0)}),this.paint()},c.prototype._draw=function(){var t=this.config,e=t.id,i=t.value,n=t.disabled,o=t.name,r=t.placeholder,s=t.required,a=t.resizable,l=t.readOnly,c=t.maxlength,u=t.minlength,d=t.label,h=t.helpMessage,f=t.height,t=(null===(t=null===(t=null===(t=this.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.textarea)||void 0===t?void 0:t.el)===document.activeElement;return p.el("div.dhx_form-group.dhx_form-group--textarea",{class:g.getFormItemCss(this.config,g.isVerify(this.config),t)},[this._drawLabel(),p.el(".dhx_input__wrapper",[p.el("textarea.dhx_input.dhx_input--textarea",{type:"text",id:e,"data-dhx-id":o||e,placeholder:r||"",value:v.isDefined(i)?i:"",name:o||"",disabled:n,required:s,readOnly:l,maxlength:c,minlength:u,onblur:this._handlers.onblur,oninput:this._handlers.oninput,onchange:this._handlers.onchange,onfocus:this._handlers.onfocus,onkeydown:this._handlers.onkeydown,_hooks:{didInsert:function(t){"content"===f&&((t=t.el).style.height=t.scrollHeight+"px")}},style:{resize:a?"both":"none"},_ref:"textarea","aria-label":d||(l?i:"")+" type text","aria-describedby":h?"dhx_label__help_"+(e||this._uid):null}),g.getValidationMessage(this.config)&&p.el("span.dhx_input__caption",{},g.getValidationMessage(this.config))])])},c);function c(){var t=null!==s&&s.apply(this,arguments)||this;return t._propsItem=["required","validation","placeholder","readOnly","maxlength","minlength","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage"],t._props=r(g.baseProps,t._propsItem),t}e.Textarea=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(0),l=i(1),c=i(7),u=i(39),d=i(4),o=(s=u.Input,o(h,s),h.prototype.setProperties=function(t){if(t&&!l.isEmptyObj(t)&&this.events.fire(d.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this.events.fire(d.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},h.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},h.prototype._initView=function(t){var e,i=this;if(l.isEmptyObj(t))throw new Error("Check the configuration is correct");for(e in this.config={type:t.type,id:t.id,name:t.name,disabled:!1,hidden:!1,value:"",inputType:"text",label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",width:"content",height:"content"},t)"id"!==e&&"type"!==e&&"name"!==e&&(this.config[e]=t[e]);this.config.hidden&&a.awaitRedraw().then(function(){i.hide(!0)}),this.paint()},h.prototype._draw=function(){var t=this.config,e=t.id,i=t.value,n=t.name,o=t.inputType,r=t.label,t=(null!=i?i:"").toString().length;return a.el("div.dhx_form-group.dhx_form-group--textinput",{class:c.getFormItemCss(this.config)},[this._drawLabel(),a.el(".dhx_input__wrapper",[a.el("input.dhx_input.dhx_input--textinput",{type:["text","number","password"].includes(o)?o:"text",readOnly:!0,id:e,"data-dhx-id":n||e,value:null!=i?i:"",name:n,_ref:"input",tabindex:-1,role:"presentation","aria-label":r||i,size:20<t?t:20,onkeydown:this._handlers.onkeydown})])])},h);function h(){var t=null!==s&&s.apply(this,arguments)||this;return t._propsItem=["inputType","label","labelWidth","labelPosition","hiddenLabel","helpMessage"],t._props=r(c.baseProps,t._propsItem),t}e.Text=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(0),l=i(1),c=i(7),u=i(34),d=i(2),h=i(14),f=i(4),o=(s=h.Label,o(p,s),p.prototype.destructor=function(){this.events&&this.events.clear(),this.combobox&&this.combobox.destructor(),this.events=this._uid=this._propsCombo=this._propsItem=this._props=this._isValid=null,s.prototype._destructor.call(this),this.unmount()},p.prototype.setProperties=function(i){var n=this;a.awaitRedraw().then(function(){if(i&&!l.isEmptyObj(i)&&n.events.fire(f.ItemEvent.beforeChangeProperties,[n.getProperties()])){for(var t in i)n._props.includes(t)&&(n.config[t]=i[t]);var e=[];n.getWidget().data.forEach(function(t){return e.push(t)}),n.config.data=e,n._initView(n.config),n._initHandlers(),n.events.fire(f.ItemEvent.afterChangeProperties,[n.getProperties()]),n.combobox.paint(),n.paint()}})},p.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},p.prototype.show=function(){var t=this.config,e=t.value;t.hidden&&this.events.fire(f.ItemEvent.beforeShow,[e])&&(this.config.hidden=!1,this.events.fire(f.ItemEvent.afterShow,[e]))},p.prototype.hide=function(t){var e=this.config,i=e.value;e.hidden&&!t||!this.events.fire(f.ItemEvent.beforeHide,[i,t])||(this.config.hidden=!0,this.events.fire(f.ItemEvent.afterHide,[i,t]))},p.prototype.isVisible=function(){return!this.config.hidden},p.prototype.disable=function(){this.config.disabled=!0,this.combobox.disable(),this.paint()},p.prototype.enable=function(){var t;this.config.disabled=!1,this.combobox.enable(),null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.paint()},p.prototype.isDisabled=function(){return!!this.config.disabled},p.prototype.clear=function(){this.config.value&&(this.config.value="",this.combobox.clear())},p.prototype.getValue=function(){return this.config.multiselection?this.combobox.getValue(!0)||[]:this.combobox.getValue()||""},p.prototype.setValue=function(t){void 0!==t&&t!==this.config.value&&this.combobox.setValue(t)},p.prototype.validate=function(t,e){var i=this;void 0===t&&(t=!1);var n=void 0===e?this.getValue():e;return!(!t&&!this.events.fire(f.ItemEvent.beforeValidate,[n]))&&(e=Array.isArray(n)?n.map(function(t){return i._getItemText(t)}):this._getItemText(n)||"",this._isValid=this.config.validation?this.config.validation(n,e):this._exsistData(n),t||(this.config.$validationStatus=this._isValid?f.ValidationStatus.success:f.ValidationStatus.error,this.config.required&&this._validationStatus(),this.events.fire(f.ItemEvent.afterValidate,[n,this._isValid])),this._isValid)},p.prototype.clearValidate=function(){this.config.$validationStatus=f.ValidationStatus.pre,this._validationStatus(),this.paint()},p.prototype.getWidget=function(){return this.combobox},p.prototype.focus=function(){var t=this;a.awaitRedraw().then(function(){t.combobox.focus()})},p.prototype.blur=function(){var t=this;a.awaitRedraw().then(function(){t.combobox.blur()})},p.prototype._initView=function(t){var e=this;if(l.isEmptyObj(t))throw new Error("Check the configuration is correct");this.combobox&&this.combobox.destructor(),this.config={type:t.type,id:t.id,name:t.name,disabled:!1,hidden:!1,value:"",readOnly:!1,multiselection:!1,selectAllButton:!1,itemHeight:32,virtual:!1,listHeight:224,required:!1,placeholder:"",label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"};var i,n={};for(i in t)"id"!==i&&"type"!==i&&"name"!==i&&(this.config[i]=t[i],"validation"!==i&&(n[i]=t[i]));this.combobox=new u.Combobox(null,n),this.config.hidden&&a.awaitRedraw().then(function(){e.hide(!0)}),this.paint()},p.prototype._initHandlers=function(){var i=this;this.combobox.events.on(u.ComboboxEvents.beforeChange,function(t){return i.events.fire(f.ItemEvent.beforeChange,[t])}),this.combobox.events.on(u.ComboboxEvents.change,function(){var t=i.config.value=i.getValue();i.events.fire(f.ItemEvent.change,[t]),c.isVerify(i.config)&&i.validate(),i.paint()}),this.combobox.events.on(u.ComboboxEvents.focus,function(){i.events.fire(f.ItemEvent.focus,[i.getValue()]),i.paint()}),this.combobox.events.on(u.ComboboxEvents.blur,function(){i.events.fire(f.ItemEvent.blur,[i.getValue()]),i.paint()}),this.combobox.events.on(u.ComboboxEvents.keydown,function(t,e){"Enter"===t.code&&t.preventDefault(),i.events.fire(f.ItemEvent.keydown,[t,e])}),this.events.on(f.ItemEvent.afterValidate,function(){i.config.$validationStatus=i._isValid?f.ValidationStatus.success:f.ValidationStatus.error,i.paint()})},p.prototype._validationStatus=function(){var t;if(!(this.combobox.popup.isVisible()||(null===(t=null===(t=null===(t=this.combobox.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.input)||void 0===t?void 0:t.el)===document.activeElement))switch(this.config.$validationStatus){case f.ValidationStatus.success:return this.combobox.config.css=(this.config.css||"")+" dhx_form-group--state_success";case f.ValidationStatus.error:return this.combobox.config.css=(this.config.css||"")+" dhx_form-group--state_error";case f.ValidationStatus.pre:default:return this.combobox.config.css=this.config.css||""}return this.combobox.config.css=this.config.css||""},p.prototype._getRootView=function(){return this.combobox.getRootView()},p.prototype._draw=function(){var t=this.config,e=t.labelWidth,i=t.labelPosition,n=t.name,t=t.id;return a.el(".dhx_form-group",{"data-dhx-id":n||t},[a.inject(this._getRootView()),a.el("div",{style:{"margin-left":e&&"left"===i?"calc("+e+" + 16px)":""},class:this._validationStatus()},[a.el("span.dhx_input__caption",c.getValidationMessage(this.config))])])},p.prototype._exsistData=function(t){var e=this;return!!l.isDefined(t)&&(t instanceof Array?!!t.length&&t.every(function(t){return e.combobox.data.exists(t)}):this.combobox.data.exists(t))},p.prototype._getItemText=function(t){return null===(t=this.combobox.data.getItem(t))||void 0===t?void 0:t.value},p);function p(t,e){var i=s.call(this,null,e)||this;return i.events=new d.EventSystem,i._isValid=!0,i._propsItem=["required","validation","placeholder","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage","readonly","readOnly"],i._propsCombo=["template","filter","multiselection","selectAllButton","itemsCount","itemHeight","virtual","listHeight"],i._props=r(c.baseProps,i._propsItem,i._propsCombo),i._initView(e),i._initHandlers(),i}e.Combo=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,l=i(0),c=i(1),u=i(48),d=i(2),h=i(14),f=i(4),p=i(7),o=(a=h.Label,o(g,a),g.prototype.destructor=function(){this.events&&this.events.clear(),this.slider&&this.slider.destructor(),this.events=this._uid=this._propsSlider=this._propsItem=this._props=null,a.prototype._destructor.call(this),this.unmount()},g.prototype.setProperties=function(t){if(t&&!c.isEmptyObj(t)&&this.events.fire(f.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this._initView(this.config),this._initHandlers(),this.events.fire(f.ItemEvent.afterChangeProperties,[this.getProperties()]),this.slider.paint(),this.paint()}},g.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},g.prototype.show=function(){var t=this.config,e=t.value;t.hidden&&this.events.fire(f.ItemEvent.beforeShow,[e])&&(this.config.hidden=!1,this.events.fire(f.ItemEvent.afterShow,[e]))},g.prototype.hide=function(t){var e=this.config,i=e.value;e.hidden&&!t||!this.events.fire(f.ItemEvent.beforeHide,[i,t])||(this.config.hidden=!0,this.events.fire(f.ItemEvent.afterHide,[i,t]))},g.prototype.isVisible=function(){return!this.config.hidden},g.prototype.disable=function(){this.config.disabled=!0,this.slider.disable(),this.paint()},g.prototype.enable=function(){var t;this.config.disabled=!1,this.slider.enable(),null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.paint()},g.prototype.isDisabled=function(){return!!this.config.disabled},g.prototype.clear=function(){var t=this.config,e=t.value,t=t.min;e[0]!==t&&this.slider.setValue(t)},g.prototype.getValue=function(){return this.slider.getValue()},g.prototype.setValue=function(t){void 0!==t&&t!==this.config.value&&this.slider.setValue(t)},g.prototype.getWidget=function(){return this.slider},g.prototype.focus=function(t){var e=this;l.awaitRedraw().then(function(){e.slider.focus(t)})},g.prototype.blur=function(){var t=this;l.awaitRedraw().then(function(){t.slider.blur()})},g.prototype._initView=function(t){var e=this;if(c.isEmptyObj(t))throw new Error("Check the configuration is correct");this.slider&&this.slider.destructor();var i,n={type:t.type,id:t.id,name:t.name,mode:"horizontal",min:0,max:100,step:1,range:!1,inverse:!1,tooltip:!0,disabled:!1,hidden:!1,label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",width:"content",height:"content"};for(i in t)"id"!==i&&"type"!==i&&"name"!==i&&(n[i]=t[i]);this.config=r({type:this.config.type},n),this.slider=new u.Slider(null,n),this.config.disabled&&this.slider.disable(),this.config.value=this.slider.getValue(),this.config.hidden&&l.awaitRedraw().then(function(){e.hide(!0)})},g.prototype._initHandlers=function(){var s=this;this.slider.events.on(u.SliderEvents.beforeChange,function(t,e,i){var n,o,r=[t];return s.config.range&&(n=(o=s.getValue())[0],o=o[1],r=i?[n,t]:[t,o]),s.events.fire(f.ItemEvent.beforeChange,[r])}),this.slider.events.on(u.SliderEvents.change,function(){var t;s._uid&&(t=s.config.value=s.slider.getValue(),s.events.fire(f.ItemEvent.change,[t]),s.paint())}),this.slider.events.on(u.SliderEvents.focus,function(){s.events.fire(f.ItemEvent.focus,[s.getValue()])}),this.slider.events.on(u.SliderEvents.blur,function(){s.events.fire(f.ItemEvent.blur,[s.getValue()])}),this.slider.events.on(u.SliderEvents.keydown,function(t){s.events.fire(f.ItemEvent.keydown,[t])})},g.prototype._drawSlider=function(){var t=this.config,e=t.name,t=t.id;return l.el("div.dhx_form-group",{"data-dhx-id":e||t},[l.inject(this.slider.getRootView())])},g);function g(t,e){var i=a.call(this,t,e)||this;i.events=new d.EventSystem,i._propsItem=["label","labelWidth","labelPosition","hiddenLabel","helpMessage"],i._propsSlider=["min","max","step","mode","range","inverse","tooltip","tick","tickTemplate","majorTick"],i._props=s(p.baseProps,i._propsItem,i._propsSlider),i._initView(e),i._initHandlers();return i.mount(t,l.create({render:function(){return i._drawSlider()}})),i}e.SliderForm=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(45),u=i(0),l=i(1),c=i(14),d=i(12),h=i(2),f=i(4),p=i(7),g=i(13),o=(s=c.Label,o(v,s),v.prototype.destructor=function(){this.events&&this.events.clear(),this.timepicker&&this.timepicker.destructor(),this._popup&&this._popup.destructor(),this.events=this._uid=this._propsItem=this._propsTimepicker=this._props=this._isValid=null,s.prototype._destructor.call(this),this.unmount()},v.prototype.setProperties=function(e){var i=this;u.awaitRedraw().then(function(){if(e&&!l.isEmptyObj(e)&&i.events.fire(f.ItemEvent.beforeChangeProperties,[i.getProperties()])){for(var t in e)i._props.includes(t)&&(i.config[t]=e[t]);i._initView(i.config),i._initHandlers(),i.events.fire(f.ItemEvent.afterChangeProperties,[i.getProperties()]),i.paint()}})},v.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},v.prototype.show=function(){this.config.hidden&&this.events.fire(f.ItemEvent.beforeShow,[this.getValue("timeObject"===this.config.valueFormat)])&&(this.config.hidden=!1,this.events.fire(f.ItemEvent.afterShow,[this.getValue("timeObject"===this.config.valueFormat)]))},v.prototype.hide=function(t){this.config.hidden&&!t||!this.events.fire(f.ItemEvent.beforeHide,[this.getValue("timeObject"===this.config.valueFormat),t])||(this.config.hidden=!0,this.events.fire(f.ItemEvent.afterHide,[this.getValue("timeObject"===this.config.valueFormat),t]))},v.prototype.isVisible=function(){return!this.config.hidden},v.prototype.disable=function(){this.config.disabled=!0,this.paint()},v.prototype.enable=function(){var t;this.config.disabled=!1,null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.paint()},v.prototype.isDisabled=function(){return!!this.config.disabled},v.prototype.validate=function(t,e){void 0===t&&(t=!1);e=void 0===e?this.getValue("timeObject"===this.config.valueFormat):e;if(t||this.events.fire(f.ItemEvent.beforeValidate,[e]))return this._isValid=this.config.validation?this.config.validation(e):p.isTimeFormat(this.getValue(),this.config.timeFormat),t||this.events.fire(f.ItemEvent.afterValidate,[e,this._isValid]),this._isValid},v.prototype.clearValidate=function(){this.config.$validationStatus=f.ValidationStatus.pre,this.paint()},v.prototype.setValue=function(t){if(void 0!==t&&t!==this.config.value){if(this.timepicker.setValue(t),this.config.controls){t=this.getValue(this._isTimeObject());if(!this.events.fire(f.ItemEvent.beforeChange,[t]))return;this.config.value=this.timepicker.getValue(),this.events.fire(f.ItemEvent.change,[t])}p.isVerify(this.config)&&this.validate(),this.paint()}},v.prototype.getValue=function(t){return t?this.timepicker.getValue(t):this.config.value||""},v.prototype.focus=function(){var t=this;u.awaitRedraw().then(function(){t.getRootView().refs.input.el.focus()})},v.prototype.blur=function(){var t=this;u.awaitRedraw().then(function(){t._popup.hide(),t.getRootView().refs.input.el.blur()})},v.prototype.clear=function(){""!==this.config.value&&this._clear()},v.prototype.getWidget=function(){return this.timepicker},v.prototype._initView=function(t){var e,i=this;if(l.isEmptyObj(t))throw new Error("Check the configuration is correct");for(e in this.timepicker&&this.timepicker.destructor(),this._popup&&this._popup.destructor(),this.config={type:t.type,id:t.id,name:t.name,disabled:!1,editable:!1,hidden:!1,timeFormat:24,controls:!1,valueFormat:"string",required:!1,icon:"",placeholder:"",label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t)"id"!==e&&"type"!==e&&"name"!==e&&(this.config[e]=t[e]);this._popup=new d.Popup,this.timepicker=new a.Timepicker(null,p.widgetConfig(t)),this._popup.attach(this.timepicker),this.config.hasOwnProperty("value")&&(this.config.value=this.timepicker.getValue()),this.config.hidden&&u.awaitRedraw().then(function(){i.hide(!0)})},v.prototype._initHandlers=function(){var n=this;this.events.on(f.ItemEvent.afterValidate,function(){n.config.$validationStatus=n._isValid?f.ValidationStatus.success:f.ValidationStatus.error,n.paint()}),this.config.controls?(this.timepicker.events.on(a.TimepickerEvents.afterClose,function(){n._popup.hide()}),this.timepicker.events.on(a.TimepickerEvents.afterApply,function(){n._afterApply(!0)}),this._popup.events.on(d.PopupEvents.afterHide,function(){n.config.value&&n.config.value!==n.timepicker.getValue()?n.timepicker.setValue(n.config.value):""!==n.config.value&&void 0!==n.config.value||n._clear(!0)})):(this.timepicker.events.on(a.TimepickerEvents.beforeChange,function(t){return n.events.fire(f.ItemEvent.beforeChange,[t])}),this.timepicker.events.on(a.TimepickerEvents.change,function(t){var e=12===n.config.timeFormat?"12:00AM":"00:00",i=n.timepicker.getValue();""===n.config.value&&e===i||n.config.value===i||(n.config.value=n.timepicker.getValue(),n.events.fire(f.ItemEvent.change,[t]),p.isVerify(n.config)&&n.validate(),n.paint())})),this._popup.events.on(d.PopupEvents.afterHide,function(){document.activeElement!==n.getRootView().refs.input.el&&n.events.fire(f.ItemEvent.blur,[n.getValue()]),n.paint()}),this.events.on(f.ItemEvent.input,function(t){var e=12===n.config.timeFormat?7:5;t.length>=e&&p.isTimeFormat(t,n.config.timeFormat)?n.timepicker.setValue(t):""!==t||n.config.controls||n._clear()}),this.events.on(f.ItemEvent.afterChangeProperties,function(){n.config.value=n.timepicker.getValue(),n.paint()}),this.events.on(f.ItemEvent.blur,function(){n._popupIsFocus=!1,n.paint()}),document.addEventListener("keydown",function(t){var e,i=document.activeElement;(null===(e=null===(e=null===(e=n.getRootView())||void 0===e?void 0:e.refs)||void 0===e?void 0:e.input)||void 0===e?void 0:e.el)!==i&&!n._popup.isVisible()||n.events.fire(f.ItemEvent.keydown,[t])}),document.addEventListener("mousedown",function(){n._popup.getContainer()!==document.activeElement&&(n._popupIsFocus=!1)})},v.prototype._getHandlers=function(){var e=this;return{onfocus:function(){var t;e._popup.isVisible()||(t=e.getRootView().refs.input.el,e._popup.show(t,{theme:t}),e.events.fire(f.ItemEvent.focus,[e.getValue()]),e.paint())},onblur:function(){e._popup.isVisible()||e.events.fire(f.ItemEvent.blur,[e.getValue()]),e.paint()},oninput:function(t){t=t.target.value;e.events.fire(f.ItemEvent.input,[t])}}},v.prototype._initHotkeys=function(){var t,i=this,e={"shift+tab":function(){i._applyTab()},tab:function(){i._applyTab()},escape:function(){i._popup.isVisible()&&i.getRootView().refs.input.el.focus(),i._popup.hide()},enter:function(t){t.preventDefault();t=i.getRootView().refs.input.el;i._popup.isVisible()||i._popup.show(t,{theme:t}),i._popupIsFocus&&i.config.controls?i._afterApply(!0):(i._popup.hide(),i.paint())},arrowRight:function(t){var e=i._popup.getContainer();i._popupIsFocus=e.contains(document.activeElement),i._popup.isVisible()&&!i._popupIsFocus&&(t.preventDefault(),e.focus(),i._popupIsFocus=!0)}};for(t in e)this._keyManager.addHotKey(t,e[t])},v.prototype._draw=function(){var t=this.config,e=t.value,i=t.required,n=t.disabled,o=t.placeholder,r=t.name,s=t.id,a=t.editable,l=t.label,t=t.helpMessage,c=this._popup.isVisible()||(null===(c=null===(c=null===(c=this.getRootView())||void 0===c?void 0:c.refs)||void 0===c?void 0:c.input)||void 0===c?void 0:c.el)===document.activeElement;return u.el("div.dhx_form-group",{class:p.getFormItemCss(this.config,p.isVerify(this.config),c)},[this._drawLabel(),u.el(".dhx_input__wrapper",[u.el("div.dhx_input__container",{},[u.el(".dhx_input__icon.dxi.dxi-clock-outline"),u.el("input.dhx_input.dhx_input--icon-padding",{tabindex:0,"data-dhx-id":r||s,_key:this._uid,_ref:"input",value:e,type:"text",required:i,disabled:n,class:c&&"dhx_input--focus",placeholder:o||"",name:r||"",id:s||this._uid,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,oninput:this._handlers.oninput,autocomplete:"off",readOnly:!a,"aria-label":l||(a?"type or":"")+" select date","aria-describedby":t?"dhx_label__help_"+(s||this._uid):null})]),p.getValidationMessage(this.config)&&u.el("span.dhx_input__caption",{},p.getValidationMessage(this.config))])])},v.prototype._clear=function(t){(t||this.events.fire(f.ItemEvent.beforeChange,[""]))&&(this.config.value="",this.timepicker.clear(),t||(this.events.fire(f.ItemEvent.change,[""]),p.isVerify(this.config)&&this.validate()),this.paint())},v.prototype._afterApply=function(t){if(void 0===t&&(t=!1),""!==this.getRootView().refs.input.el.value||t){t=this.timepicker.getValue(this._isTimeObject());if(!this.events.fire(f.ItemEvent.beforeChange,[t]))return;this.config.value=this.timepicker.getValue(),this.events.fire(f.ItemEvent.change,[t]),p.isVerify(this.config)&&this.validate()}else this.clear();this._popup.hide(),this.paint()},v.prototype._applyTab=function(){var t;document.activeElement===(null===(t=null===(t=null===(t=this._popup.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.content)||void 0===t?void 0:t.el)||this._popupIsFocus||this._popup.hide()},v.prototype._isTimeObject=function(){var t;return"timeobject"===(null===(t=this.config.valueFormat)||void 0===t?void 0:t.toLowerCase())},v);function v(t,e){var i=s.call(this,null,e)||this;i.events=new h.EventSystem,i._isValid=!0,i._popupIsFocus=!1,i._propsItem=["required","validation","icon","placeholder","editable","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage"],i._propsTimepicker=["timeFormat","controls","valueFormat"],i._props=r(p.baseProps,i._propsItem,i._propsTimepicker),i._keyManager=new g.KeyManager(function(){var t,e=document.activeElement;return(null===(t=null===(t=null===(t=i.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.input)||void 0===t?void 0:t.el)===e||i._popup.isVisible()}),i._initView(e),i._initHandlers(),i._initHotkeys();return i.mount(t,u.create({render:function(){return i._draw()}})),i}e.TimePicker=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(52),l=i(2),d=i(0),c=i(1),u=i(14),h=i(12),f=i(4),p=i(7),g=i(13),o=(s=u.Label,o(v,s),v.prototype.destructor=function(){this.events&&this.events.clear(),this._popup&&this._popup.destructor(),this.colorpicker&&this.colorpicker.destructor(),this.events=this._uid=this._propsColorpicker=this._propsItem=this._props=this._isValid=null,s.prototype._destructor.call(this),this.unmount()},v.prototype.setProperties=function(t){if(t&&!c.isEmptyObj(t)&&this.events.fire(f.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e],this._propsColorpicker.includes(e)&&(this.colorpicker.config[e]=t[e]));this.events.fire(f.ItemEvent.afterChangeProperties,[this.getProperties()]),this.colorpicker.paint(),this.paint()}},v.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},v.prototype.show=function(){var t=this.config,e=t.value;t.hidden&&this.events.fire(f.ItemEvent.beforeShow,[e])&&(this.config.hidden=!1,this.events.fire(f.ItemEvent.afterShow,[e]))},v.prototype.hide=function(t){var e=this.config,i=e.value;e.hidden&&!t||!this.events.fire(f.ItemEvent.beforeHide,[i,t])||(this.config.hidden=!0,this.events.fire(f.ItemEvent.afterHide,[i,t]))},v.prototype.isVisible=function(){return!this.config.hidden},v.prototype.disable=function(){this.config.disabled=!0,this.paint()},v.prototype.enable=function(){var t;this.config.disabled=!1,null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.paint()},v.prototype.isDisabled=function(){return!!this.config.disabled},v.prototype.validate=function(t,e){void 0===t&&(t=!1);e=void 0===e?this.getValue():e;if(t||this.events.fire(f.ItemEvent.beforeValidate,[e]))return this._isValid=this.config.validation?this.config.validation(e):a.isHex(e),t||this.events.fire(f.ItemEvent.afterValidate,[e,this._isValid]),this._isValid},v.prototype.clearValidate=function(){this.config.$validationStatus=f.ValidationStatus.pre,this.paint()},v.prototype.setValue=function(t){void 0!==t&&t!==this.config.value&&this.colorpicker.setValue(t)},v.prototype.getValue=function(){return this.colorpicker.getValue()},v.prototype.clear=function(){""!==this.config.value&&this.colorpicker.clear()},v.prototype.getWidget=function(){return this.colorpicker},v.prototype.focus=function(){var t=this;d.awaitRedraw().then(function(){t.getRootView().refs.input.el.focus()})},v.prototype.blur=function(){var t=this;d.awaitRedraw().then(function(){t._popup.hide(),t.getRootView().refs.input.el.blur()})},v.prototype._initView=function(t){var e,i=this;if(c.isEmptyObj(t))throw new Error("Check the configuration is correct");for(e in this.colorpicker&&this.colorpicker.destructor(),this._popup&&this._popup.destructor(),this.config={type:t.type,id:t.id,name:t.name,disabled:!1,editable:!1,hidden:!1,value:"",grayShades:!0,pickerOnly:!1,paletteOnly:!1,customColors:[],palette:a.palette,mode:"palette",required:!1,icon:"",placeholder:"",label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t)"id"!==e&&"type"!==e&&"name"!==e&&(this.config[e]=t[e]);this._popup=new h.Popup,this.colorpicker=new a.Colorpicker(null,p.widgetConfig(t)),this._popup.attach(this.colorpicker),this.config.hidden&&d.awaitRedraw().then(function(){i.hide(!0)})},v.prototype._initHandlers=function(){var n=this;this.colorpicker.events.on(a.ColorpickerEvents.beforeChange,function(t){return n.events.fire(f.ItemEvent.beforeChange,[t])}),this.colorpicker.events.on(a.ColorpickerEvents.change,function(){n.config.value=n.colorpicker.getValue(),n.events.fire(f.ItemEvent.change,[n.config.value]),p.isVerify(n.config)&&n.validate(),n._popup.hide(),n.paint()}),this.events.on(f.ItemEvent.afterValidate,function(){n.config.$validationStatus=n._isValid?f.ValidationStatus.success:f.ValidationStatus.error,n.paint()}),this._popup.events.on(h.PopupEvents.afterHide,function(){document.activeElement!==n.getRootView().refs.input.el&&n.events.fire(f.ItemEvent.blur,[n.getValue()]),n.paint()}),this.events.on(f.ItemEvent.blur,function(){n._popupIsFocus=!1,n.paint()}),document.addEventListener("keydown",function(t){var e,i=document.activeElement;(null===(e=null===(e=null===(e=n.getRootView())||void 0===e?void 0:e.refs)||void 0===e?void 0:e.input)||void 0===e?void 0:e.el)!==i&&!n._popup.isVisible()||n.events.fire(f.ItemEvent.keydown,[t])}),document.addEventListener("mousedown",function(){n._popup.getContainer()!==document.activeElement&&(n._popupIsFocus=!1)})},v.prototype._getHandlers=function(){var e=this;return{onblur:function(){e._popup.isVisible()||e.events.fire(f.ItemEvent.blur,[e.getValue()]),e.paint()},onfocus:function(){var t;e._popup.isVisible()||(t=e.getRootView().refs.input.el,e._popup.show(t,{theme:t}),e.events.fire(f.ItemEvent.focus,[e.getValue()]),e.paint())},oninput:function(t){t=t.target.value;e.events.fire(f.ItemEvent.input,[t])},onchange:function(t){t=t.target.value;e.config.editable&&a.isHex(t)?e.setValue(t):""===t&&e.clear()}}},v.prototype._initHotkeys=function(){var t,i=this,e={"shift+tab":function(){i._applyTab()},tab:function(){i._applyTab()},escape:function(){i._popup.isVisible()&&i.getRootView().refs.input.el.focus(),i._popup.hide()},enter:function(t){t.preventDefault(),i._popup.isVisible()||(t=i.getRootView().refs.input.el,i._popup.show(t,{theme:t}))},arrowRight:function(t){var e=i._popup.getContainer();i._popup.isVisible()&&!i._popupIsFocus&&(t.preventDefault(),e.focus(),i._popupIsFocus=!0)}};for(t in e)this._keyManager.addHotKey(t,e[t])},v.prototype._draw=function(){var t=this.config,e=t.required,i=t.value,n=t.icon,o=t.disabled,r=t.placeholder,s=t.name,a=t.id,l=t.editable,c=t.label,t=t.helpMessage,u=this._popup.isVisible()||(null===(u=null===(u=null===(u=this.getRootView())||void 0===u?void 0:u.refs)||void 0===u?void 0:u.input)||void 0===u?void 0:u.el)===document.activeElement;return d.el("div.dhx_form-group",{class:p.getFormItemCss(this.config,p.isVerify(this.config),u)},[this._drawLabel(),d.el(".dhx_input__wrapper",[d.el("div.dhx_input__container",{},[d.el(".dhx_input__icon",{class:n||"dxi dxi-eyedropper-variant"+(i?" dhx_input__icon--color-selected":""),style:{"background-color":i||"transparent"}}),d.el("input.dhx_input.dhx_input--icon-padding",{tabindex:0,"data-dhx-id":s||a,_key:this._uid,_ref:"input",value:i,type:"text",required:e,disabled:o,class:u&&"dhx_input--focus",placeholder:r||"",name:s||"",id:a||this._uid,onfocus:this._handlers.onfocus,oninput:this._handlers.oninput,onchange:this._handlers.onchange,onblur:this._handlers.onblur,autocomplete:"off",readOnly:!l,"aria-label":c||(l?"type or":"")+" select color","aria-describedby":t?"dhx_label__help_"+(a||this._uid):null})]),p.getValidationMessage(this.config)&&d.el("span.dhx_input__caption",{},p.getValidationMessage(this.config))])])},v.prototype._applyTab=function(){var t;document.activeElement===(null===(t=null===(t=null===(t=this._popup.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.content)||void 0===t?void 0:t.el)||this._popupIsFocus||this._popup.hide()},v);function v(t,e){var i=s.call(this,null,e)||this;i.events=new l.EventSystem,i._isValid=!0,i._popupIsFocus=!1,i._propsItem=["required","validation","icon","placeholder","editable","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage"],i._propsColorpicker=["mode","grayShades","customColors","palette"],i._props=r(p.baseProps,i._propsItem,i._propsColorpicker),i._keyManager=new g.KeyManager(function(){var t,e=document.activeElement;return(null===(t=null===(t=null===(t=i.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.input)||void 0===t?void 0:t.el)===e||i._popup.isVisible()}),i._initView(e),i._initHandlers(),i._initHotkeys();return i.mount(t,d.create({render:function(){return i._draw()}})),i}e.ColorPicker=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(0),l=i(5),c=i(4),u=i(2),d=i(1),h=i(7),o=(s=l.View,o(f,s),f.prototype.destructor=function(){this.events&&this.events.clear(),this.config=this.events=null,this.unmount()},f.prototype.setProperties=function(t){if(t&&!d.isEmptyObj(t)&&this.events.fire(c.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)h.baseProps.includes(e)&&(this.config[e]=t[e]);this.events.fire(c.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},f.prototype.getProperties=function(){for(var t={},e=0,i=h.baseProps;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},f.prototype.show=function(){this.config.hidden&&this.events.fire(c.ItemEvent.beforeShow,[])&&(this.config.hidden=!1,this.events.fire(c.ItemEvent.afterShow,[]))},f.prototype.hide=function(t){this.config.hidden&&!t||!this.events.fire(c.ItemEvent.beforeHide,[!!t])||(this.config.hidden=!0,this.events.fire(c.ItemEvent.afterHide,[!!t]))},f.prototype.isVisible=function(){return!this.config.hidden},f.prototype._draw=function(){return a.el("div")},f);function f(t,e){var i=s.call(this,t,r({disabled:!1,hidden:!1,width:"content",height:"content"},e))||this;i.events=new u.EventSystem,i.config.hidden&&a.awaitRedraw().then(function(){i.hide(!0)});return i.mount(t,a.create({render:function(){return i._draw()}})),i}e.Spacer=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),c=this&&this.__assign||function(){return(c=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},r=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var s,u=i(0),a=i(1),l=i(2),d=i(14),h=i(4),f=i(7),p=i(97),o=(s=d.Label,o(g,s),g.prototype.send=function(t){var i=this,e=this.config,n=e.target,o=e.value,r=e.updateFromResponse,s=e.headerParams;if(!this._isUpload&&n&&null!=o&&o.file&&o.status!==p.FileStatus.uploaded&&this.events.fire(h.ItemEvent.beforeUploadFile,[o])){var t=this._createFormData(o,t),a=new XMLHttpRequest;if(this._isUpload=!0,this.config.value=c(c({},o),{status:p.FileStatus.inprogress,request:a}),this.events.fire(h.ItemEvent.uploadBegin,[this.config.value]),this.events.fire(h.ItemEvent.uploadProgress,[0,this.config.value]),a.open("POST",n),s)for(var l in s)a.setRequestHeader(l,s[l]);a.upload.onprogress=function(t){t=t.loaded/t.total;i.config.value=c(c({},i.config.value),{progress:t}),i.events.fire(h.ItemEvent.uploadProgress,[100*t,i.config.value])},a.onloadend=function(){var t=200===a.status?p.FileStatus.uploaded:p.FileStatus.failed,e=200===a.status&&a.response?JSON.parse(a.response):null;i.config.value=c(c({},i.config.value),{status:t}),t===p.FileStatus.uploaded?(e&&r&&(i.config.value=c(c({},i.config.value),e)),i.events.fire(h.ItemEvent.uploadFile,[i.config.value,e])):i.events.fire(h.ItemEvent.uploadFail,[i.config.value]),i._isUpload=!1,i.events.fire(h.ItemEvent.uploadComplete,[i.config.value])},a.send(t)}},g.prototype.selectFile=function(){var t;null!==(t=null===(t=null===(t=this.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.input)&&void 0!==t&&t.el.click()},g.prototype.setValue=function(t){this.events.fire(h.ItemEvent.beforeChange,[t])&&(this.config.value=!a.isEmptyObj(t)&&c({id:a.uid(),status:p.FileStatus.queue,progress:0,path:""},t)||{},this.events.fire(h.ItemEvent.change,[this.getValue()]),f.isVerify(this.config)&&this.validate())},g.prototype.getValue=function(){return this.config.value||{}},g.prototype.clear=function(){this.setValue({})},g.prototype.disable=function(){this.config.disabled=!0,this.paint()},g.prototype.enable=function(){var t;this.config.disabled=!1,null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.paint()},g.prototype.isDisabled=function(){return!!this.config.disabled},g.prototype.show=function(){this.config.hidden&&this.events.fire(h.ItemEvent.beforeShow,[this.getValue()])&&(this.config.hidden=!1,this.events.fire(h.ItemEvent.afterShow,[this.getValue()]))},g.prototype.hide=function(t){void 0===t&&(t=!1),this.config.hidden&&!t||!this.events.fire(h.ItemEvent.beforeHide,[this.getValue(),t])||(this.config.hidden=!0,this.events.fire(h.ItemEvent.afterHide,[this.getValue(),t]))},g.prototype.isVisible=function(){return!this.config.hidden},g.prototype.validate=function(t,e){e=e||this.getValue();return!(!t&&!this.events.fire(h.ItemEvent.beforeValidate,[e]))&&(this._isValid=!!("function"==typeof this.config.validation?this.config.validation(e):e.src),t||this.events.fire(h.ItemEvent.afterValidate,[e,this._isValid]),this._isValid)},g.prototype.clearValidate=function(){this.config.$validationStatus=h.ValidationStatus.pre,this.paint()},g.prototype.setProperties=function(t){if(t&&!a.isEmptyObj(t)&&this.events.fire(h.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this.events.fire(h.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},g.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},g.prototype.focus=function(){var e=this;u.awaitRedraw().then(function(){var t;null!==(t=null===(t=null===(t=e.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.input)&&void 0!==t&&t.el.focus(),e.paint()})},g.prototype.blur=function(){var e=this;u.awaitRedraw().then(function(){var t;null!==(t=null===(t=null===(t=e.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.input)&&void 0!==t&&t.el.blur(),e.paint()})},g.prototype.destructor=function(){this.events&&this.events.clear(),s.prototype._destructor.call(this),this.unmount()},g.prototype._initView=function(t){this.config=c({size:"medium",labelPosition:"top",width:"content",height:"content",accept:"image/*",fieldName:"file",target:"",alt:"",css:"",label:"",errorMessage:"",successMessage:"",helpMessage:"",icon:"",labelWidth:"",placeholder:"",preMessage:"",removeIcon:!0,circle:!1,readOnly:!1,hiddenLabel:!1,autosend:!1,updateFromResponse:!0},t),this.paint()},g.prototype._initHandlers=function(){var o=this;this._handlers=c({change:function(t){var e=null===(t=null===(e=t.target)||void 0===e?void 0:e.files)||void 0===t?void 0:t[0];!o.config.readOnly&&e&&(t=URL.createObjectURL(e),o.setValue({file:e,src:t}),o.config.autosend&&o._isValid&&o.send())},drop:function(t){t.preventDefault();var e=null===(t=null===(e=t.dataTransfer)||void 0===e?void 0:e.files)||void 0===t?void 0:t[0];!o.config.readOnly&&e&&(t=URL.createObjectURL(e),o._dragover=!1,o.setValue({file:e,src:t}),o.config.autosend&&o._isValid&&o.send())},dragover:function(t){if(t.preventDefault(),!o.config.readOnly){for(var e=0,i=t.dataTransfer.types;e<i.length;e++){var n=i[e];if("Files"!==n&&"application/x-moz-file"!==n)return}o._dragoverTimeout?clearTimeout(o._dragoverTimeout):o.paint(),o._dragover=!0,o._dragoverTimeout=setTimeout(function(){o._dragover=!1,o._dragoverTimeout=null,o.paint()},150)}},onfocus:function(){return o.events.fire(h.ItemEvent.focus,[o.getValue()])},onblur:function(){return o.events.fire(h.ItemEvent.blur,[o.getValue()])},onkeydown:function(t){return o.events.fire(h.ItemEvent.keydown,[t])}},this._handlers),this.events.on(h.ItemEvent.change,function(){return o.paint()}),this.events.on(h.ItemEvent.afterValidate,function(){o.config.$validationStatus=o._isValid?h.ValidationStatus.success:h.ValidationStatus.error,o.paint()})},g.prototype._draw=function(){var t=this.config,e=t.hidden,i=t.alt,n=t.circle,o=t.size,r=t.label,s=t.value,a=t.readOnly,l=e?" dhx_form-group--hidden":"",t="",e={};return this._dragover&&(t+="dhx_avatar--on-drag "),n&&(t+="dhx_avatar--circle "),o&&"string"!=typeof o?e.width=e.height=o:o&&["small","medium","large"].includes(o)?t+="dhx_avatar-size--"+o+" ":t+="dhx_avatar-size--medium ",u.el("div.dhx_form-group.dhx_form-group--avatar",{"aria-label":i||r,role:"img",class:f.getFormItemCss(this.config,f.isVerify(this.config),!1)+l},[this._drawLabel(),u.el("div.dhx_avatar",{class:t,style:e,ondragover:this._handlers.dragover,ondrop:this._handlers.drop},[null!=s&&s.src?this._drawImage(this.config):this._drawPreview(this.config),!a&&this._drawCover(this.config)]),f.getValidationMessage(this.config)&&u.el("span.dhx_input__caption",f.getValidationMessage(this.config))])},g.prototype._drawImage=function(t){var e=t.alt,t=t.value;return u.el("img.dhx_avatar__image",{src:null==t?void 0:t.src,alt:e})},g.prototype._drawPreview=function(t){var e=t.icon,i=t.placeholder,t=t.preview;return u.el("div.dhx_avatar__preview",{style:c({},t?{"background-image":"url("+t}:{})},[t?null:[e&&u.el("div.dhx_avatar__preview-icon",{class:e}),i&&u.el("div.dhx_avatar__preview-placeholder",{"aria-placeholder":i},i)]])},g.prototype._drawCover=function(t){var e=this,i=t.accept,n=t.id,o=t.value,t=t.removeIcon;return u.el("div.dhx_avatar__cover",[u.el("label.dhx_avatar__cover-upload",[u.el("input.dhx_avatar__cover-input",{_ref:"input",id:n,accept:i,type:"file",onchange:this._handlers.change,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown}),u.el("i.dhx_avatar__cover-icon.dxi.dxi-vault")]),(null==o?void 0:o.src)&&t&&u.el("div.dhx_avatar__cover-remove",{onclick:function(){return e.clear()}},[u.el("i.dhx_avatar__cover-icon.dxi.dxi-delete-forever")])])},g.prototype._createFormData=function(t,e){var i=this.config.fieldName,n=this.config.params,o=new FormData;if(e)for(var r in e)o.append(r,e[r]);if(n)for(var r in n)o.append(r,n[r]);return o.append(i,t.file,t.file.name),o.append(i+"_fullname",t.path+t.file.name),o.append(i+"_id",t.id),o},g);function g(t,e){t=s.call(this,t,e)||this;return t.events=new l.EventSystem,t._propsItem=["validation","required","readOnly","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage","size","circle","alt","icon","placeholder","preview","accept","autosend","params","headerParams","fieldName","target","updateFromResponse","removeIcon"],t._props=r(f.baseProps,t._propsItem),t._isValid=!0,t._isUpload=!1,t._initView(e),t._initHandlers(),t}e.Avatar=o},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var r=i(2),s=i(4),a=i(7),l=i(1),c=i(0),i=(u.prototype.forEach=function(t,e){void 0===e&&(e=!1);for(var i=e?this.getTreeAttachments(this.getAttachments()):this.attachments,n=0;n<i.length;n++)t.call(this,i[n],n,i)},u.prototype.disable=function(){this.forEach(function(t){return"function"==typeof t.disable&&t.disable()}),this.config.disabled=this.cell.config.$disabled=!0,this.cell.paint()},u.prototype.enable=function(){var t;this.config.disabled=this.cell.config.$disabled=!1,this.attachments.every(function(t){return t.isDisabled()})&&this.forEach(function(t){return"function"==typeof t.enable&&t.enable()}),null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.cell.paint()},u.prototype.isDisabled=function(){return!!this.config.disabled},u.prototype.show=function(){this.config.hidden&&(this.forEach(function(t){return"function"==typeof t.hide&&t.show()}),this.config.hidden=!1,this.cell.show())},u.prototype.hide=function(e){void 0===e&&(e=!1),this.config.hidden&&!e||(this.forEach(function(t){"function"==typeof t.hide&&("checkboxgroup"===t.config.type||"radiogroup"===t.config.type?t.hide(void 0,e):t.hide(e))}),this.config.hidden=!0,this.cell.hide())},u.prototype.isVisible=function(){return!this.config.hidden},u.prototype.setProperties=function(t){if(t&&!l.isEmptyObj(t)&&this.events.fire(s.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this.props.includes(e)&&(this.config[e]=t[e]);this.events.fire(s.ItemEvent.afterChangeProperties,[this.getProperties()])}},u.prototype.getProperties=function(){for(var t={},e=0,i=this.props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},u.prototype.destructor=function(){this.cell.hide(),this.events.clear(),this.attachments=[]},u.prototype.setCell=function(t){this.cell=t},u.prototype.getCell=function(){return this.cell},u.prototype.setAttachments=function(t){this.attachments=t},u.prototype.getAttachments=function(){return this.attachments},u.prototype.getTreeAttachments=function(t){for(var e=[],i=0;i<t.length;i++){var n=t[i];e.push(n),"fieldset"===n.config.type&&e.push.apply(e,n.getTreeAttachments(n.getAttachments()))}return e},u);function u(t){var e=this;this.events=new r.EventSystem,this.attachments=[],this.propsItem=["label","labelAlignment","align"],this.props=o(a.baseProps,this.propsItem),this.config=n({disabled:!1,hidden:!1,width:"content",height:"content",labelAlignment:"left",label:"",css:""},t),c.awaitRedraw().then(function(){var t;e.config.hidden&&e.hide(!0),e.config.disabled&&e.disable(),null!==(t=e.cell)&&void 0!==t&&t.events.on("afterShow",function(){e.config.hidden=!1}),null!==(t=e.cell)&&void 0!==t&&t.events.on("afterHide",function(){e.config.hidden=!0})})}e.Fieldset=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),h=this&&this.__assign||function(){return(h=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},r=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var s,f=i(4),a=i(99),l=i(5),c=i(0),u=i(7),d=i(2),p=i(1),o=(s=l.View,o(g,s),g.prototype.setValue=function(t){var i;if(t&&!p.isEmptyObj(t)){if(!this.config.multiselection)for(var e=Object.entries(t).find(function(t){t[0];return t[1]}),n=this.getValue(),o=0,r=Object.entries(n);o<r.length;o++){var s=r[o],a=s[0],s=s[1],s="boolean"==typeof s?!1:"number"==typeof s?0:"string"==typeof s?"":s;t[a]=e&&e[0]===a?e[1]:s}if(!this.events.fire(f.ItemEvent.beforeChange,[h(h({},this.getValue()),t)]))return!1;for(var l=this,c=0,u=Object.entries(t);c<u.length;c++){var d=u[c];!function(e,t){null!==(i=l.items.find(function(t){return t.config.id===e}))&&void 0!==i&&i.setValue(!!t,!0)}(d[0],d[1])}this.events.fire(f.ItemEvent.change,[this.getValue()])}},g.prototype.getValue=function(e){if(e){var t=this.items.find(function(t){return t.config.id===e});if(t)return t.getValue()}var i={};return this.items.forEach(function(t){i[t.config.id]=t.getValue()}),i},g.prototype.isSelected=function(e){if(e){var t=this.items.find(function(t){return t.config.id===e});if(t)return t.isSelected()}var i={};return this.items.forEach(function(t){i[t.config.id]=t.isSelected()}),i},g.prototype.show=function(e){var t=e&&this.items.find(function(t){return t.config.id===e});t&&!t.config.hidden||!this.events.fire(f.ItemEvent.beforeShow,[this.getValue(),e])||(t?t.show():this.items.forEach(function(t){return t.show()}),this.config.hidden=!1,this.checkVisibleOrder(!!t),this.events.fire(f.ItemEvent.afterShow,[this.getValue(),e]))},g.prototype.hide=function(e,t){var i=e&&this.items.find(function(t){return t.config.id===e});this.config.hidden&&!t||i&&i.config.hidden||!this.events.fire(f.ItemEvent.beforeHide,[this.getValue(),e,t])||(i?(i.hide(),this.config.hidden=this.items.every(function(t){return t.config.hidden})):(this.items.forEach(function(t){return t.hide()}),this.config.hidden=!0),this.checkVisibleOrder(!!i),this.events.fire(f.ItemEvent.afterHide,[this.getValue(),e,t]))},g.prototype.isVisible=function(e){var t=this.items.find(function(t){return t.config.id===e});return t?t.isVisible():!this.config.hidden},g.prototype.focus=function(e){var i=this;c.awaitRedraw().then(function(){var t=i.items.find(function(t){return t.config.id===e})||i.items[0];t&&t.focus()})},g.prototype.blur=function(){var t=this;c.awaitRedraw().then(function(){t.items.forEach(function(t){return t.blur()})})},g.prototype.disable=function(e){var t=e&&this.items.find(function(t){return t.config.id===e});this.config.disabled||t&&t.config.disabled||(t?(t.disable(),this.config.disabled=this.items.every(function(t){return t.config.disabled})):(this.items.forEach(function(t){return t.disable()}),this.config.disabled=!0),this.paint())},g.prototype.enable=function(e){var t=e&&this.items.find(function(t){return t.config.id===e});!t&&!this.config.disabled||t&&!t.config.disabled||(t?null!=t&&t.enable():this.items.forEach(function(t){return t.enable()}),this.config.disabled=!1,null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.paint())},g.prototype.isDisabled=function(e){var t=this.items.find(function(t){return t.config.id===e});return t?t.isDisabled():!!this.config.disabled},g.prototype.setProperties=function(t,e){var i=this.items.find(function(t){return t.config.id===e});if(t&&!p.isEmptyObj(t)&&this.events.fire(f.ItemEvent.beforeChangeProperties,[h(h({},(i||this).getProperties()),t)])){if(i)i.setProperties(t);else for(var n in t)this.props.includes(n)&&(this.config[n]=t[n]);this.events.fire(f.ItemEvent.afterChangeProperties,[(i||this).getProperties()])}},g.prototype.getProperties=function(e){if(e){var t=this.items.find(function(t){return t.config.id===e});if(t)return t.getProperties()}for(var i={},n=0,o=this.props;n<o.length;n++){var r=o[n];i[r]=this.config[r]}return i},g.prototype.destructor=function(){this.events.clear(),this.unmount()},g.prototype.initView=function(){var t,i=this;if(null===(t=this.config.options)||void 0===t||!t.length)throw new Error("Check the configuration is correct");this.items=this.config.options.map(function(t,e){return t.id||(t.id=t.name||p.uid()),i.config.gap&&(t.$gap=e&&i.config.gap),new a.ToggleButton(null,h(h({},t),{$group:!0}))}),this.config.value&&this.setValue(this.config.value),this.checkVisibleOrder()},g.prototype.initHandlers=function(){var n=this;this.items.forEach(function(i){i.events.on(f.ItemEvent.keydown,function(t){n.events.fire(f.ItemEvent.keydown,[t,i.config.id])}),i.events.on(f.ItemEvent.focus,function(){n.events.fire(f.ItemEvent.focus,[n.getValue(),i.config.id])}),i.events.on(f.ItemEvent.blur,function(){n.events.fire(f.ItemEvent.blur,[n.getValue(),i.config.id])}),i.events.on(f.ItemEvent.beforeChange,function(t){var e;return"string"==typeof i.config.value&&(t=t?i.config.value:""),"number"==typeof i.config.value&&(t=t?i.config.value:0),n.setValue(((e={})[i.config.id]=t,e))})})},g.prototype.draw=function(){var t=this.config,e=t.hidden,i=t.id,n=t.name,o=t.full,r=t.gap,t=this.items.map(function(t){return c.inject(t.getRootView())});return c.el("div.dhx_form-group.dhx_form-group--toggle-group.dhx_toggle-group",{"data-dhx-id":n||i,"aria-label":n||i,role:"group",class:(e?"dhx_form-group--hidden ":"")+(o?"dhx_toggle-group--full ":"")+(r?"dhx_toggle-group--segmented ":"")+u.getFormItemCss(this.config)},[t])},g.prototype.checkVisibleOrder=function(t){var e,i,n=this.items.map(function(t){return delete t.config.$extraCss,t}).filter(function(t){return!t.config.hidden});n.length&&(e=this.items.findIndex(function(t){return t.config.id===n[0].config.id}),i=this.items.findIndex(function(t){return t.config.id===n[n.length-1].config.id}),this.items[e].config.$extraCss="dhx_toggle--first ",this.items[i].config.$extraCss=this.items[i].config.$extraCss?this.items[i].config.$extraCss+"dhx_toggle--last ":"dhx_toggle--last "),t&&this.items.forEach(function(t){return t.paint()})},g);function g(t,e){var i=s.call(this,t,h({full:!1,multiselect:!1,disabled:!1,hidden:!1,width:"content",height:"content",gap:0,css:"",padding:"",items:[]},e))||this;i.events=new d.EventSystem,i.items=[],i.props=r(u.baseProps,["options","full","gap","multiselect"]),i.initView(),i.initHandlers(),i.config.hidden&&c.awaitRedraw().then(function(){console.log("hidden"),i.hide(void 0,!0)});return i.mount(t,c.create({render:function(){return i.draw()}})),i}e.ToggleGroup=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(95),a=i(4),l=i(11),c=i(228),u=i(7),o=(r=s.Form,o(d,r),d.prototype._initItemHandlers=function(t,e){var i=this;r.prototype._initItemHandlers.call(this,t,e),"container"===t.type&&((t=this._attachments[e]=new c.Container(null,t)).events.on(a.ItemEvent.beforeChangeProperties,function(t){return i.events.fire(a.FormEvents.beforeChangeProperties,[e,t])}),t.events.on(a.ItemEvent.afterChangeProperties,function(t){i._changeProps(e,t),i.events.fire(a.FormEvents.afterChangeProperties,[e,t]),i.layout.paint()}),t.events.on(a.ItemEvent.beforeHide,function(t){if(!t)return i.events.fire(a.FormEvents.beforeHide,[e])}),t.events.on(a.ItemEvent.beforeShow,function(){return i.events.fire(a.FormEvents.beforeShow,[e])}),t.events.on(a.ItemEvent.afterHide,function(t){i.layout.getCell(e).hide(),t||i.events.fire(a.FormEvents.afterHide,[e])}),t.events.on(a.ItemEvent.afterShow,function(){i.layout.getCell(e).show(),i.events.fire(a.FormEvents.afterShow,[e])}))},d.prototype._initUI=function(t){var e=this._attachments={},i={padding:"8px"};this.config.css+=" dhx_form",this._createLayoutConfig(this.config,i),this.layout=new l.ProLayout(t,i),u.setAttacments(e,this.layout)},d);function d(t,e){return r.call(this,t,e)||this}e.ProForm=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(0),l=i(5),c=i(4),u=i(2),d=i(1),h=i(11),f=i(7),o=(s=l.View,o(p,s),p.prototype.attach=function(t){this.container.attach(t)},p.prototype.attachHTML=function(t){this.container.attachHTML(t)},p.prototype.show=function(){this.config.hidden&&this.events.fire(c.ItemEvent.beforeShow,[])&&(this.config.hidden=!1,this.events.fire(c.ItemEvent.afterShow,[]))},p.prototype.hide=function(t){void 0===t&&(t=!1),this.config.hidden&&!t||!this.events.fire(c.ItemEvent.beforeHide,[t])||(this.config.hidden=!0,this.events.fire(c.ItemEvent.afterHide,[t]))},p.prototype.isVisible=function(){return!this.config.hidden},p.prototype.disable=function(){this.config.disabled=!0,this.paint()},p.prototype.enable=function(){var t;this.config.disabled=!1,null!==(t=this.parent)&&void 0!==t&&t.isDisabled()&&this.parent.enable(),this.paint()},p.prototype.isDisabled=function(){return!!this.config.disabled},p.prototype.setProperties=function(t){if(t&&!d.isEmptyObj(t)&&this.events.fire(c.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)f.baseProps.includes(e)&&(this.config[e]=t[e]);this.events.fire(c.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},p.prototype.getProperties=function(){for(var t={},e=0,i=f.baseProps;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},p.prototype._getRootView=function(){return this.container.getRootView()},p.prototype._draw=function(){var t=this.config,e=t.name,i=t.id,t=t.disabled?" dhx_form-group--disabled":"";return a.el(".dhx_form-group.dhx_form-group--container",{class:t,"data-dhx-id":e||i},[a.inject(this._getRootView())])},p);function p(t,e){var i=s.call(this,t,r({disabled:!1,hidden:!1,width:"content",height:"content"},e))||this;if(i.events=new u.EventSystem,d.isEmptyObj(e))throw new Error("Check the configuration is correct");i.container&&i.container.destructor();var n,o={};for(n in e)"id"!==n&&"type"!==n&&"name"!==n&&"width"!==n&&"height"!==n&&(i.config[n]=e[n],"validation"!==n&&(o[n]=e[n]));i.container=new h.Layout(null,{rows:[o]}),o.html&&i.container.attachHTML(o.html),i.config.hidden&&a.awaitRedraw().then(function(){i.hide(!0)}),i.paint();return i.mount(t,a.create({render:function(){return i._draw()}})),i}e.Container=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(230)),n(e(231))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(1),a=i(3),l=i(10),c=i(22),o=(r=c.Navbar,o(u,r),u.prototype.showAt=function(t,e){void 0===e&&(e="bottom"),t instanceof MouseEvent?(this._close(t),this._changeActivePosition({left:window.pageXOffset+t.x+1,right:window.pageXOffset+t.x+1,top:window.pageYOffset+t.y,bottom:window.pageYOffset+t.y,zIndex:l.getZIndex(t.target)},e)):window.TouchEvent&&t instanceof TouchEvent?(this._close(t),this._changeActivePosition({left:window.pageXOffset+t.touches[0].clientX,right:window.pageXOffset+t.touches[0].clientX,top:window.pageYOffset+t.touches[0].clientY,bottom:window.pageYOffset+t.touches[0].clientY,zIndex:l.getZIndex(t.target)},e)):(t instanceof HTMLElement||"string"==typeof t)&&(t=a.toNode(t),this._changeActivePosition(a.getRealPosition(t),e))},u.prototype._getFactory=function(){return c.createFactory({widget:this,defaultType:"menuItem",allowedTypes:["menuItem","spacer","separator","customHTML","customHTMLButton"],widgetName:"context-menu"})},u.prototype._close=function(t){var e=this;this.events.on(c.NavigationBarEvents.afterHide,function(){e._activeMenu=null,e._changeActivePosition(null,null)}),r.prototype._close.call(this,t)},u.prototype._getMode=function(t,e,i){return i?this._mode:"right"},u.prototype._changeActivePosition=function(t,e){this._activePosition=t,this._mode=e,this._listenOuterClick(),this.paint()},u);function u(t,e){e=r.call(this,t,s.extend({$name:"context-menu"},e))||this;return e._isContextMenu=!0,e}e.ContextMenu=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(1),a=i(0),l=i(22),o=(r=l.Navbar,o(c,r),c.prototype._getFactory=function(){return l.createFactory({widget:this,defaultType:"menuItem",allowedTypes:["menuItem","spacer","separator","customHTML","customHTMLButton"],widgetName:"menu-nav"})},c.prototype._draw=function(){return a.el("ul.dhx_widget",{"data-dhx-widget-id":this._uid,onmousemove:this._handlers.onmousemove,onmouseleave:this._handlers.onmouseleave,onclick:this._handlers.onclick,onmousedown:this._handlers.onmousedown,class:"dhx_menu-nav "+(this.config.css||"")},this._drawMenuItems(this.data.getRoot(),!1))},c);function c(t,e){var i=r.call(this,t,s.extend({$name:"menu"},e))||this;return i.mount(t,a.create({render:function(){return i._draw()}})),i}e.Menu=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(100)),n(e(233))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(100),a=i(21),l=i(0),c=i(3),u=i(10),o=(r=s.Ribbon,o(d,r),d.prototype._draw=function(){var i=this;this._heightCalculate();var t=[l.el("ul.dhx_ribbon-content.dhx_ribbon-content--full-width",{style:{height:Math.max.apply(Math,this._widgetHeight)}},this.data.map(function(t){return"block"===t.type?i._drawBlock(t,!0):i._factory(t)},this.data.getRoot(),!1))],e=Math.max.apply(Math,this._widgetHeight);return l.el("ul.dhx_ribbon.dhx_widget",{"data-dhx-widget-id":this._uid,class:this.config.css||"",tabindex:0,onclick:this._handlers.onclick,onmousedown:this._handlers.onmousedown,oninput:this._listeners.input,onmouseover:this._listeners.tooltip,_hooks:{didInsert:function(t){t.el.addEventListener("keyup",function(t){var e;9!==t.which||(e=c.locateNode(document.activeElement))&&(t=e.getAttribute("data-dhx-id"),(t=i.data.getItem(t)).tooltip&&u.tooltip(t.tooltip,{node:e,position:u.Position.bottom,force:!0}))},!0)}}},[l.el("li",{class:"dhx_ribbon-block dhx_ribbon-block--root",style:{height:this._haveTitle?e+24:e}},this.scrollView&&this.scrollView.config.enable?[].concat(this.scrollView.render(t)):t)])},d);function d(t,e){var i=r.call(this,t,e)||this;return i.scrollView=new a.ScrollView(function(){return i.getRootView()}),i}e.ProRibbon=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(101)),n(e(235)),n(e(102))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(0),a=i(3),l=i(21),c=i(101),u=i(10),o=(r=c.Sidebar,o(d,r),d.prototype._draw=function(){var i=this,t=this.config,e=t.width,t=t.minWidth,t=this.config.collapsed?t:e,e=[s.el("ul.dhx_navbar.dhx_navbar--vertical",{"data-dhx-widget-id":this._uid,tabindex:0,onclick:this._handlers.onclick,onmousedown:this._handlers.onmousedown,oninput:this._handlers.input,onmouseover:this._handlers.tooltip,_hooks:{didInsert:function(t){t.el.addEventListener("keyup",function(t){var e;9!==t.which||(e=a.locateNode(document.activeElement))&&(t=e.getAttribute("data-dhx-id"),((t=i.data.getItem(t)).tooltip||i.config.collapsed&&t.value)&&u.tooltip(t.tooltip||t.value,{node:e,position:u.Position.right,force:!0}))},!0)}}},this.data.map(function(t){return i._factory(t)},this.data.getRoot(),!1))];return s.el("nav.dhx_widget.dhx_sidebar",{class:(this.config.css||"")+(this.config.collapsed?" dhx_sidebar--minimized":""),style:{width:t+"px"}},this.scrollView&&this.scrollView.config.enable?[].concat(this.scrollView.render(e)):e)},d);function d(t,e){var i=r.call(this,t,e)||this;return i.scrollView=new l.ScrollView(function(){return i.getRootView()}),i}e.ProSidebar=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(237)),n(e(103))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,l=i(1),c=i(0),u=i(2),d=i(3),h=i(13),f=i(19),p=i(11),g=i(103),o=(a=p.Layout,o(v,a),v.prototype.toVDOM=function(){var t=this;this._getTabContainer();var e,i=null;return this.config.noContent||(i=this.getCell(this.config.activeView))&&(e=this._disabled.includes(this.config.activeView)?" dhx_tabbar-content--disabled":"",i.config.css?-1!==i.config.css.indexOf("dhx_tabbar-content--disabled")?i.config.css=i.config.css.replace("dhx_tabbar-content--disabled",""):i.config.css=i.config.css+e:i.config.css=e),c.awaitRedraw().then(function(){t._tabsContainer||t.paint()}),this._tabsContainer&&(this._tabFontSize=parseFloat(getComputedStyle(this._tabsContainer).getPropertyValue("font-size"))),c.el("div",{class:"dhx_widget dhx_tabbar"+(this.config.mode?" dhx_tabbar--"+this.config.mode:"")+(this.config.css?" "+this.config.css:"")},this._tabsContainer?s(this._drawTabs(),[i?i.toVDOM():null]):[])},v.prototype.destructor=function(){this.events&&this.events.clear(),this._keyManager&&this._keyManager.destructor(),a.prototype.destructor.call(this),this.unmount(),this._tabsContainer=this._beforeScrollSize=this._afterScrollSize=this._keyManager=null,this.config=this.events=this._cells=this._handlers=null},v.prototype.getWidget=function(){var e=this;return this._cells.filter(function(t){return e.getActive()===t.id})[0].getWidget()},v.prototype.setActive=function(t){var e;this._cells.map(function(t){return t.id}).includes(t)&&!this._disabled.includes(t)&&(e=this.config.activeView,this.events.fire(g.TabbarEvents.beforeChange,[t,e])&&(this.config.activeView=t,this.getCell(t).show(),this._focusTab(t),this.events.fire(g.TabbarEvents.change,[t,e])))},v.prototype.getActive=function(){return this.config?this.config.activeView:null},v.prototype.addTab=function(t,e){this.addCell(t,e),1!==this._cells.length||t.disabled||this.setActive(this._cells[0].id)},v.prototype.removeTab=function(t){var e=this;if(this.events.fire(g.TabbarEvents.beforeClose,[t])){if(t===this.config.activeView){var i=this._getEnableTabs().length,n=l.findIndex(this._getEnableTabs(),function(t){return t.id===e.config.activeView});if(n<0)return;n===i-1&&--n,a.prototype.removeCell.call(this,t),1===i?this.config.activeView=null:this.setActive(this._getEnableTabs()[n].id)}else a.prototype.removeCell.call(this,t);this.events.fire(g.TabbarEvents.afterClose,[t]),this.events.fire(g.TabbarEvents.close,[t])}},v.prototype.disableTab=function(t){return!(!this._cells.map(function(t){return t.id}).includes(t)||this._disabled.includes(t))&&(this._disabled.push(t),this.paint(),!0)},v.prototype.enableTab=function(e){var t;this._disabled.includes(e)&&(t=this._disabled.filter(function(t){return t!==e}),this._disabled=s(t),this.paint())},v.prototype.isDisabled=function(t){return this._disabled.includes(t||this.config.activeView)},v.prototype.removeCell=function(t){this.removeTab(t)},v.prototype._initHandlers=function(){var u=this;a.prototype._initHandlers.call(this),this._handlers=r(r({},this._handlers),{onTabClick:function(i){c.awaitRedraw().then(function(){var t=d.locate(i,"dhx_tabid");if(t&&!u._disabled.includes(t)){var e=u.config.activeView;if(i.target.classList.contains("dhx_tabbar-tab__close"))u.removeTab(t);else{if(!u.events.fire(g.TabbarEvents.beforeChange,[t,e]))return;e!==(u.config.activeView=t)&&u.events.fire(g.TabbarEvents.change,[u.config.activeView,e])}u.paint()}})},onScrollClick:function(t){var n=d.locate(t,"mode");if(!n)switch(t.key){case"ArrowRight":n="right";break;case"ArrowLeft":n="left";break;case"ArrowUp":n="up";break;case"ArrowDown":n="down"}var o,r,s,a,l,c,t={behavior:"smooth"};u._isHorizontalMode()?(o=u._normalizeSize({width:u._getSizes(u._cells[0].config).width}).width,r=u._normalizeSize({width:u._getSizes(u._cells[u._cells.length-1].config).width}).width,u._tabsContainer&&(s=u._tabsContainer.scrollWidth,u._cells.reduce(function(t,e,i){if(t>=u._tabsContainer.scrollLeft&&0!==i&&"left"===n)o=Math.abs(u._normalizeSize({width:u._getSizes(u._cells[i-1].config).width}).width-(t-u._tabsContainer.scrollLeft));else{if(!(t>s+u._tabsContainer.scrollLeft&&"right"===n))return t+u._normalizeSize({width:u._getSizes(e.config).width}).width;r=Math.abs(s+u._tabsContainer.scrollLeft-t)}},0)),t.left="left"===n?u._tabsContainer.scrollLeft-o:u._tabsContainer.scrollLeft+r):(a=u._normalizeSize({height:u._getSizes(u._cells[0].config).height}).height,l=u._normalizeSize({height:u._getSizes(u._cells[u._cells.length-1].config).height}).height,u._tabsContainer&&(c=u._tabsContainer.clientHeight,u._cells.reduce(function(t,e,i){if(t>=u._tabsContainer.scrollTop&&0!==i&&"up"===n)a=Math.abs(u._normalizeSize({height:u._getSizes(u._cells[i-1].config).height}).height-(t-u._tabsContainer.scrollTop));else{if(!(t>c+u._tabsContainer.scrollTop&&"down"===n))return t+u._normalizeSize({height:u._getSizes(e.config).height}).height;l=Math.abs(c+u._tabsContainer.scrollTop-t)}},0)),t.top="up"===n?u._tabsContainer.scrollTop-a:u._tabsContainer.scrollTop+l),d.isIE()?(u._tabsContainer.scrollLeft=t.left,u._tabsContainer.scrollTop=t.top):u._tabsContainer.scrollTo(t)},onHeaderScroll:l.debounce(function(){u.paint()},10)})},v.prototype._isHorizontalMode=function(){return"bottom"===this.config.mode||"top"===this.config.mode},v.prototype._focusTab=function(t,e){var i=this;c.awaitRedraw().then(function(){i.getRootView().refs[t].el.focus(),e&&i._handlers.onScrollClick(e)})},v.prototype._getEnableTabs=function(){var e=this;return this._cells.filter(function(t){return!e._disabled.includes(t.config.id)})},v.prototype._getIndicatorPosition=function(){var n=this,o=l.findIndex(this._cells,function(t){return t.id===n.config.activeView});-1===o&&(o=0);var t=this.getCell(this.config.activeView);if(this._isHorizontalMode()){var e=this._normalizeSize({width:this._getSizes(t.config).width}),i=e.width,e=e.unit,r=this._tabsContainer.clientWidth;return{left:0,transform:"translateX("+this._cells.reduce(function(t,e,i){e=n._normalizeSize({width:n._getSizes(e.config).width});return"%"===e.unit&&(e.width=r/100*e.width),i<o?t+e.width:t},0)+"px)",transition:"all 0.1s ease",width:i+e,height:"2px"}}var i=this._normalizeSize({height:this._getSizes(t.config).height}),t=i.height,e=i.unit,s=this._tabsContainer.clientHeight;return{top:0,transform:"translateY("+this._cells.reduce(function(t,e,i){e=n._normalizeSize({height:n._getSizes(e.config).height});return"%"===e.unit&&(e.height=s/100*e.height),i<o?t+e.height:t},0)+"px)",transition:"all 0.1s ease",height:t+e,width:"2px"}},v.prototype._drawTabs=function(){var r=this;if(!this._cells.length)return[];this._beforeScrollSize=0,this._afterScrollSize=0;var t=this._isHorizontalMode(),e=t?(i=this._tabsContainer.clientWidth,e=Math.round(this._cells.reduce(function(t,e){return r._normalizeSize({width:r._getSizes(e.config).width}).width+t},0)),this._tabsContainer&&i<=e?(this._beforeScrollSize=this._tabsContainer.scrollLeft,this._afterScrollSize=e-(i+this._beforeScrollSize)):i<=e&&(this._afterScrollSize=e-i),{height:this.config.tabHeight||"45px",top:"top"===this.config.mode?0:""}):(i=this._tabsContainer.clientHeight,e=Math.round(this._cells.reduce(function(t,e){return r._normalizeSize({height:r._getSizes(e.config).height}).height+t},0)),this._tabsContainer&&i<=e?(this._beforeScrollSize=this._tabsContainer.scrollTop,this._afterScrollSize=e-(i+this._beforeScrollSize)):this._afterScrollSize=e-i,{width:this.config.tabWidth||"200px",left:"left"===this.config.mode?0:""}),i=this._getIndicatorPosition();return[c.el(".dhx_tabbar-header__wrapper",{onscroll:this._handlers.onHeaderScroll,class:this.config.tabAlign&&this._beforeScrollSize<=0&&this._afterScrollSize<=0?"dhx_tabbar-header__wrapper-"+this.config.tabAlign:""},[c.el("ul."+this.config.mode,{tabs_id:this._uid,class:"dhx_tabbar-header ",onclick:this._handlers.onTabClick},s(this._cells.map(function(t){var e=r.config,i=e.closable,n=e.closeButtons,o=e.activeView,e=r._disabled.includes(t.config.id);return c.el("li",{class:"dhx_tabbar-tab"+(t.config.tabCss?" "+t.config.tabCss:""),dhx_tabid:t.id,role:"presentation",style:r._getSizes(t.config)},[c.el("button.dhx_button.dhx_tabbar-tab-button"+(o===t.id?".dhx_tabbar-tab-button--active":"")+(e?".dhx_tabbar-tab-button--disabled":""),{tabindex:"0","aria-controls":t.id,id:"tab-content-"+t.id,"aria-selected":""+(o===t.id),_ref:t.id.toString(),type:"button",disabled:e},[c.el("span.dhx_button__text",t.config.tab)]),Array.isArray(i)&&i.includes(t.config.id)&&!e||i&&"boolean"==typeof i&&!e||n&&"boolean"==typeof n&&!e?c.el("div.dhx_tabbar-tab__close.dxi--small.dxi.dxi-close",{tabindex:0,role:"button","aria-pressed":"false"}):null])}),[c.el(".dhx_tabbar-header-active",{style:i})]))]),0<this._beforeScrollSize&&c.el(".dhx_tabbar_scroll",{class:"dxi dxi-chevron-"+(t?"left":"up")+" arrow-"+(t?"left":"up"),_key:"startArrow",onclick:this._handlers.onScrollClick,mode:t?"left":"up",style:e}),0<this._afterScrollSize&&c.el(".dhx_tabbar_scroll",{class:"dxi dxi-chevron-"+(t?"right":"down")+" arrow-"+(t?"right":"down"),_key:"endArrow",onclick:this._handlers.onScrollClick,mode:t?"right":"down",style:e})]},v.prototype._getSizes=function(t){"number"==typeof t.tabWidth&&(t.tabWidth=t.tabWidth+"px"),"number"==typeof t.tabHeight&&(t.tabHeight=t.tabHeight+"px"),"number"==typeof this.config.tabWidth&&(this.config.tabWidth=this.config.tabWidth+"px"),"number"==typeof this.config.tabHeight&&(this.config.tabHeight=this.config.tabHeight+"px");var e=this.config.tabWidth||(this._isHorizontalMode()?l.getStringWidth(t.tab.toUpperCase(),{font:"500 "+this._tabFontSize+".4px Arial"})+50+"px":"200px"),i=this.config.tabHeight||"45px";return this._isHorizontalMode()?void 0!==t.tabWidth&&(e=t.tabWidth):void 0!==t.tabHeight&&(i=t.tabHeight),(this.config.tabAutoWidth&&!1!==t.tabAutoWidth||t.tabAutoWidth)&&void 0===this.config.tabWidth&&void 0===t.tabWidth&&(e=this._getTabAutoWidth()),(this.config.tabAutoHeight&&!1!==t.tabAutoHeight||t.tabAutoHeight)&&void 0===this.config.tabHeight&&void 0===t.tabHeight&&(i=this._getTabAutoHeight()),{width:e,height:i}},v.prototype._normalizeSize=function(t){var e={};if(1<=Object.keys(t).length)for(var i in t)"number"==typeof t[i]?e.unit="px":(t[i].includes("%")?(e[i]=t[i].slice(0,-1),e.unit="%"):t[i].includes("px")&&(e[i]=t[i].slice(0,-2),e.unit="px"),e[i]=parseFloat(e[i]));return e},v.prototype._getTabAutoWidth=function(){var e=this,t=this._tabsContainer.clientWidth,i=0,n=0;return this._cells.forEach(function(t){t.config.tabAutoWidth||e.config.tabAutoWidth&&!1!==t.config.tabAutoWidth?t.config.tabWidth?i+=e._normalizeSize({width:t.config.tabWidth}).width:n++:i+=e._normalizeSize({width:e._getSizes(t.config).width}).width}),(t-i)/n+"px"},v.prototype._getTabAutoHeight=function(){var e=this,t=this._tabsContainer.clientHeight,i=0,n=0;return this._cells.forEach(function(t){t.config.tabAutoHeight||e.config.tabAutoHeight&&!1!==t.config.tabAutoHeight?t.config.tabHeight?i+=e._normalizeSize({height:t.config.tabHeight}).height:n++:i+=e._normalizeSize({height:e._getSizes(t.config).height}).height}),(t-i)/n+"px"},v.prototype._getTabContainer=function(){var t,e=this;this._tabsContainer?this.getRootNode()?(t=this.getRootNode()&&this.getRootNode().getElementsByClassName("dhx_tabbar-header__wrapper")[0])&&this._tabsContainer!==t&&(this._tabsContainer=t,this.paint()):c.awaitRedraw().then(function(){return e.paint()}):(this._tabsContainer=this.getRootNode(),this.paint())},v.prototype._initHotkeys=function(){function t(t){t.preventDefault();var e=o._getEnableTabs(),i=l.findIndex(e,function(t){return t.id===o.config.activeView}),n=o.config.activeView;-1!==i&&(i=(i===e.length-1?e[0]:e[i+1]).id,o.events.fire(g.TabbarEvents.beforeChange,[i,n])&&(o.config.activeView=i,o.events.fire(g.TabbarEvents.change,[o.config.activeView,n]),o._focusTab(o.config.activeView,t),o.paint()))}function e(t){t.preventDefault();var e=o._getEnableTabs(),i=l.findIndex(e,function(t){return t.id===o.config.activeView}),n=o.config.activeView;-1!==i&&(i=(0===i?e[e.length-1]:e[i-1]).id,o.events.fire(g.TabbarEvents.beforeChange,[i,n])&&(o.config.activeView=i,o.events.fire(g.TabbarEvents.change,[o.config.activeView,n]),o._focusTab(o.config.activeView,t),o.paint()))}var i,o=this,n="right"===this.config.mode||"left"===this.config.mode,r={arrowRight:t,arrowUp:n?e:t,arrowLeft:e,arrowDown:n?t:e};for(i in r)this._keyManager.addHotKey(i,r[i])},v);function v(t,e){var i,n=a.call(this,t,l.extend({mode:"top"},e))||this;return n._tabFontSize=14,n._keyManager=new h.KeyManager(function(){return d.locate(document.activeElement,"tabs_id")===n._uid}),n._initHotkeys(),n.config.disabled&&(e=n.config.disabled,i=n._cells.map(function(t){return t.id}),Array.isArray(e)?e.forEach(function(t){i.includes(t)&&!n._disabled.includes(t)&&n._disabled.push(t)}):i.includes(e)&&!n._disabled.includes(e)&&n._disabled.push(e),n.paint()),n.events=new u.EventSystem(n),f.focusManager.setFocusId(n._uid),n}e.Tabbar=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(239)),n(e(104)),n(e(105))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),u=this&&this.__assign||function(){return(u=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var c=i(1),d=i(0),r=i(2),s=i(3),a=i(28),l=i(5),h=i(8),f=i(104),p=i(13),g=i(19),v=i(105);function _(t,e){return t?e?"openFolder":"folder":"file"}var m,o=(m=l.View,o(y,m),y.prototype.focusItem=function(t){var e=this;this._focusId=t,this.data.eachParent(t,function(t){t.opened||e.expand(t.id)}),d.awaitRedraw().then(function(){return e._scrollTo(t)}),this.events.fire(v.TreeEvents.focusChange,[this.data.getIndex(t),t]),this.paint()},y.prototype.destructor=function(){this.events&&this.events.clear(),this._keyManager&&this._keyManager.destructor(),this.config=this.events=this.selection=null,this._editor=this._handlers=this._root=this._focusId=this._right=this._keyManager=this._touch=this._isDraget=null,this.unmount()},y.prototype.editItem=function(t,e){var i;this._editor.isEditable()||(i=this.data.getItem(t),this.events.fire(v.TreeEvents.beforeEditStart,[i.value,t])&&(this.data.update(t,{$edit:!0,$editConfig:e},!0),this.events.fire(v.TreeEvents.afterEditStart,[i.value,t])))},y.prototype.getState=function(){var e={};return this.data.eachChild(this._root,function(t){e[t.id]={open:t.opened,selected:t.$mark}},!0),e},y.prototype.setState=function(e){this.data.eachChild(this._root,function(t){t.id in e&&(t.opened=e[t.id].open,t.$mark=e[t.id].selected)},!0),this.paint()},y.prototype.toggle=function(t){var e=this.data.getItem(t);e.$autoload?this.events.fire(v.TreeEvents.beforeExpand,[t])&&(this.data.loadItems(t),this.data.update(t,{$autoload:!1,opened:!0}),this.events.fire(v.TreeEvents.afterExpand,[t])):e.opened?this.collapse(t):this.expand(t)},y.prototype.getChecked=function(){var e=[];return this.data.eachChild(this._root,function(t){t.$mark===v.SelectStatus.selected&&e.push(t.id)}),e},y.prototype.checkItem=function(t){c.isId(t)&&this.data.getItem(t)&&(this._updateItemCheck(t,v.SelectStatus.selected),this.paint())},y.prototype.collapse=function(t){this.data.haveItems(t)&&this.events.fire(v.TreeEvents.beforeCollapse,[t])&&(this.data.update(t,{opened:!1}),this.events.fire(v.TreeEvents.afterCollapse,[t]))},y.prototype.collapseAll=function(){var e=this;this.data.eachChild(this._root,function(t){t=t.id;return e.collapse(t)},!0)},y.prototype.expand=function(t){this.data.haveItems(t)&&this.events.fire(v.TreeEvents.beforeExpand,[t])&&(this.data.update(t,{opened:!0}),this.events.fire(v.TreeEvents.afterExpand,[t]))},y.prototype.expandAll=function(){var e=this;this.data.eachChild(this._root,function(t){t=t.id;return e.expand(t)},!0)},y.prototype.uncheckItem=function(t){c.isId(t)&&this.data.getItem(t)&&(this._updateItemCheck(t,v.SelectStatus.unselected),this.paint())},y.prototype.close=function(t){this.collapse(t)},y.prototype.closeAll=function(){this.collapseAll()},y.prototype.open=function(t){this.expand(t)},y.prototype.openAll=function(){this.expandAll()},y.prototype.unCheckItem=function(t){this.uncheckItem(t)},y.prototype._draw=function(){this._getRightPos();var t=this._drawItems(this.data.getRoot());return d.el("ul",u({class:"dhx_widget dhx_tree"+(this._isSelectionActive?"":" dhx_tree--no-selection ")+(this.config.css?" "+this.config.css:""),"data-dhx-widget-id":this._uid,tabindex:0,"data-dhx-root-id":this.config.rootId},this._handlers),t)},y.prototype._initEvents=function(){var r=this;this.data.events.on(h.DataEvents.change,function(t,e,i){"remove"===e&&r._updateParents(i.parent,!0),"add"===e&&r._updateParents(t),r.paint()}),this.data.events.on(h.DataEvents.filter,function(){r.paint()}),this.data.events.on(h.DataEvents.beforeRemove,function(t){var e,i,n=t.id,o=t.parent;n==r._focusId&&(e=r.data.findAll(function(t){return t.parent===o}),i=o,1<e.length&&(t=e.findIndex(function(t){return t.id===n}),i=e[t===e.length-1?e.length-2:t+1].id),r.selection.remove(n),r.selection.add(i),r.focusItem(i))}),this._editor.events.on(f.EditorEvents.begin,function(t){t===r._uid&&(r.config.$editable=!0)}),this._editor.events.on(f.EditorEvents.end,function(t,e,i){return!!r.events.fire(v.TreeEvents.beforeEditEnd,[i,e])&&(r._uid===t&&r.data.update(e,{$edit:!1,value:i}),r.config.$editable=!1,void r.events.fire(v.TreeEvents.afterEditEnd,[i,e]))}),this.events.on(h.DragEvents.beforeDrag,function(t,e,i){var n=t.start,t=r.data.getItem(n),n=_(r.config.isFolder?r.config.isFolder(t):r.data.haveItems(t.id),t.opened),n=(t.icon||r.config.icon)[n]||r.config.icon[n];i.innerHTML='<div class="dhx_tree-list-item__icon '+n+'"></div><span class="dhx_tree-list-item__text">'+(t.text||t.value)+"</span>"}),this.events.on(h.DragEvents.canDrop,function(t){var e=t.target,t=t.dropPosition,t="complex"===r.config.dropBehaviour?"top"===t?"dhx_tree-drop--top":"bottom"===t?"dhx_tree-drop--bottom":"dhx_tree-drop--in-folder":"child"===r.config.dropBehaviour?"dhx_tree-drop--in-folder":"dhx_tree-drop--bottom";r.data.exists(e)&&r.data.update(e,{$drophere:t},!0),r.paint()}),this.events.on(h.DragEvents.cancelDrop,function(t){t=t.target;r.data.exists(t)&&r.data.update(t,{$drophere:null},!0)}),this.events.on(h.DragEvents.afterDrop,function(t){var e=t.target,t=t.dropPosition;("child"===r.config.dropBehaviour||"complex"===r.config.dropBehaviour&&"in"===t)&&r.expand(e)}),this.events.on(h.DragEvents.dragStart,function(){r._isSelectionActive=!1,r._autoScroll(),r.paint()}),this.events.on(h.DragEvents.afterDrag,function(t){r._isSelectionActive=!0,r._isDraget=!0,r.data.exists(t.start)&&r.selection.add(t.start),r.paint()}),this.events.on(v.TreeEvents.itemClick,function(t){r._focusId=t,r.paint()}),this.events.on(a.SelectionEvents.afterSelect,function(){return r.paint()}),this.events.on(a.SelectionEvents.afterUnSelect,function(){return r.paint()})},y.prototype._autoScroll=function(){var i,n,o,r,s,t,a,e,l=this.getRootNode();l&&(i=null,t=l.getBoundingClientRect(),n=t.top,o=t.bottom,r=t.left,s=t.right,t=t.height,a=function(t){"up"===t||"down"===t?l.scrollBy(0,"up"===t?-20:20):l.scrollBy("left"===t?-20:20,0),i=setTimeout(function(){a(t)},100)},e=function(t){var e=t.clientX,t=t.clientY;o-20<t&&t<o&&r<e&&e<s?i||a("down"):n<t&&t<n+20&&r<e&&e<s?i||a("up"):i&&(clearTimeout(i),i=null)},t<l.scrollHeight&&(document.addEventListener("pointermove",e),document.addEventListener("pointerup",function(){document.removeEventListener("pointermove",e),i&&clearTimeout(i)},{once:!0})))},y.prototype._scrollTo=function(t){var e,i=this.getRootNode(),n=i.querySelector('[data-dhx-id="'+t+'"]');n&&(e=i.getBoundingClientRect(),n=(t=n.getBoundingClientRect()).top-e.top,e=t.top+t.height-e.top-e.height,n<0?i.scrollBy(0,n):0<e&&i.scrollBy(0,e))},y.prototype._initHandlers=function(){var n=this;this._handlers={onmouseleave:function(t){h.dragManager.cancelCanDrop(t)},onclick:function(t){if(n._isDraget)n._isDraget=!1;else{var e=s.locate(t);if(e)if(t.target.classList.contains("dhx_tree-toggle-button"))n.toggle(e);else{if(t.target.classList.contains("dhx_tree-checkbox")){if(!n.events.fire(v.TreeEvents.beforeCheck,[n.data.getIndex(e),e]))return;var i=n.data.getItem(e);return i.$mark===v.SelectStatus.unselected?n.checkItem(e):n.uncheckItem(e),void n.events.fire(v.TreeEvents.afterCheck,[n.data.getIndex(e),e,!!i.$mark])}n.events.fire(v.TreeEvents.itemClick,[e,t]),n.data.exists(e)&&n.selection.add(e)}}},ondblclick:function(t){n._dblClick(t)},ondragstart:function(t){t.preventDefault()},onmousedown:function(t){n._dragStart(t)},ontouchstart:function(t){n._touch.timer=setTimeout(function(){n._dragStart(t)},n._touch.duration),n._touch.timeStamp?(n._touch.dblDuration>=n._touch.timeStamp-+t.timeStamp.toFixed()&&n._dblClick(t),n._touch.timeStamp=null):n._touch.timeStamp=+t.timeStamp.toFixed(),setTimeout(function(){n._touch.timeStamp=null},n._touch.dblDuration)},ontouchmove:function(t){n._touch.start&&t.preventDefault(),n._clearTouchTimer()},ontouchend:function(){n._touch.start=!1,n._clearTouchTimer()},oncontextmenu:function(t){var e=s.locate(t);e&&(n.events.fire(v.TreeEvents.itemRightClick,[e,t]),n.events.fire(v.TreeEvents.itemContextMenu,[e,t]))}};var t=this.config.eventHandlers;if(t)for(var e=0,i=Object.entries(t);e<i.length;e++){var o=i[e],r=o[0],o=o[1];this._handlers[r]=s.eventHandler(function(t){var e=u({},n.data.getItem(s.locate(t)));return Object.keys(e).forEach(function(t){t.startsWith("$")&&delete e[t]}),e},o,this._handlers[r])}},y.prototype._dblClick=function(t){var e=s.locate(t);e&&(this.events.fire(v.TreeEvents.itemDblClick,[e,t]),this.config.editable&&this.editItem(e))},y.prototype._clearTouchTimer=function(){this._touch.timer&&(clearTimeout(this._touch.timer),this._touch.timer=null)},y.prototype._dragStart=function(t){this.config.dragMode&&"target"!==this.config.dragMode&&(this._editor.isEditable()||(this._touch.start=!0,h.dragManager.onMouseDown(t)))},y.prototype._getRightPos=function(t,e){if(void 0===e&&(e=0),!c.isId(t))for(var i=this.data.getRoot(),n=0,o=this.data.findAll(function(t){return t.parent===i});n<o.length;n++){var r=o[n];return this._getRightPos(r.id,e)}t=this.data.getItem(t);if(t&&(this._right=e,this.data.haveItems(t.id)&&t.opened&&t.items))for(var s=0,a=t.items;s<a.length;s++){var l=a[s];this._getRightPos(l.id,e+1)}},y.prototype._drawItems=function(t,l){var c=this;return void 0===l&&(l=0),this.data.getRawData(0,-1,null,0,t).map(function(t){if(t){var e,i,n,o=!!c.config.isFolder&&c.config.isFolder(t);(t.$autoload||c.data.haveItems(t.id))&&(o=!0,e=d.el("div",{class:"dxi dxi-menu-right dhx_tree-toggle-button"},""),t.opened&&(e=d.el("div",{class:"dxi dxi-menu-down dhx_tree-toggle-button dhx_tree-toggle-button--open"},""),i=c._drawItems(t.id,l+1))),t.checkbox&&(s=t.$mark===v.SelectStatus.indeterminate?"dxi-minus-box":t.$mark===v.SelectStatus.selected?"dxi-checkbox-marked":"dxi-checkbox-blank-outline",n=d.el("div",{class:"dhx_tree-checkbox dxi "+s}));var r=_(o,t.opened),s=(t.icon||c.config.icon)[r]||c.config.icon[r];r=t.$edit?c._editor.edit(c._uid,u({item:t},t.$editConfig)):d.el("span",{class:"dhx_tree-list-item__text"},t.text||t.value),c.config.template&&(r="string"!=typeof(a=c.config.template(t,o))||(!t.hasOwnProperty("value")||t.$edit)&&t.hasOwnProperty("value")?r:d.el("div.dhx_tree-template__wrapper",{".innerHTML":a}));var a=c.config.itemHeight||null;return o?d.el("li",{class:"dhx_tree-list-item dhx_tree-list-item--parent"+(t.css?" "+t.css:""),"data-dhx-id":t.id,_key:t.id},[d.el("div.dhx_tree-folder",{class:(t.id==c._focusId?" dhx_tree-folder--focused":"")+(t.$selected?" dhx_tree-folder--selected":"")+(t.$drophere?" "+t.$drophere:""),style:{left:-20*l+"px",right:0,"margin-left":20*l+"px",minHeight:a}},[e,d.el("div.dhx_tree-list-item__content",[n,d.el("div",{class:"dhx_tree-list-item__icon "+s}),r])]),i&&d.el("ul.dhx_tree-list",i)]):d.el("li",{class:"dhx_tree-list__item dhx_tree-list-item"+(t.id==c._focusId?" dhx_tree-list-item--focused":"")+(t.$selected?" dhx_tree-list-item--selected":"")+(t.$drophere?" "+t.$drophere:"")+(o?"dhx_tree-list-item--folder":"")+(t.css?" "+t.css:""),style:{left:-20*l+"px",right:0,"margin-left":20*l+"px",minHeight:a},"data-dhx-id":t.id,level:l},[e,d.el("div",{class:"dhx_tree-list-item__content"},[n,d.el("div",{class:"dhx_tree-list-item__icon "+s}),r])])}})},y.prototype._updateItemCheck=function(t,e){this.data.update(t,{$mark:e},!0),this.data.eachChild(t,function(t){return t.$mark=e}),this._updateParents(t)},y.prototype._updateParents=function(t,e){var n=this;void 0===e&&(e=!1),t!==this._root&&this.data.eachParent(t,function(t){var e=0,i=0;n.data.eachChild(t.id,function(t){if(t.checkbox)switch(t.$mark){case v.SelectStatus.unselected:i++;break;case v.SelectStatus.selected:e++}},!0),t.$mark=0!==e&&0!==i?v.SelectStatus.indeterminate:0===e&&0!==i?v.SelectStatus.unselected:v.SelectStatus.selected},e)},y.prototype._initHotkeys=function(){function i(){var t=o._focusId;return t||(t=o.data.getRoot(),o.data.getItems(t)[0].id)}var t,o=this,r=function(e,t){void 0===t&&(t=!1);var i=o.data.getItem(e);if(o.data.haveItems(e)&&i.opened&&!t)return o.data.getItems(e)[0].id;var n=o.data.getParent(e),i=o.data.getItems(n),t=c.findIndex(i,function(t){return t.id===e});return t+1<i.length?i[t+1].id:n===o.data.getRoot()?null:r(n,!0)},e={arrowLeft:function(t){t.preventDefault();var e=i(),t=o.data.getParent(e);o.data.getRoot()!==t?!o.data.getItem(e).opened?o.focusItem(t):e!==o.data.getRoot()&&o.collapse(e):o.collapse(e)},arrowRight:function(t){t.preventDefault();t=i();if(o.data.getItem(t).$autoload)return o.events.fire(v.TreeEvents.beforeExpand,[t])?(o.data.loadItems(t),o.data.update(t,{$autoload:!1,opened:!0}),void o.events.fire(v.TreeEvents.afterExpand,[t])):void 0;o.data.haveItems(t)&&o.expand(t)},arrowUp:function(t){t.preventDefault();t=function(t){var e=o.data.getIndex(t),t=o.data.getParent(t);if(0<e){var i=o.data.getItems(t)[e-1];if(!o.data.haveItems(i.id)||!i.opened)return i.id;for(;o.data.haveItems(i.id)&&i.opened;)var n=o.data.getItems(i.id),i=n[n.length-1];return i.id}return t===o.data.getRoot()?null:t}(i());t&&o.focusItem(t)},arrowDown:function(t){t.preventDefault();t=i(),t=r(t);t&&o.focusItem(t)},enter:function(){var t=i();t&&o.selection.add(t)}};for(t in e)this._keyManager.addHotKey(t,e[t])},y);function y(t,e){void 0===e&&(e={});var i=m.call(this,t,e)||this;i._touch={duration:350,dblDuration:300,timer:null,start:!1,timeStamp:null},i.config=c.extend({dropBehaviour:"child",icon:{file:"dxi dxi-file-outline",folder:"dxi dxi-folder",openFolder:"dxi dxi-folder-open"},keyNavigation:!0,editable:!1,selection:!0,rootId:"string"==typeof t&&t||i._uid},e),i.config.editable=i.config.editable||i.config.editing;e=function(t){var e;return i.config.collapsed&&null!==(e=t.items)&&void 0!==e&&e.length&&(t.opened=!1),t.$mark=v.SelectStatus.unselected,t.checkbox=null!==(e=t.checkbox)&&void 0!==e?e:i.config.checkbox,t.$autoload=Boolean(t.items&&"string"==typeof i.config.autoload),t.$editor=!1,t};Array.isArray(i.config.data)?(i.events=new r.EventSystem(i),i.data=new h.TreeCollection({autoload:i.config.autoload,init:e,rootId:i.config.rootId||t},i.events),i.data.parse(i.config.data)):i.config.data&&i.config.data.events?(i.data=i.config.data,i.data.config.init=e,i.events=i.data.events,i.events.context=i):(i.events=new r.EventSystem(i),i.data=new h.TreeCollection({autoload:i.config.autoload,init:e,rootId:i.config.rootId||t},i.events)),i._isSelectionActive=!0,i.selection=new h.Selection({disabled:!i.config.selection},i.data,i.events),i.config.keyNavigation&&(i._keyManager=new p.KeyManager(function(t,e){return e===i._uid}),i._initHotkeys()),i._editor=new f.Editor,i._initEvents(),i._initHandlers(),i.config.dragMode&&h.dragManager.setItem(i._uid,i),i._root=i.data.getRoot();return i.mount(t,d.create({render:function(){return i._draw()}})),g.focusManager.setFocusId(i._uid),i}e.Tree=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(106)),n(e(243))},function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.detectDrag=function(r){return new t(function(e){var i=function(){document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",i),e(!1)},n=setTimeout(function(){i()},1e3),o=function(t){(4<Math.abs(t.pageX-r.pageX)||4<Math.abs(t.pageY-r.pageY))&&(document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",i),clearTimeout(n),e({x:r.pageX,y:r.pageY}))};document.addEventListener("mousemove",o),document.addEventListener("mouseup",i)})}}).call(this,i(17))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={popups:{},lastActive:null,freeCount:0,add:function(t,e){this.lastActive&&this.popups[this.lastActive].classList.remove("dhx_popup--window_active"),this.lastActive=t,e.classList.add("dhx_popup--window_active"),this.popups[t]=e},setActive:function(t){var e;t===this.lastActive||(e=this.popups[t])&&(this.lastActive&&this.popups[this.lastActive].classList.remove("dhx_popup--window_active"),this.lastActive=t,e.classList.add("dhx_popup--window_active"))},openFreeWindow:function(t){0===this.freeCount&&t.classList.add("dhx_window--no-scroll"),this.freeCount++},closeFreeWindow:function(t){this.freeCount--,0===this.freeCount&&t.classList.remove("dhx_window--no-scroll")}}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(106),a=i(37),l=i(11),c=i(22),f=i(107),o=(r=s.Window,o(u,r),u.prototype._startResize=function(r){var t,e,s=this,a=100|this.config.minWidth,l=100|this.config.minHeight,c=this._popup.offsetLeft,u=this._popup.offsetTop,d=this._popup.offsetWidth,h=this._popup.offsetHeight,i=this.getRootView().refs;switch(!0){case r.bottom&&r.left:e="dhx_window-body-pointer--bottom_left",t=i.bottomLeft;break;case r.bottom&&r.right:e="dhx_window-body-pointer--bottom_right",t=i.bottomLeft;break;case r.top&&r.left:e="dhx_window-body-pointer--top_left",t=i.bottomLeft;break;case r.top&&r.right:e="dhx_window-body-pointer--top-right",t=i.right;break;case r.top:e="dhx_window-body-pointer--top",t=i.bottomLeft;break;case r.bottom:e="dhx_window-body-pointer--bottom",t=i.bottomLeft;break;case r.left:e="dhx_window-body-pointer--left",t=i.bottomLeft;break;case r.right:e="dhx_window-body-pointer--right",t=i.right}t.el.classList.add("dhx_window-resizer--active"),this.config.node.classList.add("dhx_window--stop_selection"),this.config.node.classList.add(e);function n(t){var e=(o=s._getContainerParams()).containerInnerWidth,i=o.containerInnerHeight,n=o.containerXOffset,o=o.containerYOffset,t={width:s._notInNode()?t.pageX-c:t.pageX-s.config.node.offsetLeft-c,height:s._notInNode()?t.pageY-u:t.pageY-s.config.node.offsetTop-u,left:s._notInNode()?t.pageX:t.pageX-s.config.node.offsetLeft,top:s._notInNode()?t.pageY:t.pageY-s.config.node.offsetTop};r.right&&(t.width<a?t.width=a:t.width>n+e-c&&(t.width=n+e-c),s._popup.style.width=t.width+"px"),r.bottom&&(t.height<l?t.height=l:t.height>o+i-u&&(t.height=o+i-u),s._popup.style.height=t.height+"px"),r.left&&(c+d-t.left<a&&(t.left=c+d-a),t.width=c+d-t.left,s.config.left=t.left,s._popup.style.left=t.left+"px",s._popup.style.width=t.width+"px"),r.top&&(t.top<o?t.top=o:u+h-t.top<l&&(t.top=u+h-l),t.height=u+h-t.top,s.config.top=t.top,s._popup.style.top=t.top+"px",s._popup.style.height=t.height+"px"),s.config.width=s._popup.offsetWidth,s.config.height=s._popup.offsetHeight,s.events.fire(f.WindowEvents.resize,[t,{left:c,top:u,height:h,width:d},r]),s.scrollView&&s.scrollView.update()}var o=function(){document.removeEventListener("mouseup",o),document.removeEventListener("mousemove",n),s.config.node.classList.remove("dhx_window--stop_selection"),s.config.node.classList.remove(e),t.el.classList.remove("dhx_window-resizer--active")};document.addEventListener("mouseup",o),document.addEventListener("mousemove",n)},u.prototype._initUI=function(){var i=this,t=[],e=(this.config.header||this.config.title||this.config.closable||this.config.movable)&&!1!==this.config.header;e&&t.push({id:"header",height:"content",css:"dhx_window-header "+(this.config.movable?"dhx_window-header--movable":""),on:{mousedown:this.config.movable&&this._handlers.move,dblclick:this._handlers.headerDblClick}}),t.push({id:"content",css:e?"dhx_window-content":"dhx_window-content-without-header"}),this.config.footer&&t.push({id:"footer",height:"content",css:"dhx_window-footer"}),this.config.resizable&&t.push({id:"resizers",height:"content",css:"resizers"});var n,o=this._layout=new l.ProLayout(this._popup,{css:"dhx_window"+(this.config.modal?" dhx_window--modal":""),rows:t,on:{mousedown:this._handlers.setActive},id:this._uid}),t=this._layout.getCell("content");t&&t.scrollView&&(this.scrollView=t.scrollView),e&&(n=this.header=new a.Toolbar,this.config.title&&(this.header.data.add({type:"title",value:this.config.title,id:"title",css:"title_max"}),this._popup.setAttribute("aria-label",this.config.title)),this.config.closable&&(this.header.data.add({type:"spacer"}),this.header.data.add({id:"close",type:"button",view:"link",size:"medium",color:"secondary",circle:!0,icon:"dxi dxi-close"}),n.events.on(c.NavigationBarEvents.click,function(t,e){"close"===t&&i._hide(e)})),o.getCell("header").attach(n)),this.config.footer&&(n=this.footer=new a.Toolbar,o.getCell("footer").attach(n)),this.config.resizable&&o.getCell("resizers").attach(function(){return i._drawResizers()})},u);function u(t){return r.call(this,t)||this}e.ProWindow=o}],o.c=n,o.d=function(t,e,i){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(i,n,function(t){return e[t]}.bind(null,n));return i},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/codebase/",o(o.s=108);function o(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return i[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var i,n}),window.dhx_legacy){if(window.dhx)for(var key in dhx)dhx_legacy[key]=dhx[key];window.dhx=dhx_legacy,delete window.dhx_legacy}
|