@dhtmlx/vault 5.0.6
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/README.md +251 -0
- package/codebase/fonts/roboto-bold-webfont.woff +0 -0
- package/codebase/fonts/roboto-bold-webfont.woff2 +0 -0
- package/codebase/fonts/roboto-medium-webfont.woff +0 -0
- package/codebase/fonts/roboto-medium-webfont.woff2 +0 -0
- package/codebase/fonts/roboto-regular-webfont.woff +0 -0
- package/codebase/fonts/roboto-regular-webfont.woff2 +0 -0
- package/codebase/types/ts-calendar/index.d.ts +2 -0
- package/codebase/types/ts-calendar/sources/Calendar.d.ts +37 -0
- package/codebase/types/ts-calendar/sources/helper.d.ts +1 -0
- package/codebase/types/ts-calendar/sources/types.d.ts +64 -0
- package/codebase/types/ts-combobox/index.d.ts +3 -0
- package/codebase/types/ts-combobox/sources/Combobox.d.ts +53 -0
- package/codebase/types/ts-combobox/sources/ProCombobox.d.ts +6 -0
- package/codebase/types/ts-combobox/sources/helper.d.ts +4 -0
- package/codebase/types/ts-combobox/sources/keyListener.d.ts +14 -0
- package/codebase/types/ts-combobox/sources/locales/en.d.ts +8 -0
- package/codebase/types/ts-combobox/sources/types.d.ts +95 -0
- package/codebase/types/ts-common/FocusManager.d.ts +15 -0
- package/codebase/types/ts-common/KeyManager.d.ts +19 -0
- package/codebase/types/ts-common/ScrollView.d.ts +40 -0
- package/codebase/types/ts-common/core.d.ts +40 -0
- package/codebase/types/ts-common/date.d.ts +34 -0
- package/codebase/types/ts-common/dom.d.ts +24 -0
- package/codebase/types/ts-common/events.d.ts +35 -0
- package/codebase/types/ts-common/html.d.ts +74 -0
- package/codebase/types/ts-common/input.d.ts +24 -0
- package/codebase/types/ts-common/keycodes.d.ts +9 -0
- package/codebase/types/ts-common/locale.d.ts +1 -0
- package/codebase/types/ts-common/polyfills/array.d.ts +0 -0
- package/codebase/types/ts-common/polyfills/element.d.ts +0 -0
- package/codebase/types/ts-common/polyfills/fetch.d.ts +0 -0
- package/codebase/types/ts-common/polyfills/math.d.ts +0 -0
- package/codebase/types/ts-common/polyfills/object.d.ts +0 -0
- package/codebase/types/ts-common/polyfills/string.d.ts +0 -0
- package/codebase/types/ts-common/types.d.ts +76 -0
- package/codebase/types/ts-common/view.d.ts +27 -0
- package/codebase/types/ts-data/index.d.ts +13 -0
- package/codebase/types/ts-data/sources/CollectionStore.d.ts +7 -0
- package/codebase/types/ts-data/sources/DragManager.d.ts +19 -0
- package/codebase/types/ts-data/sources/ajax.d.ts +2 -0
- package/codebase/types/ts-data/sources/datacollection/group.d.ts +43 -0
- package/codebase/types/ts-data/sources/datacollection/loader.d.ts +16 -0
- package/codebase/types/ts-data/sources/datacollection/sort.d.ts +7 -0
- package/codebase/types/ts-data/sources/datacollection.d.ts +101 -0
- package/codebase/types/ts-data/sources/dataproxy.d.ts +10 -0
- package/codebase/types/ts-data/sources/drivers/CsvDriver.d.ts +16 -0
- package/codebase/types/ts-data/sources/drivers/JsonDriver.d.ts +10 -0
- package/codebase/types/ts-data/sources/drivers/XMLDriver.d.ts +18 -0
- package/codebase/types/ts-data/sources/drivers/drivers.d.ts +12 -0
- package/codebase/types/ts-data/sources/helpers.d.ts +17 -0
- package/codebase/types/ts-data/sources/lazydataproxy.d.ts +9 -0
- package/codebase/types/ts-data/sources/methods.d.ts +11 -0
- package/codebase/types/ts-data/sources/selection.d.ts +17 -0
- package/codebase/types/ts-data/sources/serializers/xml.d.ts +2 -0
- package/codebase/types/ts-data/sources/treecollection.d.ts +72 -0
- package/codebase/types/ts-data/sources/types.d.ts +340 -0
- package/codebase/types/ts-dataview/index.d.ts +3 -0
- package/codebase/types/ts-dataview/sources/DataView.d.ts +41 -0
- package/codebase/types/ts-dataview/sources/ProDataView.d.ts +11 -0
- package/codebase/types/ts-dataview/sources/editors/InputEditor.d.ts +16 -0
- package/codebase/types/ts-dataview/sources/editors/editors.d.ts +4 -0
- package/codebase/types/ts-dataview/sources/types.d.ts +63 -0
- package/codebase/types/ts-grid/index.d.ts +7 -0
- package/codebase/types/ts-grid/sources/ExtendedGrid.d.ts +47 -0
- package/codebase/types/ts-grid/sources/Grid.d.ts +114 -0
- package/codebase/types/ts-grid/sources/ProGrid.d.ts +67 -0
- package/codebase/types/ts-grid/sources/helpers/cells.d.ts +9 -0
- package/codebase/types/ts-grid/sources/helpers/data.d.ts +36 -0
- package/codebase/types/ts-grid/sources/helpers/default.d.ts +6 -0
- package/codebase/types/ts-grid/sources/helpers/dom.d.ts +3 -0
- package/codebase/types/ts-grid/sources/helpers/keys.d.ts +27 -0
- package/codebase/types/ts-grid/sources/helpers/main.d.ts +23 -0
- package/codebase/types/ts-grid/sources/locales/en.d.ts +7 -0
- package/codebase/types/ts-grid/sources/modules/BlockSelection.d.ts +122 -0
- package/codebase/types/ts-grid/sources/modules/Clipboard.d.ts +55 -0
- package/codebase/types/ts-grid/sources/modules/DropManager.d.ts +21 -0
- package/codebase/types/ts-grid/sources/modules/Exporter.d.ts +80 -0
- package/codebase/types/ts-grid/sources/modules/History.d.ts +72 -0
- package/codebase/types/ts-grid/sources/modules/Range.d.ts +71 -0
- package/codebase/types/ts-grid/sources/modules/Resizer.d.ts +2 -0
- package/codebase/types/ts-grid/sources/modules/Selection.d.ts +58 -0
- package/codebase/types/ts-grid/sources/types.d.ts +660 -0
- package/codebase/types/ts-grid/sources/ui/FixedCols.d.ts +3 -0
- package/codebase/types/ts-grid/sources/ui/FixedRows.d.ts +5 -0
- package/codebase/types/ts-grid/sources/ui/cells.d.ts +34 -0
- package/codebase/types/ts-grid/sources/ui/common.d.ts +8 -0
- package/codebase/types/ts-grid/sources/ui/components/dragPanel.d.ts +7 -0
- package/codebase/types/ts-grid/sources/ui/components/groupPanel.d.ts +13 -0
- package/codebase/types/ts-grid/sources/ui/components/subRow.d.ts +4 -0
- package/codebase/types/ts-grid/sources/ui/content/ComboFilter.d.ts +35 -0
- package/codebase/types/ts-grid/sources/ui/content/DateFilter.d.ts +42 -0
- package/codebase/types/ts-grid/sources/ui/content/InputFilter.d.ts +32 -0
- package/codebase/types/ts-grid/sources/ui/content/SelectFilter.d.ts +28 -0
- package/codebase/types/ts-grid/sources/ui/content.d.ts +55 -0
- package/codebase/types/ts-grid/sources/ui/editors/CheckboxEditor.d.ts +18 -0
- package/codebase/types/ts-grid/sources/ui/editors/ComboboxEditor.d.ts +18 -0
- package/codebase/types/ts-grid/sources/ui/editors/DateEditor.d.ts +37 -0
- package/codebase/types/ts-grid/sources/ui/editors/InputEditor.d.ts +22 -0
- package/codebase/types/ts-grid/sources/ui/editors/SelectEditor.d.ts +16 -0
- package/codebase/types/ts-grid/sources/ui/editors/TextAreaEditor.d.ts +27 -0
- package/codebase/types/ts-grid/sources/ui/editors/editors.d.ts +2 -0
- package/codebase/types/ts-grid/sources/ui/proContent.d.ts +37 -0
- package/codebase/types/ts-grid/sources/ui/render.d.ts +9 -0
- package/codebase/types/ts-layout/index.d.ts +3 -0
- package/codebase/types/ts-layout/sources/Cell.d.ts +60 -0
- package/codebase/types/ts-layout/sources/Layout.d.ts +29 -0
- package/codebase/types/ts-layout/sources/ProCell.d.ts +9 -0
- package/codebase/types/ts-layout/sources/ProLayout.d.ts +6 -0
- package/codebase/types/ts-layout/sources/helpers.d.ts +6 -0
- package/codebase/types/ts-layout/sources/types.d.ts +129 -0
- package/codebase/types/ts-list/index.d.ts +4 -0
- package/codebase/types/ts-list/sources/List.d.ts +56 -0
- package/codebase/types/ts-list/sources/ProList.d.ts +11 -0
- package/codebase/types/ts-list/sources/Selection.d.ts +24 -0
- package/codebase/types/ts-list/sources/editors/InputEditor.d.ts +16 -0
- package/codebase/types/ts-list/sources/editors/editors.d.ts +4 -0
- package/codebase/types/ts-list/sources/types.d.ts +98 -0
- package/codebase/types/ts-message/index.d.ts +5 -0
- package/codebase/types/ts-message/sources/alert.d.ts +2 -0
- package/codebase/types/ts-message/sources/common.d.ts +1 -0
- package/codebase/types/ts-message/sources/confirm.d.ts +2 -0
- package/codebase/types/ts-message/sources/locales/en.d.ts +5 -0
- package/codebase/types/ts-message/sources/message.d.ts +4 -0
- package/codebase/types/ts-message/sources/tooltip.d.ts +6 -0
- package/codebase/types/ts-message/sources/types.d.ts +79 -0
- package/codebase/types/ts-navbar/index.d.ts +3 -0
- package/codebase/types/ts-navbar/sources/Navbar.d.ts +61 -0
- package/codebase/types/ts-navbar/sources/elements/button.d.ts +1 -0
- package/codebase/types/ts-navbar/sources/elements/customHTMLButton.d.ts +1 -0
- package/codebase/types/ts-navbar/sources/elements/datePicker.d.ts +1 -0
- package/codebase/types/ts-navbar/sources/elements/helpers.d.ts +17 -0
- package/codebase/types/ts-navbar/sources/elements/imageButton.d.ts +1 -0
- package/codebase/types/ts-navbar/sources/elements/input.d.ts +1 -0
- package/codebase/types/ts-navbar/sources/elements/menuItem.d.ts +1 -0
- package/codebase/types/ts-navbar/sources/elements/navItem.d.ts +1 -0
- package/codebase/types/ts-navbar/sources/elements/separator.d.ts +1 -0
- package/codebase/types/ts-navbar/sources/elements/spacer.d.ts +1 -0
- package/codebase/types/ts-navbar/sources/elements/title.d.ts +1 -0
- package/codebase/types/ts-navbar/sources/itemfactory.d.ts +10 -0
- package/codebase/types/ts-navbar/sources/types.d.ts +210 -0
- package/codebase/types/ts-popup/index.d.ts +2 -0
- package/codebase/types/ts-popup/sources/Popup.d.ts +29 -0
- package/codebase/types/ts-popup/sources/types.d.ts +42 -0
- package/codebase/types/ts-slider/index.d.ts +2 -0
- package/codebase/types/ts-slider/sources/Slider.d.ts +55 -0
- package/codebase/types/ts-slider/sources/types.d.ts +60 -0
- package/codebase/types/ts-timepicker/index.d.ts +2 -0
- package/codebase/types/ts-timepicker/sources/Timepicker.d.ts +28 -0
- package/codebase/types/ts-timepicker/sources/helper.d.ts +4 -0
- package/codebase/types/ts-timepicker/sources/locales/en.d.ts +6 -0
- package/codebase/types/ts-timepicker/sources/types.d.ts +52 -0
- package/codebase/types/ts-toolbar/index.d.ts +2 -0
- package/codebase/types/ts-toolbar/sources/ProToolbar.d.ts +10 -0
- package/codebase/types/ts-toolbar/sources/Toolbar.d.ts +33 -0
- package/codebase/types/ts-treegrid/index.d.ts +3 -0
- package/codebase/types/ts-treegrid/sources/TreeGrid.d.ts +26 -0
- package/codebase/types/ts-treegrid/sources/TreeGridCollection.d.ts +21 -0
- package/codebase/types/ts-treegrid/sources/types.d.ts +17 -0
- package/codebase/types/ts-vault/sources/ProgressBar.d.ts +12 -0
- package/codebase/types/ts-vault/sources/ReadStackPreview.d.ts +11 -0
- package/codebase/types/ts-vault/sources/Uploader.d.ts +26 -0
- package/codebase/types/ts-vault/sources/Vault.d.ts +39 -0
- package/codebase/types/ts-vault/sources/configs.d.ts +2 -0
- package/codebase/types/ts-vault/sources/entry.d.ts +8 -0
- package/codebase/types/ts-vault/sources/helper.d.ts +31 -0
- package/codebase/types/ts-vault/sources/locales/en.d.ts +21 -0
- package/codebase/types/ts-vault/sources/types.d.ts +127 -0
- package/codebase/vault.d.ts +3 -0
- package/codebase/vault.min.css +1 -0
- package/codebase/vault.min.js +21 -0
- package/codebase/vault.min.js.map +1 -0
- package/license.md +360 -0
- package/package.json +14 -0
- package/whatsnew.txt +99 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
@license
|
|
3
|
+
|
|
4
|
+
This edition of DHTMLX dhtmlxVault v.5.0.6 is licensed under the GNU General Public License v2.0 (GPL v2).
|
|
5
|
+
You can redistribute this package and/or modify it under the terms of the GPL v2.
|
|
6
|
+
GPL v2 requires that any project using this package also be open source under a GPL-compatible license.
|
|
7
|
+
You may NOT use this package in closed-source, proprietary, or commercial applications without a separate commercial license.
|
|
8
|
+
This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GPL v2 for more details: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
9
|
+
|
|
10
|
+
Copyright © 2026 XB Software Ltd.
|
|
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 function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/codebase/",n(n.s=48)}([function(t,e,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},i.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.getTextLines=e.getCloneObject=e.rgbToHex=e.getStringWidth=e.getMinArrayNumber=e.getMaxArrayNumber=e.isEmptyObj=e.isType=e.compare=e.debounce=e.downloadFile=e.isNumeric=e.range=e.isId=e.isDefined=e.wrapBox=e.unwrapBox=e.detectWidgetClick=e.singleOuterClick=e.isExistValue=e.findIndex=e.naturalSort=e.copy=e.extend=e.extendComponent=e.uid=void 0;var r=n(2),o=(new Date).valueOf();function a(t,e,n){"function"==typeof e[n]?t[n]=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return e[n].apply(e,t)}:Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){return e[n]=t},enumerable:!0,configurable:!0})}e.uid=function(){return"u"+o++},e.extendComponent=function(t,e){if(!e)return t;for(var n=0,i=Object.keys(e);n<i.length;n++){a(t,e,l=i[n])}for(var r=Object.getPrototypeOf(e);r&&r!==Object.prototype;){for(var o=0,s=Object.getOwnPropertyNames(r);o<s.length;o++){var l=s[o];t.hasOwnProperty(l)||a(t,e,l)}r=Object.getPrototypeOf(r)}return t},e.extend=function t(e,n,i){if(void 0===i&&(i=!0),n)for(var r in n){var o=n[r],a=e[r];void 0===o?delete e[r]:!i||"object"!=typeof a||a instanceof Date||a instanceof Array?e[r]=o:t(a,o)}return e},e.copy=function(t,e){var n={};for(var 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 n=t.length,i=0;i<n;i++)if(e(t[i]))return i;return-1},e.isExistValue=function(t,e){var n=e.toString(),i=t.toString();return!(n.length>i.length)&&i.toLowerCase().includes(n.toLowerCase())},e.singleOuterClick=function(t){var e=function(n){t(n)&&document.removeEventListener("click",e)};document.addEventListener("click",e)},e.detectWidgetClick=function(t,e){var n=function(n){return e((0,r.locate)(n,"data-dhx-widget-id")===t)};return document.addEventListener("click",n),function(){return document.removeEventListener("click",n)}},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(t>e)return[];for(var n=[];t<=e;)n.push(t++);return n},e.isNumeric=function(t){return!isNaN(t-parseFloat(t))},e.downloadFile=function(t,e,n){var i;if(void 0===n&&(n="application/octet-stream"),t instanceof Blob)i=URL.createObjectURL(t);else{var r=new Blob([t],{type:n});if(window.navigator.msSaveOrOpenBlob)return void window.navigator.msSaveOrOpenBlob(r,e);i=URL.createObjectURL(r)}var o=document.createElement("a");o.href=i,o.download=e,document.body.appendChild(o),o.click(),setTimeout((function(){document.body.removeChild(o),URL.revokeObjectURL(i)}),0)},e.debounce=function(t,e,n){var i;return function(){for(var r=this,o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=n&&!i;clearTimeout(i),i=setTimeout((function(){i=null,n||t.apply(r,o)}),e),s&&t.apply(this,o)}},e.compare=function t(e,n){for(var i in e){if(e.hasOwnProperty(i)!==n.hasOwnProperty(i))return!1;switch(typeof e[i]){case"object":if(!t(e[i],n[i]))return!1;break;case"function":if(void 0===n[i]||"compare"!==i&&e[i].toString()!==n[i].toString())return!1;break;default:if(e[i]!==n[i])return!1}}for(var i in n)if(!e.hasOwnProperty(i))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,n=0,i=t.length;n<i;n++)t[n]>e&&(e=t[n]);return e}};e.getMinArrayNumber=function(t){if(t.length){for(var e=1/0,n=0,i=t.length;n<i;n++)t[n]<e&&(e=t[n]);return e}};e.getStringWidth=function(t,e){e=i({font:"normal 14px Roboto",lineHeight:20},e);var n=document.createElement("canvas"),o=n.getContext("2d");e.font&&(o.font=e.font);var a=o.measureText(t).width;return(0,r.isIE)()||n.remove(),a};e.rgbToHex=function(t){if("#"===t.substr(0,1))return t;if("rgb"===t.substr(0,3)){var e=/(.*?)rgb[a]?\((\d+), *(\d+), *(\d+),* *([\d+.]*)\)/.exec(t),n=parseInt(e[2],10).toString(16).padStart(2,"0"),i=parseInt(e[3],10).toString(16).padStart(2,"0"),r=parseInt(e[4],10).toString(16).padStart(2,"0");return"#".concat(n).concat(i).concat(r)}},e.getCloneObject=function t(e){if(!e)return e;var n=Array.isArray(e)?[]:{};for(var i in e){var r=e[i];r instanceof Date?n[i]=new Date(r):n[i]="object"==typeof r?t(r):r}return n};var s=function(t){var e=t.text;return t.ctx.measureText(e).width},l=function(t){for(var e=t.ctx,n=t.word,i=t.maxWidth,r=[],o="",a=0;a<n.length;a++)o+=n[a],s({text:o,ctx:e})>i&&(r.push(o.slice(0,-1)),o=n[a]);return o&&r.push(o),r};e.getTextLines=function(t){for(var e=t.ctx,n=t.text,i=t.maxWidth,r=n.split(" "),o="",a="",c=[],u=0;u<r.length;u++){var d=r[u];if(s({text:d,ctx:e})>i)for(var h=0,f=l({word:d,ctx:e,maxWidth:i});h<f.length;h++){var p=f[h];a+="".concat(p," "),s({text:a.trimEnd(),ctx:e})>i?(c.push(o.trimEnd()),o="".concat(p," "),a="".concat(p," ")):o+="".concat(p," ")}else a+="".concat(d," "),s({text:a.trimEnd(),ctx:e})>i&&u>0?(c.push(o.trimEnd()),o="".concat(d," "),a="".concat(d," ")):o+="".concat(d," ");u===r.length-1&&c.push(o.trimEnd())}return c}},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.getViewHeight=e.setTheme=e.awaitRedraw=e.resizeHandler=e.resizer=e.disableHelp=e.KEYED_LIST=e.inject=e.create=e.view=e.sv=e.el=void 0;var i=n(76),r=n(2);function o(t){var n=window.ResizeObserver,i=function(e){var n=e.el.offsetHeight,i=e.el.offsetWidth;t(i,n)};return n?(0,e.el)("div.dhx-resize-observer",{_hooks:{didInsert:function(t){new n((function(){return i(t)})).observe(t.el)}}}):(0,e.el)("iframe.dhx-resize-observer",{_hooks:{didInsert:function(t){t.el.contentWindow.onresize=function(){return i(t)},i(t)}}})}e.el=i.defineElement,e.sv=i.defineSvgElement,e.view=i.defineView,e.create=i.createView,e.inject=i.injectView,e.KEYED_LIST=i.KEYED_LIST,e.disableHelp=function(){i.DEVMODE.mutations=!1,i.DEVMODE.warnings=!1,i.DEVMODE.verbose=!1,i.DEVMODE.UNKEYED_INPUT=!1},e.resizer=o,e.resizeHandler=function(t,n){return(0,e.create)({render:function(){return o(n)}}).mount(t)},e.awaitRedraw=function(){return new t((function(t){requestAnimationFrame((function(){t()}))}))},e.setTheme=function(t,e){void 0===t&&(t="light");var n="data-dhx-theme";e||document.querySelectorAll("[".concat(n,"]")).forEach((function(t){return t.removeAttribute(n)})),e=e||document.documentElement,(0,r.toNode)(e).setAttribute(n,t)},e.getViewHeight=function(t,n){var i=(0,e.create)({render:function(){return(0,e.el)("div",{style:{position:"absolute",visibility:"hidden",width:n}},[t])}});i.mount(document.body);var r=i.node.el.offsetHeight;return i.unmount(),r}}).call(this,n(5))},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},i.apply(this,arguments)};function r(t,e,n){for(void 0===e&&(e="data-dhx-id"),void 0===n&&(n="target"),t instanceof Event&&(t=t[n]);t;){if(t.getAttribute&&t.getAttribute(e))return t;t=t.parentNode}}Object.defineProperty(e,"__esModule",{value:!0}),e.getNodeOffset=e.getElementFromPoint=e.getPageLinksCss=e.getPageInlineCss=e.getLabelStyle=e.getPageCss=e.fitPosition=e.calculatePosition=e.getRealPosition=e.isFirefox=e.isSafari=e.isIE=e.getScrollbarHeight=e.getScrollbarWidth=e.getBox=e.locateNodeByClassName=e.locate=e.locateNode=e.eventHandler=e.toNode=void 0,e.toNode=function(t){var e;return"string"==typeof t?document.getElementById(t)||document.querySelector("[data-cell-id=".concat(t,"]"))||document.querySelector(t)||(null===(e=document.querySelector("[data-dhx-root-id=".concat(t,"]")))||void 0===e?void 0:e.parentElement)||document.body:t||document.body},e.eventHandler=function(t,e,n){var i=Object.keys(e);return function(r){var o=t(r);if(void 0!==o){var a=r.target;t:for(;a;){var s=a.getAttribute&&a.getAttribute("class")||"";if(s.length)for(var l=s.split(" "),c=0;c<i.length;c++)if(l.includes(i[c])){if(!1===e[i[c]](r,o)||r.cancelBubble)return!1;break t}a=a.parentNode}}return"function"==typeof n&&n(r),!0}},e.locateNode=r,e.locate=function(t,e){void 0===e&&(e="data-dhx-id");var n=r(t,e);return n?n.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(),n=document.body,i=window.pageYOffset||n.scrollTop,r=window.pageXOffset||n.scrollLeft;return{top:e.top+i,left:e.left+r,right:n.offsetWidth-e.right,bottom:n.offsetHeight-e.bottom,width:e.right-e.left,height:e.bottom-e.top}};var o=-1;e.getScrollbarWidth=function(){if(o>-1)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 a=-1;function s(t){var e=t.getBoundingClientRect();return{left:e.left+window.pageXOffset,right:e.right+window.pageXOffset,top:e.top+window.pageYOffset,bottom:e.bottom+window.pageYOffset}}function l(){return{rightBorder:window.pageXOffset+window.innerWidth,bottomBorder:window.pageYOffset+window.innerHeight}}function c(t,e){var n,r,o=l(),a=o.rightBorder,s=o.bottomBorder-t.bottom-e.height,c=t.top-e.height;if("bottom"===e.mode?s>=0?r=t.bottom:c>=0&&(r=c):c>=0?r=c:s>=0&&(r=t.bottom),s<0&&c<0){if(e.auto)return u(t,i(i({},e),{mode:"right",auto:!1}));r=s>c?t.bottom:c}if(e.centering)n=function(t,e,n){var i=(e-(t.right-t.left))/2,r=t.left-i,o=t.right+i;return r>=0&&o<=n?r:r<0?0:n-e}(t,e.width,a);else{var d=a-t.left-e.width,h=t.right-e.width;n=d>=0?t.left:h>=0?h:h>d?t.left:h}return{left:n,top:r}}function u(t,e){var n,r,o=l(),a=o.rightBorder,s=o.bottomBorder,u=a-t.right-e.width,d=t.left-e.width;if("right"===e.mode?u>=0?n=t.right:d>=0&&(n=d):d>=0?n=d:u>=0&&(n=t.right),d<0&&u<0){if(e.auto)return c(t,i(i({},e),{mode:"bottom",auto:!1}));n=d>u?d:t.right}if(e.centering)r=function(t,e,n){var i=(e-(t.bottom-t.top))/2,r=t.top-i,o=t.bottom+i;return r>=0&&o<=n?r:r<0?0:n-e}(t,e.height,s);else{var h=t.bottom-e.height,f=s-t.top-e.height;r=f>=0?t.top:h>0||h>f?h:t.top}return{left:n,top:r}}function d(t,e){var n="bottom"===e.mode||"top"===e.mode?c(t,e):u(t,e),i=n.left,r=n.top;return{left:Math.round(i)+"px",top:Math.round(r)+"px",minWidth:Math.round(e.width)+"px",position:"absolute"}}e.getScrollbarHeight=function(){if(a>-1)return a;var t=document.createElement("div");return document.body.appendChild(t),t.style.cssText="position: absolute;left: -99999px;overflow:scroll;width: 100px;height: 100px;",a=t.offsetHeight-t.clientHeight,document.body.removeChild(t),a},e.isIE=function(){var t=window.navigator.userAgent;return t.includes("MSIE ")||t.includes("Trident/")},e.isSafari=function(){var t=function(t){return t.test(window.navigator.userAgent)},e=t(/Chrome/),n=t(/Firefox/);return!e&&!n&&t(/Safari/)},e.isFirefox=function(){var t=function(t){return t.test(window.navigator.userAgent)},e=t(/Chrome/),n=t(/Safari/);return!e&&!n&&t(/Firefox/)},e.getRealPosition=s,e.calculatePosition=d,e.fitPosition=function(t,e){return d(s(t),e)},e.getPageCss=function(){for(var t=[],e=0;e<document.styleSheets.length;e++)for(var n=document.styleSheets[e],i=("cssRules"in n?n.cssRules:n.rules),r=0;r<i.length;r++){var o=i[r];"cssText"in o?t.push(o.cssText):t.push("".concat(o.selectorText," {\n").concat(o.style.cssText,"\n}\n"))}return t.join("\n")},e.getLabelStyle=function(t){var e=t.helpMessage,n=t.type,i=t.labelWidth,r=t.label,o=i&&i.toString().startsWith("0"),a="text"!==n&&t.required;return!!(e||a||!(!r||r&&o)||i&&!o)&&{style:(r||i)&&!o&&{width:i,"max-width":"100%"},label:r&&o?null:r}};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 n=document.styleSheets[e];if(!h(n))for(var i=("cssRules"in n&&n.cssRules.length?n.cssRules:n.rules),r=0;r<i.length;r++){var o=i[r];"cssText"in o?t.push(o.cssText):t.push("".concat(o.selectorText," {\n").concat(o.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="'.concat(t,'" rel="stylesheet"/>'))}));else for(var n=0;n<document.styleSheets.length;n++){var i=document.styleSheets[n];h(i)&&e.push('<link href="'.concat(i.href,'" rel="stylesheet"/>'))}return e.join("\n")},e.getElementFromPoint=function(t){var e,n,i=t.targetTouches?(null===(e=t.targetTouches[0])||void 0===e?void 0:e.clientX)||0:t.clientX,r=t.targetTouches?(null===(n=t.targetTouches[0])||void 0===n?void 0:n.clientY)||0:t.clientY,o=document.elementFromPoint(i,r);return(null==o?void 0:o.shadowRoot)?o.shadowRoot.elementFromPoint(i,r):o},e.getNodeOffset=function(t,e){var n=t.getBoundingClientRect(),i=e.getBoundingClientRect();return{left:n.left-i.left,top:n.top-i.top}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EventsMixin=e.EventSystem=void 0;var i=function(){function t(t){this.events={},this.context=t||this}return t.prototype.on=function(t,e,n){var i=t.toLowerCase();this.events[i]=this.events[i]||[],this.events[i].push({callback:e,context:n||this.context})},t.prototype.detach=function(t,e){var n=t.toLowerCase(),i=this.events[n];if(e&&i&&i.length)for(var r=i.length-1;r>=0;r--)i[r].context===e&&i.splice(r,1);else this.events[n]=[]},t.prototype.fire=function(t,e){void 0===e&&(e=[]);var n=t.toLowerCase();return!this.events[n]||!this.events[n].map((function(t){return t.callback.apply(t.context,e)})).includes(!1)},t.prototype.clear=function(){this.events={}},t}();e.EventSystem=i,e.EventsMixin=function(t){var e=new i(t=t||{});t.detachEvent=e.detach.bind(e),t.attachEvent=e.on.bind(e),t.callEvent=e.fire.bind(e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toViewLike=e.View=void 0;var i=n(0),r=n(2),o=function(){function t(t,e){var n;this.config=e||{},this._uid=null!==(n=this.config.rootId)&&void 0!==n?n:(0,i.uid)()}return t.prototype.mount=function(t,e){e&&(this._view=e),t&&this._view&&this._view.mount&&(this._container=(0,r.toNode)(t),this._container.tagName?this._view.mount(this._container):this._container.attach&&this._container.attach(this))},t.prototype.unmount=function(){var t=this.getRootView();t&&t.node&&(this.getRootNode()&&t.unmount(),this._view=null)},t.prototype.getRootView=function(){return this._view},t.prototype.getRootNode=function(){return this._view&&this._view.node&&this._view.node.el},t.prototype.paint=function(){this._view&&(this._view.node||this._container)&&(this._doNotRepaint=!1,this._view.redraw())},t}();e.View=o,e.toViewLike=function(t){return{getRootView:function(){return t},paint:function(){return t.node&&t.redraw()},mount:function(e){return t.mount(e)}}}},function(t,e,n){(function(e,n){!function(){e="undefined"!=typeof window?window:this;var i=1,r={},o=!1;function a(t){e.setImmediate?n(t):e.importScripts?setTimeout(t):(i++,r[i]=t,e.postMessage(i,"*"))}function s(t){"use strict";if("function"!=typeof t&&null!=t)throw TypeError();if("object"!=typeof this||this&&this.then)throw TypeError();var e,n,i=this,r=0,o=0,l=[];i.promise=i,i.resolve=function(t){return e=i.fn,n=i.er,r||(o=t,r=1,a(d)),i},i.reject=function(t){return e=i.fn,n=i.er,r||(o=t,r=2,a(d)),i},i._d=1,i.then=function(t,e){if(1!=this._d)throw TypeError();var n=new s;return n.fn=t,n.er=e,3==r?n.resolve(o):4==r?n.reject(o):l.push(n),n},i.catch=function(t){return i.then(null,t)};var c=function(t){r=t||4,l.map((function(t){3==r&&t.resolve(o)||t.reject(o)}))};try{"function"==typeof t&&t(i.resolve,i.reject)}catch(t){i.reject(t)}return i;function u(t,e,n,i){if(2==r)return i();if("object"!=typeof o&&"function"!=typeof o||"function"!=typeof t)i();else try{var a=0;t.call(o,(function(t){a++||(o=t,e())}),(function(t){a++||(o=t,n())}))}catch(t){o=t,n()}}function d(){var t;try{t=o&&o.then}catch(t){return o=t,r=2,d()}u(t,(function(){r=1,d()}),(function(){r=2,d()}),(function(){try{1==r&&"function"==typeof e?o=e(o):2==r&&"function"==typeof n&&(o=n(o),r=1)}catch(t){return o=t,c()}o==i?(o=TypeError(),c()):u(t,(function(){c(3)}),c,(function(){c(1==r&&3)}))}))}}e.setImmediate||e.addEventListener("message",(function(t){if(t.source==e)if(o)a(r[t.data]);else{o=!0;try{r[t.data]()}catch(t){}delete r[t.data],o=!1}})),s.resolve=function(t){if(1!=this._d)throw TypeError();return t instanceof s?t:new s((function(e){e(t)}))},s.reject=function(t){if(1!=this._d)throw TypeError();return new s((function(e,n){n(t)}))},s.all=function(t){if(1!=this._d)throw TypeError();if(!(t instanceof Array))return s.reject(TypeError());var e=new s;return function n(i,r){if(r)return e.resolve(r);if(i)return e.reject(i);0==t.reduce((function(t,e){return e&&e.then?t+1:t}),0)&&e.resolve(t),t.map((function(e,i){e&&e.then&&e.then((function(e){return t[i]=e,n(),e}),n)}))}(),e},s.race=function(t){if(1!=this._d)throw TypeError();if(!(t instanceof Array))return s.reject(TypeError());if(0==t.length)return new s;var e=new s;return function n(i,r){if(r)return e.resolve(r);if(i)return e.reject(i);0==t.reduce((function(t,e){return e&&e.then?t+1:t}),0)&&e.resolve(t),t.map((function(t,e){t&&t.then&&t.then((function(t){n(null,t)}),n)}))}(),e},s._d=1,t.exports=s}()}).call(this,n(16),n(55).setImmediate)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.splitCsv=e.throwMoveWarning=e.isOnlyPermanentFilters=e.hasJsonOrArrayStructure=e.isTreeCollection=e.copyWithoutInner=e.toDataDriver=e.toProxy=e.dhxError=e.dhxWarning=e.isDebug=e.findByConf=e.naturalCompare=e.isEqualObj=void 0;var i=n(0),r=n(10),o=n(26);function a(t){console.warn(t)}e.isEqualObj=function(t,e){for(var n in t)if(t[n]!==e[n]||Array.isArray(t[n]))return!1;return!0},e.naturalCompare=function(t,e){if(isNaN(t)||isNaN(e)){var n=[],i=[];for(t.replace(/(\d+)|(\D+)/g,(function(t,e,i){n.push([e||1/0,i||""])})),e.replace(/(\d+)|(\D+)/g,(function(t,e,n){i.push([e||1/0,n||""])}));n.length&&i.length;){var r=n.shift(),o=i.shift(),a=r[0]-o[0]||r[1].localeCompare(o[1]);if(a)return a}return n.length-i.length}return t-e},e.findByConf=function(t,e,n,i){if("function"==typeof e){if(e.call(this,t,n,i))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=a,e.dhxError=function(t){throw new Error(t)},e.toProxy=function(t){var e=typeof t;return"string"===e?new r.DataProxy(t):"object"===e?t:void 0},e.toDataDriver=function(t){if("string"==typeof t){var e=window.dhx,n=e&&e.dataDrivers||o.dataDrivers;if(n[t])return new n[t];console.warn("Incorrect data driver type:",t),console.warn("Available types:",JSON.stringify(Object.keys(n)))}else if("object"==typeof t)return t},e.copyWithoutInner=function(t,e){var n={};for(var 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(t){return!(!t||(0,i.isEmptyObj)(t))&&Object.keys(t).every((function(e){var n;return null===(n=t[e].config)||void 0===n?void 0:n.permanent}))},e.throwMoveWarning=function(t,e){return void 0===e&&(e=!0),a("item with ID ".concat(t," not ").concat(e?"moved":"found")),null},e.splitCsv=function(t,e){return t.trim().split(new RegExp("".concat(e,'(?=(?:[^"]*"[^"]*")*[^"]*$)')))}},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(8),e),r(n(25),e),r(n(66),e),r(n(67),e),r(n(10),e),r(n(69),e),r(n(6),e),r(n(18),e),r(n(27),e),r(n(70),e),r(n(26),e),r(n(17),e),r(n(29),e)},function(t,e,n){"use strict";var i,r,o,a;Object.defineProperty(e,"__esModule",{value:!0}),e.DataDriver=e.DragEvents=e.DataEvents=e.TreeFilterType=void 0,function(t){t.all="all",t.level="level",t.leafs="leafs"}(i||(e.TreeFilterType=i={})),function(t){t.afterAdd="afteradd",t.beforeAdd="beforeadd",t.removeAll="removeall",t.beforeRemove="beforeremove",t.afterRemove="afterremove",t.change="change",t.filter="filter",t.dataRequest="dataRequest",t.load="load",t.loadError="loaderror",t.beforeLazyLoad="beforelazyload",t.afterLazyLoad="afterlazyload",t.beforeItemLoad="beforeItemLoad",t.afterItemLoad="afterItemLoad",t.beforeGroup="beforeGroup",t.afterGroup="afterGroup",t.beforeUnGroup="beforeUnGroup",t.afterUnGroup="afterUnGroup"}(r||(e.DataEvents=r={})),function(t){t.beforeDrag="beforeDrag",t.dragStart="dragStart",t.dragOut="dragOut",t.dragIn="dragIn",t.canDrop="canDrop",t.cancelDrop="cancelDrop",t.beforeDrop="beforeDrop",t.afterDrop="afterDrop",t.afterDrag="afterDrag"}(o||(e.DragEvents=o={})),function(t){t.json="json",t.csv="csv",t.xml="xml"}(a||(e.DataDriver=a={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={dragAndDrop:"Drag & drop",or:"or",grid:"Grid",list:"List",browse:"Browse files",filesOrFoldersHere:"files or folders here",cancel:"Cancel",clearAll:"Clear all",clearAllSelected:"Clear selected",clear:"Clear",add:"Add",upload:"Upload",download:"Download",error:"error",byte:"B",kilobyte:"KB",megabyte:"MB",gigabyte:"GB"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DataProxy=void 0;var i=n(17),r=function(){function t(t,e){void 0===e&&(e={}),this.url=this._url=t,this.config=e}return t.prototype.updateUrl=function(t,e){for(var n in void 0===e&&(e={}),this._url=this.url=t||this._url,this.url+=this.url.includes("?")?"&":"?",e)this.config[n]=e[n],this.url+="".concat(n,"=").concat(encodeURIComponent(e[n]),"&");this.url=this.url.slice(0,-1)},t.prototype.load=function(){return i.ajax.get(this.url,void 0,this.config)},t.prototype.save=function(t,e){switch(e){case"delete":return i.ajax.delete(this.url,t,this.config);case"update":return i.ajax.put(this.url,t,this.config);default:return i.ajax.post(this.url,t,this.config)}},t}();e.DataProxy=r},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(71),e),r(n(72),e),r(n(73),e),r(n(74),e),r(n(20),e)},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},i.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.getNavbarButtonCSS=e.navbarComponentMixin=e.getIcon=e.getCount=void 0;var r=n(1),o=n(0);e.getCount=function(t,e,n){var i={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(0,r.el)(".dhx_navbar-count",{class:e+i+(!n&&parseInt(t.count,10)>99?" dhx_navbar-count--overlimit":"")},n&&parseInt(t.count,10)>99?"99+":t.count)},e.getIcon=function(t,e){return void 0===t&&(t=""),t.startsWith("dxi")&&(t="dxi "+t),(0,r.el)("span",{class:"dhx_".concat(e,"__icon ").concat(t),"aria-hidden":"true"})};e.navbarComponentMixin=function(t,e,n,o){var a,s,l=function(t,e,n){var i="",r="";return r=(i=n?"dhx_menu-item":"dhx_"+t+"__item")+(e.css?" "+e.css:""),"spacer"!==e.type&&"separator"!==e.type||(r+=" ".concat(i,"--").concat(e.type)),"button"!==e.type||"sidebar"!==t||e.icon||(r+=" dhx_navbar-item--colapse_hidden"),r}(t,e,n),c="ribbon"===t&&("navItem"===e.type||"imageButton"===e.type);return(0,r.el)("li",i({_key:e.id,class:l+(e.icon&&!e.value&&c?" dhx_ribbon__item--icon":"")+(e.src&&!e.value&&c?" dhx_ribbon__item--icon":"")+(e.size&&c?" dhx_ribbon__item--"+e.size:""),".innerHTML":"customHTML"===e.type?e.html:void 0,"data-dhx-id":"customHTML"===e.type?e.id:void 0},(a=e.type,s={role:"none"},"separator"===a&&(s.role="separator",s["aria-orientation"]="vertical"),s)),"customHTML"!==e.type?[o]:void 0)},e.getNavbarButtonCSS=function(t,e){var n=t.color,i=t.size,r=t.view,a=t.full,s=t.icon,l=t.circle,c=t.loading,u=t.value,d=t.active,h=t.count;return({danger:" dhx_button--color_danger",secondary:" dhx_button--color_secondary",primary:" dhx_button--color_primary",success:" dhx_button--color_success"}[n]||" dhx_button--color_primary")+({small:" dhx_button--size_small",medium:" dhx_button--size_medium"}[i]||" dhx_button--size_medium")+({flat:" dhx_button--view_flat",link:" dhx_button--view_link"}[r]||" dhx_button--view_flat")+(a?" dhx_button--width_full":"")+(l?" dhx_button--circle":"")+(c?" dhx_button--loading":"")+(d?" dhx_button--active":"")+(s&&!u?" dhx_button--icon":"")+((0,o.isDefined)(h)?" dhx_button--count":"")}},function(t,e,n){"use strict";var i,r,o,a;Object.defineProperty(e,"__esModule",{value:!0}),e.VaultMode=e.FileStatus=e.ProgressBarEvents=e.UploaderEvents=void 0,function(t){t.uploadBegin="uploadbegin",t.beforeUploadFile="beforeuploadfile",t.uploadFile="uploadfile",t.uploadFail="uploadfail",t.uploadComplete="uploadcomplete",t.uploadProgress="uploadprogress"}(i||(e.UploaderEvents=i={})),function(t){t.cancel="cancel"}(r||(e.ProgressBarEvents=r={})),function(t){t.queue="queue",t.uploaded="uploaded",t.failed="failed",t.inprogress="inprogress"}(o||(e.FileStatus=o={})),function(t){t.grid="grid",t.list="list"}(a||(e.VaultMode=a={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScrollView=e.scrollViewConfig=void 0;var i=n(0),r=n(1),o=n(2);e.scrollViewConfig={enable:!1,autoHide:!0,timeout:1e3,scrollHandler:function(){}};var a=function(){function t(t,n){var r;void 0===n&&(n={});var a=this;this.config=(0,i.extend)({enable:e.scrollViewConfig.enable,autoHide:e.scrollViewConfig.autoHide,timeout:e.scrollViewConfig.timeout,scrollHandler:e.scrollViewConfig.scrollHandler},n),this._wheelName=(0,o.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=(0,o.getScrollbarWidth)(),this._scrollHeight=(0,o.getScrollbarHeight)(),this._handlers=((r={onscroll:function(t){a.config.scrollHandler(t),a.update()}})[this._wheelName]=function(t){var e=!!(0,o.locateNodeByClassName)(t.target,"y-scroll");t.preventDefault();var n=40*((t.deltaY||-t.wheelDelta)>0?1:-1),i=a._getRefs().area;if(e){var r=i.scrollHeight-a._runnerHeight,s=a._scrollYTop+n;i.scrollTop=s<0?0:s>r?r:s}else{var l=i.scrollWidth-a._runnerWidth,c=a._scrollXLeft+n;i.scrollLeft=c<0?0:c>l?l:c}a.update()},r.onmousedownRunner=function(t){t.preventDefault();var e=!!(0,o.locateNodeByClassName)(t.target,"y-scroll"),n=a._getRefs(),i=n.area,r=n.runnerY,s=n.runnerX,l=i.getBoundingClientRect(),c=l.top+window.pageYOffset,u=l.bottom+window.pageYOffset,d=i.scrollHeight-a._runnerHeight,h=t.pageY-r.getBoundingClientRect().top-window.pageYOffset,f=l.left+window.pageXOffset,p=l.right+window.pageXOffset,_=i.scrollWidth-a._runnerWidth,v=t.pageX-s.getBoundingClientRect().left-window.pageXOffset,g=function(t){if(e){var n=t.pageY-h;i.scrollTop=n<=c?0:n>u?d:(n-c)/a._visibleYArea}else{var r=t.pageX-v;i.scrollLeft=r<=f?0:r>p?_:(r-f)/a._visibleXArea}a.update()},m=function(){document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",m),document.body.classList.remove("dhx-no-select")};document.body.classList.add("dhx-no-select"),document.addEventListener("mousemove",g),document.addEventListener("mouseup",m)},r.onmousedownArea=function(t){if(!(0,o.locateNodeByClassName)(t,"scroll-runner")){t.preventDefault();var e=!!(0,o.locateNodeByClassName)(t.target,"y-scroll"),n=a._getRefs(),i=n.area,r=n.runnerY,s=n.runnerX;e?i.scrollTop+=(t.pageY-r.getBoundingClientRect().top)/a._visibleYArea:i.scrollLeft+=(t.pageX-s.getBoundingClientRect().left)/a._visibleXArea,a.update()}},r.onmouseenter=function(t){if(!(0,o.locateNodeByClassName)(t,"scroll-runner")){var e=a._getRefs();if(e){var n=!!(0,o.locateNodeByClassName)(t.target,"y-scroll"),i=e.areaX,r=e.areaY;n&&a._runnerHeight>0?r.style.background="#eee":!n&&a._runnerWidth>0&&(i.style.background="#eee")}}},r.onmouseleave=function(t){if(!(0,o.locateNodeByClassName)(t,"scroll-runner")){var e=a._getRefs();if(e){var n=!!(0,o.locateNodeByClassName)(t.target,"y-scroll"),i=e.areaX,r=e.areaY;n&&a._runnerHeight>0?r.style.background="transparent":!n&&a._runnerWidth>0&&(i.style.background="transparent")}}},r)}return t.prototype.enable=function(){this.config.enable=!0,this._getRootView().redraw()},t.prototype.disable=function(){this.config.enable=!1,this._getRootView().redraw()},t.prototype.render=function(t,e){var n,i,o=this;if(void 0===e&&(e=""),!this.config.enable||!t.length)return t;e&&(this._uid=e);var a=this.config.enable?[(0,r.el)(".y-scroll",(n={},n[this._wheelName]=this._handlers[this._wheelName],n._ref=e?"scroll-y-area-".concat(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),[(0,r.el)(".scroll-runner",{_ref:e?"scroll-y-runner-".concat(e):"scroll-y-runner",onmousedown:this._handlers.onmousedownRunner,style:{height:this._runnerHeight+"px",top:this._runnerYTop}})]),(0,r.el)(".x-scroll",(i={},i[this._wheelName]=this._handlers[this._wheelName],i._ref=e?"scroll-x-area-".concat(e):"scroll-x-area",i.onmousedown=this._handlers.onmousedownArea,i.onmouseenter=this._handlers.onmouseenter,i.onmouseleave=this._handlers.onmouseleave,i.style={width:"100%",height:"6px",left:0,bottom:0,position:"absolute"},i),[(0,r.el)(".scroll-runner",{_ref:e?"scroll-x-runner-".concat(e):"scroll-x-runner",onmousedown:this._handlers.onmousedownRunner,style:{width:this._runnerWidth+"px",left:this._runnerXLeft}})])]:null;return(0,r.el)(".scroll-view-wrapper",[(0,r.el)(".scroll-view",{class:this._scrollWidth?"":"scroll-view--overlay",onscroll:this._handlers.onscroll,_ref:e?"scroll-view-".concat(e):"scroll-view",_hooks:{didInsert:function(){o.update()},didRecycle:function(){o.update()}},style:{width:"calc(100% + ".concat(this._scrollWidth,"px)"),height:"calc(100% + ".concat(this._scrollHeight,"px)"),"margin-bottom":"-".concat(this._scrollHeight,"px")}},t)].concat(a))},t.prototype.update=function(){var t=this._getRefs();if(t){var e=t.area,n=t.areaX,r=t.areaY,o=t.runnerY,a=t.runnerX;this._visibleYArea=e.clientHeight/e.scrollHeight,this._visibleXArea=e.clientWidth/e.scrollWidth,this._scrollYTop=e.scrollTop,this._scrollXLeft=e.scrollLeft,this._runnerYTop=this._scrollYTop*this._visibleYArea,this._runnerXLeft=this._scrollXLeft*this._visibleXArea,this._runnerHeight=this._visibleYArea<1?e.clientHeight*this._visibleYArea:0,this._runnerWidth=this._visibleXArea<1?e.clientWidth*this._visibleXArea:0;var s=o.style.top,l=a.style.left;o.style.opacity=1,o.style.top=this._runnerYTop+"px",o.style.height=this._runnerHeight+"px",a.style.opacity=1,a.style.left=this._runnerXLeft+"px",a.style.width=this._runnerWidth+"px",s!==o.style.top&&(r.style.opacity=.9,r.style.width="10px"),l!==a.style.left&&(n.style.opacity=.9,n.style.height="10px"),this.config.autoHide?!this._autoHideFunc&&(this._autoHideFunc=(0,i.debounce)((function(){o.style.opacity=0,r.style.width="6px",a.style.opacity=0,n.style.height="6px"}),this.config.timeout)):this._autoHideFunc=(0,i.debounce)((function(){r.style.width="6px",n.style.height="6px"}),this.config.timeout),this._autoHideFunc()}},t.prototype._getRefs=function(){var t=this._getRootView(),e=!(!t.refs["scroll-view"]||!t.refs["scroll-x-runner"]&&!t.refs["scroll-y-runner"]),n=!(!this._uid||!t.refs["scroll-view-".concat(this._uid)]||!t.refs["scroll-x-runner-".concat(this._uid)]&&!t.refs["scroll-y-runner-".concat(this._uid)]);if(t.refs){if(e)return{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};if(n)return{area:t.refs["scroll-view-".concat(this._uid)].el,areaY:t.refs["scroll-y-area-".concat(this._uid)].el,areaX:t.refs["scroll-x-area-".concat(this._uid)].el,runnerY:t.refs["scroll-y-runner-".concat(this._uid)].el,runnerX:t.refs["scroll-x-runner-".concat(this._uid)].el}}},t}();e.ScrollView=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NavigationBarEvents=e.DataEvents=void 0;var i,r=n(7);Object.defineProperty(e,"DataEvents",{enumerable:!0,get:function(){return r.DataEvents}}),function(t){t.inputCreated="inputCreated",t.click="click",t.openMenu="openMenu",t.beforeHide="beforeHide",t.afterHide="afterHide",t.inputFocus="inputFocus",t.inputBlur="inputBlur",t.inputChange="inputChange",t.input="input",t.keydown="keydown"}(i||(e.NavigationBarEvents=i={}))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.ajax=void 0;var i=n(8),r=n(6);function o(t){return t?t.includes("json")?"json":t.includes("xml")?"xml":"text":"text"}function a(e,n,a,s,l){var c=s||{};if(l&&(c.Accept="application/"+l),"GET"!==a&&(c["Content-Type"]=c["Content-Type"]||"application/json"),"GET"===a){var u=n&&"object"==typeof n?function(t){return Object.keys(t).reduce((function(e,n){var i="object"==typeof t[n]?JSON.stringify(t[n]):t[n];return e.push(n+"="+encodeURIComponent(i)),e}),[]).join("&")}(n):n&&"string"==typeof n?n:"";u&&(e+=e.includes("?")?"&":"?",e+=u),n=null}return window.fetch?("application/json"===c["Content-Type"]&&n&&"object"==typeof n&&(n=JSON.stringify(n)),window.fetch(e,{method:a,body:n||null,headers:c}).then((function(e){if(!e.ok)return e.text().then((function(n){return t.reject({status:e.status,statusText:e.statusText,message:n})}));var n=l||o(e.headers.get("Content-Type"));if("raw"===n)return{headers:Object.fromEntries(e.headers.entries()),url:e.url,body:e.body};if(204!==e.status)switch(n){case"json":return e.json();case"xml":var a=(0,r.toDataDriver)(i.DataDriver.xml);return a?e.text().then((function(t){return a.toJsonObject(t)})):e.text();default:return e.text()}}))):new t((function(t,s){var u=new XMLHttpRequest;for(var d in u.onload=function(){u.status>=200&&u.status<300?("raw"===l&&t({url:u.responseURL,headers:u.getAllResponseHeaders().trim().split(/[\r\n]+/).reduce((function(t,e){var n=e.split(": ");return t[n[0]]=n[1],t}),{}),body:u.response}),204===u.status?t():t(function(t,e){switch(e){case"json":return JSON.parse(t);case"text":default:return t;case"xml":var n=(0,r.toDataDriver)(i.DataDriver.xml);return n?n.toJsonObject(t):{parseError:"Incorrect data driver type: 'xml'"}}}(u.responseText,l||o(u.getResponseHeader("Content-Type"))))):s({status:u.status,statusText:u.statusText})},u.onerror=function(){s({status:u.status,statusText:u.statusText,message:u.responseText})},u.open(a,e),c)u.setRequestHeader(d,c[d]);switch(a){case"POST":case"DELETE":case"PUT":u.send(void 0!==n?JSON.stringify(n):"");break;default:u.send()}}))}e.ajax={get:function(t,e,n){return a(t,e,"GET",n&&n.headers,void 0!==n?n.responseType:void 0)},post:function(t,e,n){return a(t,e,"POST",n&&n.headers,void 0!==n?n.responseType:void 0)},put:function(t,e,n){return a(t,e,"PUT",n&&n.headers,void 0!==n?n.responseType:void 0)},delete:function(t,e,n){return a(t,e,"DELETE",n&&n.headers,void 0!==n?n.responseType:void 0)}}}).call(this,n(5))},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},i.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.CsvDriver=void 0;var r=n(6),o=function(){function t(t){this.config=i(i({},{skipHeader:0,nameByHeader:!1,rowDelimiter:"\n",columnDelimiter:","}),t),this.config.nameByHeader&&(this.config.skipHeader=1)}return t.prototype.getFields=function(t,e){for(var n=(0,r.splitCsv)(t,this.config.columnDelimiter).map((function(t){return t.replace(/^"(.*)"$/s,"$1").replace(/""/g,'"')})),i={},o=0;o<n.length;o++)i[e?e[o]:o+1]=isNaN(Number(n[o]))?n[o]:parseFloat(n[o]);return i},t.prototype.getRows=function(t){return(0,r.splitCsv)(t,this.config.rowDelimiter)},t.prototype.toJsonArray=function(t){var e=this,n=this.getRows(t),i=this.config.names;if(this.config.skipHeader){var r=n.splice(0,this.config.skipHeader);this.config.nameByHeader&&(i=r[0].trim().split(this.config.columnDelimiter))}return n.map((function(t){return e.getFields(t,i)}))},t.prototype.serialize=function(t,e){var n=t[0]?Object.keys(t[0]).filter((function(t){return!t.startsWith("$")})).join(this.config.columnDelimiter)+this.config.rowDelimiter:"",i=this._serialize(t);return e?i:n+i},t.prototype._serialize=function(t){var e=this;return t.reduce((function(t,n){var i=Object.keys(n),r=i.reduce((function(t,r,o){var a,s;if(r.startsWith("$")||"items"===r)return t;var l=null!==(s=null===(a=n[r])||void 0===a?void 0:a.toString())&&void 0!==s?s:"";return t+(new RegExp("[".concat(e.config.columnDelimiter,'"\n]')).test(l)?'"'.concat(l.replace(/"/g,'""').replace(/\n/g,"\\n"),'"'):l)+(o===i.length-1||i[o+1].startsWith("$")?"":e.config.columnDelimiter)}),"");return n.items?"".concat(t).concat(t?"\n":"").concat(r).concat(e._serialize(n.items)):"".concat(t).concat(t?e.config.rowDelimiter:"").concat(r)}),"")},t}();e.CsvDriver=o},function(t,e,n){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionEvents=void 0,function(t){t.beforeUnSelect="beforeunselect",t.afterUnSelect="afterunselect",t.beforeSelect="beforeselect",t.afterSelect="afterselect"}(i||(e.SelectionEvents=i={}))},function(t,e,n){"use strict";var i,r,o;Object.defineProperty(e,"__esModule",{value:!0}),e.MessageContainerPosition=e.Position=e.RealPosition=void 0,function(t){t.left="left",t.right="right",t.top="top",t.bottom="bottom",t.center="center"}(i||(e.RealPosition=i={})),function(t){t.right="right",t.bottom="bottom",t.center="center",t.left="left",t.top="top"}(r||(e.Position=r={})),function(t){t.topLeft="top-left",t.topRight="top-right",t.bottomLeft="bottom-left",t.bottomRight="bottom-right"}(o||(e.MessageContainerPosition=o={}))},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.Layout=void 0;var o=n(22),a=n(33),s=n(1),l=function(t){function e(e,n){var i=t.call(this,e,n)||this;if(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),!n.parent){var r=(0,s.create)({render:function(){return i._root&&i.toVDOM()}},i);i.mount(e,r)}return i}return r(e,t),e.prototype.destructor=function(){if(this.unmount(),this.config){for(var t=0,e=this._cells;t<e.length;t++){var n=e[t];null==n||n.destructor()}this.config=this._cells=this._root=this._xLayout=this._isViewLayout=null,this._all={}}},e.prototype.toVDOM=function(){var e;if(this._isViewLayout){var n=[this.getCell(this.config.activeView).toVDOM()];return t.prototype.toVDOM.call(this,n)}var i=[];return this._inheritTypes(),null===(e=this._cells)||void 0===e||e.forEach((function(t){var e=t.toVDOM();Array.isArray(e)?i=i.concat(e):i.push(e)})),t.prototype.toVDOM.call(this,i)},e.prototype.removeCell=function(t){if(this.events.fire(o.LayoutEvents.beforeRemove,[t])){var e=this.config.parent||this;if(e===this){var n=this.getCell(t);if(n){var i=n.getParent();delete this._all[t],i._cells=i._cells.filter((function(e){return e.id!=t})),i.paint()}this.events.fire(o.LayoutEvents.afterRemove,[t])}else e.removeCell(t)}},e.prototype.getId=function(t){return t<0&&(t=this._cells.length+t),this._cells[t]?this._cells[t].id:void 0},e.prototype.getRefs=function(t){var e;return null===(e=this._root.getRootView().refs)||void 0===e?void 0:e[t]},e.prototype.getCell=function(t){var e;return null===(e=this._root)||void 0===e?void 0:e._all[t]},e.prototype.forEach=function(t,e,n){if(void 0===n&&(n=1/0),this._haveCells(e)&&!(n<1)){var i;i=e?this._root._all[e]._cells:this._root._cells;for(var r=0;r<i.length;r++){var o=i[r];t.call(this,o,r,i),this._haveCells(o.id)&&o.forEach(t,o.id,--n)}}},e.prototype.cell=function(t){return this.getCell(t)},e.prototype.progressShow=function(){this._progress=!0,this.paint()},e.prototype.progressHide=function(){this._progress=!1,this.paint()},e.prototype._addCell=function(t,e){if(void 0===e&&(e=-1),this.events.fire(o.LayoutEvents.beforeAdd,[t.id])){var n=this._createCell(t);e<0&&(e=this._cells.length+e+1),this._cells.splice(e,0,n),this.paint(),this.events.fire(o.LayoutEvents.afterAdd,[t.id])}},e.prototype._getCss=function(e){var n=this._xLayout?"dhx_layout-columns":"dhx_layout-rows",i=this.config.align?" "+n+"--"+this.config.align:"";if(e)return n+" dhx_layout-cell"+(this.config.align?" dhx_layout-cell--"+this.config.align:"");var r=this.config.parent?t.prototype._getCss.call(this):"dhx_widget dhx_layout",o=this.config.parent?"":" dhx_layout-cell";return r+(this.config.full?o:" "+n)+i},e.prototype._parseConfig=function(){var t=this,e=this.config,n=e.rows||e.cols||e.views||[];this._xLayout=!e.rows,this._cells=n.map((function(e){return t._createCell(e)}))},e.prototype._createCell=function(t){var n;return t.rows||t.cols||t.views?(t.parent=this._root,n=new e(this,t)):n=new a.Cell(this,t),this._root._all[n.id]=n,t.init&&t.init(n,t),n},e.prototype._haveCells=function(t){if(t){var e=this._root._all[t];return e._cells&&e._cells.length>0}return Object.keys(this._all).length>0},e.prototype._inheritTypes=function(t){var e=this;if(void 0===t&&(t=this._cells),Array.isArray(t))t.forEach((function(t){return e._inheritTypes(t)}));else{var n=null==t?void 0:t.config;if((null==n?void 0:n.rows)||(null==n?void 0:n.cols)){var i=t.getParent();!n.type&&i&&(i.config.type?n.type=i.config.type:this._inheritTypes(i))}}},e}(a.Cell);e.Layout=l},function(t,e,n){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.LayoutEvents=void 0,function(t){t.beforeShow="beforeShow",t.afterShow="afterShow",t.beforeHide="beforeHide",t.afterHide="afterHide",t.beforeResizeStart="beforeResizeStart",t.resize="resize",t.afterResizeEnd="afterResizeEnd",t.beforeAdd="beforeAdd",t.afterAdd="afterAdd",t.beforeRemove="beforeRemove",t.afterRemove="afterRemove",t.beforeCollapse="beforeCollapse",t.afterCollapse="afterCollapse",t.beforeExpand="beforeExpand",t.afterExpand="afterExpand"}(i||(e.LayoutEvents=i={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KeyManager=void 0;var i=n(82),r=n(2);function o(t){for(var e=t.toLowerCase().match(/\w+/g),n=0,i="",r=0;r<e.length;r++){var o=e[r];"ctrl"===o?n+=4:"shift"===o?n+=2:"alt"===o?n+=1:i=o}return n+i}var a={Up:"arrowUp",Down:"arrowDown",Right:"arrowRight",Left:"arrowLeft",Esc:"escape",Spacebar:"space"},s=function(){function t(t){var e=this;this._keysStorage={},this._initHandler=function(t){var n;if(t.which>=48&&t.which<=57||t.which>=65&&t.which<=90)n=String.fromCharCode(t.which);else{var o=32===t.which?t.code:t.key;n=(0,r.isIE)()&&a[o]||o}var s=e._keysStorage[(t.ctrlKey||t.metaKey?4:0)+(t.shiftKey?2:0)+(t.altKey?1:0)+(n&&n.toLowerCase())];if(s)for(var l=0;l<s.length;l++){if(e._beforeCall&&!1===e._beforeCall(t,i.focusManager.getFocusId()))return;s[l].handler(t)}},t&&(this._beforeCall=t),document.addEventListener("keydown",this._initHandler)}return t.prototype.destructor=function(){document.removeEventListener("keydown",this._initHandler),this.removeHotKey()},t.prototype.addHotKey=function(t,e){var n=o(t);this._keysStorage[n]||(this._keysStorage[n]=[]),this._keysStorage[n].push({handler:e})},t.prototype.removeHotKey=function(t,e){var n=this;if(t)if(t&&e){var i=o(t),r=function(t){return t.toString().replace(/\n/g,"").replace(/\s/g,"")};this._keysStorage[i].forEach((function(t,o){r(t.handler)===r(e)&&(delete n._keysStorage[i][o],n._keysStorage[i]=n._keysStorage[i].filter((function(t){return t})))}))}else{var a=o(t);delete this._keysStorage[a]}else this._keysStorage={}},t.prototype.exist=function(t){var e=o(t);return!!this._keysStorage[e]},t.prototype.getKeyStorageLength=function(){return Object.keys(this._keysStorage).length},t}();e.KeyManager=s},function(t,e,n){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.ListEvents=void 0,function(t){t.click="click",t.doubleClick="doubleclick",t.focusChange="focuschange",t.beforeEditStart="beforeEditStart",t.afterEditStart="afterEditStart",t.beforeEditEnd="beforeEditEnd",t.afterEditEnd="afterEditEnd",t.itemRightClick="itemRightClick",t.itemMouseOver="itemMouseOver",t.contextmenu="contextmenu"}(i||(e.ListEvents=i={}))},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},i.apply(this,arguments)},r=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.DataCollection=void 0;var o=n(3),a=n(62),s=n(64),l=n(10),c=n(6),u=n(8),d=n(0),h=n(65),f=n(18),p=n(28),_=function(){function t(t,e){var n=this;this._filters={},this._sortingStates=[],this._changes={order:[]},this.config=t||{},this._group=new h.Group,this._sort=new s.Sort,this._loader=new a.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?(0,c.dhxError)(t):(0,c.dhxWarning)(t)}),0)})),this._reset()}return t.prototype._reset=function(t){void 0===t&&(t={}),t.grouping||this.ungroup(),this._order=[],this._pull={},this._changes={order:[]},this._initFilterOrder=this._initSortOrder=null,this._meta=new WeakMap,this._loaded=!1},t.prototype.group=function(t,e){void 0===e&&(e={}),t||(0,c.dhxError)("The group method has mandatory arguments"),Array.isArray(t)||(0,c.dhxError)("The group method expects an array as an argument"),t.length||(0,c.dhxError)("The array with the group method values cannot be empty"),this.isGrouped()&&this.ungroup();var n=this._group.getGroupConfig(e);this.events.fire(u.DataEvents.beforeGroup,[n])&&(this._parse(this._group.group(t,(null==e?void 0:e.data)||this._order,e),u.DataDriver.json,!0),this.events.fire(u.DataEvents.afterGroup,[this._group.getGroupedFields(),n]))},t.prototype.ungroup=function(){if(this.isGrouped()){var t=this._group.getGroupedFields(),e=this._group.getGroupConfig();this.events.fire(u.DataEvents.beforeUnGroup,[t,e])&&(this._parse(this._group.ungroup(this._order)),this.events.fire(u.DataEvents.afterUnGroup,[t,e]))}},t.prototype.isGrouped=function(){return this._group.isGrouped()},t.prototype.add=function(t,e){var n,i=this;return n=Array.isArray(t)?t.map((function(n,r){return 0!==r&&e>=0&&(e+=1),i._add({newItem:(0,d.copy)(n),batch:t,index:e,order:r})})):this._add({newItem:(0,d.copy)(t),batch:[t],index:e}),this._reapplyFilters(),n},t.prototype.remove=function(t){var e=this;t instanceof Array?r([],t,!0).forEach((function(n,i){e._remove(n,t,i)})):(0,d.isId)(t)&&this._remove(t,[t])},t.prototype.removeAll=function(){this._reset(),this.events.fire(u.DataEvents.removeAll),this.events.fire(u.DataEvents.change)},t.prototype.exists=function(t){return!!this._pull[t]},t.prototype.getNearId=function(t){var e;if(!this._pull[t])return(null===(e=this._order[0])||void 0===e?void 0:e.id)||""},t.prototype.getItem=function(t){return this._pull[t]},t.prototype.update=function(t,e,n){var i=this.getItem(t);if(i){if((0,c.isEqualObj)(e,i))return;(0,d.isId)(e.id)&&t!==e.id?((0,c.dhxWarning)("this method doesn't allow changing the id"),(0,c.isDebug)()):(e.parent&&i.parent&&e.parent!==i.parent&&this.move(t,-1,this,e.parent),(0,d.extend)(this._pull[t],e,!1),this.config.update&&this.config.update(this._pull[t]),n||this._onChange("update",t,this._pull[t])),this._reapplyFilters()}else(0,c.dhxWarning)("item not found")},t.prototype.getIndex=function(t){return(0,d.isId)(t)&&(0,d.isDefined)(this._pull[t])?this._order.findIndex((function(e){return(null==e?void 0:e.id)==t})):-1},t.prototype.getId=function(t){if(this._order[t])return this._order[t].id},t.prototype.getLength=function(){return this._order.length},t.prototype.isDataLoaded=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=this._order.length),(0,d.isNumeric)(t)&&(0,d.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)},t.prototype.filter=function(t,e,n){var i,r;if((null==e?void 0:e.$restore)&&(t=this._normalizeFilters(t||this._filters)),!(null==e?void 0:e.add)&&(this._order=this._initFilterOrder||this._order,this._initFilterOrder=null,!(null==e?void 0:e.$restore)))for(var o in this._filters){var a=this._filters[o];(null===(i=a.config)||void 0===i?void 0:i.permanent)?this._applyFilters(a.rule):delete this._filters[o]}if(t&&!(null==e?void 0:e.$restore)&&(r=(null==e?void 0:e.id)||(0,d.uid)(),this._filters[r]={rule:t,config:e||{}}),t&&"function"!=typeof t)if((0,d.isDefined)(t.by))this._applyFilters(t);else for(var o in t)this._applyFilters(t[o]);else this._applyFilters(t);if(!n){var s=this._getPureFilters(this._filters);this.events.fire(u.DataEvents.filter,[(0,d.isEmptyObj)(s)?null:s])}return r},t.prototype.resetFilter=function(t,e){var n,i=t||{},r=i.id,o=i.permanent;if((0,d.isEmptyObj)(t))for(var a in this._filters)(null===(n=this._filters[a].config)||void 0===n?void 0:n.permanent)||delete this._filters[a];else o?this._filters={}:r&&delete this._filters[r];return this.filter(null,{$restore:!0},e),(0,d.isEmptyObj)(this._getPureFilters(this._filters))},t.prototype.getFilters=function(t){var e=this.getRawFilters(t),n=e?this._getPureFilters(e):{};return(0,d.isEmptyObj)(n)?null:n},t.prototype.getRawFilters=function(t){var e=this._filters;return(null==t?void 0:t.permanent)&&(e=Object.keys(e).reduce((function(t,n){var i;return(null===(i=e[n].config)||void 0===i?void 0:i.permanent)&&(t[n]=e[n]),t}),{})),(0,d.isEmptyObj)(e)?null:e},t.prototype.find=function(t){for(var e=this._initFilterOrder||this._order,n=0;n<e.length;n++){var i=(0,c.findByConf)(e[n],t,n,e);if(i)return i}return null},t.prototype.findAll=function(t){for(var e=this._initFilterOrder||this._order,n=[],i=0;i<e.length;i++){var r=(0,c.findByConf)(e[i],t,i,e);r&&n.push(r)}return n},t.prototype.sort=function(t,e,n){var o,a;if(void 0===n&&(n=!1),this.isDataLoaded()){if((null==e?void 0:e.smartSorting)&&(this._sorter=t),n||this._sortingStates.length&&!(null==e?void 0:e.smartSorting)&&((null===(o=this._sortingStates[0])||void 0===o?void 0:o.smartSorting)||(null==e?void 0:e.smartSorting))||(this._sortingStates=[i(i({},t),e)]),t){if(!n&&(this._initSortOrder=this._initSortOrder||r([],this._initFilterOrder||this._order,!0),!(null==e?void 0:e.smartSorting)&&(null===(a=this._sortingStates[0])||void 0===a?void 0:a.smartSorting))){var s=this._sortingStates.findIndex((function(e){return e.by==t.by}));-1!==s?this._sortingStates[s].dir=t.dir:this._sortingStates.push(t)}this._applySorters()}else this._initSortOrder&&(this._sortingStates=[],this._order=this._initSortOrder,this._sorter=this._initSortOrder=null,this._initFilterOrder&&(this._initFilterOrder=null,this.filter(null,{$restore:!0},!0)));n||this.events.fire(u.DataEvents.change,[void 0,"sort",t])}else(0,c.dhxWarning)("the method doesn't work with lazyLoad")},t.prototype.getSortingStates=function(){return this._sortingStates},t.prototype.copy=function(t,e,n,i){var r=this;return t instanceof Array?t.map((function(t,o){return r._copy(t,e,n,i,o)})):this._copy(t,e,n,i)},t.prototype.move=function(t,e,n,i,r){var o,a=this;if(t instanceof Array){var s=[];return t.forEach((function(t,r){(0,d.isId)(a._move(t,e,n,i,r))?s.push(t):(0,c.throwMoveWarning)(t,a.exists(t))})),s}return null!==(o=this._move(t,e,n,i,0,r))&&void 0!==o?o:(0,c.throwMoveWarning)(t,this.exists(t))},t.prototype.forEach=function(t){for(var e=0;e<this._order.length;e++)t.call(this,this._order[e],e,this._order)},t.prototype.load=function(t,e){return"string"==typeof t&&(this.dataProxy=t=new l.DataProxy(t)),"string"==typeof e&&(e=e.toLocaleLowerCase()),("xml"===e||"csv"===e||e instanceof p.XMLDriver||e instanceof f.CsvDriver)&&(t.config.responseType=t.config.responseType||"text"),this.dataProxy=t,this._loader.load(t,e)},t.prototype.parse=function(t,e){return this._parse(t,e)},t.prototype.$parse=function(t){var e=this.config.approximate;e&&(t=this._approximate(t,e.value,e.maxNum)),this._parse_data(t),this._reapplyFilters(),this.events.fire(u.DataEvents.change,[void 0,"load"]),this.events.fire(u.DataEvents.load)},t.prototype.save=function(t){"string"==typeof t&&(t=new l.DataProxy(t)),this._loader.save(t)},t.prototype.changeId=function(t,e,n){if(void 0===e&&(e=(0,d.uid)()),t!=e)if(this.exists(e))(0,c.dhxWarning)("item with ID ".concat(e," already exists"));else{var i=this.getItem(t);i?(i.id=e,(0,d.extend)(this._pull[t],i),this._pull[e]=this._pull[t],n||this._onChange("update",e,this._pull[e]),delete this._pull[t]):(0,c.dhxWarning)("item not found")}},t.prototype.isSaved=function(){return!this._changes.order.length},t.prototype.map=function(t){for(var e=[],n=0;n<this._order.length;n++)e.push(t.call(this,this._order[n],n,this._order));return e},t.prototype.mapRange=function(t,e,n){t<0&&(t=0),e>this._order.length-1&&(e=this._order.length-1);for(var i=this._order.slice(t,e+1),r=[],o=t;o<=e;o++)r.push(n.call(this,this._order[o],o,i));return r},t.prototype.reduce=function(t,e){for(var n=0;n<this._order.length;n++)e=t.call(this,e,this._order[n],n);return e},t.prototype.serialize=function(t){void 0===t&&(t=u.DataDriver.json);for(var e=[],n=function(t){var n=i({},r._order[t]);Object.keys(n).forEach((function(t){t.startsWith("$")&&delete n[t]})),(0,d.isDefined)(n.parent)||delete n.parent,e.push(n)},r=this,o=0;o<this._order.length;o++)n(o);var a=(0,c.toDataDriver)(t);if(a)return a.serialize(e)},t.prototype.getInitialData=function(){return this._initFilterOrder},t.prototype.setMeta=function(t,e,n){if(t){var i=this._meta.get(t);i||(i={},this._meta.set(t,i)),i[e]=n}},t.prototype.getMeta=function(t,e){var n=this._meta.get(t);return n?n[e]:null},t.prototype.getMetaMap=function(t){return this._meta.get(t)},t.prototype.setRange=function(t,e){this._range=e?[t,e]:null},t.prototype.getRawData=function(t,e,n,i){if(n=n||this._order,1===i)return n;if(this._range)if(t=this._range[0]+t,-1===e)e=this._range[1];else{var r=Math.abs(e-t);e=t+r>this._range[1]?this._range[1]:t+r}if(!e||0===t&&(-1===e||e===n.length))return n;if(t>=n.length)return[];(-1===e||e>n.length)&&(e=n.length);var o=n.slice(t,e);return 0!==o.filter((function(t){return t.$empty})).length&&this.events.fire(u.DataEvents.dataRequest,[t,e]),o},t.prototype._add=function(t){var e=t.newItem,n=t.index,i=t.order,r=void 0===i?0:i,o=t.batch;if(this.events.fire(u.DataEvents.beforeAdd,[e,o,r])){var a=this._addCore(e,n);return this._onChange("add",e.id,e),this.events.fire(u.DataEvents.afterAdd,[e,o,r]),a}},t.prototype._remove=function(t,e,n){var i=this;void 0===n&&(n=0);var r=this._pull[t];if(r){var o=e.map((function(t){return i._pull[t]}));this.events.fire(u.DataEvents.beforeRemove,[r,o,n])&&(this._removeCore(r.id),this._onChange("remove",t,r),this.events.fire(u.DataEvents.afterRemove,[r,o,n]))}},t.prototype._copy=function(e,n,r,o,a){if(!this.exists(e))return null;var s=(0,d.uid)();return a&&(n=-1===n?-1:n+a),r?r instanceof t||!o?r.exists(e)?(r.add(i(i({},(0,c.copyWithoutInner)(this.getItem(e))),{id:s}),n),s):(r.add((0,c.copyWithoutInner)(this.getItem(e)),n),e):void r.add((0,c.copyWithoutInner)(this.getItem(e)),n):(this.add(i(i({},(0,c.copyWithoutInner)(this.getItem(e))),{id:s}),n),s)},t.prototype._move=function(t,e,n,i,r,o){if(!this.exists(t))return null;if(r&&e<this.getIndex(t)&&(e=-1===e?-1:e+r),n&&n!==this&&this.exists(t)){var a=(0,d.copy)(this.getItem(t),!0);return o&&(a.id=o),(!o&&n.exists(t)||n.exists(o))&&(a.id=(0,d.uid)()),i&&(a.parent=i),n.add(a,e),this.remove(t),a.id}if(this.getIndex(t)===e)return null;var 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},t.prototype._addCore=function(t,e){var n;return this.config.init&&(t=this.config.init(t)),t.id=null!==(n=t.id)&&void 0!==n?n:(0,d.uid)(),this._pull[t.id]&&(0,c.dhxError)("Item ".concat(t.id," already exist")),this._initFilterOrder&&!(0,c.isTreeCollection)(this)&&this._addToOrder(this._initFilterOrder,t,e),this._initSortOrder&&this._addToOrder(this._initSortOrder,t,e),this._addToOrder(this._order,t,e),t.id},t.prototype._removeCore=function(t){this._pull[t]&&(this._order=this._order.filter((function(e){return e.id!==t})),this._initFilterOrder&&this._initFilterOrder.length&&(this._initFilterOrder=this._initFilterOrder.filter((function(e){return e.id!==t}))),this._initSortOrder&&this._initSortOrder.length&&(this._initSortOrder=this._initSortOrder.filter((function(e){return e.id!==t}))),delete this._pull[t])},t.prototype._parse_data=function(t){for(var e=this._order.length,n=0,i=t;n<i.length;n++){var r=i[n];this._addCore(r,e++)}},t.prototype._approximate=function(t,e,n){for(var i=t.length,r=e.length,o=Math.floor(i/n),a=Array(Math.ceil(i/o)),s=0,l=0;l<i;l+=o){for(var c=(0,d.copy)(t[l]),u=Math.min(i,l+o),h=0;h<r;h++){for(var f=0,p=l;p<u;p++)f+=t[p][e[h]];c[e[h]]=f/(u-l)}a[s++]=c}return a},t.prototype._onChange=function(t,e,n){for(var r=0,o=0,a=this._changes.order;o<a.length;o++){var s=a[o],l=this._changes.order.indexOf(s);if(s.id===e&&!s.saving&&(r+=1,l===this._changes.order.length-1||this._changes.order[l+1].id!==e)){if(s.error&&(s.error=!1),s=i(i({},s),{obj:n,status:t}),(r+=1)>10?this._changes.order.splice(l,r-10,s):this._changes.order.splice(l+1,0,s),this._loader.updateChanges(this._changes),"remove"===t&&n.$emptyRow)return;return void this.events.fire(u.DataEvents.change,[e,t,n])}}this._changes.order.push({id:e,status:t,obj:i({},n),saving:!1}),this._loader.updateChanges(this._changes),this.events.fire(u.DataEvents.change,[e,t,n])},t.prototype._addToOrder=function(t,e,n){n>=0&&t[n]?(this._pull[e.id]=e,t.splice(n,0,e)):(this._pull[e.id]=e,t.push(e))},t.prototype._applySorters=function(){this._sortingStates.length>0&&(this._order=this._sort.sort(this._order,this._sortingStates),this._initFilterOrder&&this._initFilterOrder.length&&this._sort.sort(this._initFilterOrder,this._sortingStates))},t.prototype._applyFilters=function(t){if(t){if(!this._checkFilterRule(t))throw new Error("Invalid filter rule");var e="function"!=typeof t?this._getRuleCallback(t):t,n=this._order.filter((function(t){return e(t)}));this._initFilterOrder||(this._initFilterOrder=this._order),this._order=n}},t.prototype._reapplyFilters=function(){var t=this.getFilters({permanent:!0});t&&this.filter(t,{$restore:!0,add:!0},!0),this._sorter&&this._applySorters()},t.prototype._getRuleCallback=function(t){if((0,d.isDefined)(t.by)&&(0,d.isDefined)(t.match))return t.compare?function(e){return t.compare(e[t.by],t.match,e,t.multi)}:function(e){return e[t.by]==t.match}},t.prototype._getPureFilters=function(t){return Object.keys(t).reduce((function(e,n){var i;return(null===(i=t[n].config)||void 0===i?void 0:i.$local)||(e[n]=t[n]),e}),{})},t.prototype._normalizeFilters=function(t){var e=[];for(var n in t){var r=t[n].rule;if("function"!=typeof r)if((0,d.isDefined)(r.by))e.push(this._getRuleCallback(r));else for(var o in r)e.push(this._getRuleCallback(r[o]));else e.push(r)}return i({},e)},t.prototype._checkFilterRule=function(t){return"function"==typeof t||(0,d.isDefined)(t.by)&&(0,d.isDefined)(t.match)},t.prototype._parse=function(t,e,n){return void 0===e&&(e=u.DataDriver.json),void 0===n&&(n=!1),this._reset({grouping:n}),this._loader.parse(t,e)},t}();e.DataCollection=_},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},i.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.dataDriversPro=e.dataDrivers=void 0;var r=n(27),o=n(18),a=n(28);e.dataDrivers={json:r.JsonDriver,csv:o.CsvDriver},e.dataDriversPro=i(i({},e.dataDrivers),{xml:a.XMLDriver})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JsonDriver=void 0;var i=function(){function t(){}return t.prototype.toJsonArray=function(t){return this.getRows(t)},t.prototype.serialize=function(t){return t},t.prototype.getFields=function(t){return t},t.prototype.getRows=function(t){return"string"==typeof t?JSON.parse(t):t},t}();e.JsonDriver=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.XMLDriver=void 0;var i=n(63);function r(t,e){e=e||{};var n=t.attributes;if(n&&n.length)for(var i=0;i<n.length;i++)e[n[i].name]=n[i].value;var o=t.childNodes;for(i=0;i<o.length;i++){var a=o[i];if(a.nodeType===a.ELEMENT_NODE){var s=a.tagName;e[s]?("function"!=typeof e[s].push&&(e[s]=[e[s]]),e[s].push(r(a,{}))):e[s]=r(a,{})}}return e}var o=function(){function t(){}return t.prototype.toJsonArray=function(t){return this.getRows(t)},t.prototype.toJsonObject=function(t){var e;return"string"==typeof t&&(e=this._fromString(t)),r(e)},t.prototype.serialize=function(t){return(0,i.jsonToXML)(t)},t.prototype.getFields=function(t){return t},t.prototype.getRows=function(t){if("string"==typeof t&&(t=this._fromString(t)),t){var e=t.childNodes&&t.childNodes[0]&&t.childNodes[0].childNodes;return e&&e.length?this._getRows(e):null}return[]},t.prototype._getRows=function(t){for(var e=[],n=0;n<t.length;n++)"item"===t[n].tagName&&e.push(this._nodeToJS(t[n]));return e},t.prototype._fromString=function(t){try{return(new DOMParser).parseFromString(t,"text/xml")}catch(t){return null}},t.prototype._nodeToJS=function(t){var e={};if(this._haveAttrs(t))for(var n=t.attributes,i=0;i<n.length;i++){var r=n[i],o=r.name,a=r.value;e[o]=this._toType(a)}if(t.nodeType===t.TEXT_NODE)return e.value=e.value||this._toType(t.textContent),e;var s=t.childNodes;if(s)for(i=0;i<s.length;i++){var l=s[i],c=l.tagName;c&&("items"===c&&l.childNodes?e[c]=this._getRows(l.childNodes):this._haveAttrs(l)?e[c]=this._nodeToJS(l):e[c]=this._toType(l.textContent))}return e},t.prototype._toType=function(t){return"false"===t||"true"===t?"true"===t:t},t.prototype._haveAttrs=function(t){return t.attributes&&t.attributes.length},t}();e.XMLDriver=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.methods=void 0;var i=n(0);e.methods={sum:function(t,e){return parseFloat(t.reduce((function(t,n){return t+(+n[e]||0)}),0).toFixed(12))},avg:function(t,e){return parseFloat((t.reduce((function(t,n){return t+(+n[e]||0)}),0)/t.length).toFixed(12))},count:function(t,e){return void 0===t&&(t=[]),t.filter((function(t){return(0,i.isDefined)(t[e])&&""!==t[e]})).length},min:function(t,e){return Math.min.apply(Math,t.map((function(t){return+t[e]})))},max:function(t,e){return Math.max.apply(Math,t.map((function(t){return+t[e]})))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={apply:"apply",reject:"reject"}},function(t,e,n){"use strict";function i(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=void 0,e.blockScreen=function(t){var e=document.createElement("div");return e.className="dhx_alert__overlay "+(t||""),document.body.appendChild(e),document.addEventListener("keydown",i),function(){document.body.removeChild(e),document.removeEventListener("keydown",i)}}},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(21),e),r(n(78),e),r(n(22),e)},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Cell=void 0;var a=n(0),s=n(1),l=n(4),c=n(22),u=n(77),d=n(3),h=n(21),f=function(t){function e(e,n){var i=t.call(this,e,n)||this;i._disabled=[];var r=e;return r&&r.isVisible&&(i._parent=r),i._parent&&i._parent.events?i.events=i._parent.events:i.events=new d.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.id=i.config.id||(0,a.uid)(),i._initHandlers(),i._progress=!!i.config.progressDefault,i._stopProgressDefault=!1,i._isXDirection()&&!n.width&&(n.$autoWidth=!0),i._isXDirection()||n.height||(n.$autoHeight=!0),i}return r(e,t),e.prototype.paint=function(){var t;if(this.isVisible()){var e=this.getRootView();e?e.redraw():null===(t=this._parent)||void 0===t||t.paint()}},e.prototype.isVisible=function(){var t;if(!this._parent)return!(!this._container||!this._container.tagName)||Boolean(this.getRootNode());var e=null===(t=this._parent.config)||void 0===t?void 0:t.activeView;return(!e||e===this.id)&&(!this.config.hidden&&(!this._parent||this._parent.isVisible()))},e.prototype.hide=function(){this.events.fire(c.LayoutEvents.beforeHide,[this.id])&&(this.config.hidden=!0,this._resetCellsSize(),this._parent&&this._parent.paint&&this._parent.paint(),this.events.fire(c.LayoutEvents.afterHide,[this.id]))},e.prototype.show=function(){this.events.fire(c.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.events.fire(c.LayoutEvents.afterShow,[this.id]))},e.prototype.expand=function(){this.events.fire(c.LayoutEvents.beforeExpand,[this.id])&&(this.config.collapsed=!1,this._checkNextSize()||this._checkNextSize(this._getAnyFlexCell()),this.events.fire(c.LayoutEvents.afterExpand,[this.id]),this.paint())},e.prototype.collapse=function(){this.events.fire(c.LayoutEvents.beforeCollapse,[this.id])&&(this.config.collapsed=!0,this._checkNextSize()||this._checkNextSize(this._getAnyFlexCell()),this.events.fire(c.LayoutEvents.afterCollapse,[this.id]),this.paint())},e.prototype.toggle=function(){this.config.collapsed?this.expand():this.collapse()},e.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,!0):!this._isXDirection()&&e.config.$autoHeight&&e.config.height?(e.config.height=void 0,!0):!t&&e._checkNextSize())},e.prototype.getParent=function(){return this._parent},e.prototype.destructor=function(){var t;this.events&&this.events.clear(),window.removeEventListener("resize",this._afterWindowResized),this._ui&&this._ui.config&&"function"==typeof(null===(t=this._ui)||void 0===t?void 0:t.destructor)&&this._ui.destructor(),this.config=this.events=this.id=this._parent=this._handlers=this._uid=this._disabled=this._resizerHandlers=null,this.unmount()},e.prototype.getWidget=function(){return this._ui},e.prototype.getCellView=function(){return this._parent&&this._parent.getRefs(this._uid)},e.prototype.attach=function(t,e){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 l.View?this._ui=new t(null,e):this._ui={getRootView:function(){return t(e)}}),this.paint(),this._ui},e.prototype.attachHTML=function(t){this.config.html=t,this.paint()},e.prototype.detach=function(){this._stopProgressDefault=!1,this._ui=this.config.html=null,this.paint()},e.prototype.progressShow=function(){this.config.progressDefault&&(this._stopProgressDefault=!1),this._progress=!0,this.paint()},e.prototype.progressHide=function(){this.config.progressDefault&&(this._stopProgressDefault=!0),this._progress=!1,this.paint()},e.prototype.isVisibleProgress=function(){return this._progress},e.prototype.toVDOM=function(t){var e,n,i;if(this._saveTheme(),null===this.config&&(this.config={}),!this.config.hidden){var r,l=this.config.$fieldset,c=this._calculateStyle(),u=(0,a.isDefined)(this.config.padding)?isNaN(Number(this.config.padding))?{padding:this.config.padding}:{padding:"".concat(this.config.padding,"px")}:"",d=this.config.full||this.config.html?c:o(o({},c),u),h=this._checkProgress()?this._getProgressBar():null;if(!this.config.html)if(this._ui){var f=this._ui.getRootView();f.render&&(f=(0,s.inject)(f)),r=[f]}else r=t||null;var p=this.config.resizable&&!this._isLastCell()&&this._getNextCell()&&!this.config.collapsed?(0,s.el)(".dhx_layout-resizer."+(this._isXDirection()?"dhx_layout-resizer--x":"dhx_layout-resizer--y"),o(o({},this._resizerHandlers),{_ref:"resizer_"+this._uid,tabindex:0}),[(0,s.el)("span.dhx_layout-resizer__icon",{class:"dxi "+(this._isXDirection()?"dxi-dots-vertical":"dxi-dots-horizontal")})]):null,_={};if(this.config.on)for(var v in this.config.on)_["on"+v]=this.config.on[v];var g="",m=this.config.cols||this.config.rows;if(this.config.type&&m)switch(this.config.type){case"line":g=" dhx_layout-line";break;case"wide":g=" dhx_layout-wide";break;case"space":g=" dhx_layout-space"}var y=l?(0,s.el)("fieldset.dhx_form-fieldset",{class:this.config.$disabled?" dhx_form-fieldset--disabled":"",style:u,disabled:this.config.$disabled},[(0,s.el)("legend.dhx_form-fieldset-legend",{class:"dhx_form-fieldset-legend--".concat(this.config.labelAlignment||"left")},this.config.label),(0,s.el)(".dhx_layout-cell-content",{class:this._getCss(!1)},[].concat(r))]):this.config.full?[(0,s.el)("div",{tabindex:this.config.collapsable?"0":"-1",role:this.config.collapsable?"button":null,"aria-label":this.config.collapsable?"click to ".concat(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&&(0,s.el)("span.dhx_layout-cell-header__icon",{class:this.config.headerIcon}),this.config.headerImage&&(0,s.el)(".dhx_layout-cell-header__image-wrapper",[(0,s.el)("img",{src:this.config.headerImage,class:"dhx_layout-cell-header__image"})]),this.config.header&&(0,s.el)("h3.dhx_layout-cell-header__title",this.config.header),this.config.collapsable?(0,s.el)("div.dhx_layout-cell-header__collapse-icon",{class:this._getCollapseIcon()}):(0,s.el)("div.dhx_layout-cell-header__collapse-icon",{class:"dxi dxi-empty"})]),this.config.collapsed?null:(0,s.el)("div",{style:o(o({},u),{height:"calc(100% - ".concat(this.config.headerHeight||37,"px)")}),class:this._getCss(!0)+" dhx_layout-cell-content"+(this.config.type?g:"")},this.config.html?[(0,s.el)("div",{".innerHTML":this.config.html,class:"dhx_layout-cell dhx_layout-cell-inner_html"})]:r)]:!this.config.html||this.config.rows&&this.config.cols&&this.config.views?r:[this.config.collapsed?null:(0,s.el)(".dhx_layout-cell-content",{style:u},[(0,s.el)(".dhx_layout-cell-inner_html",{".innerHTML":this.config.html})])],b=(0,s.el)("div",o(o(((e={_key:this.config.id||this._uid,_ref:this._uid})["aria-label"]=this.config.id?"tab-content-"+this.config.id:null,e["data-cell-id"]=null!==(n=this.config.id)&&void 0!==n?n:null,e["data-dhx-theme"]=null!==(i=this._theme)&&void 0!==i?i:null,e),_),{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?g:""),style:l?c:d}),y||h?[].concat(y,h):null);return p?[].concat(b,p):b}},e.prototype._saveTheme=function(){var t,e=null===(t=this.getCellView())||void 0===t?void 0:t.el;e&&(this._theme=e.getAttribute("data-dhx-theme"))},e.prototype._getProgressBar=function(){return(0,s.el)("span",{class:"dhx_progress-bar"},[(0,s.sv)("svg",{viewBox:"25 25 50 50",class:"dhx_spinner"},[(0,s.sv)("circle",{cx:"50",cy:"50",r:"20",class:"path"})])])},e.prototype._getCss=function(t){return"dhx_layout-cell"},e.prototype._initHandlers=function(){var t=this;!this.getParent()||this.config.cols||this.config.rows||window.addEventListener("resize",this._afterWindowResized),this._handlers={enterCollapse:function(e){13===e.keyCode&&t._handlers.toggle()},collapse:function(){t.config.collapsable&&t.collapse()},expand:function(){t.config.collapsable&&t.expand()},toggle:function(){t.config.collapsable&&t.toggle()}};var e={left:null,top:null,isActive:!1,range:null,xLayout:null,nextCell:null,size:null,resizerLength:null,margin:null,collapsedSize:null},n=function(n,i){if(void 0===i&&(i={x:0,y:0}),e.isActive){var r=e.xLayout,o=n.targetTouches?n.targetTouches[0].clientX:n.clientX+i.x,a=n.targetTouches?n.targetTouches[0].clientY:n.clientY+i.y,s=r?o-e.range.min+window.pageXOffset:a-e.range.min+window.pageYOffset,l=r?"width":"height";s<0?s=e.resizerLength/2:s>e.size&&(s=e.size-e.resizerLength);var u=function(e){var n;return parseInt(null===(n=t.config[e])||void 0===n?void 0:n.toString())},d=u(r?"maxWidth":"maxHeight"),h=u(r?"minWidth":"minHeight");(!d||s<d)&&(!h||s>h)&&(t.config[l]=s-e.resizerLength/2+"px",e.nextCell.config[l]=e.size-s-e.resizerLength/2+"px",e.nextCell._getAnyFlexCell()&&(e.nextCell._getAnyFlexCell().config[l]=void 0),t.paint(),t.events.fire(c.LayoutEvents.resize,[t.id]))}},i=function(r){e.isActive=!1,document.body.classList.remove("dhx_no-select--resize"),r.targetTouches?(document.removeEventListener("touchend",i),document.removeEventListener("touchmove",n)):(document.removeEventListener("mouseup",i),document.removeEventListener("mousemove",n)),t.events.fire(c.LayoutEvents.afterResizeEnd,[t.id])},r=function(n){if(n.targetTouches&&n.preventDefault(),3!==n.which&&(e.isActive&&i(n),t.events.fire(c.LayoutEvents.beforeResizeStart,[t.id]))){document.body.classList.add("dhx_no-select--resize");var r=t.getCellView(),o=t._getNextCell(),a=o.getCellView(),s=t._getResizerView(),l=r.el.getBoundingClientRect(),d=s.el.getBoundingClientRect(),h=a.el.getBoundingClientRect();e.xLayout=t._isXDirection(),e.left=l.left+window.pageXOffset,e.top=l.top+window.pageYOffset,e.collapsedSize=t._getCollapsedSize(t,o),e.margin=(0,u.getMarginSize)(t.getParent().config),e.range=(0,u.getBlockRange)(l,h,e.xLayout),e.size=e.range.max-e.range.min-e.margin-e.collapsedSize,e.isActive=!0,e.nextCell=o,e.resizerLength=e.xLayout?d.width:d.height}};this._resizerHandlers={onmousedown:function(t){r(t),document.addEventListener("mouseup",i),document.addEventListener("mousemove",n)},ontouchstart:function(t){r(t),document.addEventListener("touchend",i),document.addEventListener("touchmove",n)},ondragstart:function(t){return t.preventDefault()}}},e.prototype._getCollapsedSize=function(t,e){var n=0,i=this._parent,r=i._cells.indexOf(t),o=i._cells.indexOf(e);if(o-r==1)return n;for(var a=r+1;a<o;a++)i._cells[a].config.collapsed&&(this._isXDirection()?n+=45:n+=Number(i._cells[a].config.headerHeight)||37);return n},e.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"},e.prototype._isLastCell=function(){var t=this._parent;return!t||t._cells.indexOf(this)===t._cells.length-1},e.prototype._getNextCell=function(){if(!this._isLastCell()){var t=this._parent,e=t._cells.indexOf(this),n=t._cells[e+1];return n.config.hidden||n.config.collapsed?n._getNextCell():n}},e.prototype._getAnyFlexCell=function(t){var e,n=this;void 0===t&&(t=!1);var i=this._parent,r=this._isXDirection()?"$autoWidth":"$autoHeight",o=null===(e=null==i?void 0:i._cells)||void 0===e?void 0:e.filter((function(e){return!0===e.config[r]&&(!!t||e.id!==n.id)}));return!!(null==o?void 0:o.length)&&o[o.length-1]},e.prototype._getResizerView=function(){return this._parent.getRefs("resizer_"+this._uid)},e.prototype._isXDirection=function(){return this._parent&&this._parent._xLayout},e.prototype._checkProgress=function(){return this instanceof h.Layout?this.isVisibleProgress():(this._calculateProgressState(),(this._progress||this._checkAutoProgress())&&!this.config.collapsed&&!this.config.hidden&&!this._parent.isVisibleProgress())},e.prototype._checkAutoProgress=function(){if(this._stopProgressDefault)return!1;var t=this.config,e=t.html;return t.progressDefault&&!this._ui&&!e},e.prototype._calculateProgressState=function(){if(!this._stopProgressDefault){var t=this.config,e=t.html,n=t.progressDefault;!n||this._ui||e||(this._progress=!0),n&&(this._ui||e)&&(this._progress=!1)}},e.prototype._calculateStyle=function(){var t=this.config;if(t){var e={},n=!1,i=!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&&(n=!0),"content"===t.height&&(i=!0);var r=t,o=r.width,a=r.height,s=r.cols,l=r.rows,c=r.minWidth,u=r.minHeight,d=r.maxWidth,h=r.maxHeight,f=r.gravity,p=r.collapsed,_=r.$fixed,v=-1===Math.sign(f)?0:f;"boolean"==typeof f&&(v=f?1:0);var g="boolean"==typeof f?!f:-1===Math.sign(f);this._isXDirection()?(_||o||void 0===f&&(c||d))&&(g=!0):(_||a||void 0===f&&(u||h))&&(g=!0);var m=this._checkFullSizeCell(),y=g&&!m?0:m?1:v||1,b=this._isXDirection()?"x":"y";if(void 0===c||p||(e.minWidth=c),void 0===u||p||(e.minHeight=u),void 0!==d&&(e.maxWidth=d),void 0!==h&&(e.maxHeight=h),void 0===this._parent&&void 0!==!b&&(b=!0),m||void 0===o||"content"===o){if(!0===b)e.width="100%";else if("x"===b)if(n)e.flex="0 0 auto";else{var w=this._isXDirection()?"1px":"auto";e.flex="".concat(y," ").concat(s||l?"0 ".concat(w):"1 auto")}}else e.width=o;if(m||void 0===a||"content"===a){if(!0===b)e.height="100%";else if("y"===b)if(i)e.flex="0 0 auto";else{w=this._isXDirection()?"auto":"1px";e.flex="".concat(y," ").concat(s||l?"0 ".concat(w):"1 auto")}}else e.height=a;return!0===b&&void 0===t.width&&void 0===t.height&&(e.flex="".concat(y," 1 auto")),p&&(this._isXDirection()?e.width="auto":e.height="auto",e.flex="0 0 auto"),e}},e.prototype._resizedWindow=function(){var t;if(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){var e=this._isXDirection()?"width":"height";this.config[e]=void 0,this.paint()}},e.prototype._resetCellsSize=function(){var t=this,e=this._parent._cells.filter((function(e){return e!==t&&!e.config.hidden&&!e.config.collapsed})),n=this._isXDirection(),i=n?"$autoWidth":"$autoHeight",r=n?"width":"height";e.forEach((function(t){t.config[i]&&(t.config[r]=void 0)}))},e.prototype._checkFullSizeCell=function(){var t=this;if(!this._parent)return!1;var e=this._isXDirection()?"$autoWidth":"$autoHeight";if(!this.config[e])return!1;var n=this._parent._cells.filter((function(e){return e!==t&&!e.config.hidden}));return!!n.length&&n.every((function(t){return t.config.collapsed}))},e}(l.View);e.Cell=f},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Toolbar=void 0;var a=n(0),s=n(1),l=n(2),c=n(11),u=n(35),d=function(t){function e(e,n){var i=t.call(this,e,(0,a.extend)({navigationType:"click",$name:"toolbar"},n))||this;i._currentRoot=null;return i.mount(e,(0,s.create)({render:function(){return i._draw(e)}})),i}return r(e,t),e.prototype.getState=function(t){if(!(0,a.isDefined)(t)||this.data.getItem(t)){var e={};for(var n in this.data.eachChild(this.data.getRoot(),(function(t){t.twoState&&!t.group?e[t.id]=t.active:"input"!==t.type&&"selectButton"!==t.type&&"datePicker"!==t.type||(e[t.id]=t.value)}),!1),this._groups)this._groups[n].active&&(e[n]=this._groups[n].active);return(0,a.isId)(t)?e[t]:e}},e.prototype.setState=function(t){var e,n=function(n){if(i._groups&&i._groups[n])i._groups[n].active&&(i.data.update(i._groups[n].active,{active:!1}),i._groups[n].active=t[n],i.data.update(t[n],{active:!0}));else{var r=i.data.getItem(n);switch(r.type){case"input":i.data.update(n,{value:t[n]});break;case"selectButton":var o=null===(e=r.items)||void 0===e?void 0:e.find((function(e){return e.value===t[n]}));i.data.update(n,{value:t[n],icon:null==o?void 0:o.icon});break;case"datePicker":r.$calendar?t[n]?r.$calendar.setValue(t[n]):r.$calendar.clear():i.data.update(n,{value:t[n]});break;default:i.data.update(n,{active:t[n]})}}},i=this;for(var r in t)n(r)},e.prototype.setFocus=function(t){if(this.data.getItem(t)&&"input"===this.data.getItem(t).type){var e=this.getRootNode().querySelector('[data-dhx-id="'.concat(t,'"]'));e&&e.focus()}},e.prototype._customHandlers=function(){var t=this;return{input:function(e){var n=(0,l.locate)(e),i=t.data.getItem(n);if(i){var r=e.target.value;t.data.update(n,{value:r}),"input"===i.type&&t.events.fire(u.NavigationBarEvents.input,[n,r])}},tooltip:function(e){var n=(0,l.locateNode)(e);if(n){var i=n.getAttribute("data-dhx-id"),r=t.data.getItem(i);(null==r?void 0:r.tooltip)&&(0,c.tooltip)(r.tooltip,{node:n,position:c.Position.bottom})}}}},e.prototype._getFactory=function(){return(0,u.createFactory)({widget:this,defaultType:"navItem",allowedTypes:["button","imageButton","selectButton","navItem","menuItem","separator","spacer","title","input","customHTML","datePicker","customHTMLButton"],widgetName:"toolbar"})},e.prototype._draw=function(t){var e=this,n=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(0,s.el)("nav.dhx_widget.dhx_toolbar",{style:{height:n},class:this.config.css?this.config.css:""},[(0,s.el)("ul.dhx_navbar.dhx_navbar--horizontal",o(o({"data-dhx-widget-id":this._uid,tabindex:0},function(t){return{role:"toolbar","aria-label":t||""}}(t)),{onclick:this._handlers.onclick,onmousedown:this._handlers.onmousedown,oninput:this._handlers.input,onmouseover:this._handlers.tooltip,onkeydown:this._handlers.onkeydown,onmousemove:this._handlers.onmousemove,onmouseleave:this._handlers.onmouseleave,_hooks:{didInsert:function(t){t.el.addEventListener("keyup",(function(t){if(9===t.which){var n=(0,l.locateNode)(document.activeElement);if(n){var i=n.getAttribute("data-dhx-id"),r=e.data.getItem(i);(null==r?void 0:r.tooltip)&&(0,c.tooltip)(r.tooltip,{node:n,position:c.Position.bottom,force:!0})}}}),!0)}}}),this.data.map((function(t){return e._factory(t)}),this.data.getRoot(),!1))])},e.prototype._getMode=function(t,e){return t.id===e?"bottom":"right"},e.prototype._close=function(e){this._activePosition=null,this._currentRoot=null,t.prototype._close.call(this,e)},e.prototype._setRoot=function(t){this.data.getParent(t)===this.data.getRoot()&&(this._currentRoot=t)},e}(u.Navbar);e.Toolbar=d},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(81),e),r(n(83),e),r(n(15),e)},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(100),e),r(n(37),e)},function(t,e,n){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.PopupEvents=void 0,function(t){t.beforeHide="beforeHide",t.beforeShow="beforeShow",t.afterHide="afterHide",t.afterShow="afterShow",t.click="click"}(i||(e.PopupEvents=i={}))},function(t,e,n){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.SliderEvents=void 0,function(t){t.beforeChange="beforeChange",t.change="change",t.focus="focus",t.blur="blur",t.keydown="keydown",t.mousedown="mousedown",t.mouseup="mouseup"}(i||(e.SliderEvents=i={}))},function(t,e,n){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.TimepickerEvents=void 0,function(t){t.beforeChange="beforeChange",t.change="change",t.beforeApply="beforeApply",t.afterApply="afterApply",t.beforeClose="beforeClose",t.afterClose="afterClose",t.apply="apply",t.close="close",t.save="save"}(i||(e.TimepickerEvents=i={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.stripTime=e.DateHelper=e.stringToDate=e.getExcelDate=e.getFormattedDate=e.locale=void 0;var i=n(0),r=n(0);e.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 o,a={"%d":function(t){var e=t.getDate();return e<10?"0"+e:e},"%j":function(t){return t.getDate()},"%l":function(t){return e.locale.days[t.getDay()]},"%D":function(t){return e.locale.daysShort[t.getDay()]},"%m":function(t){var e=t.getMonth()+1;return e<10?"0"+e:e},"%n":function(t){return t.getMonth()+1},"%M":function(t){return e.locale.monthsShort[t.getMonth()]},"%F":function(t){return e.locale.months[t.getMonth()]},"%y":function(t){return t.getFullYear().toString().slice(2)},"%Y":function(t){return t.getFullYear()},"%h":function(t){var e=t.getHours()%12;return 0===e&&(e=12),e<10?"0"+e:e},"%g":function(t){var e=t.getHours()%12;return 0===e&&(e=12),e},"%H":function(t){var e=t.getHours();return e<10?"0"+e:e},"%G":function(t){return t.getHours()},"%i":function(t){var e=t.getMinutes();return e<10?"0"+e:e},"%s":function(t){var e=t.getSeconds();return e<10?"0"+e:e},"%a":function(t){return t.getHours()>=12?"pm":"am"},"%A":function(t){return t.getHours()>=12?"PM":"AM"},"%u":function(t){return t.getMilliseconds()}},s={"%d":function(t,e,n,i){var r=/(^([0-9][0-9])$)/i.test(e);if(i)return r;r?t.setDate(Number(e)):t.setDate(Number(1))},"%j":function(t,e,n,i){var r=/(^([0-9]?[0-9])$)/i.test(e);if(i)return r;r?t.setDate(Number(e)):t.setDate(Number(1))},"%m":function(t,e,n,i){var r=/(^([0-9][0-9])$)/i.test(e);if(i)return r;r?t.setMonth(Number(e)-1):t.setMonth(Number(0)),r&&t.getMonth()!==Number(e)-1&&t.setMonth(Number(e)-1)},"%n":function(t,e,n,i){var r=/(^([0-9]?[0-9])$)/i.test(e);if(i)return r;r?t.setMonth(Number(e)-1):t.setMonth(Number(0)),r&&t.getMonth()!==Number(e)-1&&t.setMonth(Number(e)-1)},"%M":function(t,n,i,o){var a=(0,r.findIndex)(e.locale.monthsShort,(function(t){return t===n}));if(o)return-1!==a;-1===a?t.setMonth(0):t.setMonth(a),-1!==a&&t.getMonth()!==a&&t.setMonth(a)},"%F":function(t,n,i,o){var a=(0,r.findIndex)(e.locale.months,(function(t){return t===n}));if(o)return-1!==a;-1===a?t.setMonth(0):t.setMonth(a),-1!==a&&t.getMonth()!==a&&t.setMonth(a)},"%y":function(t,e,n,i){var r=/(^([0-9][0-9])$)/i.test(e);if(i)return r;r?t.setFullYear(Number("20"+e)):t.setFullYear(Number("2000"))},"%Y":function(t,e,n,i){var r=/(^([0-9][0-9][0-9][0-9])$)/i.test(e);if(i)return r;r?t.setFullYear(Number(e)):t.setFullYear(Number("2000"))},"%h":function(t,e,n,i){var r=/(^0[1-9]|1[0-2]$)/i.test(e);if(i)return r;r&&("am"===n||"pm"===n)||"AM"===n||"PM"===n?t.setHours(Number(e)):t.setHours(Number(0))},"%g":function(t,e,n,i){var r=/(^[1-9]$)|(^0[1-9]|1[0-2]$)/i.test(e);if(i)return r;r&&("am"===n||"pm"===n)||"AM"===n||"PM"===n?t.setHours(Number(e)):t.setHours(Number(0))},"%H":function(t,e,n,i){var r=/(^[0-2][0-9]$)/i.test(e);if(i)return r;r?t.setHours(Number(e)):t.setHours(Number(0))},"%G":function(t,e,n,i){var r=/(^[1-9][0-9]?$)/i.test(e);if(i)return r;r?t.setHours(Number(e)):t.setHours(Number(0))},"%i":function(t,e,n,i){var r=/(^([0-5][0-9])$)/i.test(e);if(i)return r;r?t.setMinutes(Number(e)):t.setMinutes(Number(0))},"%s":function(t,e,n,i){var r=/(^([0-5][0-9])$)/i.test(e);if(i)return r;r?t.setSeconds(Number(e)):t.setSeconds(Number(0))},"%u":function(t,e,n,i){var r=/(^([0-9][0-9][0-9])$)/i.test(e);if(i)return r;r?t.setMilliseconds(Number(e)):t.setMilliseconds(Number(0))},"%a":function(t,e,n,i){if(i)return"pm"===e||"am"===e;"pm"===e&&t.setHours(t.getHours()+12)},"%A":function(t,e,n,i){if(i)return"PM"===e||"AM"===e;"PM"===e&&t.setHours(t.getHours()+12)}};function l(t){for(var e=[],n="",i=0;i<t.length;i++)"%"===t[i]?(n.length>0&&(e.push({type:o.separator,value:n}),n=""),e.push({type:o.datePart,value:t[i]+t[i+1]}),i++):n+=t[i];return n.length>0&&e.push({type:o.separator,value:n}),e}!function(t){t[t.separator=0]="separator",t[t.datePart=1]="datePart"}(o||(o={})),e.getFormattedDate=function(t,e){return l(t).reduce((function(t,n){return n.type===o.separator?t+n.value:a[n.value]?t+a[n.value](e):t}),"")},e.getExcelDate=function(t){return t?25569+(t.getTime()-6e4*t.getTimezoneOffset())/864e5:null};var c={"%Y":1,"%y":1,"%M":2,"%F":2,"%m":2,"%n":2};function u(t,e,n){if("string"==typeof t){e=e.replace(/([a-z])(%a)/i,(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t=t.replace(/(am|pm)/i," $&"),e[1]+" "+e[2]}));for(var i,r=l(e),a=new Array(2),u=0,d=null,h="Incorrect date, see docs: https://docs.dhtmlx.com/suite/calendar__api__calendar_dateformat_config.html",f=function(t){var e=c[t.formatter];e?a[e-1]=t:("%A"!==t.formatter&&"%a"!==t.formatter||(i=t.value),a.push(t))},p=0;p<r.length;p++)if(r[p].type===o.separator){var _=t.indexOf(r[p].value,u);if(-1===_){if(n)return!1;throw new Error(h)}d&&(f({formatter:d,value:t.slice(u,_)}),d=null),u=_+r[p].value.length}else if(r[p].type===o.datePart){if(r[p+1]&&r[p+1].type!==o.separator){if(n)return!1;throw new Error(h)}d=r[p].value}d&&f({formatter:d,value:t.slice(u)});for(var v=new Date(0),g=0,m=a;g<m.length;g++){var y=m[g];if(y&&s[y.formatter]){if(n&&!s[y.formatter](v,y.value,i,n))return!1;s[y.formatter](v,y.value,i)}}return!!n||v}}e.stringToDate=u;e.DateHelper=function(){function t(){}return t.copy=function(t){return new Date(t)},t.fromYear=function(t){return new Date(t,0,1)},t.fromYearAndMonth=function(t,e){return new Date(t,e,1)},t.weekStart=function(t,e){var n=(t.getDay()+7-e)%7;return new Date(t.getFullYear(),t.getMonth(),t.getDate()-n)},t.monthStart=function(t){return new Date(t.getFullYear(),t.getMonth(),1)},t.yearStart=function(t){return new Date(t.getFullYear(),0,1)},t.dayStart=function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},t.addDay=function(t,e){return void 0===e&&(e=1),new Date(t.getFullYear(),t.getMonth(),t.getDate()+e)},t.addMonth=function(t,e){return void 0===e&&(e=1),new Date(t.getFullYear(),t.getMonth()+e)},t.addYear=function(t,e){return void 0===e&&(e=1),new Date(t.getFullYear()+e,t.getMonth())},t.withHoursAndMinutes=function(t,e,n,i){return void 0===i||!i&&12===e||i&&12!==e?new Date(t.getFullYear(),t.getMonth(),t.getDate(),e,n):i&&12===e?new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,n):new Date(t.getFullYear(),t.getMonth(),t.getDate(),e+12,n)},t.setMonth=function(t,e){t.setMonth(e)},t.setYear=function(t,e){t.setFullYear(e)},t.mergeHoursAndMinutes=function(t,e){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),e.getHours(),e.getMinutes())},t.isWeekEnd=function(t){return 0===t.getDay()||6===t.getDay()},t.getTwelweYears=function(t){var e=t.getFullYear(),n=e-e%12;return(0,i.range)(n,n+11)},t.getDayOrdinal=function(t){return(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())-Date.UTC(t.getFullYear(),0,1))/864e5},t.getWeekNumber=function(e){var n=4===e.getDay()?e:t.addDay(e,4-e.getDay()),i=t.getDayOrdinal(n);return Math.trunc(i/7)+1},t.isSameDay=function(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()},t.toDateObject=function(t,e){return"string"==typeof t?u(t,e):new Date(t)},t.nullTimestampDate=new Date(0),t}();e.stripTime=function(t,e){return void 0===e&&(e=!1),e?new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes()):new Date(t.getFullYear(),t.getMonth(),t.getDate())}},function(t,e,n){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.CalendarEvents=void 0,function(t){t.change="change",t.beforeChange="beforechange",t.modeChange="modeChange",t.monthSelected="monthSelected",t.yearSelected="yearSelected",t.cancelClick="cancelClick",t.dateMouseOver="dateMouseOver",t.dateHover="dateHover"}(i||(e.CalendarEvents=i={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeItem=e.isImage=e.getFileClassName=e.getFileType=e.FileType=e.calculateCover=e.truncateWord=e.getBasis=void 0;var i=n(9),r=["byte","kilobyte","megabyte","gigabyte"];e.getBasis=function t(e,n){return void 0===e&&(e=0),void 0===n&&(n=0),e<1024?e+" "+i.default[r[n]]:t(Math.round(e/1024),n+1)};var o;function a(t,e,n){for(var i=new RegExp("[".concat(["Han","Hiragana","Katakana","Hangul"].map((function(t){return"\\p{sc=".concat(t,"}")})).join(""),"]"),"gu"),r=0,o=0,a=0;a<n;a++){var s=void 0;if(!(s="start"===e?t.slice(r,r+2):r?t.slice(-(r+2),-r):t.slice(-(r+2))))return r;var l=s.charCodeAt(0),c=55296<=l&&l<=56319;if((c&&s.match(i)||s["start"===e?0:1].match(i))&&o++,2*o+a-o+1>n)return r;c?r+=2:r++}return r}function s(t){return{extension:t.name.split(".").pop()||"none",mime:t.file?t.file.type:""}}function l(t,e){switch(t){case"jpg":case"jpeg":case"gif":case"png":case"bmp":case"tiff":case"pcx":case"svg":case"ico":return o.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 o.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 o.archive;case"xlr":case"xls":case"xlsm":case"xlsx":case"ods":case"csv":case"tsv":return o.table;case"doc":case"docx":case"docm":case"dot":case"dotx":case"odt":case"wpd":case"wps":case"pages":return o.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 o.audio;case"pot":case"potm":case"potx":case"pps":case"ppsm":case"ppsx":case"ppt":case"pptx":case"pptm":case"odp":return o.presentation;case"html":case"htm":case"eml":return o.web;case"exe":return o.application;case"dmg":return o.apple;case"pdf":case"ps":case"eps":return o.pdf;case"psd":return o.psd;case"txt":case"djvu":case"nfo":case"xml":return o.text;default:switch(e.split("/")[0]){case"image":return o.image;case"audio":return o.audio;case"video":return o.video;default:return o.other}}}e.truncateWord=function(t,e){var n,i;if(void 0===e&&(e=13),t.length<=a(t,"start",e))return t;var r=t.lastIndexOf(".");if(-1===r)i=t.substr(t.length-a(t,"end",4)),n=t.substr(0,a(t,"start",e-7));else{var o=r-a(t.slice(0,r),"end",3);i=t.substr(o),n=t.substr(0,a(t,"start",e-(t.length-o)))}return n+"..."+i},e.calculateCover=function(t){var e,n,i,r,o=t.width,a=t.height,s=o/a;return s>1?(e=a,i=(o-(n=a))/2,r=0):s<1?(n=o,i=0,r=(a-(e=o))/2):(e=o,n=o,i=0,r=0),{sx:i,sy:r,sWidth:n,sHeight:e,dx:0,dy:0}},function(t){t.image="image",t.video="video",t.archive="archive",t.table="table",t.document="document",t.presentation="presentation",t.application="application",t.web="web",t.apple="apple",t.pdf="pdf",t.psd="psd",t.audio="audio",t.other="other",t.text="text"}(o||(e.FileType=o={})),e.getFileType=l,e.getFileClassName=function(t){var e=s(t),n=e.mime,i=e.extension;return l(i,n)+" extension-"+i},e.isImage=function(t){var e=s(t),n=e.mime;return l(e.extension,n)===o.image},e.removeItem=function(t,e){t.exists(e)&&(t.update(e,{$toRemove:!0}),setTimeout((function(){t.update(e,{$toRemove:!1},!0),t.remove(e)}),200))}},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.DataView=void 0;var a=n(0),s=n(1),l=n(44),c=n(113),u=function(t){function e(e,n){return void 0===n&&(n={}),t.call(this,e,(0,a.extend)({itemsInRow:1,gap:"0px"},n))||this}return r(e,t),e.prototype.scrollTo=function(t){var e=this.getRootView();if(e&&e.node&&e.node.el&&void 0!==t){var n=this.getRootNode();this._scrollTo(t,n)}},e.prototype._scrollTo=function(t,e){var n;if(e){var i=this.data.getIndex(t);if(-1!==i){var r=this.config.virtual,o=this.config.itemsInRow-(null===(n=e.lastElementChild)||void 0===n?void 0:n.children.length)||0,a=function(t,e,n){var i=0;if(!n)return i;for(;t+e>=n;)i++,t=t+e-n;return i}(i,o,e.children.length*this.config.itemsInRow),s=a*o,l=Math.floor((i+s)/this.config.itemsInRow),c=e.children[l-e.children.length*a];if(r||c){var u=c.children[(i+s)%this.config.itemsInRow],d=parseInt(this.config.gap.toString().replace("px",""),null);u.offsetTop>=e.clientHeight+e.scrollTop-u.clientHeight?e.scrollTop=u.offsetTop-e.clientHeight+u.clientHeight+d:u.offsetTop<e.scrollTop-d&&(e.scrollTop=u.offsetTop-d)}}}},e.prototype._didRedraw=function(t){var e=t.node.el,n=e.scrollHeight>e.offsetHeight,i=t.node.attrs.class.replace(" dhx_dataview--has-scroll",""),r=n?i+" dhx_dataview--has-scroll":i;t.node.patch({class:r})},e.prototype._renderItem=function(t,e){var n=this.config,i=n.itemsInRow,r=n.gap,a=n.template,l=n.itemHeight,u=a?a(t):t.htmlContent,d=t.id==this._focus,h=(e+1)%this.config.itemsInRow==0,f=function(t){return parseFloat(t)};if(t.id==this._edited)return(0,c.getEditor)(t,this).toHTML(h);var p=t.id.toString(),_=this.data.getMetaMap(t);return(0,s.el)("div",o(o({class:"dhx_dataview-item"+(_&&_.selected?" dhx_dataview-item--selected":"")+(d?" dhx_dataview-item--focus":"")+(_&&_.drop&&!this._edited?" dhx_dataview-item--drophere":"")+(_&&_.drag&&!this._edited?" dhx_dataview-item--dragtarget":"")+(this.config.dragMode&&!this._edited?" dhx_dataview-item--drag":"")+(f(r)?" dhx_dataview-item--with-gap":"")+(t.css?" "+t.css:"")+(h?" dhx_dataview-item--last-item-in-row":""),style:{width:"calc(".concat(100/i,"% - ").concat(f(r)," * ").concat((i-1)/i,"px)"),"margin-right":h?"":r,height:a?null:l},_key:p,"data-dhx-id":p,_ref:p},this.getDataViewItemAriaAttrs(this,t)),{tabindex:d?0:-1}),u?[(0,s.el)(".dhx_dataview-item__inner-html",{".innerHTML":u,role:"presentation"})]:t.value||t.text||t.value)},e.prototype._renderList=function(){var t=this,e=this.data.getRawData(0,-1),n=this.config,i=n.itemsInRow,r=n.css,a=n.gap,l=0,c=e.reduce((function(e,n,r){return 0===l&&e.push([]),e[e.length-1].push(t._renderItem(n,r)),l=(l+1)%i,e}),[]);return(0,s.el)("",o(o(o(o({},this._handlers),{"data-dhx-widget-id":this._uid,"data-dhx-drop-area":"row",class:(r||"")+" 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(),c.length,i)),{tabindex:0}),c.map((function(t,e){return(0,s.el)(".dhx_dataview-row",{style:{margin:a},"aria-label":"Row ".concat(e+1)},t)})))},e.prototype._getHotkeys=function(){var e=this,n=t.prototype._getHotkeys.call(this);return n.arrowUp=function(t){e.moveFocus(l.MOVE_UP,e.config.itemsInRow),e._changed&&(e._changed=!1),t.preventDefault()},n.arrowDown=function(t){e.moveFocus(l.MOVE_DOWN,e.config.itemsInRow),e._changed&&(e._changed=!1),t.preventDefault()},n.arrowLeft=function(t){e.moveFocus(l.MOVE_UP),e._changed&&(e._changed=!1),t.preventDefault()},n.arrowRight=function(t){e.moveFocus(l.MOVE_DOWN),e._changed&&(e._changed=!1),t.preventDefault()},n},e.prototype.getDataViewItemAriaAttrs=function(t,e){return o(o({role:"option","aria-selected":e.$selected?"true":"false"},function(t,e){return t.config.dragMode&&!t._edited?{"aria-grabbed":Boolean(e.$dragtarget&&!t._edited).toString()}:{}}(t,e)),function(t){return t.config.editable?{"aria-roledescription":"".concat(t._edited?"Press Enter to stop editing":"Double click to edit content")}:{}}(t))},e.prototype.getDataViewAriaAttrs=function(t,e,n,i){return{role:"listbox","aria-label":"Dataview, ".concat(e," options on ").concat(n," rows, ").concat(i," options per row.").concat(t.editable?" Content is editable.":""),"aria-multiselectable":t.selection&&t.multiselection?"true":"false","aria-readonly":t.editable?"false":"true"}},e}(l.List);e.DataView=u},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(45),e),r(n(112),e),r(n(46),e),r(n(24),e)},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)},a=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.List=e.MOVE_DOWN=e.MOVE_UP=void 0;var s=n(0),l=n(7),c=n(1),u=n(23),d=n(19),h=n(4),f=n(46),p=n(2),_=n(24),v=n(110);e.MOVE_UP=1,e.MOVE_DOWN=2;var g=function(t){function n(e,n){void 0===n&&(n={});var i=this,r=n.itemHeight||(n.virtual?37:null);r&&"number"==typeof r&&(r=r.toString()+"px"),(i=t.call(this,e,(0,s.extend)({itemHeight:r,keyNavigation:!0,editable:!1,selection:!0,htmlEnable:!0},n))||this)._destructed=!1,i._touch={duration:350,dblDuration:300,timer:null,start:!1,timeStamp:null};var o=i.config.data;o instanceof l.DataCollection?(i.data=o,i.events=o.events):(i.data=new l.DataCollection({}),i.events=i.data.events,o&&i.data.parse(o)),i.selection=new f.Selection({disabled:!i.config.selection,multiselection:i.config.multiselection},i.data,i.events),i.config.keyNavigation&&(i.keyManager=new u.KeyManager((function(t,e){return e==i._uid&&(!i._edited||i._edited&&"escape"!==t.key)})),i._initHotKey()),i.events.on(l.DataEvents.change,(function(t,e,n){"setPage"===e&&i.scrollTo(i.data.getId(n[0])),i.paint()})),i.events.on(l.DataEvents.filter,(function(){i.paint()})),i.events.on(d.SelectionEvents.afterUnSelect,(function(){return i.paint()})),i.events.on(d.SelectionEvents.afterSelect,(function(t){(0,s.isId)(t)&&i.config.selection&&i.setFocus(t),i.paint()})),i.events.on(_.ListEvents.afterEditEnd,i.editEnd.bind(i));var a=function(t){return function(e){i.data.setMeta(i.data.getItem(e.target),"drop",t),i.paint()}};i.events.on(l.DragEvents.canDrop,a(!0)),i.events.on(l.DragEvents.cancelDrop,a(!1));var h=function(t){return function(e){e.source.map((function(e){return i.data.setMeta(i.data.getItem(e),"drag",t)})),i.paint()}};i.events.on(l.DragEvents.dragStart,h(!0)),i.events.on(l.DragEvents.afterDrag,h(!1)),i._handlers={onmousedown:function(t){i._dragStart(t)},ontouchstart:function(t){(i._touch.timer=setTimeout((function(){i._dragStart(t)}),i._touch.duration),i._touch.timeStamp)?(i._touch.dblDuration>=i._touch.timeStamp-+t.timeStamp.toFixed()&&(t.preventDefault(),i._dblClick(t)),i._touch.timeStamp=null):i._touch.timeStamp=+t.timeStamp.toFixed();setTimeout((function(){i._touch.timeStamp=null}),i._touch.dblDuration)},ontouchmove:function(t){i._touch.start&&t.preventDefault(),i._clearTouchTimer()},ontouchend:function(){i._touch.start=!1,i._clearTouchTimer()},ondragstart:function(){return!(i.config.dragMode&&!i._edited)&&null},oncontextmenu:function(t){var e,n=null===(e=i.data.getItem((0,p.locate)(t)))||void 0===e?void 0:e.id;(0,s.isId)(n)&&i.events.fire(_.ListEvents.itemRightClick,[n,t])},onclick:function(t){var e,n=null===(e=i.data.getItem((0,p.locate)(t)))||void 0===e?void 0:e.id;(0,s.isId)(n)&&(i.selection.add(n,t.ctrlKey||t.metaKey,t.shiftKey),i.config.selection&&(i._focus=n),i.events.fire(_.ListEvents.click,[n,t]),i.paint())},ondblclick:function(t){i._dblClick(t)},onscroll:function(t){i.config.virtual&&(i._topOffset=t.target.scrollTop,i._visibleHeight=t.target.offsetHeight,i.paint())},onmouseover:function(t){var e,n=null===(e=i.data.getItem((0,p.locate)(t)))||void 0===e?void 0:e.id;(0,s.isId)(n)&&(n!==(0,p.locate)(t.relatedTarget)&&i.events.fire(_.ListEvents.itemMouseOver,[n,t]))}};var v=i.config.eventHandlers;if(v)for(var g=0,m=Object.entries(v);g<m.length;g++){var y=m[g],b=y[0],w=y[1];i._handlers[b]=(0,p.eventHandler)((function(t){return(0,p.locate)(t)}),w,i._handlers[b])}i.config.dragMode&&l.dragManager.setItem(i._uid,i),i._topOffset=i._visibleHeight=0;var x=(0,c.create)({render:function(){return i._destructed?(0,c.el)("div"):i._renderList()},hooks:{didMount:function(t){i.config.virtual&&(i._visibleHeight=t.node.el.offsetHeight)},didRedraw:function(t){return i._didRedraw(t)}}});return i.mount(e,x),i}return r(n,t),n.prototype._didRedraw=function(t){},n.prototype._dblClick=function(t){var e,n=(0,p.locate)(t);n&&(n=null===(e=this.data.getItem(n))||void 0===e?void 0:e.id,this.config.editable&&this.editItem(n),this.events.fire(_.ListEvents.doubleClick,[n,t]))},n.prototype._clearTouchTimer=function(){this._touch.timer&&(clearTimeout(this._touch.timer),this._touch.timer=null)},n.prototype._dragStart=function(t){var e=this;this._touch.start=!0;var n=[],i=(0,p.locateNode)(t,"data-dhx-id"),r=i&&i.getAttribute("data-dhx-id"),o=this.selection.getId();return this.config.multiselection&&o instanceof Array&&(o.map((function(t){t!==r&&e.getRootView().refs[t]&&n.push(e.getRootView().refs[t].el)})),o=a([],o,!0)),"string"==typeof o&&(o=[o]),this.config.dragMode&&!this._edited?l.dragManager.onMouseDown({event:t,type:"row",source:o||[r],itemsForGhost:n}):null},n.prototype.disableSelection=function(){this.selection.disable()},n.prototype.enableSelection=function(){this.selection.enable()},n.prototype.editItem=function(t){this._edited=t,this.data.getItem(this._edited)&&this.events.fire(_.ListEvents.beforeEditStart,[t])?(this.paint(),this.events.fire(_.ListEvents.afterEditStart,[t])):this._edited=null},n.prototype.editEnd=function(t,e){if(this._edited){if(null!==t){var n=this.data.getItem(e);this.data.update(e,o(o({},n),{value:t})),this._changed=!0}this._edited=null,this.paint()}},n.prototype.getFocusItem=function(){return this.data.getItem(this._focus)},n.prototype.setFocus=function(t){this._focus!=t&&this.data.exists(t)&&(this._focus=t,this.events.fire(_.ListEvents.focusChange,[this.data.getIndex(this._focus),this._focus]),this.scrollTo(t),this.paint())},n.prototype.resetFocus=function(){this._focus=void 0,this.events.fire(_.ListEvents.focusChange),this.scrollTo(this.data.getId(0)),this.paint()},n.prototype.getFocus=function(){return this._focus},n.prototype.destructor=function(){this._destructed=!0,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()},n.prototype.scrollTo=function(t){var e=this.getRootView();if(e&&e.node&&e.node.el&&void 0!==t){var n=this.getRootNode();this._scrollTo(t,n)}},n.prototype._scrollTo=function(t,e){if(e){var n=this.data.getIndex(t);if(-1!==n){var i=this.config.virtual,r=Math.floor(n/e.children.length)||0,o=e.children[n-e.children.length*r];if(i||o){var a=i?parseInt(this.config.itemHeight):o.clientHeight,s=i?n*a:o.offsetTop;s>=e.scrollTop+e.clientHeight-a?e.scrollTo(0,s-e.clientHeight+a):s<e.scrollTop&&e.scrollTo(0,s)}}}},n.prototype._renderItem=function(t,e){var n=function(t){t.class+=" dhx_list-item--empty"},i=this.config.itemHeight;if(t.$empty)return(0,c.el)("li",{class:"dhx_list-item",style:{height:i}});var r="";this.config.template&&(r=this.config.template(t)),t.html&&(r=t.html);var a=t.id==this._focus&&this.config.keyNavigation;if(t.id==this._edited)return(0,v.getEditor)(t,this).toHTML();var s=this.data.getMetaMap(t),l=o(o(o(o({},this._events),{class:"dhx_list-item"+(s&&s.selected?" dhx_list-item--selected":"")+(a?" dhx_list-item--focus":"")+(s&&s.drop&&!this._edited?" dhx_list-item--drophere":"")+(s&&s.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:a?0:-1});if(r)return r===t.html||this.config.htmlEnable?(l[".innerHTML"]=r,(0,c.el)("li",l)):(0,c.el)("li",l,r);if(this.config.$template)return t.value||n(l),(0,c.el)("li",l,[this.config.$template(t)]);var u=t.text||t.value;return u||n(l),this.config.htmlEnable?l[".innerHTML"]=u:l.class+=" dhx_list-item--text",this.config.htmlEnable?(0,c.el)("li",l):(0,c.el)("li",l,u)},n.prototype._renderList=function(){var t=this,e=this._getRange(),n=this.data.getRawData(e[0],e[1]).map((function(e,n){return t._renderItem(e,n)}));return this.config.virtual&&(n=a(a([(0,c.el)(".div",{style:{height:e[2]+"px",_key:"start-key"}})],n,!0),[(0,c.el)(".div",{style:{height:e[3]+"px",_key:"end-key"}})],!1)),(0,c.el)("ul.dhx_widget.dhx_list",o(o({style:{"max-height":this.config.height,position:"relative"},tabindex:0,id:this._uid,class:(this.config.css?this.config.css:"")+(this.config.multiselection&&this.selection.getItem()?" dhx_no-select--pointer":""),"data-dhx-widget-id":this._uid,"data-dhx-drop-area":"row"},this._handlers),this._getListAriaAttrs(this.config,this.data.getLength())),n)},n.prototype.moveFocus=function(t,n){var i=this.data.getLength();if(i){var r=this._focus,o=r?this.data.getIndex(r):-1;n=n||1,t===e.MOVE_DOWN?r=this.data.getId(Math.min(o+n,i-1)):t===e.MOVE_UP&&(r=this.data.getId(Math.max(o-n,0))),this.setFocus(r)}},n.prototype._getRange=function(){if(this.config.virtual){var t=this._visibleHeight||parseInt(this.config.height),e=parseInt(this.config.itemHeight)||37,n=this.data.getRawData(0,-1).length,i=n*e,r=this._topOffset;r=Math.max(0,Math.min(r,i-t));var o=Math.floor(r/e),a=Math.min(n-o,Math.floor(t/e)+5);return this._topOffset=r,[o,a+o,o*e,i-e*(a+o)]}return[0,-1,0,0]},n.prototype._getHotkeys=function(){var t=this;return{arrowDown:function(n){t.moveFocus(e.MOVE_DOWN),t._changed&&(t._changed=!1),n.preventDefault()},arrowUp:function(n){t.moveFocus(e.MOVE_UP),t._changed&&(t._changed=!1),n.preventDefault()},escape:function(){t.editEnd(null),t._changed&&(t._changed=!1)},enter:function(e){var n;if(t._changed)t._changed=!1;else{var i=t.selection.getItem(),r=i instanceof Array?null===(n=i[0])||void 0===n?void 0:n.id:null==i?void 0:i.id;t.config.editable&&!t._edited&&(i&&r===t._focus||!i)?t.editItem(t._focus):t.selection.add(t._focus),t.events.fire(_.ListEvents.click,[t._focus,e])}},"shift+enter":function(e){t.selection.add(t._focus,!1,!0),t.events.fire(_.ListEvents.click,[t._focus,e])},"ctrl+enter":function(e){t.selection.add(t._focus,!0,!1),t.events.fire(_.ListEvents.click,[t._focus,e])},"ctrl+a":function(e){t.config.multiselection&&(e.preventDefault(),t.selection.remove(),t.data.map((function(t){return t.id})).forEach((function(e){"ctrlClick"===t.config.multiselection?t.selection.add(e,!0):t.selection.add(e)})))}}},n.prototype._initHotKey=function(){var t=this._getHotkeys();for(var e in t)this.keyManager.addHotKey(e,t[e]);for(var e in this.config.hotkeys)this.keyManager.addHotKey(e,this.config.hotkeys[e])},n.prototype.getItemAriaAttrs=function(t,e){return o(o({role:"option","aria-selected":e.id===this._focus?"true":"false"},function(t,e){return t.config.dragMode&&!t._edited?{"aria-grabbed":Boolean(e.$dragtarget&&!t._edited).toString()}:{}}(t,e)),function(t){return t.config.editable?{"aria-roledescription":"".concat(t._edited?"Press Enter to stop editing":"Double click to edit content")}:{}}(t))},n.prototype._getListAriaAttrs=function(t,e){return{role:"listbox","aria-label":"Listbox ".concat(t.title||"",", count of options = ").concat(e,".").concat(t.editable?" Content is editable.":""),"aria-multiselectable":t.selection&&t.multiselection?"true":"false","aria-readonly":t.editable?"false":"true"}},n}(h.View);e.List=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Selection=void 0;var i=n(19),r=n(7),o=n(0),a=function(){function t(t,e,n){var i=this;if(this.config=t,this.events=n,this._data=e,this._selected=[],this._data.events.on(r.DataEvents.removeAll,(function(){i._selected=[]})),"string"==typeof this.config.multiselection){["click","ctrlClick"].includes(this.config.multiselection)||(this.config.multiselection=!1)}this._data.events.on(r.DataEvents.beforeRemove,(function(t){if(i._nextSelection=null,1===i._selected.length){var e=i._data.getIndex(t.id),n=i._data.getLength();if(n>1){var r=n==e-1?e-1:e+1;i._nextSelection=i._data.getId(r)}}})),this._data.events.on(r.DataEvents.afterRemove,(function(t){var e=i._selected.indexOf(t.id);-1!==e&&i._selected.splice(e,1),(0,o.isId)(i._nextSelection)&&(i.add(i._nextSelection),i._nextSelection=null)}))}return t.prototype.enable=function(){this.config.disabled=!1},t.prototype.disable=function(){this.remove(),this.config.disabled=!0},t.prototype.getId=function(){return this.config.multiselection?this._selected:this._selected[0]},t.prototype.getItem=function(){var t=this;return this.config.multiselection?this._selected.map((function(e){return t._data.getItem(e)})):this._selected.length?this._data.getItem(this._selected[0]):null},t.prototype.contains=function(t){return(0,o.isId)(t)?this._selected.includes(t):this._selected.length>0},t.prototype.remove=function(t,e){var n=this;(0,o.isId)(t)?this._unselectItem(t,e):(this._selected.forEach((function(t){return n._unselectItem(t,e)})),this._selected=[])},t.prototype.add=function(t,e,n,i){var r=this;if(!this.config.disabled)if(void 0!==t){var o=this.config.multiselection;n&&this._selected.length&&o?this._addMulti(t,i):this._addSingle(t,o&&("ctrlClick"!==o||e),i)}else{var a=this._data.serialize().filter((function(t){var e=t.id;return!r._selected.includes(e)}));a.forEach((function(t){var e=t.id;r._addMulti(e,i)}))}},t.prototype.destructor=function(){var t=this;this._selected.forEach((function(e){return t._unselectItem(e,!0)}))},t.prototype._addMulti=function(t,e){var n,i=this._selected[this._selected.length-1],r=this._data.getIndex(i),o=this._data.getIndex(t);for(r>o&&(r=(n=[o,r])[0],o=n[1]);r<=o;r++){var a=this._data.getId(r);this._selectItem(a,e)}},t.prototype._addSingle=function(t,e,n){var i=this;e||this._selected.forEach((function(e){e!=t&&i._unselectItem(e)})),e&&this._selected.includes(t)?this._unselectItem(t,n):this._selectItem(t,n)},t.prototype._selectItem=function(t,e){var n=this._data.getItem(t);n&&!this._data.getMeta(n,"selected")&&(e||this.events.fire(i.SelectionEvents.beforeSelect,[t]))&&(this._selected.push(t),this._data.setMeta(n,"selected",!0),e||this.events.fire(i.SelectionEvents.afterSelect,[t]))},t.prototype._unselectItem=function(t,e){(e||this.events.fire(i.SelectionEvents.beforeUnSelect,[t]))&&(this._selected=this._selected.filter((function(e){return e!==t})),this._data.setMeta(this._data.getItem(t),"selected",!1),e||this.events.fire(i.SelectionEvents.afterUnSelect,[t]))},t}();e.Selection=a},function(t,e,n){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.DataViewEvents=void 0,function(t){t.click="click",t.doubleClick="doubleclick",t.focusChange="focuschange",t.beforeEditStart="beforeEditStart",t.afterEditStart="afterEditStart",t.beforeEditEnd="beforeEditEnd",t.afterEditEnd="afterEditEnd",t.itemRightClick="itemRightClick",t.itemMouseOver="itemMouseOver",t.contextmenu="contextmenu"}(i||(e.DataViewEvents=i={}))},function(t,e,n){n(49),n(50),n(51),n(52),n(53),n(54),t.exports=n(58)},function(t,e){Object.values=Object.values?Object.values:function(t){var e=Object.prototype.toString.call(t);if(null==t)throw new TypeError("Cannot convert undefined or null to object");if(~["[object String]","[object Object]","[object Array]","[object Function]"].indexOf(e)){if(Object.keys)return Object.keys(t).map((function(e){return t[e]}));var n=[];for(var i in t)t.hasOwnProperty(i)&&n.push(t[i]);return n}return[]},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){"use strict";for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(null==t)throw new TypeError("Cannot convert first argument to object");for(var i=Object(t),r=0;r<e.length;r++){var o=e[r];if(null!=o)for(var a=Object.keys(Object(o)),s=0,l=a.length;s<l;s++){var c=a[s],u=Object.getOwnPropertyDescriptor(o,c);void 0!==u&&u.enumerable&&(i[c]=o[c])}}return i}})},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 n=Object(this),i=n.length>>>0;if(0===i)return!1;var r,o,a=0|e,s=Math.max(a>=0?a:i-Math.abs(a),0);for(;s<i;){if((r=n[s])===(o=t)||"number"==typeof r&&"number"==typeof o&&isNaN(r)&&isNaN(o))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),n=e.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var i=arguments[1],r=0;r<n;){var o=e[r];if(t.call(i,o,r,e))return o;r++}},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,n=Object(this),i=n.length>>>0,r=arguments[1],o=0;o<i;o++)if(e=n[o],t.call(r,e,o,n))return o;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){if(Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}if("classList"in SVGElement.prototype||Object.defineProperty(SVGElement.prototype,"classList",{get:function(){var t=this;return{contains:function(e){return-1!==t.className.baseVal.split(" ").indexOf(e)},add:function(e){return t.setAttribute("class",t.getAttribute("class")+" "+e)},remove:function(e){var n=t.getAttribute("class").replace(new RegExp("(\\s|^)".concat(e,"(\\s|$)"),"g"),"$2");t.classList.contains(e)&&t.setAttribute("class",n)},toggle:function(t){this.contains(t)?this.remove(t):this.add(t)}}},configurable:!0}),!Object.entries){var i=Function.bind.call(Function.call,Array.prototype.reduce),r=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),o=Function.bind.call(Function.call,Array.prototype.concat);Object.entries=function(t){return i(Object.keys(t),(function(e,n){return o(e,"string"==typeof n&&r(t,n)?[[n,t[n]]]:[])}),[])}}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:t>0?1:-1}},function(t,e,n){(function(t){t.prototype.finally||(t.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))})}).call(this,n(5))},function(t,e,n){(function(t){var i=void 0!==t&&t||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(r.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new o(r.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(56),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(16))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var i,r,o,a,s,l=1,c={},u=!1,d=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?i=function(t){e.nextTick((function(){p(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){p(t.data)},i=function(t){o.port2.postMessage(t)}):d&&"onreadystatechange"in d.createElement("script")?(r=d.documentElement,i=function(t){var e=d.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):i=function(t){setTimeout(p,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&p(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),i=function(e){t.postMessage(a+e,"*")}),h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return c[l]=r,i(l),l++},h.clearImmediate=f}function f(t){delete c[t]}function p(t){if(u)setTimeout(p,0,t);else{var e=c[t];if(e){u=!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{f(t),u=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(16),n(57))},function(t,e){var n,i,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(t){i=a}}();var l,c=[],u=!1,d=-1;function h(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&f())}function f(){if(!u){var t=s(h);u=!0;for(var e=c.length;e;){for(l=c,c=[];++d<e;)l&&l[d].run();d=-1,e=c.length}l=null,u=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{return i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function _(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new p(t,e)),1!==c.length||u||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=_,r.addListener=_,r.once=_,r.off=_,r.removeListener=_,r.removeAllListeners=_,r.emit=_,r.prependListener=_,r.prependOnceListener=_,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.i18n=e.setTheme=e.message=e.DataCollection=void 0,n(59),n(60);var o=n(9),a=n(61),s=n(7);Object.defineProperty(e,"DataCollection",{enumerable:!0,get:function(){return s.DataCollection}});var l=n(11);Object.defineProperty(e,"message",{enumerable:!0,get:function(){return l.message}}),r(n(75),e),r(n(13),e);var c=n(1);Object.defineProperty(e,"setTheme",{enumerable:!0,get:function(){return c.setTheme}});var u=window;e.i18n=u.dhx&&u.dhx.i18n?u.dhx.i18n:{},e.i18n.setLocale=a.setLocale,e.i18n.vault=e.i18n.vault||o.default},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setLocale=void 0,e.setLocale=function(t,e){var n=this[t];if(n)for(var i in e)n[i]=e[i]}},function(t,e,n){"use strict";(function(t){var i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},i.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Loader=void 0;var r=n(0),o=n(6),a=n(8),s=n(0),l=function(){function e(t,e){this._parent=t,this._changes=e}return e.prototype.load=function(t,e){var n=this;if(!t.config||this._parent.events.fire(a.DataEvents.beforeLazyLoad,[]))return this._parent.loadData=t.load().then((function(t){return t?n.parse(t,e):[]})).catch((function(t){n._parent.events.fire(a.DataEvents.loadError,[t])}))},e.prototype.parse=function(t,e){var n=this;if(void 0===e&&(e=a.DataDriver.json),"json"!==e||(0,o.hasJsonOrArrayStructure)(t)||this._parent.events.fire(a.DataEvents.loadError,["Uncaught SyntaxError: Unexpected end of input"]),!((t=(e=(0,o.toDataDriver)(e)).toJsonArray(t))instanceof Array)){var l=t.total_count-1,c=t.from;if(t=t.data,0!==this._parent.getLength())return t.forEach((function(t,e){var a=c+e,l=n._parent.getId(a);if((0,r.isId)(l)){var u=n._parent.getItem(l);if(u&&u.$empty){var d=t.id||u.id;(0,s.isDefined)(t.id)&&n._parent.changeId(l,d,!0),n._parent.update(d,i(i({},t),{$empty:void 0}),!0)}}else(0,o.dhxWarning)("item not found")})),this._parent.events.fire(a.DataEvents.afterLazyLoad,[c,t.length]),this._parent.events.fire(a.DataEvents.change),t;for(var u=[],d=0,h=0;d<=l;d++)d>=c&&d<=c+t.length-1?(u.push(t[h]),h++):u.push({$empty:!0});t=u}return this._parent.getInitialData()&&this._parent.removeAll(),this._parent.$parse(t),t},e.prototype.save=function(e){for(var n=this,i=this._getUniqueOrder(),r=function(i){if(i.saving||i.pending)(0,o.dhxWarning)("item is saving");else{var r=a._findPrevState(i.id);if(r&&r.saving){var s=new t((function(t,a){r.promise.then((function(){i.pending=!1,t(n._setPromise(i,e))})).catch((function(t){n._removeFromOrder(r),n._setPromise(i,e),(0,o.dhxWarning)(t),a(t)}))}));a._addToChain(s),i.pending=!0}else a._setPromise(i,e)}},a=this,s=0,l=i;s<l.length;s++){r(l[s])}i.length&&this._parent.saveData.then((function(){n._saving=!1}))},e.prototype.updateChanges=function(t){this._changes=t},e.prototype._setPromise=function(t,e){var n,i=this;switch(t.status){case"remove":n="delete";break;case"add":n="insert";break;default:n=t.status}return t.promise=e.save(t.obj,n),t.promise.then((function(){i._removeFromOrder(t)})).catch((function(e){t.saving=!1,t.error=!0,(0,o.dhxError)(e)})),t.saving=!0,this._saving=!0,this._addToChain(t.promise),t.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,n=this._changes.order;e<n.length;e++){var i=n[e];if(i.id===t)return i}return null},e.prototype._removeFromOrder=function(t){this._changes.order=this._changes.order.filter((function(e){return!(0,o.isEqualObj)(e,t)}))},e.prototype._getUniqueOrder=function(){return this._changes.order.reduce((function(t,e){var n=t.findIndex((function(t){return t.id===e.id})),i=n>-1?t[n]:null;return i&&!1===i.saving&&"add"===i.status?"remove"===e.status?t.splice(n,1):i.obj=e.obj:i&&!1===i.saving&&"update"===i.status?t.splice(n,1,e):t.push(e),t}),[])},e}();e.Loader=l}).call(this,n(5))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.jsonToXML=void 0;var i=4;function r(t){return" ".repeat(t)}function o(t,e){void 0===e&&(e=i);var n=r(e)+"<item>\n";for(var a in t)Array.isArray(t[a])?(n+=r(e+i)+"<".concat(a,">\n"),n+=t[a].map((function(t){return o(t,e+2*i)})).join("\n")+"\n",n+=r(e+i)+"</".concat(a,">\n")):n+=r(e+i)+"<".concat(a,">").concat(t[a],"</").concat(a,">\n");return n+=r(e)+"</item>"}e.jsonToXML=function(t,e){void 0===e&&(e="root");for(var n='<?xml version="1.0" encoding="iso-8859-1"?>\n<'.concat(e,">"),i=0;i<t.length;i++)n+="\n"+o(t[i]);return n+"\n</".concat(e,">")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Sort=void 0;var i=n(6),r=function(){function t(){}return t.prototype.sort=function(t,e){return this._sort(t,e)},t.prototype._createSorter=function(t){var e=this;t&&!t.rule&&(t.rule=function(n,r){var o,a,s=null!==(o=e._checkVal(t.as,n[t.by]))&&void 0!==o?o:"",l=null!==(a=e._checkVal(t.as,r[t.by]))&&void 0!==a?a:"";return(0,i.naturalCompare)(s.toString(),l.toString())})},t.prototype._checkVal=function(t,e){return t?t.call(this,e):e},t.prototype._sort=function(t,e){var n=this;e.forEach((function(t){return n._createSorter(t)}));var i={asc:1,desc:-1},r=t.sort((function(t,r){for(var o=0,a=e;o<a.length;o++){var s=a[o],l=s.rule.call(n,t,r)*(i[s.dir]||i.asc);if(0!==l)return l}return 0})),o=r.findIndex((function(t){return t.$groupSummary}));if(-1!==o){var a=r[o];switch(r.splice(o,1),a.$groupSummary){case"top":r.unshift(a);break;case"bottom":r.push(a)}}return r},t}();e.Sort=r},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},i.apply(this,arguments)},r=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Group=void 0;var o=n(0),a=n(29),s=function(){function t(){this._init=[],this._groupSet=new Set,this._groupOrderFields=[]}return t.prototype.group=function(t,e,n){return void 0===n&&(n={}),(null==t?void 0:t.length)&&(null==e?void 0:e.length)&&Array.isArray(t)?(this._init=r([],e,!0),this._groupSet.clear(),this._config=this.getGroupConfig(n),this._groupOrderFields=t.map((function(t){return"string"==typeof t?t:"function"==typeof t?"":"by"in t&&"string"==typeof t.by?t.by:""})),this._group(t,e)):e||[]},t.prototype.ungroup=function(t){var e=this._init;if(this._init=[],this._groupSet.clear(),t){for(var n={},r=function(e){var i=t[e];if(i.$group)return"continue";Object.keys(i).forEach((function(t){t.startsWith("$")&&delete i[t]})),delete i.parent,n[i.id]=i},o=0;o<t.length;o++)r(o);return e.map((function(t){return i(i({},t),n[t.id])}))}return e||[]},t.prototype.isGrouped=function(){return!!this._init.length},t.prototype.getGroupedFields=function(){return this._groupOrderFields},t.prototype.getGroupConfig=function(t){var e;return t?{displayMode:t.displayMode||"column",field:t.field||"group",showMissed:null===(e=t.showMissed)||void 0===e||e}:this._config},t.prototype._group=function(t,e,n,r){var a=this;if(void 0===r&&(r=0),!(r>=t.length)){for(var s=[],l={},c=[],u="",d={},h=0;h<e.length;h++){var f=e[h],p=t[r],_="function"==typeof p||"function"==typeof(null==p?void 0:p.by),v=f[(d=this._getOrderConfig(p,f)).by],g=_?d.by:v;_||v||0===v?(this._groupSet.add(d.by),l[g]||(l[g]=[]),l[g].push(f)):(this._config.showMissed&&(delete f.parent,c.push(f)),"string"==typeof this._config.showMissed&&(u=this._config.showMissed))}var m=Object.keys(l);return u&&m.push(u),m.forEach((function(e){var u,h=l[e]||c,f=n?"".concat(n,":").concat(e):"$".concat((0,o.uid)(),":").concat(e),p={};d.map&&Object.keys(d.map).forEach((function(t){p[t]=a._toAggregate(h,d.map[t])}));var _=i(((u={id:f,$by:d.by,$group:!0,$row:"row"===a._config.displayMode,$count:h.length})[d.by]=e,u),p);"column"===a._config.displayMode&&(_[a._config.field]=e),n&&(_.parent=n),s.push(_),r<t.length-1&&s.push.apply(s,a._group(t,h,f,r+1)),r===t.length-1&&h.forEach((function(t){s.push(i(i({},t),{parent:f}))})),d.summary&&a._addSummaryRow(s,f,d.summary,p)})),u||s.push.apply(s,c),s}},t.prototype._addSummaryRow=function(t,e,n,r){var o=i({id:"".concat(e,":summary"),parent:e,$groupSummary:n},r);if("top"===n){var a=t.findIndex((function(t){return t.id===e}));t.splice(a+1,0,o)}else t.push(o)},t.prototype._toAggregate=function(t,e){if("function"==typeof e)return e(t);var n=e[0],i=e[1];return a.methods[i]?a.methods[i](t,n):""},t.prototype._getOrderConfig=function(t,e){var n={by:"string"==typeof t&&t||"string"==typeof t.by&&t.by||"function"==typeof t&&t(e)||"function"==typeof t.by&&t.by(e)};return t.map&&(n.map=t.map),t.summary&&(n.summary=t.summary),n},t}();e.Group=s},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)},a=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.TreeCollection=e.addToOrder=void 0;var s=n(0),l=n(25),c=n(10),u=n(6),d=n(8);function h(t,e,n,i){void 0!==i&&-1!==i&&t[n]&&t[n][i]?t[n].splice(i,0,e):(t[n]||(t[n]=[]),t[n].push(e))}e.addToOrder=h;var f=function(t){function e(e,n){var i,r=t.call(this,e,n)||this;r._children={};var o=r._root=e&&e.rootId||"_ROOT_"+(0,s.uid)();return r._children=((i={})[o]=[],i),r._initChildren=null,r}return r(e,t),e.prototype.add=function(t,e,n){var i,r=this;return void 0===e&&(e=-1),void 0===n&&(n=this._root),i=Array.isArray(t)?t.map((function(i,o){return r._add({newItem:i,batch:t,index:e,parent:n,order:o})})):this._add({newItem:t,batch:[t],index:e,parent:n}),this._reapplyFilters(),i},e.prototype.getRoot=function(){return this._root},e.prototype.getParent=function(t,e){if(void 0===e&&(e=!1),!this._pull[t])return null;var n=this._pull[t].parent;return e?this._pull[n]:n},e.prototype.getItems=function(t){return this._children&&this._children[t]?this._children[t]:[]},e.prototype.getLength=function(t){return void 0===t&&(t=this._root),this._children[t]?this._children[t].length:null},e.prototype.removeAll=function(e){var n;if((0,s.isId)(e)){if(this._children[e])for(var i=0,r=a([],this._children[e],!0);i<r.length;i++){var o=r[i];this.remove(o.id)}}else{t.prototype.removeAll.call(this);var l=this._root;this._initChildren=null,this._children=((n={})[l]=[],n)}},e.prototype.update=function(e,n,i){var r=n.parent;!(0,s.isDefined)(r)||this.exists(r)||r===this._root?t.prototype.update.call(this,e,n,i):(0,u.dhxWarning)("Item parent doesn't exist")},e.prototype.getIndex=function(t){var e=this.getParent(t);return e&&this._children[e]?this._children[e].findIndex((function(e){return(null==e?void 0:e.id)==t})):-1},e.prototype.sort=function(t,e,n){var i,r,s=this;if(void 0===n&&(n=!1),(null==e?void 0:e.smartSorting)&&(this._sorter=t),n||this._sortingStates.length&&!(null==e?void 0:e.smartSorting)&&((null===(i=this._sortingStates[0])||void 0===i?void 0:i.smartSorting)||(null==e?void 0:e.smartSorting))||(this._sortingStates=[o(o({},t),e)]),t){if(!n&&(this._initSortOrder=this._initSortOrder||a([],this._initFilterOrder||this._order,!0),!(null==e?void 0:e.smartSorting)&&(null===(r=this._sortingStates[0])||void 0===r?void 0:r.smartSorting))){var l=this._sortingStates.findIndex((function(e){return e.by==t.by}));-1!==l?this._sortingStates[l].dir=t.dir:this._sortingStates.push(t)}this._applySorters()}else this._initSortOrder&&(this._children={},this._order=[],this._sortingStates=[],this._initSortOrder.forEach((function(t){return s._parseItem(t)})),this._sorter=this._initSortOrder=this._initChildren=null,this._initFilterOrder&&(this._initFilterOrder=null,this.filter(null,{$restore:!0},!0)));n||(this._reapplyFilters(),this.events.fire(d.DataEvents.change,[void 0,"sort",t]))},e.prototype.filter=function(t,e,n){if((null==e?void 0:e.$restore)&&(t=this._normalizeFilters(t||this._filters)),!(t&&(null==e?void 0:e.add)||(this._initChildren&&(this._children=this._initChildren,this._initChildren=null),null==e?void 0:e.$restore)))for(var i in this._filters){var r=this._filters[i],o=r.rule,a=r.config;(null==a?void 0:a.permanent)?this._applyFilter(o,a):delete this._filters[i]}var l;if(t&&!(null==e?void 0:e.$restore))l=(null==e?void 0:e.id)||(0,s.uid)(),e||(e={}),e.type=e.type||d.TreeFilterType.all,this._filters[l]={rule:t,config:e},this._applyFilter(t,e);else for(var i in t)this._applyFilter(t[i],this._filters[i].config);if(!n){var c=this._getPureFilters(this._filters);this.events.fire(d.DataEvents.filter,[(0,s.isEmptyObj)(c)?null:c])}return l},e.prototype.restoreOrder=function(){this.resetFilter({permanent:!0},!0),this.sort()},e.prototype.copy=function(t,e,n,i){var r=this;return void 0===n&&(n=this),void 0===i&&(i=this._root),t instanceof Array?t.map((function(t,o){return r._copy(t,e,n,i,o)})):this._copy(t,e,n,i)},e.prototype.move=function(t,e,n,i){var r,o=this;if(void 0===i&&(i=this._root),n=n||this,t instanceof Array){var a=[];return t.forEach((function(t,r){(0,s.isId)(o._move(t,e,n,i,r))?a.push(t):(0,u.throwMoveWarning)(t,o.exists(t))})),a}return null!==(r=this._move(t,e,n,i))&&void 0!==r?r:(0,u.throwMoveWarning)(t,this.exists(t))},e.prototype.forEach=function(t,e,n){if(void 0===e&&(e=this._root),void 0===n&&(n=1/0),this.haveItems(e)&&!(n<1))for(var i=this._children[e],r=0;r<i.length;r++)t.call(this,i[r],r,i),this.haveItems(i[r].id)&&this.forEach(t,i[r].id,--n)},e.prototype.eachChild=function(t,e,n,i){if(void 0===n&&(n=!0),void 0===i&&(i=function(){return!0}),this.haveItems(t))for(var r=0;r<this._children[t].length;r++)e.call(this,this._children[t][r],r),n&&i(this._children[t][r])&&this.eachChild(this._children[t][r].id,e,n,i)},e.prototype.getNearId=function(t){return t},e.prototype.loadItems=function(t,e){var n=this;if(void 0===e&&(e=d.DataDriver.json),this.events.fire(d.DataEvents.beforeItemLoad,[t])){var i=this.config.autoload.toString(),r=i+(i.includes("?")?"&id=".concat(t):"?id=".concat(t));new c.DataProxy(r).load().then((function(i){i=(e=(0,u.toDataDriver)(e)).toJsonArray(i),n._parse_data(i,t),n.events.fire(d.DataEvents.change),n.events.fire(d.DataEvents.afterItemLoad,[t])})).catch((function(t){n.events.fire(d.DataEvents.loadError,[t])}))}},e.prototype.refreshItems=function(t,e){void 0===e&&(e=d.DataDriver.json),this.removeAll(t),this.loadItems(t,e)},e.prototype.eachParent=function(t,e,n){void 0===n&&(n=!1);var i=this.getItem(t);if(i&&(n&&e.call(this,i),i.parent!==this._root)){var r=this.getItem(i.parent);e.call(this,r),this.eachParent(i.parent,e)}},e.prototype.haveItems=function(t){return t in this._children},e.prototype.canCopy=function(t,e){if(t===e)return!1;var n=!0;return this.eachParent(e,(function(e){return e.id===t?n=!1:null})),n},e.prototype.serialize=function(t,e){void 0===t&&(t=d.DataDriver.json);var n=this._serialize(this._root,e),i=(0,u.toDataDriver)(t);if(i)return i.serialize(n)},e.prototype.getId=function(t,e){if(void 0===e&&(e=this._root),this._children[e]&&this._children[e][t])return this._children[e][t].id},e.prototype.map=function(t,e,n){void 0===e&&(e=this._root),void 0===n&&(n=!0);var i=[];if(!this.haveItems(e))return i;for(var r=0;r<this._children[e].length;r++)if(i.push(t.call(this,this._children[e][r],r,this._children)),n){var o=this.map(t,this._children[e][r].id,n);i=i.concat(o)}return i},e.prototype.getRawData=function(e,n,i,r,o){var a;return o=null!=o?o:this._root,this._children[o]?(a=o===this._root?t.prototype.getRawData.call(this,e,n,this._children[o]):this._children[o],2===r?this.flatten(a):a):[]},e.prototype.flatten=function(t){var e=this,n=[];return t.forEach((function(t){n.push(t);var i=e._children[t.id];i&&t.$opened&&(n=n.concat(e.flatten(i)))})),n},e.prototype._add=function(t){var e=t.newItem,n=t.index,i=void 0===n?-1:n,r=t.parent,o=void 0===r?this._root:r,a=t.order,s=void 0===a?0:a,l=t.batch;if(s>0&&-1!==i&&(i+=1),this.events.fire(d.DataEvents.beforeAdd,[e,l,s])){this._setParent(e,o);var c=this._addCore(e,i);if(this._onChange("add",e.id,e),this.events.fire(d.DataEvents.afterAdd,[e,l,s]),Array.isArray(e.items))for(var u=0,h=e.items;u<h.length;u++){var f=h[u];this.add(f,-1,e.id)}return c}},e.prototype._setParent=function(t,e){t.parent=t.parent?t.parent.toString():e;var n=this._pull[t.parent];n&&!n.items&&(n.items=[])},e.prototype._copy=function(t,e,n,i,r){if(void 0===n&&(n=this),void 0===i&&(i=this._root),!this.exists(t))return null;var o=this._children[t];if(r&&(e=-1===e?-1:e+r),n===this&&!this.canCopy(t,i))return null;var a=(0,u.copyWithoutInner)(this.getItem(t),{items:!0});if(n.exists(t)&&(a.id=(0,s.uid)()),(0,u.isTreeCollection)(n)){if(this.exists(t)&&(a.parent=i,n!==this&&i===this._root&&(a.parent=n.getRoot()),n.add(a,e),t=a.id),o)for(var l=0,c=o;l<c.length;l++){var d=c[l].id,h=this.getIndex(d);this.copy(d,h,n,t)}return t}n.add(a,e)},e.prototype._move=function(t,e,n,i,r){if(void 0===n&&(n=this),void 0===i&&(i=this._root),!this.exists(t))return null;if(r&&e<this.getIndex(t)&&(e=-1===e?-1:e+r),n!==this){if(!(0,u.isTreeCollection)(n))return n.add((0,u.copyWithoutInner)(this.getItem(t)),e),void this.remove(t);var o=this.copy(t,e,n,i);return this.remove(t),o}return this.canCopy(t,i)?(this._moveItem(t,i,e),this.events.fire(d.DataEvents.change,[t,"update",this.getItem(t)]),t):null},e.prototype._moveItem=function(t,e,n){var i=this.getParent(t),r=this._initChildren||this._children;if([this._children,this._initChildren].forEach((function(r){if(r&&r[i]){var o=r[i].findIndex((function(e){return e.id===t}));if(-1!==o){var a=r[i].splice(o,1)[0];a.parent=e,h(r,a,e,n),r[i].length||delete r[i]}}})),i!==this._root&&i!==e){var o=this.getItem(i);r[i]?o.items=a([],r[i],!0):delete o.items}e!==this._root&&(this.getItem(e).items=a([],r[e]||[],!0))},e.prototype._reset=function(e){var n;if((0,s.isId)(null==e?void 0:e.id))for(var i=0,r=a([],this._children[null==e?void 0:e.id],!0);i<r.length;i++){var o=r[i];this.remove(o.id)}else{t.prototype._reset.call(this,e);var l=this._root;this._initChildren=null,this._children=((n={})[l]=[],n)}},e.prototype._removeCore=function(t){var e;if(this._pull[t]){var n=this.getParent(t);if(this._removeFromParentList(this._children,n,t),this._initChildren&&this._removeFromParentList(this._initChildren,n,t),null===(e=this._pull[n])||void 0===e?void 0:e.items){var i=this._pull[n];i.items=i.items.filter((function(e){return e.id!==t}))}var r=new Set;this._removeChildren(this._children,t,r),this._initChildren&&this._removeChildren(this._initChildren,t,r),this._removeFromOrders(r)}},e.prototype._removeFromParentList=function(t,e,n){t[e]&&(t[e]=t[e].filter((function(t){return t.id!==n})),e!==this._root&&0===t[e].length&&delete t[e])},e.prototype._removeChildren=function(t,e,n){this._pull[e]&&(n.add(e),delete this._pull[e]);var i=t[e];if(i){for(var r=0;r<i.length;r++)this._removeChildren(t,i[r].id,n);delete t[e]}},e.prototype._removeFromOrders=function(t){var e,n;if(0!==t.size){var i=function(e){return!t.has(e.id)};this._order&&(this._order=this._order.filter(i)),(null===(e=this._initFilterOrder)||void 0===e?void 0:e.length)&&(this._initFilterOrder=this._initFilterOrder.filter(i)),(null===(n=this._initSortOrder)||void 0===n?void 0:n.length)&&(this._initSortOrder=this._initSortOrder.filter(i))}},e.prototype._addToOrder=function(e,n,i){var r=this._children,o=this._initChildren,a=n.parent;this._pull[n.id]=n,n.parent&&this._pull[n.parent]&&this._pull[n.parent].items&&!this._pull[n.parent].items.find((function(t){return t.id===n.id}))&&this._pull[n.parent].items.push(n),t.prototype._addToOrder.call(this,e,n,i),h(r,n,a,i),o&&h(o,n,a,i)},e.prototype._parse_data=function(t,e){var n,i,r;void 0===e&&(e=this._root);for(var o=0,a=t;o<a.length;o++){var l=a[o];this.config.init&&(l=this.config.init(l)),l&&"object"!=typeof l&&(l={value:l}),l.id=null!==(n=l.id)&&void 0!==n?n:(0,s.uid)(),l.parent=l.parent&&!(null===(r=null===(i=l.parent)||void 0===i?void 0:i.toString())||void 0===r?void 0:r.includes("_ROOT_"))?l.parent:e,this._pull[l.id]&&(0,u.dhxError)("Item ".concat(l.id," already exist")),this._parseItem(l),l.items&&l.items instanceof Object&&this._parse_data(l.items,l.id)}},e.prototype._parseItem=function(t){this._pull[t.id]=t,this._order[this._order.length]=t,this._children[t.parent]||(this._children[t.parent]=[]),this._children[t.parent].push(t)},e.prototype._recursiveFilter=function(t,e,n,i,r){var o=this,a=this._children[n];if(a){var s=function(t){switch(e.type){case d.TreeFilterType.all:return!0;case d.TreeFilterType.level:return i===e.level;case d.TreeFilterType.leafs:return!o.haveItems(t.id)}};if("function"==typeof t){var l=function(e){return s(e)&&t(e)};(c=a.filter(l)).length?r[n]=c:n===this._root&&(r[n]=[])}else{var c;l=function(e){var n,i=!0;for(var r in t)if(t[r].by&&""!==t[r].match&&(i=t[r].compare?t[r].compare(e[t[r].by],t[r].match,e):-1!==(null===(n=e[t[r].by])||void 0===n?void 0:n.toString().toLocaleLowerCase().indexOf(t[r].match.toString().toLowerCase()))),!i)break;return s(e)&&i};(c=a.filter(l)).length?r[n]=c:n===this._root&&(r[n]=[])}for(var u=0,h=a;u<h.length;u++){var f=h[u];this._recursiveFilter(t,e,f.id,i+1,r)}}},e.prototype._serialize=function(t,e){var n=this;return void 0===t&&(t=this._root),this.map((function(t){var i={};for(var r in t)"parent"===r||"items"===r||r.startsWith("$")||(i[r]=t[r]);return e&&(i=e(i)),n.haveItems(t.id)&&(i.items=n._serialize(t.id,e)),i}),t,!1)},e.prototype._applyFilter=function(t,e){var n=this;if(t&&("function"==typeof t||!(0,s.isEmptyObj)(t))){if(!this._checkFilterRule(t))throw new Error("Invalid filter rule");var i;this._initFilterOrder||(this._initFilterOrder=this._order),this._initChildren||(this._initChildren=this._children);var r={};if("function"!=typeof t)if(i={},(0,s.isDefined)(t.by))i[t.by]=t;else for(var o in t)i[o]=t[o];else i=t;this._recursiveFilter(i,e,this._root,0,r),Object.keys(r).forEach((function(t){for(var e=n.getParent(t),i=n.getItem(t);e;)r[e]||(r[e]=[]),i&&!r[e].find((function(t){return t.id===i.id}))&&r[e].push(i),i=n.getItem(e),e=n.getParent(e)})),this._children=r}},e.prototype._normalizeFilters=function(t){var e={};for(var n in t)e[n]=t[n].rule;return e},e.prototype._checkFilterRule=function(e){var n=this;return t.prototype._checkFilterRule.call(this,e)||Object.values(e).every((function(e){return"function"!=typeof e&&t.prototype._checkFilterRule.call(n,e)}))},e.prototype._applySorters=function(){for(var t in this._children)this._sort.sort(this._children[t],this._sortingStates);if(this._initChildren&&Object.keys(this._initChildren).length)for(var t in this._initChildren)this._sort.sort(this._initChildren[t],this._sortingStates)},e}(l.DataCollection);e.TreeCollection=f},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},i.apply(this,arguments)},r=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.dragManager=void 0;var o=n(2),a=n(68),s=n(8),l=n(6),c=n(0);var u=function(t){var e;return null===(e=t.name)||void 0===e?void 0:e.includes("grid")},d=function(t){return u(t)&&t.hasOwnProperty("scrollView")},h=function(){function t(){var t=this;this._transferData={},this._canMove=!0,this._isDrag=!1,this._lastTargetItemState=null,this._lastOverItemId=null,this._onMouseMove=function(e){var n,i;if(t._transferData.start){var r=(0,o.getElementFromPoint)(e),a=(0,o.locate)(r,"data-dhx-drop-area"),s="common"===a,l=e.targetTouches?e.targetTouches[0].pageX:e.pageX,c=e.targetTouches?e.targetTouches[0].pageY:e.pageY;"column"===t._transferData.type&&"group"===a&&(t._transferData.type="group",t._transferData.isWasColumn=!0),"group"===t._transferData.type&&"column"===a&&t._transferData.isWasColumn&&!t._transferData.groupOnly&&(t._transferData.type="column");var u=(0,o.locate)(r),d=null!==(i=null===(n=t._transferData.component.data.getItem(u))||void 0===n?void 0:n.id)&&void 0!==i?i:u;if(a===t._transferData.type||s){var h=t._transferData,f=h.x,p=h.y,_=h.start,v=h.componentId;if(!t._transferData.ghost){if(Math.abs(f-l)<3&&Math.abs(p-c)<3)return;var g=t._onDragStart(_,e);if(!g)return void t._endDrop(e);t._transferData.ghost=g,document.body.appendChild(t._transferData.ghost)}var m=(0,o.locate)(r,"data-dhx-widget-id");"column"!==a&&"group"!==a||m!==v?t._onDrag(e):d!==t._lastOverItemId&&(t._lastOverItemId=d,t._onDrag(e))}else t._canMove&&t.cancelCanDrop(e);t._notAllowedDropArea(a!==t._transferData.type&&!s||!t._transferData.groupable&&"group"===a||t._transferData.groupOnly&&"group"!==a&&!s&&t._transferData.start!=d),t._moveGhost(l,c)}},this._onMouseUp=function(e){t._transferData.x&&(t._transferData.ghost?(t._removeGhost(),t._onDrop(e)):t._endDrop(e),e.targetTouches?(document.removeEventListener("touchmove",t._onMouseMove),document.removeEventListener("touchend",t._onMouseUp)):(document.removeEventListener("mousemove",t._onMouseMove),document.removeEventListener("mouseup",t._onMouseUp)))}}return t.prototype.setItem=function(t,e){a.collectionStore.setItem(t,e)},t.prototype.onMouseDown=function(t){var e,n,i=t.event,s=t.itemsForGhost,l=t.ghost,c=t.source,d=t.type,h=t.groupable,f=t.groupOnly;if(1===i.which||i.targetTouches){i.targetTouches?(document.addEventListener("touchmove",this._onMouseMove,!1),document.addEventListener("touchend",this._onMouseUp,!1)):(document.addEventListener("mousemove",this._onMouseMove),document.addEventListener("mouseup",this._onMouseUp));var p=(0,o.getElementFromPoint)(i),_=(0,o.locateNode)(p,"data-dhx-id"),v=(0,o.locateNode)(p,"data-dhx-widget-id"),g=null==v?void 0:v.getAttribute("data-dhx-widget-id"),m=a.collectionStore.getItem(g),y=_&&_.getAttribute("data-dhx-id"),b=_&&(null!==(n=null===(e=m.data.getItem(y))||void 0===e?void 0:e.id)&&void 0!==n?n:y);if(l&&(this._ghost=l),Array.isArray(c)&&c.includes(b)?(this._transferData.source=r([],c,!0),this._itemsForGhost=s):(this._transferData.source=[b],this._itemsForGhost=null),b&&g){var w=(0,o.getBox)(_),x=u(m)?(0,o.getBox)(v).left:w.left,k=i.targetTouches?i.targetTouches[0].pageX:i.pageX,E=i.targetTouches?i.targetTouches[0].pageY:i.pageY;this._transferData.initXOffset="row"===d?k-x:0,this._transferData.initYOffset="row"===d?E-w.top:0,this._transferData.x=k,this._transferData.y=E,this._transferData.componentId=g,this._transferData.component=m,this._transferData.start=b,this._transferData.item=_,this._transferData.type=d,this._transferData.groupable=h,this._transferData.groupOnly=f}}},t.prototype.isDrag=function(){return this._isDrag},t.prototype.cancelCanDrop=function(t){this._canMove=!1;var e=this._transferData,n=e.start,i=e.source,r=e.target,o=e.dropComponentId,l={start:n,source:i,target:r,dragItem:e.type},c=a.collectionStore.getItem(o);c&&r&&c.events.fire(s.DragEvents.cancelDrop,[l,t,this._transferData.type]),this._transferData.dropComponentId=null,this._transferData.target=null},t.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")},t.prototype._removeGhost=function(){this._ghost=null,document.body.removeChild(this._transferData.ghost)},t.prototype._onDrop=function(t){if(this._canMove){var e=this._transferData,n=e.start,i=e.source,r=e.target,l=e.dropComponentId,c=e.dropPosition,u={start:n,source:i,target:r,dropPosition:c},d=a.collectionStore.getItem(l),h=d&&d.config,f=this._transferData.componentId==(0,o.locate)((0,o.getElementFromPoint)(t),"data-dhx-widget-id");if(!d||"source"===h.dragMode||f&&i.find((function(t){return t==r})))this._endDrop(t);else{if(d.events.fire(s.DragEvents.beforeDrop,[u,t,this._transferData.type])){var p={id:r,component:d},_={id:n,component:this._transferData.component,newId:null};"group"!==this._transferData.type&&this._move(_,p),_.newId&&_.component!==p.component&&(u.start=_.newId),p.component.events.fire(s.DragEvents.afterDrop,[u,t,this._transferData.type])}this._endDrop(t)}}else this._endDrop(t)},t.prototype._onDragStart=function(t,e){var n=this._transferData.component.config,i=this._transferData,r={start:i.start,source:i.source,target:i.target};if("target"===n.dragMode||this._transferData.component._pregroupData)return null;var o="row"===this._transferData.type?function(t,e,n){void 0===n&&(n=!1);var i=t.getBoundingClientRect(),r=document.createElement("div"),o=t.cloneNode(!0),a=window.getComputedStyle(t.parentElement).fontSize;return o.style.width=i.width+"px",o.style.height=i.height+"px",o.style.maxHeight=i.height+"px",o.style.opacity="0.8",o.style.fontSize=a,n&&e&&e.length||r.appendChild(o),e&&e.length&&e.forEach((function(t,e){var o=t.cloneNode(!0);o.style.getPropertyPriority("width")||(o.style.width=i.width+"px"),o.style.height=i.height+"px",o.style.maxHeight=i.height+"px",o.style.top=12*(e+1)-i.height-i.height*e+"px",o.style.left=12*(e+1)+"px",o.style.opacity="0.6",o.style.zIndex="".concat(-e-1),n||(o.style.fontSize=a,o.style.overflow="hidden"),r.appendChild(o)})),r.className="dhx_drag-ghost",r}(this._transferData.item,this._itemsForGhost,u(this._transferData.component)):this._ghost;return this._transferData.component.events.fire(s.DragEvents.beforeDrag,[r,e,o,this._transferData.type])&&(0,c.isId)(t)?(this._transferData.component.events.fire(s.DragEvents.dragStart,[r,e,this._transferData.type]),this._isDrag=!0,this._toggleTextSelection(!0),this._transferData.dragConfig=n,o):null},t.prototype._onDrag=function(t){var e,n,i=(0,o.getElementFromPoint)(t),r=(0,o.locate)(i,"data-dhx-widget-id"),c=a.collectionStore.getItem(r);if(c){var u=!!(0,o.locateNodeByClassName)(i,"dhx_grid-header")||!!(0,o.locateNodeByClassName)(i,"dhx_grid-footer"),d=c.config.columns?c.config:void 0,h=d&&("both"===d.dragItem||"column"===d.dragItem);if(!u||h){var f=(0,o.locate)(i,"data-dhx-id"),p=(0,o.locate)(i,"data-dhx-root-id"),_=this._transferData,v=_.dropComponentId,g=_.start,m=_.source,y=_.target,b=_.componentId,w=function(t){var e=t.targetTouches?t.targetTouches[0].clientY:t.clientY,n=(0,o.locateNode)((0,o.getElementFromPoint)(t));if(!n)return null;var i=n.childNodes[0];if(1===(null==i?void 0:i.nodeType)){var r=i.getBoundingClientRect();return(e-r.top)/r.height}}(t);if("group"!==this._transferData.type){if(!f&&!p)return this.cancelCanDrop(t),this._transferData.dropComponentId=r,this._transferData.target=null,void this._canDrop(t);if(!c.config.group)switch(c.config.dropBehaviour){case"complex":this._transferData.dropPosition=w<=.25?"top":w>=.75?"bottom":"in";break;case"child":this._transferData.dropPosition="in";break;default:this._transferData.dropPosition=w<=.5?"top":"bottom"}if(((null===(e=this._lastTargetItemState)||void 0===e?void 0:e.id)===f&&(null===(n=this._lastTargetItemState)||void 0===n?void 0:n.dropPosition)===this._transferData.dropPosition||!f&&y===p)&&v===r)return}var x={id:g,component:this._transferData.component};if("source"!==c.config.dragMode)if(x.component.events.fire(s.DragEvents.dragOut,[{start:g,source:m,target:y},t,this._transferData.type]),r!==b||!(0,l.isTreeCollection)(x.component.data)||(0,l.isTreeCollection)(x.component.data)&&x.component.data.canCopy(x.id,f)){this.cancelCanDrop(t);var k=this._transferData.target=f||p;this._transferData.dropComponentId=r,this._lastTargetItemState={id:f,dropPosition:this._transferData.dropPosition},x.component.events.fire(s.DragEvents.dragIn,[{start:g,source:m,target:k,dropPosition:this._transferData.dropPosition},t,this._transferData.type])&&this._canDrop(t)}else this.cancelCanDrop(t)}else this._canMove&&this.cancelCanDrop(t)}else this._canMove&&this.cancelCanDrop(t)},t.prototype._move=function(t,e){var n,o=t.component,a=e.component,s=t.component.data,h=e.component.data,f=0,p=e.id,_=(0,l.isTreeCollection)(h),v=_&&e.component.config.dropBehaviour||null,g=o._uid===a._uid,m=t.component.config.columns?t.component.config:void 0,y="column"===this._transferData.type&&(null===(n=null==m?void 0:m.columns)||void 0===n?void 0:n.map((function(t){return t.id})).filter((function(n){return n===t.id||n===e.id})).length);if(y&&t.component===e.component){if(t.id===e.id)return;var b=(w=o.config.columns.map((function(t){return i({},t)}))).findIndex((function(e){return e.id===t.id}));if(-1===(E=w.findIndex((function(t){return t.id===e.id}))))return;return w.splice(E,0,w.splice(b,1)[0]),o.setColumns(w),void o.paint()}if(y&&t.component&&d(t.component)&&e.component&&d(e.component)){b=(w=o.config.columns.map((function(t){return i({},t)}))).findIndex((function(e){return e.id===t.id}));var w,x=a.config.columns.map((function(t){return i({},t)})),k=a.data.getLength(),E=x.findIndex((function(t){return t.id===e.id})),O=[],D=t.id;o.data.forEach((function(e){var n;O.push(((n={id:e.id})[D]=e[t.id],n))})),k?o.data.forEach((function(t,e){var n=a.data.getItem(t.id);n?a.data.update(n.id,i(i({},n),O[e])):a.data.add(O[e])})):a.data.parse(O);var S=w.splice(b,1)[0];return x.find((function(t){return t.id===D}))||x.splice(E,0,S),a.setColumns(x),a.paint(),o.setColumns(w),void o.paint()}var C=e.id===a.config.rootParent,P=this._transferData.dropPosition;switch(v){case"child":break;case"sibling":if(!h.getItem(e.id))return;var I=h.getIndex(t.id),M=h.getIndex(e.id),T=h.getParent(t.id),j=h.getParent(e.id);p=h.getParent(p),"top"===P?f=M-(-1===I||I>M||T!==j?0:1):"bottom"===P&&(f=M+(-1===I||I>M||T!==j?1:0));break;case"complex":if(C)p=e.id,f=h.getLength();else{var A=h.getItem(t.id),L=h.getItem(e.id);if(!L)return;I=h.getIndex(t.id),M=h.getIndex(e.id);var F=(null==A?void 0:A.$level)||0,R=(null==L?void 0:L.$level)||0;"top"===P?(p=h.getParent(p),f=F===R?M-(-1===I||I>M?0:1):M):"bottom"===P&&(p=h.getParent(p),f=F===R?M+(-1===I||I>M?1:0):M+1)}break;default:if((0,c.isId)(e.id)){h.getIndex(t.id)>-1&&(t.newId=(0,c.uid)());I=h.getIndex(t.id),M=h.getIndex(e.id);f="top"===P?M-(-1===I||I>M?0:1):"bottom"===P?M+(-1===I||I>M?1:0):h.getIndex(e.id)}else f=-1}if(this._transferData.dragConfig.dragCopy)this._transferData.source instanceof Array&&this._transferData.source.length>1?this._transferData.source.map((function(t){s.copy(t,f,h,p),f>-1&&f++})):s.copy(t.id,f,h,p);else if(this._transferData.source instanceof Array&&this._transferData.source.length>1)s.move(this._transferData.source,f,h,p);else if(u(a)&&!a.config.columns.length){var H=o.data.getItem(t.id);a.data.parse([i({},H)]),a.setColumns(r([],o.config.columns,!0)),a.paint(),o.data.remove(t.id),o.paint()}else s.move(t.id,f,h,p,t.newId);g||this._transferData.source.forEach((function(t){var e;null===(e=h.getItem(t))||void 0===e||delete e.$draggable,_&&(null==h?void 0:h.haveItems(t))&&h.eachChild(t,(function(t){delete t.$draggable}))}))},t.prototype._endDrop=function(t){if(this._toggleTextSelection(!1),this._notAllowedDropArea(!1),this._transferData.component){var e=this._transferData,n={start:e.start,source:e.source,target:e.target};this._transferData.component.events.fire(s.DragEvents.afterDrag,[n,t,this._transferData.type])}this.cancelCanDrop(t),this._canMove=!0,this._isDrag=!1,this._lastOverItemId=null,this._transferData={},this._transferData.target=null,this._transferData.dropComponentId=null,this._lastTargetItemState=null},t.prototype._canDrop=function(t){this._canMove=!0;var e=this._transferData,n={start:e.start,source:e.source,target:e.target,dropPosition:e.dropPosition},i=a.collectionStore.getItem(this._transferData.dropComponentId);i&&this._transferData.target&&i.events.fire(s.DragEvents.canDrop,[n,t,this._transferData.type])},t.prototype._toggleTextSelection=function(t){t?document.body.classList.add("dhx_no-select"):document.body.classList.remove("dhx_no-select")},t.prototype._notAllowedDropArea=function(t){t?document.body.classList.contains("dhx_drop-area--not-allowed")||document.body.classList.add("dhx_drop-area--not-allowed"):document.body.classList.remove("dhx_drop-area--not-allowed")},t}(),f=window.dhxHelpers=window.dhxHelpers||{};f.dragManager=f.dragManager||new h,e.dragManager=f.dragManager},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.collectionStore=e.CollectionStore=void 0;var i=n(0),r=function(){function t(){this._store={}}return t.prototype.setItem=function(t,e){this._store[t]=e},t.prototype.getItem=function(t){return(0,i.isId)(t)&&this._store[t]?this._store[t]:null},t}();e.CollectionStore=r;var o=window.dhxHelpers=window.dhxHelpers||{};o.collectionStore=o.collectionStore||new r,e.collectionStore=o.collectionStore},function(t,e,n){"use strict";(function(t){var i,r=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.LazyDataProxy=void 0;var o=n(10),a=n(0),s=n(17),l=function(e){function n(t,n){var i=e.call(this,t)||this;return i.config=(0,a.extend)({from:0,limit:50,delay:50,prepare:0},n),i.updateUrl(t,{from:i.config.from,limit:i.config.limit}),i}return r(n,e),n.prototype.load=function(){var e=this;return new t((function(t,n){e._timeout?(clearTimeout(e._timeout),e._timeout=setTimeout((function(){s.ajax.get(e.url,{responseType:"text"}).then(t).catch(n),e._cooling=!0}),e.config.delay),e._cooling&&(t(null),e._cooling=!1)):(s.ajax.get(e.url,{responseType:"text"}).then(t).catch(n),e._cooling=!0,e._timeout=setTimeout((function(){})))}))},n}(o.DataProxy);e.LazyDataProxy=l}).call(this,n(5))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Selection=void 0;var i=n(3),r=n(19),o=n(8),a=n(0),s=function(){function t(t,e,n){var r=this;this.events=n||new i.EventSystem(this),this.config=t,this._data=e,this._selected=null,this._data.events.on(o.DataEvents.removeAll,(function(){r._selected=null})),this._data.events.on(o.DataEvents.change,(function(){if((0,a.isId)(r._selected)){var t=r._data.getNearId(r._selected);t!==r._selected&&(r._selected=null,t&&r.add(t))}}))}return t.prototype.getId=function(){return this._selected},t.prototype.getItem=function(){return(0,a.isId)(this._selected)?this._data.getItem(this._selected):null},t.prototype.remove=function(t){return t=null!=t?t:this._selected,!(0,a.isDefined)(t)||!!this.events.fire(r.SelectionEvents.beforeUnSelect,[t])&&(this._data.update(t,{$selected:!1},!0),this._selected=null,this.events.fire(r.SelectionEvents.afterUnSelect,[t]),!0)},t.prototype.add=function(t){this._selected!==t&&!this.config.disabled&&this._data.exists(t)&&(this.remove(),this._addSingle(t))},t.prototype.enable=function(){this.config.disabled=!1},t.prototype.disable=function(){this.remove(),this.config.disabled=!0},t.prototype._addSingle=function(t){this.events.fire(r.SelectionEvents.beforeSelect,[t])&&(this._selected=t,this._data.update(t,{$selected:!0},!0),this.events.fire(r.SelectionEvents.afterSelect,[t]))},t}();e.Selection=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.message=void 0;var i=n(0),r=n(2),o=n(20),a=new WeakMap,s=new Map;function l(t,e){var n=document.createElement("div");return n.setAttribute("data-position",e),n.className="dhx_message-container dhx_message-container--"+e+(t===document.body?" dhx_message-container--in-body":""),n}e.message=function(t){var e;"string"==typeof t&&(t={text:t}),t.position=t.position||o.MessageContainerPosition.topRight;var n=document.createElement("div");n.className="dhx_widget dhx_message "+(t.css||""),n.setAttribute("role","alert");var c=t.text&&(0,i.uid)();c&&n.setAttribute("aria-describedby",c),t.html?n.innerHTML=t.html:(n.innerHTML='<span class="dhx_message__text" id='.concat(c,"></span>\n\t\t").concat(t.icon?'<span class="dhx_message__icon dxi '.concat(t.icon,'"></span>'):""),n.querySelector("#".concat(c)).textContent=t.text);var u=t.node?(0,r.toNode)(t.node):document.body;"static"===getComputedStyle(u).position&&(u.style.position="relative");var d=s.get(u);d?d[t.position]||(d[t.position]={stack:[],container:l(u,t.position)}):s.set(u,((e={})[t.position]={stack:[],container:l(u,t.position)},e));var h=s.get(u)[t.position],f=h.stack,p=h.container;function _(t){void 0===t&&(t=!0),n&&(!function(t,e){e&&clearTimeout(a.get(t));var n=t.parentNode,i=n.getAttribute("data-position"),r=n.parentNode,o=s.get(r);if(o){var l=o[i];if(l){var c=l.stack,u=c.indexOf(t);-1!==u&&(n.removeChild(t),c.splice(u,1),0===c.length&&r.removeChild(n))}}}(n,t),n=null)}if(0===f.length&&u.appendChild(p),f.push(n),p.appendChild(n),t.expire){var v=setTimeout((function(){return _(!1)}),t.expire);a.set(n,v)}return n.onclick=function(){return _()},{close:function(){return _()}}}},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.alert=void 0;var i=n(30),r=n(31),o=n(0);e.alert=function(e){var n=e.buttons&&e.buttons[0]?e.buttons[0]:i.default.apply,a=(0,r.blockScreen)(e.blockerCss);return new t((function(t){var i="dhx_alert__".concat((0,o.uid)(),"_content"),r="dhx_alert__".concat((0,o.uid)(),"_header"),s=document.createElement("div");s.setAttribute("role","alert"),s.setAttribute("aria-modal","true"),e.text&&s.setAttribute("aria-describedby",i),e.header&&s.setAttribute("aria-labelledby",r),s.className="dhx_widget dhx_alert "+(e.css||"");var l=function(e){"Escape"!==e.key&&"Esc"!==e.key||(c(e),t(!1))};function c(t){t.preventDefault(),a(),document.body.removeChild(s),document.removeEventListener("keydown",l)}s.innerHTML="\n\t\t\t".concat(e.header?"<div id=".concat(r,' class="dhx_alert__header"> ').concat(!1!==e.htmlEnable?e.header:""," </div>"):"","\n\t\t\t").concat(e.text?"<div id=".concat(i,' class="dhx_alert__content">').concat(!1!==e.htmlEnable?e.text:"","</div>"):"",'\n\t\t\t<div class="dhx_alert__footer ').concat(e.buttonsAlignment?"dhx_alert__footer--"+e.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">').concat(n,"</button>\n\t\t\t</div>"),!1===e.htmlEnable&&(e.header&&(s.querySelector("#".concat(r)).textContent=e.header),e.text&&(s.querySelector("#".concat(i)).textContent=e.text)),document.body.appendChild(s),s.querySelector(".dhx_alert__apply-button").focus(),s.querySelector("button").addEventListener("click",(function(e){c(e),t(!0)})),document.addEventListener("keydown",l)}))}}).call(this,n(5))},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.confirm=void 0;var i=n(30),r=n(31),o=n(0);e.confirm=function(e){e.buttonsAlignment=e.buttonsAlignment||"right";var n=e.buttons&&e.buttons[1]?e.buttons[1]:i.default.apply,a=e.buttons&&e.buttons[0]?e.buttons[0]:i.default.reject,s=(0,r.blockScreen)("dhx_alert__overlay-confirm "+(e.blockerCss||""));return new t((function(t){var i=document.createElement("div");i.setAttribute("role","alertdialog"),i.setAttribute("aria-modal","true");var r,l=e.header&&(0,o.uid)(),c=e.header&&(0,o.uid)();c&&i.setAttribute("aria-describedby",c),l&&i.setAttribute("aria-labelledby",l);var u=function(e){s(),i.removeEventListener("click",d),document.removeEventListener("keydown",h),document.body.removeChild(i),t(e)},d=function(t){"BUTTON"===t.target.tagName&&u(t.target.classList.contains("dhx_alert__confirm-aply"))},h=function(t){"Escape"===t.key||"Esc"===t.key?(i.querySelector(".dhx_alert__confirm-aply").focus(),u(t.target.classList.contains("dhx_alert__confirm-reject"))):"Tab"===t.key&&("aply"===r?(r="reject",i.querySelector(".dhx_alert__confirm-reject").focus()):(r="aply",i.querySelector(".dhx_alert__confirm-aply").focus()),t.preventDefault())};i.className="dhx_widget dhx_alert dhx_alert--confirm"+(e.css?" "+e.css:""),i.innerHTML="\n\t\t".concat(e.header?'<div class="dhx_alert__header" id='.concat(l,"> ").concat(!1!==e.htmlEnable?e.header:""," </div>"):"","\n\t\t").concat(e.text?'<div class="dhx_alert__content" id='.concat(c,">").concat(!1!==e.htmlEnable?e.text:"","</div>"):"",'\n\t\t\t<div class="dhx_alert__footer ').concat(e.buttonsAlignment?"dhx_alert__footer--"+e.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">').concat(a,'</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">').concat(n,"</button>\n\t\t\t</div>"),!1===e.htmlEnable&&(e.header&&(i.querySelector("#".concat(l)).textContent=e.header),e.text&&(i.querySelector("#".concat(c)).textContent=e.text)),document.body.appendChild(i),r="aply",i.querySelector(".dhx_alert__confirm-aply").focus(),i.addEventListener("click",d),document.addEventListener("keydown",h)}))}}).call(this,n(5))},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},i.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.disableTooltip=e.enableTooltip=e.tooltip=e.getZIndex=e.findPosition=void 0;var r=n(2),o=n(20),a=750,s=200;function l(t,e,n,i,r,a){var s,c,u;if(void 0===r&&(r=8),void 0===a&&(a=0),a>1&&(e=o.Position.center),"top"!==e&&"bottom"!==e){var d=t.top+(t.height-i)/2,h=d<0&&window.pageYOffset+d+i<scrollY+window.innerHeight;u=window.pageYOffset+(h?0:d)}switch(e){case o.Position.center:return(c=t.left+window.pageXOffset+(t.width-n)/2)+r<window.pageXOffset&&(c=t.left+window.pageXOffset),{left:c,top:u,pos:s=o.RealPosition.center};case o.Position.right:return s=o.RealPosition.right,(c=t.right+window.pageXOffset+r)+n>window.innerWidth+window.pageXOffset?l(t,o.Position.left,n,i,r,++a):{left:c,top:u,pos:s};case o.Position.left:return s=o.RealPosition.left,(c=window.pageXOffset+t.left-n-r)<0?l(t,o.Position.right,n,i,r,++a):{left:c,top:u,pos:s};case o.Position.top:return s=o.RealPosition.top,(c=window.pageXOffset+t.left+(t.width-n)/2)+n>window.innerWidth+window.pageXOffset?c=window.innerWidth+window.pageXOffset-n:c<0&&(c=0),t.top<i?l(t,o.Position.bottom,n,i,r,++a):{left:c,top:u=window.pageYOffset+t.top-i-r,pos:s};case o.Position.bottom:default:return(c=window.pageXOffset+t.left+(t.width-n)/2)+n>window.innerWidth+window.pageXOffset?c=window.innerWidth+window.pageXOffset-n:c<0&&(c=0),s=o.RealPosition.bottom,(u=window.pageYOffset+t.bottom+r)+i>window.innerHeight+window.pageYOffset?l(t,o.Position.top,n,i,r,++a):{left:c,top:u,pos:s}}}e.findPosition=l;var c=document.createElement("div"),u=document.createElement("span");u.className="dhx_tooltip__text",c.appendChild(u),c.setAttribute("role","tooltip"),c.style.position="absolute";var d,h=null,f=!1,p=null,_=null;function v(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?void 0:t.classList.contains("dhx_popup--window"))?9999999:t&&t.offsetParent?v(t.offsetParent):null}function g(t,e,n,i,r,a,s){void 0===i&&(i=""),void 0===r&&(r=!1),void 0===a&&(a=8);var d=t.getBoundingClientRect();s?u.innerHTML=e:u.textContent=e,c.style.left=null,c.style.top=null,document.body.appendChild(c),c.className="dhx_widget dhx_tooltip ".concat(r?" dhx_tooltip--forced":""," ").concat(i);var h=c.getBoundingClientRect(),p=l(d,n,h.width,h.height,a),_=p.left,g=p.top,m=p.pos,y=v(t);switch(y&&(c.style.zIndex=y.toString()),m){case o.RealPosition.bottom:case o.RealPosition.top:case o.RealPosition.left:case o.RealPosition.right:case o.RealPosition.center:c.style.left=_+"px",c.style.top=g+"px"}c.className+=" dhx_tooltip--".concat(m),f=!0,r||setTimeout((function(){c.className+=" dhx_tooltip--animate"}))}function m(t,e,n){var i=n.force,r=n.showDelay,l=n.hideDelay,u=n.position,v=n.css,m=n.htmlEnable,y=n.margin;i||(_=setTimeout((function(){g(t,e,u||o.Position.bottom,v,!1,y,m)}),r||a));var b=function(){var e;f&&(e=l,h&&(p=setTimeout((function(){document.body.removeChild(c),f=!1,p=null}),e||s))),clearTimeout(_),t.removeEventListener("mouseleave",b),t.removeEventListener("blur",b),document.removeEventListener("mousedown",b),h=null,d=null};i&&g(t,e,u,v,i,y,m),t.addEventListener("mouseleave",b),t.addEventListener("blur",b),document.addEventListener("mousedown",b),d=b}function y(t,e){var n=(0,r.toNode)(e.node);n!==h&&(d&&(d(),d=null),h=n,p?(clearTimeout(p),p=null,m(n,t,i(i({},e),{force:!0}))):m(n,t,e))}function b(t){var e=(0,r.locateNode)(t,"dhx_tooltip_text");e&&y(e.getAttribute("dhx_tooltip_text"),{position:e.getAttribute("dhx_tooltip_position")||o.Position.bottom,node:e})}e.getZIndex=v,e.tooltip=y,e.enableTooltip=function(){document.addEventListener("mousemove",b)},e.disableTooltip=function(){document.removeEventListener("mousemove",b)}},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)},a=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Vault=void 0;var s=n(0),l=n(3),c=n(4),u=n(7),d=n(32),h=n(80),f=n(35),p=n(9),_=n(13),v=n(105),g=n(106),m=n(42),y=n(107),b=n(108),w=n(109),x=n(44),k=n(1),E=n(2),O=n(11),D=function(t){function e(e,n){void 0===n&&(n={});var i=t.call(this,null,(0,s.extend)({mode:_.VaultMode.list,modeControls:!0,toolbar:!0,updateFromResponse:!0,scaleFactor:4,customScroll:!0,uploader:{},disablePreview:!1,editable:!0,templates:{}},n))||this;return i.config.toolbar||(i.config.uploader.autosend=!0),n.data?(i.data=n.data,i.events=n.data.events,i.events.context=i):(i.events=new l.EventSystem(i),i.data=new u.DataCollection({},i.events)),i.data.config.init=function(t){var e,n,r,o;return t.status=t.status||_.FileStatus.uploaded,t.file?(t.size=t.file.size,t.name=t.file.name,t.value=null===(e=t.file.name)||void 0===e?void 0:e.split(".").slice(0,-1).join("."),t.extension=null===(n=t.file.name)||void 0===n?void 0:n.split(".").pop(),t.preview=!i.config.disablePreview&&(t.preview||!0)):(t.size=t.size||0,t.name=t.name||"",t.value=(null===(r=t.name)||void 0===r?void 0:r.split(".").slice(0,-1).join("."))||"",t.extension=null===(o=t.name)||void 0===o?void 0:o.split(".").pop(),t.preview=!i.config.disablePreview&&(t.preview||!0)),t.file&&(0,m.isImage)(t)&&i._readStack.add(t,i.uploader.config.autosend||i.config.disablePreview),t},i._readStack=new b.ReadStackPreview(i.data),i.uploader=new v.Uploader(i.config.uploader,i.data,i.events),i._progressBar=new y.ProgressBar(i.events,{template:i.config.templates.progressBar}),i.events.on(_.UploaderEvents.uploadProgress,(function(t,e,n){return i._progressBar.setState(t,{current:e,total:n})})),i._initHtmlEvents(),i._initUI(e),i._initEvents(),i}return r(e,t),e.prototype.destructor=function(){this.toolbar.destructor(),this._readStack.stop(),this.uploader.unlinkDropArea(),this.uploader.abort(),this._htmlEvents=null,this.unmount()},e.prototype.getRootView=function(){return this._layout.getRootView()},e.prototype.paint=function(){var t=this._canDrop||!this.data.getLength();this._activeView=t?this._emptyField:this.config.mode===_.VaultMode.grid||this.toolbar&&this.toolbar.getState().mode===_.VaultMode.grid?this.grid:this.list,this._layout.getCell("vault").attach(this._activeView)},e.prototype._initUI=function(t){var e=this._layout=new d.Layout(t,{css:"dhx_vault ".concat(this.config.customScroll?"dhx_vault__custom-scroll":""),rows:[{id:"toolbar",css:"dhx_vault--toolbar",height:"content"},{id:"vault",css:"dhx_vault--container",hidden:!0}],on:this._getDragEvents()});this._addLayoutHooks(),this._initToolbar(),e.getCell("toolbar").attach(this.toolbar),this._initEmpty(),this._initList(),this._initGrid(t),this.config.toolbar||e.getCell("toolbar").hide(),(t||"list"===this.config.mode)&&e.getCell("vault").show(),this.paint()},e.prototype._initList=function(){var t=this,e="ontouchstart"in document.documentElement;this.list=new x.List(null,{data:this.data,dragMode:"both",multiselection:!!e||"ctrlClick",template:this.config.templates.list||g.listTemplate,eventHandlers:this._htmlEvents,keyNavigation:!0,editable:this.config.editable,itemHeight:49,hotkeys:{delete:function(){var e,n=null===(e=t.list.selection.getItem())||void 0===e?void 0:e.map((function(t){return t.id}));n.length&&t.data.remove(n)}}}),this.list.events.on("afterEditEnd",(function(e,n){var i=t.list.data.getItem(n);t.list.data.update(n,{name:"".concat(e,".").concat(i.extension)})}))},e.prototype._initGrid=function(t){var e=this,n="ontouchstart"in document.documentElement;this.grid=new w.DataView(null,{gap:8,itemsInRow:4,dragMode:"both",multiselection:!!n||"ctrlClick",data:this.data,template:this.config.templates.grid||g.gridTemplate,eventHandlers:this._htmlEvents,keyNavigation:!0,editable:this.config.editable,hotkeys:{delete:function(){var t,n=null===(t=e.list.selection.getItem())||void 0===t?void 0:t.map((function(t){return t.id}));n.length&&e.data.remove(n)}}}),this.grid.selection=this.list.selection,t&&("string"==typeof t&&(t=document.getElementById(t)),this.grid.config.itemsInRow=this._countGridItemsInRow(t))},e.prototype._initToolbar=function(){this.toolbar=new h.Toolbar(null,{css:"vault-toolbar"}),this.toolbar.data.parse([{id:"add",tooltip:p.default.add,type:"navItem",css:"dhx_toolbar-button--circle dhx_toolbar-button--icon",icon:"dxi dxi-plus"},{id:"mode-separator",type:"separator"},{id:"list",tooltip:p.default.list,type:"navItem",css:"dhx_toolbar-button--circle dhx_toolbar-button--icon",icon:"dxi dxi-view-sequential",active:this.config.mode===_.VaultMode.list,group:"mode"},{id:"grid",tooltip:p.default.grid,type:"navItem",css:"dhx_toolbar-button--circle dhx_toolbar-button--icon",icon:"dxi dxi-view-grid",active:this.config.mode===_.VaultMode.grid,group:"mode"},{id:"upload-separator",type:"separator"},{id:"upload",tooltip:p.default.upload,type:"navItem",css:"dhx_toolbar-button--circle dhx_toolbar-button--icon",icon:"dxi dxi-vault"},{id:"spacer",type:"spacer"},{id:"remove-all",tooltip:p.default.clearAll,type:"navItem",css:"dhx_toolbar-button--circle dhx_toolbar-button--icon",icon:"dxi dxi-delete-forever"}]),this.config.modeControls||this.toolbar.hide(["mode-separator","list","grid","upload-separator"]),this._hideAdditionalButtons()},e.prototype._initEmpty=function(){var t=this;return this._emptyField=(0,c.toViewLike)((0,k.create)({render:function(){return(0,k.el)(".dhx-dropable-area.drop-files-here",[(0,k.el)(".dhx-big-icon-block",[(0,k.el)(".dxi.dxi-vault")]),!t._canDrop&&(0,k.el)(".drop-area-bold-text",p.default.dragAndDrop),!t._canDrop&&(0,k.el)(".drop-area-bold-text",p.default.filesOrFoldersHere),!t._canDrop&&(0,k.el)(".drop-area-light-text",p.default.or),!t._canDrop&&(0,k.el)("button.dhx_button.dhx_button--view_flat.dhx_btn--small.dhx_button--color_primary.dhx_button--size_small",{type:"button",onclick:function(){return t.uploader.selectFile()}},p.default.browse)])}}))},e.prototype._changeUI=function(t){this.config.mode=t,this._activeView=t===_.VaultMode.grid?this.grid:this.list,this.data.getLength()&&this.paint()},e.prototype._initEvents=function(){var t=this;this.data.events.on(u.DataEvents.change,(function(e,n){t.data.getLength()?t._showAdditionalButtons():t._hideAdditionalButtons(),t.config.downloadURL&&t.data.forEach((function(e){e.downloadURL||(e.downloadURL=t.config.downloadURL)})),t.paint()})),this.events.on(_.UploaderEvents.uploadBegin,(function(){t.config.toolbar&&t._layout.getCell("toolbar").attach(t._progressBar)})),this.events.on(_.UploaderEvents.uploadComplete,(function(){t.config.toolbar&&t._layout.getCell("toolbar").attach(t.toolbar)})),this.toolbar.events.on(f.NavigationBarEvents.click,(function(e){switch(e){case"add":t.uploader.selectFile();break;case"remove-all":if(t.data.getLength()){var n=t._activeView.selection.getItem();n&&n.length>0?n.forEach((function(e){(0,m.removeItem)(t.data,e.id)})):t.data.removeAll()}break;case"list":case"grid":t._changeUI(e);break;case"upload":t.uploader.send()}})),this.events.on(_.ProgressBarEvents.cancel,(function(){t.uploader.abort(),t.paint()}))},e.prototype._getDragEvents=function(){var t=this,e={left:null,top:null,width:null,height:null};return{dragleave:function(n){t._canDrop&&(n.pageX>e.left+e.width-1||n.pageX<e.left||n.pageY>e.top+e.height-1||n.pageY<e.top)&&(t._canDrop=!1,t.config.toolbar&&t._layout.getCell("toolbar").show(),t._layout.config.css="dhx_vault",t.paint())},dragenter:function(n){if(n.preventDefault(),!t.uploader.isActive&&!t._canDrop){for(var i=0,r=n.dataTransfer.types;i<r.length;i++){var o=r[i];if("Files"!==o&&"application/x-moz-file"!==o&&"text/plain"!==o||"text/plain"===o&&(0,E.isFirefox)())return void(t._canDrop=!1)}t._canDrop=!0;var a=t.getRootView().node.el.getBoundingClientRect();e.left=a.left+window.pageXOffset,e.top=a.top+window.pageYOffset,e.width=a.width,e.height=a.height,t._canDrop=!0,t.config.toolbar&&t._layout.getCell("toolbar").hide(),t._layout.config.css="dhx_vault dhx-dragin ".concat(t._canDrop?" drop-here":""),t.paint()}},dragover:function(t){t.preventDefault()},drop:function(e){if(e.preventDefault(),t._canDrop){var n=e.dataTransfer;t.uploader.parseFiles(n),t._canDrop=!1,t.config.toolbar&&t._layout.getCell("toolbar").show(),t._layout.config.css="dhx_vault",t.paint()}}}},e.prototype._hideAdditionalButtons=function(){var t=this,e=["upload",this.config.modeControls?"upload-separator":""];a(a(a([],["mode-separator","list","grid"],!0),e,!0),["remove-all"],!1).forEach((function(e){t.toolbar.data.getItem(e)&&!t.toolbar.data.getItem(e).hidden&&t.toolbar.hide(e)}))},e.prototype._showAdditionalButtons=function(){var t=this,e=this.config.modeControls?["mode-separator","list","grid"]:[],n=this.uploader.config.autosend?[]:["upload",this.config.modeControls?"upload-separator":""],i=a(a(a([],e,!0),n,!0),["remove-all"],!1);this.toolbar.data.update("remove-all",{tooltip:this._activeView.selection&&this._activeView.selection.getItem()?p.default.clearAllSelected:p.default.clearAll}),i.forEach((function(e){t.toolbar.data.getItem(e)&&t.toolbar.data.getItem(e).hidden&&t.toolbar.show(e)}))},e.prototype._initHtmlEvents=function(){var t=this,e=function(e,n){var i=t.data.getItem(n);(0,O.tooltip)(i.name,{node:e.target,position:O.Position.bottom})};if(this._htmlEvents={onclick:{"dxi-delete-forever":function(e,n){(0,m.removeItem)(t.data,n)}},onmouseover:{"dxi-download":function(t){(0,O.tooltip)(p.default.download,{node:t.target,position:O.Position.bottom})},"dxi-delete-forever":function(t){(0,O.tooltip)(p.default.clear,{node:t.target,position:O.Position.bottom})},"dhx_list-item--name":e,"dhx_dataview-item--file-name":e}},this.config.eventHandlers)for(var n=function(t,e){var n=i._htmlEvents[t];if(!n)return i._htmlEvents[t]=e,"continue";i._htmlEvents[t]=Object.keys(n).reduce((function(t,e){return t.hasOwnProperty(e)||(t[e]=n[e]),t}),o({},e))},i=this,r=0,a=Object.entries(this.config.eventHandlers);r<a.length;r++){var s=a[r];n(s[0],s[1])}},e.prototype._addLayoutHooks=function(){var t=this;this._layout.getRootView().hooks={didMount:function(){if(!t._container){var e=t.getRootView().node.parent.el;t.grid.config.itemsInRow=t._countGridItemsInRow(e);var n=t._layout.getCell("vault");n.isVisible()||n.show()}}}},e.prototype._countGridItemsInRow=function(t){return Math.floor(t.offsetWidth/100)},e}(c.View);e.Vault=D},function(t,e,n){
|
|
13
|
+
/**
|
|
14
|
+
* Copyright (c) 2017, Leon Sorokin
|
|
15
|
+
* All rights reserved. (MIT Licensed)
|
|
16
|
+
*
|
|
17
|
+
* domvm.js (DOM ViewModel)
|
|
18
|
+
* A thin, fast, dependency-free vdom view layer
|
|
19
|
+
* @preserve https://github.com/leeoniya/domvm (v3.2.6, micro build)
|
|
20
|
+
*/
|
|
21
|
+
t.exports=function(){"use strict";var t=1,e=2,n=3,i=4,r=5,o="undefined"!=typeof window,a=(o?window:{}).requestAnimationFrame,s={};function l(){}var c=Array.isArray;function u(t){return null!=t}function d(t){return null!=t&&t.constructor===Object}function h(t,e,n,i){t.splice.apply(t,[n,i].concat(e))}function f(t){var e=typeof t;return"string"===e||"number"===e}function p(t){return"function"==typeof t}function _(t){return"object"==typeof t&&p(t.then)}function v(t){for(var e=arguments,n=1;n<e.length;n++)for(var i in e[n])t[i]=e[n][i];return t}function g(t,e,n){for(var i;i=e.shift();)0===e.length?t[i]=n:t[i]=t=t[i]||{}}function m(t,e){for(var n=[],i=e;i<t.length;i++)n.push(t[i]);return n}function y(t,e){for(var n in t)if(t[n]!==e[n])return!1;return!0}function b(t,e){var n=t.length;if(e.length!==n)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function w(t){if(!a)return t;var e,n,i;function r(){e=0,t.apply(n,i)}return function(){n=this,i=arguments,e||(e=a(r))}}function x(t,e,n){return function(){return t.apply(n,e)}}function k(t){var e,n,i=t.slice(),r=[];r.push(0);for(var o=0,a=t.length;o<a;++o){var s=r[r.length-1];if(t[s]<t[o])i[o]=s,r.push(o);else{for(e=0,n=r.length-1;e<n;){var l=(e+n)/2|0;t[r[l]]<t[o]?e=l+1:n=l}t[o]<t[r[e]]&&(e>0&&(i[o]=r[e-1]),r[e]=o)}}for(n=r[(e=r.length)-1];e-- >0;)r[e]=n,n=i[n];return r}function E(t,e){var n,i=0,r=e.length-1;if(r<=2147483647)for(;i<=r;){if(e[n=i+r>>1]===t)return n;e[n]<t?i=n+1:r=n-1}else for(;i<=r;){if(e[n=Math.floor((i+r)/2)]===t)return n;e[n]<t?i=n+1:r=n-1}return i==e.length?null:i}function O(t){return"o"===t[0]&&"n"===t[1]}function D(t){return"_"===t[0]}function S(t){return"style"===t}function C(t){t&&t.el&&t.el.offsetHeight}function P(t){return null!=t.node&&null!=t.node.el}function I(t,e){switch(e){case"value":case"checked":case"selected":return!0}return!1}function M(t){for(t=t||s;null==t.vm&&t.parent;)t=t.parent;return t.vm}function T(){}var j=T.prototype={constructor:T,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:!1,_lis:!1,idx:null,parent:null};function A(t){var n=new T;return n.type=e,n.body=t,n}var L={},F=/\[(\w+)(?:=(\w+))?\]/g;function R(t){var e,n,i,r,o=L[t];if(null==o)for(L[t]=o={tag:(e=t.match(/^[-\w]+/))?e[0]:"div",id:(n=t.match(/#([-\w]+)/))?n[1]:null,class:(i=t.match(/\.([-\w.]+)/))?i[1].replace(/\./g," "):null,attrs:null};r=F.exec(t);)null==o.attrs&&(o.attrs={}),o.attrs[r[1]]=r[2]||"";return o}var H=1,N=2,V=4,B=8;function z(e,n,i,r){var o=new T;o.type=t,u(r)&&(o.flags=r),o.attrs=n;var a=R(e);if(o.tag=a.tag,a.id||a.class||a.attrs){var s=o.attrs||{};if(a.id&&!u(s.id)&&(s.id=a.id),a.class&&(o._class=a.class,s.class=a.class+(u(s.class)?" "+s.class:"")),a.attrs)for(var l in a.attrs)u(s[l])||(s[l]=a.attrs[l]);o.attrs=s}var c=o.attrs;return u(c)&&(u(c._key)&&(o.key=c._key),u(c._ref)&&(o.ref=c._ref),u(c._hooks)&&(o.hooks=c._hooks),u(c._data)&&(o.data=c._data),u(c._flags)&&(o.flags=c._flags),u(o.key)||(u(o.ref)?o.key=o.ref:u(c.id)?o.key=c.id:u(c.name)&&(o.key=c.name+("radio"===c.type||"checkbox"===c.type?c.value:"")))),null!=i&&(o.body=i),o}function $(t,e,n){g(t,["refs"].concat(e.split(".")),n)}function W(t){for(;t=t.parent;)t.flags|=H}function Y(t,e,n,o){if(t.type!==r&&t.type!==i){t.parent=e,t.idx=n,t.vm=o,null!=t.ref&&$(M(t),t.ref,t);var a=t.hooks,s=o&&o.hooks;(a&&(a.willRemove||a.didRemove)||s&&(s.willUnmount||s.didUnmount))&&W(t),c(t.body)&&X(t)}}function X(t){for(var n=t.body,i=0;i<n.length;i++){var r=n[i];!1===r||null==r?n.splice(i--,1):c(r)?h(n,r,i--,1):(null==r.type&&(n[i]=r=A(""+r)),r.type===e?null==r.body||""===r.body?n.splice(i--,1):i>0&&n[i-1].type===e?(n[i-1].body+=r.body,n.splice(i--,1)):Y(r,t,i,null):Y(r,t,i,null))}}var U={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,order:!0,lineClamp:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function G(t,e){return isNaN(e)||U[t]?e:e+"px"}function q(t,e){var n=(t.attrs||s).style,i=e?(e.attrs||s).style:null;if(null==n||f(n))t.el.style.cssText=n;else{for(var r in n){var o=n[r];(null==i||null!=o&&o!==i[r])&&(t.el.style[r]=G(r,o))}if(i)for(var a in i)null==n[a]&&(t.el.style[a]="")}}var K=[];function J(t,e,n,i,r){if(null!=t){var o=n.hooks[e];if(o){if("d"!==e[0]||"i"!==e[1]||"d"!==e[2])return o(n,i);r?C(n.parent)&&o(n,i):K.push([o,n,i])}}}function Z(t){var e;if(K.length)for(C(t.node);e=K.shift();)e[0](e[1],e[2])}var Q=o?document:null;function tt(t){for(;null==t._node;)t=t.parentNode;return t._node}function et(t,e){return null!=e?Q.createElementNS(e,t):Q.createElement(t)}function nt(t){return Q.createTextNode(t)}function it(t){return Q.createComment(t)}function rt(t){return t.nextSibling}function ot(t){return t.previousSibling}function at(t){var e=t.vm,n=null!=e&&J(e.hooks,"willUnmount",e,e.data),i=J(t.hooks,"willRemove",t);if((t.flags&H)===H&&c(t.body))for(var r=0;r<t.body.length;r++)at(t.body[r]);return n||i}function st(t,e,n){var i=e._node,r=i.vm;if(c(i.body))if((i.flags&H)===H)for(var o=0;o<i.body.length;o++)st(e,i.body[o].el);else ct(i);delete e._node,t.removeChild(e),J(i.hooks,"didRemove",i,null,n),null!=r&&(J(r.hooks,"didUnmount",r,r.data,n),r.node=null)}function lt(t,e){var n=e._node;if(!n._dead){var i=at(n);null!=i&&_(i)?(n._dead=!0,i.then(x(st,[t,e,!0]))):st(t,e)}}function ct(t){for(var e=t.body,n=0;n<e.length;n++){var i=e[n];delete i.el._node,null!=i.vm&&(i.vm.node=null),c(i.body)&&ct(i)}}function ut(t){var e=t.el;if(0==(t.flags&H))c(t.body)&&ct(t),e.textContent=null;else{var n=e.firstChild;do{var i=rt(n);lt(e,n)}while(n=i)}}function dt(t,e,n){var i=e._node,r=null!=e.parentNode,o=e!==n&&r?null:i.vm;null!=o&&J(o.hooks,"willMount",o,o.data),J(i.hooks,r?"willReinsert":"willInsert",i),t.insertBefore(e,n),J(i.hooks,r?"didReinsert":"didInsert",i),null!=o&&J(o.hooks,"didMount",o,o.data)}function ht(t,e,n){dt(t,e,n?rt(n):null)}var ft={};function pt(t){v(ft,t)}function _t(t){var e=this,n=e,i=m(arguments,1).concat(n,n.data);do{var r=e.onemit,o=r?r[t]:null;if(o){o.apply(e,i);break}}while(e=e.parent());ft[t]&&ft[t].apply(e,i)}var vt=l;function gt(t){vt=t.onevent||vt,t.onemit&&pt(t.onemit)}function mt(t,e,n){t[e]=n}function yt(t,e,n,i,r){var o=t.apply(r,e.concat([n,i,r,r.data]));r.onevent(n,i,r,r.data,e),vt.call(null,n,i,r,r.data,e),!1===o&&(n.preventDefault(),n.stopPropagation())}function bt(t){var e,n,i=tt(t.target),r=M(i),o=t.currentTarget._node.attrs["on"+t.type];if(c(o))yt(e=o[0],n=o.slice(1),t,i,r);else for(var a in o)if(t.target.matches(a)){var s=o[a];c(s)?(e=s[0],n=s.slice(1)):(e=s,n=[]),yt(e,n,t,i,r)}}function wt(t,e,n,i){if(n!==i){var r=t.el;null==n||p(n)?mt(r,e,n):null==i&&mt(r,e,bt)}}function xt(t,e,n){"."===e[0]&&(e=e.substr(1),n=!0),n?t.el[e]="":t.el.removeAttribute(e)}function kt(t,e,n,i,r){var o=t.el;null==n?!r&&xt(t,e,!1):null!=t.ns?o.setAttribute(e,n):"class"===e?o.className=n:"id"===e||"boolean"==typeof n||i?o[e]=n:"."===e[0]?o[e.substr(1)]=n:o.setAttribute(e,n)}function Et(t,e,n){var i=t.attrs||s,r=e.attrs||s;if(i===r);else{for(var o in i){var a=i[o],l=I(t.tag,o),c=l?t.el[o]:r[o];a===c||(S(o)?q(t,e):D(o)||(O(o)?wt(t,o,a,c):kt(t,o,a,l,n)))}for(var o in r)!(o in i)&&!D(o)&&xt(t,o,I(t.tag,o)||O(o))}}function Ot(t,e,n,r){return t.type===i&&(e=t.data,n=t.key,r=t.opts,t=t.view),new Yt(t,e,n,r)}function Dt(t){for(var e=0;e<t.body.length;e++){var o=t.body[e],a=o.type;if(a<=n)dt(t.el,St(o));else if(a===i)a=(s=Ot(o.view,o.data,o.key,o.opts)._redraw(t,e,!1)).node.type,dt(t.el,St(s.node));else if(a===r){var s;(s=o.vm)._redraw(t,e),a=s.node.type,dt(t.el,s.node.el)}}}function St(i,r){return null==i.el&&(i.type===t?(i.el=r||et(i.tag,i.ns),null!=i.attrs&&Et(i,s,!0),(i.flags&B)===B&&i.body.body(i),c(i.body)?Dt(i):null!=i.body&&""!==i.body&&(i.el.textContent=i.body)):i.type===e?i.el=r||nt(i.body):i.type===n&&(i.el=r||it(i.body))),i.el._node=i,i.el}function Ct(t,e){return e[t.idx+1]}function Pt(t,e){return e[t.idx-1]}function It(t){return t.parent}window.lisMove=At;var Mt=1,Tt=2;function jt(t,e,n,i,r,o,a,s){return function(l,c,u,d,h,f){var p,_;if(null!=d[i]){if(null==(p=d[i]._node))return void(d[i]=t(d[i]));if(It(p)!==l)return _=t(d[i]),null!=p.vm?p.vm.unmount(!0):lt(c,d[i]),void(d[i]=_)}if(d[r]==h)return Tt;if(null==d[r].el)n(c,St(d[r]),d[i]),d[r]=e(d[r],u);else if(d[r].el===d[i])d[r]=e(d[r],u),d[i]=t(d[i]);else{if(f||p!==d[a])return f&&null!=d[i]?At(t,e,n,i,r,c,u,p,d):Mt;_=d[i],d[i]=t(_),s(c,_,d[o]),d[o]=_}}}function At(t,e,n,i,r,o,a,s,l){if(s._lis)n(o,l[r].el,l[i]),l[r]=e(l[r],a);else{var c=E(s.idx,l.tombs);s._lis=!0;var u=t(l[i]);n(o,l[i],null!=c?a[l.tombs[c]].el:c),null==c?l.tombs.push(s.idx):l.tombs.splice(c,0,s.idx),l[i]=u}}var Lt=jt(rt,Ct,dt,"lftSib","lftNode","rgtSib","rgtNode",ht),Ft=jt(ot,Pt,ht,"rgtSib","rgtNode","lftSib","lftNode",dt);function Rt(t,e){var n=e.body,i=t.el,r=t.body,o={lftNode:r[0],rgtNode:r[r.length-1],lftSib:(n[0]||s).el,rgtSib:(n[n.length-1]||s).el};t:for(;;){for(;;){var a=Lt(t,i,r,o,null,!1);if(a===Mt)break;if(a===Tt)break t}for(;;){var l=Ft(t,i,r,o,o.lftNode,!1);if(l===Mt)break;if(l===Tt)break t}Ht(t,i,r,o);break}}function Ht(t,e,n,i){for(var r=Array.prototype.slice.call(e.childNodes),o=[],a=0;a<r.length;a++){var s=r[a]._node;s.parent===t&&o.push(s.idx)}for(var l=k(o).map((function(t){return o[t]})),c=0;c<l.length;c++)n[l[c]]._lis=!0;for(i.tombs=l;Lt(t,e,n,i,null,!0)!==Tt;);}function Nt(t){return t.el._node.parent!==t.parent}function Vt(t,e,n){return e[n]}function Bt(t,e,n){for(;n<e.length;n++){var o=e[n];if(null!=o.vm){if(t.type===i&&o.vm.view===t.view&&o.vm.key===t.key||t.type===r&&o.vm===t.vm)return o}else if(!Nt(o)&&t.tag===o.tag&&t.type===o.type&&t.key===o.key&&(t.flags&~H)==(o.flags&~H))return o}return null}function zt(t,e,n){return e[e._keys[t.key]]}function $t(t,n){J(n.hooks,"willRecycle",n,t);var i=t.el=n.el,r=n.body,o=t.body;if(i._node=t,t.type!==e||o===r){null==t.attrs&&null==n.attrs||Et(t,n,!1);var a=c(r),s=c(o),l=(t.flags&B)===B;a?s||l?Wt(t,n):o!==r&&(null!=o?i.textContent=o:ut(n)):s?(ut(n),Dt(t)):o!==r&&(i.firstChild?i.firstChild.nodeValue=o:i.textContent=o),J(n.hooks,"didRecycle",n,t)}else i.nodeValue=o}function Wt(e,o){var a=e.body,s=a.length,l=o.body,c=l.length,u=(e.flags&B)===B,d=(e.flags&N)===N,h=(e.flags&V)===V,f=!d&&e.type===t,p=!0,_=h?zt:d||u?Vt:Bt;if(h){for(var v={},g=0;g<l.length;g++)v[l[g].key]=g;l._keys=v}if(f&&0===s)return ut(o),void(u&&(e.body=[]));var m,y,b=0,w=!1,x=0;if(u)var k={key:null},E=Array(s);for(g=0;g<s;g++){if(u){var O=!1,D=null;p&&(h&&(k.key=a.key(g)),m=_(k,l,x)),null!=m?(y=m.idx,!0===(D=a.diff(g,m))?((S=m).parent=e,S.idx=g,S._lis=!1):O=!0):O=!0,O&&(Y(S=a.tpl(g),e,g),S._diff=null!=D?D:a.diff(g),null!=m&&$t(S,m)),E[g]=S}else{var S,C=(S=a[g]).type;if(C<=n)(m=p&&_(S,l,x))&&($t(S,m),y=m.idx);else if(C===i){if(m=p&&_(S,l,x)){y=m.idx;var I=m.vm._update(S.data,e,g)}else I=Ot(S.view,S.data,S.key,S.opts)._redraw(e,g,!1);C=I.node.type}else if(C===r){var M=P(S.vm);C=(I=S.vm._update(S.data,e,g,M)).node.type}}if(!h&&null!=m&&(y===x?++x===c&&s>c&&(m=null,p=!1):w=!0,c>100&&w&&++b%10==0))for(;x<c&&Nt(l[x]);)x++}u&&(e.body=E),f&&Rt(e,o)}function Yt(t,e,n,i){var r=this;r.view=t,r.data=e,r.key=n,i&&(r.opts=i,r.config(i));var o=d(t)?t:t.call(r,r,e,n,i);p(o)?r.render=o:(r.render=o.render,r.config(o)),r._redrawAsync=w((function(t){return r.redraw(!0)})),r._updateAsync=w((function(t){return r.update(t,!0)})),r.init&&r.init.call(r,r,r.data,r.key,i)}var Xt=Yt.prototype={constructor:Yt,_diff:null,init:null,view:null,key:null,data:null,state:null,api:null,opts:null,node:null,hooks:null,onevent:l,refs:null,render:null,mount:Ut,unmount:Gt,config:function(t){var e=this;t.init&&(e.init=t.init),t.diff&&(e.diff=t.diff),t.onevent&&(e.onevent=t.onevent),t.hooks&&(e.hooks=v(e.hooks||{},t.hooks)),t.onemit&&(e.onemit=v(e.onemit||{},t.onemit))},parent:function(){return M(this.node.parent)},root:function(){for(var t=this.node;t.parent;)t=t.parent;return t.vm},redraw:function(t){var e=this;return t?e._redraw(null,null,P(e)):e._redrawAsync(),e},update:function(t,e){var n=this;return e?n._update(t,null,null,P(n)):n._updateAsync(t),n},_update:Jt,_redraw:Kt,_redrawAsync:null,_updateAsync:null};function Ut(t,e){var n=this;return e?(ut({el:t,flags:0}),n._redraw(null,null,!1),t.nodeName.toLowerCase()!==n.node.tag?(St(n.node),dt(t.parentNode,n.node.el,t),t.parentNode.removeChild(t)):dt(t.parentNode,St(n.node,t),t)):(n._redraw(null,null),t&&dt(t,n.node.el)),t&&Z(n),n}function Gt(t){var e=this,n=e.node;lt(n.el.parentNode,n.el),t||Z(e)}function qt(t,e,n,i){return null!=n&&(n.body[i]=e,e.idx=i,e.parent=n,e._lis=!1),t}function Kt(t,e,n){var i,r,o=null==t,a=this,s=a.node&&a.node.el&&a.node.el.parentNode,l=a.node;if(null!=a.diff&&(i=a._diff,a._diff=r=a.diff(a,a.data),null!=l)){var u=c(i)?b:y;if(i===r||u(i,r))return qt(a,l,t,e)}s&&J(a.hooks,"willRedraw",a,a.data);var d=a.render.call(a,a,a.data,i,r);if(d===l)return qt(a,l,t,e);if(a.refs=null,null!=a.key&&d.key!==a.key&&(d.key=a.key),a.node=d,t?(Y(d,t,e,a),t.body[e]=d):l&&l.parent?(Y(d,l.parent,l.idx,a),l.parent.body[l.idx]=d):Y(d,null,null,a),!1!==n)if(l)if(l.tag!==d.tag||l.key!==d.key){l.vm=d.vm=null;var h=l.el.parentNode,f=rt(l.el);lt(h,l.el),dt(h,St(d),f),l.el=d.el,d.vm=a}else $t(d,l);else St(d);return s&&J(a.hooks,"didRedraw",a,a.data),o&&s&&Z(a),a}function Jt(t,e,n,i){var r=this;return null!=t&&r.data!==t&&(J(r.hooks,"willUpdate",r,t),r.data=t),r._redraw(e,n,i)}function Zt(t,e,n,i){var r,o;return null==n?d(e)?r=e:o=e:(r=e,o=n),z(t,r,o,i)}var Qt="http://www.w3.org/2000/svg";function te(t,e,n,i){var r=Zt(t,e,n,i);return r.ns=Qt,r}function ee(t){var e=new T;return e.type=n,e.body=t,e}function ne(t,e,n,i){this.view=t,this.data=e,this.key=n,this.opts=i}function ie(t,e,n,i){return new ne(t,e,n,i)}function re(t){this.vm=t}function oe(t){return new re(t)}function ae(e){var n=new T;return n.type=t,n.el=n.key=e,n}function se(t,e){var n=t.length,i={items:t,length:n,key:function(n){return e.key(t[n],n)},diff:function(n,i){var r=e.diff(t[n],n);if(null==i)return r;var o=i._diff;return(r===o||c(o)?b(r,o):y(r,o))||r},tpl:function(n){return e.tpl(t[n],n)},map:function(t){return e.tpl=t,i},body:function(t){for(var e=Array(n),r=0;r<n;r++){var o=i.tpl(r);o._diff=i.diff(r),e[r]=o,Y(o,t,r)}t.body=e}};return i}ne.prototype={constructor:ne,type:i,view:null,data:null,key:null,opts:null},re.prototype={constructor:re,type:r,vm:null};var le={config:gt,ViewModel:Yt,VNode:T,createView:Ot,defineElement:Zt,defineSvgElement:te,defineText:A,defineComment:ee,defineView:ie,injectView:oe,injectElement:ae,lazyList:se,FIXED_BODY:N,DEEP_REMOVE:H,KEYED_LIST:V,LAZY_LIST:B};function ce(t,e){ue(this,t,e)}function ue(t,e,n){if(null!=e.type){if(null!=t.vm)return;Y(e,t.parent,t.idx,null),t.parent.body[t.idx]=e,$t(e,t),n&&C(e),Z(M(e))}else{var i=Object.create(t);i.attrs=v({},t.attrs);var r=v(t.attrs,e);if(null!=t._class){var o=r.class;r.class=null!=o&&""!==o?t._class+" "+o:t._class}Et(t,i),n&&C(t)}}function de(t,e){var n=t.body;if(c(n))for(var i=0;i<n.length;i++){var r=n[i];null!=r.vm?e.push(r.vm):de(r,e)}return e}function he(t){var e,n,i=arguments,r=i.length;if(r>1){var o=1;d(i[1])&&(n=i[1],o=2),e=r===o+1&&(f(i[o])||c(i[o])||n&&(n._flags&B)===B)?i[o]:m(i,o)}return z(t,n,e)}function fe(){var t=he.apply(null,arguments);return t.ns=Qt,t}return j.patch=ce,Xt.emit=_t,Xt.onemit=null,Xt.body=function(){return de(this.node,[])},le.defineElementSpread=he,le.defineSvgElementSpread=fe,le}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMarginSize=e.getBlockRange=void 0,e.getBlockRange=function(t,e,n){return void 0===n&&(n=!0),n?{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,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.ProLayout=void 0;var o=n(21),a=n(79),s=function(t){function e(e,n){return t.call(this,e,n)||this}return r(e,t),e.prototype._createCell=function(t){var n;return t.rows||t.cols||t.views?(t.parent=this._root,n=new e(this,t)):n=new a.ProCell(this,t),this._root._all[n.id]=n,t.init&&t.init(n,t),n},e}(o.Layout);e.ProLayout=s},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ProCell=void 0;var a=n(0),s=n(1),l=n(14),c=function(t){function e(e,n){var i=t.call(this,e,n)||this;if(i.scrollView=new l.ScrollView((function(){return i._getFirstRootView()})),!e){var r=(0,s.create)({render:function(){return i.toVDOM()}},i);i.mount(e,r)}return i}return r(e,t),e.prototype._getFirstRootView=function(t){return void 0===t&&(t=this),t.getParent()&&t.getParent().getRootView()?t.getParent().getRootView():this._getFirstRootView(t.getParent())},e.prototype.toVDOM=function(t){var e,n,i;if(this._saveTheme(),null===this.config&&(this.config={}),!this.config.hidden){var r,l=this.config.$fieldset,c=this._calculateStyle(),u=(0,a.isDefined)(this.config.padding)?isNaN(Number(this.config.padding))?{padding:this.config.padding}:{padding:"".concat(this.config.padding,"px")}:"",d=this.config.full||this.config.html?c:o(o({},c),u),h=this._checkProgress()?this._getProgressBar():null;if(!this.config.html)if(this._ui){var f=this._ui.getRootView();f.render&&(f=(0,s.inject)(f)),r=f?[this.scrollView.render(f)]:f||null}else r=t?this.scrollView.render([t]):t||null;var p=this.config.resizable&&!this._isLastCell()&&this._getNextCell()&&!this.config.collapsed?(0,s.el)(".dhx_layout-resizer."+(this._isXDirection()?"dhx_layout-resizer--x":"dhx_layout-resizer--y"),o(o({},this._resizerHandlers),{_ref:"resizer_"+this._uid}),[(0,s.el)("span.dhx_layout-resizer__icon",{class:"dxi "+(this._isXDirection()?"dxi-dots-vertical":"dxi-dots-horizontal")})]):null,_={};if(this.config.on)for(var v in this.config.on)_["on"+v]=this.config.on[v];var g="",m=this.config.cols||this.config.rows;if(this.config.type&&m)switch(this.config.type){case"line":g=" dhx_layout-line";break;case"wide":g=" dhx_layout-wide";break;case"space":g=" dhx_layout-space"}var y=(0,s.el)(".dhx_layout-cell-content",{_key:"".concat(this._uid,"_html"),style:u},[(0,s.el)(".dhx_layout-cell-inner_html",{".innerHTML":this.config.html})]),b=l?(0,s.el)("fieldset.dhx_form-fieldset",{class:this.config.$disabled?" dhx_form-fieldset--disabled":"",style:u,disabled:this.config.$disabled},[(0,s.el)("legend.dhx_form-fieldset-legend",{class:"dhx_form-fieldset-legend--".concat(this.config.labelAlignment||"left")},this.config.label),(0,s.el)(".dhx_layout-cell-content",{class:this._getCss(!1)},[].concat(r))]):this.config.full?[(0,s.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&&(0,s.el)("span.dhx_layout-cell-header__icon",{class:this.config.headerIcon}),this.config.headerImage&&(0,s.el)(".dhx_layout-cell-header__image-wrapper",[(0,s.el)("img",{src:this.config.headerImage,class:"dhx_layout-cell-header__image"})]),this.config.header&&(0,s.el)("h3.dhx_layout-cell-header__title",this.config.header),this.config.collapsable?(0,s.el)("div.dhx_layout-cell-header__collapse-icon",{class:this._getCollapseIcon()}):(0,s.el)("div.dhx_layout-cell-header__collapse-icon",{class:"dxi dxi-empty"})]),this.config.collapsed?null:(0,s.el)("div",{style:o(o({},u),{height:"calc(100% - ".concat(this.config.headerHeight||37,"px)")}),class:this._getCss(!0)+" dhx_layout-cell-content"+(this.config.type?g:"")},this.config.html?[(0,s.el)("div",{".innerHTML":this.config.html,class:"dhx_layout-cell dhx_layout-cell-inner_html"})]:r)]:!this.config.html||this.config.rows&&this.config.cols&&this.config.views?r:[this.config.collapsed?null:this.scrollView&&this.scrollView.config.enable&&this.getParent()?this.scrollView.render([y],this._uid):y],w=(0,s.el)("div",o(o(((e={_key:this.config.id||this._uid,_ref:this._uid})["aria-label"]=this.config.id?"tab-content-"+this.config.id:null,e["data-cell-id"]=null!==(n=this.config.id)&&void 0!==n?n:null,e["data-dhx-theme"]=null!==(i=this._theme)&&void 0!==i?i:null,e),_),{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?g:""),style:l?c:d}),b||h?[].concat(b,h):null);return p?[].concat(w,p):w}},e}(n(33).Cell);e.ProCell=c},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(34),e),r(n(104),e)},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Navbar=void 0;var a=n(0),s=n(1),l=n(3),c=n(11),u=n(2),d=n(23),h=n(4),f=n(7),p=n(15);function _(t){return"context-menu"===t.$name}var v=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i._documentHaveListener=!1,i.config=(0,a.extend)({rootId:"string"==typeof e&&e||i._uid},n),i._rootItem={},Array.isArray(i.config.data)?(i.events=new l.EventSystem(i),i.data=new f.TreeCollection({rootId:i.config.rootId},i.events)):i.config.data&&i.config.data.events?(i.data=i.config.data,i.events=i.data.events,i.events.context=i):(i.events=new l.EventSystem(i),i.data=new f.TreeCollection({rootId:i.config.rootId},i.events)),i._documentClick=function(t){if(i._documentHaveListener){var e=(0,u.locateNode)(t),n=i.data.getRoot(),r=e&&e.getAttribute("data-dhx-id"),o=i.data.getParent(r),s="ontouchstart"in window||navigator.msMaxTouchPoints;if(document.removeEventListener("click",i._documentClick),i._documentHaveListener=!1,(0,a.isId)(r)&&i._currentRoot===r)return;((!s||e)&&_(i.config)||n!==o&&o&&i.data.getItem(r))&&o&&i.data.getItem(r)&&(!_(i.config)||n===(0,u.locate)(t,"data-dhx-widget-id"))||i._close(t)}},i._currentRoot=i.data.getRoot(),i._factory=i._getFactory(),i._initHandlers(),i._keyManager=new d.KeyManager((function(t,e){return e===i._uid})),i._initEvents(),Array.isArray(i.config.data)&&i.data.parse(i.config.data),i}return r(e,t),e.prototype.paint=function(){t.prototype.paint.call(this),_(this.config)&&!this._vpopups&&this._init(),this._vpopups&&this._vpopups.redraw()},e.prototype.disable=function(t){var e=this;void 0!==t?this._setProp(t,"disabled",!0):this.data.forEach((function(t){var n=t.id;return e._setProp(n,"disabled",!0)}))},e.prototype.enable=function(t){var e=this;void 0!==t?this._setProp(t,"disabled",!1):this.data.forEach((function(t){var n=t.id;return e._setProp(n,"disabled",!1)}))},e.prototype.isDisabled=function(t){var e=this.data.getItem(t);if(e)return e.disabled||!1},e.prototype.show=function(t){var e=this;void 0!==t?this._setProp(t,"hidden",!1):this.data.forEach((function(t){var n=t.id;return e._setProp(n,"hidden",!1)}))},e.prototype.hide=function(t){var e=this;void 0!==t?this._setProp(t,"hidden",!0):this.data.forEach((function(t){var n=t.id;return e._setProp(n,"hidden",!0)}))},e.prototype.destructor=function(){this.events.clear(),this._keyManager&&this._keyManager.destructor(),this._vpopups&&this._vpopups.node&&this._vpopups.unmount(),this.unmount()},e.prototype.select=function(t,e){var n=this;if(void 0===e&&(e=!0),!(0,a.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){n.data.update(t.id,{active:!0})}))},e.prototype.unselect=function(t){var e=this;(0,a.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})}))},e.prototype.isSelected=function(t){if((0,a.isId)(t)&&this.data.getItem(t))return!!this.data.getItem(t).active},e.prototype.getSelected=function(){var t=[];return this.data.forEach((function(e){e.active&&t.push(e.id)})),t},e.prototype._customHandlers=function(){return{}},e.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})})),_(this.config)||"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())},e.prototype._init=function(){var t,e=this;if(!_(this.config)||this._activePosition){var n=this.getRootNode()||document.documentElement,i=null===(t=null==n?void 0:n.closest("[data-dhx-theme]"))||void 0===t?void 0:t.getAttribute("data-dhx-theme");this._vpopups=(0,s.create)({render:function(){var t;return(0,s.el)("div",{"data-dhx-widget-id":e._uid,"data-dhx-theme":i||"light",class:"dhx_".concat(null===(t=e.config)||void 0===t?void 0:t.$name,"--popup-menu ").concat(_(e.config)?" dhx_context-menu":""," ").concat(e.config.css?e.config.css.split(" ").map((function(t){return _(e.config)?t:t+"--popup-menu"})).join(" "):""),onmousemove:e._handlers.onmousemove,onmouseleave:e._handlers.onmouseleave,onclick:e._handlers.onclick,onmousedown:e._handlers.onmousedown,onkeydown:e._handlers.onkeydown},e._drawPopups())}}),this._vpopups.mount(document.body)}},e.prototype._initHandlers=function(){var t=this;this._isActive=_(this.config)||"click"!==this.config.navigationType,this._handlers=o({onkeydown:function(e){var n=(0,u.locate)(e)||void 0;(0,u.locateNode)(e,"data-dhx-widget-id").contains(document.activeElement)&&t.events.fire(p.NavigationBarEvents.keydown,[e,n])},onmousemove:function(e){if(t._isActive){var n=(0,u.locateNode)(e);if(n){var i=n.getAttribute("data-dhx-id");if(t._activeMenu!==i){if(t.data.haveItems(i)){t._vpopups||t._init(),t._setRoot(i);var r=(0,u.getRealPosition)(n);t.data.update(i,{$position:r},!1)}t._activeItemChange(i,e)}}}},onmouseleave:function(e){if("click"!==t.config.navigationType)if(t._popupActive){var n=(0,u.locateNode)(e,"data-dhx-id","relatedTarget");if(n){var i=n.getAttribute("data-dhx-id");if(t.data.getItem(i)||(t._close(e),t._activeItemChange(null,e)),t.data.haveItems(i)){t._vpopups||t._init(),t._setRoot(i);var r=(0,u.getRealPosition)(n);t.data.update(i,{$position:r},!1),t._activeItemChange(i,e)}}else t._close(e),t._activeItemChange(null,e)}else t._activeItemChange(null,e)},onclick:function(e){var n=(0,u.locateNode)(e);if(n){var i=n.getAttribute("data-dhx-id");if(!t.isDisabled(i)){var r=t.data.getItem(i);if(!(null==r?void 0:r.multiClick)){if(t._currentRoot===i)return t.events.fire(p.NavigationBarEvents.click,[i,e]),void("click"===t.config.navigationType&&t._close(e));if(t.data.haveItems(i)){t._vpopups||t._init(),t._isActive||(t._isActive=!0),t._setRoot(i);var o=(0,u.getRealPosition)(n);t.data.update(i,{$position:o},!1),t._activeItemChange(i,e),t.events.fire(p.NavigationBarEvents.click,[i,e])}else switch(null==r?void 0:r.type){case"input":case"title":break;case"menuItem":case"selectButton":t._onMenuItemClick(i,e);break;case"imageButton":case"button":case"customButton":case"customHTML":case"navItem":r.twoState&&t.data.update(r.id,{active:!r.active}),t.events.fire(p.NavigationBarEvents.click,[i,e]),t._close(e);break;default:t._close(e)}}}}},onmousedown:function(e){var n=(0,u.locateNode)(e);if(n){var i=n.getAttribute("data-dhx-id"),r=t.data.getItem(i);if(null==r?void 0:r.multiClick){var o,a=365,s=function(){t.events.fire(p.NavigationBarEvents.click,[i,e]),a>50&&(a-=55),o=setTimeout(s,a)},l=function(){clearTimeout(o),document.removeEventListener("mouseup",l)};s(),document.addEventListener("mouseup",l)}}}},this._customHandlers())},e.prototype._initEvents=function(){var t=this,e=null;[p.DataEvents.change,p.DataEvents.filter].forEach((function(n){t.events.on(n,(function(){return t.paint(),e&&clearTimeout(e),void(e=setTimeout((function(){var n={};t.data.eachChild(t.data.getRoot(),(function(t){t.group&&(t.twoState=!0,function(t,e){t[e.group]?(e.active&&(t[e.group].active=e.id),t[e.group].elements.push(e.id)):t[e.group]={active:e.active?e.id:null,elements:[e.id]}}(n,t))}),!0),t._groups=n,t._resetHotkeys(),e=null,t.paint()}),100))}))})),this.events.on(p.NavigationBarEvents.click,(function(e){var n=t.data.getItem(e),i=t.data.getItem(null==n?void 0:n.parent);if(i&&"selectButton"===i.type&&t.data.update(n.parent,{value:n.value,icon:n.icon}),null==n?void 0:n.group){var r=t._groups[n.group];r.active&&t.data.update(r.active,{active:!1}),r.active=n.id,t.data.update(n.id,{active:!0})}})),this.events.on(p.NavigationBarEvents.inputChange,(function(e,n){t.data.update(e,{value:n})})),this._customInitEvents()},e.prototype._getMode=function(t,e,n){return void 0===n&&(n=!1),t.parent===e?"bottom":"right"},e.prototype._drawMenuItems=function(t,e){var n=this;return void 0===e&&(e=!0),this.data.map((function(t){return n._factory(t,e)}),t,!1)},e.prototype._setRoot=function(t){},e.prototype._getParents=function(t,e){var n=[],i=!1,r=this.data.getItem(t),o=r&&r.disabled;return this.data.eachParent(t,(function(t){t.id===e?(n.push(t.id),i=!0):i||n.push(t.id)}),!o),_(this.config)&&this._activePosition&&n.push(e),n},e.prototype._listenOuterClick=function(){this._documentHaveListener||(document.addEventListener("click",this._documentClick,!0),this._documentHaveListener=!0)},e.prototype._customInitEvents=function(){},e.prototype._drawPopups=function(){var t=this,e=this._activeMenu;if(!_(this.config)&&!e)return null;var n=this.getRootNode(),i=n&&n.offsetParent&&n.offsetParent.offsetParent,r=(0,c.getZIndex)(i),a=this._currentRoot,l=this._getParents(e,a);return this._activeParents=l,l.forEach((function(e){return t.data.exists(e)&&t.data.update(e,{$activeParent:!0},!1)})),l.map((function(e){if(!t.data.haveItems(e))return null;var n=t.data.getItem(e)||t._rootItem;return t._popupActive=!0,(0,s.el)("ul",o({class:"dhx_widget dhx_menu"+(t.config.menuCss?" "+t.config.menuCss:""),_key:e,_hooks:{didInsert:function(i){var s=i.el.getBoundingClientRect(),l=s.width,c=s.height,d=_(t.config)&&t._activePosition&&e===a?t._activePosition:n.$position,h=t._getMode(n,a,d===t._activePosition),f=(0,u.calculatePosition)(d,{mode:h,auto:!0,width:l,height:c});n.$style=o(o({},f),{zIndex:t._activePosition&&t._activePosition.zIndex||r}),i.patch({style:n.$style})},didRecycle:function(i,s){if(_(t.config)&&t._activePosition&&e===a){var l=s.el.getBoundingClientRect(),c=l.width,d=l.height,h=(0,u.calculatePosition)(t._activePosition,{mode:t._getMode(n,a,!0),width:c,height:d});n.$style=o(o({},h),{zIndex:t._activePosition.zIndex||r}),s.patch({style:n.$style})}}},tabindex:0,style:n.$style||{position:"absolute"}},function(t){return{role:"menu","aria-labeledby":t.id,"aria-live":"polite"}}(n)),t._drawMenuItems(e))})).reverse()},e.prototype._onMenuItemClick=function(t,e){var n=this.data.getItem(t);n.disabled||(n.twoState&&this.data.update(n.id,{active:!n.active}),this.events.fire(p.NavigationBarEvents.click,[t,e]),this._close(e))},e.prototype._activeItemChange=function(t,e){var n=this;if(this._activeParents){var 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)}))}(0,a.isId)(t)&&!this._documentHaveListener&&this._listenOuterClick(),(0,a.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},e.prototype._resetHotkeys=function(){var t=this;this._keyManager.removeHotKey(null,this),this.data.map((function(e){e.hotkey&&t._keyManager.addHotKey(e.hotkey,(function(){return t._onMenuItemClick(e.id,null)}))}))},e.prototype._setProp=function(t,e,n){var i,r=this;Array.isArray(t)?t.forEach((function(t){var i;return r.data.update(t,((i={})[e]=n,i))})):this.data.update(t,((i={})[e]=n,i))},e}(h.View);e.Navbar=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.focusManager=void 0;var i=n(2),r=function(){function t(){var t=this;this._initHandler=function(e){return t._activeWidgetId=(0,i.locate)(e,"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)}return t.prototype.getFocusId=function(){return this._activeWidgetId},t.prototype.setFocusId=function(t){this._activeWidgetId=t},t}();e.focusManager=new r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFactory=void 0;var i=n(84),r=n(85),o=n(86),a=n(87),s=n(88),l=n(89),c=n(90),u=n(91),d=n(92),h=n(93),f=n(12);e.createFactory=function(t){for(var e=t.defaultType,n=t.allowedTypes,p=t.widgetName,_=t.widget,v=new Set,g=0,m=n;g<m.length;g++){var y=m[g];v.add(y)}var b=_.config,w=_.events,x=_.data;return function(t,n){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||e,v&&!v.has(t.type)&&(t.type=e),"imageButton"===t.type&&"ribbon"!==p&&(t.active=!1),n&&"spacer"!==t.type&&"separator"!==t.type&&"customHTML"!==t.type&&(t.type="menuItem"),x.haveItems(t.id)&&function(t,e,n){switch(t){case"sidebar":case"context-menu":e.$openIcon="right";break;case"toolbar":e.parent===n.getRoot()?e.$openIcon="right":e.$openIcon="bottom";break;case"menu":e.parent!==this.data.getRoot()&&(e.$openIcon="right");break;case"ribbon":var i=n.getItem(e.parent);i&&"block"!==e.type&&("block"===i.type?e.$openIcon="bottom":e.$openIcon="right")}}(p,t,x),"toolbar"===p&&t.items&&t.items.forEach((function(t){t.type||(t.type="menuItem")}));var _="customHTML"!==t.type&&function(t,e,n,f){switch(t.type){case"navItem":case"selectButton":return(0,r.navItem)(t,n,f.collapsed);case"button":return(0,i.button)(t,n);case"title":return(0,d.title)(t,n);case"separator":return(0,c.separator)(t,n);case"spacer":return(0,u.spacer)(t,n);case"input":return(0,s.input)(t,e,n);case"imageButton":return(0,a.imageButton)(t,n);case"menuItem":return(0,l.menuItem)(t,n,f.asMenuItem);case"customHTMLButton":return(0,o.customHTMLButton)(t,n,f.asMenuItem);case"datePicker":return(0,h.datePicker)(t,e,n);default:throw new Error("unknown item type "+t.type)}}(t,w,p,{asMenuItem:n,collapsed:"sidebar"!==p||b.collapsed});return(0,f.navbarComponentMixin)(p,t,n,_)}}},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},i.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.button=void 0;var r=n(1),o=n(12);e.button=function(t,e){var n=t.icon&&!t.value,a=n?" dhx_navbar-count--absolute":" dhx_navbar-count--button-inline";return(0,r.el)("button.dhx_button",i({class:(0,o.getNavbarButtonCSS)(t,e),"data-dhx-id":t.id,disabled:t.disabled,type:"button"},function(t){var e=t.active||t.$activeParent,n={"aria-disabled":t.disabled?"true":"false","aria-label":t.value||t.tooltip||t.id||""+" ".concat(t.count||"")};return t.items&&(n.id=t.id,n["aria-haspopup"]="menu",e&&(n["aria-expanded"]="true")),n}(t)),[t.icon?(0,o.getIcon)(t.icon,"button"):null,t.html?(0,r.el)("div.dhx_button__text",{".innerHTML":t.html}):t.value&&(0,r.el)("span.dhx_button__text",t.value),t.count>0&&(0,o.getCount)(t,a,n),t.value&&t.$openIcon?(0,r.el)("span.dhx_button__icon.dhx_button__icon--menu.dxi.dxi-menu-right",{"aria-hidden":"true"}):null,t.loading&&(0,r.el)("span.dhx_button__loading",{"aria-hidden":"true"},[(0,r.el)("span.dhx_button__loading-icon.dxi.dxi-loading")])])}},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},i.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.navItem=void 0;var r=n(1),o=n(12);e.navItem=function(t,e,n){var a=" dhx_"+e+"-button";return(0,r.el)("button",i({class:"dhx_button"+a+(t.active||t.$activeParent?a+"--active":"")+(t.disabled?a+"--disabled":"")+(t.$openIcon?a+"--select":"")+(t.circle?a+"--circle":"")+(t.size?" "+a+"--"+t.size:"")+(!t.value&&t.icon?a+"--icon":"")+(t.css?" "+t.css:""),"data-dhx-id":t.id,disabled:t.disabled,type:"button"},function(t){var e={"aria-disabled":t.disabled?"true":"false","aria-label":t.value||" "},n=t.active||t.$activeParent;return"selectButton"===t.type||t.items?(e.id=t.id,e["aria-haspopup"]="menu",n&&(e["aria-expanded"]="true")):((t.twoState||n)&&(e["aria-pressed"]=n?"true":"false"),!t.value&&t.icon&&t.tooltip&&(e["aria-label"]="".concat(t.tooltip," ").concat(t.count||""))),e}(t)),[t.icon&&(0,r.el)("span",{class:t.icon+a+"__icon","aria-hidden":"true"}),t.html&&(0,r.el)("div",{class:a.trim()+"__html",".innerHTML":t.html}),!t.html&&t.value&&(0,r.el)("span",{class:a.trim()+"__text"},t.value),t.count>0&&(0,o.getCount)(t,a+"__count",n),t.$openIcon&&(0,r.el)("span.dxi.dxi-menu-right",{class:a+"__caret","aria-hidden":"true"})])}},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},i.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.customHTMLButton=void 0;var r=n(1);e.customHTMLButton=function(t,e,n){var o=n?" dhx_button dhx_menu-button":" dhx_button dhx_nav-menu-button";return(0,r.el)("button",i({class:"dhx_custom-button"+o+(t.$activeParent?o+"--active":""),"data-dhx-id":t.id,type:"button",".innerHTML":t.html},function(t){var e={"aria-disabled":t.disabled?"true":"false"};return(t.twoState||t.active||t.$activeParent)&&(e["aria-pressed"]=t.active||t.$activeParent?"true":"false"),e}(t)),t.html?"":t.value)}},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},i.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.imageButton=void 0;var r=n(1),o=n(12);e.imageButton=function(t,e){var n="dhx_"+e+"-button-image",a="ribbon"===e;return(0,r.el)("button.dhx_button",i({class:n+(t.size?" "+n+"--"+t.size:"")+(!t.value&&t.src?" "+n+"--icon":"")+(a&&t.$openIcon?" "+n+"--select":"")+(t.active?" "+n+"--active":""),"data-dhx-id":t.id,type:"button"},function(t){var e={"aria-disabled":t.disabled?"true":"false"};return(t.twoState||t.active)&&(e["aria-pressed"]=t.active?"true":"false"),!t.value&&t.src&&t.tooltip&&(e["aria-label"]="".concat(t.tooltip," ").concat(t.count||"")),e}(t)),[a&&t.value&&t.$openIcon&&(0,r.el)("span.dxi.dxi-menu-right",{class:n+"__caret","aria-hidden":"true"}),t.html?(0,r.el)("div",{class:n+"__text",".innerHTML":t.html}):t.value&&(0,r.el)("span",{class:n+"__text"},t.value),t.src&&(0,r.el)("span",{class:n+"__image",style:{backgroundImage:"url(".concat(t.src,")")},role:"presentation"}),t.count>0&&(0,o.getCount)(t,n+"__count",!0)])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.input=void 0;var i=n(1),r=n(15);function o(t,e){t.fire(r.NavigationBarEvents.inputBlur,[e])}function a(t,e){t.fire(r.NavigationBarEvents.inputFocus,[e])}function s(t,e,n){t.fire(r.NavigationBarEvents.inputChange,[e,n.target.value])}e.input=function(t,e,n){return(0,i.el)(".dhx_form-group.dhx_form-group--no-message-holder"+(t.hiddenLabel?".dhx_form-group--label_sr":".dhx_form-group--inline")+".dhx_".concat(n,"__input"),{style:{width:t.width?t.width:"200px"},role:"presentation"},[t.label&&(0,i.el)("label.dhx_label",{for:t.id,style:{maxWidth:t.hiddenLabel?null:"100%"}},t.label),(0,i.el)(".dhx_input__wrapper",{role:"presentation"},[(0,i.el)("input.dhx_input",{id:t.id,placeholder:t.placeholder,class:t.icon?"dhx_input--icon-padding":"",autocomplete:t.autocomplete?"on":"off",value:t.value,disabled:t.disabled,onblur:[o,e,t.id],onfocus:[a,e,t.id],onchange:[s,e,t.id],"data-dhx-id":t.id,_hooks:{didInsert:function(n){e&&e.fire(r.NavigationBarEvents.inputCreated,[t.id,n.el])}},_key:t.id,"aria-label":t.label||t.helpMessage||"type ".concat(t.placeholder?"text like "+t.placeholder:"text")}),t.icon?(0,i.el)(".dhx_input__icon",{class:t.icon,"aria-hidden":"true"}):null])])}},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},i.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.menuItem=void 0;var r=n(1),o=n(12),a=n(0);e.menuItem=function(t,e,n){var s=n?" dhx_menu-button":" dhx_nav-menu-button",l=(0,a.isDefined)(t.count);return(0,r.el)("button",i({class:"dhx_button"+s+(t.disabled?s+"--disabled":"")+(t.active||t.$activeParent?s+"--active":""),disabled:t.disabled,"data-dhx-id":t.id,type:"button"},function(t){var e={role:"menuitem","aria-disabled":t.disabled?"true":"false"};return t.items&&(e["aria-haspopup"]="true"),e}(t)),n?[t.icon||t.value||t.html?(0,r.el)("span.dhx_menu-button__block.dhx_menu-button__block--left",[t.icon&&(0,r.el)("span.dhx_menu-button__icon",{class:t.icon}),t.html?(0,r.el)("div.dhx_menu-button__text",{".innerHTML":t.html}):t.value&&(0,r.el)("span.dhx_menu-button__text",t.value)]):null,l||t.hotkey||t.items?(0,r.el)("span.dhx_menu-button__block.dhx_menu-button__block--right",[l&&(0,o.getCount)(t," dhx_menu-button__count",!1),t.hotkey&&(0,r.el)("span.dhx_menu-button__hotkey",t.hotkey),t.items&&(0,r.el)("span.dhx_menu-button__caret.dxi.dxi-menu-right")]):null]:[t.icon&&(0,r.el)("span.dhx_menu-button__icon",{class:t.icon}),t.html?(0,r.el)("div.dhx_menu-button__text",{".innerHTML":t.html}):t.value&&(0,r.el)("span.dhx_nav-menu-button__text",t.value),l&&(0,o.getCount)(t," dhx_menu-button__count",!1)])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.separator=void 0,e.separator=function(t,e){return null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.spacer=void 0,e.spacer=function(t,e){return null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.title=void 0;var i=n(1);e.title=function(t,e){return(0,i.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,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},i.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.datePicker=void 0;var r=n(1),o=n(94),a=n(36),s=n(15),l=n(40),c=n(2);function u(t,e,n){var i=n.target;i&&(i.value=e.$calendar.getValue()),t.fire(s.NavigationBarEvents.inputBlur,[null==e?void 0:e.id])}function d(t,e,n){(0,r.awaitRedraw)().then((function(){return e.$popup.show(n.target,{theme:n.target})})),t.fire(s.NavigationBarEvents.inputFocus,[null==e?void 0:e.id])}function h(t,e,n){var i=n.target.value,r=t.$calendar.config.dateFormat;return i.length?(0,l.stringToDate)(i,r,!0)&&t.$calendar.setValue((0,l.stringToDate)(i,r)):t.$calendar.clear(),e.fire(s.NavigationBarEvents.input,[(0,c.locate)(n),i]),!1}e.datePicker=function(t,e,n){t.$popup||(t.$popup=new a.Popup),t.$calendar||(t.$calendar=new o.Calendar(null,i(i({},t),{css:"dhx_widget--bordered"})),t.$popup.attach(t.$calendar),t.$calendar.events.on("change",(function(n,i,r){var o;r&&t.$popup.isVisible()&&t.$popup.hide();var a="date"===(null===(o=t.valueFormat)||void 0===o?void 0:o.toLowerCase());e.fire(s.NavigationBarEvents.inputChange,[t.id,t.$calendar.getValue(a)])})));var l=t.$calendar.getValue();return t.mode&&"calendar"!==t.mode&&t.$calendar.showDate(void 0,t.mode),(0,r.el)(".dhx_form-group.dhx_form-group--no-message-holder"+(t.hiddenLabel?".dhx_form-group--label_sr":".dhx_form-group--inline")+".dhx_".concat(n,"__input"),{style:{width:t.width?t.width:"200px"},role:"presentation"},[t.label&&(0,r.el)("label.dhx_label",{for:t.id,style:{maxWidth:t.hiddenLabel?null:"100%"}},t.label),(0,r.el)(".dhx_input__wrapper",{role:"presentation"},[(0,r.el)("input.dhx_input",{id:t.id,placeholder:t.placeholder,class:t.icon?"dhx_input--icon-padding":"",value:l,disabled:t.disabled,onblur:[u,e,t],onfocus:[d,e,t],oninput:[h,t,e],"data-dhx-id":t.id,readOnly:!0!==t.editable,_hooks:{didInsert:function(n){e&&e.fire(s.NavigationBarEvents.inputCreated,[t.id,n.el])}},_key:t.id,"aria-label":t.label||t.helpMessage||"type ".concat(t.placeholder?"text like "+t.placeholder:"text")}),t.icon?(0,r.el)(".dhx_input__icon",{class:t.icon,"aria-hidden":"true"}):null])])}},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(95),e),r(n(41),e)},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)},a=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Calendar=void 0;var s=n(0),l=n(1),c=n(3),u=n(4),d=n(96),h=n(103),f=n(40),p=n(41),_=n(2),v=function(t){function e(e,n){void 0===n&&(n={});var i=t.call(this,e,(0,s.extend)({weekStart:"sunday",thisMonthOnly:!1,dateFormat:window&&window.dhx&&window.dhx.dateFormat,width:"250px"},n))||this;switch(i._selected=[],i.events=new c.EventSystem,i.config.disabledDates=i.config.disabledDates||i.config.block,i.config.mode=i.config.mode||i.config.view,i.config.dateFormat||(i.config.timePicker?12===i.config.timeFormat?i.config.dateFormat="%d/%m/%y %h:%i %A":i.config.dateFormat="%d/%m/%y %H:%i":i.config.dateFormat="%d/%m/%y"),i.config.value&&i._setSelected(i.config.value),i.config.date?i._currentDate=f.DateHelper.toDateObject(i.config.date,i.config.dateFormat):i._getSelected()?i._currentDate=f.DateHelper.copy(i._getSelected()):i._currentDate=new Date,i.config.mode){case"month":i._currentViewMode="month";break;case"year":i._currentViewMode="year";break;case"timepicker":i._currentViewMode=i.config.timePicker?"timepicker":"calendar";break;default:i._currentViewMode="calendar"}if(i._initHandlers(),i.config.timePicker){i._timepicker=new d.Timepicker(null,{timeFormat:i.config.timeFormat,controls:!0});var r=i._getSelected()||new Date;i._timepicker.setValue(r),i._time=i._timepicker.getValue(),i._timepicker.events.on(d.TimepickerEvents.afterClose,(function(){i._timepicker.setValue(i._time),i.showDate(null,"calendar")})),i._timepicker.events.on(d.TimepickerEvents.afterApply,(function(){var t=i._timepicker.getValue(!0),e=t.hour,n=t.minute,r=t.AM,o=i._getSelected(),a=f.DateHelper.withHoursAndMinutes(i._getSelected()||new Date,e,n,r);i.events.fire(p.CalendarEvents.beforeChange,[a,o,!0])&&(i._selected[i._selected.length-1]=a,i.events.fire(p.CalendarEvents.change,[a,o,!0])),i._time=i._timepicker.getValue(),i.showDate(null,"calendar")}))}return i.mount(e,(0,l.create)({render:function(){return i._draw()}})),i}return r(e,t),e.prototype.setValue=function(t){if(!t||t instanceof Array&&0===t.length)return!1;var e=t instanceof Array?t[0]:t,n=f.DateHelper.toDateObject(e,this.config.dateFormat),i=f.DateHelper.copy(this._getSelected());return!!this.events.fire(p.CalendarEvents.beforeChange,[n,i,!1])&&(this._selected=[],this._setSelected(t),this._timepicker&&(this._timepicker.setValue(n),this._time=this._timepicker.getValue()),this.showDate(this._getSelected()),this.events.fire(p.CalendarEvents.change,[n,i,!1]),this.paint(),!0)},e.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 f.DateHelper.copy(t)})):this._selected.map((function(t){return(0,f.getFormattedDate)(e.config.dateFormat,t)})):t?f.DateHelper.copy(this._selected[0]):(0,f.getFormattedDate)(this.config.dateFormat,this._selected[0]):""},e.prototype.getCurrentMode=function(){return this._currentViewMode},e.prototype.showDate=function(t,e){t&&(this._currentDate=f.DateHelper.copy(t)),e&&(this._currentViewMode=e),this.paint()},e.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()},e.prototype.clear=function(){var t=this.getValue(!0);this.events.fire(p.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(p.CalendarEvents.change,[this.getValue(!0),t,!1,"clear"]))},e.prototype.link=function(t){var e=this;this._linkedCalendar&&this._unlink(),this._linkedCalendar=t;var n=this.getValue(!0),i=t.getValue(!0),r=n&&f.DateHelper.dayStart(n),o=i&&f.DateHelper.dayStart(i);this.config.$rangeMark&&this._linkedCalendar.config.$rangeMark||(this.config.$rangeMark=this._linkedCalendar.config.$rangeMark=function(t){if(r&&o)return t>=r&&t<=o&&function(t){if(f.DateHelper.isSameDay(o,r))return null;var e="dhx_calendar-day--in-range";return f.DateHelper.isSameDay(t,r)&&(e+=" dhx_calendar-day--first-date"),f.DateHelper.isSameDay(t,o)&&(e+=" dhx_calendar-day--last-date"),e}(t)}),this.config.disabledDates&&this._linkedCalendar.config.disabledDates||(this.config.disabledDates=function(t){if(o)return t>o},this._linkedCalendar.config.disabledDates=function(t){if(r)return t<r}),this.config.thisMonthOnly=!0,t.config.thisMonthOnly=!0,this.events.on(p.CalendarEvents.change,(function(t){r=t?f.DateHelper.dayStart(t):null,e._linkedCalendar.paint()}),"link"),this._linkedCalendar.events.on(p.CalendarEvents.change,(function(t){o=t?f.DateHelper.dayStart(t):null,e.paint()}),"link"),this._linkedCalendar.paint(),this.paint()},e.prototype._unlink=function(){this._linkedCalendar&&(this.config.$rangeMark=this._linkedCalendar.config.$rangeMark=null,this.config.disabledDates=this._linkedCalendar.config.disabledDates=null,this.events.detach(p.CalendarEvents.change,"link"),this._linkedCalendar.events.detach(p.CalendarEvents.change,"link"),this._linkedCalendar.paint(),this._linkedCalendar=null)},e.prototype._setSelected=function(t){var e=this,n=t instanceof Array?t[0]:t,i=f.DateHelper.toDateObject(n,this.config.dateFormat);if(t instanceof Array&&this.config.range){var r=[];t.forEach((function(t,n){n<2&&r.push(f.DateHelper.toDateObject(t,e.config.dateFormat))})),2===r.length&&r[0]<=r[1]?r.forEach((function(t){return e._selected.push(t)})):this._selected[0]=r[0]}else this._selected[0]=i},e.prototype._getSelected=function(){return this._selected[this._selected.length-1]},e.prototype._draw=function(){switch(this._currentViewMode){case"calendar":return this.events.fire(p.CalendarEvents.modeChange,["calendar"]),this._drawCalendar();case"month":return this.events.fire(p.CalendarEvents.modeChange,["month"]),this._drawMonthSelector();case"year":return this.events.fire(p.CalendarEvents.modeChange,["year"]),this._drawYearSelector();case"timepicker":return this.events.fire(p.CalendarEvents.modeChange,["timepicker"]),this._drawTimepicker()}},e.prototype._initHandlers=function(){var t=this,e={Up:"ArrowUp",Down:"ArrowDown",Right:"ArrowRight",Left:"ArrowLeft",Esc:"Escape",Spacebar:"Space"},n=function(e){void 0===e&&(e=!1);var n=0;switch(t._currentViewMode){case"calendar":n=e?-7:7;break;case"month":case"year":n=e?-4:4}return n};this._handlers={onkeydown:{".dhx_calendar-year, .dhx_calendar-month, .dhx_calendar-day":function(i,r){switch(function(t){var n;if(t.which>=48&&t.which<=57||t.which>=65&&t.which<=90)n=String.fromCharCode(t.which);else{var i=32===t.which?t.code:t.key;n=(0,_.isIE)()&&e[i]||i}return n}(i)){case"Enter":t._selectDate(i,r);break;case"ArrowLeft":t._moveBrowseFocus(i,r,-1);break;case"ArrowRight":t._moveBrowseFocus(i,r,1);break;case"ArrowUp":t._moveBrowseFocus(i,r,n(!0));break;case"ArrowDown":t._moveBrowseFocus(i,r,n())}}},onclick:{".dhx_calendar-year, .dhx_calendar-month, .dhx_calendar-day":function(e,n){t._selectDate(e,n)},".dhx_calendar-action__cancel":function(){t.showDate(t._getSelected(),"calendar"),t.events.fire(p.CalendarEvents.cancelClick,[])},".dhx_calendar-action__show-month":function(){return t.showDate(null,"month")},".dhx_calendar-action__show-year":function(){return t.showDate(null,"year")},".dhx_calendar-action__next":function(){var e;switch(t._currentViewMode){case"calendar":e=f.DateHelper.addMonth(t._currentDate,1);break;case"month":e=f.DateHelper.addYear(t._currentDate,1);break;case"year":e=f.DateHelper.addYear(t._currentDate,12)}t.showDate(e)},".dhx_calendar-action__prev":function(){var e;switch(t._currentViewMode){case"calendar":e=f.DateHelper.addMonth(t._currentDate,-1);break;case"month":e=f.DateHelper.addYear(t._currentDate,-1);break;case"year":e=f.DateHelper.addYear(t._currentDate,-12)}t.showDate(e)},".dhx_calendar-action__show-timepicker":function(){t._currentViewMode="timepicker",t.paint()}},onmouseover:{".dhx_calendar-day":function(e,n){t.events.fire(p.CalendarEvents.dateMouseOver,[new Date(n.attrs._date),e]),t.events.fire(p.CalendarEvents.dateHover,[new Date(n.attrs._date),e])}}}},e.prototype._getData=function(t){var e,n=this;switch(this._isSelectedInCurrentRange=!1,this.config.weekStart){case"saturday":e=-1;break;case"monday":e=1;break;default:e=0}for(var i=[],r=6,o=f.DateHelper.weekStart(f.DateHelper.monthStart(t),e);r--;){for(var a=f.DateHelper.getWeekNumber(o),s=0,l=7,c=[],u=function(){var e=f.DateHelper.isWeekEnd(o),i=t.getMonth()===o.getMonth(),r=d.config.disabledDates&&d.config.disabledDates(o),a=[];if(d.config.range&&d._selected[0]&&d._selected[1]){var l=function(){if(n._selected[0]&&n._selected[1]){var t=f.DateHelper.dayStart(n._selected[0]),e=f.DateHelper.dayStart(n._selected[1]);return o>=t&&o<=e&&(f.DateHelper.isSameDay(n._selected[0],n._selected[1])?null:"dhx_calendar-day--in-range")}};d.config.$rangeMark=l}if(e&&a.push("dhx_calendar-day--weekend"),i||(d.config.thisMonthOnly?(s++,a.push("dhx_calendar-day--hidden")):a.push("dhx_calendar-day--muffled")),d.config.mark){var u=d.config.mark(o);u&&a.push(u)}d.config.$rangeMark&&((l=d.config.$rangeMark(o))&&a.push(l));r&&(e?a.push("dhx_calendar-day--weekend-disabled"):a.push("dhx_calendar-day--disabled")),d._selected.forEach((function(t,e){if(t&&f.DateHelper.isSameDay(t,o)){n._isSelectedInCurrentRange=!0;var i="dhx_calendar-day--selected";n.config.range&&(i+=" dhx_calendar-day--selected-".concat(0===e?"first ":"last")),a.push(i)}})),c.push({date:o,day:o.getDate(),css:a.join(" ")}),o=f.DateHelper.addDay(o)},d=this;l--;)u();i.push({weekNumber:a,days:c,disabledWeekNumber:7===s})}return i},e.prototype._drawCalendar=function(){var t,e=this,n=this._currentDate,i=this.config,r=i.weekStart,s=i.thisMonthOnly,c=i.css,u=i.timePicker,d=i.width;switch(r){case"saturday":t=a([f.locale.daysShort[6]],f.locale.daysShort.slice(0,-1),!0);break;case"monday":t=a(a([],f.locale.daysShort.slice(1),!0),[f.locale.daysShort[0]],!1);break;default:t=f.locale.daysShort}for(var h,p=t.map((function(t){return(0,l.el)(".dhx_calendar-weekday",t)})),_=this._getData(n),v=!0,g=this._getSelected(),m=function(t){var n={role:"button",tabindex:-1,"aria-pressed":"false"};return t&&(e._isSelectedInCurrentRange?function(t){return t&&g&&t.getTime()===g.getTime()}(t.date)&&(n.tabindex=0,n["aria-pressed"]="true"):v&&(n.tabindex=0),v=!1),n},y=[],b=[],w=0,x=_;w<x.length;w++){var k=x[w],E=k.days.map((function(t){return(0,l.el)("div.dhx_calendar-day",o({class:t.css,_date:t.date},m(t)),t.day)}));!this.config.weekNumbers||k.disabledWeekNumber&&s||b.push((0,l.el)("div",{class:"dhx_calendar-week-number"},k.weekNumber)),y=y.concat(E)}this.config.weekNumbers&&(h=(0,l.el)(".dhx_calendar__week-numbers",b));var O="dhx_calendar dhx_widget"+(c?" "+c:"")+(u?" dhx_calendar--with_timepicker":"")+(this.config.weekNumbers?" dhx_calendar--with_week-numbers":"");return(0,l.el)("div",o({class:O,style:{width:this.config.weekNumbers?parseInt(d.toString())+48+"px":d}},this._handlers),[(0,l.el)(".dhx_calendar__wrapper",[this._drawHeader((0,l.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"},f.locale.months[n.getMonth()]+" "+n.getFullYear())),this.config.weekNumbers&&(0,l.el)(".dhx_calendar__dates-wrapper",[(0,l.el)(".dhx_calendar__weekdays",p),(0,l.el)(".dhx_calendar__days",y),h]),!this.config.weekNumbers&&(0,l.el)(".dhx_calendar__weekdays",p),!this.config.weekNumbers&&(0,l.el)(".dhx_calendar__days",y),u?(0,l.el)(".dhx_timepicker__actions",[(0,l.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"},[(0,l.el)("span.dhx_button__icon.dxi.dxi-clock-outline"),(0,l.el)("span.dhx_button__text",this._time)])]):null])])},e.prototype._drawMonthSelector=function(){var t=this._currentDate,e=t.getMonth(),n=this._getSelected()?this._getSelected().getFullYear():null,i=this.config,r=i.css,a=i.timePicker,s=i.weekNumbers,c=i.width,u=i.mode,d="dhx_calendar dhx_widget"+(r?" "+r:"")+(a?" dhx_calendar--with_timepicker":"")+(s?" dhx_calendar--with_week-numbers":""),h=!0,p=n===t.getFullYear(),_=function(t){return p&&e===t};return(0,l.el)("div",o({class:d,style:{width:s?parseInt(c.toString())+48+"px":c}},this._handlers),[(0,l.el)(".dhx_calendar__wrapper",[this._drawHeader((0,l.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())),(0,l.el)(".dhx_calendar__months",f.locale.monthsShort.map((function(t,e){return(0,l.el)("div",o(o({class:"dhx_calendar-month"+(_(e)?" dhx_calendar-month--selected":"")},function(t,e){var n={role:"button",tabindex:-1,"aria-pressed":"false"};return t&&(p?_(e)&&(n.tabindex=0,n["aria-pressed"]="true"):h&&(n.tabindex=0),h=!1),n}(t,e)),{_date:e}),t)}))),"month"!==u?(0,l.el)(".dhx_calendar__actions",[(0,l.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"},f.locale.cancel)]):null])])},e.prototype._drawYearSelector=function(){var t=this,e=this._currentDate,n=f.DateHelper.getTwelweYears(e),i=this.config,r=i.css,a=i.timePicker,s=i.weekNumbers,c=i.width,u=i.mode,d="dhx_calendar dhx_widget"+(r?" "+r:"")+(a?" dhx_calendar--with_timepicker":"")+(s?" dhx_calendar--with_week-numbers":""),h=!0,p=this._getSelected()&&n.includes(this._getSelected().getFullYear()),_=function(e){return t._getSelected()&&e===t._getSelected().getFullYear()};return(0,l.el)("div",o({class:d,style:{width:s?parseInt(c.toString())+48+"px":c}},this._handlers),[(0,l.el)(".dhx_calendar__wrapper",[this._drawHeader((0,l.el)("button.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--circle",{"aria-live":"polite",type:"button"},n[0]+"-"+n[n.length-1])),(0,l.el)(".dhx_calendar__years",n.map((function(t){return(0,l.el)("div",o({class:"dhx_calendar-year"+(_(t)?" dhx_calendar-year--selected":""),_date:t},function(t){var e={role:"button",tabindex:-1,"aria-pressed":"false"};return t&&(p?_(t)&&(e.tabindex=0,e["aria-pressed"]="true"):h&&(e.tabindex=0),h=!1),e}(t)),t)}))),"year"!==u&&"month"!==u?(0,l.el)(".dhx_calendar__actions",[(0,l.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"},f.locale.cancel)]):null])])},e.prototype._drawHeader=function(t){return(0,l.el)(".dhx_calendar__navigation",[(0,l.el)("button.dhx_calendar-navigation__button.dhx_calendar-action__prev"+h.linkButtonClasses+".dhx_button--icon.dhx_button--circle",{"aria-label":"prev",type:"button"},[(0,l.el)(".dhx_button__icon.dxi.dxi-chevron-left")]),t,(0,l.el)("button.dhx_calendar-navigation__button.dhx_calendar-action__next"+h.linkButtonClasses+".dhx_button--icon.dhx_button--circle",{"aria-label":"next",type:"button"},[(0,l.el)(".dhx_button__icon.dxi.dxi-chevron-right")])])},e.prototype._drawTimepicker=function(){var t=this.config,e=t.css,n=t.weekNumbers,i=t.width;return(0,l.el)(".dhx_widget.dhx-calendar",{class:e?" "+e:"",style:{width:n?parseInt(i.toString())+48+"px":i}},[(0,l.inject)(this._timepicker.getRootView())])},e.prototype._selectDate=function(t,e){var n=e.attrs._date,i=f.DateHelper.copy(this._getSelected());switch(this._currentViewMode){case"calendar":var r=this.config.timePicker?f.DateHelper.mergeHoursAndMinutes(n,this._getSelected()||this._currentDate):n;if(!this.events.fire(p.CalendarEvents.beforeChange,[r,i,!0]))return;this.config.range&&1===this._selected.length&&this._selected[0]<=r?this._selected.push(r):(this._selected=[],this._selected[0]=r),e.el.blur(),this.showDate(this._getSelected()),this.events.fire(p.CalendarEvents.change,[n,i,!0]);break;case"month":if("month"!==this.config.mode)f.DateHelper.setMonth(this._currentDate,n),this.showDate(null,"calendar"),this.events.fire(p.CalendarEvents.monthSelected,[n]);else{var o=f.DateHelper.fromYearAndMonth(this._currentDate.getFullYear()||this._getSelected().getFullYear(),n);if(!this.events.fire(p.CalendarEvents.beforeChange,[o,i,!0]))return;this._currentDate=o,this._selected[0]=o,this.events.fire(p.CalendarEvents.change,[this._getSelected(),i,!0]),this.events.fire(p.CalendarEvents.monthSelected,[n]),this.paint()}break;case"year":if("year"!==this.config.mode)f.DateHelper.setYear(this._currentDate,n),this.showDate(null,"month"),this.events.fire(p.CalendarEvents.yearSelected,[n]);else{o=f.DateHelper.fromYear(n);if(!this.events.fire(p.CalendarEvents.beforeChange,[o,i,!0]))return;this._currentDate=o,this._selected[0]=o,this.events.fire(p.CalendarEvents.change,[this._getSelected(),i,!0]),this.events.fire(p.CalendarEvents.yearSelected,[n]),this.paint()}}},e.prototype._moveBrowseFocus=function(t,e,n){if(e){var i=e.parent.body[e.idx+n];if(i){var r=i.el;r&&(t.target.tabIndex=-1,r.tabIndex=0,r.focus({preventScroll:!0}))}}},e}(u.View);e.Calendar=v},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(97),e),r(n(39),e)},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Timepicker=void 0;var a=n(0),s=n(1),l=n(3),c=n(4),u=n(32),d=n(98),h=n(101),f=n(102),p=n(39),_=n(2);function v(t,e){return isNaN(t)?0:Math.min(e,Math.max(0,t))}var g=function(t){function e(e,n){void 0===n&&(n={});var i=t.call(this,e,(0,a.extend)({timeFormat:24,controls:!1,valueFormat:"string",actions:!1},n))||this;return i.events=new l.EventSystem(i),i._time={hour:0,minute:0,AM:!0},12===i.config.timeFormat&&(i._time.hour=12),i.config.controls=i.config.controls||i.config.actions,i.config.value&&i._setValue(i.config.value),i._initUI(e),i._initHandlers(),i._initEvents(),i}return r(e,t),e.prototype.getValue=function(t){return 12===this.config.timeFormat&&(this._time.hour=this._time.hour%12||12),this._getValue(this._time,t)},e.prototype.setValue=function(t){this._setValue(t),this._hoursSlider.setValue(this._time.hour),this._minutesSlider.setValue(this._time.minute),this._inputsView.paint()},e.prototype.clear=function(){24===this.config.timeFormat?this.setValue("00:00"):this.setValue("12:00AM")},e.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()},e.prototype.getRootView=function(){return this.layout.getRootView()},e.prototype._getValue=function(t,e){var n=t.hour,i=t.minute,r=t.AM;if(e){var o={hour:n,minute:i};return 12===this.config.timeFormat&&(o.AM=r),o}return(n<10?"0"+n:n)+":"+(i<10?"0"+i:i)+(12===this.config.timeFormat?r?"AM":"PM":"")},e.prototype._setValue=function(t){var e,n=0,i=0;if("number"==typeof t&&(t=new Date(t)),t instanceof Date)n=t.getMinutes(),i=t.getHours();else if(Array.isArray(t))i=v(t[0],23),n=v(t[1],59),t[2]&&"pm"===t[2].toLowerCase()&&(e=!0);else if("string"==typeof t){var r=t.match(/\d+/g);i=v(+r[0],23),n=v(+r[1],59),t.toLowerCase().includes("pm")&&(e=!0)}else"object"==typeof t&&t.hasOwnProperty("hour")&&t.hasOwnProperty("minute")&&(i=t.hour,n=t.minute,e=!t.AM);return e&&i<12&&(i+=12),12===this.config.timeFormat&&!(0,f.isTimeCheck)(t)&&i>=12&&(e=!0),this._time={hour:i,minute:n,AM:!e}},e.prototype._initUI=function(t){var e=this,n={gravity:!1,css:"dhx_widget dhx_timepicker "+(this.config.css?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&&(n.rows.unshift({id:"close-action",css:"dhx_timepicker__close"}),n.rows.push({id:"save-action",css:"dhx_timepicker__save"}));var i=this.layout=new u.Layout(t,n),r=(0,s.create)({render:function(){return e._draw()}}),o=this._inputsView=(0,c.toViewLike)(r),a=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}),l=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:0});if(i.getCell("timepicker").attach(o),i.getCell("hour-slider").attach(l),i.getCell("minute-slider").attach(a),this.config.controls){i.getCell("save-action").attach((function(){return(0,s.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)})),i.getCell("close-action").attach((function(){return(0,s.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"},[(0,s.el)("span.dhx_button__icon.dxi.dxi-close")])}))}},e.prototype._initHandlers=function(){var t=this,e=function(e){var n=v(parseInt(e.value,10),59);e.value=n.toString(),t._minutesSlider.setValue(n)},n=function(e){var n=v(parseInt(e.value,10),23);e.value=n.toString(),t._hoursSlider.setValue(n)};this._handlers={onchange:{".dhx_timepicker-input--hour":function(t){return n(t.target)},".dhx_timepicker-input--minutes":function(t){return e(t.target)}},oninput:{".dhx_timepicker-input--hour":function(t){((0,_.isSafari)()||(0,_.isFirefox)())&&n(t.target)},".dhx_timepicker-input--minutes":function(t){((0,_.isSafari)()||(0,_.isFirefox)())&&e(t.target)}}},this._outerHandlers={close:function(){t.events.fire(p.TimepickerEvents.beforeClose,[t.getValue(t._isTimeObj())])&&(t.events.fire(p.TimepickerEvents.afterClose,[t.getValue(t._isTimeObj())]),t.events.fire(p.TimepickerEvents.close,[]))},save:function(){t.events.fire(p.TimepickerEvents.beforeApply,[t.getValue(t._isTimeObj())])&&(t.events.fire(p.TimepickerEvents.afterApply,[t.getValue(t._isTimeObj())]),t.events.fire(p.TimepickerEvents.apply,[t.getValue()]),t.events.fire(p.TimepickerEvents.save,[t._time]))}}},e.prototype._initEvents=function(){var t=this;this._hoursSlider.events.on(d.SliderEvents.beforeChange,(function(e){if(!(e<t._hoursSlider.config.min||e>t._hoursSlider.config.max)){var n=o({},t._time);12===t.config.timeFormat?(n.AM=e<12,n.hour=e%12||12):n.hour=e;var i=t._isTimeObj();return t.events.fire(p.TimepickerEvents.beforeChange,[t._getValue(n,i)])}})),this._hoursSlider.events.on(d.SliderEvents.change,(function(e){if(!(e<t._hoursSlider.config.min||e>t._hoursSlider.config.max)){12===t.config.timeFormat?(t._time.AM=e<12,t._time.hour=e%12||12):t._time.hour=e;var n=t._isTimeObj();t.events.fire(p.TimepickerEvents.change,[t.getValue(n)]),t._inputsView.paint()}})),this._minutesSlider.events.on(d.SliderEvents.beforeChange,(function(e){if(!(e<t._minutesSlider.config.min||e>t._minutesSlider.config.max)){var n=o(o({},t._time),{minute:e}),i=t._isTimeObj();return t.events.fire(p.TimepickerEvents.beforeChange,[t._getValue(n,i)])}})),this._minutesSlider.events.on(d.SliderEvents.change,(function(e){if(!(e<t._minutesSlider.config.min||e>t._minutesSlider.config.max)){t._time.minute=e;var n=t._isTimeObj();t.events.fire(p.TimepickerEvents.change,[t.getValue(n)]),t._inputsView.paint()}}))},e.prototype._draw=function(){return this._minutesSlider.config.label=h.default.minutes,this._hoursSlider.config.label=h.default.hours,(0,s.el)(".dhx_timepicker-inputs",o({},this._handlers),[(0,s.el)("input.dhx_timepicker-input.dhx_timepicker-input--hour",{_key:"hour",_ref:"hour",value:this.getValue(!0).hour.toString().length>1?this.getValue(!0).hour:"0"+this.getValue(!0).hour,"aria-label":"hours"}),(0,s.el)("span.dhx_timepicker-delimer",":"),(0,s.el)("input.dhx_timepicker-input.dhx_timepicker-input--minutes",{_key:"minute",value:this.getValue(!0).minute.toString().length>1?this.getValue(!0).minute:"0"+this.getValue(!0).minute,"aria-label":"minutes"}),12===this.config.timeFormat?(0,s.el)(".dhx_timepicker-ampm",this._time.AM?"AM":"PM"):null])},e.prototype._isTimeObj=function(){var t;return"timeobject"===(null===(t=this.config.valueFormat)||void 0===t?void 0:t.toLowerCase())},e}(c.View);e.Timepicker=g},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(99),e),r(n(38),e)},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Slider=void 0;var a=n(0),s=n(1),l=n(3),c=n(23),u=n(4),d=n(36),h=n(38),f=n(2);function p(t,e,n){return t<e?e:t>n?n:t}var _=function(t){function e(e,n){var i=t.call(this,e,(0,a.extend)({mode:"horizontal",min:0,max:100,step:1,tooltip:!0},n))||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 l.EventSystem(i),i._axis="horizontal"===i.config.mode?"clientX":"clientY",i._initStartPosition(),i._keyManager=new c.KeyManager((function(){var t,e;return document.activeElement===(null===(e=null===(t=i.getRootView().refs)||void 0===t?void 0:t[i._isExtraActive?"extraRunner":"runner"])||void 0===e?void 0:e.el)})),i._initHotkeys();var r=(0,s.create)({render:function(){return i._draw()},hooks:{didMount:function(){return i._calcSliderPosition()},didRedraw:function(){return i._calcSliderPosition()}}});return i._initHandlers(),i.mount(e,r),i}return r(e,t),e.prototype.disable=function(){this._disabled=!0,this.paint()},e.prototype.enable=function(){this._disabled=!1,this.paint()},e.prototype.isDisabled=function(){return this._disabled},e.prototype.focus=function(t){this.getRootView().refs[t?"extraRunner":"runner"].el.focus()},e.prototype.blur=function(){this.getRootView().refs[this._isExtraActive?"extraRunner":"runner"].el.blur()},e.prototype.getValue=function(){var t;if(this.config.range){var e=this._getValue(this._currentPosition),n=this._getValue(this._extraCurrentPosition);t=e<n?[e,n]:[n,e]}else t=[this._getValue(this._currentPosition)];return t},e.prototype.setValue=function(t){var e=this._getValue(this._currentPosition);if(Array.isArray(t)&&t.length>1){var n=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],n,!0])&&(this._setValue(t[1],!0),this.events.fire(h.SliderEvents.change,[t[1],n,!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()},e.prototype.destructor=function(){this._keyManager&&this._keyManager.destructor(),document.body.contains(this._tooltip)&&document.body.removeChild(this._tooltip),this._tooltip=null,this.unmount()},e.prototype._calcSliderPosition=function(){var t=this.getRootView();if(t){var e=t.refs.track.el.getBoundingClientRect();this._offsets={left:e.left+window.pageXOffset,top:e.top+window.pageYOffset},this._length="horizontal"===this.config.mode?e.width:e.height}},e.prototype._initHotkeys=function(){var t=this,e={arrowLeft:function(e){e.preventDefault(),t._move(-t.config.step,e.target.classList.contains("dhx_slider__thumb--extra"))},arrowRight:function(e){e.preventDefault(),t._move(t.config.step,e.target.classList.contains("dhx_slider__thumb--extra"))},arrowUp:function(e){e.preventDefault(),t._move(t.config.step,e.target.classList.contains("dhx_slider__thumb--extra"))},arrowDown:function(e){e.preventDefault(),t._move(-t.config.step,e.target.classList.contains("dhx_slider__thumb--extra"))}};for(var n in e)this._keyManager.addHotKey(n,e[n])},e.prototype._move=function(t,e){void 0===e&&(e=!1),this.config.inverse&&(t=-t);var n=this.config,i=n.max,r=n.min,o=e?this._getValue(this._extraCurrentPosition):this._getValue(this._currentPosition),a=o+t;(a>i||a<r)&&(a=o),this.events.fire(h.SliderEvents.beforeChange,[a,o,e])&&(this._setValue(o+t,e),this.events.fire(h.SliderEvents.change,[a,o,e]),this.paint())},e.prototype._initStartPosition=function(){var t=this.config,e=t.max,n=t.min,i=t.range,r=function(t,e,n){var i;return(i=void 0===t?[]:Array.isArray(t)?t:"string"==typeof t?t.split(",").map((function(t){return parseInt(t,10)})):[t])[0]=void 0===i[0]?e:p(i[0],e,n),i[1]=void 0===i[1]?n:p(i[1],e,n),i}(this.config.value,this.config.min,this.config.max),o=r[0],a=r[1];this._currentPosition=(o-n)/(e-n)*100,i&&(this._extraCurrentPosition=(e-a)/(e-n)*100),this._currentPosition=(o-n)/(e-n)*100,i&&(this._extraCurrentPosition=(a-n)/(e-n)*100),this._isInverse()&&(this._currentPosition=100-this._currentPosition,i&&(this._extraCurrentPosition=100-this._extraCurrentPosition))},e.prototype._getValue=function(t){this._isInverse()&&(t=100-t);var e=this.config,n=e.min,i=e.max,r=e.step;if(100===t)return i;if(0===t)return n;var o=t*(i-n)/100,a=o%r,s=a>=r/2?r:0;return+(Number(n)+Number(o)-a+s).toFixed(5)},e.prototype._setValue=function(t,e){void 0===e&&(e=!1);var n=this.config,i=n.max,r=n.min;if(t>i||t<r)return!1;var o=(t-r)/(i-r)*100,a=this._isInverse()?100-o:o;e?this._extraCurrentPosition=a:this._currentPosition=a},e.prototype._initHandlers=function(){var t=this,e=function(e){e.cancelable&&e.preventDefault();var n=((e.targetTouches?e.targetTouches[0][t._axis]:e[t._axis])-t._getBegining())/t._length*100;if(t._findNewDirection){if(Math.abs(t._currentPosition-n)<1)return;n>t._currentPosition?t._possibleRange=[t._currentPosition,100]:t._possibleRange=[0,t._currentPosition],t._findNewDirection=null}t._inSide(n)&&t._updatePosition(n,t._isExtraActive),t.paint()},n=function(i){t.events.fire(h.SliderEvents.mouseup,[i]),setTimeout((function(){t._isMouseMoving=!1,t.paint()}),4),i.targetTouches?(document.removeEventListener("touchend",n),document.removeEventListener("touchmove",e)):(document.removeEventListener("mouseup",n),document.removeEventListener("mousemove",e))},i=function(e){var n;if(!t._disabled&&3!==e.which)if(t.events.fire(h.SliderEvents.mousedown,[e]),t._isMouseMoving=!0,e.target.classList.contains("dhx_slider__thumb--extra")?(t._isExtraActive=!0,n=t._extraCurrentPosition):(t._isExtraActive=!1,n=t._currentPosition),t._findNewDirection=null,t.config.range){var i=t._currentPosition>t._extraCurrentPosition?[t._currentPosition,t._extraCurrentPosition]:[t._extraCurrentPosition,t._currentPosition],r=i[0],o=i[1];t._currentPosition===t._extraCurrentPosition?(t._findNewDirection=n,t._possibleRange=[0,100]):t._possibleRange=n<r?[0,r]:[o,100]}else t._possibleRange=[0,100]};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(e){e.preventDefault(),e.stopPropagation(),t._helper.show(e.target,{theme:e.target})},onmousedown:function(t){i(t),document.addEventListener("mousemove",e),document.addEventListener("mouseup",n)},ontouchstart:function(r){t._setTooltip(r),t._mouseIn=!1,i(r),document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",n),t.paint()},ontouchend:function(e){t._setTooltip(e),t._mouseIn=!1,t.paint()},onlabelClick:function(){t.getRootView().refs.runner.el.focus()},onclick:function(e){if(!t._disabled&&!t._isMouseMoving&&3!==e.which){var n=(e[t._axis]-t._getBegining())/t._length*100,i=t.getRootView().refs;if(t.config.range)Math.abs(t._currentPosition-n)<Math.abs(t._extraCurrentPosition-n)?(t._updatePosition(n,!1),i.runner.el.focus()):(t._updatePosition(n,!0),i.extraRunner.el.focus());else t._updatePosition(n,!1),i.runner.el.focus();t.paint()}},onmouseover:function(e){t._setTooltip(e),t._mouseIn=!0,t.paint()},onmouseout:function(e){t._setTooltip(e),t._mouseIn=!1,t.paint()},onfocus:function(e){t._setTooltip(e),t._focusIn=!0,t.events.fire(h.SliderEvents.focus,[]),t.paint()},onblur:function(e){t._setTooltip(e),t._focusIn=!1,t.events.fire(h.SliderEvents.blur,[]),t.paint()},onkeydown:function(e){t.events.fire(h.SliderEvents.keydown,[e])}}},e.prototype._getBegining=function(){return"horizontal"===this.config.mode?this._offsets.left-window.pageXOffset:this._offsets.top-window.pageYOffset},e.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)},e.prototype._updatePosition=function(t,e){void 0===e&&(e=!1),t>100&&(t=100),t<0&&(t=0);var n=this.config,i=n.max,r=n.min,o=e?this._extraCurrentPosition:this._currentPosition,a=this._getValue(o),s=this._getValue(t);if(a!==s&&this.events.fire(h.SliderEvents.beforeChange,[s,a,e])){var l=(s-r)/(i-r)*100,c=this._isInverse()?100-l:l;e?this._extraCurrentPosition=c:this._currentPosition=c,this.events.fire(h.SliderEvents.change,[s,a,e])}},e.prototype._getRunnerStyle=function(t){var e;void 0===t&&(t=!1);var n="horizontal"===this.config.mode?"left":"top",i=t?this._extraCurrentPosition:this._currentPosition;return(e={})[n]=i+"%",e},e.prototype._isInverse=function(){return this.config.inverse&&"horizontal"===this.config.mode||!this.config.inverse&&"vertical"===this.config.mode},e.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":"")},e.prototype._draw=function(){var t=this.config,e=t.labelPosition,n=t.mode,i=t.hiddenLabel,r=t.tick,a=t.majorTick,l=t.css,c=t.helpMessage,u=(0,f.getLabelStyle)(o(o({},this.config),{required:!1}));return!this._tooltip||this._mouseIn&&this._focusIn&&this._isMouseMoving||document.body.contains(this._tooltip)&&document.body.removeChild(this._tooltip),(0,s.el)("div",{class:"dhx_slider dhx_slider--mode_"+n+("left"===e?" dhx_slider--label-inline":"")+(i?" dhx_slider--label_sr":"")+(r?" dhx_slider--ticks":"")+(a?" dhx_slider--major-ticks":"")+(l?" "+l:"")+(this._disabled?" dhx_slider--disabled":""),style:{paddingBottom:this.config.tick?"16px":null}},[u?(0,s.el)("label.dhx_label.dhx_slider__label",{style:u.style,class:c?"dhx_label--with-help":"",onclick:this._handlers.onlabelClick},c?[u.label&&(0,s.el)("span.dhx_label__holder",u.label),(0,s.el)("span.dhx_label-help.dxi.dxi-help-circle-outline",{tabindex:"0",role:"button",onclick:this._handlers.showHelper})]:u.label):null,this._drawSlider()])},e.prototype._drawSlider=function(){return(0,s.el)(".dhx_widget.dhx_slider__track-holder",{"data-dhx-widget-id":this._uid},[(0,s.el)(".dhx_slider__track",{_ref:"track",onmouseover:this._handlers.onmouseover,onmouseout:this._handlers.onmouseout,onclick:this._handlers.onclick},[this._getDetector(),(0,s.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?(0,s.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])},e.prototype._getDetector=function(){var t,e,n;if(this._disabled)return(0,s.el)(".dhx_slider__range");var i="horizontal"===this.config.mode?"left":"top",r="horizontal"===this.config.mode?"width":"height";if(this.config.range){var o=this._currentPosition>this._extraCurrentPosition?[this._currentPosition,this._extraCurrentPosition]:[this._extraCurrentPosition,this._currentPosition],a=o[0],l=o[1];return(0,s.el)(".dhx_slider__range",{style:(t={},t[i]=l+"%",t[r]=a-l+"%",t)})}return this._isInverse()?(0,s.el)(".dhx_slider__range",{style:(e={},e[i]=this._currentPosition+"%",e[r]=100-this._currentPosition+"%",e)}):(0,s.el)(".dhx_slider__range",{style:(n={},n[i]=0,n[r]=this._currentPosition+"%",n)})},e.prototype._drawTooltip=function(t){if(void 0===t&&(t=!1),"none"!==this._activeTooltip&&this.getRootView()){var e="extraTooltip"===this._activeTooltip?this._extraCurrentPosition:this._currentPosition,n="horizontal"===this.config.mode?"left":"top",i="";(t&&this._isExtraActive||!t&&!this._isExtraActive)&&(i+=" dhx_slider__thumb-label--active"),this._tooltip||(this._tooltip=document.createElement("div"));var r="tooltip"===this._activeTooltip?this.getRootView().refs.runner.el.getBoundingClientRect():this.getRootView().refs.extraRunner.el.getBoundingClientRect();this._tooltip.className="dhx_slider__thumb-label"+i,this._tooltip.style.left=r.x+("left"===n?6:-30)+window.pageXOffset+"px",this._tooltip.style.top=r.y+("left"===n?-30:6)+window.pageYOffset+"px",this._tooltip.innerText=this._getValue(e).toString(),document.body.appendChild(this._tooltip)}},e.prototype._getTicks=function(){for(var t=this.config,e=t.max,n=t.min,i=t.step,r=t.tick,o=t.majorTick,a=e-n,s=i*r/a,l=[],c=0,u=0;c<1;){var d=+(Number(n)+c*a).toFixed(5),h=u%o==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+=s,u++}return l.push({position:(this._isInverse()?0:100)+"%",isMultiple:!0,label:"function"==typeof this.config.tickTemplate?this.config.tickTemplate(e):null}),l},e.prototype._drawTicks=function(){var t="horizontal"===this.config.mode?"left":"top";return(0,s.el)(".dhx_slider__ticks-holder",this._getTicks().map((function(e){var n;return(0,s.el)("div",{class:"dhx_slider__tick"+(e.isMultiple?" dhx_slider__tick--major":""),style:(n={},n[t]=e.position,n)},void 0!==e.label?[(0,s.el)(".dhx_slider__tick-label",e.label)]:null)})))},e.prototype._isNullable=function(t){return this._isInverse()?100===t:0===t},e.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"},e}(u.View);e.Slider=_},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Popup=void 0;var a=n(0),s=n(1),l=n(3),c=n(2),u=n(4),d=n(37),h=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,null,(0,a.extend)({},e))||this,i=n._popup=document.createElement("div");return i.className="dhx_widget dhx_popup"+(n.config.css?" "+n.config.css:""),i.style.position="absolute",i.setAttribute("role","dialog"),i.setAttribute("aria-modal","true"),i.setAttribute("aria-live","polite"),n.config.theme&&n._setTheme(n.config.theme),n.mount(i,(0,s.create)({render:function(){return n.toVDOM()}})),n._clickEvent=function(t){return n.events.fire(d.PopupEvents.click,[t])},n.events=e.events||new l.EventSystem(n),n._isActive=!1,n}return r(e,t),e.prototype.show=function(t,e,n){var i=this;void 0===e&&(e={}),this.events.fire(d.PopupEvents.beforeShow,[t])&&(t=(0,c.toNode)(t),this._isActive?this._setPopupSize(t,e):(n&&this.attach(n),e.theme&&this._setTheme(e.theme),this._popup.style.left="0",this._popup.style.top="0",(0,s.awaitRedraw)().then((function(){i._setPopupSize(t,e),i._popup.style.position="fixed",document.body.appendChild(i._popup),i._isActive=!0})).then((function(){i._popup.style.position="absolute",i.events.fire(d.PopupEvents.afterShow,[t]),i._outerClickDestructor=i._detectOuterClick(t)}))))},e.prototype.hide=function(){this._hide(!1,null)},e.prototype.isVisible=function(){return this._isActive},e.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 u.View?this._ui=new t(null,e):this._ui={getRootView:function(){return t(e)}}),this.paint(),this._ui},e.prototype.attachHTML=function(t){this._html=t,this.paint()},e.prototype.getWidget=function(){return this._ui},e.prototype.getContainer=function(){return this.getRootView().refs.content.el},e.prototype.toVDOM=function(){var t;return this._html?t=(0,s.el)(".dhx_popup__inner-html-content",{".innerHTML":this._html}):(t=this._ui?this._ui.getRootView():null)&&t.render&&(t=(0,s.inject)(t)),(0,s.el)("div",{class:"dhx_popup-content",tabindex:0,onclick:this._clickEvent,_key:this._uid,_ref:"content"},[t])},e.prototype.destructor=function(){this.events&&this.events.clear(),this.hide(),this._outerClickDestructor&&this._outerClickDestructor(),this._popup=null},e.prototype._setTheme=function(t){var e;if("string"==typeof t)this._popup.setAttribute("data-dhx-theme",t);else{var n=null===(e=null==t?void 0:t.closest("[data-dhx-theme]"))||void 0===e?void 0:e.getAttribute("data-dhx-theme");n&&this._popup.setAttribute("data-dhx-theme",n)}},e.prototype._setPopupSize=function(t,e,n){var i=this;void 0===n&&(n=3);var r=this._popup.getBoundingClientRect(),a=r.width,s=r.height;if(this._timeout&&(clearTimeout(this._timeout),this._timeout=null),!n||0!==a&&0!==s){var l=(0,c.fitPosition)(t,o(o({centering:!0,mode:"bottom"},e),{width:a,height:s})),u=l.left,d=l.top;if(this._popup.style.left=u,this._popup.style.top=d,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":default: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"}}else this._timeout=setTimeout((function(){i._isActive&&(i._setPopupSize(t,e,n-1),i._timeout=null)}))},e.prototype._detectOuterClick=function(t){var e=this,n=!1,i=new WeakMap,r=function(o){var a=o.target,s=document.querySelectorAll(".dhx_popup");for(n?s.forEach((function(t){return i.has(t)||i.set(t,e._popup)})):(n=Boolean(s.length))&&s.forEach((function(t){return i.set(t,!0)}));a;){if(a===t||a===e._popup||i.get(a)===e._popup)return;a=a.parentNode}e._hide(!0,o)&&document.removeEventListener("mousedown",r)};return document.addEventListener("mousedown",r),function(){return document.removeEventListener("mousedown",r)}},e.prototype._hide=function(t,e){if(this._isActive)return!!this.events.fire(d.PopupEvents.beforeHide,[t,e])&&(document.body.removeChild(this._popup),this._isActive=!1,this._outerClickDestructor&&(this._outerClickDestructor(),this._outerClickDestructor=null),this.events.fire(d.PopupEvents.afterHide,[e]),!0)},e}(u.View);e.Popup=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={hours:"Hours",minutes:"Minutes",save:"Save"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isTimeCheck=void 0,e.isTimeCheck=function(t){return/(^12:[0-5][0-9]?AM$)/i.test(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.linkButtonClasses=void 0,e.linkButtonClasses=".dhx_button.dhx_button--view_link.dhx_button--icon.dhx_button--size_medium.dhx_button--color_secondary"},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ProToolbar=void 0;var a=n(34),s=n(14),l=n(1),c=n(2),u=n(11),d=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.scrollView=new s.ScrollView((function(){return i.getRootView()})),i}return r(e,t),e.prototype._draw=function(t){var e=this,n=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,i=[(0,l.el)("ul.dhx_navbar.dhx_navbar--horizontal",o(o({"data-dhx-widget-id":this._uid,tabindex:0},function(t){return{role:"toolbar","aria-label":t||""}}(t)),{onclick:this._handlers.onclick,onmousedown:this._handlers.onmousedown,oninput:this._handlers.input,onmouseover:this._handlers.tooltip,onkeydown:this._handlers.onkeydown,onmousemove:this._handlers.onmousemove,onmouseleave:this._handlers.onmouseleave,_hooks:{didInsert:function(t){t.el.addEventListener("keyup",(function(t){if(9===t.which){var n=(0,c.locateNode)(document.activeElement);if(n){var i=n.getAttribute("data-dhx-id"),r=e.data.getItem(i);(null==r?void 0:r.tooltip)&&(0,u.tooltip)(r.tooltip,{node:n,position:u.Position.bottom,force:!0})}}}),!0)}}}),this.data.map((function(t){return e._factory(t)}),this.data.getRoot(),!1))];return(0,l.el)("nav.dhx_widget.dhx_toolbar",{style:{height:n},class:this.config.css?this.config.css:""},this.scrollView&&this.scrollView.config.enable?[].concat(this.scrollView.render(i)):i)},e}(a.Toolbar);e.ProToolbar=d},function(t,e,n){"use strict";(function(t){var i=this&&this.__awaiter||function(e,n,i,r){return new(i||(i=t))((function(t,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(t)}}function l(e){var n;e.done?t(e.value):(n=e.value,n instanceof i?n:new i((function(t){t(n)}))).then(a,s)}l((r=r.apply(e,n||[])).next())}))},r=this&&this.__generator||function(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){a.label=s[1];break}if(6===s[0]&&a.label<r[1]){a.label=r[1],r=s;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(s);break}r[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],i=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Uploader=void 0;var o=n(0),a=n(2),s=n(7),l=n(13),c=function(){function e(t,e,n){void 0===t&&(t={}),this.config=(0,o.extend)({autosend:!0,updateFromResponse:!0,fieldName:"file"},t),this.data=e||new s.DataCollection,this.events=n||this.data.events,this.isActive=!1,this._fileInput=document.createElement("input"),this._fileInput.type="file",this._fileInput.multiple=!0,this._initEvents(),this._dropAreas=new Map}return e.prototype.selectFile=function(){this._fileInput.click()},e.prototype.linkDropArea=function(t){var e=this,n=(0,a.toNode)(t),i=function(t){return t.preventDefault()},r=function(t){t.preventDefault(),e.parseFiles(t.dataTransfer)};n.addEventListener("dragover",i),n.addEventListener("drop",r),this._dropAreas.set(n,{dragover:i,drop:r})},e.prototype.unlinkDropArea=function(t){var e=this;if(t){var n=(0,a.toNode)(t);this._unlinkDropArea(n),this._dropAreas.delete(n)}else this._dropAreas.forEach((function(t,n){e._unlinkDropArea(n)})),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,n=0;n<e.length;n++)this._addFile(e[n]);this.config.autosend&&this.send()}},e.prototype.send=function(t){var e=this;if(!this._uploadInfo||!this.isActive){var n=this.data.findAll((function(t){return t.status===l.FileStatus.queue||t.status===l.FileStatus.failed})).filter((function(t){return e.events.fire(l.UploaderEvents.beforeUploadFile,[t])}));if(n.length)if(this.isActive=!0,this._uploadInfo={files:n,count:n.length,size:n.reduce((function(t,e){return t+e.file.size}),0)},this.events.fire(l.UploaderEvents.uploadBegin,[n]),this.events.fire(l.UploaderEvents.uploadProgress,[0,0,this._uploadInfo.size]),this.config.singleRequest)this._xhrSend(n,t);else for(var i=0,r=n;i<r.length;i++){var o=r[i];this._xhrSend([o],t)}}},e.prototype.abort=function(t){if(t){var e=this.data.getItem(t);e&&e.request&&4!==e.request.readyState&&e.request.abort()}else{if(!this._uploadInfo||!this._uploadInfo.files)return;for(var n=0,i=this._uploadInfo.files;n<i.length;n++){var r=i[n];this.abort(r.id)}}},e.prototype._unlinkDropArea=function(t){var e=this._dropAreas.get(t);if(e){var n=e.dragover,i=e.drop;t.removeEventListener("dragover",n),t.removeEventListener("drop",i)}},e.prototype._initEvents=function(){var t=this;this._fileInput.addEventListener("change",(function(){for(var e=t._fileInput.files,n=0;n<e.length;n++)t._addFile(e[n]);t.config.autosend&&t.send(),t._fileInput.value=null}))},e.prototype._xhrSend=function(t,e){for(var n=this,i=this._createFormData(t,e),r=new XMLHttpRequest,o=this.config.headerParams,a=0,s=t;a<s.length;a++){var c=s[a];this.data.update(c.id,{request:r,status:l.FileStatus.inprogress,progress:0})}if(r.open("POST",this.config.target),o)for(var u in o)r.setRequestHeader(u,o[u]);r.upload.onprogress=function(e){for(var i=0,r=t;i<r.length;i++){var o=r[i];n.data.update(o.id,{progress:e.loaded/e.total,status:l.FileStatus.inprogress})}var a=n._uploadInfo.files.reduce((function(t,e){return t+e.size*e.progress}),0)||0,s=n._uploadInfo.size,c=a/n._uploadInfo.size*100||0;n.events.fire(l.UploaderEvents.uploadProgress,[c,a,s])},r.onloadend=function(){n._uploadInfo.count=n.config.singleRequest?0:n._uploadInfo.count-1;for(var e=200===r.status?l.FileStatus.uploaded:l.FileStatus.failed,i=200===r.status&&r.response?JSON.parse(r.response):null,o=0,a=t;o<a.length;o++){var s=a[o];n.data.update(s.id,{status:e}),e===l.FileStatus.uploaded?(n.config.updateFromResponse&&i&&(n.config.singleRequest&&i[s.id]?n.data.update(s.id,i[s.id]):n.config.singleRequest||n.data.update(s.id,i)),n.events.fire(l.UploaderEvents.uploadFile,[s,i])):n.events.fire(l.UploaderEvents.uploadFail,[s])}0===n._uploadInfo.count&&(n.isActive=!1,n.events.fire(l.UploaderEvents.uploadComplete,[n._uploadInfo.files]))},r.send(i)},e.prototype._parseAsWebkitEntry=function(e){for(var n=this,i=[],r=0;r<e.length;r++){var o=e[r].webkitGetAsEntry();o&&i.push(this._traverseFileTree(o))}t.all(i).then((function(){n.config.autosend&&n.send()}))},e.prototype._createFormData=function(t,e){var n=this.config.fieldName,i=new FormData,r=this.config.params;if(e)for(var o in e)i.append(o,e[o]);if(r)for(var o in r)i.append(o,r[o]);for(var a=t.length>1?"[]":"",s=0,l=t;s<l.length;s++){var c=l[s];i.append(n+a,c.file,c.file.name),i.append(n+"_fullname"+a,c.path+c.file.name);var u="object"==typeof c.id?c.id:c.id.toString();i.append(n+"_id"+a,u)}return i},e.prototype._addFile=function(t,e){void 0===e&&(e="");var n={id:(0,o.uid)(),file:t,progress:0,status:l.FileStatus.queue,src:null,path:e};this.data.add(n)},e.prototype._traverseFileTree=function(e){var n=this;return new t((function(o){var a=0,s=function(e,l){if(e.isFile)a++,e.file((function(t){a--,n._addFile(t,l),0===a&&o()}));else if(e.isDirectory){!function(e,l){i(n,void 0,void 0,(function(){var n,c,u,d,h,f=this;return r(this,(function(p){switch(p.label){case 0:return n=[],a++,c=function(){return i(f,void 0,void 0,(function(){var i;return r(this,(function(r){switch(r.label){case 0:return[4,new t((function(t,n){e.readEntries((function(e){t(e)}),(function(t){return n(t)}))}))];case 1:return(i=r.sent()).length>0?(n.push.apply(n,i),[4,c()]):[3,3];case 2:r.sent(),r.label=3;case 3:return[2]}}))}))},[4,c()];case 1:for(p.sent(),u=0,d=n;u<d.length;u++)h=d[u],s(h,l);return 0==--a&&o(),[2]}}))}))}(e.createReader(),l+e.name+"/")}};s(e,"")}))},e}();e.Uploader=c}).call(this,n(5))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.listTemplate=e.gridTemplate=void 0;var i=n(42),r=n(13),o=n(9);e.gridTemplate=function(t){var e=t.status===r.FileStatus.inprogress,n=t.status===r.FileStatus.failed,a=t.status!==r.FileStatus.uploaded,s="dhx_dataview-item--file__";switch(t.status){case r.FileStatus.inprogress:s+="progress";break;case r.FileStatus.queue:s+="queue";break;case r.FileStatus.failed:s+="failed";break;default:s=""}var l="",c="",u="";t.link&&(u=(l=(t.downloadURL||"")+t.link).split("/").pop().split("?")[0]),t.preview&&"string"==typeof t.preview&&(c=(t.downloadURL||"")+t.preview);var d="";if(/image/.exec((0,i.getFileClassName)(t))&&t.preview)if(t.image&&t.image.src)d="style=\"background:url('".concat(t.image.src,"') center center no-repeat;background-size:cover\"");else if(l||c){d="style=\"background:url('".concat(c||l,"') center center no-repeat;background-size:cover\"")}return'<div class="dhx_dataview-item--file '.concat(s,'">\n\t\t<div class="dhx_dataview-item--file-type ').concat((0,i.getFileClassName)(t),'" ').concat(d,"></div>\n\t\t").concat(e?'<div class="dhx_dataview-item--progress-block">\n\t\t\t\t\t<div class="dhx_dataview-item--progress-value">'.concat((100*t.progress).toFixed(1)+"%",'</div>\n\t\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" class="dhx_vault-item--progress-circle" viewBox="0 0 60 60">\n\t\t\t\t\t\t<circle cx="30" cy="30" r="28" stroke-width="4" class="dhx_vault-item--progress-bar-background"></circle>\n\t\t\t\t\t\t<circle cx="30" cy="30" r="28" stroke-width="4" stroke-dasharray="175.9 175.9" stroke-dashoffset="').concat(175.9*(1-t.progress),'" class="active-circle dhx_vault-item--progress-bar-active"></circle>\n\t\t\t\t\t</svg>\n\t\t\t\t</div>'):'<div class="dhx_dataview-item--default-block">\n\t\t\t\t\t'.concat(n?'<div class="dhx_dataview-item--error-mark dxi dxi-alert-circle"></div>':a?'<div class="dhx_dataview-item--error-mark dxi dxi-vault"></div>':'<div class="dhx_dataview-item--success-mark dxi dxi-checkbox-marked-circle"></div>','\n\t\t\t\t</div>\n\t\t\t\t<div class="dhx_dataview-item--hover-block">\n\t\t\t\t\t<div class="dhx_dataview-item--control-block ').concat(n||a||!t.link?"dhx_dataview-item--control-block__withoutLink":"",'">\n\t\t\t\t\t\t').concat(n||a||!t.link?'<div class="dhx_dataview-item--remove-btn dxi dxi-delete-forever"></div>':'<a href="'.concat(l,'" class="dhx_dataview-item--download-btn dxi dxi-download" download="').concat(u,'"></a>\n\t\t\t\t\t\t\t\t\t<div class="dhx_dataview-item--remove-btn dxi dxi-delete-forever"></div>'),"\n\t\t\t\t\t</div>\n\t\t\t\t\t").concat(n?'<div class="dhx_dataview-item--error-text">'.concat(o.default.error,"</div>"):'<div class="dhx_dataview-item--file-size">'.concat((0,i.getBasis)(t.size),"</div>"),"\n\t\t\t\t</div>"),'\n\t\t</div>\n\t<div class="dhx_dataview-item--file-name">').concat((0,i.truncateWord)(t.name),"</div>")};e.listTemplate=function(t){var e=t.status===r.FileStatus.failed,n=t.status===r.FileStatus.inprogress,a=t.status!==r.FileStatus.uploaded&&!e,s="",l="";return t.link&&(l=(s=(t.downloadURL||"")+t.link).split("/").pop().split("?")[0]),'<div class="dhx_list-item--icon '.concat(a?"dhx_list-item--queue":"",'">\n\t\t\t<div class="dhx_list-item--file-type ').concat((0,i.getFileClassName)(t),'"></div>\n\t\t</div>\n\t\t<div class="dhx_list-item--content">\n\t\t').concat(n?'<div class="dhx_list-item--name">'.concat(t.value,".").concat(t.extension,'\n\t\t\t\t\t<p class="dhx_item--progress-value">').concat((100*t.progress).toFixed(1)+"%","</p>\n\t\t\t\t</div>"):'<div class="dhx_list-item--name">'.concat(t.value,".").concat(t.extension,"</div>\n\t\t\t\t\t").concat(e?'<div class="dhx_list-item--error-info">'.concat(o.default.error,"</div>"):"",'\n\t\t\t\t\t<div class="dhx_list-item--size ').concat(e?"error":"",'">').concat((0,i.getBasis)(t.size),"</div>\t\n\t\t\t\t</div>"),"\n\t\t</div>\n\t\t").concat(n?'<div class="dhx_item--download-progress" style="width:'.concat((100*t.progress).toFixed(1),'%"></div>'):'<div class="dhx_item--info">\n\t\t\t\t\t'.concat(e?'<div class="dhx_item--error-mark dxi dxi-alert-circle"></div><div class="dhx_item--btn-remove dxi dxi-delete-forever"></div>':"".concat(a?'<div class="dhx_item--error-mark dxi dxi-vault"></div>':'<div class="dhx_item--success-mark dxi dxi-checkbox-marked-circle"></div>','\n\t\t\t\t\t\t\t<div class="dhx_item--hover-block">\n\t\t\t\t\t\t\t\t').concat(e||a||!t.link?"":'<a href="'.concat(s,'" class="dhx_item--download-btn dxi dxi-download" download="').concat(l,'"></a>'),'\n\t\t\t\t\t\t\t\t<div class="dhx_item--btn-remove dxi dxi-delete-forever"></div>\n\t\t\t\t\t\t\t</div>'),"\n\t\t\t\t</div>"))}},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.ProgressBar=void 0;var o=n(1),a=n(4),s=n(9),l=n(13),c=function(t){function e(e,n){var i=t.call(this,null,n)||this;i.events=e,i._progress=0;return i.mount(null,(0,o.create)({render:function(){return i._draw()}})),i._abortUpload=function(){i.events.fire(l.ProgressBarEvents.cancel)},i}return r(e,t),e.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()},e.prototype._draw=function(){return(0,o.el)(".progress-bar",{_key:this._uid},[(0,o.el)(".progress-indicator",{style:{width:this._progress+"%"}}),(0,o.el)(".progress-text",{".innerHTML":this._progressText}),(0,o.el)("button",{class:"dhx_button dhx_button--color_primary dhx_button--size_small dhx_button--view_flat action-abort-all",type:"button",onclick:this._abortUpload},s.default.cancel)])},e}(a.View);e.ProgressBar=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReadStackPreview=void 0;var i=function(){function t(t){this._readerStack=[],this._isActive=!1,this._data=t}return t.prototype.add=function(t,e){void 0===e&&(e=!1),this._readerStack.push(t),e||this.read()},t.prototype.read=function(){var t=this;if(this._readerStack.length&&!this._isActive){var e=this._readerStack.shift();this._isActive=!0;var n=new FileReader;n.readAsDataURL(e.file),n.onload=function(n){var i=new Image;i.src=n.target.result,i.onload=function(){t._data.exists(e.id)&&t._data.update(e.id,{image:i}),t._isActive=!1,t.read()}},n.onerror=function(){t._isActive=!1,t.read()}}},t.prototype.stop=function(){this._readerStack=[]},t}();e.ReadStackPreview=i},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(43),e),r(n(115),e),r(n(47),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getEditor=void 0;var i=n(111);e.getEditor=function(t,e){return new i.InputEditor(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InputEditor=void 0;var i=n(1),r=n(24),o=function(){function t(t,e){var n=this;this._list=e,this._config=e.config,this._item=t,this._list.events.on(r.ListEvents.focusChange,(function(t,e){n._mode&&e!==n._item.id&&n.endEdit()})),this._initHandlers()}return t.prototype.endEdit=function(){if(this._input){var t=this._input.value;this._list.events.fire(r.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(r.ListEvents.afterEditEnd,[t,this._item.id])):this._input.focus()}},t.prototype.toHTML=function(){this._mode=!0;var t=this._config.itemHeight;return(0,i.el)(".dhx_input__wrapper",{role:"presentation"},[(0,i.el)("div.dhx_input__container",{role:"presentation"},[(0,i.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})])])},t.prototype._initHandlers=function(){var t=this;this._handlers={onBlur:function(){t.endEdit()},onChange:function(){t.endEdit()},onKeyDown:function(e){"Enter"===e.key&&t._item.value===t._input.value&&t.endEdit(),"Escape"===e.key&&(t._input.value=t._item.value,t.endEdit())},didInsert:function(e){var n=e.el;t._input=n,n.focus(),n.value=t._item.value,n.setSelectionRange(0,n.value.length),n.addEventListener("change",t._handlers.onChange),n.addEventListener("blur",t._handlers.onBlur),n.addEventListener("keydown",t._handlers.onKeyDown)}}},t}();e.InputEditor=o},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)},a=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.ProList=void 0;var s=n(1),l=n(14),c=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.scrollView=new l.ScrollView((function(){return i.getRootView()})),i.paint(),i}return r(e,t),e.prototype.destructor=function(){t.prototype.destructor.call(this),this.scrollView=null},e.prototype.scrollTo=function(t){var e,n,i=this.getRootView();if(i&&i.node&&i.node.el&&void 0!==t){var r=(null===(e=this.scrollView)||void 0===e?void 0:e.config.enable)?null===(n=this.getRootNode())||void 0===n?void 0:n.querySelector(".scroll-view"):this.getRootNode();this._scrollTo(t,r)}},e.prototype._renderList=function(){var t=this,e=this._getRange(),n=this.data.getRawData(e[0],e[1]).map((function(e,n){return t._renderItem(e,n)}));this.config.virtual&&(n=a(a([(0,s.el)(".div",{style:{height:e[2]+"px",_key:"start-key"}})],n,!0),[(0,s.el)(".div",{style:{height:e[3]+"px",_key:"end-key"}})],!1));var i=this.scrollView&&this.scrollView.config.enable,r=(this.config.css?this.config.css:"")+(this.config.multiselection&&this.selection.getItem()?" dhx_no-select--pointer":"")+(i?" dhx_list--scroll-view":"");return(0,s.el)("ul.dhx_widget.dhx_list",o(o({style:{"max-height":this.config.height,position:"relative"},id:this._uid,class:r,"data-dhx-widget-id":this._uid,"data-dhx-drop-area":"row"},this._handlers),this._getListAriaAttrs(this.config,this.data.getLength())),i?[].concat(this.scrollView.render(n)):n)},e}(n(45).List);e.ProList=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getEditor=void 0;var i=n(114);e.getEditor=function(t,e){return new i.InputEditor(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InputEditor=void 0;var i=n(1),r=n(47),o=function(){function t(t,e){var n=this;this._dataView=e,this._config=e.config,this._item=t,this._dataView.events.on(r.DataViewEvents.focusChange,(function(t,e){n._mode&&e!==n._item.id&&n.endEdit()})),this._initHandlers()}return t.prototype.endEdit=function(){if(this._input){var t=this._input.value;this._dataView.events.fire(r.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(r.DataViewEvents.afterEditEnd,[t,this._item.id])):this._input.focus()}},t.prototype.toHTML=function(t){this._mode=!0;var e=this._config,n=e.itemsInRow,r=e.gap,o=function(t){return parseFloat(t)};return(0,i.el)(".dhx_input__wrapper",{style:{width:"calc(".concat(100/n,"% - ").concat(o(r)," * ").concat((n-1)/n,"px)"),maxWidth:"calc(".concat(100/n,"% - ").concat(o(r)," * ").concat((n-1)/n,"px)"),marginRight:t?"":r},role:"presentation"},[(0,i.el)("div.dhx_input__container",{style:{height:"100%"},role:"presentation"},[(0,i.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})])])},t.prototype._initHandlers=function(){var t=this;this._handlers={onBlur:function(){t.endEdit()},onChange:function(){t.endEdit()},onKeyDown:function(e){"Enter"===e.key&&t._item.value===t._input.value&&t.endEdit(),"Escape"===e.key&&(t._input.value=t._item.value,t.endEdit())},didInsert:function(e){var n=e.el;t._input=n,n.focus(),n.value=t._item.value,n.setSelectionRange(0,n.value.length),n.addEventListener("change",t._handlers.onChange),n.addEventListener("blur",t._handlers.onBlur),n.addEventListener("keydown",t._handlers.onKeyDown)}}},t}();e.InputEditor=o},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ProDataView=void 0;var a=n(14),s=n(43),l=n(1),c=function(t){function e(e,n){void 0===n&&(n={});var i=t.call(this,e,n)||this;return i.scrollView=new a.ScrollView((function(){return i.getRootView()})),i.paint(),i}return r(e,t),e.prototype.destructor=function(){t.prototype.destructor.call(this),this.scrollView=null},e.prototype.scrollTo=function(t){var e,n,i=this.getRootView();if(i&&i.node&&i.node.el&&void 0!==t){var r=(null===(e=this.scrollView)||void 0===e?void 0:e.config.enable)?null===(n=this.getRootNode())||void 0===n?void 0:n.querySelector(".scroll-view"):this.getRootNode();this._scrollTo(t,r)}},e.prototype._renderList=function(){var t=this,e=this.data.getRawData(0,-1),n=this.config,i=n.itemsInRow,r=n.css,a=n.gap,s=0,c=e.reduce((function(e,n,r){return 0===s&&e.push([]),e[e.length-1].push(t._renderItem(n,r)),s=(s+1)%i,e}),[]),u=c.map((function(t,e){return(0,l.el)(".dhx_dataview-row",{style:{margin:a},"aria-label":"Row ".concat(e+1)},t)})),d=this.scrollView&&this.scrollView.config.enable,h=(r||"")+" dhx_widget dhx_dataview"+(this.config.multiselection&&this.selection.getItem()?" dhx_no-select--pointer":"")+(d?" dhx_dataview--scroll-view":"");return(0,l.el)("",o(o(o({},this._handlers),{"data-dhx-widget-id":this._uid,"data-dhx-drop-area":"row",class:h,style:{height:this.config.height}}),this.getDataViewAriaAttrs(this.config,this.data.getLength(),c.length,i)),d?[this.scrollView.render(u)]:u)},e}(s.DataView);e.ProDataView=c}])})),window.dhx_legacy){if(window.dhx)for(var key in dhx)if("i18n"===key)for(var lang in dhx[key])window.dhx_legacy[key][lang]=dhx[key][lang];else dhx_legacy[key]=dhx[key];window.dhx=dhx_legacy,delete window.dhx_legacy}
|