flexlayout-react 0.6.9 → 0.6.10

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/ChangeLog.txt CHANGED
@@ -1,3 +1,6 @@
1
+ 0.6.10
2
+ fix for #312, chrome warning for wheel event listener
3
+
1
4
  0.6.9
2
5
  fix for #308, Allow dragging within a maximized tabset
3
6
 
@@ -556,7 +556,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
556
556
  \**************************************/
557
557
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
558
558
 
559
- eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.useTabOverflow = void 0;\nvar React = __webpack_require__(/*! react */ \"react\");\nvar Rect_1 = __webpack_require__(/*! ../Rect */ \"./src/Rect.ts\");\nvar TabSetNode_1 = __webpack_require__(/*! ../model/TabSetNode */ \"./src/model/TabSetNode.ts\");\nvar Orientation_1 = __webpack_require__(/*! ../Orientation */ \"./src/Orientation.ts\");\n/** @internal */\nvar useTabOverflow = function (node, orientation, toolbarRef, stickyButtonsRef) {\n var firstRender = React.useRef(true);\n var tabsTruncated = React.useRef(false);\n var lastRect = React.useRef(new Rect_1.Rect(0, 0, 0, 0));\n var selfRef = React.useRef(null);\n var _a = React.useState(0), position = _a[0], setPosition = _a[1];\n var userControlledLeft = React.useRef(false);\n var _b = React.useState([]), hiddenTabs = _b[0], setHiddenTabs = _b[1];\n var lastHiddenCount = React.useRef(0);\n // if selected node or tabset/border rectangle change then unset usercontrolled (so selected tab will be kept in view)\n React.useLayoutEffect(function () {\n userControlledLeft.current = false;\n }, [node.getSelectedNode(), node.getRect().width, node.getRect().height]);\n React.useLayoutEffect(function () {\n updateVisibleTabs();\n });\n React.useEffect(function () {\n var instance = selfRef.current;\n instance.addEventListener('wheel', onWheel);\n return function () {\n instance.removeEventListener('wheel', onWheel);\n };\n }, []);\n // needed to prevent default mouse wheel over tabset/border (cannot do with react event?)\n var onWheel = function (event) {\n event.preventDefault();\n };\n var getNear = function (rect) {\n if (orientation === Orientation_1.Orientation.HORZ) {\n return rect.x;\n }\n else {\n return rect.y;\n }\n };\n var getFar = function (rect) {\n if (orientation === Orientation_1.Orientation.HORZ) {\n return rect.getRight();\n }\n else {\n return rect.getBottom();\n }\n };\n var getSize = function (rect) {\n if (orientation === Orientation_1.Orientation.HORZ) {\n return rect.width;\n }\n else {\n return rect.height;\n }\n };\n var updateVisibleTabs = function () {\n var tabMargin = 2;\n if (firstRender.current === true) {\n tabsTruncated.current = false;\n }\n var nodeRect = node instanceof TabSetNode_1.TabSetNode ? node.getRect() : node.getTabHeaderRect();\n var lastChild = node.getChildren()[node.getChildren().length - 1];\n var stickyButtonsSize = stickyButtonsRef.current === null ? 0 : getSize(stickyButtonsRef.current.getBoundingClientRect());\n if (firstRender.current === true ||\n (lastHiddenCount.current === 0 && hiddenTabs.length !== 0) ||\n nodeRect.width !== lastRect.current.width || // incase rect changed between first render and second\n nodeRect.height !== lastRect.current.height) {\n lastHiddenCount.current = hiddenTabs.length;\n lastRect.current = nodeRect;\n var enabled = node instanceof TabSetNode_1.TabSetNode ? node.isEnableTabStrip() === true : true;\n var endPos = getFar(nodeRect) - stickyButtonsSize;\n if (toolbarRef.current !== null) {\n endPos -= getSize(toolbarRef.current.getBoundingClientRect());\n }\n if (enabled && node.getChildren().length > 0) {\n if (hiddenTabs.length === 0 && position === 0 && getFar(lastChild.getTabRect()) + tabMargin < endPos) {\n return; // nothing to do all tabs are shown in available space\n }\n var shiftPos = 0;\n var selectedTab = node.getSelectedNode();\n if (selectedTab && !userControlledLeft.current) {\n var selectedRect = selectedTab.getTabRect();\n var selectedStart = getNear(selectedRect) - tabMargin;\n var selectedEnd = getFar(selectedRect) + tabMargin;\n // when selected tab is larger than available space then align left\n if (getSize(selectedRect) + 2 * tabMargin >= endPos - getNear(nodeRect)) {\n shiftPos = getNear(nodeRect) - selectedStart;\n }\n else {\n if (selectedEnd > endPos || selectedStart < getNear(nodeRect)) {\n if (selectedStart < getNear(nodeRect)) {\n shiftPos = getNear(nodeRect) - selectedStart;\n }\n // use second if statement to prevent tab moving back then forwards if not enough space for single tab\n if (selectedEnd + shiftPos > endPos) {\n shiftPos = endPos - selectedEnd;\n }\n }\n }\n }\n var extraSpace = Math.max(0, endPos - (getFar(lastChild.getTabRect()) + tabMargin + shiftPos));\n var newPosition = Math.min(0, position + shiftPos + extraSpace);\n // find hidden tabs\n var diff = newPosition - position;\n var hidden = [];\n for (var i = 0; i < node.getChildren().length; i++) {\n var child = node.getChildren()[i];\n if (getNear(child.getTabRect()) + diff < getNear(nodeRect) || getFar(child.getTabRect()) + diff > endPos) {\n hidden.push({ node: child, index: i });\n }\n }\n if (hidden.length > 0) {\n tabsTruncated.current = true;\n }\n firstRender.current = false; // need to do a second render\n setHiddenTabs(hidden);\n setPosition(newPosition);\n }\n }\n else {\n firstRender.current = true;\n }\n };\n var onMouseWheel = function (event) {\n var delta = 0;\n if (Math.abs(event.deltaX) > Math.abs(event.deltaY)) {\n delta = -event.deltaX;\n }\n else {\n delta = -event.deltaY;\n }\n if (event.deltaMode === 1) {\n // DOM_DELTA_LINE\t0x01\tThe delta values are specified in lines.\n delta *= 40;\n }\n setPosition(position + delta);\n userControlledLeft.current = true;\n event.stopPropagation();\n };\n return { selfRef: selfRef, position: position, userControlledLeft: userControlledLeft, hiddenTabs: hiddenTabs, onMouseWheel: onMouseWheel, tabsTruncated: tabsTruncated.current };\n};\nexports.useTabOverflow = useTabOverflow;\n\n\n//# sourceURL=webpack://FlexLayout/./src/view/TabOverflowHook.tsx?");
559
+ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.useTabOverflow = void 0;\nvar React = __webpack_require__(/*! react */ \"react\");\nvar Rect_1 = __webpack_require__(/*! ../Rect */ \"./src/Rect.ts\");\nvar TabSetNode_1 = __webpack_require__(/*! ../model/TabSetNode */ \"./src/model/TabSetNode.ts\");\nvar Orientation_1 = __webpack_require__(/*! ../Orientation */ \"./src/Orientation.ts\");\n/** @internal */\nvar useTabOverflow = function (node, orientation, toolbarRef, stickyButtonsRef) {\n var firstRender = React.useRef(true);\n var tabsTruncated = React.useRef(false);\n var lastRect = React.useRef(new Rect_1.Rect(0, 0, 0, 0));\n var selfRef = React.useRef(null);\n var _a = React.useState(0), position = _a[0], setPosition = _a[1];\n var userControlledLeft = React.useRef(false);\n var _b = React.useState([]), hiddenTabs = _b[0], setHiddenTabs = _b[1];\n var lastHiddenCount = React.useRef(0);\n // if selected node or tabset/border rectangle change then unset usercontrolled (so selected tab will be kept in view)\n React.useLayoutEffect(function () {\n userControlledLeft.current = false;\n }, [node.getSelectedNode(), node.getRect().width, node.getRect().height]);\n React.useLayoutEffect(function () {\n updateVisibleTabs();\n });\n React.useEffect(function () {\n var instance = selfRef.current;\n instance.addEventListener('wheel', onWheel, { passive: false });\n return function () {\n instance.removeEventListener('wheel', onWheel);\n };\n }, []);\n // needed to prevent default mouse wheel over tabset/border (cannot do with react event?)\n var onWheel = function (event) {\n event.preventDefault();\n };\n var getNear = function (rect) {\n if (orientation === Orientation_1.Orientation.HORZ) {\n return rect.x;\n }\n else {\n return rect.y;\n }\n };\n var getFar = function (rect) {\n if (orientation === Orientation_1.Orientation.HORZ) {\n return rect.getRight();\n }\n else {\n return rect.getBottom();\n }\n };\n var getSize = function (rect) {\n if (orientation === Orientation_1.Orientation.HORZ) {\n return rect.width;\n }\n else {\n return rect.height;\n }\n };\n var updateVisibleTabs = function () {\n var tabMargin = 2;\n if (firstRender.current === true) {\n tabsTruncated.current = false;\n }\n var nodeRect = node instanceof TabSetNode_1.TabSetNode ? node.getRect() : node.getTabHeaderRect();\n var lastChild = node.getChildren()[node.getChildren().length - 1];\n var stickyButtonsSize = stickyButtonsRef.current === null ? 0 : getSize(stickyButtonsRef.current.getBoundingClientRect());\n if (firstRender.current === true ||\n (lastHiddenCount.current === 0 && hiddenTabs.length !== 0) ||\n nodeRect.width !== lastRect.current.width || // incase rect changed between first render and second\n nodeRect.height !== lastRect.current.height) {\n lastHiddenCount.current = hiddenTabs.length;\n lastRect.current = nodeRect;\n var enabled = node instanceof TabSetNode_1.TabSetNode ? node.isEnableTabStrip() === true : true;\n var endPos = getFar(nodeRect) - stickyButtonsSize;\n if (toolbarRef.current !== null) {\n endPos -= getSize(toolbarRef.current.getBoundingClientRect());\n }\n if (enabled && node.getChildren().length > 0) {\n if (hiddenTabs.length === 0 && position === 0 && getFar(lastChild.getTabRect()) + tabMargin < endPos) {\n return; // nothing to do all tabs are shown in available space\n }\n var shiftPos = 0;\n var selectedTab = node.getSelectedNode();\n if (selectedTab && !userControlledLeft.current) {\n var selectedRect = selectedTab.getTabRect();\n var selectedStart = getNear(selectedRect) - tabMargin;\n var selectedEnd = getFar(selectedRect) + tabMargin;\n // when selected tab is larger than available space then align left\n if (getSize(selectedRect) + 2 * tabMargin >= endPos - getNear(nodeRect)) {\n shiftPos = getNear(nodeRect) - selectedStart;\n }\n else {\n if (selectedEnd > endPos || selectedStart < getNear(nodeRect)) {\n if (selectedStart < getNear(nodeRect)) {\n shiftPos = getNear(nodeRect) - selectedStart;\n }\n // use second if statement to prevent tab moving back then forwards if not enough space for single tab\n if (selectedEnd + shiftPos > endPos) {\n shiftPos = endPos - selectedEnd;\n }\n }\n }\n }\n var extraSpace = Math.max(0, endPos - (getFar(lastChild.getTabRect()) + tabMargin + shiftPos));\n var newPosition = Math.min(0, position + shiftPos + extraSpace);\n // find hidden tabs\n var diff = newPosition - position;\n var hidden = [];\n for (var i = 0; i < node.getChildren().length; i++) {\n var child = node.getChildren()[i];\n if (getNear(child.getTabRect()) + diff < getNear(nodeRect) || getFar(child.getTabRect()) + diff > endPos) {\n hidden.push({ node: child, index: i });\n }\n }\n if (hidden.length > 0) {\n tabsTruncated.current = true;\n }\n firstRender.current = false; // need to do a second render\n setHiddenTabs(hidden);\n setPosition(newPosition);\n }\n }\n else {\n firstRender.current = true;\n }\n };\n var onMouseWheel = function (event) {\n var delta = 0;\n if (Math.abs(event.deltaX) > Math.abs(event.deltaY)) {\n delta = -event.deltaX;\n }\n else {\n delta = -event.deltaY;\n }\n if (event.deltaMode === 1) {\n // DOM_DELTA_LINE\t0x01\tThe delta values are specified in lines.\n delta *= 40;\n }\n setPosition(position + delta);\n userControlledLeft.current = true;\n event.stopPropagation();\n };\n return { selfRef: selfRef, position: position, userControlledLeft: userControlledLeft, hiddenTabs: hiddenTabs, onMouseWheel: onMouseWheel, tabsTruncated: tabsTruncated.current };\n};\nexports.useTabOverflow = useTabOverflow;\n\n\n//# sourceURL=webpack://FlexLayout/./src/view/TabOverflowHook.tsx?");
560
560
 
561
561
  /***/ }),
562
562
 
Binary file
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports.FlexLayout=e(require("react"),require("react-dom")):t.FlexLayout=e(t.React,t.ReactDOM)}(self,(function(t,e){return(()=>{"use strict";var i={453:(t,e,i)=>{var o;i.r(e),i.d(e,{NIL:()=>w,parse:()=>g,stringify:()=>c,v1:()=>f,v3:()=>L,v4:()=>O,v5:()=>D,validate:()=>s,version:()=>B});var n=new Uint8Array(16);function r(){if(!o&&!(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(n)}const a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,s=function(t){return"string"==typeof t&&a.test(t)};for(var d=[],l=0;l<256;++l)d.push((l+256).toString(16).substr(1));const c=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(d[t[e+0]]+d[t[e+1]]+d[t[e+2]]+d[t[e+3]]+"-"+d[t[e+4]]+d[t[e+5]]+"-"+d[t[e+6]]+d[t[e+7]]+"-"+d[t[e+8]]+d[t[e+9]]+"-"+d[t[e+10]]+d[t[e+11]]+d[t[e+12]]+d[t[e+13]]+d[t[e+14]]+d[t[e+15]]).toLowerCase();if(!s(i))throw TypeError("Stringified UUID is invalid");return i};var u,h,_=0,p=0;const f=function(t,e,i){var o=e&&i||0,n=e||new Array(16),a=(t=t||{}).node||u,s=void 0!==t.clockseq?t.clockseq:h;if(null==a||null==s){var d=t.random||(t.rng||r)();null==a&&(a=u=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==s&&(s=h=16383&(d[6]<<8|d[7]))}var l=void 0!==t.msecs?t.msecs:Date.now(),f=void 0!==t.nsecs?t.nsecs:p+1,g=l-_+(f-p)/1e4;if(g<0&&void 0===t.clockseq&&(s=s+1&16383),(g<0||l>_)&&void 0===t.nsecs&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_=l,p=f,h=s;var T=(1e4*(268435455&(l+=122192928e5))+f)%4294967296;n[o++]=T>>>24&255,n[o++]=T>>>16&255,n[o++]=T>>>8&255,n[o++]=255&T;var v=l/4294967296*1e4&268435455;n[o++]=v>>>8&255,n[o++]=255&v,n[o++]=v>>>24&15|16,n[o++]=v>>>16&255,n[o++]=s>>>8|128,n[o++]=255&s;for(var E=0;E<6;++E)n[o+E]=a[E];return e||c(n)},g=function(t){if(!s(t))throw TypeError("Invalid UUID");var e,i=new Uint8Array(16);return i[0]=(e=parseInt(t.slice(0,8),16))>>>24,i[1]=e>>>16&255,i[2]=e>>>8&255,i[3]=255&e,i[4]=(e=parseInt(t.slice(9,13),16))>>>8,i[5]=255&e,i[6]=(e=parseInt(t.slice(14,18),16))>>>8,i[7]=255&e,i[8]=(e=parseInt(t.slice(19,23),16))>>>8,i[9]=255&e,i[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,i[11]=e/4294967296&255,i[12]=e>>>24&255,i[13]=e>>>16&255,i[14]=e>>>8&255,i[15]=255&e,i};function T(t,e,i){function o(t,o,n,r){if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));for(var e=[],i=0;i<t.length;++i)e.push(t.charCodeAt(i));return e}(t)),"string"==typeof o&&(o=g(o)),16!==o.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+t.length);if(a.set(o),a.set(t,o.length),(a=i(a))[6]=15&a[6]|e,a[8]=63&a[8]|128,n){r=r||0;for(var s=0;s<16;++s)n[r+s]=a[s];return n}return c(a)}try{o.name=t}catch(t){}return o.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",o.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",o}function v(t){return 14+(t+64>>>9<<4)+1}function E(t,e){var i=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(i>>16)<<16|65535&i}function b(t,e,i,o,n,r){return E((a=E(E(e,t),E(o,r)))<<(s=n)|a>>>32-s,i);var a,s}function y(t,e,i,o,n,r,a){return b(e&i|~e&o,t,e,n,r,a)}function m(t,e,i,o,n,r,a){return b(e&o|i&~o,t,e,n,r,a)}function A(t,e,i,o,n,r,a){return b(e^i^o,t,e,n,r,a)}function S(t,e,i,o,n,r,a){return b(i^(e|~o),t,e,n,r,a)}const L=T("v3",48,(function(t){if("string"==typeof t){var e=unescape(encodeURIComponent(t));t=new Uint8Array(e.length);for(var i=0;i<e.length;++i)t[i]=e.charCodeAt(i)}return function(t){for(var e=[],i=32*t.length,o="0123456789abcdef",n=0;n<i;n+=8){var r=t[n>>5]>>>n%32&255,a=parseInt(o.charAt(r>>>4&15)+o.charAt(15&r),16);e.push(a)}return e}(function(t,e){t[e>>5]|=128<<e%32,t[v(e)-1]=e;for(var i=1732584193,o=-271733879,n=-1732584194,r=271733878,a=0;a<t.length;a+=16){var s=i,d=o,l=n,c=r;i=y(i,o,n,r,t[a],7,-680876936),r=y(r,i,o,n,t[a+1],12,-389564586),n=y(n,r,i,o,t[a+2],17,606105819),o=y(o,n,r,i,t[a+3],22,-1044525330),i=y(i,o,n,r,t[a+4],7,-176418897),r=y(r,i,o,n,t[a+5],12,1200080426),n=y(n,r,i,o,t[a+6],17,-1473231341),o=y(o,n,r,i,t[a+7],22,-45705983),i=y(i,o,n,r,t[a+8],7,1770035416),r=y(r,i,o,n,t[a+9],12,-1958414417),n=y(n,r,i,o,t[a+10],17,-42063),o=y(o,n,r,i,t[a+11],22,-1990404162),i=y(i,o,n,r,t[a+12],7,1804603682),r=y(r,i,o,n,t[a+13],12,-40341101),n=y(n,r,i,o,t[a+14],17,-1502002290),i=m(i,o=y(o,n,r,i,t[a+15],22,1236535329),n,r,t[a+1],5,-165796510),r=m(r,i,o,n,t[a+6],9,-1069501632),n=m(n,r,i,o,t[a+11],14,643717713),o=m(o,n,r,i,t[a],20,-373897302),i=m(i,o,n,r,t[a+5],5,-701558691),r=m(r,i,o,n,t[a+10],9,38016083),n=m(n,r,i,o,t[a+15],14,-660478335),o=m(o,n,r,i,t[a+4],20,-405537848),i=m(i,o,n,r,t[a+9],5,568446438),r=m(r,i,o,n,t[a+14],9,-1019803690),n=m(n,r,i,o,t[a+3],14,-187363961),o=m(o,n,r,i,t[a+8],20,1163531501),i=m(i,o,n,r,t[a+13],5,-1444681467),r=m(r,i,o,n,t[a+2],9,-51403784),n=m(n,r,i,o,t[a+7],14,1735328473),i=A(i,o=m(o,n,r,i,t[a+12],20,-1926607734),n,r,t[a+5],4,-378558),r=A(r,i,o,n,t[a+8],11,-2022574463),n=A(n,r,i,o,t[a+11],16,1839030562),o=A(o,n,r,i,t[a+14],23,-35309556),i=A(i,o,n,r,t[a+1],4,-1530992060),r=A(r,i,o,n,t[a+4],11,1272893353),n=A(n,r,i,o,t[a+7],16,-155497632),o=A(o,n,r,i,t[a+10],23,-1094730640),i=A(i,o,n,r,t[a+13],4,681279174),r=A(r,i,o,n,t[a],11,-358537222),n=A(n,r,i,o,t[a+3],16,-722521979),o=A(o,n,r,i,t[a+6],23,76029189),i=A(i,o,n,r,t[a+9],4,-640364487),r=A(r,i,o,n,t[a+12],11,-421815835),n=A(n,r,i,o,t[a+15],16,530742520),i=S(i,o=A(o,n,r,i,t[a+2],23,-995338651),n,r,t[a],6,-198630844),r=S(r,i,o,n,t[a+7],10,1126891415),n=S(n,r,i,o,t[a+14],15,-1416354905),o=S(o,n,r,i,t[a+5],21,-57434055),i=S(i,o,n,r,t[a+12],6,1700485571),r=S(r,i,o,n,t[a+3],10,-1894986606),n=S(n,r,i,o,t[a+10],15,-1051523),o=S(o,n,r,i,t[a+1],21,-2054922799),i=S(i,o,n,r,t[a+8],6,1873313359),r=S(r,i,o,n,t[a+15],10,-30611744),n=S(n,r,i,o,t[a+6],15,-1560198380),o=S(o,n,r,i,t[a+13],21,1309151649),i=S(i,o,n,r,t[a+4],6,-145523070),r=S(r,i,o,n,t[a+11],10,-1120210379),n=S(n,r,i,o,t[a+2],15,718787259),o=S(o,n,r,i,t[a+9],21,-343485551),i=E(i,s),o=E(o,d),n=E(n,l),r=E(r,c)}return[i,o,n,r]}(function(t){if(0===t.length)return[];for(var e=8*t.length,i=new Uint32Array(v(e)),o=0;o<e;o+=8)i[o>>5]|=(255&t[o/8])<<o%32;return i}(t),8*t.length))})),O=function(t,e,i){var o=(t=t||{}).random||(t.rng||r)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e){i=i||0;for(var n=0;n<16;++n)e[i+n]=o[n];return e}return c(o)};function R(t,e,i,o){switch(t){case 0:return e&i^~e&o;case 1:case 3:return e^i^o;case 2:return e&i^e&o^i&o}}function N(t,e){return t<<e|t>>>32-e}const D=T("v5",80,(function(t){var e=[1518500249,1859775393,2400959708,3395469782],i=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){var o=unescape(encodeURIComponent(t));t=[];for(var n=0;n<o.length;++n)t.push(o.charCodeAt(n))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var r=t.length/4+2,a=Math.ceil(r/16),s=new Array(a),d=0;d<a;++d){for(var l=new Uint32Array(16),c=0;c<16;++c)l[c]=t[64*d+4*c]<<24|t[64*d+4*c+1]<<16|t[64*d+4*c+2]<<8|t[64*d+4*c+3];s[d]=l}s[a-1][14]=8*(t.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(t.length-1)&4294967295;for(var u=0;u<a;++u){for(var h=new Uint32Array(80),_=0;_<16;++_)h[_]=s[u][_];for(var p=16;p<80;++p)h[p]=N(h[p-3]^h[p-8]^h[p-14]^h[p-16],1);for(var f=i[0],g=i[1],T=i[2],v=i[3],E=i[4],b=0;b<80;++b){var y=Math.floor(b/20),m=N(f,5)+R(y,g,T,v)+E+e[y]+h[b]>>>0;E=v,v=T,T=N(g,30)>>>0,g=f,f=m}i[0]=i[0]+f>>>0,i[1]=i[1]+g>>>0,i[2]=i[2]+T>>>0,i[3]=i[3]+v>>>0,i[4]=i[4]+E>>>0}return[i[0]>>24&255,i[0]>>16&255,i[0]>>8&255,255&i[0],i[1]>>24&255,i[1]>>16&255,i[1]>>8&255,255&i[1],i[2]>>24&255,i[2]>>16&255,i[2]>>8&255,255&i[2],i[3]>>24&255,i[3]>>16&255,i[3]>>8&255,255&i[3],i[4]>>24&255,i[4]>>16&255,i[4]>>8&255,255&i[4]]})),w="00000000-0000-0000-0000-000000000000",B=function(t){if(!s(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}},92:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Attribute=void 0;var i=function(){function t(t,e,i,o){this.name=t,this.modelName=e,this.defaultValue=i,this.alwaysWriteJson=o,this.required=!1,this.fixed=!1,this.type="any"}return t.prototype.setType=function(t){return this.type=t,this},t.prototype.setRequired=function(){return this.required=!0,this},t.prototype.setFixed=function(){return this.fixed=!0,this},t.NUMBER="number",t.STRING="string",t.BOOLEAN="boolean",t}();e.Attribute=i},99:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeDefinitions=void 0;var o=i(92),n=function(){function t(){this.attributes=[],this.nameToAttribute={}}return t.prototype.addWithAll=function(t,e,i,n){var r=new o.Attribute(t,e,i,n);return this.attributes.push(r),this.nameToAttribute[t]=r,r},t.prototype.addInherited=function(t,e){return this.addWithAll(t,e,void 0,!1)},t.prototype.add=function(t,e,i){return this.addWithAll(t,void 0,e,i)},t.prototype.getAttributes=function(){return this.attributes},t.prototype.getModelName=function(t){var e=this.nameToAttribute[t];if(void 0!==e)return e.modelName},t.prototype.toJson=function(t,e){for(var i=0,o=this.attributes;i<o.length;i++){var n=o[i],r=e[n.name];(n.alwaysWriteJson||r!==n.defaultValue)&&(t[n.name]=r)}},t.prototype.fromJson=function(t,e){for(var i=0,o=this.attributes;i<o.length;i++){var n=o[i],r=t[n.name];e[n.name]=void 0===r?n.defaultValue:r}},t.prototype.update=function(t,e){for(var i=0,o=this.attributes;i<o.length;i++){var n=o[i];if(t.hasOwnProperty(n.name)){var r=t[n.name];void 0===r?delete e[n.name]:e[n.name]=r}}},t.prototype.setDefaults=function(t){for(var e=0,i=this.attributes;e<i.length;e++){var o=i[e];t[o.name]=o.defaultValue}},t.prototype.toTypescriptInterface=function(t,e){var i=[],o=this.attributes.sort((function(t,e){return t.name.localeCompare(e.name)}));i.push("export interface I"+t+"Attributes {");for(var n=0;n<o.length;n++){var r=o[n],a=r.type,s=void 0,d=r,l=void 0;void 0!==d.defaultValue?s=d.defaultValue:void 0!==d.modelName&&void 0!==e&&void 0!==e.nameToAttribute[d.modelName]&&(l=d.modelName,s=(d=e.nameToAttribute[d.modelName]).defaultValue,a=d.type);var c=JSON.stringify(s),u=d.required||d.fixed?"":"?";if(r.fixed)i.push("\t"+r.name+": "+c+";");else{var h=(void 0!==s?"default: "+c:"")+(void 0!==l?" - inherited from global "+l:"");i.push("\t"+r.name+u+": "+a+";"+(h.length>0?" // "+h:""))}}return i.push("}"),i.join("\n")},t}();e.AttributeDefinitions=n},95:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DockLocation=void 0;var o=i(327),n=i(359),r=function(){function t(e,i,o){this._name=e,this._orientation=i,this._indexPlus=o,t.values[this._name]=this}return t.getByName=function(e){return t.values[e]},t.getLocation=function(e,i,o){if(i=(i-e.x)/e.width,o=(o-e.y)/e.height,i>=.25&&i<.75&&o>=.25&&o<.75)return t.CENTER;var n=o>=1-i;return o>=i?n?t.BOTTOM:t.LEFT:n?t.RIGHT:t.TOP},t.prototype.getName=function(){return this._name},t.prototype.getOrientation=function(){return this._orientation},t.prototype.getDockRect=function(e){return this===t.TOP?new n.Rect(e.x,e.y,e.width,e.height/2):this===t.BOTTOM?new n.Rect(e.x,e.getBottom()-e.height/2,e.width,e.height/2):this===t.LEFT?new n.Rect(e.x,e.y,e.width/2,e.height):this===t.RIGHT?new n.Rect(e.getRight()-e.width/2,e.y,e.width/2,e.height):e.clone()},t.prototype.split=function(e,i){return this===t.TOP?{start:new n.Rect(e.x,e.y,e.width,i),end:new n.Rect(e.x,e.y+i,e.width,e.height-i)}:this===t.LEFT?{start:new n.Rect(e.x,e.y,i,e.height),end:new n.Rect(e.x+i,e.y,e.width-i,e.height)}:this===t.RIGHT?{start:new n.Rect(e.getRight()-i,e.y,i,e.height),end:new n.Rect(e.x,e.y,e.width-i,e.height)}:{start:new n.Rect(e.x,e.getBottom()-i,e.width,i),end:new n.Rect(e.x,e.y,e.width,e.height-i)}},t.prototype.reflect=function(){return this===t.TOP?t.BOTTOM:this===t.LEFT?t.RIGHT:this===t.RIGHT?t.LEFT:t.TOP},t.prototype.toString=function(){return"(DockLocation: name="+this._name+", orientation="+this._orientation+")"},t.values={},t.TOP=new t("top",o.Orientation.VERT,0),t.BOTTOM=new t("bottom",o.Orientation.VERT,1),t.LEFT=new t("left",o.Orientation.HORZ,0),t.RIGHT=new t("right",o.Orientation.HORZ,1),t.CENTER=new t("center",o.Orientation.VERT,0),t}();e.DockLocation=r},241:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DragDrop=void 0;var o=i(359),n=!("undefined"==typeof window||!window.document||!window.document.createElement),r=function(){function t(){this._manualGlassManagement=!1,this._startX=0,this._startY=0,this._dragDepth=0,this._glassShowing=!1,this._dragging=!1,this._active=!1,n&&(this._glass=document.createElement("div"),this._glass.style.zIndex="998",this._glass.style.backgroundColor="transparent",this._glass.style.outline="none"),this._defaultGlassCursor="default",this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onKeyPress=this._onKeyPress.bind(this),this._onDragCancel=this._onDragCancel.bind(this),this._onDragEnter=this._onDragEnter.bind(this),this._onDragLeave=this._onDragLeave.bind(this),this.resizeGlass=this.resizeGlass.bind(this),this._lastClick=0,this._clickX=0,this._clickY=0}return t.prototype.addGlass=function(t){var e;this._glassShowing?this._manualGlassManagement=!0:(this._document||(this._document=window.document),this._rootElement||(this._rootElement=this._document.body),this.resizeGlass(),null===(e=this._document.defaultView)||void 0===e||e.addEventListener("resize",this.resizeGlass),this._document.body.appendChild(this._glass),this._glass.tabIndex=-1,this._glass.focus(),this._glass.addEventListener("keydown",this._onKeyPress),this._glass.addEventListener("dragenter",this._onDragEnter,{passive:!1}),this._glass.addEventListener("dragover",this._onMouseMove,{passive:!1}),this._glass.addEventListener("dragleave",this._onDragLeave,{passive:!1}),this._glassShowing=!0,this._fDragCancel=t,this._manualGlassManagement=!1)},t.prototype.resizeGlass=function(){o.Rect.fromElement(this._rootElement).positionElement(this._glass,"fixed")},t.prototype.hideGlass=function(){var t;this._glassShowing&&(this._document.body.removeChild(this._glass),null===(t=this._document.defaultView)||void 0===t||t.removeEventListener("resize",this.resizeGlass),this._glassShowing=!1,this._document=void 0,this._rootElement=void 0,this.setGlassCursorOverride(void 0))},t.prototype._updateGlassCursor=function(){var t;this._glass.style.cursor=null!==(t=this._glassCursorOverride)&&void 0!==t?t:this._defaultGlassCursor},t.prototype._setDefaultGlassCursor=function(t){this._defaultGlassCursor=t,this._updateGlassCursor()},t.prototype.setGlassCursorOverride=function(t){this._glassCursorOverride=t,this._updateGlassCursor()},t.prototype.startDrag=function(t,e,i,o,n,r,a,s,d){if(!(t&&this._lastEvent&&this._lastEvent.type.startsWith("touch")&&t.type.startsWith("mouse")&&t.timeStamp-this._lastEvent.timeStamp<500)){this._lastEvent=t,this._document=s||window.document,this._rootElement=d||this._document.body;var l=this._getLocationEvent(t);this.addGlass(n),this._dragging&&console.warn("this._dragging true on startDrag should never happen"),t?(this._startX=l.clientX,this._startY=l.clientY,window.matchMedia&&!window.matchMedia("(pointer: fine)").matches||this._setDefaultGlassCursor(getComputedStyle(t.target).cursor),this._stopPropagation(t),this._preventDefault(t)):(this._startX=0,this._startY=0,this._setDefaultGlassCursor("default")),this._dragging=!1,this._fDragStart=e,this._fDragMove=i,this._fDragEnd=o,this._fDragCancel=n,this._fClick=r,this._fDblClick=a,this._active=!0,"dragenter"===(null==t?void 0:t.type)?(this._dragDepth=1,this._rootElement.addEventListener("dragenter",this._onDragEnter,{passive:!1}),this._rootElement.addEventListener("dragover",this._onMouseMove,{passive:!1}),this._rootElement.addEventListener("dragleave",this._onDragLeave,{passive:!1}),this._document.addEventListener("dragend",this._onDragCancel,{passive:!1}),this._document.addEventListener("drop",this._onMouseUp,{passive:!1})):(this._document.addEventListener("mouseup",this._onMouseUp,{passive:!1}),this._document.addEventListener("mousemove",this._onMouseMove,{passive:!1}),this._document.addEventListener("touchend",this._onMouseUp,{passive:!1}),this._document.addEventListener("touchmove",this._onMouseMove,{passive:!1}))}},t.prototype.isDragging=function(){return this._dragging},t.prototype.isActive=function(){return this._active},t.prototype.toString=function(){return"(DragDrop: startX="+this._startX+", startY="+this._startY+", dragging="+this._dragging+")"},t.prototype._onKeyPress=function(t){27===t.keyCode&&this._onDragCancel()},t.prototype._onDragCancel=function(){this._rootElement.removeEventListener("dragenter",this._onDragEnter),this._rootElement.removeEventListener("dragover",this._onMouseMove),this._rootElement.removeEventListener("dragleave",this._onDragLeave),this._document.removeEventListener("dragend",this._onDragCancel),this._document.removeEventListener("drop",this._onMouseUp),this._document.removeEventListener("mousemove",this._onMouseMove),this._document.removeEventListener("mouseup",this._onMouseUp),this._document.removeEventListener("touchend",this._onMouseUp),this._document.removeEventListener("touchmove",this._onMouseMove),this.hideGlass(),void 0!==this._fDragCancel&&this._fDragCancel(this._dragging),this._dragging=!1,this._active=!1},t.prototype._getLocationEvent=function(t){var e=t;return t&&t.touches&&(e=t.touches[0]),e},t.prototype._getLocationEventEnd=function(t){var e=t;return t.changedTouches&&(e=t.changedTouches[0]),e},t.prototype._stopPropagation=function(t){t.stopPropagation&&t.stopPropagation()},t.prototype._preventDefault=function(t){return t.preventDefault&&t.cancelable&&t.preventDefault(),t},t.prototype._onMouseMove=function(t){this._lastEvent=t;var e=this._getLocationEvent(t);return this._stopPropagation(t),this._preventDefault(t),!this._dragging&&(Math.abs(this._startX-e.clientX)>5||Math.abs(this._startY-e.clientY)>5)&&(this._dragging=!0,this._fDragStart&&(this._setDefaultGlassCursor("move"),this._dragging=this._fDragStart({clientX:this._startX,clientY:this._startY}))),this._dragging&&this._fDragMove&&this._fDragMove(e),!1},t.prototype._onMouseUp=function(t){this._lastEvent=t;var e=this._getLocationEventEnd(t);if(this._stopPropagation(t),this._preventDefault(t),this._active=!1,this._rootElement.removeEventListener("dragenter",this._onDragEnter),this._rootElement.removeEventListener("dragover",this._onMouseMove),this._rootElement.removeEventListener("dragleave",this._onDragLeave),this._document.removeEventListener("dragend",this._onDragCancel),this._document.removeEventListener("drop",this._onMouseUp),this._document.removeEventListener("mousemove",this._onMouseMove),this._document.removeEventListener("mouseup",this._onMouseUp),this._document.removeEventListener("touchend",this._onMouseUp),this._document.removeEventListener("touchmove",this._onMouseMove),this._manualGlassManagement||this.hideGlass(),this._dragging)this._dragging=!1,this._fDragEnd&&this._fDragEnd(t);else if(this._fDragCancel&&this._fDragCancel(this._dragging),Math.abs(this._startX-e.clientX)<=5&&Math.abs(this._startY-e.clientY)<=5){var i=!1,o=(new Date).getTime();Math.abs(this._clickX-e.clientX)<=5&&Math.abs(this._clickY-e.clientY)<=5&&o-this._lastClick<500&&this._fDblClick&&(this._fDblClick(t),i=!0),!i&&this._fClick&&this._fClick(t),this._lastClick=o,this._clickX=e.clientX,this._clickY=e.clientY}return!1},t.prototype._onDragEnter=function(t){return this._preventDefault(t),this._stopPropagation(t),this._dragDepth++,!1},t.prototype._onDragLeave=function(t){return this._preventDefault(t),this._stopPropagation(t),this._dragDepth--,this._dragDepth<=0&&this._onDragCancel(),!1},t.instance=new t,t}();e.DragDrop=r},34:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DropInfo=void 0;e.DropInfo=function(t,e,i,o,n){this.node=t,this.rect=e,this.location=i,this.index=o,this.className=n}},306:(t,e)=>{var i;Object.defineProperty(e,"__esModule",{value:!0}),e.I18nLabel=void 0,(i=e.I18nLabel||(e.I18nLabel={})).Close_Tab="Close",i.Close_Tabset="Close tabset",i.Move_Tab="Move: ",i.Move_Tabset="Move tabset",i.Maximize="Maximize tabset",i.Restore="Restore tabset",i.Float_Tab="Show selected tab in floating window",i.Overflow_Menu_Tooltip="Hidden tabs",i.Floating_Window_Message="This panel is shown in a floating window",i.Floating_Window_Show_Window="Show window",i.Floating_Window_Dock_Window="Dock window",i.Error_rendering_component="Error rendering component"},327:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Orientation=void 0;var i=function(){function t(t){this._name=t}return t.flip=function(e){return e===t.HORZ?t.VERT:t.HORZ},t.prototype.getName=function(){return this._name},t.prototype.toString=function(){return this._name},t.HORZ=new t("horz"),t.VERT=new t("vert"),t}();e.Orientation=i},119:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.showPopup=void 0;var o=i(899),n=i(241),r=i(398),a=i(176);e.showPopup=function(t,e,i,a,d,l){var c=a.getRootDiv(),u=a.getClassName,h=t.ownerDocument,_=t.getBoundingClientRect(),p=c.getBoundingClientRect(),f=h.createElement("div");f.className=u(r.CLASSES.FLEXLAYOUT__POPUP_MENU_CONTAINER),_.left<p.left+p.width/2?f.style.left=_.left-p.left+"px":f.style.right=p.right-_.right+"px",_.top<p.top+p.height/2?f.style.top=_.top-p.top+"px":f.style.bottom=p.bottom-_.bottom+"px",n.DragDrop.instance.addGlass((function(){return g()})),n.DragDrop.instance.setGlassCursorOverride("default"),c.appendChild(f);var g=function(){a.hidePortal(),n.DragDrop.instance.hideGlass(),c.removeChild(f),f.removeEventListener("mousedown",T),h.removeEventListener("mousedown",v)},T=function(t){t.stopPropagation()},v=function(t){g()};f.addEventListener("mousedown",T),h.addEventListener("mousedown",v),a.showPortal(o.createElement(s,{currentDocument:h,onSelect:i,onHide:g,items:e,classNameMapper:u,layout:a,iconFactory:d,titleFactory:l}),f)};var s=function(t){var e=t.items,i=t.onHide,n=t.onSelect,s=t.classNameMapper,d=t.layout,l=t.iconFactory,c=t.titleFactory,u=e.map((function(t,e){return o.createElement("div",{key:t.index,className:s(r.CLASSES.FLEXLAYOUT__POPUP_MENU_ITEM),"data-layout-path":"/popup-menu/tb"+e,onClick:function(e){return function(t,e){n(t),i(),e.stopPropagation()}(t,e)},title:t.node.getHelpText()},t.node.getModel().isLegacyOverflowMenu()?t.node._getNameForOverflowMenu():o.createElement(a.TabButtonStamp,{node:t.node,layout:d,iconFactory:l,titleFactory:c}))}));return o.createElement("div",{className:s(r.CLASSES.FLEXLAYOUT__POPUP_MENU),"data-layout-path":"/popup-menu"},u)}},359:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Rect=void 0;var o=i(327),n=function(){function t(t,e,i,o){this.x=t,this.y=e,this.width=i,this.height=o}return t.empty=function(){return new t(0,0,0,0)},t.fromElement=function(e){var i=e.getBoundingClientRect();return new t(i.x,i.y,i.width,i.height)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.equals=function(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height},t.prototype.getBottom=function(){return this.y+this.height},t.prototype.getRight=function(){return this.x+this.width},t.prototype.getCenter=function(){return{x:this.x+this.width/2,y:this.y+this.height/2}},t.prototype.positionElement=function(t,e){this.styleWithPosition(t.style,e)},t.prototype.styleWithPosition=function(t,e){return void 0===e&&(e="absolute"),t.left=this.x+"px",t.top=this.y+"px",t.width=Math.max(0,this.width)+"px",t.height=Math.max(0,this.height)+"px",t.position=e,t},t.prototype.contains=function(t,e){return this.x<=t&&t<=this.getRight()&&this.y<=e&&e<=this.getBottom()},t.prototype.removeInsets=function(e){return new t(this.x+e.left,this.y+e.top,Math.max(0,this.width-e.left-e.right),Math.max(0,this.height-e.top-e.bottom))},t.prototype.centerInRect=function(t){this.x=(t.width-this.width)/2,this.y=(t.height-this.height)/2},t.prototype._getSize=function(t){var e=this.width;return t===o.Orientation.VERT&&(e=this.height),e},t.prototype.toString=function(){return"(Rect: x="+this.x+", y="+this.y+", width="+this.width+", height="+this.height+")"},t}();e.Rect=n},398:(t,e)=>{var i;Object.defineProperty(e,"__esModule",{value:!0}),e.CLASSES=void 0,(i=e.CLASSES||(e.CLASSES={})).FLEXLAYOUT__BORDER="flexlayout__border",i.FLEXLAYOUT__BORDER_="flexlayout__border_",i.FLEXLAYOUT__BORDER_BUTTON="flexlayout__border_button",i.FLEXLAYOUT__BORDER_BUTTON_="flexlayout__border_button_",i.FLEXLAYOUT__BORDER_BUTTON_CONTENT="flexlayout__border_button_content",i.FLEXLAYOUT__BORDER_BUTTON_LEADING="flexlayout__border_button_leading",i.FLEXLAYOUT__BORDER_BUTTON_TRAILING="flexlayout__border_button_trailing",i.FLEXLAYOUT__BORDER_BUTTON__SELECTED="flexlayout__border_button--selected",i.FLEXLAYOUT__BORDER_BUTTON__UNSELECTED="flexlayout__border_button--unselected",i.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_OVERFLOW="flexlayout__border_toolbar_button_overflow",i.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_OVERFLOW_="flexlayout__border_toolbar_button_overflow_",i.FLEXLAYOUT__BORDER_INNER="flexlayout__border_inner",i.FLEXLAYOUT__BORDER_INNER_="flexlayout__border_inner_",i.FLEXLAYOUT__BORDER_INNER_TAB_CONTAINER="flexlayout__border_inner_tab_container",i.FLEXLAYOUT__BORDER_INNER_TAB_CONTAINER_="flexlayout__border_inner_tab_container_",i.FLEXLAYOUT__BORDER_TAB_DIVIDER="flexlayout__border_tab_divider",i.FLEXLAYOUT__BORDER_SIZER="flexlayout__border_sizer",i.FLEXLAYOUT__BORDER_TOOLBAR="flexlayout__border_toolbar",i.FLEXLAYOUT__BORDER_TOOLBAR_="flexlayout__border_toolbar_",i.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON="flexlayout__border_toolbar_button",i.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_FLOAT="flexlayout__border_toolbar_button-float",i.FLEXLAYOUT__DRAG_RECT="flexlayout__drag_rect",i.FLEXLAYOUT__EDGE_RECT="flexlayout__edge_rect",i.FLEXLAYOUT__ERROR_BOUNDARY_CONTAINER="flexlayout__error_boundary_container",i.FLEXLAYOUT__ERROR_BOUNDARY_CONTENT="flexlayout__error_boundary_content",i.FLEXLAYOUT__FLOATING_WINDOW_CONTENT="flexlayout__floating_window_content",i.FLEXLAYOUT__FLOATING_WINDOW_TAB="flexlayout__floating_window_tab",i.FLEXLAYOUT__LAYOUT="flexlayout__layout",i.FLEXLAYOUT__OUTLINE_RECT="flexlayout__outline_rect",i.FLEXLAYOUT__OUTLINE_RECT_EDGE="flexlayout__outline_rect_edge",i.FLEXLAYOUT__SPLITTER="flexlayout__splitter",i.FLEXLAYOUT__SPLITTER_EXTRA="flexlayout__splitter_extra",i.FLEXLAYOUT__SPLITTER_="flexlayout__splitter_",i.FLEXLAYOUT__SPLITTER_BORDER="flexlayout__splitter_border",i.FLEXLAYOUT__SPLITTER_DRAG="flexlayout__splitter_drag",i.FLEXLAYOUT__TAB="flexlayout__tab",i.FLEXLAYOUT__TABSET="flexlayout__tabset",i.FLEXLAYOUT__TABSET_HEADER="flexlayout__tabset_header",i.FLEXLAYOUT__TABSET_HEADER_SIZER="flexlayout__tabset_header_sizer",i.FLEXLAYOUT__TABSET_HEADER_CONTENT="flexlayout__tabset_header_content",i.FLEXLAYOUT__TABSET_MAXIMIZED="flexlayout__tabset-maximized",i.FLEXLAYOUT__TABSET_SELECTED="flexlayout__tabset-selected",i.FLEXLAYOUT__TABSET_SIZER="flexlayout__tabset_sizer",i.FLEXLAYOUT__TABSET_TAB_DIVIDER="flexlayout__tabset_tab_divider",i.FLEXLAYOUT__TABSET_CONTENT="flexlayout__tabset_content",i.FLEXLAYOUT__TABSET_TABBAR_INNER="flexlayout__tabset_tabbar_inner",i.FLEXLAYOUT__TABSET_TABBAR_INNER_="flexlayout__tabset_tabbar_inner_",i.FLEXLAYOUT__TABSET_TABBAR_INNER_TAB_CONTAINER="flexlayout__tabset_tabbar_inner_tab_container",i.FLEXLAYOUT__TABSET_TABBAR_INNER_TAB_CONTAINER_="flexlayout__tabset_tabbar_inner_tab_container_",i.FLEXLAYOUT__TABSET_TABBAR_OUTER="flexlayout__tabset_tabbar_outer",i.FLEXLAYOUT__TABSET_TABBAR_OUTER_="flexlayout__tabset_tabbar_outer_",i.FLEXLAYOUT__TAB_BORDER="flexlayout__tab_border",i.FLEXLAYOUT__TAB_BORDER_="flexlayout__tab_border_",i.FLEXLAYOUT__TAB_BUTTON="flexlayout__tab_button",i.FLEXLAYOUT__TAB_BUTTON_CONTENT="flexlayout__tab_button_content",i.FLEXLAYOUT__TAB_BUTTON_LEADING="flexlayout__tab_button_leading",i.FLEXLAYOUT__TAB_BUTTON_OVERFLOW="flexlayout__tab_button_overflow",i.FLEXLAYOUT__TAB_BUTTON_OVERFLOW_COUNT="flexlayout__tab_button_overflow_count",i.FLEXLAYOUT__TAB_BUTTON_TEXTBOX="flexlayout__tab_button_textbox",i.FLEXLAYOUT__TAB_BUTTON_TRAILING="flexlayout__tab_button_trailing",i.FLEXLAYOUT__TAB_BUTTON_STAMP="flexlayout__tab_button_stamp",i.FLEXLAYOUT__TAB_FLOATING="flexlayout__tab_floating",i.FLEXLAYOUT__TAB_FLOATING_INNER="flexlayout__tab_floating_inner",i.FLEXLAYOUT__TAB_TOOLBAR="flexlayout__tab_toolbar",i.FLEXLAYOUT__TAB_TOOLBAR_BUTTON="flexlayout__tab_toolbar_button",i.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_="flexlayout__tab_toolbar_button-",i.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_FLOAT="flexlayout__tab_toolbar_button-float",i.FLEXLAYOUT__TAB_TOOLBAR_STICKY_BUTTONS_CONTAINER="flexlayout__tab_toolbar_sticky_buttons_container",i.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_CLOSE="flexlayout__tab_toolbar_button-close",i.FLEXLAYOUT__POPUP_MENU_CONTAINER="flexlayout__popup_menu_container",i.FLEXLAYOUT__POPUP_MENU_ITEM="flexlayout__popup_menu_item",i.FLEXLAYOUT__POPUP_MENU="flexlayout__popup_menu"},607:function(t,e,i){var o=this&&this.__createBinding||(Object.create?function(t,e,i,o){void 0===o&&(o=i),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,o){void 0===o&&(o=i),t[o]=e[i]}),n=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||o(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(i(175),e),n(i(987),e),n(i(920),e),n(i(907),e),n(i(271),e),n(i(138),e),n(i(23),e),n(i(865),e),n(i(229),e),n(i(627),e),n(i(103),e),n(i(179),e),n(i(618),e),n(i(275),e),n(i(657),e),n(i(95),e),n(i(241),e),n(i(34),e),n(i(306),e),n(i(327),e),n(i(359),e),n(i(398),e)},987:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Action=void 0;e.Action=function(t,e){this.type=t,this.data=e}},920:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Actions=void 0;var o=i(987),n=function(){function t(){}return t.addNode=function(e,i,n,r,a){return new o.Action(t.ADD_NODE,{json:e,toNode:i,location:n.getName(),index:r,select:a})},t.moveNode=function(e,i,n,r,a){return new o.Action(t.MOVE_NODE,{fromNode:e,toNode:i,location:n.getName(),index:r,select:a})},t.deleteTab=function(e){return new o.Action(t.DELETE_TAB,{node:e})},t.deleteTabset=function(e){return new o.Action(t.DELETE_TABSET,{node:e})},t.renameTab=function(e,i){return new o.Action(t.RENAME_TAB,{node:e,text:i})},t.selectTab=function(e){return new o.Action(t.SELECT_TAB,{tabNode:e})},t.setActiveTabset=function(e){return new o.Action(t.SET_ACTIVE_TABSET,{tabsetNode:e})},t.adjustSplit=function(e){var i=e.node1Id,n=e.node2Id;return new o.Action(t.ADJUST_SPLIT,{node1:i,weight1:e.weight1,pixelWidth1:e.pixelWidth1,node2:n,weight2:e.weight2,pixelWidth2:e.pixelWidth2})},t.adjustBorderSplit=function(e,i){return new o.Action(t.ADJUST_BORDER_SPLIT,{node:e,pos:i})},t.maximizeToggle=function(e){return new o.Action(t.MAXIMIZE_TOGGLE,{node:e})},t.updateModelAttributes=function(e){return new o.Action(t.UPDATE_MODEL_ATTRIBUTES,{json:e})},t.updateNodeAttributes=function(e,i){return new o.Action(t.UPDATE_NODE_ATTRIBUTES,{node:e,json:i})},t.floatTab=function(e){return new o.Action(t.FLOAT_TAB,{node:e})},t.unFloatTab=function(e){return new o.Action(t.UNFLOAT_TAB,{node:e})},t.ADD_NODE="FlexLayout_AddNode",t.MOVE_NODE="FlexLayout_MoveNode",t.DELETE_TAB="FlexLayout_DeleteTab",t.DELETE_TABSET="FlexLayout_DeleteTabset",t.RENAME_TAB="FlexLayout_RenameTab",t.SELECT_TAB="FlexLayout_SelectTab",t.SET_ACTIVE_TABSET="FlexLayout_SetActiveTabset",t.ADJUST_SPLIT="FlexLayout_AdjustSplit",t.ADJUST_BORDER_SPLIT="FlexLayout_AdjustBorderSplit",t.MAXIMIZE_TOGGLE="FlexLayout_MaximizeToggle",t.UPDATE_MODEL_ATTRIBUTES="FlexLayout_UpdateModelAttributes",t.UPDATE_NODE_ATTRIBUTES="FlexLayout_UpdateNodeAttributes",t.FLOAT_TAB="FlexLayout_FloatTab",t.UNFLOAT_TAB="FlexLayout_UnFloatTab",t}();e.Actions=n},907:function(t,e,i){var o,n=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},o(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 i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.BorderNode=void 0;var r=i(92),a=i(99),s=i(95),d=i(34),l=i(327),c=i(359),u=i(398),h=i(103),_=i(618),p=i(275),f=i(494),g=function(t){function e(i,o,n){var r=t.call(this,n)||this;return r._adjustedSize=0,r._calculatedBorderBarSize=0,r._location=i,r._drawChildren=[],r._attributes.id="border_".concat(i.getName()),e._attributeDefinitions.fromJson(o,r._attributes),n._addNode(r),r}return n(e,t),e._fromJson=function(t,i){var o=new e(s.DockLocation.getByName(t.location),t,i);return t.children&&(o._children=t.children.map((function(t){var e=p.TabNode._fromJson(t,i);return e._setParent(o),e}))),o},e._createAttributeDefinitions=function(){var t=new a.AttributeDefinitions;return t.add("type",e.TYPE,!0).setType(r.Attribute.STRING).setFixed(),t.add("selected",-1).setType(r.Attribute.NUMBER),t.add("show",!0).setType(r.Attribute.BOOLEAN),t.add("config",void 0).setType("any"),t.addInherited("barSize","borderBarSize").setType(r.Attribute.NUMBER),t.addInherited("enableDrop","borderEnableDrop").setType(r.Attribute.BOOLEAN),t.addInherited("className","borderClassName").setType(r.Attribute.STRING),t.addInherited("autoSelectTabWhenOpen","borderAutoSelectTabWhenOpen").setType(r.Attribute.BOOLEAN),t.addInherited("autoSelectTabWhenClosed","borderAutoSelectTabWhenClosed").setType(r.Attribute.BOOLEAN),t.addInherited("size","borderSize").setType(r.Attribute.NUMBER),t.addInherited("minSize","borderMinSize").setType(r.Attribute.NUMBER),t.addInherited("enableAutoHide","borderEnableAutoHide").setType(r.Attribute.BOOLEAN),t},e.prototype.getLocation=function(){return this._location},e.prototype.getTabHeaderRect=function(){return this._tabHeaderRect},e.prototype.getRect=function(){return this._tabHeaderRect},e.prototype.getContentRect=function(){return this._contentRect},e.prototype.isEnableDrop=function(){return this._getAttr("enableDrop")},e.prototype.isAutoSelectTab=function(t){return null==t&&(t=-1!==this.getSelected()),t?this._getAttr("autoSelectTabWhenOpen"):this._getAttr("autoSelectTabWhenClosed")},e.prototype.getClassName=function(){return this._getAttr("className")},e.prototype.calcBorderBarSize=function(t){var e=this._getAttr("barSize");this._calculatedBorderBarSize=0!==e?e:t.borderBarSize},e.prototype.getBorderBarSize=function(){return this._calculatedBorderBarSize},e.prototype.getSize=function(){var t=this._getAttr("size"),e=this.getSelected();if(-1===e)return t;var i=this._children[e],o=this._location._orientation===l.Orientation.HORZ?i._getAttr("borderWidth"):i._getAttr("borderHeight");return-1===o?t:o},e.prototype.getMinSize=function(){return this._getAttr("minSize")},e.prototype.getSelected=function(){return this._attributes.selected},e.prototype.getSelectedNode=function(){if(-1!==this.getSelected())return this._children[this.getSelected()]},e.prototype.getOrientation=function(){return this._location.getOrientation()},e.prototype.getConfig=function(){return this._attributes.config},e.prototype.isMaximized=function(){return!1},e.prototype.isShowing=function(){return!(!this._attributes.show||this._model._getShowHiddenBorder()!==this._location&&this.isAutoHide()&&0===this._children.length)},e.prototype.isAutoHide=function(){return this._getAttr("enableAutoHide")},e.prototype._setSelected=function(t){this._attributes.selected=t},e.prototype._setSize=function(t){var e=this.getSelected();if(-1===e)this._attributes.size=t;else{var i=this._children[e];-1===(this._location._orientation===l.Orientation.HORZ?i._getAttr("borderWidth"):i._getAttr("borderHeight"))?this._attributes.size=t:this._location._orientation===l.Orientation.HORZ?i._setBorderWidth(t):i._setBorderHeight(t)}},e.prototype._updateAttrs=function(t){e._attributeDefinitions.update(t,this._attributes)},e.prototype._getDrawChildren=function(){return this._drawChildren},e.prototype._setAdjustedSize=function(t){this._adjustedSize=t},e.prototype._getAdjustedSize=function(){return this._adjustedSize},e.prototype._layoutBorderOuter=function(t,e){this.calcBorderBarSize(e);var i=this._location.split(t,this.getBorderBarSize());return this._tabHeaderRect=i.start,i.end},e.prototype._layoutBorderInner=function(t,e){this._drawChildren=[];var i=this._location,o=i.split(t,this._adjustedSize+this._model.getSplitterSize()),n=i.reflect().split(o.start,this._model.getSplitterSize());this._contentRect=n.end;for(var r=0;r<this._children.length;r++){var a=this._children[r];a._layout(this._contentRect,e),a._setVisible(r===this.getSelected()),this._drawChildren.push(a)}if(-1===this.getSelected())return t;var s=new _.SplitterNode(this._model);return s._setParent(this),s._setRect(n.start),this._drawChildren.push(s),o.end},e.prototype._remove=function(t){var e=this._removeChild(t);-1!==this.getSelected()&&(0,f.adjustSelectedIndex)(this,e)},e.prototype.canDrop=function(t,e,i){if(t.getType()===p.TabNode.TYPE){var o,n=s.DockLocation.CENTER;if(this._tabHeaderRect.contains(e,i)){if(this._location._orientation===l.Orientation.VERT)if(this._children.length>0){for(var r=(T=this._children[0].getTabRect()).y,a=T.height,h=this._tabHeaderRect.x,_=0,f=0;f<this._children.length;f++){if(_=(T=this._children[f].getTabRect()).x+T.width/2,e>=h&&e<_){var g=new c.Rect(T.x-2,r,3,a);o=new d.DropInfo(this,g,n,f,u.CLASSES.FLEXLAYOUT__OUTLINE_RECT);break}h=_}null==o&&(g=new c.Rect(T.getRight()-2,r,3,a),o=new d.DropInfo(this,g,n,this._children.length,u.CLASSES.FLEXLAYOUT__OUTLINE_RECT))}else g=new c.Rect(this._tabHeaderRect.x+1,this._tabHeaderRect.y+2,3,18),o=new d.DropInfo(this,g,n,0,u.CLASSES.FLEXLAYOUT__OUTLINE_RECT);else if(this._children.length>0){var T,v=(T=this._children[0].getTabRect()).x,E=T.width;for(h=this._tabHeaderRect.y,_=0,f=0;f<this._children.length;f++){if(_=(T=this._children[f].getTabRect()).y+T.height/2,i>=h&&i<_){g=new c.Rect(v,T.y-2,E,3),o=new d.DropInfo(this,g,n,f,u.CLASSES.FLEXLAYOUT__OUTLINE_RECT);break}h=_}null==o&&(g=new c.Rect(v,T.getBottom()-2,E,3),o=new d.DropInfo(this,g,n,this._children.length,u.CLASSES.FLEXLAYOUT__OUTLINE_RECT))}else g=new c.Rect(this._tabHeaderRect.x+2,this._tabHeaderRect.y+1,18,3),o=new d.DropInfo(this,g,n,0,u.CLASSES.FLEXLAYOUT__OUTLINE_RECT);if(!t._canDockInto(t,o))return}else if(-1!==this.getSelected()&&this._contentRect.contains(e,i)&&(g=this._contentRect,o=new d.DropInfo(this,g,n,-1,u.CLASSES.FLEXLAYOUT__OUTLINE_RECT),!t._canDockInto(t,o)))return;return o}},e.prototype.drop=function(t,e,i,o){var n=0,r=t.getParent();void 0!==r&&(n=r._removeChild(t),(0,f.adjustSelectedIndex)(r,n)),t.getType()===p.TabNode.TYPE&&r===this&&n<i&&i>0&&i--;var a=i;-1===a&&(a=this._children.length),t.getType()===p.TabNode.TYPE&&this._addChild(t,a),(o||!1!==o&&this.isAutoSelectTab())&&this._setSelected(a),this._model._tidy()},e.prototype.toJson=function(){var t={};return e._attributeDefinitions.toJson(t,this._attributes),t.location=this._location.getName(),t.children=this._children.map((function(t){return t.toJson()})),t},e.prototype._getSplitterBounds=function(t,e){void 0===e&&(e=!1);var i=[0,0],o=e?this.getMinSize():0,n=this._model._getOuterInnerRects().outer,r=this._model._getOuterInnerRects().inner,a=this._model.getRoot();return this._location===s.DockLocation.TOP?(i[0]=n.y+o,i[1]=Math.max(i[0],r.getBottom()-t.getHeight()-a.getMinHeight())):this._location===s.DockLocation.LEFT?(i[0]=n.x+o,i[1]=Math.max(i[0],r.getRight()-t.getWidth()-a.getMinWidth())):this._location===s.DockLocation.BOTTOM?(i[1]=n.getBottom()-t.getHeight()-o,i[0]=Math.min(i[1],r.y+a.getMinHeight())):this._location===s.DockLocation.RIGHT&&(i[1]=n.getRight()-t.getWidth()-o,i[0]=Math.min(i[1],r.x+a.getMinWidth())),i},e.prototype._calculateSplit=function(t,e){var i=this._getSplitterBounds(t);return this._location===s.DockLocation.BOTTOM||this._location===s.DockLocation.RIGHT?Math.max(0,i[1]-e):Math.max(0,e-i[0])},e.prototype._getAttributeDefinitions=function(){return e._attributeDefinitions},e.getAttributeDefinitions=function(){return e._attributeDefinitions},e.TYPE="border",e._attributeDefinitions=e._createAttributeDefinitions(),e}(h.Node);e.BorderNode=g},271:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BorderSet=void 0;var o=i(327),n=i(907),r=function(){function t(t){this._model=t,this._borders=[]}return t._fromJson=function(e,i){var o=new t(i);return o._borders=e.map((function(t){return n.BorderNode._fromJson(t,i)})),o},t.prototype.getBorders=function(){return this._borders},t.prototype._forEachNode=function(t){for(var e=0,i=this._borders;e<i.length;e++){var o=i[e];t(o,0);for(var n=0,r=o.getChildren();n<r.length;n++)r[n]._forEachNode(t,1)}},t.prototype._toJson=function(){return this._borders.map((function(t){return t.toJson()}))},t.prototype._layoutBorder=function(t,e){for(var i=t.outer,n=this._model.getRoot(),r=Math.max(0,i.height-n.getMinHeight()),a=Math.max(0,i.width-n.getMinWidth()),s=0,d=0,l=0,c=0,u=this._borders.filter((function(t){return t.isShowing()})),h=0,_=u;h<_.length;h++){(b=_[h])._setAdjustedSize(b.getSize());var p=-1!==b.getSelected();b.getLocation().getOrientation()===o.Orientation.HORZ?(d+=b.getBorderBarSize(),p&&(a-=this._model.getSplitterSize(),d+=b.getSize(),c+=b.getSize())):(s+=b.getBorderBarSize(),p&&(r-=this._model.getSplitterSize(),s+=b.getSize(),l+=b.getSize()))}for(var f=0,g=!1;d>a&&c>0||s>r&&l>0;){if(-1!==(b=u[f]).getSelected()){var T=b._getAdjustedSize();d>a&&c>0&&b.getLocation().getOrientation()===o.Orientation.HORZ&&T>0&&T>b.getMinSize()?(b._setAdjustedSize(T-1),d--,c--,g=!0):s>r&&l>0&&b.getLocation().getOrientation()===o.Orientation.VERT&&T>0&&T>b.getMinSize()&&(b._setAdjustedSize(T-1),s--,l--,g=!0)}if(0==(f=(f+1)%u.length)){if(!g)break;g=!1}}for(var v=0,E=u;v<E.length;v++){var b=E[v];t.outer=b._layoutBorderOuter(t.outer,e)}t.inner=t.outer;for(var y=0,m=u;y<m.length;y++)b=m[y],t.inner=b._layoutBorderInner(t.inner,e);return t},t.prototype._findDropTargetNode=function(t,e,i){for(var o=0,n=this._borders;o<n.length;o++){var r=n[o];if(r.isShowing()){var a=r.canDrop(t,e,i);if(void 0!==a)return a}}},t}();e.BorderSet=r},138:(t,e)=>{var i;Object.defineProperty(e,"__esModule",{value:!0}),e.ICloseType=void 0,(i=e.ICloseType||(e.ICloseType={}))[i.Visible=1]="Visible",i[i.Always=2]="Always",i[i.Selected=3]="Selected"},23:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},865:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},229:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},627:function(t,e,i){var o=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var o,n=0,r=e.length;n<r;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Model=void 0;var n=i(453),r=i(92),a=i(99),s=i(95),d=i(327),l=i(359),c=i(920),u=i(907),h=i(271),_=i(179),p=i(275),f=i(657),g=i(494),T=function(){function t(){this._borderRects={inner:l.Rect.empty(),outer:l.Rect.empty()},this._attributes={},this._idMap={},this._borders=new h.BorderSet(this),this._pointerFine=!0,this._showHiddenBorder=s.DockLocation.CENTER}return t.fromJson=function(e){var i=new t;return t._attributeDefinitions.fromJson(e.global,i._attributes),e.borders&&(i._borders=h.BorderSet._fromJson(e.borders,i)),i._root=_.RowNode._fromJson(e.layout,i),i._tidy(),i},t._createAttributeDefinitions=function(){var t=new a.AttributeDefinitions;return t.add("legacyOverflowMenu",!1).setType(r.Attribute.BOOLEAN),t.add("splitterSize",-1).setType(r.Attribute.NUMBER),t.add("splitterExtra",0).setType(r.Attribute.NUMBER),t.add("enableEdgeDock",!0).setType(r.Attribute.BOOLEAN),t.add("rootOrientationVertical",!1).setType(r.Attribute.BOOLEAN),t.add("marginInsets",{top:0,right:0,bottom:0,left:0}).setType("IInsets"),t.add("enableUseVisibility",!1).setType(r.Attribute.BOOLEAN),t.add("tabEnableClose",!0).setType(r.Attribute.BOOLEAN),t.add("tabCloseType",1).setType("ICloseType"),t.add("tabEnableFloat",!1).setType(r.Attribute.BOOLEAN),t.add("tabEnableDrag",!0).setType(r.Attribute.BOOLEAN),t.add("tabEnableRename",!0).setType(r.Attribute.BOOLEAN),t.add("tabClassName",void 0).setType(r.Attribute.STRING),t.add("tabIcon",void 0).setType(r.Attribute.STRING),t.add("tabEnableRenderOnDemand",!0).setType(r.Attribute.BOOLEAN),t.add("tabDragSpeed",.3).setType(r.Attribute.NUMBER),t.add("tabBorderWidth",-1).setType(r.Attribute.NUMBER),t.add("tabBorderHeight",-1).setType(r.Attribute.NUMBER),t.add("tabSetEnableDeleteWhenEmpty",!0).setType(r.Attribute.BOOLEAN),t.add("tabSetEnableDrop",!0).setType(r.Attribute.BOOLEAN),t.add("tabSetEnableDrag",!0).setType(r.Attribute.BOOLEAN),t.add("tabSetEnableDivide",!0).setType(r.Attribute.BOOLEAN),t.add("tabSetEnableMaximize",!0).setType(r.Attribute.BOOLEAN),t.add("tabSetEnableClose",!1).setType(r.Attribute.BOOLEAN),t.add("tabSetAutoSelectTab",!0).setType(r.Attribute.BOOLEAN),t.add("tabSetClassNameTabStrip",void 0).setType(r.Attribute.STRING),t.add("tabSetClassNameHeader",void 0).setType(r.Attribute.STRING),t.add("tabSetEnableTabStrip",!0).setType(r.Attribute.BOOLEAN),t.add("tabSetHeaderHeight",0).setType(r.Attribute.NUMBER),t.add("tabSetTabStripHeight",0).setType(r.Attribute.NUMBER),t.add("tabSetMarginInsets",{top:0,right:0,bottom:0,left:0}).setType("IInsets"),t.add("tabSetBorderInsets",{top:0,right:0,bottom:0,left:0}).setType("IInsets"),t.add("tabSetTabLocation","top").setType("ITabLocation"),t.add("tabSetMinWidth",0).setType(r.Attribute.NUMBER),t.add("tabSetMinHeight",0).setType(r.Attribute.NUMBER),t.add("borderSize",200).setType(r.Attribute.NUMBER),t.add("borderMinSize",0).setType(r.Attribute.NUMBER),t.add("borderBarSize",0).setType(r.Attribute.NUMBER),t.add("borderEnableDrop",!0).setType(r.Attribute.BOOLEAN),t.add("borderAutoSelectTabWhenOpen",!0).setType(r.Attribute.BOOLEAN),t.add("borderAutoSelectTabWhenClosed",!1).setType(r.Attribute.BOOLEAN),t.add("borderClassName",void 0).setType(r.Attribute.STRING),t.add("borderEnableAutoHide",!1).setType(r.Attribute.BOOLEAN),t},t.prototype._setChangeListener=function(t){this._changeListener=t},t.prototype.getActiveTabset=function(){return this._activeTabSet&&this.getNodeById(this._activeTabSet.getId())?this._activeTabSet:void 0},t.prototype._getShowHiddenBorder=function(){return this._showHiddenBorder},t.prototype._setShowHiddenBorder=function(t){this._showHiddenBorder=t},t.prototype._setActiveTabset=function(t){this._activeTabSet=t},t.prototype.getMaximizedTabset=function(){return this._maximizedTabSet},t.prototype._setMaximizedTabset=function(t){this._maximizedTabSet=t},t.prototype.getRoot=function(){return this._root},t.prototype.isRootOrientationVertical=function(){return this._attributes.rootOrientationVertical},t.prototype.isUseVisibility=function(){return this._attributes.enableUseVisibility},t.prototype.getBorderSet=function(){return this._borders},t.prototype._getOuterInnerRects=function(){return this._borderRects},t.prototype._getPointerFine=function(){return this._pointerFine},t.prototype._setPointerFine=function(t){this._pointerFine=t},t.prototype.visitNodes=function(t){this._borders._forEachNode(t),this._root._forEachNode(t,0)},t.prototype.getNodeById=function(t){return this._idMap[t]},t.prototype.doAction=function(t){var e=void 0;switch(t.type){case c.Actions.ADD_NODE:var i=new p.TabNode(this,t.data.json,!0);((n=this._idMap[t.data.toNode])instanceof f.TabSetNode||n instanceof u.BorderNode||n instanceof _.RowNode)&&(n.drop(i,s.DockLocation.getByName(t.data.location),t.data.index,t.data.select),e=i);break;case c.Actions.MOVE_NODE:var n,r=this._idMap[t.data.fromNode];(r instanceof p.TabNode||r instanceof f.TabSetNode)&&((n=this._idMap[t.data.toNode])instanceof f.TabSetNode||n instanceof u.BorderNode||n instanceof _.RowNode)&&n.drop(r,s.DockLocation.getByName(t.data.location),t.data.index,t.data.select);break;case c.Actions.DELETE_TAB:(m=this._idMap[t.data.node])instanceof p.TabNode&&m._delete();break;case c.Actions.DELETE_TABSET:if((m=this._idMap[t.data.node])instanceof f.TabSetNode){for(var a=o([],m.getChildren(),!0),d=0;d<a.length;d++){var l=a[d];l.isEnableClose()&&l._delete()}0===m.getChildren().length&&m._delete(),this._tidy()}break;case c.Actions.FLOAT_TAB:(m=this._idMap[t.data.node])instanceof p.TabNode&&(m._setFloating(!0),(0,g.adjustSelectedIndexAfterFloat)(m));break;case c.Actions.UNFLOAT_TAB:(m=this._idMap[t.data.node])instanceof p.TabNode&&(m._setFloating(!1),(0,g.adjustSelectedIndexAfterDock)(m));break;case c.Actions.RENAME_TAB:(m=this._idMap[t.data.node])instanceof p.TabNode&&m._setName(t.data.text);break;case c.Actions.SELECT_TAB:var h=this._idMap[t.data.tabNode];if(h instanceof p.TabNode){var T=h.getParent(),v=T.getChildren().indexOf(h);T instanceof u.BorderNode?T.getSelected()===v?T._setSelected(-1):T._setSelected(v):T instanceof f.TabSetNode&&(T.getSelected()!==v&&T._setSelected(v),this._activeTabSet=T)}break;case c.Actions.SET_ACTIVE_TABSET:var E=this._idMap[t.data.tabsetNode];E instanceof f.TabSetNode&&(this._activeTabSet=E);break;case c.Actions.ADJUST_SPLIT:var b=this._idMap[t.data.node1],y=this._idMap[t.data.node2];(b instanceof f.TabSetNode||b instanceof _.RowNode)&&(y instanceof f.TabSetNode||y instanceof _.RowNode)&&(this._adjustSplitSide(b,t.data.weight1,t.data.pixelWidth1),this._adjustSplitSide(y,t.data.weight2,t.data.pixelWidth2));break;case c.Actions.ADJUST_BORDER_SPLIT:(m=this._idMap[t.data.node])instanceof u.BorderNode&&m._setSize(t.data.pos);break;case c.Actions.MAXIMIZE_TOGGLE:(m=this._idMap[t.data.node])instanceof f.TabSetNode&&(m===this._maximizedTabSet?this._maximizedTabSet=void 0:(this._maximizedTabSet=m,this._activeTabSet=m));break;case c.Actions.UPDATE_MODEL_ATTRIBUTES:this._updateAttrs(t.data.json);break;case c.Actions.UPDATE_NODE_ATTRIBUTES:var m;(m=this._idMap[t.data.node])._updateAttrs(t.data.json)}return this._updateIdMap(),void 0!==this._changeListener&&this._changeListener(),e},t.prototype._updateIdMap=function(){var t=this;this._idMap={},this.visitNodes((function(e){return t._idMap[e.getId()]=e}))},t.prototype._adjustSplitSide=function(t,e,i){t._setWeight(e),null!=t.getWidth()&&t.getOrientation()===d.Orientation.VERT?t._updateAttrs({width:i}):null!=t.getHeight()&&t.getOrientation()===d.Orientation.HORZ&&t._updateAttrs({height:i})},t.prototype.toJson=function(){var e={};return t._attributeDefinitions.toJson(e,this._attributes),this.visitNodes((function(t){t._fireEvent("save",void 0)})),{global:e,borders:this._borders._toJson(),layout:this._root.toJson()}},t.prototype.getSplitterSize=function(){var t=this._attributes.splitterSize;return-1===t&&(t=this._pointerFine?8:12),t},t.prototype.isLegacyOverflowMenu=function(){return this._attributes.legacyOverflowMenu},t.prototype.getSplitterExtra=function(){return this._attributes.splitterExtra},t.prototype.isEnableEdgeDock=function(){return this._attributes.enableEdgeDock},t.prototype._addNode=function(t){var e=t.getId();if(void 0!==this._idMap[e])throw new Error("Error: each node must have a unique id, duplicate id:".concat(t.getId()));"splitter"!==t.getType()&&(this._idMap[e]=t)},t.prototype._layout=function(t,e){var i;return this._borderRects=this._borders._layoutBorder({outer:t,inner:t},e),t=this._borderRects.inner.removeInsets(this._getAttribute("marginInsets")),null===(i=this._root)||void 0===i||i.calcMinSize(),this._root._layout(t,e),t},t.prototype._findDropTargetNode=function(t,e,i){var o=this._root._findDropTargetNode(t,e,i);return void 0===o&&(o=this._borders._findDropTargetNode(t,e,i)),o},t.prototype._tidy=function(){this._root._tidy()},t.prototype._updateAttrs=function(e){t._attributeDefinitions.update(e,this._attributes)},t.prototype._nextUniqueId=function(){return"#"+(0,n.v4)()},t.prototype._getAttribute=function(t){return this._attributes[t]},t.prototype.setOnAllowDrop=function(t){this._onAllowDrop=t},t.prototype._getOnAllowDrop=function(){return this._onAllowDrop},t.prototype.setOnCreateTabSet=function(t){this._onCreateTabSet=t},t.prototype._getOnCreateTabSet=function(){return this._onCreateTabSet},t.toTypescriptInterfaces=function(){console.log(t._attributeDefinitions.toTypescriptInterface("Global",void 0)),console.log(_.RowNode.getAttributeDefinitions().toTypescriptInterface("Row",t._attributeDefinitions)),console.log(f.TabSetNode.getAttributeDefinitions().toTypescriptInterface("TabSet",t._attributeDefinitions)),console.log(p.TabNode.getAttributeDefinitions().toTypescriptInterface("Tab",t._attributeDefinitions)),console.log(u.BorderNode.getAttributeDefinitions().toTypescriptInterface("Border",t._attributeDefinitions))},t.prototype.toString=function(){return JSON.stringify(this.toJson())},t._attributeDefinitions=t._createAttributeDefinitions(),t}();e.Model=T},103:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Node=void 0;var o=i(95),n=i(327),r=i(359),a=function(){function t(t){this._dirty=!1,this._tempSize=0,this._model=t,this._attributes={},this._children=[],this._fixed=!1,this._rect=r.Rect.empty(),this._visible=!1,this._listeners={}}return t.prototype.getId=function(){var t=this._attributes.id;return void 0!==t||(t=this._model._nextUniqueId(),this._setId(t)),t},t.prototype.getModel=function(){return this._model},t.prototype.getType=function(){return this._attributes.type},t.prototype.getParent=function(){return this._parent},t.prototype.getChildren=function(){return this._children},t.prototype.getRect=function(){return this._rect},t.prototype.isVisible=function(){return this._visible},t.prototype.getOrientation=function(){return void 0===this._parent?this._model.isRootOrientationVertical()?n.Orientation.VERT:n.Orientation.HORZ:n.Orientation.flip(this._parent.getOrientation())},t.prototype.setEventListener=function(t,e){this._listeners[t]=e},t.prototype.removeEventListener=function(t){delete this._listeners[t]},t.prototype._setId=function(t){this._attributes.id=t},t.prototype._fireEvent=function(t,e){void 0!==this._listeners[t]&&this._listeners[t](e)},t.prototype._getAttr=function(t){var e=this._attributes[t];if(void 0===e){var i=this._getAttributeDefinitions().getModelName(t);void 0!==i&&(e=this._model._getAttribute(i))}return e},t.prototype._forEachNode=function(t,e){t(this,e),e++;for(var i=0,o=this._children;i<o.length;i++)o[i]._forEachNode(t,e)},t.prototype._setVisible=function(t){t!==this._visible&&(this._fireEvent("visibility",{visible:t}),this._visible=t)},t.prototype._getDrawChildren=function(){return this._children},t.prototype._setParent=function(t){this._parent=t},t.prototype._setRect=function(t){this._rect=t},t.prototype._setWeight=function(t){this._attributes.weight=t},t.prototype._setSelected=function(t){this._attributes.selected=t},t.prototype._isFixed=function(){return this._fixed},t.prototype._layout=function(t,e){this._rect=t},t.prototype._findDropTargetNode=function(t,e,i){var o;if(this._rect.contains(e,i))if(void 0!==this._model.getMaximizedTabset())o=this._model.getMaximizedTabset().canDrop(t,e,i);else if(void 0===(o=this.canDrop(t,e,i))&&0!==this._children.length)for(var n=0,r=this._children;n<r.length&&void 0===(o=r[n]._findDropTargetNode(t,e,i));n++);return o},t.prototype.canDrop=function(t,e,i){},t.prototype._canDockInto=function(t,e){if(null!=e){if(e.location===o.DockLocation.CENTER&&!1===e.node.isEnableDrop())return!1;if(e.location===o.DockLocation.CENTER&&"tabset"===t.getType()&&void 0!==t.getName())return!1;if(e.location!==o.DockLocation.CENTER&&!1===e.node.isEnableDivide())return!1;if(this._model._getOnAllowDrop())return this._model._getOnAllowDrop()(t,e)}return!0},t.prototype._removeChild=function(t){var e=this._children.indexOf(t);return-1!==e&&this._children.splice(e,1),this._dirty=!0,e},t.prototype._addChild=function(t,e){return null!=e?this._children.splice(e,0,t):(this._children.push(t),e=this._children.length-1),t._parent=this,this._dirty=!0,e},t.prototype._removeAll=function(){this._children=[],this._dirty=!0},t.prototype._styleWithPosition=function(t){return null==t&&(t={}),this._rect.styleWithPosition(t)},t.prototype._getTempSize=function(){return this._tempSize},t.prototype._setTempSize=function(t){this._tempSize=t},t.prototype.isEnableDivide=function(){return!0},t.prototype._toAttributeString=function(){return JSON.stringify(this._attributes,void 0,"\t")},t}();e.Node=a},179:function(t,e,i){var o,n=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},o(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 i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.RowNode=void 0;var a=i(92),s=i(99),d=i(95),l=i(34),c=i(327),u=i(359),h=i(398),_=i(907),p=i(103),f=i(618),g=i(657),T=function(t){function e(i,o){var n=t.call(this,i)||this;return n._dirty=!0,n._drawChildren=[],n._minHeight=0,n._minWidth=0,e._attributeDefinitions.fromJson(o,n._attributes),i._addNode(n),n}return n(e,t),e._fromJson=function(t,i){var o=new e(i,t);if(null!=t.children)for(var n=0,r=t.children;n<r.length;n++){var a=r[n];if(a.type===g.TabSetNode.TYPE){var s=g.TabSetNode._fromJson(a,i);o._addChild(s)}else s=e._fromJson(a,i),o._addChild(s)}return o},e._createAttributeDefinitions=function(){var t=new s.AttributeDefinitions;return t.add("type",e.TYPE,!0).setType(a.Attribute.STRING).setFixed(),t.add("id",void 0).setType(a.Attribute.STRING),t.add("weight",100).setType(a.Attribute.NUMBER),t.add("width",void 0).setType(a.Attribute.NUMBER),t.add("height",void 0).setType(a.Attribute.NUMBER),t},e.prototype.getWeight=function(){return this._attributes.weight},e.prototype.getWidth=function(){return this._getAttr("width")},e.prototype.getHeight=function(){return this._getAttr("height")},e.prototype._setWeight=function(t){this._attributes.weight=t},e.prototype._layout=function(e,i){t.prototype._layout.call(this,e,i);for(var o=this._rect._getSize(this.getOrientation()),n=0,r=0,a=0,s=0,d=this._getDrawChildren(),l=0,h=d;l<h.length;l++){var _=(M=h[l])._getPrefSize(this.getOrientation());M._isFixed()?void 0!==_&&(r+=_):void 0===_?n+=M.getWeight():(a+=_,s+=M.getWeight())}var p=!1,g=o-r-a;g<0&&(g=o-r,p=!0,n+=s);for(var T=0,v=0,E=0,b=d;E<b.length;E++){if(_=(M=b[E])._getPrefSize(this.getOrientation()),M._isFixed())void 0!==_&&M._setTempSize(_);else if(null==_||p){if(0===n)M._setTempSize(0);else{var y=M.getMinSize(this.getOrientation()),m=Math.floor(g*(M.getWeight()/n));M._setTempSize(Math.max(y,m))}v+=M._getTempSize()}else M._setTempSize(_);T+=M._getTempSize()}if(v>0){for(;T<o;)for(var A=0,S=d;A<S.length;A++)(M=S[A])instanceof f.SplitterNode||(_=M._getPrefSize(this.getOrientation()),!M._isFixed()&&(void 0===_||p)&&T<o&&(M._setTempSize(M._getTempSize()+1),T++));for(;T>o;){for(var L=!1,O=0,R=d;O<R.length;O++)(M=R[O])instanceof f.SplitterNode||(y=M.getMinSize(this.getOrientation()),(m=M._getTempSize())>y&&T>o&&(M._setTempSize(M._getTempSize()-1),T--,L=!0));if(!L)break}for(;T>o;){L=!1;for(var N=0,D=d;N<D.length;N++)(M=D[N])instanceof f.SplitterNode||(m=M._getTempSize())>0&&T>o&&(M._setTempSize(M._getTempSize()-1),T--,L=!0);if(!L)break}}for(var w=0,B=0,C=d;B<C.length;B++){var M=C[B];this.getOrientation()===c.Orientation.HORZ?M._layout(new u.Rect(this._rect.x+w,this._rect.y,M._getTempSize(),this._rect.height),i):M._layout(new u.Rect(this._rect.x,this._rect.y+w,this._rect.width,M._getTempSize()),i),w+=M._getTempSize()}return!0},e.prototype._getSplitterBounds=function(t,e){void 0===e&&(e=!1);var i=[0,0],o=this._getDrawChildren(),n=o.indexOf(t),r=o[n-1],a=o[n+1];if(this.getOrientation()===c.Orientation.HORZ){var s=e?r.getMinWidth():0,d=e?a.getMinWidth():0;i[0]=r.getRect().x+s,i[1]=a.getRect().getRight()-t.getWidth()-d}else s=e?r.getMinHeight():0,d=e?a.getMinHeight():0,i[0]=r.getRect().y+s,i[1]=a.getRect().getBottom()-t.getHeight()-d;return i},e.prototype._calculateSplit=function(t,e){var i,o=this._getDrawChildren(),n=o.indexOf(t),r=this._getSplitterBounds(t),a=o[n-1].getWeight()+o[n+1].getWeight(),s=Math.max(0,e-r[0]),d=Math.max(0,r[1]-e);if(s+d>0){var l=s*a/(s+d),c=d*a/(s+d);i={node1Id:o[n-1].getId(),weight1:l,pixelWidth1:s,node2Id:o[n+1].getId(),weight2:c,pixelWidth2:d}}return i},e.prototype._getDrawChildren=function(){if(this._dirty){this._drawChildren=[];for(var t=0;t<this._children.length;t++){var e=this._children[t];if(0!==t){var i=new f.SplitterNode(this._model);i._setParent(this),this._drawChildren.push(i)}this._drawChildren.push(e)}this._dirty=!1}return this._drawChildren},e.prototype.getMinSize=function(t){return t===c.Orientation.HORZ?this.getMinWidth():this.getMinHeight()},e.prototype.getMinWidth=function(){return this._minWidth},e.prototype.getMinHeight=function(){return this._minHeight},e.prototype.calcMinSize=function(){this._minHeight=0,this._minWidth=0;for(var t=!0,i=0,o=this._children;i<o.length;i++){var n=o[i];n instanceof e&&n.calcMinSize(),this.getOrientation()===c.Orientation.VERT?(this._minHeight+=n.getMinHeight(),t||(this._minHeight+=this._model.getSplitterSize()),this._minWidth=Math.max(this._minWidth,n.getMinWidth())):(this._minWidth+=n.getMinWidth(),t||(this._minWidth+=this._model.getSplitterSize()),this._minHeight=Math.max(this._minHeight,n.getMinHeight())),t=!1}},e.prototype._tidy=function(){for(var t=0;t<this._children.length;)if((_=this._children[t])instanceof e){_._tidy();var i=_.getChildren();if(0===i.length)this._removeChild(_);else if(1===i.length){var o=i[0];if(this._removeChild(_),o instanceof e){for(var n=0,a=o.getChildren(),s=0,d=a;s<d.length;s++)n+=(c=d[s]).getWeight();for(var l=0;l<a.length;l++){var c;(c=a[l])._setWeight(_.getWeight()*c.getWeight()/n),this._addChild(c,t+l)}}else o._setWeight(_.getWeight()),this._addChild(o,t)}else t++}else _ instanceof g.TabSetNode&&0===_.getChildren().length&&_.isEnableDeleteWhenEmpty()?(this._removeChild(_),_===this._model.getMaximizedTabset()&&this._model._setMaximizedTabset(void 0)):t++;if(this===this._model.getRoot()&&0===this._children.length){var u=this._model._getOnCreateTabSet(),h=u?u():{};h=r(r({},h),{selected:-1});var _=new g.TabSetNode(this._model,h);this._model._setActiveTabset(_),this._addChild(_)}},e.prototype.canDrop=function(t,e,i){var o,n=i-this._rect.y,r=e-this._rect.x,a=this._rect.width,s=this._rect.height,c=50;if(this._model.isEnableEdgeDock()&&void 0===this._parent){if(e<this._rect.x+10&&n>s/2-c&&n<s/2+c)(_=(u=d.DockLocation.LEFT).getDockRect(this._rect)).width=_.width/2,o=new l.DropInfo(this,_,u,-1,h.CLASSES.FLEXLAYOUT__OUTLINE_RECT_EDGE);else if(e>this._rect.getRight()-10&&n>s/2-c&&n<s/2+c)(_=(u=d.DockLocation.RIGHT).getDockRect(this._rect)).width=_.width/2,_.x+=_.width,o=new l.DropInfo(this,_,u,-1,h.CLASSES.FLEXLAYOUT__OUTLINE_RECT_EDGE);else if(i<this._rect.y+10&&r>a/2-c&&r<a/2+c)(_=(u=d.DockLocation.TOP).getDockRect(this._rect)).height=_.height/2,o=new l.DropInfo(this,_,u,-1,h.CLASSES.FLEXLAYOUT__OUTLINE_RECT_EDGE);else if(i>this._rect.getBottom()-10&&r>a/2-c&&r<a/2+c){var u,_;(_=(u=d.DockLocation.BOTTOM).getDockRect(this._rect)).height=_.height/2,_.y+=_.height,o=new l.DropInfo(this,_,u,-1,h.CLASSES.FLEXLAYOUT__OUTLINE_RECT_EDGE)}if(void 0!==o&&!t._canDockInto(t,o))return}return o},e.prototype.drop=function(t,i,o){var n,r=i,a=t.getParent();if(a&&a._removeChild(t),void 0!==a&&a.getType()===g.TabSetNode.TYPE&&a._setSelected(0),void 0!==a&&a.getType()===_.BorderNode.TYPE&&a._setSelected(-1),t instanceof g.TabSetNode)n=t;else{var s=this._model._getOnCreateTabSet();(n=new g.TabSetNode(this._model,s?s(t):{}))._addChild(t)}var l=this._children.reduce((function(t,e){return t+e.getWeight()}),0);0===l&&(l=100),n._setWeight(l/3);var c=!this._model.isRootOrientationVertical();if(c&&r===d.DockLocation.LEFT||!c&&r===d.DockLocation.TOP)this._addChild(n,0);else if(c&&r===d.DockLocation.RIGHT||!c&&r===d.DockLocation.BOTTOM)this._addChild(n);else if(c&&r===d.DockLocation.TOP||!c&&r===d.DockLocation.LEFT){var u=new e(this._model,{});(T=new e(this._model,{}))._setWeight(75),n._setWeight(25);for(var h=0,p=this._children;h<p.length;h++){var f=p[h];T._addChild(f)}this._removeAll(),u._addChild(n),u._addChild(T),this._addChild(u)}else if(c&&r===d.DockLocation.BOTTOM||!c&&r===d.DockLocation.RIGHT){var T;u=new e(this._model,{}),(T=new e(this._model,{}))._setWeight(75),n._setWeight(25);for(var v=0,E=this._children;v<E.length;v++)f=E[v],T._addChild(f);this._removeAll(),u._addChild(T),u._addChild(n),this._addChild(u)}this._model._setActiveTabset(n),this._model._tidy()},e.prototype.toJson=function(){var t={};e._attributeDefinitions.toJson(t,this._attributes),t.children=[];for(var i=0,o=this._children;i<o.length;i++){var n=o[i];t.children.push(n.toJson())}return t},e.prototype.isEnableDrop=function(){return!0},e.prototype._getPrefSize=function(t){var e=this.getWidth();return t===c.Orientation.VERT&&(e=this.getHeight()),e},e.prototype._getAttributeDefinitions=function(){return e._attributeDefinitions},e.prototype._updateAttrs=function(t){e._attributeDefinitions.update(t,this._attributes)},e.getAttributeDefinitions=function(){return e._attributeDefinitions},e.TYPE="row",e._attributeDefinitions=e._createAttributeDefinitions(),e}(p.Node);e.RowNode=T},618:function(t,e,i){var o,n=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},o(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 i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.SplitterNode=void 0;var r=i(99),a=i(327),s=function(t){function e(i){var o=t.call(this,i)||this;return o._fixed=!0,o._attributes.type=e.TYPE,i._addNode(o),o}return n(e,t),e.prototype.getWidth=function(){return this._model.getSplitterSize()},e.prototype.getMinWidth=function(){return this.getOrientation()===a.Orientation.VERT?this._model.getSplitterSize():0},e.prototype.getHeight=function(){return this._model.getSplitterSize()},e.prototype.getMinHeight=function(){return this.getOrientation()===a.Orientation.HORZ?this._model.getSplitterSize():0},e.prototype.getMinSize=function(t){return t===a.Orientation.HORZ?this.getMinWidth():this.getMinHeight()},e.prototype.getWeight=function(){return 0},e.prototype._setWeight=function(t){},e.prototype._getPrefSize=function(t){return this._model.getSplitterSize()},e.prototype._updateAttrs=function(t){},e.prototype._getAttributeDefinitions=function(){return new r.AttributeDefinitions},e.prototype.toJson=function(){},e.TYPE="splitter",e}(i(103).Node);e.SplitterNode=s},275:function(t,e,i){var o,n=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},o(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 i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.TabNode=void 0;var r=i(92),a=i(99),s=function(t){function e(i,o,n){void 0===n&&(n=!0);var r=t.call(this,i)||this;return r._extra={},e._attributeDefinitions.fromJson(o,r._attributes),!0===n&&i._addNode(r),r}return n(e,t),e._fromJson=function(t,i,o){return void 0===o&&(o=!0),new e(i,t,o)},e._createAttributeDefinitions=function(){var t=new a.AttributeDefinitions;return t.add("type",e.TYPE,!0).setType(r.Attribute.STRING),t.add("id",void 0).setType(r.Attribute.STRING),t.add("name","[Unnamed Tab]").setType(r.Attribute.STRING),t.add("altName",void 0).setType(r.Attribute.STRING),t.add("helpText",void 0).setType(r.Attribute.STRING),t.add("component",void 0).setType(r.Attribute.STRING),t.add("config",void 0).setType("any"),t.add("floating",!1).setType(r.Attribute.BOOLEAN),t.addInherited("enableClose","tabEnableClose").setType(r.Attribute.BOOLEAN),t.addInherited("closeType","tabCloseType").setType("ICloseType"),t.addInherited("enableDrag","tabEnableDrag").setType(r.Attribute.BOOLEAN),t.addInherited("enableRename","tabEnableRename").setType(r.Attribute.BOOLEAN),t.addInherited("className","tabClassName").setType(r.Attribute.STRING),t.addInherited("icon","tabIcon").setType(r.Attribute.STRING),t.addInherited("enableRenderOnDemand","tabEnableRenderOnDemand").setType(r.Attribute.BOOLEAN),t.addInherited("enableFloat","tabEnableFloat").setType(r.Attribute.BOOLEAN),t.addInherited("borderWidth","tabBorderWidth").setType(r.Attribute.NUMBER),t.addInherited("borderHeight","tabBorderHeight").setType(r.Attribute.NUMBER),t},e.prototype.getWindow=function(){return this._window},e.prototype.getTabRect=function(){return this._tabRect},e.prototype._setTabRect=function(t){this._tabRect=t},e.prototype._setRenderedName=function(t){this._renderedName=t},e.prototype._getNameForOverflowMenu=function(){var t=this._getAttr("altName");return void 0!==t?t:this._renderedName},e.prototype.getName=function(){return this._getAttr("name")},e.prototype.getHelpText=function(){return this._getAttr("helpText")},e.prototype.getComponent=function(){return this._getAttr("component")},e.prototype.getConfig=function(){return this._attributes.config},e.prototype.getExtraData=function(){return this._extra},e.prototype.isFloating=function(){return this._getAttr("floating")},e.prototype.getIcon=function(){return this._getAttr("icon")},e.prototype.isEnableClose=function(){return this._getAttr("enableClose")},e.prototype.getCloseType=function(){return this._getAttr("closeType")},e.prototype.isEnableFloat=function(){return this._getAttr("enableFloat")},e.prototype.isEnableDrag=function(){return this._getAttr("enableDrag")},e.prototype.isEnableRename=function(){return this._getAttr("enableRename")},e.prototype.getClassName=function(){return this._getAttr("className")},e.prototype.isEnableRenderOnDemand=function(){return this._getAttr("enableRenderOnDemand")},e.prototype._setName=function(t){this._attributes.name=t,this._window&&this._window.document&&(this._window.document.title=t)},e.prototype._setFloating=function(t){this._attributes.floating=t},e.prototype._layout=function(t,e){t.equals(this._rect)||this._fireEvent("resize",{rect:t}),this._rect=t},e.prototype._delete=function(){this._parent._remove(this),this._fireEvent("close",{})},e.prototype.toJson=function(){var t={};return e._attributeDefinitions.toJson(t,this._attributes),t},e.prototype._updateAttrs=function(t){e._attributeDefinitions.update(t,this._attributes)},e.prototype._getAttributeDefinitions=function(){return e._attributeDefinitions},e.prototype._setWindow=function(t){this._window=t},e.prototype._setBorderWidth=function(t){this._attributes.borderWidth=t},e.prototype._setBorderHeight=function(t){this._attributes.borderHeight=t},e.getAttributeDefinitions=function(){return e._attributeDefinitions},e.TYPE="tab",e._attributeDefinitions=e._createAttributeDefinitions(),e}(i(103).Node);e.TabNode=s},657:function(t,e,i){var o,n=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},o(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 i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.TabSetNode=void 0;var r=i(92),a=i(99),s=i(95),d=i(34),l=i(327),c=i(359),u=i(398),h=i(103),_=i(179),p=i(275),f=i(494),g=function(t){function e(i,o){var n=t.call(this,i)||this;return e._attributeDefinitions.fromJson(o,n._attributes),i._addNode(n),n._calculatedTabBarHeight=0,n._calculatedHeaderBarHeight=0,n}return n(e,t),e._fromJson=function(t,i){var o=new e(i,t);if(null!=t.children)for(var n=0,r=t.children;n<r.length;n++){var a=r[n],s=p.TabNode._fromJson(a,i);o._addChild(s)}return 0===o._children.length&&o._setSelected(-1),t.maximized&&!0===t.maximized&&i._setMaximizedTabset(o),t.active&&!0===t.active&&i._setActiveTabset(o),o},e._createAttributeDefinitions=function(){var t=new a.AttributeDefinitions;return t.add("type",e.TYPE,!0).setType(r.Attribute.STRING).setFixed(),t.add("id",void 0).setType(r.Attribute.STRING),t.add("weight",100).setType(r.Attribute.NUMBER),t.add("width",void 0).setType(r.Attribute.NUMBER),t.add("height",void 0).setType(r.Attribute.NUMBER),t.add("selected",0).setType(r.Attribute.NUMBER),t.add("name",void 0).setType(r.Attribute.STRING),t.add("config",void 0).setType("any"),t.addInherited("enableDeleteWhenEmpty","tabSetEnableDeleteWhenEmpty"),t.addInherited("enableDrop","tabSetEnableDrop"),t.addInherited("enableDrag","tabSetEnableDrag"),t.addInherited("enableDivide","tabSetEnableDivide"),t.addInherited("enableMaximize","tabSetEnableMaximize"),t.addInherited("enableClose","tabSetEnableClose"),t.addInherited("classNameTabStrip","tabSetClassNameTabStrip"),t.addInherited("classNameHeader","tabSetClassNameHeader"),t.addInherited("enableTabStrip","tabSetEnableTabStrip"),t.addInherited("borderInsets","tabSetBorderInsets"),t.addInherited("marginInsets","tabSetMarginInsets"),t.addInherited("minWidth","tabSetMinWidth"),t.addInherited("minHeight","tabSetMinHeight"),t.addInherited("headerHeight","tabSetHeaderHeight"),t.addInherited("tabStripHeight","tabSetTabStripHeight"),t.addInherited("tabLocation","tabSetTabLocation"),t.addInherited("autoSelectTab","tabSetAutoSelectTab").setType(r.Attribute.BOOLEAN),t},e.prototype.getName=function(){return this._getAttr("name")},e.prototype.getSelected=function(){var t=this._attributes.selected;return void 0!==t?t:-1},e.prototype.getSelectedNode=function(){var t=this.getSelected();if(-1!==t)return this._children[t]},e.prototype.getWeight=function(){return this._getAttr("weight")},e.prototype.getWidth=function(){return this._getAttr("width")},e.prototype.getMinWidth=function(){return this._getAttr("minWidth")},e.prototype.getHeight=function(){return this._getAttr("height")},e.prototype.getMinHeight=function(){return this._getAttr("minHeight")},e.prototype.getMinSize=function(t){return t===l.Orientation.HORZ?this.getMinWidth():this.getMinHeight()},e.prototype.getConfig=function(){return this._attributes.config},e.prototype.isMaximized=function(){return this._model.getMaximizedTabset()===this},e.prototype.isActive=function(){return this._model.getActiveTabset()===this},e.prototype.isEnableDeleteWhenEmpty=function(){return this._getAttr("enableDeleteWhenEmpty")},e.prototype.isEnableDrop=function(){return this._getAttr("enableDrop")},e.prototype.isEnableDrag=function(){return this._getAttr("enableDrag")},e.prototype.isEnableDivide=function(){return this._getAttr("enableDivide")},e.prototype.isEnableMaximize=function(){return this._getAttr("enableMaximize")},e.prototype.isEnableClose=function(){return this._getAttr("enableClose")},e.prototype.canMaximize=function(){return!!this.isEnableMaximize()&&(this.getModel().getMaximizedTabset()===this||this.getParent()!==this.getModel().getRoot()||1!==this.getModel().getRoot().getChildren().length)},e.prototype.isEnableTabStrip=function(){return this._getAttr("enableTabStrip")},e.prototype.isAutoSelectTab=function(){return this._getAttr("autoSelectTab")},e.prototype.getClassNameTabStrip=function(){return this._getAttr("classNameTabStrip")},e.prototype.getClassNameHeader=function(){return this._getAttr("classNameHeader")},e.prototype.calculateHeaderBarHeight=function(t){var e=this._getAttr("headerHeight");this._calculatedHeaderBarHeight=0!==e?e:t.headerBarSize},e.prototype.calculateTabBarHeight=function(t){var e=this._getAttr("tabStripHeight");this._calculatedTabBarHeight=0!==e?e:t.tabBarSize},e.prototype.getHeaderHeight=function(){return this._calculatedHeaderBarHeight},e.prototype.getTabStripHeight=function(){return this._calculatedTabBarHeight},e.prototype.getTabLocation=function(){return this._getAttr("tabLocation")},e.prototype._setWeight=function(t){this._attributes.weight=t},e.prototype._setSelected=function(t){this._attributes.selected=t},e.prototype.canDrop=function(t,e,i){var o;if(t===this){var n=s.DockLocation.CENTER,r=this._tabHeaderRect;o=new d.DropInfo(this,r,n,-1,u.CLASSES.FLEXLAYOUT__OUTLINE_RECT)}else if(this._contentRect.contains(e,i))n=s.DockLocation.CENTER,void 0===this._model.getMaximizedTabset()&&(n=s.DockLocation.getLocation(this._contentRect,e,i)),r=n.getDockRect(this._rect),o=new d.DropInfo(this,r,n,-1,u.CLASSES.FLEXLAYOUT__OUTLINE_RECT);else if(null!=this._tabHeaderRect&&this._tabHeaderRect.contains(e,i)){var a=void 0,l=void 0,h=void 0;if(0===this._children.length)l=(a=this._tabHeaderRect.clone()).y+3,h=a.height-4,a.width=2;else{var _=this._children[0];l=(a=_.getTabRect()).y,h=a.height;for(var p=this._tabHeaderRect.x,f=0,g=0;g<this._children.length;g++){if(f=(a=(_=this._children[g]).getTabRect()).x+a.width/2,e>=p&&e<f){n=s.DockLocation.CENTER,r=new c.Rect(a.x-2,l,3,h),o=new d.DropInfo(this,r,n,g,u.CLASSES.FLEXLAYOUT__OUTLINE_RECT);break}p=f}}null==o&&(n=s.DockLocation.CENTER,r=new c.Rect(a.getRight()-2,l,3,h),o=new d.DropInfo(this,r,n,this._children.length,u.CLASSES.FLEXLAYOUT__OUTLINE_RECT))}if(t._canDockInto(t,o))return o},e.prototype._layout=function(t,e){this.calculateHeaderBarHeight(e),this.calculateTabBarHeight(e),this.isMaximized()&&(t=this._model.getRoot().getRect()),t=t.removeInsets(this._getAttr("marginInsets")),this._rect=t,t=t.removeInsets(this._getAttr("borderInsets"));var i=0,o=0;void 0!==this.getName()&&(i+=this._calculatedHeaderBarHeight,o+=this._calculatedHeaderBarHeight),this.isEnableTabStrip()&&("top"===this.getTabLocation()?this._tabHeaderRect=new c.Rect(t.x,t.y+i,t.width,this._calculatedTabBarHeight):this._tabHeaderRect=new c.Rect(t.x,t.y+t.height-this._calculatedTabBarHeight,t.width,this._calculatedTabBarHeight),o+=this._calculatedTabBarHeight,"top"===this.getTabLocation()&&(i+=this._calculatedTabBarHeight)),this._contentRect=new c.Rect(t.x,t.y+i,t.width,t.height-o);for(var n=0;n<this._children.length;n++){var r=this._children[n];r._layout(this._contentRect,e),r._setVisible(n===this.getSelected())}},e.prototype._delete=function(){this._parent._removeChild(this)},e.prototype._remove=function(t){var e=this._removeChild(t);this._model._tidy(),(0,f.adjustSelectedIndex)(this,e)},e.prototype.drop=function(t,i,o,n){var r=i;if(this!==t){var a=t.getParent(),d=0;if(void 0!==a&&(d=a._removeChild(t),(0,f.adjustSelectedIndex)(a,d)),t.getType()===p.TabNode.TYPE&&a===this&&d<o&&o>0&&o--,r===s.DockLocation.CENTER){var l=o;if(-1===l&&(l=this._children.length),t.getType()===p.TabNode.TYPE)this._addChild(t,l),(n||!1!==n&&this.isAutoSelectTab())&&this._setSelected(l);else for(var c=0;c<t.getChildren().length;c++){var u=t.getChildren()[c];this._addChild(u,l),l++}this._model._setActiveTabset(this)}else{var h=void 0;if(t instanceof p.TabNode){var g=this._model._getOnCreateTabSet();(h=new e(this._model,g?g(t):{}))._addChild(t),a=h}else h=t;var T=this._parent,v=T.getChildren().indexOf(this);if(T.getOrientation()===r._orientation)h._setWeight(this.getWeight()/2),this._setWeight(this.getWeight()/2),T._addChild(h,v+r._indexPlus);else{var E=new _.RowNode(this._model,{});E._setWeight(this.getWeight()),E._addChild(this),this._setWeight(50),h._setWeight(50),E._addChild(h,r._indexPlus),T._removeChild(this),T._addChild(E,v)}this._model._setActiveTabset(h)}this._model._tidy()}},e.prototype.toJson=function(){var t={};return e._attributeDefinitions.toJson(t,this._attributes),t.children=this._children.map((function(t){return t.toJson()})),this.isActive()&&(t.active=!0),this.isMaximized()&&(t.maximized=!0),t},e.prototype._updateAttrs=function(t){e._attributeDefinitions.update(t,this._attributes)},e.prototype._getAttributeDefinitions=function(){return e._attributeDefinitions},e.prototype._getPrefSize=function(t){var e=this.getWidth();return t===l.Orientation.VERT&&(e=this.getHeight()),e},e.getAttributeDefinitions=function(){return e._attributeDefinitions},e.TYPE="tabset",e._attributeDefinitions=e._createAttributeDefinitions(),e}(h.Node);e.TabSetNode=g},494:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.adjustSelectedIndex=e.adjustSelectedIndexAfterDock=e.adjustSelectedIndexAfterFloat=void 0;var o=i(657),n=i(907);e.adjustSelectedIndexAfterFloat=function(t){var e=t.getParent();if(null!==e)if(e instanceof o.TabSetNode){for(var i=!1,r=0,a=e.getChildren(),s=0;s<a.length;s++){var d=a[s];if(d===t)i=!0;else if(!d.isFloating()&&(r=s,i))break}e._setSelected(r)}else e instanceof n.BorderNode&&e._setSelected(-1)},e.adjustSelectedIndexAfterDock=function(t){var e=t.getParent();if(null!==e&&(e instanceof o.TabSetNode||e instanceof n.BorderNode))for(var i=e.getChildren(),r=0;r<i.length;r++)if(i[r]===t)return void e._setSelected(r)},e.adjustSelectedIndex=function(t,e){if(void 0!==t&&(t.getType()===o.TabSetNode.TYPE||t.getType()===n.BorderNode.TYPE)){var i=t.getSelected();-1!==i&&(e===i&&t.getChildren().length>0?e>=t.getChildren().length&&t._setSelected(t.getChildren().length-1):e<i?t._setSelected(i-1):e>i||t._setSelected(-1))}}},898:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BorderButton=void 0;var o=i(899),n=i(306),r=i(920),a=i(359),s=i(138),d=i(398),l=i(258);e.BorderButton=function(t){var e=t.layout,i=t.node,c=t.selected,u=t.border,h=t.iconFactory,_=t.titleFactory,p=t.icons,f=t.path,g=o.useRef(null),T=o.useRef(null),v=function(t){(0,l.isAuxMouseEvent)(t)||e.getEditingTab()||e.dragStart(t,void 0,i,i.isEnableDrag(),b,y)},E=function(t){(0,l.isAuxMouseEvent)(t)&&e.auxMouseClick(i,t)},b=function(){e.doAction(r.Actions.selectTab(i.getId()))},y=function(t){},m=function(t){t.stopPropagation()};o.useLayoutEffect((function(){A(),e.getEditingTab()===i&&T.current.select()}));var A=function(){var t=e.getDomRect(),o=g.current.getBoundingClientRect();i._setTabRect(new a.Rect(o.left-t.left,o.top-t.top,o.width,o.height))},S=function(t){t.stopPropagation()},L=e.getClassName,O=L(d.CLASSES.FLEXLAYOUT__BORDER_BUTTON)+" "+L(d.CLASSES.FLEXLAYOUT__BORDER_BUTTON_+u);O+=c?" "+L(d.CLASSES.FLEXLAYOUT__BORDER_BUTTON__SELECTED):" "+L(d.CLASSES.FLEXLAYOUT__BORDER_BUTTON__UNSELECTED),void 0!==i.getClassName()&&(O+=" "+i.getClassName());var R=(0,l.getRenderStateEx)(e,i,h,_),N=R.content?o.createElement("div",{className:L(d.CLASSES.FLEXLAYOUT__BORDER_BUTTON_CONTENT)},R.content):null,D=R.leading?o.createElement("div",{className:L(d.CLASSES.FLEXLAYOUT__BORDER_BUTTON_LEADING)},R.leading):null;if(e.getEditingTab()===i&&(N=o.createElement("input",{ref:T,className:L(d.CLASSES.FLEXLAYOUT__TAB_BUTTON_TEXTBOX),"data-layout-path":f+"/textbox",type:"text",autoFocus:!0,defaultValue:i.getName(),onKeyDown:function(t){27===t.keyCode?e.setEditingTab(void 0):13===t.keyCode&&(e.setEditingTab(void 0),e.doAction(r.Actions.renameTab(i.getId(),t.target.value)))},onMouseDown:S,onTouchStart:S})),i.isEnableClose()){var w=e.i18nName(n.I18nLabel.Close_Tab);R.buttons.push(o.createElement("div",{key:"close","data-layout-path":f+"/button/close",title:w,className:L(d.CLASSES.FLEXLAYOUT__BORDER_BUTTON_TRAILING),onMouseDown:m,onClick:function(t){var o;o=i.getCloseType(),c||o===s.ICloseType.Always||o===s.ICloseType.Visible&&window.matchMedia&&window.matchMedia("(hover: hover) and (pointer: fine)").matches?e.doAction(r.Actions.deleteTab(i.getId())):b()},onTouchStart:m},"function"==typeof p.close?p.close(i):p.close))}return o.createElement("div",{ref:g,"data-layout-path":f,className:O,onMouseDown:v,onClick:E,onAuxClick:E,onContextMenu:function(t){e.showContextMenu(i,t)},onTouchStart:v,title:i.getHelpText()},D,N,R.buttons)}},851:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BorderTabSet=void 0;var o=i(899),n=i(95),r=i(898),a=i(119),s=i(920),d=i(306),l=i(953),c=i(327),u=i(398),h=i(258);e.BorderTabSet=function(t){for(var e=t.border,i=t.layout,_=t.iconFactory,p=t.titleFactory,f=t.icons,g=t.path,T=o.useRef(null),v=o.useRef(null),E=o.useRef(null),b=(0,l.useTabOverflow)(e,c.Orientation.flip(e.getOrientation()),T,E),y=b.selfRef,m=b.position,A=b.userControlledLeft,S=b.hiddenTabs,L=b.onMouseWheel,O=function(t){(0,h.isAuxMouseEvent)(t)&&i.auxMouseClick(e,t)},R=function(t){t.stopPropagation()},N=function(t){i.doAction(s.Actions.selectTab(t.node.getId())),A.current=!1},D=i.getClassName,w=e.getTabHeaderRect().styleWithPosition({}),B=[],C=function(t){var n=e.getSelected()===t,a=e.getChildren()[t];B.push(o.createElement(r.BorderButton,{layout:i,border:e.getLocation().getName(),node:a,path:g+"/tb"+t,key:a.getId(),selected:n,iconFactory:_,titleFactory:p,icons:f})),B.push(o.createElement("div",{key:"divider"+t,className:D(u.CLASSES.FLEXLAYOUT__BORDER_TAB_DIVIDER)}))},M=0;M<e.getChildren().length;M++)C(M);var x=D(u.CLASSES.FLEXLAYOUT__BORDER)+" "+D(u.CLASSES.FLEXLAYOUT__BORDER_+e.getLocation().getName());void 0!==e.getClassName()&&(x+=" "+e.getClassName());var I,U=[],F={headerContent:{},buttons:U,stickyButtons:[],headerButtons:[]};if(i.customizeTabSet(e,F),U=F.buttons,S.length>0){var z,P=i.i18nName(d.I18nLabel.Overflow_Menu_Tooltip);z="function"==typeof f.more?f.more(e,S):o.createElement(o.Fragment,null,f.more,o.createElement("div",{className:D(u.CLASSES.FLEXLAYOUT__TAB_BUTTON_OVERFLOW_COUNT)},S.length)),U.push(o.createElement("button",{key:"overflowbutton",ref:v,className:D(u.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON)+" "+D(u.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_OVERFLOW)+" "+D(u.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_OVERFLOW_+e.getLocation().getName()),title:P,onClick:function(t){var o=i.getShowOverflowMenu();if(void 0!==o)o(e,t,S,N);else{var n=v.current;(0,a.showPopup)(n,S,N,i,_,p)}t.stopPropagation()},onMouseDown:R,onTouchStart:R},z))}var Y=e.getSelected();if(-1!==Y){var X=e.getChildren()[Y];if(void 0!==X&&i.isSupportsPopout()&&X.isEnableFloat()&&!X.isFloating()){var H=i.i18nName(d.I18nLabel.Float_Tab);U.push(o.createElement("button",{key:"float",title:H,className:D(u.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON)+" "+D(u.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_FLOAT),onClick:function(t){var o=e.getChildren()[e.getSelected()];void 0!==o&&i.doAction(s.Actions.floatTab(o.getId())),t.stopPropagation()},onMouseDown:R,onTouchStart:R},"function"==typeof f.popout?f.popout(X):f.popout))}}I=o.createElement("div",{key:"toolbar",ref:T,className:D(u.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR)+" "+D(u.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_+e.getLocation().getName())},U),w=i.styleFont(w);var k,W=e.getBorderBarSize()-1;return k=e.getLocation()===n.DockLocation.LEFT?{right:W,height:W,top:m}:e.getLocation()===n.DockLocation.RIGHT?{left:W,height:W,top:m}:{height:W,left:m},o.createElement("div",{ref:y,dir:"ltr",style:w,className:x,"data-layout-path":g,onClick:O,onAuxClick:O,onContextMenu:function(t){i.showContextMenu(e,t)},onWheel:L},o.createElement("div",{style:{height:W},className:D(u.CLASSES.FLEXLAYOUT__BORDER_INNER)+" "+D(u.CLASSES.FLEXLAYOUT__BORDER_INNER_+e.getLocation().getName())},o.createElement("div",{style:k,className:D(u.CLASSES.FLEXLAYOUT__BORDER_INNER_TAB_CONTAINER)+" "+D(u.CLASSES.FLEXLAYOUT__BORDER_INNER_TAB_CONTAINER_+e.getLocation().getName())},B)),I)}},680:function(t,e,i){var o,n=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},o(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 i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorBoundary=void 0;var r=i(899),a=i(398),s=function(t){function e(e){var i=t.call(this,e)||this;return i.state={hasError:!1},i}return n(e,t),e.getDerivedStateFromError=function(t){return{hasError:!0}},e.prototype.componentDidCatch=function(t,e){console.debug(t),console.debug(e)},e.prototype.render=function(){return this.state.hasError?r.createElement("div",{className:a.CLASSES.FLEXLAYOUT__ERROR_BOUNDARY_CONTAINER},r.createElement("div",{className:a.CLASSES.FLEXLAYOUT__ERROR_BOUNDARY_CONTENT},this.props.message)):this.props.children},e}(r.Component);e.ErrorBoundary=s},633:function(t,e,i){var o=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var o,n=0,r=e.length;n<r;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.FloatingWindow=void 0;var n=i(899),r=i(994),a=i(398);e.FloatingWindow=function(t){var e=t.title,i=t.id,s=t.url,d=t.rect,l=t.onCloseWindow,c=t.onSetWindow,u=t.children,h=n.useRef(null),_=n.useState(void 0),p=_[0],f=_[1];return n.useLayoutEffect((function(){var t=d,n=Array.from(window.document.styleSheets).reduce((function(t,e){var i=void 0;try{i=e.cssRules}catch(t){}try{return o(o([],t,!0),[{href:e.href,type:e.type,rules:i?Array.from(i).map((function(t){return t.cssText})):null}],!1)}catch(e){return t}}),[]);return h.current=window.open(s,i,"left=".concat(t.x,",top=").concat(t.y,",width=").concat(t.width,",height=").concat(t.height)),null!==h.current?(c(i,h.current),window.addEventListener("beforeunload",(function(){h.current&&(h.current.close(),h.current=null)})),h.current.addEventListener("load",(function(){var t=h.current.document;t.title=e;var o=t.createElement("div");o.className=a.CLASSES.FLEXLAYOUT__FLOATING_WINDOW_CONTENT,t.body.appendChild(o),function(t,e){for(var i=t.head,o=[],n=function(e){if(e.href){var n=t.createElement("link");n.type=e.type,n.rel="stylesheet",n.href=e.href,i.appendChild(n),o.push(new Promise((function(t,e){n.onload=function(){return t(!0)}})))}else if(e.rules){for(var r=t.createElement("style"),a=0,s=e.rules;a<s.length;a++){var d=s[a];r.appendChild(t.createTextNode(d))}i.appendChild(r)}},r=0,a=e;r<a.length;r++)n(a[r]);return Promise.all(o)}(t,n).then((function(){f(o)})),h.current.addEventListener("beforeunload",(function(){l(i)}))}))):(console.warn("Unable to open window ".concat(s)),l(i)),function(){setTimeout((function(){h.current&&(h.current.close(),h.current=null)}),0)}}),[]),void 0!==p?(0,r.createPortal)(u,p):null}},544:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FloatingWindowTab=void 0;var o=i(899),n=i(680),r=i(306),a=i(899),s=i(398);e.FloatingWindowTab=function(t){var e=t.layout,i=t.node,d=t.factory,l=e.getClassName,c=d(i);return o.createElement("div",{className:l(s.CLASSES.FLEXLAYOUT__FLOATING_WINDOW_TAB)},o.createElement(n.ErrorBoundary,{message:t.layout.i18nName(r.I18nLabel.Error_rendering_component)},o.createElement(a.Fragment,null,c)))}},679:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RestoreIcon=e.PopoutIcon=e.OverflowIcon=e.MaximizeIcon=e.CloseIcon=void 0;var o=i(899),n={width:"1em",height:"1em",display:"flex",alignItems:"center"};e.CloseIcon=function(){return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:n,viewBox:"0 0 24 24"},o.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),o.createElement("path",{stroke:"gray",fill:"gray",d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}))},e.MaximizeIcon=function(){return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:n,viewBox:"0 0 24 24",fill:"gray"},o.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),o.createElement("path",{stroke:"gray",d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}))},e.OverflowIcon=function(){return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:n,viewBox:"0 0 24 24",fill:"gray"},o.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),o.createElement("path",{stroke:"gray",d:"M7 10l5 5 5-5z"}))},e.PopoutIcon=function(){return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:n,viewBox:"0 0 24 24",fill:"gray"},o.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),o.createElement("path",{stroke:"gray",d:"M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z"}))},e.RestoreIcon=function(){return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:n,viewBox:"0 0 24 24",fill:"gray"},o.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),o.createElement("path",{stroke:"gray",d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}))}},175:function(t,e,i){var o,n=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},o(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 i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},r.apply(this,arguments)},a=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var o,n=0,r=e.length;n<r;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Layout=void 0;var s=i(899),d=i(994),l=i(95),c=i(241),u=i(920),h=i(907),_=i(618),p=i(275),f=i(657),g=i(359),T=i(398),v=i(851),E=i(487),b=i(301),y=i(159),m=i(633),A=i(544),S=i(578),L=i(327),O=i(679),R=i(176),N={close:s.createElement(O.CloseIcon,null),closeTabset:s.createElement(O.CloseIcon,null),popout:s.createElement(O.PopoutIcon,null),maximize:s.createElement(O.MaximizeIcon,null),restore:s.createElement(O.RestoreIcon,null),more:s.createElement(O.OverflowIcon,null)},D="undefined"!=typeof window&&(window.document.documentMode||/Edge\//.test(window.navigator.userAgent)),w="undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(hover: hover) and (pointer: fine)").matches&&!D,B=function(t){function e(e){var i=t.call(this,e)||this;return i.firstMove=!1,i.dragRectRendered=!0,i.dragDivText=void 0,i.edgeRectLength=100,i.edgeRectWidth=10,i.edgesShown=!1,i.onModelChange=function(){i.forceUpdate(),i.props.onModelChange&&i.props.onModelChange(i.props.model)},i.updateRect=function(t){void 0===t&&(t=i.getDomRect());var e=new g.Rect(0,0,t.width,t.height);e.equals(i.state.rect)||0===e.width||0===e.height||i.setState({rect:e})},i.updateLayoutMetrics=function(){if(i.findHeaderBarSizeRef.current){var t=i.findHeaderBarSizeRef.current.getBoundingClientRect().height;t!==i.state.calculatedHeaderBarSize&&i.setState({calculatedHeaderBarSize:t})}if(i.findTabBarSizeRef.current){var e=i.findTabBarSizeRef.current.getBoundingClientRect().height;e!==i.state.calculatedTabBarSize&&i.setState({calculatedTabBarSize:e})}if(i.findBorderBarSizeRef.current){var o=i.findBorderBarSizeRef.current.getBoundingClientRect().height;o!==i.state.calculatedBorderBarSize&&i.setState({calculatedBorderBarSize:o})}},i.getClassName=function(t){return void 0===i.props.classNameMapper?t:i.props.classNameMapper(t)},i.onCloseWindow=function(t){i.doAction(u.Actions.unFloatTab(t));try{i.props.model.getNodeById(t)._setWindow(void 0)}catch(t){}},i.onSetWindow=function(t,e){i.props.model.getNodeById(t)._setWindow(e)},i.onCancelAdd=function(){var t,e;i.selfRef.current.removeChild(i.dragDiv),i.dragDiv=void 0,i.hidePortal(),null!=i.fnNewNodeDropped&&(i.fnNewNodeDropped(),i.fnNewNodeDropped=void 0);try{null===(e=null===(t=i.customDrop)||void 0===t?void 0:t.invalidated)||void 0===e||e.call(t)}catch(t){console.error(t)}c.DragDrop.instance.hideGlass(),i.newTabJson=void 0,i.customDrop=void 0},i.onCancelDrag=function(t){var e,o;if(t){var n=i.selfRef.current;try{n.removeChild(i.outlineDiv)}catch(t){}try{n.removeChild(i.dragDiv)}catch(t){}i.dragDiv=void 0,i.hidePortal(),i.hideEdges(n),null!=i.fnNewNodeDropped&&(i.fnNewNodeDropped(),i.fnNewNodeDropped=void 0);try{null===(o=null===(e=i.customDrop)||void 0===e?void 0:e.invalidated)||void 0===o||o.call(e)}catch(t){console.error(t)}c.DragDrop.instance.hideGlass(),i.newTabJson=void 0,i.customDrop=void 0}i.setState({showHiddenBorder:l.DockLocation.CENTER})},i.onDragDivMouseDown=function(t){t.preventDefault(),i.dragStart(t,i.dragDivText,p.TabNode._fromJson(i.newTabJson,i.props.model,!1),!0,void 0,void 0)},i.dragStart=function(t,e,o,n,r,a){n?(i.dragNode=o,i.dragDivText=e,c.DragDrop.instance.startDrag(t,i.onDragStart,i.onDragMove,i.onDragEnd,i.onCancelDrag,r,a,i.currentDocument,i.selfRef.current)):c.DragDrop.instance.startDrag(t,void 0,void 0,void 0,void 0,r,a,i.currentDocument,i.selfRef.current)},i.dragRectRender=function(t,e,o,n){var r;if(void 0!==t?r=s.createElement("div",{style:{whiteSpace:"pre"}},t.replace("<br>","\n")):e&&e instanceof p.TabNode&&(r=s.createElement(R.TabButtonStamp,{node:e,layout:i,iconFactory:i.props.iconFactory,titleFactory:i.props.titleFactory})),void 0!==i.props.onRenderDragRect){var a=i.props.onRenderDragRect(r,e,o);void 0!==a&&(r=a)}i.dragDiv.style.visibility="hidden",i.dragRectRendered=!1,i.showPortal(s.createElement(C,{onRendered:function(){i.dragRectRendered=!0,null==n||n()}},r),i.dragDiv)},i.showPortal=function(t,e){var o=d.createPortal(t,e);i.setState({portal:o})},i.hidePortal=function(){i.setState({portal:void 0})},i.onDragStart=function(){i.dropInfo=void 0,i.customDrop=void 0;var t=i.selfRef.current;return i.outlineDiv=i.currentDocument.createElement("div"),i.outlineDiv.className=i.getClassName(T.CLASSES.FLEXLAYOUT__OUTLINE_RECT),i.outlineDiv.style.visibility="hidden",t.appendChild(i.outlineDiv),null==i.dragDiv&&(i.dragDiv=i.currentDocument.createElement("div"),i.dragDiv.className=i.getClassName(T.CLASSES.FLEXLAYOUT__DRAG_RECT),i.dragDiv.setAttribute("data-layout-path","/drag-rectangle"),i.dragRectRender(i.dragDivText,i.dragNode,i.newTabJson),t.appendChild(i.dragDiv)),void 0===i.props.model.getMaximizedTabset()&&i.showEdges(t),void 0!==i.dragNode&&i.dragNode instanceof p.TabNode&&void 0!==i.dragNode.getTabRect()&&i.dragNode.getTabRect().positionElement(i.outlineDiv),i.firstMove=!0,!0},i.onDragMove=function(t){if(!1===i.firstMove){var e=i.props.model._getAttribute("tabDragSpeed");i.outlineDiv.style.transition="top ".concat(e,"s, left ").concat(e,"s, width ").concat(e,"s, height ").concat(e,"s")}i.firstMove=!1;var o=i.selfRef.current.getBoundingClientRect(),n={x:t.clientX-o.left,y:t.clientY-o.top};i.checkForBorderToShow(n.x,n.y);var r=i.dragDiv.getBoundingClientRect(),a=n.x-r.width/2;a+r.width>o.width&&(a=o.width-r.width),a=Math.max(0,a),i.dragDiv.style.left=a+"px",i.dragDiv.style.top=n.y+5+"px",i.dragRectRendered&&"hidden"===i.dragDiv.style.visibility&&(i.dragDiv.style.visibility="visible");var s=i.props.model._findDropTargetNode(i.dragNode,n.x,n.y);s&&(i.props.onTabDrag?i.handleCustomTabDrag(s,n,t):(i.dropInfo=s,i.outlineDiv.className=i.getClassName(s.className),s.rect.positionElement(i.outlineDiv),i.outlineDiv.style.visibility="visible"))},i.onDragEnd=function(t){var e=i.selfRef.current;if(e.removeChild(i.outlineDiv),e.removeChild(i.dragDiv),i.dragDiv=void 0,i.hidePortal(),i.hideEdges(e),c.DragDrop.instance.hideGlass(),i.dropInfo)if(i.customDrop){i.newTabJson=void 0;try{var o=i.customDrop;(0,o.callback)(o.dragging,o.over,o.x,o.y,o.location),null!=i.fnNewNodeDropped&&(i.fnNewNodeDropped(),i.fnNewNodeDropped=void 0)}catch(t){console.error(t)}}else if(void 0!==i.newTabJson){var n=i.doAction(u.Actions.addNode(i.newTabJson,i.dropInfo.node.getId(),i.dropInfo.location,i.dropInfo.index));null!=i.fnNewNodeDropped&&(i.fnNewNodeDropped(n,t),i.fnNewNodeDropped=void 0),i.newTabJson=void 0}else void 0!==i.dragNode&&i.doAction(u.Actions.moveNode(i.dragNode.getId(),i.dropInfo.node.getId(),i.dropInfo.location,i.dropInfo.index));i.setState({showHiddenBorder:l.DockLocation.CENTER})},i.props.model._setChangeListener(i.onModelChange),i.tabIds=[],i.selfRef=s.createRef(),i.findHeaderBarSizeRef=s.createRef(),i.findTabBarSizeRef=s.createRef(),i.findBorderBarSizeRef=s.createRef(),i.supportsPopout=void 0!==e.supportsPopout?e.supportsPopout:w,i.popoutURL=e.popoutURL?e.popoutURL:"popout.html",i.icons=r(r({},N),e.icons),i.firstRender=!0,i.state={rect:new g.Rect(0,0,0,0),calculatedHeaderBarSize:25,calculatedTabBarSize:26,calculatedBorderBarSize:30,editingTab:void 0,showHiddenBorder:l.DockLocation.CENTER},i.onDragEnter=i.onDragEnter.bind(i),i}return n(e,t),e.prototype.styleFont=function(t){return this.props.font&&(this.selfRef.current&&(this.props.font.size&&this.selfRef.current.style.setProperty("--font-size",this.props.font.size),this.props.font.family&&this.selfRef.current.style.setProperty("--font-family",this.props.font.family)),this.props.font.style&&(t.fontStyle=this.props.font.style),this.props.font.weight&&(t.fontWeight=this.props.font.weight)),t},e.prototype.doAction=function(t){if(void 0!==this.props.onAction){var e=this.props.onAction(t);return void 0!==e?this.props.model.doAction(e):void 0}return this.props.model.doAction(t)},e.prototype.componentDidMount=function(){var t=this;this.updateRect(),this.updateLayoutMetrics(),this.currentDocument=this.selfRef.current.ownerDocument,this.currentWindow=this.currentDocument.defaultView,this.resizeObserver=new ResizeObserver((function(e){t.updateRect(e[0].contentRect)})),this.resizeObserver.observe(this.selfRef.current)},e.prototype.componentDidUpdate=function(){this.updateLayoutMetrics(),this.props.model!==this.previousModel&&(void 0!==this.previousModel&&this.previousModel._setChangeListener(void 0),this.props.model._setChangeListener(this.onModelChange),this.previousModel=this.props.model)},e.prototype.getCurrentDocument=function(){return this.currentDocument},e.prototype.getDomRect=function(){return this.selfRef.current.getBoundingClientRect()},e.prototype.getRootDiv=function(){return this.selfRef.current},e.prototype.isSupportsPopout=function(){return this.supportsPopout},e.prototype.isRealtimeResize=function(){var t;return null!==(t=this.props.realtimeResize)&&void 0!==t&&t},e.prototype.onTabDrag=function(){for(var t,e,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return null===(e=(t=this.props).onTabDrag)||void 0===e?void 0:e.call.apply(e,a([t],i,!1))},e.prototype.getPopoutURL=function(){return this.popoutURL},e.prototype.componentWillUnmount=function(){var t;null===(t=this.resizeObserver)||void 0===t||t.unobserve(this.selfRef.current)},e.prototype.setEditingTab=function(t){this.setState({editingTab:t})},e.prototype.getEditingTab=function(){return this.state.editingTab},e.prototype.render=function(){if(this.firstRender)return this.firstRender=!1,s.createElement("div",{ref:this.selfRef,className:this.getClassName(T.CLASSES.FLEXLAYOUT__LAYOUT)},this.metricsElements());this.props.model._setPointerFine(window&&window.matchMedia&&window.matchMedia("(pointer: fine)").matches);var t=[],e=[],i=[],o={},n=[],r={headerBarSize:this.state.calculatedHeaderBarSize,tabBarSize:this.state.calculatedTabBarSize,borderBarSize:this.state.calculatedBorderBarSize};this.props.model._setShowHiddenBorder(this.state.showHiddenBorder),this.centerRect=this.props.model._layout(this.state.rect,r),this.renderBorder(this.props.model.getBorderSet(),t,o,i,n),this.renderChildren("",this.props.model.getRoot(),e,o,i,n),this.edgesShown&&this.repositionEdges(this.state.rect);for(var a=[],d={},l=0,c=this.tabIds;l<c.length;l++){var u=c[l];o[u]&&(a.push(u),d[u]=u)}this.tabIds=a;for(var h=0,_=Object.keys(o);h<_.length;h++)d[u=_[h]]||this.tabIds.push(u);return s.createElement("div",{ref:this.selfRef,className:this.getClassName(T.CLASSES.FLEXLAYOUT__LAYOUT),onDragEnter:this.props.onExternalDrag?this.onDragEnter:void 0},e,this.tabIds.map((function(t){return o[t]})),t,n,i,this.metricsElements(),this.state.portal)},e.prototype.metricsElements=function(){var t=this.styleFont({visibility:"hidden"});return s.createElement(s.Fragment,null,s.createElement("div",{key:"findHeaderBarSize",ref:this.findHeaderBarSizeRef,style:t,className:this.getClassName(T.CLASSES.FLEXLAYOUT__TABSET_HEADER_SIZER)},"FindHeaderBarSize"),s.createElement("div",{key:"findTabBarSize",ref:this.findTabBarSizeRef,style:t,className:this.getClassName(T.CLASSES.FLEXLAYOUT__TABSET_SIZER)},"FindTabBarSize"),s.createElement("div",{key:"findBorderBarSize",ref:this.findBorderBarSizeRef,style:t,className:this.getClassName(T.CLASSES.FLEXLAYOUT__BORDER_SIZER)},"FindBorderBarSize"))},e.prototype.renderBorder=function(t,e,i,o,n){for(var r=0,a=t.getBorders();r<a.length;r++){var d=a[r],l="/border/".concat(d.getLocation().getName());if(d.isShowing()){e.push(s.createElement(v.BorderTabSet,{key:"border_".concat(d.getLocation().getName()),path:l,border:d,layout:this,iconFactory:this.props.iconFactory,titleFactory:this.props.titleFactory,icons:this.icons}));for(var c=0,u=0,h=0,f=d._getDrawChildren();h<f.length;h++){var g=f[h];if(g instanceof _.SplitterNode){var T=l+"/s";n.push(s.createElement(E.Splitter,{key:g.getId(),layout:this,node:g,path:T}))}else if(g instanceof p.TabNode)if(T=l+"/t"+u++,this.supportsPopout&&g.isFloating()){var y=this._getScreenRect(g);o.push(s.createElement(m.FloatingWindow,{key:g.getId(),url:this.popoutURL,rect:y,title:g.getName(),id:g.getId(),onSetWindow:this.onSetWindow,onCloseWindow:this.onCloseWindow},s.createElement(A.FloatingWindowTab,{layout:this,node:g,factory:this.props.factory}))),i[g.getId()]=s.createElement(S.TabFloating,{key:g.getId(),layout:this,path:T,node:g,selected:c===d.getSelected()})}else i[g.getId()]=s.createElement(b.Tab,{key:g.getId(),layout:this,path:T,node:g,selected:c===d.getSelected(),factory:this.props.factory});c++}}}},e.prototype.renderChildren=function(t,e,i,o,n,r){for(var a=0,d=0,l=0,c=0,u=e._getDrawChildren();c<u.length;c++){var h=u[c];if(h instanceof _.SplitterNode){var g=t+"/s"+a++;r.push(s.createElement(E.Splitter,{key:h.getId(),layout:this,path:g,node:h}))}else if(h instanceof f.TabSetNode)g=t+"/ts"+l++,i.push(s.createElement(y.TabSet,{key:h.getId(),layout:this,path:g,node:h,iconFactory:this.props.iconFactory,titleFactory:this.props.titleFactory,icons:this.icons})),this.renderChildren(g,h,i,o,n,r);else if(h instanceof p.TabNode){g=t+"/t"+d++;var T=h.getParent().getChildren()[h.getParent().getSelected()];if(void 0===T&&console.warn("undefined selectedTab should not happen"),this.supportsPopout&&h.isFloating()){var v=this._getScreenRect(h);n.push(s.createElement(m.FloatingWindow,{key:h.getId(),url:this.popoutURL,rect:v,title:h.getName(),id:h.getId(),onSetWindow:this.onSetWindow,onCloseWindow:this.onCloseWindow},s.createElement(A.FloatingWindowTab,{layout:this,node:h,factory:this.props.factory}))),o[h.getId()]=s.createElement(S.TabFloating,{key:h.getId(),layout:this,path:g,node:h,selected:h===T})}else o[h.getId()]=s.createElement(b.Tab,{key:h.getId(),layout:this,path:g,node:h,selected:h===T,factory:this.props.factory})}else g=t+(h.getOrientation()===L.Orientation.HORZ?"/r":"/c")+l++,this.renderChildren(g,h,i,o,n,r)}},e.prototype._getScreenRect=function(t){var e=t.getRect().clone(),i=this.selfRef.current.getBoundingClientRect(),o=Math.min(80,this.currentWindow.outerHeight-this.currentWindow.innerHeight),n=Math.min(80,this.currentWindow.outerWidth-this.currentWindow.innerWidth);return e.x=e.x+i.x+this.currentWindow.screenX+n,e.y=e.y+i.y+this.currentWindow.screenY+o,e},e.prototype.addTabToTabSet=function(t,e){void 0!==this.props.model.getNodeById(t)&&this.doAction(u.Actions.addNode(e,t,l.DockLocation.CENTER,-1))},e.prototype.addTabToActiveTabSet=function(t){var e=this.props.model.getActiveTabset();void 0!==e&&this.doAction(u.Actions.addNode(t,e.getId(),l.DockLocation.CENTER,-1))},e.prototype.addTabWithDragAndDrop=function(t,e,i){this.fnNewNodeDropped=i,this.newTabJson=e,this.dragStart(void 0,t,p.TabNode._fromJson(e,this.props.model,!1),!0,void 0,void 0)},e.prototype.addTabWithDragAndDropIndirect=function(t,e,i){var o=this;this.fnNewNodeDropped=i,this.newTabJson=e,c.DragDrop.instance.addGlass(this.onCancelAdd),this.dragDivText=t,this.dragDiv=this.currentDocument.createElement("div"),this.dragDiv.className=this.getClassName(T.CLASSES.FLEXLAYOUT__DRAG_RECT),this.dragDiv.addEventListener("mousedown",this.onDragDivMouseDown),this.dragDiv.addEventListener("touchstart",this.onDragDivMouseDown),this.dragRectRender(this.dragDivText,void 0,this.newTabJson,(function(){if(o.dragDiv){o.dragDiv.style.visibility="visible";var t=o.dragDiv.getBoundingClientRect(),e=new g.Rect(0,0,null==t?void 0:t.width,null==t?void 0:t.height);e.centerInRect(o.state.rect),o.dragDiv.setAttribute("data-layout-path","/drag-rectangle"),o.dragDiv.style.left=e.x+"px",o.dragDiv.style.top=e.y+"px"}})),this.selfRef.current.appendChild(this.dragDiv)},e.prototype.handleCustomTabDrag=function(t,e,i){var o,n,r,a=this,s=null===(o=this.customDrop)||void 0===o?void 0:o.invalidated,d=null===(n=this.customDrop)||void 0===n?void 0:n.callback;this.customDrop=void 0;var l=this.newTabJson||(this.dragNode instanceof p.TabNode?this.dragNode:void 0);if(l&&(t.node instanceof f.TabSetNode||t.node instanceof h.BorderNode)&&-1===t.index){var u=t.node.getSelectedNode(),_=null==u?void 0:u.getRect();if(u&&(null==_?void 0:_.contains(e.x,e.y))){var v=void 0;try{var E=this.onTabDrag(l,u,e.x-_.x,e.y-_.y,t.location,(function(){return a.onDragMove(i)}));E&&(v={rect:new g.Rect(E.x+_.x,E.y+_.y,E.width,E.height),callback:E.callback,invalidated:E.invalidated,dragging:l,over:u,x:e.x-_.x,y:e.y-_.y,location:t.location,cursor:E.cursor})}catch(t){console.error(t)}(null==v?void 0:v.callback)===d&&(s=void 0),this.customDrop=v}}this.dropInfo=t,this.outlineDiv.className=this.getClassName(this.customDrop?T.CLASSES.FLEXLAYOUT__OUTLINE_RECT:t.className),this.customDrop?this.customDrop.rect.positionElement(this.outlineDiv):t.rect.positionElement(this.outlineDiv),c.DragDrop.instance.setGlassCursorOverride(null===(r=this.customDrop)||void 0===r?void 0:r.cursor),this.outlineDiv.style.visibility="visible";try{null==s||s()}catch(t){console.error(t)}},e.prototype.onDragEnter=function(t){if(!c.DragDrop.instance.isDragging()){var e=this.props.onExternalDrag(t);e&&(this.fnNewNodeDropped=e.onDrop,this.newTabJson=e.json,this.dragStart(t,e.dragText,p.TabNode._fromJson(e.json,this.props.model,!1),!0,void 0,void 0))}},e.prototype.checkForBorderToShow=function(t,e){var i=this.props.model._getOuterInnerRects().outer,o=i.getCenter(),n=this.edgeRectWidth,r=this.edgeRectLength/2,a=!1;this.props.model.isEnableEdgeDock()&&this.state.showHiddenBorder===l.DockLocation.CENTER&&(e>o.y-r&&e<o.y+r||t>o.x-r&&t<o.x+r)&&(a=!0);var s=l.DockLocation.CENTER;a||(t<=i.x+n?s=l.DockLocation.LEFT:t>=i.getRight()-n?s=l.DockLocation.RIGHT:e<=i.y+n?s=l.DockLocation.TOP:e>=i.getBottom()-n&&(s=l.DockLocation.BOTTOM)),s!==this.state.showHiddenBorder&&this.setState({showHiddenBorder:s})},e.prototype.showEdges=function(t){if(this.props.model.isEnableEdgeDock()){var e=this.edgeRectLength+"px",i="50px",o=this.edgeRectWidth+"px";this.edgeTopDiv=this.currentDocument.createElement("div"),this.edgeTopDiv.className=this.getClassName(T.CLASSES.FLEXLAYOUT__EDGE_RECT),this.edgeTopDiv.style.width=e,this.edgeTopDiv.style.height=o,this.edgeTopDiv.style.borderBottomLeftRadius=i,this.edgeTopDiv.style.borderBottomRightRadius=i,this.edgeLeftDiv=this.currentDocument.createElement("div"),this.edgeLeftDiv.className=this.getClassName(T.CLASSES.FLEXLAYOUT__EDGE_RECT),this.edgeLeftDiv.style.width=o,this.edgeLeftDiv.style.height=e,this.edgeLeftDiv.style.borderTopRightRadius=i,this.edgeLeftDiv.style.borderBottomRightRadius=i,this.edgeBottomDiv=this.currentDocument.createElement("div"),this.edgeBottomDiv.className=this.getClassName(T.CLASSES.FLEXLAYOUT__EDGE_RECT),this.edgeBottomDiv.style.width=e,this.edgeBottomDiv.style.height=o,this.edgeBottomDiv.style.borderTopLeftRadius=i,this.edgeBottomDiv.style.borderTopRightRadius=i,this.edgeRightDiv=this.currentDocument.createElement("div"),this.edgeRightDiv.className=this.getClassName(T.CLASSES.FLEXLAYOUT__EDGE_RECT),this.edgeRightDiv.style.width=o,this.edgeRightDiv.style.height=e,this.edgeRightDiv.style.borderTopLeftRadius=i,this.edgeRightDiv.style.borderBottomLeftRadius=i,this.repositionEdges(this.state.rect),t.appendChild(this.edgeTopDiv),t.appendChild(this.edgeLeftDiv),t.appendChild(this.edgeBottomDiv),t.appendChild(this.edgeRightDiv),this.edgesShown=!0}},e.prototype.repositionEdges=function(t){if(this.props.model.isEnableEdgeDock()){var e=this.centerRect;this.edgeTopDiv.style.top=e.y+"px",this.edgeTopDiv.style.left=e.x+(e.width-this.edgeRectLength)/2+"px",this.edgeLeftDiv.style.top=e.y+(e.height-this.edgeRectLength)/2+"px",this.edgeLeftDiv.style.left=e.x+"px",this.edgeBottomDiv.style.bottom=t.height-e.getBottom()+"px",this.edgeBottomDiv.style.left=e.x+(e.width-this.edgeRectLength)/2+"px",this.edgeRightDiv.style.top=e.y+(e.height-this.edgeRectLength)/2+"px",this.edgeRightDiv.style.right=t.width-e.getRight()+"px"}},e.prototype.hideEdges=function(t){if(this.props.model.isEnableEdgeDock())try{t.removeChild(this.edgeTopDiv),t.removeChild(this.edgeLeftDiv),t.removeChild(this.edgeBottomDiv),t.removeChild(this.edgeRightDiv)}catch(t){}this.edgesShown=!1},e.prototype.maximize=function(t){this.doAction(u.Actions.maximizeToggle(t.getId()))},e.prototype.customizeTab=function(t,e){this.props.onRenderTab&&this.props.onRenderTab(t,e)},e.prototype.customizeTabSet=function(t,e){this.props.onRenderTabSet&&this.props.onRenderTabSet(t,e)},e.prototype.i18nName=function(t,e){var i;return this.props.i18nMapper&&(i=this.props.i18nMapper(t,e)),void 0===i&&(i=t+(void 0===e?"":e)),i},e.prototype.getOnRenderFloatingTabPlaceholder=function(){return this.props.onRenderFloatingTabPlaceholder},e.prototype.getShowOverflowMenu=function(){return this.props.onShowOverflowMenu},e.prototype.getTabSetPlaceHolderCallback=function(){return this.props.onTabSetPlaceHolder},e.prototype.showContextMenu=function(t,e){this.props.onContextMenu&&this.props.onContextMenu(t,e)},e.prototype.auxMouseClick=function(t,e){this.props.onAuxMouseClick&&this.props.onAuxMouseClick(t,e)},e}(s.Component);e.Layout=B;var C=function(t){return s.useEffect((function(){var e;null===(e=t.onRendered)||void 0===e||e.call(t)}),[t]),s.createElement(s.Fragment,null,t.children)}},487:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Splitter=void 0;var o=i(899),n=i(241),r=i(920),a=i(907),s=i(327),d=i(398);e.Splitter=function(t){var e=t.layout,i=t.node,l=t.path,c=o.useRef([]),u=o.useRef(void 0),h=i.getParent(),_=function(t){n.DragDrop.instance.setGlassCursorOverride(i.getOrientation()===s.Orientation.HORZ?"ns-resize":"ew-resize"),n.DragDrop.instance.startDrag(t,f,g,v,p,void 0,void 0,e.getCurrentDocument(),e.getRootDiv()),c.current=h._getSplitterBounds(i,!0);var o=e.getRootDiv();u.current=e.getCurrentDocument().createElement("div"),u.current.style.position="absolute",u.current.className=e.getClassName(d.CLASSES.FLEXLAYOUT__SPLITTER_DRAG),u.current.style.cursor=i.getOrientation()===s.Orientation.HORZ?"ns-resize":"ew-resize";var r=i.getRect();i.getOrientation()===s.Orientation.VERT&&r.width<2?r.width=2:i.getOrientation()===s.Orientation.HORZ&&r.height<2&&(r.height=2),r.positionElement(u.current),o.appendChild(u.current)},p=function(t){e.getRootDiv().removeChild(u.current)},f=function(){return!0},g=function(t){var o=e.getDomRect(),n=t.clientX-o.left,r=t.clientY-o.top;u&&(i.getOrientation()===s.Orientation.HORZ?u.current.style.top=E(r-4)+"px":u.current.style.left=E(n-4)+"px"),e.isRealtimeResize()&&T()},T=function(){var t=0;if(u&&(t=i.getOrientation()===s.Orientation.HORZ?u.current.offsetTop:u.current.offsetLeft),h instanceof a.BorderNode){var o=h._calculateSplit(i,t);e.doAction(r.Actions.adjustBorderSplit(i.getParent().getId(),o))}else{var n=h._calculateSplit(i,t);void 0!==n&&e.doAction(r.Actions.adjustSplit(n))}},v=function(){T(),e.getRootDiv().removeChild(u.current)},E=function(t){var e=c.current,i=t;return t<e[0]&&(i=e[0]),t>e[1]&&(i=e[1]),i},b=e.getClassName,y=i.getRect(),m=y.styleWithPosition({cursor:i.getOrientation()===s.Orientation.HORZ?"ns-resize":"ew-resize"}),A=b(d.CLASSES.FLEXLAYOUT__SPLITTER)+" "+b(d.CLASSES.FLEXLAYOUT__SPLITTER_+i.getOrientation().getName());h instanceof a.BorderNode?A+=" "+b(d.CLASSES.FLEXLAYOUT__SPLITTER_BORDER):void 0!==i.getModel().getMaximizedTabset()&&(m.display="none");var S=i.getModel().getSplitterExtra();if(0===S)return o.createElement("div",{style:m,"data-layout-path":l,className:A,onTouchStart:_,onMouseDown:_});var L=y.clone();L.x=0,L.y=0,i.getOrientation()===s.Orientation.VERT?L.width+=S:L.height+=S;var O=L.styleWithPosition({cursor:i.getOrientation()===s.Orientation.HORZ?"ns-resize":"ew-resize"}),R=b(d.CLASSES.FLEXLAYOUT__SPLITTER_EXTRA);return o.createElement("div",{style:m,"data-layout-path":l,className:A},o.createElement("div",{style:O,className:R,onTouchStart:_,onMouseDown:_}))}},301:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Tab=void 0;var o=i(899),n=i(899),r=i(920),a=i(657),s=i(398),d=i(680),l=i(306),c=i(907),u=i(258);e.Tab=function(t){var e=t.layout,i=t.selected,h=t.node,_=t.factory,p=t.path,f=o.useState(!t.node.isEnableRenderOnDemand()||t.selected),g=f[0],T=f[1];o.useLayoutEffect((function(){!g&&i&&T(!0)}));var v,E=function(){var t=h.getParent();t.getType()===a.TabSetNode.TYPE&&(t.isActive()||e.doAction(r.Actions.setActiveTabset(t.getId())))},b=e.getClassName,y=h.getModel().isUseVisibility(),m=h.getParent(),A=h._styleWithPosition();i||(0,u.hideElement)(A,y),m instanceof a.TabSetNode&&(void 0===h.getModel().getMaximizedTabset()||m.isMaximized()||(0,u.hideElement)(A,y)),g&&(v=_(h));var S=b(s.CLASSES.FLEXLAYOUT__TAB);return m instanceof c.BorderNode&&(S+=" "+b(s.CLASSES.FLEXLAYOUT__TAB_BORDER),S+=" "+b(s.CLASSES.FLEXLAYOUT__TAB_BORDER_+m.getLocation().getName())),o.createElement("div",{className:S,"data-layout-path":p,onMouseDown:E,onTouchStart:E,style:A},o.createElement(d.ErrorBoundary,{message:t.layout.i18nName(l.I18nLabel.Error_rendering_component)},o.createElement(n.Fragment,null,v)))}},625:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TabButton=void 0;var o=i(899),n=i(306),r=i(920),a=i(359),s=i(138),d=i(398),l=i(258);e.TabButton=function(t){var e=t.layout,i=t.node,c=t.selected,u=t.iconFactory,h=t.titleFactory,_=t.icons,p=t.path,f=o.useRef(null),g=o.useRef(null),T=function(t){(0,l.isAuxMouseEvent)(t)||e.getEditingTab()||e.dragStart(t,void 0,i,i.isEnableDrag(),E,b)},v=function(t){(0,l.isAuxMouseEvent)(t)&&e.auxMouseClick(i,t)},E=function(){e.doAction(r.Actions.selectTab(i.getId()))},b=function(t){i.isEnableRename()&&y()},y=function(){e.setEditingTab(i),e.getCurrentDocument().body.addEventListener("mousedown",m),e.getCurrentDocument().body.addEventListener("touchstart",m)},m=function(t){t.target!==g.current&&(e.getCurrentDocument().body.removeEventListener("mousedown",m),e.getCurrentDocument().body.removeEventListener("touchstart",m),e.setEditingTab(void 0))},A=function(t){t.stopPropagation()};o.useLayoutEffect((function(){S(),e.getEditingTab()===i&&g.current.select()}));var S=function(){var t=e.getDomRect(),o=f.current.getBoundingClientRect();i._setTabRect(new a.Rect(o.left-t.left,o.top-t.top,o.width,o.height))},L=function(t){t.stopPropagation()},O=e.getClassName,R=i.getParent(),N=d.CLASSES.FLEXLAYOUT__TAB_BUTTON,D=O(N);D+=" "+O(N+"_"+R.getTabLocation()),D+=c?" "+O(N+"--selected"):" "+O(N+"--unselected"),void 0!==i.getClassName()&&(D+=" "+i.getClassName());var w=(0,l.getRenderStateEx)(e,i,u,h),B=w.content?o.createElement("div",{className:O(d.CLASSES.FLEXLAYOUT__TAB_BUTTON_CONTENT)},w.content):null,C=w.leading?o.createElement("div",{className:O(d.CLASSES.FLEXLAYOUT__TAB_BUTTON_LEADING)},w.leading):null;if(e.getEditingTab()===i&&(B=o.createElement("input",{ref:g,className:O(d.CLASSES.FLEXLAYOUT__TAB_BUTTON_TEXTBOX),"data-layout-path":p+"/textbox",type:"text",autoFocus:!0,defaultValue:i.getName(),onKeyDown:function(t){27===t.keyCode?e.setEditingTab(void 0):13===t.keyCode&&(e.setEditingTab(void 0),e.doAction(r.Actions.renameTab(i.getId(),t.target.value)))},onMouseDown:L,onTouchStart:L})),i.isEnableClose()){var M=e.i18nName(n.I18nLabel.Close_Tab);w.buttons.push(o.createElement("div",{key:"close","data-layout-path":p+"/button/close",title:M,className:O(d.CLASSES.FLEXLAYOUT__TAB_BUTTON_TRAILING),onMouseDown:A,onClick:function(t){var o;o=i.getCloseType(),c||o===s.ICloseType.Always||o===s.ICloseType.Visible&&window.matchMedia&&window.matchMedia("(hover: hover) and (pointer: fine)").matches?e.doAction(r.Actions.deleteTab(i.getId())):E()},onTouchStart:A},"function"==typeof _.close?_.close(i):_.close))}return o.createElement("div",{ref:f,"data-layout-path":p,className:D,onMouseDown:T,onClick:v,onAuxClick:v,onContextMenu:function(t){e.showContextMenu(i,t)},onTouchStart:T,title:i.getHelpText()},C,B,w.buttons)}},176:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TabButtonStamp=void 0;var o=i(899),n=i(398),r=i(258);e.TabButtonStamp=function(t){var e=t.layout,i=t.node,a=t.iconFactory,s=t.titleFactory,d=o.useRef(null),l=e.getClassName,c=l(n.CLASSES.FLEXLAYOUT__TAB_BUTTON_STAMP),u=(0,r.getRenderStateEx)(e,i,a,s),h=u.content?o.createElement("div",{className:l(n.CLASSES.FLEXLAYOUT__TAB_BUTTON_CONTENT)},u.content):i._getNameForOverflowMenu(),_=u.leading?o.createElement("div",{className:l(n.CLASSES.FLEXLAYOUT__TAB_BUTTON_LEADING)},u.leading):null;return o.createElement("div",{ref:d,className:c,title:i.getHelpText()},_,h)}},578:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TabFloating=void 0;var o=i(899),n=i(920),r=i(657),a=i(398),s=i(306),d=i(258);e.TabFloating=function(t){var e=t.layout,i=t.selected,l=t.node,c=t.path,u=function(){l.getWindow()&&l.getWindow().focus()},h=function(){e.doAction(n.Actions.unFloatTab(l.getId()))},_=function(){var t=l.getParent();t.getType()===r.TabSetNode.TYPE&&(t.isActive()||e.doAction(n.Actions.setActiveTabset(t.getId())))},p=e.getClassName,f=l.getParent(),g=l._styleWithPosition();i||(0,d.hideElement)(g,l.getModel().isUseVisibility()),f instanceof r.TabSetNode&&(void 0===l.getModel().getMaximizedTabset()||f.isMaximized()||(0,d.hideElement)(g,l.getModel().isUseVisibility()));var T=e.i18nName(s.I18nLabel.Floating_Window_Message),v=e.i18nName(s.I18nLabel.Floating_Window_Show_Window),E=e.i18nName(s.I18nLabel.Floating_Window_Dock_Window),b=e.getOnRenderFloatingTabPlaceholder();return b?o.createElement("div",{className:p(a.CLASSES.FLEXLAYOUT__TAB_FLOATING),onMouseDown:_,onTouchStart:_,style:g},b(h,u)):o.createElement("div",{className:p(a.CLASSES.FLEXLAYOUT__TAB_FLOATING),"data-layout-path":c,onMouseDown:_,onTouchStart:_,style:g},o.createElement("div",{className:p(a.CLASSES.FLEXLAYOUT__TAB_FLOATING_INNER)},o.createElement("div",null,T),o.createElement("div",null,o.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),u()}},v)),o.createElement("div",null,o.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),h()}},E))))}},953:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.useTabOverflow=void 0;var o=i(899),n=i(359),r=i(657),a=i(327);e.useTabOverflow=function(t,e,i,s){var d=o.useRef(!0),l=o.useRef(!1),c=o.useRef(new n.Rect(0,0,0,0)),u=o.useRef(null),h=o.useState(0),_=h[0],p=h[1],f=o.useRef(!1),g=o.useState([]),T=g[0],v=g[1],E=o.useRef(0);o.useLayoutEffect((function(){f.current=!1}),[t.getSelectedNode(),t.getRect().width,t.getRect().height]),o.useLayoutEffect((function(){S()})),o.useEffect((function(){var t=u.current;return t.addEventListener("wheel",b),function(){t.removeEventListener("wheel",b)}}),[]);var b=function(t){t.preventDefault()},y=function(t){return e===a.Orientation.HORZ?t.x:t.y},m=function(t){return e===a.Orientation.HORZ?t.getRight():t.getBottom()},A=function(t){return e===a.Orientation.HORZ?t.width:t.height},S=function(){!0===d.current&&(l.current=!1);var e=t instanceof r.TabSetNode?t.getRect():t.getTabHeaderRect(),o=t.getChildren()[t.getChildren().length-1],n=null===s.current?0:A(s.current.getBoundingClientRect());if(!0===d.current||0===E.current&&0!==T.length||e.width!==c.current.width||e.height!==c.current.height){E.current=T.length,c.current=e;var a=!(t instanceof r.TabSetNode)||!0===t.isEnableTabStrip(),u=m(e)-n;if(null!==i.current&&(u-=A(i.current.getBoundingClientRect())),a&&t.getChildren().length>0){if(0===T.length&&0===_&&m(o.getTabRect())+2<u)return;var h=0,g=t.getSelectedNode();if(g&&!f.current){var b=g.getTabRect(),S=y(b)-2,L=m(b)+2;A(b)+4>=u-y(e)?h=y(e)-S:(L>u||S<y(e))&&(S<y(e)&&(h=y(e)-S),L+h>u&&(h=u-L))}for(var O=Math.max(0,u-(m(o.getTabRect())+2+h)),R=Math.min(0,_+h+O),N=R-_,D=[],w=0;w<t.getChildren().length;w++){var B=t.getChildren()[w];(y(B.getTabRect())+N<y(e)||m(B.getTabRect())+N>u)&&D.push({node:B,index:w})}D.length>0&&(l.current=!0),d.current=!1,v(D),p(R)}}else d.current=!0};return{selfRef:u,position:_,userControlledLeft:f,hiddenTabs:T,onMouseWheel:function(t){var e=0;e=Math.abs(t.deltaX)>Math.abs(t.deltaY)?-t.deltaX:-t.deltaY,1===t.deltaMode&&(e*=40),p(_+e),f.current=!0,t.stopPropagation()},tabsTruncated:l.current}}},159:function(t,e,i){var o=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var o,n=0,r=e.length;n<r;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.TabSet=void 0;var n=i(899),r=i(306),a=i(920),s=i(119),d=i(625),l=i(953),c=i(327),u=i(398),h=i(258);e.TabSet=function(t){var e=t.node,i=t.layout,_=t.iconFactory,p=t.titleFactory,f=t.icons,g=t.path,T=n.useRef(null),v=n.useRef(null),E=n.useRef(null),b=n.useRef(null),y=(0,l.useTabOverflow)(e,c.Orientation.HORZ,T,b),m=y.selfRef,A=y.position,S=y.userControlledLeft,L=y.hiddenTabs,O=y.onMouseWheel,R=y.tabsTruncated,N=function(t){i.doAction(a.Actions.selectTab(t.node.getId())),S.current=!1},D=function(t){if(!(0,h.isAuxMouseEvent)(t)){var o=e.getName();if(o=void 0===o?"":": "+o,i.doAction(a.Actions.setActiveTabset(e.getId())),!i.getEditingTab()){var n=i.i18nName(r.I18nLabel.Move_Tabset,o);void 0!==e.getModel().getMaximizedTabset()?i.dragStart(t,n,e,!1,(function(t){}),M):i.dragStart(t,n,e,e.isEnableDrag(),(function(t){}),M)}}},w=function(t){(0,h.isAuxMouseEvent)(t)&&i.auxMouseClick(e,t)},B=function(t){i.showContextMenu(e,t)},C=function(t){t.stopPropagation()},M=function(t){e.canMaximize()&&i.maximize(e)},x=i.getClassName;null!==E.current&&0!==E.current.scrollLeft&&(E.current.scrollLeft=0);var I=e.getSelectedNode(),U=e._styleWithPosition();void 0===e.getModel().getMaximizedTabset()||e.isMaximized()||(0,h.hideElement)(U,e.getModel().isUseVisibility());var F=[];if(e.isEnableTabStrip())for(var z=0;z<e.getChildren().length;z++){var P=e.getChildren()[z],Y=e.getSelected()===z;F.push(n.createElement(d.TabButton,{layout:i,node:P,path:g+"/tb"+z,key:P.getId(),selected:Y,iconFactory:_,titleFactory:p,icons:f})),F.push(n.createElement("div",{key:"divider"+z,className:x(u.CLASSES.FLEXLAYOUT__TABSET_TAB_DIVIDER)}))}var X=void 0!==e.getName(),H=[],k=[],W=[],j={headerContent:e.getName(),stickyButtons:H,buttons:k,headerButtons:W};i.customizeTabSet(e,j);var G,V,J,Z=j.headerContent;if(k=j.buttons,W=j.headerButtons,(H=j.stickyButtons).length>0&&(R?k=o(o([],H,!0),k,!0):F.push(n.createElement("div",{ref:b,key:"sticky_buttons_container",onMouseDown:C,onTouchStart:C,onDragStart:function(t){t.preventDefault()},className:x(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_STICKY_BUTTONS_CONTAINER)},H))),L.length>0){var q,K=i.i18nName(r.I18nLabel.Overflow_Menu_Tooltip);q="function"==typeof f.more?f.more(e,L):n.createElement(n.Fragment,null,f.more,n.createElement("div",{className:x(u.CLASSES.FLEXLAYOUT__TAB_BUTTON_OVERFLOW_COUNT)},L.length)),k.push(n.createElement("button",{key:"overflowbutton","data-layout-path":g+"/button/overflow",ref:v,className:x(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON)+" "+x(u.CLASSES.FLEXLAYOUT__TAB_BUTTON_OVERFLOW),title:K,onClick:function(t){var o=i.getShowOverflowMenu();if(void 0!==o)o(e,t,L,N);else{var n=v.current;(0,s.showPopup)(n,L,N,i,_,p)}t.stopPropagation()},onMouseDown:C,onTouchStart:C},q))}if(void 0!==I&&i.isSupportsPopout()&&I.isEnableFloat()&&!I.isFloating()){var $=i.i18nName(r.I18nLabel.Float_Tab);k.push(n.createElement("button",{key:"float","data-layout-path":g+"/button/float",title:$,className:x(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON)+" "+x(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_FLOAT),onClick:function(t){void 0!==I&&i.doAction(a.Actions.floatTab(I.getId())),t.stopPropagation()},onMouseDown:C,onTouchStart:C},"function"==typeof f.popout?f.popout(I):f.popout))}if(e.canMaximize()){var Q=i.i18nName(r.I18nLabel.Restore),tt=i.i18nName(r.I18nLabel.Maximize);(X?W:k).push(n.createElement("button",{key:"max","data-layout-path":g+"/button/max",title:e.isMaximized()?Q:tt,className:x(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON)+" "+x(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_+(e.isMaximized()?"max":"min")),onClick:function(t){e.canMaximize()&&i.maximize(e),t.stopPropagation()},onMouseDown:C,onTouchStart:C},e.isMaximized()?"function"==typeof f.restore?f.restore(e):f.restore:"function"==typeof f.maximize?f.maximize(e):f.maximize))}if(!e.isMaximized()&&e.isEnableClose()){var et=i.i18nName(r.I18nLabel.Close_Tabset);(X?W:k).push(n.createElement("button",{key:"close","data-layout-path":g+"/button/close",title:et,className:x(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON)+" "+x(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_CLOSE),onClick:function(t){i.doAction(a.Actions.deleteTabset(e.getId())),t.stopPropagation()},onMouseDown:C,onTouchStart:C},"function"==typeof f.closeTabset?f.closeTabset(e):f.closeTabset))}G=n.createElement("div",{key:"toolbar",ref:T,className:x(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR),onMouseDown:C,onTouchStart:C,onDragStart:function(t){t.preventDefault()}},k);var it=x(u.CLASSES.FLEXLAYOUT__TABSET_TABBAR_OUTER);if(void 0!==e.getClassNameTabStrip()&&(it+=" "+e.getClassNameTabStrip()),it+=" "+u.CLASSES.FLEXLAYOUT__TABSET_TABBAR_OUTER_+e.getTabLocation(),e.isActive()&&!X&&(it+=" "+x(u.CLASSES.FLEXLAYOUT__TABSET_SELECTED)),e.isMaximized()&&!X&&(it+=" "+x(u.CLASSES.FLEXLAYOUT__TABSET_MAXIMIZED)),X){var ot=n.createElement("div",{key:"toolbar",ref:T,className:x(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR),onMouseDown:C,onTouchStart:C,onDragStart:function(t){t.preventDefault()}},W),nt=x(u.CLASSES.FLEXLAYOUT__TABSET_HEADER);e.isActive()&&(nt+=" "+x(u.CLASSES.FLEXLAYOUT__TABSET_SELECTED)),e.isMaximized()&&(nt+=" "+x(u.CLASSES.FLEXLAYOUT__TABSET_MAXIMIZED)),void 0!==e.getClassNameHeader()&&(nt+=" "+e.getClassNameHeader()),V=n.createElement("div",{className:nt,style:{height:e.getHeaderHeight()+"px"},"data-layout-path":g+"/header",onMouseDown:D,onContextMenu:B,onClick:w,onAuxClick:w,onTouchStart:D},n.createElement("div",{className:x(u.CLASSES.FLEXLAYOUT__TABSET_HEADER_CONTENT)},Z),ot)}var rt={height:e.getTabStripHeight()+"px"};J=n.createElement("div",{className:it,style:rt,"data-layout-path":g+"/tabstrip",onMouseDown:D,onContextMenu:B,onClick:w,onAuxClick:w,onTouchStart:D},n.createElement("div",{ref:E,className:x(u.CLASSES.FLEXLAYOUT__TABSET_TABBAR_INNER)+" "+x(u.CLASSES.FLEXLAYOUT__TABSET_TABBAR_INNER_+e.getTabLocation())},n.createElement("div",{style:{left:A},className:x(u.CLASSES.FLEXLAYOUT__TABSET_TABBAR_INNER_TAB_CONTAINER)+" "+x(u.CLASSES.FLEXLAYOUT__TABSET_TABBAR_INNER_TAB_CONTAINER_+e.getTabLocation())},F)),G),U=i.styleFont(U);var at=void 0;if(0===e.getChildren().length){var st=i.getTabSetPlaceHolderCallback();st&&(at=st(e))}var dt,lt=n.createElement("div",{className:x(u.CLASSES.FLEXLAYOUT__TABSET_CONTENT)},at);return dt="top"===e.getTabLocation()?n.createElement(n.Fragment,null,V,J,lt):n.createElement(n.Fragment,null,V,lt,J),n.createElement("div",{ref:m,dir:"ltr","data-layout-path":g,style:U,className:x(u.CLASSES.FLEXLAYOUT__TABSET),onWheel:O},dt)}},258:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isAuxMouseEvent=e.hideElement=e.getRenderStateEx=void 0;var o=i(899);e.getRenderStateEx=function(t,e,i,n){var r=i?i(e):void 0,a=e.getName(),s=e.getName();if(void 0!==n){var d=n(e);void 0!==d&&("string"==typeof d?(a=d,s=d):void 0!==d.titleContent?(a=d.titleContent,s=d.name):a=d)}void 0===r&&void 0!==e.getIcon()&&(r=o.createElement("img",{style:{width:"1em",height:"1em"},src:e.getIcon(),alt:"leadingContent"}));var l={leading:r,content:a,name:s,buttons:[]};return t.customizeTab(e,l),e._setRenderedName(l.name),l},e.hideElement=function(t,e){e?t.visibility="hidden":t.display="none"},e.isAuxMouseEvent=function(t){var e=!1;return t.nativeEvent instanceof MouseEvent&&(0!==t.nativeEvent.button||t.ctrlKey||t.altKey||t.metaKey||t.shiftKey)&&(e=!0),e}},899:e=>{e.exports=t},994:t=>{t.exports=e}},o={};function n(t){var e=o[t];if(void 0!==e)return e.exports;var r=o[t]={exports:{}};return i[t].call(r.exports,r,r.exports,n),r.exports}return n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n(607)})()}));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports.FlexLayout=e(require("react"),require("react-dom")):t.FlexLayout=e(t.React,t.ReactDOM)}(self,(function(t,e){return(()=>{"use strict";var i={453:(t,e,i)=>{var o;i.r(e),i.d(e,{NIL:()=>w,parse:()=>g,stringify:()=>c,v1:()=>f,v3:()=>L,v4:()=>O,v5:()=>D,validate:()=>s,version:()=>B});var n=new Uint8Array(16);function r(){if(!o&&!(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(n)}const a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,s=function(t){return"string"==typeof t&&a.test(t)};for(var d=[],l=0;l<256;++l)d.push((l+256).toString(16).substr(1));const c=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(d[t[e+0]]+d[t[e+1]]+d[t[e+2]]+d[t[e+3]]+"-"+d[t[e+4]]+d[t[e+5]]+"-"+d[t[e+6]]+d[t[e+7]]+"-"+d[t[e+8]]+d[t[e+9]]+"-"+d[t[e+10]]+d[t[e+11]]+d[t[e+12]]+d[t[e+13]]+d[t[e+14]]+d[t[e+15]]).toLowerCase();if(!s(i))throw TypeError("Stringified UUID is invalid");return i};var u,h,_=0,p=0;const f=function(t,e,i){var o=e&&i||0,n=e||new Array(16),a=(t=t||{}).node||u,s=void 0!==t.clockseq?t.clockseq:h;if(null==a||null==s){var d=t.random||(t.rng||r)();null==a&&(a=u=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==s&&(s=h=16383&(d[6]<<8|d[7]))}var l=void 0!==t.msecs?t.msecs:Date.now(),f=void 0!==t.nsecs?t.nsecs:p+1,g=l-_+(f-p)/1e4;if(g<0&&void 0===t.clockseq&&(s=s+1&16383),(g<0||l>_)&&void 0===t.nsecs&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_=l,p=f,h=s;var T=(1e4*(268435455&(l+=122192928e5))+f)%4294967296;n[o++]=T>>>24&255,n[o++]=T>>>16&255,n[o++]=T>>>8&255,n[o++]=255&T;var v=l/4294967296*1e4&268435455;n[o++]=v>>>8&255,n[o++]=255&v,n[o++]=v>>>24&15|16,n[o++]=v>>>16&255,n[o++]=s>>>8|128,n[o++]=255&s;for(var E=0;E<6;++E)n[o+E]=a[E];return e||c(n)},g=function(t){if(!s(t))throw TypeError("Invalid UUID");var e,i=new Uint8Array(16);return i[0]=(e=parseInt(t.slice(0,8),16))>>>24,i[1]=e>>>16&255,i[2]=e>>>8&255,i[3]=255&e,i[4]=(e=parseInt(t.slice(9,13),16))>>>8,i[5]=255&e,i[6]=(e=parseInt(t.slice(14,18),16))>>>8,i[7]=255&e,i[8]=(e=parseInt(t.slice(19,23),16))>>>8,i[9]=255&e,i[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,i[11]=e/4294967296&255,i[12]=e>>>24&255,i[13]=e>>>16&255,i[14]=e>>>8&255,i[15]=255&e,i};function T(t,e,i){function o(t,o,n,r){if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));for(var e=[],i=0;i<t.length;++i)e.push(t.charCodeAt(i));return e}(t)),"string"==typeof o&&(o=g(o)),16!==o.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+t.length);if(a.set(o),a.set(t,o.length),(a=i(a))[6]=15&a[6]|e,a[8]=63&a[8]|128,n){r=r||0;for(var s=0;s<16;++s)n[r+s]=a[s];return n}return c(a)}try{o.name=t}catch(t){}return o.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",o.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",o}function v(t){return 14+(t+64>>>9<<4)+1}function E(t,e){var i=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(i>>16)<<16|65535&i}function b(t,e,i,o,n,r){return E((a=E(E(e,t),E(o,r)))<<(s=n)|a>>>32-s,i);var a,s}function y(t,e,i,o,n,r,a){return b(e&i|~e&o,t,e,n,r,a)}function m(t,e,i,o,n,r,a){return b(e&o|i&~o,t,e,n,r,a)}function A(t,e,i,o,n,r,a){return b(e^i^o,t,e,n,r,a)}function S(t,e,i,o,n,r,a){return b(i^(e|~o),t,e,n,r,a)}const L=T("v3",48,(function(t){if("string"==typeof t){var e=unescape(encodeURIComponent(t));t=new Uint8Array(e.length);for(var i=0;i<e.length;++i)t[i]=e.charCodeAt(i)}return function(t){for(var e=[],i=32*t.length,o="0123456789abcdef",n=0;n<i;n+=8){var r=t[n>>5]>>>n%32&255,a=parseInt(o.charAt(r>>>4&15)+o.charAt(15&r),16);e.push(a)}return e}(function(t,e){t[e>>5]|=128<<e%32,t[v(e)-1]=e;for(var i=1732584193,o=-271733879,n=-1732584194,r=271733878,a=0;a<t.length;a+=16){var s=i,d=o,l=n,c=r;i=y(i,o,n,r,t[a],7,-680876936),r=y(r,i,o,n,t[a+1],12,-389564586),n=y(n,r,i,o,t[a+2],17,606105819),o=y(o,n,r,i,t[a+3],22,-1044525330),i=y(i,o,n,r,t[a+4],7,-176418897),r=y(r,i,o,n,t[a+5],12,1200080426),n=y(n,r,i,o,t[a+6],17,-1473231341),o=y(o,n,r,i,t[a+7],22,-45705983),i=y(i,o,n,r,t[a+8],7,1770035416),r=y(r,i,o,n,t[a+9],12,-1958414417),n=y(n,r,i,o,t[a+10],17,-42063),o=y(o,n,r,i,t[a+11],22,-1990404162),i=y(i,o,n,r,t[a+12],7,1804603682),r=y(r,i,o,n,t[a+13],12,-40341101),n=y(n,r,i,o,t[a+14],17,-1502002290),i=m(i,o=y(o,n,r,i,t[a+15],22,1236535329),n,r,t[a+1],5,-165796510),r=m(r,i,o,n,t[a+6],9,-1069501632),n=m(n,r,i,o,t[a+11],14,643717713),o=m(o,n,r,i,t[a],20,-373897302),i=m(i,o,n,r,t[a+5],5,-701558691),r=m(r,i,o,n,t[a+10],9,38016083),n=m(n,r,i,o,t[a+15],14,-660478335),o=m(o,n,r,i,t[a+4],20,-405537848),i=m(i,o,n,r,t[a+9],5,568446438),r=m(r,i,o,n,t[a+14],9,-1019803690),n=m(n,r,i,o,t[a+3],14,-187363961),o=m(o,n,r,i,t[a+8],20,1163531501),i=m(i,o,n,r,t[a+13],5,-1444681467),r=m(r,i,o,n,t[a+2],9,-51403784),n=m(n,r,i,o,t[a+7],14,1735328473),i=A(i,o=m(o,n,r,i,t[a+12],20,-1926607734),n,r,t[a+5],4,-378558),r=A(r,i,o,n,t[a+8],11,-2022574463),n=A(n,r,i,o,t[a+11],16,1839030562),o=A(o,n,r,i,t[a+14],23,-35309556),i=A(i,o,n,r,t[a+1],4,-1530992060),r=A(r,i,o,n,t[a+4],11,1272893353),n=A(n,r,i,o,t[a+7],16,-155497632),o=A(o,n,r,i,t[a+10],23,-1094730640),i=A(i,o,n,r,t[a+13],4,681279174),r=A(r,i,o,n,t[a],11,-358537222),n=A(n,r,i,o,t[a+3],16,-722521979),o=A(o,n,r,i,t[a+6],23,76029189),i=A(i,o,n,r,t[a+9],4,-640364487),r=A(r,i,o,n,t[a+12],11,-421815835),n=A(n,r,i,o,t[a+15],16,530742520),i=S(i,o=A(o,n,r,i,t[a+2],23,-995338651),n,r,t[a],6,-198630844),r=S(r,i,o,n,t[a+7],10,1126891415),n=S(n,r,i,o,t[a+14],15,-1416354905),o=S(o,n,r,i,t[a+5],21,-57434055),i=S(i,o,n,r,t[a+12],6,1700485571),r=S(r,i,o,n,t[a+3],10,-1894986606),n=S(n,r,i,o,t[a+10],15,-1051523),o=S(o,n,r,i,t[a+1],21,-2054922799),i=S(i,o,n,r,t[a+8],6,1873313359),r=S(r,i,o,n,t[a+15],10,-30611744),n=S(n,r,i,o,t[a+6],15,-1560198380),o=S(o,n,r,i,t[a+13],21,1309151649),i=S(i,o,n,r,t[a+4],6,-145523070),r=S(r,i,o,n,t[a+11],10,-1120210379),n=S(n,r,i,o,t[a+2],15,718787259),o=S(o,n,r,i,t[a+9],21,-343485551),i=E(i,s),o=E(o,d),n=E(n,l),r=E(r,c)}return[i,o,n,r]}(function(t){if(0===t.length)return[];for(var e=8*t.length,i=new Uint32Array(v(e)),o=0;o<e;o+=8)i[o>>5]|=(255&t[o/8])<<o%32;return i}(t),8*t.length))})),O=function(t,e,i){var o=(t=t||{}).random||(t.rng||r)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e){i=i||0;for(var n=0;n<16;++n)e[i+n]=o[n];return e}return c(o)};function R(t,e,i,o){switch(t){case 0:return e&i^~e&o;case 1:case 3:return e^i^o;case 2:return e&i^e&o^i&o}}function N(t,e){return t<<e|t>>>32-e}const D=T("v5",80,(function(t){var e=[1518500249,1859775393,2400959708,3395469782],i=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){var o=unescape(encodeURIComponent(t));t=[];for(var n=0;n<o.length;++n)t.push(o.charCodeAt(n))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var r=t.length/4+2,a=Math.ceil(r/16),s=new Array(a),d=0;d<a;++d){for(var l=new Uint32Array(16),c=0;c<16;++c)l[c]=t[64*d+4*c]<<24|t[64*d+4*c+1]<<16|t[64*d+4*c+2]<<8|t[64*d+4*c+3];s[d]=l}s[a-1][14]=8*(t.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(t.length-1)&4294967295;for(var u=0;u<a;++u){for(var h=new Uint32Array(80),_=0;_<16;++_)h[_]=s[u][_];for(var p=16;p<80;++p)h[p]=N(h[p-3]^h[p-8]^h[p-14]^h[p-16],1);for(var f=i[0],g=i[1],T=i[2],v=i[3],E=i[4],b=0;b<80;++b){var y=Math.floor(b/20),m=N(f,5)+R(y,g,T,v)+E+e[y]+h[b]>>>0;E=v,v=T,T=N(g,30)>>>0,g=f,f=m}i[0]=i[0]+f>>>0,i[1]=i[1]+g>>>0,i[2]=i[2]+T>>>0,i[3]=i[3]+v>>>0,i[4]=i[4]+E>>>0}return[i[0]>>24&255,i[0]>>16&255,i[0]>>8&255,255&i[0],i[1]>>24&255,i[1]>>16&255,i[1]>>8&255,255&i[1],i[2]>>24&255,i[2]>>16&255,i[2]>>8&255,255&i[2],i[3]>>24&255,i[3]>>16&255,i[3]>>8&255,255&i[3],i[4]>>24&255,i[4]>>16&255,i[4]>>8&255,255&i[4]]})),w="00000000-0000-0000-0000-000000000000",B=function(t){if(!s(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}},92:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Attribute=void 0;var i=function(){function t(t,e,i,o){this.name=t,this.modelName=e,this.defaultValue=i,this.alwaysWriteJson=o,this.required=!1,this.fixed=!1,this.type="any"}return t.prototype.setType=function(t){return this.type=t,this},t.prototype.setRequired=function(){return this.required=!0,this},t.prototype.setFixed=function(){return this.fixed=!0,this},t.NUMBER="number",t.STRING="string",t.BOOLEAN="boolean",t}();e.Attribute=i},99:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeDefinitions=void 0;var o=i(92),n=function(){function t(){this.attributes=[],this.nameToAttribute={}}return t.prototype.addWithAll=function(t,e,i,n){var r=new o.Attribute(t,e,i,n);return this.attributes.push(r),this.nameToAttribute[t]=r,r},t.prototype.addInherited=function(t,e){return this.addWithAll(t,e,void 0,!1)},t.prototype.add=function(t,e,i){return this.addWithAll(t,void 0,e,i)},t.prototype.getAttributes=function(){return this.attributes},t.prototype.getModelName=function(t){var e=this.nameToAttribute[t];if(void 0!==e)return e.modelName},t.prototype.toJson=function(t,e){for(var i=0,o=this.attributes;i<o.length;i++){var n=o[i],r=e[n.name];(n.alwaysWriteJson||r!==n.defaultValue)&&(t[n.name]=r)}},t.prototype.fromJson=function(t,e){for(var i=0,o=this.attributes;i<o.length;i++){var n=o[i],r=t[n.name];e[n.name]=void 0===r?n.defaultValue:r}},t.prototype.update=function(t,e){for(var i=0,o=this.attributes;i<o.length;i++){var n=o[i];if(t.hasOwnProperty(n.name)){var r=t[n.name];void 0===r?delete e[n.name]:e[n.name]=r}}},t.prototype.setDefaults=function(t){for(var e=0,i=this.attributes;e<i.length;e++){var o=i[e];t[o.name]=o.defaultValue}},t.prototype.toTypescriptInterface=function(t,e){var i=[],o=this.attributes.sort((function(t,e){return t.name.localeCompare(e.name)}));i.push("export interface I"+t+"Attributes {");for(var n=0;n<o.length;n++){var r=o[n],a=r.type,s=void 0,d=r,l=void 0;void 0!==d.defaultValue?s=d.defaultValue:void 0!==d.modelName&&void 0!==e&&void 0!==e.nameToAttribute[d.modelName]&&(l=d.modelName,s=(d=e.nameToAttribute[d.modelName]).defaultValue,a=d.type);var c=JSON.stringify(s),u=d.required||d.fixed?"":"?";if(r.fixed)i.push("\t"+r.name+": "+c+";");else{var h=(void 0!==s?"default: "+c:"")+(void 0!==l?" - inherited from global "+l:"");i.push("\t"+r.name+u+": "+a+";"+(h.length>0?" // "+h:""))}}return i.push("}"),i.join("\n")},t}();e.AttributeDefinitions=n},95:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DockLocation=void 0;var o=i(327),n=i(359),r=function(){function t(e,i,o){this._name=e,this._orientation=i,this._indexPlus=o,t.values[this._name]=this}return t.getByName=function(e){return t.values[e]},t.getLocation=function(e,i,o){if(i=(i-e.x)/e.width,o=(o-e.y)/e.height,i>=.25&&i<.75&&o>=.25&&o<.75)return t.CENTER;var n=o>=1-i;return o>=i?n?t.BOTTOM:t.LEFT:n?t.RIGHT:t.TOP},t.prototype.getName=function(){return this._name},t.prototype.getOrientation=function(){return this._orientation},t.prototype.getDockRect=function(e){return this===t.TOP?new n.Rect(e.x,e.y,e.width,e.height/2):this===t.BOTTOM?new n.Rect(e.x,e.getBottom()-e.height/2,e.width,e.height/2):this===t.LEFT?new n.Rect(e.x,e.y,e.width/2,e.height):this===t.RIGHT?new n.Rect(e.getRight()-e.width/2,e.y,e.width/2,e.height):e.clone()},t.prototype.split=function(e,i){return this===t.TOP?{start:new n.Rect(e.x,e.y,e.width,i),end:new n.Rect(e.x,e.y+i,e.width,e.height-i)}:this===t.LEFT?{start:new n.Rect(e.x,e.y,i,e.height),end:new n.Rect(e.x+i,e.y,e.width-i,e.height)}:this===t.RIGHT?{start:new n.Rect(e.getRight()-i,e.y,i,e.height),end:new n.Rect(e.x,e.y,e.width-i,e.height)}:{start:new n.Rect(e.x,e.getBottom()-i,e.width,i),end:new n.Rect(e.x,e.y,e.width,e.height-i)}},t.prototype.reflect=function(){return this===t.TOP?t.BOTTOM:this===t.LEFT?t.RIGHT:this===t.RIGHT?t.LEFT:t.TOP},t.prototype.toString=function(){return"(DockLocation: name="+this._name+", orientation="+this._orientation+")"},t.values={},t.TOP=new t("top",o.Orientation.VERT,0),t.BOTTOM=new t("bottom",o.Orientation.VERT,1),t.LEFT=new t("left",o.Orientation.HORZ,0),t.RIGHT=new t("right",o.Orientation.HORZ,1),t.CENTER=new t("center",o.Orientation.VERT,0),t}();e.DockLocation=r},241:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DragDrop=void 0;var o=i(359),n=!("undefined"==typeof window||!window.document||!window.document.createElement),r=function(){function t(){this._manualGlassManagement=!1,this._startX=0,this._startY=0,this._dragDepth=0,this._glassShowing=!1,this._dragging=!1,this._active=!1,n&&(this._glass=document.createElement("div"),this._glass.style.zIndex="998",this._glass.style.backgroundColor="transparent",this._glass.style.outline="none"),this._defaultGlassCursor="default",this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onKeyPress=this._onKeyPress.bind(this),this._onDragCancel=this._onDragCancel.bind(this),this._onDragEnter=this._onDragEnter.bind(this),this._onDragLeave=this._onDragLeave.bind(this),this.resizeGlass=this.resizeGlass.bind(this),this._lastClick=0,this._clickX=0,this._clickY=0}return t.prototype.addGlass=function(t){var e;this._glassShowing?this._manualGlassManagement=!0:(this._document||(this._document=window.document),this._rootElement||(this._rootElement=this._document.body),this.resizeGlass(),null===(e=this._document.defaultView)||void 0===e||e.addEventListener("resize",this.resizeGlass),this._document.body.appendChild(this._glass),this._glass.tabIndex=-1,this._glass.focus(),this._glass.addEventListener("keydown",this._onKeyPress),this._glass.addEventListener("dragenter",this._onDragEnter,{passive:!1}),this._glass.addEventListener("dragover",this._onMouseMove,{passive:!1}),this._glass.addEventListener("dragleave",this._onDragLeave,{passive:!1}),this._glassShowing=!0,this._fDragCancel=t,this._manualGlassManagement=!1)},t.prototype.resizeGlass=function(){o.Rect.fromElement(this._rootElement).positionElement(this._glass,"fixed")},t.prototype.hideGlass=function(){var t;this._glassShowing&&(this._document.body.removeChild(this._glass),null===(t=this._document.defaultView)||void 0===t||t.removeEventListener("resize",this.resizeGlass),this._glassShowing=!1,this._document=void 0,this._rootElement=void 0,this.setGlassCursorOverride(void 0))},t.prototype._updateGlassCursor=function(){var t;this._glass.style.cursor=null!==(t=this._glassCursorOverride)&&void 0!==t?t:this._defaultGlassCursor},t.prototype._setDefaultGlassCursor=function(t){this._defaultGlassCursor=t,this._updateGlassCursor()},t.prototype.setGlassCursorOverride=function(t){this._glassCursorOverride=t,this._updateGlassCursor()},t.prototype.startDrag=function(t,e,i,o,n,r,a,s,d){if(!(t&&this._lastEvent&&this._lastEvent.type.startsWith("touch")&&t.type.startsWith("mouse")&&t.timeStamp-this._lastEvent.timeStamp<500)){this._lastEvent=t,this._document=s||window.document,this._rootElement=d||this._document.body;var l=this._getLocationEvent(t);this.addGlass(n),this._dragging&&console.warn("this._dragging true on startDrag should never happen"),t?(this._startX=l.clientX,this._startY=l.clientY,window.matchMedia&&!window.matchMedia("(pointer: fine)").matches||this._setDefaultGlassCursor(getComputedStyle(t.target).cursor),this._stopPropagation(t),this._preventDefault(t)):(this._startX=0,this._startY=0,this._setDefaultGlassCursor("default")),this._dragging=!1,this._fDragStart=e,this._fDragMove=i,this._fDragEnd=o,this._fDragCancel=n,this._fClick=r,this._fDblClick=a,this._active=!0,"dragenter"===(null==t?void 0:t.type)?(this._dragDepth=1,this._rootElement.addEventListener("dragenter",this._onDragEnter,{passive:!1}),this._rootElement.addEventListener("dragover",this._onMouseMove,{passive:!1}),this._rootElement.addEventListener("dragleave",this._onDragLeave,{passive:!1}),this._document.addEventListener("dragend",this._onDragCancel,{passive:!1}),this._document.addEventListener("drop",this._onMouseUp,{passive:!1})):(this._document.addEventListener("mouseup",this._onMouseUp,{passive:!1}),this._document.addEventListener("mousemove",this._onMouseMove,{passive:!1}),this._document.addEventListener("touchend",this._onMouseUp,{passive:!1}),this._document.addEventListener("touchmove",this._onMouseMove,{passive:!1}))}},t.prototype.isDragging=function(){return this._dragging},t.prototype.isActive=function(){return this._active},t.prototype.toString=function(){return"(DragDrop: startX="+this._startX+", startY="+this._startY+", dragging="+this._dragging+")"},t.prototype._onKeyPress=function(t){27===t.keyCode&&this._onDragCancel()},t.prototype._onDragCancel=function(){this._rootElement.removeEventListener("dragenter",this._onDragEnter),this._rootElement.removeEventListener("dragover",this._onMouseMove),this._rootElement.removeEventListener("dragleave",this._onDragLeave),this._document.removeEventListener("dragend",this._onDragCancel),this._document.removeEventListener("drop",this._onMouseUp),this._document.removeEventListener("mousemove",this._onMouseMove),this._document.removeEventListener("mouseup",this._onMouseUp),this._document.removeEventListener("touchend",this._onMouseUp),this._document.removeEventListener("touchmove",this._onMouseMove),this.hideGlass(),void 0!==this._fDragCancel&&this._fDragCancel(this._dragging),this._dragging=!1,this._active=!1},t.prototype._getLocationEvent=function(t){var e=t;return t&&t.touches&&(e=t.touches[0]),e},t.prototype._getLocationEventEnd=function(t){var e=t;return t.changedTouches&&(e=t.changedTouches[0]),e},t.prototype._stopPropagation=function(t){t.stopPropagation&&t.stopPropagation()},t.prototype._preventDefault=function(t){return t.preventDefault&&t.cancelable&&t.preventDefault(),t},t.prototype._onMouseMove=function(t){this._lastEvent=t;var e=this._getLocationEvent(t);return this._stopPropagation(t),this._preventDefault(t),!this._dragging&&(Math.abs(this._startX-e.clientX)>5||Math.abs(this._startY-e.clientY)>5)&&(this._dragging=!0,this._fDragStart&&(this._setDefaultGlassCursor("move"),this._dragging=this._fDragStart({clientX:this._startX,clientY:this._startY}))),this._dragging&&this._fDragMove&&this._fDragMove(e),!1},t.prototype._onMouseUp=function(t){this._lastEvent=t;var e=this._getLocationEventEnd(t);if(this._stopPropagation(t),this._preventDefault(t),this._active=!1,this._rootElement.removeEventListener("dragenter",this._onDragEnter),this._rootElement.removeEventListener("dragover",this._onMouseMove),this._rootElement.removeEventListener("dragleave",this._onDragLeave),this._document.removeEventListener("dragend",this._onDragCancel),this._document.removeEventListener("drop",this._onMouseUp),this._document.removeEventListener("mousemove",this._onMouseMove),this._document.removeEventListener("mouseup",this._onMouseUp),this._document.removeEventListener("touchend",this._onMouseUp),this._document.removeEventListener("touchmove",this._onMouseMove),this._manualGlassManagement||this.hideGlass(),this._dragging)this._dragging=!1,this._fDragEnd&&this._fDragEnd(t);else if(this._fDragCancel&&this._fDragCancel(this._dragging),Math.abs(this._startX-e.clientX)<=5&&Math.abs(this._startY-e.clientY)<=5){var i=!1,o=(new Date).getTime();Math.abs(this._clickX-e.clientX)<=5&&Math.abs(this._clickY-e.clientY)<=5&&o-this._lastClick<500&&this._fDblClick&&(this._fDblClick(t),i=!0),!i&&this._fClick&&this._fClick(t),this._lastClick=o,this._clickX=e.clientX,this._clickY=e.clientY}return!1},t.prototype._onDragEnter=function(t){return this._preventDefault(t),this._stopPropagation(t),this._dragDepth++,!1},t.prototype._onDragLeave=function(t){return this._preventDefault(t),this._stopPropagation(t),this._dragDepth--,this._dragDepth<=0&&this._onDragCancel(),!1},t.instance=new t,t}();e.DragDrop=r},34:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DropInfo=void 0;e.DropInfo=function(t,e,i,o,n){this.node=t,this.rect=e,this.location=i,this.index=o,this.className=n}},306:(t,e)=>{var i;Object.defineProperty(e,"__esModule",{value:!0}),e.I18nLabel=void 0,(i=e.I18nLabel||(e.I18nLabel={})).Close_Tab="Close",i.Close_Tabset="Close tabset",i.Move_Tab="Move: ",i.Move_Tabset="Move tabset",i.Maximize="Maximize tabset",i.Restore="Restore tabset",i.Float_Tab="Show selected tab in floating window",i.Overflow_Menu_Tooltip="Hidden tabs",i.Floating_Window_Message="This panel is shown in a floating window",i.Floating_Window_Show_Window="Show window",i.Floating_Window_Dock_Window="Dock window",i.Error_rendering_component="Error rendering component"},327:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Orientation=void 0;var i=function(){function t(t){this._name=t}return t.flip=function(e){return e===t.HORZ?t.VERT:t.HORZ},t.prototype.getName=function(){return this._name},t.prototype.toString=function(){return this._name},t.HORZ=new t("horz"),t.VERT=new t("vert"),t}();e.Orientation=i},119:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.showPopup=void 0;var o=i(899),n=i(241),r=i(398),a=i(176);e.showPopup=function(t,e,i,a,d,l){var c=a.getRootDiv(),u=a.getClassName,h=t.ownerDocument,_=t.getBoundingClientRect(),p=c.getBoundingClientRect(),f=h.createElement("div");f.className=u(r.CLASSES.FLEXLAYOUT__POPUP_MENU_CONTAINER),_.left<p.left+p.width/2?f.style.left=_.left-p.left+"px":f.style.right=p.right-_.right+"px",_.top<p.top+p.height/2?f.style.top=_.top-p.top+"px":f.style.bottom=p.bottom-_.bottom+"px",n.DragDrop.instance.addGlass((function(){return g()})),n.DragDrop.instance.setGlassCursorOverride("default"),c.appendChild(f);var g=function(){a.hidePortal(),n.DragDrop.instance.hideGlass(),c.removeChild(f),f.removeEventListener("mousedown",T),h.removeEventListener("mousedown",v)},T=function(t){t.stopPropagation()},v=function(t){g()};f.addEventListener("mousedown",T),h.addEventListener("mousedown",v),a.showPortal(o.createElement(s,{currentDocument:h,onSelect:i,onHide:g,items:e,classNameMapper:u,layout:a,iconFactory:d,titleFactory:l}),f)};var s=function(t){var e=t.items,i=t.onHide,n=t.onSelect,s=t.classNameMapper,d=t.layout,l=t.iconFactory,c=t.titleFactory,u=e.map((function(t,e){return o.createElement("div",{key:t.index,className:s(r.CLASSES.FLEXLAYOUT__POPUP_MENU_ITEM),"data-layout-path":"/popup-menu/tb"+e,onClick:function(e){return function(t,e){n(t),i(),e.stopPropagation()}(t,e)},title:t.node.getHelpText()},t.node.getModel().isLegacyOverflowMenu()?t.node._getNameForOverflowMenu():o.createElement(a.TabButtonStamp,{node:t.node,layout:d,iconFactory:l,titleFactory:c}))}));return o.createElement("div",{className:s(r.CLASSES.FLEXLAYOUT__POPUP_MENU),"data-layout-path":"/popup-menu"},u)}},359:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Rect=void 0;var o=i(327),n=function(){function t(t,e,i,o){this.x=t,this.y=e,this.width=i,this.height=o}return t.empty=function(){return new t(0,0,0,0)},t.fromElement=function(e){var i=e.getBoundingClientRect();return new t(i.x,i.y,i.width,i.height)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.equals=function(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height},t.prototype.getBottom=function(){return this.y+this.height},t.prototype.getRight=function(){return this.x+this.width},t.prototype.getCenter=function(){return{x:this.x+this.width/2,y:this.y+this.height/2}},t.prototype.positionElement=function(t,e){this.styleWithPosition(t.style,e)},t.prototype.styleWithPosition=function(t,e){return void 0===e&&(e="absolute"),t.left=this.x+"px",t.top=this.y+"px",t.width=Math.max(0,this.width)+"px",t.height=Math.max(0,this.height)+"px",t.position=e,t},t.prototype.contains=function(t,e){return this.x<=t&&t<=this.getRight()&&this.y<=e&&e<=this.getBottom()},t.prototype.removeInsets=function(e){return new t(this.x+e.left,this.y+e.top,Math.max(0,this.width-e.left-e.right),Math.max(0,this.height-e.top-e.bottom))},t.prototype.centerInRect=function(t){this.x=(t.width-this.width)/2,this.y=(t.height-this.height)/2},t.prototype._getSize=function(t){var e=this.width;return t===o.Orientation.VERT&&(e=this.height),e},t.prototype.toString=function(){return"(Rect: x="+this.x+", y="+this.y+", width="+this.width+", height="+this.height+")"},t}();e.Rect=n},398:(t,e)=>{var i;Object.defineProperty(e,"__esModule",{value:!0}),e.CLASSES=void 0,(i=e.CLASSES||(e.CLASSES={})).FLEXLAYOUT__BORDER="flexlayout__border",i.FLEXLAYOUT__BORDER_="flexlayout__border_",i.FLEXLAYOUT__BORDER_BUTTON="flexlayout__border_button",i.FLEXLAYOUT__BORDER_BUTTON_="flexlayout__border_button_",i.FLEXLAYOUT__BORDER_BUTTON_CONTENT="flexlayout__border_button_content",i.FLEXLAYOUT__BORDER_BUTTON_LEADING="flexlayout__border_button_leading",i.FLEXLAYOUT__BORDER_BUTTON_TRAILING="flexlayout__border_button_trailing",i.FLEXLAYOUT__BORDER_BUTTON__SELECTED="flexlayout__border_button--selected",i.FLEXLAYOUT__BORDER_BUTTON__UNSELECTED="flexlayout__border_button--unselected",i.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_OVERFLOW="flexlayout__border_toolbar_button_overflow",i.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_OVERFLOW_="flexlayout__border_toolbar_button_overflow_",i.FLEXLAYOUT__BORDER_INNER="flexlayout__border_inner",i.FLEXLAYOUT__BORDER_INNER_="flexlayout__border_inner_",i.FLEXLAYOUT__BORDER_INNER_TAB_CONTAINER="flexlayout__border_inner_tab_container",i.FLEXLAYOUT__BORDER_INNER_TAB_CONTAINER_="flexlayout__border_inner_tab_container_",i.FLEXLAYOUT__BORDER_TAB_DIVIDER="flexlayout__border_tab_divider",i.FLEXLAYOUT__BORDER_SIZER="flexlayout__border_sizer",i.FLEXLAYOUT__BORDER_TOOLBAR="flexlayout__border_toolbar",i.FLEXLAYOUT__BORDER_TOOLBAR_="flexlayout__border_toolbar_",i.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON="flexlayout__border_toolbar_button",i.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_FLOAT="flexlayout__border_toolbar_button-float",i.FLEXLAYOUT__DRAG_RECT="flexlayout__drag_rect",i.FLEXLAYOUT__EDGE_RECT="flexlayout__edge_rect",i.FLEXLAYOUT__ERROR_BOUNDARY_CONTAINER="flexlayout__error_boundary_container",i.FLEXLAYOUT__ERROR_BOUNDARY_CONTENT="flexlayout__error_boundary_content",i.FLEXLAYOUT__FLOATING_WINDOW_CONTENT="flexlayout__floating_window_content",i.FLEXLAYOUT__FLOATING_WINDOW_TAB="flexlayout__floating_window_tab",i.FLEXLAYOUT__LAYOUT="flexlayout__layout",i.FLEXLAYOUT__OUTLINE_RECT="flexlayout__outline_rect",i.FLEXLAYOUT__OUTLINE_RECT_EDGE="flexlayout__outline_rect_edge",i.FLEXLAYOUT__SPLITTER="flexlayout__splitter",i.FLEXLAYOUT__SPLITTER_EXTRA="flexlayout__splitter_extra",i.FLEXLAYOUT__SPLITTER_="flexlayout__splitter_",i.FLEXLAYOUT__SPLITTER_BORDER="flexlayout__splitter_border",i.FLEXLAYOUT__SPLITTER_DRAG="flexlayout__splitter_drag",i.FLEXLAYOUT__TAB="flexlayout__tab",i.FLEXLAYOUT__TABSET="flexlayout__tabset",i.FLEXLAYOUT__TABSET_HEADER="flexlayout__tabset_header",i.FLEXLAYOUT__TABSET_HEADER_SIZER="flexlayout__tabset_header_sizer",i.FLEXLAYOUT__TABSET_HEADER_CONTENT="flexlayout__tabset_header_content",i.FLEXLAYOUT__TABSET_MAXIMIZED="flexlayout__tabset-maximized",i.FLEXLAYOUT__TABSET_SELECTED="flexlayout__tabset-selected",i.FLEXLAYOUT__TABSET_SIZER="flexlayout__tabset_sizer",i.FLEXLAYOUT__TABSET_TAB_DIVIDER="flexlayout__tabset_tab_divider",i.FLEXLAYOUT__TABSET_CONTENT="flexlayout__tabset_content",i.FLEXLAYOUT__TABSET_TABBAR_INNER="flexlayout__tabset_tabbar_inner",i.FLEXLAYOUT__TABSET_TABBAR_INNER_="flexlayout__tabset_tabbar_inner_",i.FLEXLAYOUT__TABSET_TABBAR_INNER_TAB_CONTAINER="flexlayout__tabset_tabbar_inner_tab_container",i.FLEXLAYOUT__TABSET_TABBAR_INNER_TAB_CONTAINER_="flexlayout__tabset_tabbar_inner_tab_container_",i.FLEXLAYOUT__TABSET_TABBAR_OUTER="flexlayout__tabset_tabbar_outer",i.FLEXLAYOUT__TABSET_TABBAR_OUTER_="flexlayout__tabset_tabbar_outer_",i.FLEXLAYOUT__TAB_BORDER="flexlayout__tab_border",i.FLEXLAYOUT__TAB_BORDER_="flexlayout__tab_border_",i.FLEXLAYOUT__TAB_BUTTON="flexlayout__tab_button",i.FLEXLAYOUT__TAB_BUTTON_CONTENT="flexlayout__tab_button_content",i.FLEXLAYOUT__TAB_BUTTON_LEADING="flexlayout__tab_button_leading",i.FLEXLAYOUT__TAB_BUTTON_OVERFLOW="flexlayout__tab_button_overflow",i.FLEXLAYOUT__TAB_BUTTON_OVERFLOW_COUNT="flexlayout__tab_button_overflow_count",i.FLEXLAYOUT__TAB_BUTTON_TEXTBOX="flexlayout__tab_button_textbox",i.FLEXLAYOUT__TAB_BUTTON_TRAILING="flexlayout__tab_button_trailing",i.FLEXLAYOUT__TAB_BUTTON_STAMP="flexlayout__tab_button_stamp",i.FLEXLAYOUT__TAB_FLOATING="flexlayout__tab_floating",i.FLEXLAYOUT__TAB_FLOATING_INNER="flexlayout__tab_floating_inner",i.FLEXLAYOUT__TAB_TOOLBAR="flexlayout__tab_toolbar",i.FLEXLAYOUT__TAB_TOOLBAR_BUTTON="flexlayout__tab_toolbar_button",i.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_="flexlayout__tab_toolbar_button-",i.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_FLOAT="flexlayout__tab_toolbar_button-float",i.FLEXLAYOUT__TAB_TOOLBAR_STICKY_BUTTONS_CONTAINER="flexlayout__tab_toolbar_sticky_buttons_container",i.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_CLOSE="flexlayout__tab_toolbar_button-close",i.FLEXLAYOUT__POPUP_MENU_CONTAINER="flexlayout__popup_menu_container",i.FLEXLAYOUT__POPUP_MENU_ITEM="flexlayout__popup_menu_item",i.FLEXLAYOUT__POPUP_MENU="flexlayout__popup_menu"},607:function(t,e,i){var o=this&&this.__createBinding||(Object.create?function(t,e,i,o){void 0===o&&(o=i),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,o){void 0===o&&(o=i),t[o]=e[i]}),n=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||o(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(i(175),e),n(i(987),e),n(i(920),e),n(i(907),e),n(i(271),e),n(i(138),e),n(i(23),e),n(i(865),e),n(i(229),e),n(i(627),e),n(i(103),e),n(i(179),e),n(i(618),e),n(i(275),e),n(i(657),e),n(i(95),e),n(i(241),e),n(i(34),e),n(i(306),e),n(i(327),e),n(i(359),e),n(i(398),e)},987:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Action=void 0;e.Action=function(t,e){this.type=t,this.data=e}},920:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Actions=void 0;var o=i(987),n=function(){function t(){}return t.addNode=function(e,i,n,r,a){return new o.Action(t.ADD_NODE,{json:e,toNode:i,location:n.getName(),index:r,select:a})},t.moveNode=function(e,i,n,r,a){return new o.Action(t.MOVE_NODE,{fromNode:e,toNode:i,location:n.getName(),index:r,select:a})},t.deleteTab=function(e){return new o.Action(t.DELETE_TAB,{node:e})},t.deleteTabset=function(e){return new o.Action(t.DELETE_TABSET,{node:e})},t.renameTab=function(e,i){return new o.Action(t.RENAME_TAB,{node:e,text:i})},t.selectTab=function(e){return new o.Action(t.SELECT_TAB,{tabNode:e})},t.setActiveTabset=function(e){return new o.Action(t.SET_ACTIVE_TABSET,{tabsetNode:e})},t.adjustSplit=function(e){var i=e.node1Id,n=e.node2Id;return new o.Action(t.ADJUST_SPLIT,{node1:i,weight1:e.weight1,pixelWidth1:e.pixelWidth1,node2:n,weight2:e.weight2,pixelWidth2:e.pixelWidth2})},t.adjustBorderSplit=function(e,i){return new o.Action(t.ADJUST_BORDER_SPLIT,{node:e,pos:i})},t.maximizeToggle=function(e){return new o.Action(t.MAXIMIZE_TOGGLE,{node:e})},t.updateModelAttributes=function(e){return new o.Action(t.UPDATE_MODEL_ATTRIBUTES,{json:e})},t.updateNodeAttributes=function(e,i){return new o.Action(t.UPDATE_NODE_ATTRIBUTES,{node:e,json:i})},t.floatTab=function(e){return new o.Action(t.FLOAT_TAB,{node:e})},t.unFloatTab=function(e){return new o.Action(t.UNFLOAT_TAB,{node:e})},t.ADD_NODE="FlexLayout_AddNode",t.MOVE_NODE="FlexLayout_MoveNode",t.DELETE_TAB="FlexLayout_DeleteTab",t.DELETE_TABSET="FlexLayout_DeleteTabset",t.RENAME_TAB="FlexLayout_RenameTab",t.SELECT_TAB="FlexLayout_SelectTab",t.SET_ACTIVE_TABSET="FlexLayout_SetActiveTabset",t.ADJUST_SPLIT="FlexLayout_AdjustSplit",t.ADJUST_BORDER_SPLIT="FlexLayout_AdjustBorderSplit",t.MAXIMIZE_TOGGLE="FlexLayout_MaximizeToggle",t.UPDATE_MODEL_ATTRIBUTES="FlexLayout_UpdateModelAttributes",t.UPDATE_NODE_ATTRIBUTES="FlexLayout_UpdateNodeAttributes",t.FLOAT_TAB="FlexLayout_FloatTab",t.UNFLOAT_TAB="FlexLayout_UnFloatTab",t}();e.Actions=n},907:function(t,e,i){var o,n=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},o(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 i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.BorderNode=void 0;var r=i(92),a=i(99),s=i(95),d=i(34),l=i(327),c=i(359),u=i(398),h=i(103),_=i(618),p=i(275),f=i(494),g=function(t){function e(i,o,n){var r=t.call(this,n)||this;return r._adjustedSize=0,r._calculatedBorderBarSize=0,r._location=i,r._drawChildren=[],r._attributes.id="border_".concat(i.getName()),e._attributeDefinitions.fromJson(o,r._attributes),n._addNode(r),r}return n(e,t),e._fromJson=function(t,i){var o=new e(s.DockLocation.getByName(t.location),t,i);return t.children&&(o._children=t.children.map((function(t){var e=p.TabNode._fromJson(t,i);return e._setParent(o),e}))),o},e._createAttributeDefinitions=function(){var t=new a.AttributeDefinitions;return t.add("type",e.TYPE,!0).setType(r.Attribute.STRING).setFixed(),t.add("selected",-1).setType(r.Attribute.NUMBER),t.add("show",!0).setType(r.Attribute.BOOLEAN),t.add("config",void 0).setType("any"),t.addInherited("barSize","borderBarSize").setType(r.Attribute.NUMBER),t.addInherited("enableDrop","borderEnableDrop").setType(r.Attribute.BOOLEAN),t.addInherited("className","borderClassName").setType(r.Attribute.STRING),t.addInherited("autoSelectTabWhenOpen","borderAutoSelectTabWhenOpen").setType(r.Attribute.BOOLEAN),t.addInherited("autoSelectTabWhenClosed","borderAutoSelectTabWhenClosed").setType(r.Attribute.BOOLEAN),t.addInherited("size","borderSize").setType(r.Attribute.NUMBER),t.addInherited("minSize","borderMinSize").setType(r.Attribute.NUMBER),t.addInherited("enableAutoHide","borderEnableAutoHide").setType(r.Attribute.BOOLEAN),t},e.prototype.getLocation=function(){return this._location},e.prototype.getTabHeaderRect=function(){return this._tabHeaderRect},e.prototype.getRect=function(){return this._tabHeaderRect},e.prototype.getContentRect=function(){return this._contentRect},e.prototype.isEnableDrop=function(){return this._getAttr("enableDrop")},e.prototype.isAutoSelectTab=function(t){return null==t&&(t=-1!==this.getSelected()),t?this._getAttr("autoSelectTabWhenOpen"):this._getAttr("autoSelectTabWhenClosed")},e.prototype.getClassName=function(){return this._getAttr("className")},e.prototype.calcBorderBarSize=function(t){var e=this._getAttr("barSize");this._calculatedBorderBarSize=0!==e?e:t.borderBarSize},e.prototype.getBorderBarSize=function(){return this._calculatedBorderBarSize},e.prototype.getSize=function(){var t=this._getAttr("size"),e=this.getSelected();if(-1===e)return t;var i=this._children[e],o=this._location._orientation===l.Orientation.HORZ?i._getAttr("borderWidth"):i._getAttr("borderHeight");return-1===o?t:o},e.prototype.getMinSize=function(){return this._getAttr("minSize")},e.prototype.getSelected=function(){return this._attributes.selected},e.prototype.getSelectedNode=function(){if(-1!==this.getSelected())return this._children[this.getSelected()]},e.prototype.getOrientation=function(){return this._location.getOrientation()},e.prototype.getConfig=function(){return this._attributes.config},e.prototype.isMaximized=function(){return!1},e.prototype.isShowing=function(){return!(!this._attributes.show||this._model._getShowHiddenBorder()!==this._location&&this.isAutoHide()&&0===this._children.length)},e.prototype.isAutoHide=function(){return this._getAttr("enableAutoHide")},e.prototype._setSelected=function(t){this._attributes.selected=t},e.prototype._setSize=function(t){var e=this.getSelected();if(-1===e)this._attributes.size=t;else{var i=this._children[e];-1===(this._location._orientation===l.Orientation.HORZ?i._getAttr("borderWidth"):i._getAttr("borderHeight"))?this._attributes.size=t:this._location._orientation===l.Orientation.HORZ?i._setBorderWidth(t):i._setBorderHeight(t)}},e.prototype._updateAttrs=function(t){e._attributeDefinitions.update(t,this._attributes)},e.prototype._getDrawChildren=function(){return this._drawChildren},e.prototype._setAdjustedSize=function(t){this._adjustedSize=t},e.prototype._getAdjustedSize=function(){return this._adjustedSize},e.prototype._layoutBorderOuter=function(t,e){this.calcBorderBarSize(e);var i=this._location.split(t,this.getBorderBarSize());return this._tabHeaderRect=i.start,i.end},e.prototype._layoutBorderInner=function(t,e){this._drawChildren=[];var i=this._location,o=i.split(t,this._adjustedSize+this._model.getSplitterSize()),n=i.reflect().split(o.start,this._model.getSplitterSize());this._contentRect=n.end;for(var r=0;r<this._children.length;r++){var a=this._children[r];a._layout(this._contentRect,e),a._setVisible(r===this.getSelected()),this._drawChildren.push(a)}if(-1===this.getSelected())return t;var s=new _.SplitterNode(this._model);return s._setParent(this),s._setRect(n.start),this._drawChildren.push(s),o.end},e.prototype._remove=function(t){var e=this._removeChild(t);-1!==this.getSelected()&&(0,f.adjustSelectedIndex)(this,e)},e.prototype.canDrop=function(t,e,i){if(t.getType()===p.TabNode.TYPE){var o,n=s.DockLocation.CENTER;if(this._tabHeaderRect.contains(e,i)){if(this._location._orientation===l.Orientation.VERT)if(this._children.length>0){for(var r=(T=this._children[0].getTabRect()).y,a=T.height,h=this._tabHeaderRect.x,_=0,f=0;f<this._children.length;f++){if(_=(T=this._children[f].getTabRect()).x+T.width/2,e>=h&&e<_){var g=new c.Rect(T.x-2,r,3,a);o=new d.DropInfo(this,g,n,f,u.CLASSES.FLEXLAYOUT__OUTLINE_RECT);break}h=_}null==o&&(g=new c.Rect(T.getRight()-2,r,3,a),o=new d.DropInfo(this,g,n,this._children.length,u.CLASSES.FLEXLAYOUT__OUTLINE_RECT))}else g=new c.Rect(this._tabHeaderRect.x+1,this._tabHeaderRect.y+2,3,18),o=new d.DropInfo(this,g,n,0,u.CLASSES.FLEXLAYOUT__OUTLINE_RECT);else if(this._children.length>0){var T,v=(T=this._children[0].getTabRect()).x,E=T.width;for(h=this._tabHeaderRect.y,_=0,f=0;f<this._children.length;f++){if(_=(T=this._children[f].getTabRect()).y+T.height/2,i>=h&&i<_){g=new c.Rect(v,T.y-2,E,3),o=new d.DropInfo(this,g,n,f,u.CLASSES.FLEXLAYOUT__OUTLINE_RECT);break}h=_}null==o&&(g=new c.Rect(v,T.getBottom()-2,E,3),o=new d.DropInfo(this,g,n,this._children.length,u.CLASSES.FLEXLAYOUT__OUTLINE_RECT))}else g=new c.Rect(this._tabHeaderRect.x+2,this._tabHeaderRect.y+1,18,3),o=new d.DropInfo(this,g,n,0,u.CLASSES.FLEXLAYOUT__OUTLINE_RECT);if(!t._canDockInto(t,o))return}else if(-1!==this.getSelected()&&this._contentRect.contains(e,i)&&(g=this._contentRect,o=new d.DropInfo(this,g,n,-1,u.CLASSES.FLEXLAYOUT__OUTLINE_RECT),!t._canDockInto(t,o)))return;return o}},e.prototype.drop=function(t,e,i,o){var n=0,r=t.getParent();void 0!==r&&(n=r._removeChild(t),(0,f.adjustSelectedIndex)(r,n)),t.getType()===p.TabNode.TYPE&&r===this&&n<i&&i>0&&i--;var a=i;-1===a&&(a=this._children.length),t.getType()===p.TabNode.TYPE&&this._addChild(t,a),(o||!1!==o&&this.isAutoSelectTab())&&this._setSelected(a),this._model._tidy()},e.prototype.toJson=function(){var t={};return e._attributeDefinitions.toJson(t,this._attributes),t.location=this._location.getName(),t.children=this._children.map((function(t){return t.toJson()})),t},e.prototype._getSplitterBounds=function(t,e){void 0===e&&(e=!1);var i=[0,0],o=e?this.getMinSize():0,n=this._model._getOuterInnerRects().outer,r=this._model._getOuterInnerRects().inner,a=this._model.getRoot();return this._location===s.DockLocation.TOP?(i[0]=n.y+o,i[1]=Math.max(i[0],r.getBottom()-t.getHeight()-a.getMinHeight())):this._location===s.DockLocation.LEFT?(i[0]=n.x+o,i[1]=Math.max(i[0],r.getRight()-t.getWidth()-a.getMinWidth())):this._location===s.DockLocation.BOTTOM?(i[1]=n.getBottom()-t.getHeight()-o,i[0]=Math.min(i[1],r.y+a.getMinHeight())):this._location===s.DockLocation.RIGHT&&(i[1]=n.getRight()-t.getWidth()-o,i[0]=Math.min(i[1],r.x+a.getMinWidth())),i},e.prototype._calculateSplit=function(t,e){var i=this._getSplitterBounds(t);return this._location===s.DockLocation.BOTTOM||this._location===s.DockLocation.RIGHT?Math.max(0,i[1]-e):Math.max(0,e-i[0])},e.prototype._getAttributeDefinitions=function(){return e._attributeDefinitions},e.getAttributeDefinitions=function(){return e._attributeDefinitions},e.TYPE="border",e._attributeDefinitions=e._createAttributeDefinitions(),e}(h.Node);e.BorderNode=g},271:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BorderSet=void 0;var o=i(327),n=i(907),r=function(){function t(t){this._model=t,this._borders=[]}return t._fromJson=function(e,i){var o=new t(i);return o._borders=e.map((function(t){return n.BorderNode._fromJson(t,i)})),o},t.prototype.getBorders=function(){return this._borders},t.prototype._forEachNode=function(t){for(var e=0,i=this._borders;e<i.length;e++){var o=i[e];t(o,0);for(var n=0,r=o.getChildren();n<r.length;n++)r[n]._forEachNode(t,1)}},t.prototype._toJson=function(){return this._borders.map((function(t){return t.toJson()}))},t.prototype._layoutBorder=function(t,e){for(var i=t.outer,n=this._model.getRoot(),r=Math.max(0,i.height-n.getMinHeight()),a=Math.max(0,i.width-n.getMinWidth()),s=0,d=0,l=0,c=0,u=this._borders.filter((function(t){return t.isShowing()})),h=0,_=u;h<_.length;h++){(b=_[h])._setAdjustedSize(b.getSize());var p=-1!==b.getSelected();b.getLocation().getOrientation()===o.Orientation.HORZ?(d+=b.getBorderBarSize(),p&&(a-=this._model.getSplitterSize(),d+=b.getSize(),c+=b.getSize())):(s+=b.getBorderBarSize(),p&&(r-=this._model.getSplitterSize(),s+=b.getSize(),l+=b.getSize()))}for(var f=0,g=!1;d>a&&c>0||s>r&&l>0;){if(-1!==(b=u[f]).getSelected()){var T=b._getAdjustedSize();d>a&&c>0&&b.getLocation().getOrientation()===o.Orientation.HORZ&&T>0&&T>b.getMinSize()?(b._setAdjustedSize(T-1),d--,c--,g=!0):s>r&&l>0&&b.getLocation().getOrientation()===o.Orientation.VERT&&T>0&&T>b.getMinSize()&&(b._setAdjustedSize(T-1),s--,l--,g=!0)}if(0==(f=(f+1)%u.length)){if(!g)break;g=!1}}for(var v=0,E=u;v<E.length;v++){var b=E[v];t.outer=b._layoutBorderOuter(t.outer,e)}t.inner=t.outer;for(var y=0,m=u;y<m.length;y++)b=m[y],t.inner=b._layoutBorderInner(t.inner,e);return t},t.prototype._findDropTargetNode=function(t,e,i){for(var o=0,n=this._borders;o<n.length;o++){var r=n[o];if(r.isShowing()){var a=r.canDrop(t,e,i);if(void 0!==a)return a}}},t}();e.BorderSet=r},138:(t,e)=>{var i;Object.defineProperty(e,"__esModule",{value:!0}),e.ICloseType=void 0,(i=e.ICloseType||(e.ICloseType={}))[i.Visible=1]="Visible",i[i.Always=2]="Always",i[i.Selected=3]="Selected"},23:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},865:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},229:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},627:function(t,e,i){var o=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var o,n=0,r=e.length;n<r;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Model=void 0;var n=i(453),r=i(92),a=i(99),s=i(95),d=i(327),l=i(359),c=i(920),u=i(907),h=i(271),_=i(179),p=i(275),f=i(657),g=i(494),T=function(){function t(){this._borderRects={inner:l.Rect.empty(),outer:l.Rect.empty()},this._attributes={},this._idMap={},this._borders=new h.BorderSet(this),this._pointerFine=!0,this._showHiddenBorder=s.DockLocation.CENTER}return t.fromJson=function(e){var i=new t;return t._attributeDefinitions.fromJson(e.global,i._attributes),e.borders&&(i._borders=h.BorderSet._fromJson(e.borders,i)),i._root=_.RowNode._fromJson(e.layout,i),i._tidy(),i},t._createAttributeDefinitions=function(){var t=new a.AttributeDefinitions;return t.add("legacyOverflowMenu",!1).setType(r.Attribute.BOOLEAN),t.add("splitterSize",-1).setType(r.Attribute.NUMBER),t.add("splitterExtra",0).setType(r.Attribute.NUMBER),t.add("enableEdgeDock",!0).setType(r.Attribute.BOOLEAN),t.add("rootOrientationVertical",!1).setType(r.Attribute.BOOLEAN),t.add("marginInsets",{top:0,right:0,bottom:0,left:0}).setType("IInsets"),t.add("enableUseVisibility",!1).setType(r.Attribute.BOOLEAN),t.add("tabEnableClose",!0).setType(r.Attribute.BOOLEAN),t.add("tabCloseType",1).setType("ICloseType"),t.add("tabEnableFloat",!1).setType(r.Attribute.BOOLEAN),t.add("tabEnableDrag",!0).setType(r.Attribute.BOOLEAN),t.add("tabEnableRename",!0).setType(r.Attribute.BOOLEAN),t.add("tabClassName",void 0).setType(r.Attribute.STRING),t.add("tabIcon",void 0).setType(r.Attribute.STRING),t.add("tabEnableRenderOnDemand",!0).setType(r.Attribute.BOOLEAN),t.add("tabDragSpeed",.3).setType(r.Attribute.NUMBER),t.add("tabBorderWidth",-1).setType(r.Attribute.NUMBER),t.add("tabBorderHeight",-1).setType(r.Attribute.NUMBER),t.add("tabSetEnableDeleteWhenEmpty",!0).setType(r.Attribute.BOOLEAN),t.add("tabSetEnableDrop",!0).setType(r.Attribute.BOOLEAN),t.add("tabSetEnableDrag",!0).setType(r.Attribute.BOOLEAN),t.add("tabSetEnableDivide",!0).setType(r.Attribute.BOOLEAN),t.add("tabSetEnableMaximize",!0).setType(r.Attribute.BOOLEAN),t.add("tabSetEnableClose",!1).setType(r.Attribute.BOOLEAN),t.add("tabSetAutoSelectTab",!0).setType(r.Attribute.BOOLEAN),t.add("tabSetClassNameTabStrip",void 0).setType(r.Attribute.STRING),t.add("tabSetClassNameHeader",void 0).setType(r.Attribute.STRING),t.add("tabSetEnableTabStrip",!0).setType(r.Attribute.BOOLEAN),t.add("tabSetHeaderHeight",0).setType(r.Attribute.NUMBER),t.add("tabSetTabStripHeight",0).setType(r.Attribute.NUMBER),t.add("tabSetMarginInsets",{top:0,right:0,bottom:0,left:0}).setType("IInsets"),t.add("tabSetBorderInsets",{top:0,right:0,bottom:0,left:0}).setType("IInsets"),t.add("tabSetTabLocation","top").setType("ITabLocation"),t.add("tabSetMinWidth",0).setType(r.Attribute.NUMBER),t.add("tabSetMinHeight",0).setType(r.Attribute.NUMBER),t.add("borderSize",200).setType(r.Attribute.NUMBER),t.add("borderMinSize",0).setType(r.Attribute.NUMBER),t.add("borderBarSize",0).setType(r.Attribute.NUMBER),t.add("borderEnableDrop",!0).setType(r.Attribute.BOOLEAN),t.add("borderAutoSelectTabWhenOpen",!0).setType(r.Attribute.BOOLEAN),t.add("borderAutoSelectTabWhenClosed",!1).setType(r.Attribute.BOOLEAN),t.add("borderClassName",void 0).setType(r.Attribute.STRING),t.add("borderEnableAutoHide",!1).setType(r.Attribute.BOOLEAN),t},t.prototype._setChangeListener=function(t){this._changeListener=t},t.prototype.getActiveTabset=function(){return this._activeTabSet&&this.getNodeById(this._activeTabSet.getId())?this._activeTabSet:void 0},t.prototype._getShowHiddenBorder=function(){return this._showHiddenBorder},t.prototype._setShowHiddenBorder=function(t){this._showHiddenBorder=t},t.prototype._setActiveTabset=function(t){this._activeTabSet=t},t.prototype.getMaximizedTabset=function(){return this._maximizedTabSet},t.prototype._setMaximizedTabset=function(t){this._maximizedTabSet=t},t.prototype.getRoot=function(){return this._root},t.prototype.isRootOrientationVertical=function(){return this._attributes.rootOrientationVertical},t.prototype.isUseVisibility=function(){return this._attributes.enableUseVisibility},t.prototype.getBorderSet=function(){return this._borders},t.prototype._getOuterInnerRects=function(){return this._borderRects},t.prototype._getPointerFine=function(){return this._pointerFine},t.prototype._setPointerFine=function(t){this._pointerFine=t},t.prototype.visitNodes=function(t){this._borders._forEachNode(t),this._root._forEachNode(t,0)},t.prototype.getNodeById=function(t){return this._idMap[t]},t.prototype.doAction=function(t){var e=void 0;switch(t.type){case c.Actions.ADD_NODE:var i=new p.TabNode(this,t.data.json,!0);((n=this._idMap[t.data.toNode])instanceof f.TabSetNode||n instanceof u.BorderNode||n instanceof _.RowNode)&&(n.drop(i,s.DockLocation.getByName(t.data.location),t.data.index,t.data.select),e=i);break;case c.Actions.MOVE_NODE:var n,r=this._idMap[t.data.fromNode];(r instanceof p.TabNode||r instanceof f.TabSetNode)&&((n=this._idMap[t.data.toNode])instanceof f.TabSetNode||n instanceof u.BorderNode||n instanceof _.RowNode)&&n.drop(r,s.DockLocation.getByName(t.data.location),t.data.index,t.data.select);break;case c.Actions.DELETE_TAB:(m=this._idMap[t.data.node])instanceof p.TabNode&&m._delete();break;case c.Actions.DELETE_TABSET:if((m=this._idMap[t.data.node])instanceof f.TabSetNode){for(var a=o([],m.getChildren(),!0),d=0;d<a.length;d++){var l=a[d];l.isEnableClose()&&l._delete()}0===m.getChildren().length&&m._delete(),this._tidy()}break;case c.Actions.FLOAT_TAB:(m=this._idMap[t.data.node])instanceof p.TabNode&&(m._setFloating(!0),(0,g.adjustSelectedIndexAfterFloat)(m));break;case c.Actions.UNFLOAT_TAB:(m=this._idMap[t.data.node])instanceof p.TabNode&&(m._setFloating(!1),(0,g.adjustSelectedIndexAfterDock)(m));break;case c.Actions.RENAME_TAB:(m=this._idMap[t.data.node])instanceof p.TabNode&&m._setName(t.data.text);break;case c.Actions.SELECT_TAB:var h=this._idMap[t.data.tabNode];if(h instanceof p.TabNode){var T=h.getParent(),v=T.getChildren().indexOf(h);T instanceof u.BorderNode?T.getSelected()===v?T._setSelected(-1):T._setSelected(v):T instanceof f.TabSetNode&&(T.getSelected()!==v&&T._setSelected(v),this._activeTabSet=T)}break;case c.Actions.SET_ACTIVE_TABSET:var E=this._idMap[t.data.tabsetNode];E instanceof f.TabSetNode&&(this._activeTabSet=E);break;case c.Actions.ADJUST_SPLIT:var b=this._idMap[t.data.node1],y=this._idMap[t.data.node2];(b instanceof f.TabSetNode||b instanceof _.RowNode)&&(y instanceof f.TabSetNode||y instanceof _.RowNode)&&(this._adjustSplitSide(b,t.data.weight1,t.data.pixelWidth1),this._adjustSplitSide(y,t.data.weight2,t.data.pixelWidth2));break;case c.Actions.ADJUST_BORDER_SPLIT:(m=this._idMap[t.data.node])instanceof u.BorderNode&&m._setSize(t.data.pos);break;case c.Actions.MAXIMIZE_TOGGLE:(m=this._idMap[t.data.node])instanceof f.TabSetNode&&(m===this._maximizedTabSet?this._maximizedTabSet=void 0:(this._maximizedTabSet=m,this._activeTabSet=m));break;case c.Actions.UPDATE_MODEL_ATTRIBUTES:this._updateAttrs(t.data.json);break;case c.Actions.UPDATE_NODE_ATTRIBUTES:var m;(m=this._idMap[t.data.node])._updateAttrs(t.data.json)}return this._updateIdMap(),void 0!==this._changeListener&&this._changeListener(),e},t.prototype._updateIdMap=function(){var t=this;this._idMap={},this.visitNodes((function(e){return t._idMap[e.getId()]=e}))},t.prototype._adjustSplitSide=function(t,e,i){t._setWeight(e),null!=t.getWidth()&&t.getOrientation()===d.Orientation.VERT?t._updateAttrs({width:i}):null!=t.getHeight()&&t.getOrientation()===d.Orientation.HORZ&&t._updateAttrs({height:i})},t.prototype.toJson=function(){var e={};return t._attributeDefinitions.toJson(e,this._attributes),this.visitNodes((function(t){t._fireEvent("save",void 0)})),{global:e,borders:this._borders._toJson(),layout:this._root.toJson()}},t.prototype.getSplitterSize=function(){var t=this._attributes.splitterSize;return-1===t&&(t=this._pointerFine?8:12),t},t.prototype.isLegacyOverflowMenu=function(){return this._attributes.legacyOverflowMenu},t.prototype.getSplitterExtra=function(){return this._attributes.splitterExtra},t.prototype.isEnableEdgeDock=function(){return this._attributes.enableEdgeDock},t.prototype._addNode=function(t){var e=t.getId();if(void 0!==this._idMap[e])throw new Error("Error: each node must have a unique id, duplicate id:".concat(t.getId()));"splitter"!==t.getType()&&(this._idMap[e]=t)},t.prototype._layout=function(t,e){var i;return this._borderRects=this._borders._layoutBorder({outer:t,inner:t},e),t=this._borderRects.inner.removeInsets(this._getAttribute("marginInsets")),null===(i=this._root)||void 0===i||i.calcMinSize(),this._root._layout(t,e),t},t.prototype._findDropTargetNode=function(t,e,i){var o=this._root._findDropTargetNode(t,e,i);return void 0===o&&(o=this._borders._findDropTargetNode(t,e,i)),o},t.prototype._tidy=function(){this._root._tidy()},t.prototype._updateAttrs=function(e){t._attributeDefinitions.update(e,this._attributes)},t.prototype._nextUniqueId=function(){return"#"+(0,n.v4)()},t.prototype._getAttribute=function(t){return this._attributes[t]},t.prototype.setOnAllowDrop=function(t){this._onAllowDrop=t},t.prototype._getOnAllowDrop=function(){return this._onAllowDrop},t.prototype.setOnCreateTabSet=function(t){this._onCreateTabSet=t},t.prototype._getOnCreateTabSet=function(){return this._onCreateTabSet},t.toTypescriptInterfaces=function(){console.log(t._attributeDefinitions.toTypescriptInterface("Global",void 0)),console.log(_.RowNode.getAttributeDefinitions().toTypescriptInterface("Row",t._attributeDefinitions)),console.log(f.TabSetNode.getAttributeDefinitions().toTypescriptInterface("TabSet",t._attributeDefinitions)),console.log(p.TabNode.getAttributeDefinitions().toTypescriptInterface("Tab",t._attributeDefinitions)),console.log(u.BorderNode.getAttributeDefinitions().toTypescriptInterface("Border",t._attributeDefinitions))},t.prototype.toString=function(){return JSON.stringify(this.toJson())},t._attributeDefinitions=t._createAttributeDefinitions(),t}();e.Model=T},103:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Node=void 0;var o=i(95),n=i(327),r=i(359),a=function(){function t(t){this._dirty=!1,this._tempSize=0,this._model=t,this._attributes={},this._children=[],this._fixed=!1,this._rect=r.Rect.empty(),this._visible=!1,this._listeners={}}return t.prototype.getId=function(){var t=this._attributes.id;return void 0!==t||(t=this._model._nextUniqueId(),this._setId(t)),t},t.prototype.getModel=function(){return this._model},t.prototype.getType=function(){return this._attributes.type},t.prototype.getParent=function(){return this._parent},t.prototype.getChildren=function(){return this._children},t.prototype.getRect=function(){return this._rect},t.prototype.isVisible=function(){return this._visible},t.prototype.getOrientation=function(){return void 0===this._parent?this._model.isRootOrientationVertical()?n.Orientation.VERT:n.Orientation.HORZ:n.Orientation.flip(this._parent.getOrientation())},t.prototype.setEventListener=function(t,e){this._listeners[t]=e},t.prototype.removeEventListener=function(t){delete this._listeners[t]},t.prototype._setId=function(t){this._attributes.id=t},t.prototype._fireEvent=function(t,e){void 0!==this._listeners[t]&&this._listeners[t](e)},t.prototype._getAttr=function(t){var e=this._attributes[t];if(void 0===e){var i=this._getAttributeDefinitions().getModelName(t);void 0!==i&&(e=this._model._getAttribute(i))}return e},t.prototype._forEachNode=function(t,e){t(this,e),e++;for(var i=0,o=this._children;i<o.length;i++)o[i]._forEachNode(t,e)},t.prototype._setVisible=function(t){t!==this._visible&&(this._fireEvent("visibility",{visible:t}),this._visible=t)},t.prototype._getDrawChildren=function(){return this._children},t.prototype._setParent=function(t){this._parent=t},t.prototype._setRect=function(t){this._rect=t},t.prototype._setWeight=function(t){this._attributes.weight=t},t.prototype._setSelected=function(t){this._attributes.selected=t},t.prototype._isFixed=function(){return this._fixed},t.prototype._layout=function(t,e){this._rect=t},t.prototype._findDropTargetNode=function(t,e,i){var o;if(this._rect.contains(e,i))if(void 0!==this._model.getMaximizedTabset())o=this._model.getMaximizedTabset().canDrop(t,e,i);else if(void 0===(o=this.canDrop(t,e,i))&&0!==this._children.length)for(var n=0,r=this._children;n<r.length&&void 0===(o=r[n]._findDropTargetNode(t,e,i));n++);return o},t.prototype.canDrop=function(t,e,i){},t.prototype._canDockInto=function(t,e){if(null!=e){if(e.location===o.DockLocation.CENTER&&!1===e.node.isEnableDrop())return!1;if(e.location===o.DockLocation.CENTER&&"tabset"===t.getType()&&void 0!==t.getName())return!1;if(e.location!==o.DockLocation.CENTER&&!1===e.node.isEnableDivide())return!1;if(this._model._getOnAllowDrop())return this._model._getOnAllowDrop()(t,e)}return!0},t.prototype._removeChild=function(t){var e=this._children.indexOf(t);return-1!==e&&this._children.splice(e,1),this._dirty=!0,e},t.prototype._addChild=function(t,e){return null!=e?this._children.splice(e,0,t):(this._children.push(t),e=this._children.length-1),t._parent=this,this._dirty=!0,e},t.prototype._removeAll=function(){this._children=[],this._dirty=!0},t.prototype._styleWithPosition=function(t){return null==t&&(t={}),this._rect.styleWithPosition(t)},t.prototype._getTempSize=function(){return this._tempSize},t.prototype._setTempSize=function(t){this._tempSize=t},t.prototype.isEnableDivide=function(){return!0},t.prototype._toAttributeString=function(){return JSON.stringify(this._attributes,void 0,"\t")},t}();e.Node=a},179:function(t,e,i){var o,n=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},o(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 i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.RowNode=void 0;var a=i(92),s=i(99),d=i(95),l=i(34),c=i(327),u=i(359),h=i(398),_=i(907),p=i(103),f=i(618),g=i(657),T=function(t){function e(i,o){var n=t.call(this,i)||this;return n._dirty=!0,n._drawChildren=[],n._minHeight=0,n._minWidth=0,e._attributeDefinitions.fromJson(o,n._attributes),i._addNode(n),n}return n(e,t),e._fromJson=function(t,i){var o=new e(i,t);if(null!=t.children)for(var n=0,r=t.children;n<r.length;n++){var a=r[n];if(a.type===g.TabSetNode.TYPE){var s=g.TabSetNode._fromJson(a,i);o._addChild(s)}else s=e._fromJson(a,i),o._addChild(s)}return o},e._createAttributeDefinitions=function(){var t=new s.AttributeDefinitions;return t.add("type",e.TYPE,!0).setType(a.Attribute.STRING).setFixed(),t.add("id",void 0).setType(a.Attribute.STRING),t.add("weight",100).setType(a.Attribute.NUMBER),t.add("width",void 0).setType(a.Attribute.NUMBER),t.add("height",void 0).setType(a.Attribute.NUMBER),t},e.prototype.getWeight=function(){return this._attributes.weight},e.prototype.getWidth=function(){return this._getAttr("width")},e.prototype.getHeight=function(){return this._getAttr("height")},e.prototype._setWeight=function(t){this._attributes.weight=t},e.prototype._layout=function(e,i){t.prototype._layout.call(this,e,i);for(var o=this._rect._getSize(this.getOrientation()),n=0,r=0,a=0,s=0,d=this._getDrawChildren(),l=0,h=d;l<h.length;l++){var _=(M=h[l])._getPrefSize(this.getOrientation());M._isFixed()?void 0!==_&&(r+=_):void 0===_?n+=M.getWeight():(a+=_,s+=M.getWeight())}var p=!1,g=o-r-a;g<0&&(g=o-r,p=!0,n+=s);for(var T=0,v=0,E=0,b=d;E<b.length;E++){if(_=(M=b[E])._getPrefSize(this.getOrientation()),M._isFixed())void 0!==_&&M._setTempSize(_);else if(null==_||p){if(0===n)M._setTempSize(0);else{var y=M.getMinSize(this.getOrientation()),m=Math.floor(g*(M.getWeight()/n));M._setTempSize(Math.max(y,m))}v+=M._getTempSize()}else M._setTempSize(_);T+=M._getTempSize()}if(v>0){for(;T<o;)for(var A=0,S=d;A<S.length;A++)(M=S[A])instanceof f.SplitterNode||(_=M._getPrefSize(this.getOrientation()),!M._isFixed()&&(void 0===_||p)&&T<o&&(M._setTempSize(M._getTempSize()+1),T++));for(;T>o;){for(var L=!1,O=0,R=d;O<R.length;O++)(M=R[O])instanceof f.SplitterNode||(y=M.getMinSize(this.getOrientation()),(m=M._getTempSize())>y&&T>o&&(M._setTempSize(M._getTempSize()-1),T--,L=!0));if(!L)break}for(;T>o;){L=!1;for(var N=0,D=d;N<D.length;N++)(M=D[N])instanceof f.SplitterNode||(m=M._getTempSize())>0&&T>o&&(M._setTempSize(M._getTempSize()-1),T--,L=!0);if(!L)break}}for(var w=0,B=0,C=d;B<C.length;B++){var M=C[B];this.getOrientation()===c.Orientation.HORZ?M._layout(new u.Rect(this._rect.x+w,this._rect.y,M._getTempSize(),this._rect.height),i):M._layout(new u.Rect(this._rect.x,this._rect.y+w,this._rect.width,M._getTempSize()),i),w+=M._getTempSize()}return!0},e.prototype._getSplitterBounds=function(t,e){void 0===e&&(e=!1);var i=[0,0],o=this._getDrawChildren(),n=o.indexOf(t),r=o[n-1],a=o[n+1];if(this.getOrientation()===c.Orientation.HORZ){var s=e?r.getMinWidth():0,d=e?a.getMinWidth():0;i[0]=r.getRect().x+s,i[1]=a.getRect().getRight()-t.getWidth()-d}else s=e?r.getMinHeight():0,d=e?a.getMinHeight():0,i[0]=r.getRect().y+s,i[1]=a.getRect().getBottom()-t.getHeight()-d;return i},e.prototype._calculateSplit=function(t,e){var i,o=this._getDrawChildren(),n=o.indexOf(t),r=this._getSplitterBounds(t),a=o[n-1].getWeight()+o[n+1].getWeight(),s=Math.max(0,e-r[0]),d=Math.max(0,r[1]-e);if(s+d>0){var l=s*a/(s+d),c=d*a/(s+d);i={node1Id:o[n-1].getId(),weight1:l,pixelWidth1:s,node2Id:o[n+1].getId(),weight2:c,pixelWidth2:d}}return i},e.prototype._getDrawChildren=function(){if(this._dirty){this._drawChildren=[];for(var t=0;t<this._children.length;t++){var e=this._children[t];if(0!==t){var i=new f.SplitterNode(this._model);i._setParent(this),this._drawChildren.push(i)}this._drawChildren.push(e)}this._dirty=!1}return this._drawChildren},e.prototype.getMinSize=function(t){return t===c.Orientation.HORZ?this.getMinWidth():this.getMinHeight()},e.prototype.getMinWidth=function(){return this._minWidth},e.prototype.getMinHeight=function(){return this._minHeight},e.prototype.calcMinSize=function(){this._minHeight=0,this._minWidth=0;for(var t=!0,i=0,o=this._children;i<o.length;i++){var n=o[i];n instanceof e&&n.calcMinSize(),this.getOrientation()===c.Orientation.VERT?(this._minHeight+=n.getMinHeight(),t||(this._minHeight+=this._model.getSplitterSize()),this._minWidth=Math.max(this._minWidth,n.getMinWidth())):(this._minWidth+=n.getMinWidth(),t||(this._minWidth+=this._model.getSplitterSize()),this._minHeight=Math.max(this._minHeight,n.getMinHeight())),t=!1}},e.prototype._tidy=function(){for(var t=0;t<this._children.length;)if((_=this._children[t])instanceof e){_._tidy();var i=_.getChildren();if(0===i.length)this._removeChild(_);else if(1===i.length){var o=i[0];if(this._removeChild(_),o instanceof e){for(var n=0,a=o.getChildren(),s=0,d=a;s<d.length;s++)n+=(c=d[s]).getWeight();for(var l=0;l<a.length;l++){var c;(c=a[l])._setWeight(_.getWeight()*c.getWeight()/n),this._addChild(c,t+l)}}else o._setWeight(_.getWeight()),this._addChild(o,t)}else t++}else _ instanceof g.TabSetNode&&0===_.getChildren().length&&_.isEnableDeleteWhenEmpty()?(this._removeChild(_),_===this._model.getMaximizedTabset()&&this._model._setMaximizedTabset(void 0)):t++;if(this===this._model.getRoot()&&0===this._children.length){var u=this._model._getOnCreateTabSet(),h=u?u():{};h=r(r({},h),{selected:-1});var _=new g.TabSetNode(this._model,h);this._model._setActiveTabset(_),this._addChild(_)}},e.prototype.canDrop=function(t,e,i){var o,n=i-this._rect.y,r=e-this._rect.x,a=this._rect.width,s=this._rect.height,c=50;if(this._model.isEnableEdgeDock()&&void 0===this._parent){if(e<this._rect.x+10&&n>s/2-c&&n<s/2+c)(_=(u=d.DockLocation.LEFT).getDockRect(this._rect)).width=_.width/2,o=new l.DropInfo(this,_,u,-1,h.CLASSES.FLEXLAYOUT__OUTLINE_RECT_EDGE);else if(e>this._rect.getRight()-10&&n>s/2-c&&n<s/2+c)(_=(u=d.DockLocation.RIGHT).getDockRect(this._rect)).width=_.width/2,_.x+=_.width,o=new l.DropInfo(this,_,u,-1,h.CLASSES.FLEXLAYOUT__OUTLINE_RECT_EDGE);else if(i<this._rect.y+10&&r>a/2-c&&r<a/2+c)(_=(u=d.DockLocation.TOP).getDockRect(this._rect)).height=_.height/2,o=new l.DropInfo(this,_,u,-1,h.CLASSES.FLEXLAYOUT__OUTLINE_RECT_EDGE);else if(i>this._rect.getBottom()-10&&r>a/2-c&&r<a/2+c){var u,_;(_=(u=d.DockLocation.BOTTOM).getDockRect(this._rect)).height=_.height/2,_.y+=_.height,o=new l.DropInfo(this,_,u,-1,h.CLASSES.FLEXLAYOUT__OUTLINE_RECT_EDGE)}if(void 0!==o&&!t._canDockInto(t,o))return}return o},e.prototype.drop=function(t,i,o){var n,r=i,a=t.getParent();if(a&&a._removeChild(t),void 0!==a&&a.getType()===g.TabSetNode.TYPE&&a._setSelected(0),void 0!==a&&a.getType()===_.BorderNode.TYPE&&a._setSelected(-1),t instanceof g.TabSetNode)n=t;else{var s=this._model._getOnCreateTabSet();(n=new g.TabSetNode(this._model,s?s(t):{}))._addChild(t)}var l=this._children.reduce((function(t,e){return t+e.getWeight()}),0);0===l&&(l=100),n._setWeight(l/3);var c=!this._model.isRootOrientationVertical();if(c&&r===d.DockLocation.LEFT||!c&&r===d.DockLocation.TOP)this._addChild(n,0);else if(c&&r===d.DockLocation.RIGHT||!c&&r===d.DockLocation.BOTTOM)this._addChild(n);else if(c&&r===d.DockLocation.TOP||!c&&r===d.DockLocation.LEFT){var u=new e(this._model,{});(T=new e(this._model,{}))._setWeight(75),n._setWeight(25);for(var h=0,p=this._children;h<p.length;h++){var f=p[h];T._addChild(f)}this._removeAll(),u._addChild(n),u._addChild(T),this._addChild(u)}else if(c&&r===d.DockLocation.BOTTOM||!c&&r===d.DockLocation.RIGHT){var T;u=new e(this._model,{}),(T=new e(this._model,{}))._setWeight(75),n._setWeight(25);for(var v=0,E=this._children;v<E.length;v++)f=E[v],T._addChild(f);this._removeAll(),u._addChild(T),u._addChild(n),this._addChild(u)}this._model._setActiveTabset(n),this._model._tidy()},e.prototype.toJson=function(){var t={};e._attributeDefinitions.toJson(t,this._attributes),t.children=[];for(var i=0,o=this._children;i<o.length;i++){var n=o[i];t.children.push(n.toJson())}return t},e.prototype.isEnableDrop=function(){return!0},e.prototype._getPrefSize=function(t){var e=this.getWidth();return t===c.Orientation.VERT&&(e=this.getHeight()),e},e.prototype._getAttributeDefinitions=function(){return e._attributeDefinitions},e.prototype._updateAttrs=function(t){e._attributeDefinitions.update(t,this._attributes)},e.getAttributeDefinitions=function(){return e._attributeDefinitions},e.TYPE="row",e._attributeDefinitions=e._createAttributeDefinitions(),e}(p.Node);e.RowNode=T},618:function(t,e,i){var o,n=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},o(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 i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.SplitterNode=void 0;var r=i(99),a=i(327),s=function(t){function e(i){var o=t.call(this,i)||this;return o._fixed=!0,o._attributes.type=e.TYPE,i._addNode(o),o}return n(e,t),e.prototype.getWidth=function(){return this._model.getSplitterSize()},e.prototype.getMinWidth=function(){return this.getOrientation()===a.Orientation.VERT?this._model.getSplitterSize():0},e.prototype.getHeight=function(){return this._model.getSplitterSize()},e.prototype.getMinHeight=function(){return this.getOrientation()===a.Orientation.HORZ?this._model.getSplitterSize():0},e.prototype.getMinSize=function(t){return t===a.Orientation.HORZ?this.getMinWidth():this.getMinHeight()},e.prototype.getWeight=function(){return 0},e.prototype._setWeight=function(t){},e.prototype._getPrefSize=function(t){return this._model.getSplitterSize()},e.prototype._updateAttrs=function(t){},e.prototype._getAttributeDefinitions=function(){return new r.AttributeDefinitions},e.prototype.toJson=function(){},e.TYPE="splitter",e}(i(103).Node);e.SplitterNode=s},275:function(t,e,i){var o,n=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},o(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 i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.TabNode=void 0;var r=i(92),a=i(99),s=function(t){function e(i,o,n){void 0===n&&(n=!0);var r=t.call(this,i)||this;return r._extra={},e._attributeDefinitions.fromJson(o,r._attributes),!0===n&&i._addNode(r),r}return n(e,t),e._fromJson=function(t,i,o){return void 0===o&&(o=!0),new e(i,t,o)},e._createAttributeDefinitions=function(){var t=new a.AttributeDefinitions;return t.add("type",e.TYPE,!0).setType(r.Attribute.STRING),t.add("id",void 0).setType(r.Attribute.STRING),t.add("name","[Unnamed Tab]").setType(r.Attribute.STRING),t.add("altName",void 0).setType(r.Attribute.STRING),t.add("helpText",void 0).setType(r.Attribute.STRING),t.add("component",void 0).setType(r.Attribute.STRING),t.add("config",void 0).setType("any"),t.add("floating",!1).setType(r.Attribute.BOOLEAN),t.addInherited("enableClose","tabEnableClose").setType(r.Attribute.BOOLEAN),t.addInherited("closeType","tabCloseType").setType("ICloseType"),t.addInherited("enableDrag","tabEnableDrag").setType(r.Attribute.BOOLEAN),t.addInherited("enableRename","tabEnableRename").setType(r.Attribute.BOOLEAN),t.addInherited("className","tabClassName").setType(r.Attribute.STRING),t.addInherited("icon","tabIcon").setType(r.Attribute.STRING),t.addInherited("enableRenderOnDemand","tabEnableRenderOnDemand").setType(r.Attribute.BOOLEAN),t.addInherited("enableFloat","tabEnableFloat").setType(r.Attribute.BOOLEAN),t.addInherited("borderWidth","tabBorderWidth").setType(r.Attribute.NUMBER),t.addInherited("borderHeight","tabBorderHeight").setType(r.Attribute.NUMBER),t},e.prototype.getWindow=function(){return this._window},e.prototype.getTabRect=function(){return this._tabRect},e.prototype._setTabRect=function(t){this._tabRect=t},e.prototype._setRenderedName=function(t){this._renderedName=t},e.prototype._getNameForOverflowMenu=function(){var t=this._getAttr("altName");return void 0!==t?t:this._renderedName},e.prototype.getName=function(){return this._getAttr("name")},e.prototype.getHelpText=function(){return this._getAttr("helpText")},e.prototype.getComponent=function(){return this._getAttr("component")},e.prototype.getConfig=function(){return this._attributes.config},e.prototype.getExtraData=function(){return this._extra},e.prototype.isFloating=function(){return this._getAttr("floating")},e.prototype.getIcon=function(){return this._getAttr("icon")},e.prototype.isEnableClose=function(){return this._getAttr("enableClose")},e.prototype.getCloseType=function(){return this._getAttr("closeType")},e.prototype.isEnableFloat=function(){return this._getAttr("enableFloat")},e.prototype.isEnableDrag=function(){return this._getAttr("enableDrag")},e.prototype.isEnableRename=function(){return this._getAttr("enableRename")},e.prototype.getClassName=function(){return this._getAttr("className")},e.prototype.isEnableRenderOnDemand=function(){return this._getAttr("enableRenderOnDemand")},e.prototype._setName=function(t){this._attributes.name=t,this._window&&this._window.document&&(this._window.document.title=t)},e.prototype._setFloating=function(t){this._attributes.floating=t},e.prototype._layout=function(t,e){t.equals(this._rect)||this._fireEvent("resize",{rect:t}),this._rect=t},e.prototype._delete=function(){this._parent._remove(this),this._fireEvent("close",{})},e.prototype.toJson=function(){var t={};return e._attributeDefinitions.toJson(t,this._attributes),t},e.prototype._updateAttrs=function(t){e._attributeDefinitions.update(t,this._attributes)},e.prototype._getAttributeDefinitions=function(){return e._attributeDefinitions},e.prototype._setWindow=function(t){this._window=t},e.prototype._setBorderWidth=function(t){this._attributes.borderWidth=t},e.prototype._setBorderHeight=function(t){this._attributes.borderHeight=t},e.getAttributeDefinitions=function(){return e._attributeDefinitions},e.TYPE="tab",e._attributeDefinitions=e._createAttributeDefinitions(),e}(i(103).Node);e.TabNode=s},657:function(t,e,i){var o,n=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},o(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 i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.TabSetNode=void 0;var r=i(92),a=i(99),s=i(95),d=i(34),l=i(327),c=i(359),u=i(398),h=i(103),_=i(179),p=i(275),f=i(494),g=function(t){function e(i,o){var n=t.call(this,i)||this;return e._attributeDefinitions.fromJson(o,n._attributes),i._addNode(n),n._calculatedTabBarHeight=0,n._calculatedHeaderBarHeight=0,n}return n(e,t),e._fromJson=function(t,i){var o=new e(i,t);if(null!=t.children)for(var n=0,r=t.children;n<r.length;n++){var a=r[n],s=p.TabNode._fromJson(a,i);o._addChild(s)}return 0===o._children.length&&o._setSelected(-1),t.maximized&&!0===t.maximized&&i._setMaximizedTabset(o),t.active&&!0===t.active&&i._setActiveTabset(o),o},e._createAttributeDefinitions=function(){var t=new a.AttributeDefinitions;return t.add("type",e.TYPE,!0).setType(r.Attribute.STRING).setFixed(),t.add("id",void 0).setType(r.Attribute.STRING),t.add("weight",100).setType(r.Attribute.NUMBER),t.add("width",void 0).setType(r.Attribute.NUMBER),t.add("height",void 0).setType(r.Attribute.NUMBER),t.add("selected",0).setType(r.Attribute.NUMBER),t.add("name",void 0).setType(r.Attribute.STRING),t.add("config",void 0).setType("any"),t.addInherited("enableDeleteWhenEmpty","tabSetEnableDeleteWhenEmpty"),t.addInherited("enableDrop","tabSetEnableDrop"),t.addInherited("enableDrag","tabSetEnableDrag"),t.addInherited("enableDivide","tabSetEnableDivide"),t.addInherited("enableMaximize","tabSetEnableMaximize"),t.addInherited("enableClose","tabSetEnableClose"),t.addInherited("classNameTabStrip","tabSetClassNameTabStrip"),t.addInherited("classNameHeader","tabSetClassNameHeader"),t.addInherited("enableTabStrip","tabSetEnableTabStrip"),t.addInherited("borderInsets","tabSetBorderInsets"),t.addInherited("marginInsets","tabSetMarginInsets"),t.addInherited("minWidth","tabSetMinWidth"),t.addInherited("minHeight","tabSetMinHeight"),t.addInherited("headerHeight","tabSetHeaderHeight"),t.addInherited("tabStripHeight","tabSetTabStripHeight"),t.addInherited("tabLocation","tabSetTabLocation"),t.addInherited("autoSelectTab","tabSetAutoSelectTab").setType(r.Attribute.BOOLEAN),t},e.prototype.getName=function(){return this._getAttr("name")},e.prototype.getSelected=function(){var t=this._attributes.selected;return void 0!==t?t:-1},e.prototype.getSelectedNode=function(){var t=this.getSelected();if(-1!==t)return this._children[t]},e.prototype.getWeight=function(){return this._getAttr("weight")},e.prototype.getWidth=function(){return this._getAttr("width")},e.prototype.getMinWidth=function(){return this._getAttr("minWidth")},e.prototype.getHeight=function(){return this._getAttr("height")},e.prototype.getMinHeight=function(){return this._getAttr("minHeight")},e.prototype.getMinSize=function(t){return t===l.Orientation.HORZ?this.getMinWidth():this.getMinHeight()},e.prototype.getConfig=function(){return this._attributes.config},e.prototype.isMaximized=function(){return this._model.getMaximizedTabset()===this},e.prototype.isActive=function(){return this._model.getActiveTabset()===this},e.prototype.isEnableDeleteWhenEmpty=function(){return this._getAttr("enableDeleteWhenEmpty")},e.prototype.isEnableDrop=function(){return this._getAttr("enableDrop")},e.prototype.isEnableDrag=function(){return this._getAttr("enableDrag")},e.prototype.isEnableDivide=function(){return this._getAttr("enableDivide")},e.prototype.isEnableMaximize=function(){return this._getAttr("enableMaximize")},e.prototype.isEnableClose=function(){return this._getAttr("enableClose")},e.prototype.canMaximize=function(){return!!this.isEnableMaximize()&&(this.getModel().getMaximizedTabset()===this||this.getParent()!==this.getModel().getRoot()||1!==this.getModel().getRoot().getChildren().length)},e.prototype.isEnableTabStrip=function(){return this._getAttr("enableTabStrip")},e.prototype.isAutoSelectTab=function(){return this._getAttr("autoSelectTab")},e.prototype.getClassNameTabStrip=function(){return this._getAttr("classNameTabStrip")},e.prototype.getClassNameHeader=function(){return this._getAttr("classNameHeader")},e.prototype.calculateHeaderBarHeight=function(t){var e=this._getAttr("headerHeight");this._calculatedHeaderBarHeight=0!==e?e:t.headerBarSize},e.prototype.calculateTabBarHeight=function(t){var e=this._getAttr("tabStripHeight");this._calculatedTabBarHeight=0!==e?e:t.tabBarSize},e.prototype.getHeaderHeight=function(){return this._calculatedHeaderBarHeight},e.prototype.getTabStripHeight=function(){return this._calculatedTabBarHeight},e.prototype.getTabLocation=function(){return this._getAttr("tabLocation")},e.prototype._setWeight=function(t){this._attributes.weight=t},e.prototype._setSelected=function(t){this._attributes.selected=t},e.prototype.canDrop=function(t,e,i){var o;if(t===this){var n=s.DockLocation.CENTER,r=this._tabHeaderRect;o=new d.DropInfo(this,r,n,-1,u.CLASSES.FLEXLAYOUT__OUTLINE_RECT)}else if(this._contentRect.contains(e,i))n=s.DockLocation.CENTER,void 0===this._model.getMaximizedTabset()&&(n=s.DockLocation.getLocation(this._contentRect,e,i)),r=n.getDockRect(this._rect),o=new d.DropInfo(this,r,n,-1,u.CLASSES.FLEXLAYOUT__OUTLINE_RECT);else if(null!=this._tabHeaderRect&&this._tabHeaderRect.contains(e,i)){var a=void 0,l=void 0,h=void 0;if(0===this._children.length)l=(a=this._tabHeaderRect.clone()).y+3,h=a.height-4,a.width=2;else{var _=this._children[0];l=(a=_.getTabRect()).y,h=a.height;for(var p=this._tabHeaderRect.x,f=0,g=0;g<this._children.length;g++){if(f=(a=(_=this._children[g]).getTabRect()).x+a.width/2,e>=p&&e<f){n=s.DockLocation.CENTER,r=new c.Rect(a.x-2,l,3,h),o=new d.DropInfo(this,r,n,g,u.CLASSES.FLEXLAYOUT__OUTLINE_RECT);break}p=f}}null==o&&(n=s.DockLocation.CENTER,r=new c.Rect(a.getRight()-2,l,3,h),o=new d.DropInfo(this,r,n,this._children.length,u.CLASSES.FLEXLAYOUT__OUTLINE_RECT))}if(t._canDockInto(t,o))return o},e.prototype._layout=function(t,e){this.calculateHeaderBarHeight(e),this.calculateTabBarHeight(e),this.isMaximized()&&(t=this._model.getRoot().getRect()),t=t.removeInsets(this._getAttr("marginInsets")),this._rect=t,t=t.removeInsets(this._getAttr("borderInsets"));var i=0,o=0;void 0!==this.getName()&&(i+=this._calculatedHeaderBarHeight,o+=this._calculatedHeaderBarHeight),this.isEnableTabStrip()&&("top"===this.getTabLocation()?this._tabHeaderRect=new c.Rect(t.x,t.y+i,t.width,this._calculatedTabBarHeight):this._tabHeaderRect=new c.Rect(t.x,t.y+t.height-this._calculatedTabBarHeight,t.width,this._calculatedTabBarHeight),o+=this._calculatedTabBarHeight,"top"===this.getTabLocation()&&(i+=this._calculatedTabBarHeight)),this._contentRect=new c.Rect(t.x,t.y+i,t.width,t.height-o);for(var n=0;n<this._children.length;n++){var r=this._children[n];r._layout(this._contentRect,e),r._setVisible(n===this.getSelected())}},e.prototype._delete=function(){this._parent._removeChild(this)},e.prototype._remove=function(t){var e=this._removeChild(t);this._model._tidy(),(0,f.adjustSelectedIndex)(this,e)},e.prototype.drop=function(t,i,o,n){var r=i;if(this!==t){var a=t.getParent(),d=0;if(void 0!==a&&(d=a._removeChild(t),(0,f.adjustSelectedIndex)(a,d)),t.getType()===p.TabNode.TYPE&&a===this&&d<o&&o>0&&o--,r===s.DockLocation.CENTER){var l=o;if(-1===l&&(l=this._children.length),t.getType()===p.TabNode.TYPE)this._addChild(t,l),(n||!1!==n&&this.isAutoSelectTab())&&this._setSelected(l);else for(var c=0;c<t.getChildren().length;c++){var u=t.getChildren()[c];this._addChild(u,l),l++}this._model._setActiveTabset(this)}else{var h=void 0;if(t instanceof p.TabNode){var g=this._model._getOnCreateTabSet();(h=new e(this._model,g?g(t):{}))._addChild(t),a=h}else h=t;var T=this._parent,v=T.getChildren().indexOf(this);if(T.getOrientation()===r._orientation)h._setWeight(this.getWeight()/2),this._setWeight(this.getWeight()/2),T._addChild(h,v+r._indexPlus);else{var E=new _.RowNode(this._model,{});E._setWeight(this.getWeight()),E._addChild(this),this._setWeight(50),h._setWeight(50),E._addChild(h,r._indexPlus),T._removeChild(this),T._addChild(E,v)}this._model._setActiveTabset(h)}this._model._tidy()}},e.prototype.toJson=function(){var t={};return e._attributeDefinitions.toJson(t,this._attributes),t.children=this._children.map((function(t){return t.toJson()})),this.isActive()&&(t.active=!0),this.isMaximized()&&(t.maximized=!0),t},e.prototype._updateAttrs=function(t){e._attributeDefinitions.update(t,this._attributes)},e.prototype._getAttributeDefinitions=function(){return e._attributeDefinitions},e.prototype._getPrefSize=function(t){var e=this.getWidth();return t===l.Orientation.VERT&&(e=this.getHeight()),e},e.getAttributeDefinitions=function(){return e._attributeDefinitions},e.TYPE="tabset",e._attributeDefinitions=e._createAttributeDefinitions(),e}(h.Node);e.TabSetNode=g},494:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.adjustSelectedIndex=e.adjustSelectedIndexAfterDock=e.adjustSelectedIndexAfterFloat=void 0;var o=i(657),n=i(907);e.adjustSelectedIndexAfterFloat=function(t){var e=t.getParent();if(null!==e)if(e instanceof o.TabSetNode){for(var i=!1,r=0,a=e.getChildren(),s=0;s<a.length;s++){var d=a[s];if(d===t)i=!0;else if(!d.isFloating()&&(r=s,i))break}e._setSelected(r)}else e instanceof n.BorderNode&&e._setSelected(-1)},e.adjustSelectedIndexAfterDock=function(t){var e=t.getParent();if(null!==e&&(e instanceof o.TabSetNode||e instanceof n.BorderNode))for(var i=e.getChildren(),r=0;r<i.length;r++)if(i[r]===t)return void e._setSelected(r)},e.adjustSelectedIndex=function(t,e){if(void 0!==t&&(t.getType()===o.TabSetNode.TYPE||t.getType()===n.BorderNode.TYPE)){var i=t.getSelected();-1!==i&&(e===i&&t.getChildren().length>0?e>=t.getChildren().length&&t._setSelected(t.getChildren().length-1):e<i?t._setSelected(i-1):e>i||t._setSelected(-1))}}},898:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BorderButton=void 0;var o=i(899),n=i(306),r=i(920),a=i(359),s=i(138),d=i(398),l=i(258);e.BorderButton=function(t){var e=t.layout,i=t.node,c=t.selected,u=t.border,h=t.iconFactory,_=t.titleFactory,p=t.icons,f=t.path,g=o.useRef(null),T=o.useRef(null),v=function(t){(0,l.isAuxMouseEvent)(t)||e.getEditingTab()||e.dragStart(t,void 0,i,i.isEnableDrag(),b,y)},E=function(t){(0,l.isAuxMouseEvent)(t)&&e.auxMouseClick(i,t)},b=function(){e.doAction(r.Actions.selectTab(i.getId()))},y=function(t){},m=function(t){t.stopPropagation()};o.useLayoutEffect((function(){A(),e.getEditingTab()===i&&T.current.select()}));var A=function(){var t=e.getDomRect(),o=g.current.getBoundingClientRect();i._setTabRect(new a.Rect(o.left-t.left,o.top-t.top,o.width,o.height))},S=function(t){t.stopPropagation()},L=e.getClassName,O=L(d.CLASSES.FLEXLAYOUT__BORDER_BUTTON)+" "+L(d.CLASSES.FLEXLAYOUT__BORDER_BUTTON_+u);O+=c?" "+L(d.CLASSES.FLEXLAYOUT__BORDER_BUTTON__SELECTED):" "+L(d.CLASSES.FLEXLAYOUT__BORDER_BUTTON__UNSELECTED),void 0!==i.getClassName()&&(O+=" "+i.getClassName());var R=(0,l.getRenderStateEx)(e,i,h,_),N=R.content?o.createElement("div",{className:L(d.CLASSES.FLEXLAYOUT__BORDER_BUTTON_CONTENT)},R.content):null,D=R.leading?o.createElement("div",{className:L(d.CLASSES.FLEXLAYOUT__BORDER_BUTTON_LEADING)},R.leading):null;if(e.getEditingTab()===i&&(N=o.createElement("input",{ref:T,className:L(d.CLASSES.FLEXLAYOUT__TAB_BUTTON_TEXTBOX),"data-layout-path":f+"/textbox",type:"text",autoFocus:!0,defaultValue:i.getName(),onKeyDown:function(t){27===t.keyCode?e.setEditingTab(void 0):13===t.keyCode&&(e.setEditingTab(void 0),e.doAction(r.Actions.renameTab(i.getId(),t.target.value)))},onMouseDown:S,onTouchStart:S})),i.isEnableClose()){var w=e.i18nName(n.I18nLabel.Close_Tab);R.buttons.push(o.createElement("div",{key:"close","data-layout-path":f+"/button/close",title:w,className:L(d.CLASSES.FLEXLAYOUT__BORDER_BUTTON_TRAILING),onMouseDown:m,onClick:function(t){var o;o=i.getCloseType(),c||o===s.ICloseType.Always||o===s.ICloseType.Visible&&window.matchMedia&&window.matchMedia("(hover: hover) and (pointer: fine)").matches?e.doAction(r.Actions.deleteTab(i.getId())):b()},onTouchStart:m},"function"==typeof p.close?p.close(i):p.close))}return o.createElement("div",{ref:g,"data-layout-path":f,className:O,onMouseDown:v,onClick:E,onAuxClick:E,onContextMenu:function(t){e.showContextMenu(i,t)},onTouchStart:v,title:i.getHelpText()},D,N,R.buttons)}},851:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BorderTabSet=void 0;var o=i(899),n=i(95),r=i(898),a=i(119),s=i(920),d=i(306),l=i(953),c=i(327),u=i(398),h=i(258);e.BorderTabSet=function(t){for(var e=t.border,i=t.layout,_=t.iconFactory,p=t.titleFactory,f=t.icons,g=t.path,T=o.useRef(null),v=o.useRef(null),E=o.useRef(null),b=(0,l.useTabOverflow)(e,c.Orientation.flip(e.getOrientation()),T,E),y=b.selfRef,m=b.position,A=b.userControlledLeft,S=b.hiddenTabs,L=b.onMouseWheel,O=function(t){(0,h.isAuxMouseEvent)(t)&&i.auxMouseClick(e,t)},R=function(t){t.stopPropagation()},N=function(t){i.doAction(s.Actions.selectTab(t.node.getId())),A.current=!1},D=i.getClassName,w=e.getTabHeaderRect().styleWithPosition({}),B=[],C=function(t){var n=e.getSelected()===t,a=e.getChildren()[t];B.push(o.createElement(r.BorderButton,{layout:i,border:e.getLocation().getName(),node:a,path:g+"/tb"+t,key:a.getId(),selected:n,iconFactory:_,titleFactory:p,icons:f})),B.push(o.createElement("div",{key:"divider"+t,className:D(u.CLASSES.FLEXLAYOUT__BORDER_TAB_DIVIDER)}))},M=0;M<e.getChildren().length;M++)C(M);var x=D(u.CLASSES.FLEXLAYOUT__BORDER)+" "+D(u.CLASSES.FLEXLAYOUT__BORDER_+e.getLocation().getName());void 0!==e.getClassName()&&(x+=" "+e.getClassName());var I,U=[],F={headerContent:{},buttons:U,stickyButtons:[],headerButtons:[]};if(i.customizeTabSet(e,F),U=F.buttons,S.length>0){var z,P=i.i18nName(d.I18nLabel.Overflow_Menu_Tooltip);z="function"==typeof f.more?f.more(e,S):o.createElement(o.Fragment,null,f.more,o.createElement("div",{className:D(u.CLASSES.FLEXLAYOUT__TAB_BUTTON_OVERFLOW_COUNT)},S.length)),U.push(o.createElement("button",{key:"overflowbutton",ref:v,className:D(u.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON)+" "+D(u.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_OVERFLOW)+" "+D(u.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_OVERFLOW_+e.getLocation().getName()),title:P,onClick:function(t){var o=i.getShowOverflowMenu();if(void 0!==o)o(e,t,S,N);else{var n=v.current;(0,a.showPopup)(n,S,N,i,_,p)}t.stopPropagation()},onMouseDown:R,onTouchStart:R},z))}var Y=e.getSelected();if(-1!==Y){var X=e.getChildren()[Y];if(void 0!==X&&i.isSupportsPopout()&&X.isEnableFloat()&&!X.isFloating()){var H=i.i18nName(d.I18nLabel.Float_Tab);U.push(o.createElement("button",{key:"float",title:H,className:D(u.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON)+" "+D(u.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_FLOAT),onClick:function(t){var o=e.getChildren()[e.getSelected()];void 0!==o&&i.doAction(s.Actions.floatTab(o.getId())),t.stopPropagation()},onMouseDown:R,onTouchStart:R},"function"==typeof f.popout?f.popout(X):f.popout))}}I=o.createElement("div",{key:"toolbar",ref:T,className:D(u.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR)+" "+D(u.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_+e.getLocation().getName())},U),w=i.styleFont(w);var k,W=e.getBorderBarSize()-1;return k=e.getLocation()===n.DockLocation.LEFT?{right:W,height:W,top:m}:e.getLocation()===n.DockLocation.RIGHT?{left:W,height:W,top:m}:{height:W,left:m},o.createElement("div",{ref:y,dir:"ltr",style:w,className:x,"data-layout-path":g,onClick:O,onAuxClick:O,onContextMenu:function(t){i.showContextMenu(e,t)},onWheel:L},o.createElement("div",{style:{height:W},className:D(u.CLASSES.FLEXLAYOUT__BORDER_INNER)+" "+D(u.CLASSES.FLEXLAYOUT__BORDER_INNER_+e.getLocation().getName())},o.createElement("div",{style:k,className:D(u.CLASSES.FLEXLAYOUT__BORDER_INNER_TAB_CONTAINER)+" "+D(u.CLASSES.FLEXLAYOUT__BORDER_INNER_TAB_CONTAINER_+e.getLocation().getName())},B)),I)}},680:function(t,e,i){var o,n=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},o(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 i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorBoundary=void 0;var r=i(899),a=i(398),s=function(t){function e(e){var i=t.call(this,e)||this;return i.state={hasError:!1},i}return n(e,t),e.getDerivedStateFromError=function(t){return{hasError:!0}},e.prototype.componentDidCatch=function(t,e){console.debug(t),console.debug(e)},e.prototype.render=function(){return this.state.hasError?r.createElement("div",{className:a.CLASSES.FLEXLAYOUT__ERROR_BOUNDARY_CONTAINER},r.createElement("div",{className:a.CLASSES.FLEXLAYOUT__ERROR_BOUNDARY_CONTENT},this.props.message)):this.props.children},e}(r.Component);e.ErrorBoundary=s},633:function(t,e,i){var o=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var o,n=0,r=e.length;n<r;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.FloatingWindow=void 0;var n=i(899),r=i(994),a=i(398);e.FloatingWindow=function(t){var e=t.title,i=t.id,s=t.url,d=t.rect,l=t.onCloseWindow,c=t.onSetWindow,u=t.children,h=n.useRef(null),_=n.useState(void 0),p=_[0],f=_[1];return n.useLayoutEffect((function(){var t=d,n=Array.from(window.document.styleSheets).reduce((function(t,e){var i=void 0;try{i=e.cssRules}catch(t){}try{return o(o([],t,!0),[{href:e.href,type:e.type,rules:i?Array.from(i).map((function(t){return t.cssText})):null}],!1)}catch(e){return t}}),[]);return h.current=window.open(s,i,"left=".concat(t.x,",top=").concat(t.y,",width=").concat(t.width,",height=").concat(t.height)),null!==h.current?(c(i,h.current),window.addEventListener("beforeunload",(function(){h.current&&(h.current.close(),h.current=null)})),h.current.addEventListener("load",(function(){var t=h.current.document;t.title=e;var o=t.createElement("div");o.className=a.CLASSES.FLEXLAYOUT__FLOATING_WINDOW_CONTENT,t.body.appendChild(o),function(t,e){for(var i=t.head,o=[],n=function(e){if(e.href){var n=t.createElement("link");n.type=e.type,n.rel="stylesheet",n.href=e.href,i.appendChild(n),o.push(new Promise((function(t,e){n.onload=function(){return t(!0)}})))}else if(e.rules){for(var r=t.createElement("style"),a=0,s=e.rules;a<s.length;a++){var d=s[a];r.appendChild(t.createTextNode(d))}i.appendChild(r)}},r=0,a=e;r<a.length;r++)n(a[r]);return Promise.all(o)}(t,n).then((function(){f(o)})),h.current.addEventListener("beforeunload",(function(){l(i)}))}))):(console.warn("Unable to open window ".concat(s)),l(i)),function(){setTimeout((function(){h.current&&(h.current.close(),h.current=null)}),0)}}),[]),void 0!==p?(0,r.createPortal)(u,p):null}},544:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FloatingWindowTab=void 0;var o=i(899),n=i(680),r=i(306),a=i(899),s=i(398);e.FloatingWindowTab=function(t){var e=t.layout,i=t.node,d=t.factory,l=e.getClassName,c=d(i);return o.createElement("div",{className:l(s.CLASSES.FLEXLAYOUT__FLOATING_WINDOW_TAB)},o.createElement(n.ErrorBoundary,{message:t.layout.i18nName(r.I18nLabel.Error_rendering_component)},o.createElement(a.Fragment,null,c)))}},679:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RestoreIcon=e.PopoutIcon=e.OverflowIcon=e.MaximizeIcon=e.CloseIcon=void 0;var o=i(899),n={width:"1em",height:"1em",display:"flex",alignItems:"center"};e.CloseIcon=function(){return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:n,viewBox:"0 0 24 24"},o.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),o.createElement("path",{stroke:"gray",fill:"gray",d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}))},e.MaximizeIcon=function(){return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:n,viewBox:"0 0 24 24",fill:"gray"},o.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),o.createElement("path",{stroke:"gray",d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}))},e.OverflowIcon=function(){return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:n,viewBox:"0 0 24 24",fill:"gray"},o.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),o.createElement("path",{stroke:"gray",d:"M7 10l5 5 5-5z"}))},e.PopoutIcon=function(){return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:n,viewBox:"0 0 24 24",fill:"gray"},o.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),o.createElement("path",{stroke:"gray",d:"M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z"}))},e.RestoreIcon=function(){return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:n,viewBox:"0 0 24 24",fill:"gray"},o.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),o.createElement("path",{stroke:"gray",d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}))}},175:function(t,e,i){var o,n=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},o(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 i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},r.apply(this,arguments)},a=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var o,n=0,r=e.length;n<r;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Layout=void 0;var s=i(899),d=i(994),l=i(95),c=i(241),u=i(920),h=i(907),_=i(618),p=i(275),f=i(657),g=i(359),T=i(398),v=i(851),E=i(487),b=i(301),y=i(159),m=i(633),A=i(544),S=i(578),L=i(327),O=i(679),R=i(176),N={close:s.createElement(O.CloseIcon,null),closeTabset:s.createElement(O.CloseIcon,null),popout:s.createElement(O.PopoutIcon,null),maximize:s.createElement(O.MaximizeIcon,null),restore:s.createElement(O.RestoreIcon,null),more:s.createElement(O.OverflowIcon,null)},D="undefined"!=typeof window&&(window.document.documentMode||/Edge\//.test(window.navigator.userAgent)),w="undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(hover: hover) and (pointer: fine)").matches&&!D,B=function(t){function e(e){var i=t.call(this,e)||this;return i.firstMove=!1,i.dragRectRendered=!0,i.dragDivText=void 0,i.edgeRectLength=100,i.edgeRectWidth=10,i.edgesShown=!1,i.onModelChange=function(){i.forceUpdate(),i.props.onModelChange&&i.props.onModelChange(i.props.model)},i.updateRect=function(t){void 0===t&&(t=i.getDomRect());var e=new g.Rect(0,0,t.width,t.height);e.equals(i.state.rect)||0===e.width||0===e.height||i.setState({rect:e})},i.updateLayoutMetrics=function(){if(i.findHeaderBarSizeRef.current){var t=i.findHeaderBarSizeRef.current.getBoundingClientRect().height;t!==i.state.calculatedHeaderBarSize&&i.setState({calculatedHeaderBarSize:t})}if(i.findTabBarSizeRef.current){var e=i.findTabBarSizeRef.current.getBoundingClientRect().height;e!==i.state.calculatedTabBarSize&&i.setState({calculatedTabBarSize:e})}if(i.findBorderBarSizeRef.current){var o=i.findBorderBarSizeRef.current.getBoundingClientRect().height;o!==i.state.calculatedBorderBarSize&&i.setState({calculatedBorderBarSize:o})}},i.getClassName=function(t){return void 0===i.props.classNameMapper?t:i.props.classNameMapper(t)},i.onCloseWindow=function(t){i.doAction(u.Actions.unFloatTab(t));try{i.props.model.getNodeById(t)._setWindow(void 0)}catch(t){}},i.onSetWindow=function(t,e){i.props.model.getNodeById(t)._setWindow(e)},i.onCancelAdd=function(){var t,e;i.selfRef.current.removeChild(i.dragDiv),i.dragDiv=void 0,i.hidePortal(),null!=i.fnNewNodeDropped&&(i.fnNewNodeDropped(),i.fnNewNodeDropped=void 0);try{null===(e=null===(t=i.customDrop)||void 0===t?void 0:t.invalidated)||void 0===e||e.call(t)}catch(t){console.error(t)}c.DragDrop.instance.hideGlass(),i.newTabJson=void 0,i.customDrop=void 0},i.onCancelDrag=function(t){var e,o;if(t){var n=i.selfRef.current;try{n.removeChild(i.outlineDiv)}catch(t){}try{n.removeChild(i.dragDiv)}catch(t){}i.dragDiv=void 0,i.hidePortal(),i.hideEdges(n),null!=i.fnNewNodeDropped&&(i.fnNewNodeDropped(),i.fnNewNodeDropped=void 0);try{null===(o=null===(e=i.customDrop)||void 0===e?void 0:e.invalidated)||void 0===o||o.call(e)}catch(t){console.error(t)}c.DragDrop.instance.hideGlass(),i.newTabJson=void 0,i.customDrop=void 0}i.setState({showHiddenBorder:l.DockLocation.CENTER})},i.onDragDivMouseDown=function(t){t.preventDefault(),i.dragStart(t,i.dragDivText,p.TabNode._fromJson(i.newTabJson,i.props.model,!1),!0,void 0,void 0)},i.dragStart=function(t,e,o,n,r,a){n?(i.dragNode=o,i.dragDivText=e,c.DragDrop.instance.startDrag(t,i.onDragStart,i.onDragMove,i.onDragEnd,i.onCancelDrag,r,a,i.currentDocument,i.selfRef.current)):c.DragDrop.instance.startDrag(t,void 0,void 0,void 0,void 0,r,a,i.currentDocument,i.selfRef.current)},i.dragRectRender=function(t,e,o,n){var r;if(void 0!==t?r=s.createElement("div",{style:{whiteSpace:"pre"}},t.replace("<br>","\n")):e&&e instanceof p.TabNode&&(r=s.createElement(R.TabButtonStamp,{node:e,layout:i,iconFactory:i.props.iconFactory,titleFactory:i.props.titleFactory})),void 0!==i.props.onRenderDragRect){var a=i.props.onRenderDragRect(r,e,o);void 0!==a&&(r=a)}i.dragDiv.style.visibility="hidden",i.dragRectRendered=!1,i.showPortal(s.createElement(C,{onRendered:function(){i.dragRectRendered=!0,null==n||n()}},r),i.dragDiv)},i.showPortal=function(t,e){var o=d.createPortal(t,e);i.setState({portal:o})},i.hidePortal=function(){i.setState({portal:void 0})},i.onDragStart=function(){i.dropInfo=void 0,i.customDrop=void 0;var t=i.selfRef.current;return i.outlineDiv=i.currentDocument.createElement("div"),i.outlineDiv.className=i.getClassName(T.CLASSES.FLEXLAYOUT__OUTLINE_RECT),i.outlineDiv.style.visibility="hidden",t.appendChild(i.outlineDiv),null==i.dragDiv&&(i.dragDiv=i.currentDocument.createElement("div"),i.dragDiv.className=i.getClassName(T.CLASSES.FLEXLAYOUT__DRAG_RECT),i.dragDiv.setAttribute("data-layout-path","/drag-rectangle"),i.dragRectRender(i.dragDivText,i.dragNode,i.newTabJson),t.appendChild(i.dragDiv)),void 0===i.props.model.getMaximizedTabset()&&i.showEdges(t),void 0!==i.dragNode&&i.dragNode instanceof p.TabNode&&void 0!==i.dragNode.getTabRect()&&i.dragNode.getTabRect().positionElement(i.outlineDiv),i.firstMove=!0,!0},i.onDragMove=function(t){if(!1===i.firstMove){var e=i.props.model._getAttribute("tabDragSpeed");i.outlineDiv.style.transition="top ".concat(e,"s, left ").concat(e,"s, width ").concat(e,"s, height ").concat(e,"s")}i.firstMove=!1;var o=i.selfRef.current.getBoundingClientRect(),n={x:t.clientX-o.left,y:t.clientY-o.top};i.checkForBorderToShow(n.x,n.y);var r=i.dragDiv.getBoundingClientRect(),a=n.x-r.width/2;a+r.width>o.width&&(a=o.width-r.width),a=Math.max(0,a),i.dragDiv.style.left=a+"px",i.dragDiv.style.top=n.y+5+"px",i.dragRectRendered&&"hidden"===i.dragDiv.style.visibility&&(i.dragDiv.style.visibility="visible");var s=i.props.model._findDropTargetNode(i.dragNode,n.x,n.y);s&&(i.props.onTabDrag?i.handleCustomTabDrag(s,n,t):(i.dropInfo=s,i.outlineDiv.className=i.getClassName(s.className),s.rect.positionElement(i.outlineDiv),i.outlineDiv.style.visibility="visible"))},i.onDragEnd=function(t){var e=i.selfRef.current;if(e.removeChild(i.outlineDiv),e.removeChild(i.dragDiv),i.dragDiv=void 0,i.hidePortal(),i.hideEdges(e),c.DragDrop.instance.hideGlass(),i.dropInfo)if(i.customDrop){i.newTabJson=void 0;try{var o=i.customDrop;(0,o.callback)(o.dragging,o.over,o.x,o.y,o.location),null!=i.fnNewNodeDropped&&(i.fnNewNodeDropped(),i.fnNewNodeDropped=void 0)}catch(t){console.error(t)}}else if(void 0!==i.newTabJson){var n=i.doAction(u.Actions.addNode(i.newTabJson,i.dropInfo.node.getId(),i.dropInfo.location,i.dropInfo.index));null!=i.fnNewNodeDropped&&(i.fnNewNodeDropped(n,t),i.fnNewNodeDropped=void 0),i.newTabJson=void 0}else void 0!==i.dragNode&&i.doAction(u.Actions.moveNode(i.dragNode.getId(),i.dropInfo.node.getId(),i.dropInfo.location,i.dropInfo.index));i.setState({showHiddenBorder:l.DockLocation.CENTER})},i.props.model._setChangeListener(i.onModelChange),i.tabIds=[],i.selfRef=s.createRef(),i.findHeaderBarSizeRef=s.createRef(),i.findTabBarSizeRef=s.createRef(),i.findBorderBarSizeRef=s.createRef(),i.supportsPopout=void 0!==e.supportsPopout?e.supportsPopout:w,i.popoutURL=e.popoutURL?e.popoutURL:"popout.html",i.icons=r(r({},N),e.icons),i.firstRender=!0,i.state={rect:new g.Rect(0,0,0,0),calculatedHeaderBarSize:25,calculatedTabBarSize:26,calculatedBorderBarSize:30,editingTab:void 0,showHiddenBorder:l.DockLocation.CENTER},i.onDragEnter=i.onDragEnter.bind(i),i}return n(e,t),e.prototype.styleFont=function(t){return this.props.font&&(this.selfRef.current&&(this.props.font.size&&this.selfRef.current.style.setProperty("--font-size",this.props.font.size),this.props.font.family&&this.selfRef.current.style.setProperty("--font-family",this.props.font.family)),this.props.font.style&&(t.fontStyle=this.props.font.style),this.props.font.weight&&(t.fontWeight=this.props.font.weight)),t},e.prototype.doAction=function(t){if(void 0!==this.props.onAction){var e=this.props.onAction(t);return void 0!==e?this.props.model.doAction(e):void 0}return this.props.model.doAction(t)},e.prototype.componentDidMount=function(){var t=this;this.updateRect(),this.updateLayoutMetrics(),this.currentDocument=this.selfRef.current.ownerDocument,this.currentWindow=this.currentDocument.defaultView,this.resizeObserver=new ResizeObserver((function(e){t.updateRect(e[0].contentRect)})),this.resizeObserver.observe(this.selfRef.current)},e.prototype.componentDidUpdate=function(){this.updateLayoutMetrics(),this.props.model!==this.previousModel&&(void 0!==this.previousModel&&this.previousModel._setChangeListener(void 0),this.props.model._setChangeListener(this.onModelChange),this.previousModel=this.props.model)},e.prototype.getCurrentDocument=function(){return this.currentDocument},e.prototype.getDomRect=function(){return this.selfRef.current.getBoundingClientRect()},e.prototype.getRootDiv=function(){return this.selfRef.current},e.prototype.isSupportsPopout=function(){return this.supportsPopout},e.prototype.isRealtimeResize=function(){var t;return null!==(t=this.props.realtimeResize)&&void 0!==t&&t},e.prototype.onTabDrag=function(){for(var t,e,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return null===(e=(t=this.props).onTabDrag)||void 0===e?void 0:e.call.apply(e,a([t],i,!1))},e.prototype.getPopoutURL=function(){return this.popoutURL},e.prototype.componentWillUnmount=function(){var t;null===(t=this.resizeObserver)||void 0===t||t.unobserve(this.selfRef.current)},e.prototype.setEditingTab=function(t){this.setState({editingTab:t})},e.prototype.getEditingTab=function(){return this.state.editingTab},e.prototype.render=function(){if(this.firstRender)return this.firstRender=!1,s.createElement("div",{ref:this.selfRef,className:this.getClassName(T.CLASSES.FLEXLAYOUT__LAYOUT)},this.metricsElements());this.props.model._setPointerFine(window&&window.matchMedia&&window.matchMedia("(pointer: fine)").matches);var t=[],e=[],i=[],o={},n=[],r={headerBarSize:this.state.calculatedHeaderBarSize,tabBarSize:this.state.calculatedTabBarSize,borderBarSize:this.state.calculatedBorderBarSize};this.props.model._setShowHiddenBorder(this.state.showHiddenBorder),this.centerRect=this.props.model._layout(this.state.rect,r),this.renderBorder(this.props.model.getBorderSet(),t,o,i,n),this.renderChildren("",this.props.model.getRoot(),e,o,i,n),this.edgesShown&&this.repositionEdges(this.state.rect);for(var a=[],d={},l=0,c=this.tabIds;l<c.length;l++){var u=c[l];o[u]&&(a.push(u),d[u]=u)}this.tabIds=a;for(var h=0,_=Object.keys(o);h<_.length;h++)d[u=_[h]]||this.tabIds.push(u);return s.createElement("div",{ref:this.selfRef,className:this.getClassName(T.CLASSES.FLEXLAYOUT__LAYOUT),onDragEnter:this.props.onExternalDrag?this.onDragEnter:void 0},e,this.tabIds.map((function(t){return o[t]})),t,n,i,this.metricsElements(),this.state.portal)},e.prototype.metricsElements=function(){var t=this.styleFont({visibility:"hidden"});return s.createElement(s.Fragment,null,s.createElement("div",{key:"findHeaderBarSize",ref:this.findHeaderBarSizeRef,style:t,className:this.getClassName(T.CLASSES.FLEXLAYOUT__TABSET_HEADER_SIZER)},"FindHeaderBarSize"),s.createElement("div",{key:"findTabBarSize",ref:this.findTabBarSizeRef,style:t,className:this.getClassName(T.CLASSES.FLEXLAYOUT__TABSET_SIZER)},"FindTabBarSize"),s.createElement("div",{key:"findBorderBarSize",ref:this.findBorderBarSizeRef,style:t,className:this.getClassName(T.CLASSES.FLEXLAYOUT__BORDER_SIZER)},"FindBorderBarSize"))},e.prototype.renderBorder=function(t,e,i,o,n){for(var r=0,a=t.getBorders();r<a.length;r++){var d=a[r],l="/border/".concat(d.getLocation().getName());if(d.isShowing()){e.push(s.createElement(v.BorderTabSet,{key:"border_".concat(d.getLocation().getName()),path:l,border:d,layout:this,iconFactory:this.props.iconFactory,titleFactory:this.props.titleFactory,icons:this.icons}));for(var c=0,u=0,h=0,f=d._getDrawChildren();h<f.length;h++){var g=f[h];if(g instanceof _.SplitterNode){var T=l+"/s";n.push(s.createElement(E.Splitter,{key:g.getId(),layout:this,node:g,path:T}))}else if(g instanceof p.TabNode)if(T=l+"/t"+u++,this.supportsPopout&&g.isFloating()){var y=this._getScreenRect(g);o.push(s.createElement(m.FloatingWindow,{key:g.getId(),url:this.popoutURL,rect:y,title:g.getName(),id:g.getId(),onSetWindow:this.onSetWindow,onCloseWindow:this.onCloseWindow},s.createElement(A.FloatingWindowTab,{layout:this,node:g,factory:this.props.factory}))),i[g.getId()]=s.createElement(S.TabFloating,{key:g.getId(),layout:this,path:T,node:g,selected:c===d.getSelected()})}else i[g.getId()]=s.createElement(b.Tab,{key:g.getId(),layout:this,path:T,node:g,selected:c===d.getSelected(),factory:this.props.factory});c++}}}},e.prototype.renderChildren=function(t,e,i,o,n,r){for(var a=0,d=0,l=0,c=0,u=e._getDrawChildren();c<u.length;c++){var h=u[c];if(h instanceof _.SplitterNode){var g=t+"/s"+a++;r.push(s.createElement(E.Splitter,{key:h.getId(),layout:this,path:g,node:h}))}else if(h instanceof f.TabSetNode)g=t+"/ts"+l++,i.push(s.createElement(y.TabSet,{key:h.getId(),layout:this,path:g,node:h,iconFactory:this.props.iconFactory,titleFactory:this.props.titleFactory,icons:this.icons})),this.renderChildren(g,h,i,o,n,r);else if(h instanceof p.TabNode){g=t+"/t"+d++;var T=h.getParent().getChildren()[h.getParent().getSelected()];if(void 0===T&&console.warn("undefined selectedTab should not happen"),this.supportsPopout&&h.isFloating()){var v=this._getScreenRect(h);n.push(s.createElement(m.FloatingWindow,{key:h.getId(),url:this.popoutURL,rect:v,title:h.getName(),id:h.getId(),onSetWindow:this.onSetWindow,onCloseWindow:this.onCloseWindow},s.createElement(A.FloatingWindowTab,{layout:this,node:h,factory:this.props.factory}))),o[h.getId()]=s.createElement(S.TabFloating,{key:h.getId(),layout:this,path:g,node:h,selected:h===T})}else o[h.getId()]=s.createElement(b.Tab,{key:h.getId(),layout:this,path:g,node:h,selected:h===T,factory:this.props.factory})}else g=t+(h.getOrientation()===L.Orientation.HORZ?"/r":"/c")+l++,this.renderChildren(g,h,i,o,n,r)}},e.prototype._getScreenRect=function(t){var e=t.getRect().clone(),i=this.selfRef.current.getBoundingClientRect(),o=Math.min(80,this.currentWindow.outerHeight-this.currentWindow.innerHeight),n=Math.min(80,this.currentWindow.outerWidth-this.currentWindow.innerWidth);return e.x=e.x+i.x+this.currentWindow.screenX+n,e.y=e.y+i.y+this.currentWindow.screenY+o,e},e.prototype.addTabToTabSet=function(t,e){void 0!==this.props.model.getNodeById(t)&&this.doAction(u.Actions.addNode(e,t,l.DockLocation.CENTER,-1))},e.prototype.addTabToActiveTabSet=function(t){var e=this.props.model.getActiveTabset();void 0!==e&&this.doAction(u.Actions.addNode(t,e.getId(),l.DockLocation.CENTER,-1))},e.prototype.addTabWithDragAndDrop=function(t,e,i){this.fnNewNodeDropped=i,this.newTabJson=e,this.dragStart(void 0,t,p.TabNode._fromJson(e,this.props.model,!1),!0,void 0,void 0)},e.prototype.addTabWithDragAndDropIndirect=function(t,e,i){var o=this;this.fnNewNodeDropped=i,this.newTabJson=e,c.DragDrop.instance.addGlass(this.onCancelAdd),this.dragDivText=t,this.dragDiv=this.currentDocument.createElement("div"),this.dragDiv.className=this.getClassName(T.CLASSES.FLEXLAYOUT__DRAG_RECT),this.dragDiv.addEventListener("mousedown",this.onDragDivMouseDown),this.dragDiv.addEventListener("touchstart",this.onDragDivMouseDown),this.dragRectRender(this.dragDivText,void 0,this.newTabJson,(function(){if(o.dragDiv){o.dragDiv.style.visibility="visible";var t=o.dragDiv.getBoundingClientRect(),e=new g.Rect(0,0,null==t?void 0:t.width,null==t?void 0:t.height);e.centerInRect(o.state.rect),o.dragDiv.setAttribute("data-layout-path","/drag-rectangle"),o.dragDiv.style.left=e.x+"px",o.dragDiv.style.top=e.y+"px"}})),this.selfRef.current.appendChild(this.dragDiv)},e.prototype.handleCustomTabDrag=function(t,e,i){var o,n,r,a=this,s=null===(o=this.customDrop)||void 0===o?void 0:o.invalidated,d=null===(n=this.customDrop)||void 0===n?void 0:n.callback;this.customDrop=void 0;var l=this.newTabJson||(this.dragNode instanceof p.TabNode?this.dragNode:void 0);if(l&&(t.node instanceof f.TabSetNode||t.node instanceof h.BorderNode)&&-1===t.index){var u=t.node.getSelectedNode(),_=null==u?void 0:u.getRect();if(u&&(null==_?void 0:_.contains(e.x,e.y))){var v=void 0;try{var E=this.onTabDrag(l,u,e.x-_.x,e.y-_.y,t.location,(function(){return a.onDragMove(i)}));E&&(v={rect:new g.Rect(E.x+_.x,E.y+_.y,E.width,E.height),callback:E.callback,invalidated:E.invalidated,dragging:l,over:u,x:e.x-_.x,y:e.y-_.y,location:t.location,cursor:E.cursor})}catch(t){console.error(t)}(null==v?void 0:v.callback)===d&&(s=void 0),this.customDrop=v}}this.dropInfo=t,this.outlineDiv.className=this.getClassName(this.customDrop?T.CLASSES.FLEXLAYOUT__OUTLINE_RECT:t.className),this.customDrop?this.customDrop.rect.positionElement(this.outlineDiv):t.rect.positionElement(this.outlineDiv),c.DragDrop.instance.setGlassCursorOverride(null===(r=this.customDrop)||void 0===r?void 0:r.cursor),this.outlineDiv.style.visibility="visible";try{null==s||s()}catch(t){console.error(t)}},e.prototype.onDragEnter=function(t){if(!c.DragDrop.instance.isDragging()){var e=this.props.onExternalDrag(t);e&&(this.fnNewNodeDropped=e.onDrop,this.newTabJson=e.json,this.dragStart(t,e.dragText,p.TabNode._fromJson(e.json,this.props.model,!1),!0,void 0,void 0))}},e.prototype.checkForBorderToShow=function(t,e){var i=this.props.model._getOuterInnerRects().outer,o=i.getCenter(),n=this.edgeRectWidth,r=this.edgeRectLength/2,a=!1;this.props.model.isEnableEdgeDock()&&this.state.showHiddenBorder===l.DockLocation.CENTER&&(e>o.y-r&&e<o.y+r||t>o.x-r&&t<o.x+r)&&(a=!0);var s=l.DockLocation.CENTER;a||(t<=i.x+n?s=l.DockLocation.LEFT:t>=i.getRight()-n?s=l.DockLocation.RIGHT:e<=i.y+n?s=l.DockLocation.TOP:e>=i.getBottom()-n&&(s=l.DockLocation.BOTTOM)),s!==this.state.showHiddenBorder&&this.setState({showHiddenBorder:s})},e.prototype.showEdges=function(t){if(this.props.model.isEnableEdgeDock()){var e=this.edgeRectLength+"px",i="50px",o=this.edgeRectWidth+"px";this.edgeTopDiv=this.currentDocument.createElement("div"),this.edgeTopDiv.className=this.getClassName(T.CLASSES.FLEXLAYOUT__EDGE_RECT),this.edgeTopDiv.style.width=e,this.edgeTopDiv.style.height=o,this.edgeTopDiv.style.borderBottomLeftRadius=i,this.edgeTopDiv.style.borderBottomRightRadius=i,this.edgeLeftDiv=this.currentDocument.createElement("div"),this.edgeLeftDiv.className=this.getClassName(T.CLASSES.FLEXLAYOUT__EDGE_RECT),this.edgeLeftDiv.style.width=o,this.edgeLeftDiv.style.height=e,this.edgeLeftDiv.style.borderTopRightRadius=i,this.edgeLeftDiv.style.borderBottomRightRadius=i,this.edgeBottomDiv=this.currentDocument.createElement("div"),this.edgeBottomDiv.className=this.getClassName(T.CLASSES.FLEXLAYOUT__EDGE_RECT),this.edgeBottomDiv.style.width=e,this.edgeBottomDiv.style.height=o,this.edgeBottomDiv.style.borderTopLeftRadius=i,this.edgeBottomDiv.style.borderTopRightRadius=i,this.edgeRightDiv=this.currentDocument.createElement("div"),this.edgeRightDiv.className=this.getClassName(T.CLASSES.FLEXLAYOUT__EDGE_RECT),this.edgeRightDiv.style.width=o,this.edgeRightDiv.style.height=e,this.edgeRightDiv.style.borderTopLeftRadius=i,this.edgeRightDiv.style.borderBottomLeftRadius=i,this.repositionEdges(this.state.rect),t.appendChild(this.edgeTopDiv),t.appendChild(this.edgeLeftDiv),t.appendChild(this.edgeBottomDiv),t.appendChild(this.edgeRightDiv),this.edgesShown=!0}},e.prototype.repositionEdges=function(t){if(this.props.model.isEnableEdgeDock()){var e=this.centerRect;this.edgeTopDiv.style.top=e.y+"px",this.edgeTopDiv.style.left=e.x+(e.width-this.edgeRectLength)/2+"px",this.edgeLeftDiv.style.top=e.y+(e.height-this.edgeRectLength)/2+"px",this.edgeLeftDiv.style.left=e.x+"px",this.edgeBottomDiv.style.bottom=t.height-e.getBottom()+"px",this.edgeBottomDiv.style.left=e.x+(e.width-this.edgeRectLength)/2+"px",this.edgeRightDiv.style.top=e.y+(e.height-this.edgeRectLength)/2+"px",this.edgeRightDiv.style.right=t.width-e.getRight()+"px"}},e.prototype.hideEdges=function(t){if(this.props.model.isEnableEdgeDock())try{t.removeChild(this.edgeTopDiv),t.removeChild(this.edgeLeftDiv),t.removeChild(this.edgeBottomDiv),t.removeChild(this.edgeRightDiv)}catch(t){}this.edgesShown=!1},e.prototype.maximize=function(t){this.doAction(u.Actions.maximizeToggle(t.getId()))},e.prototype.customizeTab=function(t,e){this.props.onRenderTab&&this.props.onRenderTab(t,e)},e.prototype.customizeTabSet=function(t,e){this.props.onRenderTabSet&&this.props.onRenderTabSet(t,e)},e.prototype.i18nName=function(t,e){var i;return this.props.i18nMapper&&(i=this.props.i18nMapper(t,e)),void 0===i&&(i=t+(void 0===e?"":e)),i},e.prototype.getOnRenderFloatingTabPlaceholder=function(){return this.props.onRenderFloatingTabPlaceholder},e.prototype.getShowOverflowMenu=function(){return this.props.onShowOverflowMenu},e.prototype.getTabSetPlaceHolderCallback=function(){return this.props.onTabSetPlaceHolder},e.prototype.showContextMenu=function(t,e){this.props.onContextMenu&&this.props.onContextMenu(t,e)},e.prototype.auxMouseClick=function(t,e){this.props.onAuxMouseClick&&this.props.onAuxMouseClick(t,e)},e}(s.Component);e.Layout=B;var C=function(t){return s.useEffect((function(){var e;null===(e=t.onRendered)||void 0===e||e.call(t)}),[t]),s.createElement(s.Fragment,null,t.children)}},487:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Splitter=void 0;var o=i(899),n=i(241),r=i(920),a=i(907),s=i(327),d=i(398);e.Splitter=function(t){var e=t.layout,i=t.node,l=t.path,c=o.useRef([]),u=o.useRef(void 0),h=i.getParent(),_=function(t){n.DragDrop.instance.setGlassCursorOverride(i.getOrientation()===s.Orientation.HORZ?"ns-resize":"ew-resize"),n.DragDrop.instance.startDrag(t,f,g,v,p,void 0,void 0,e.getCurrentDocument(),e.getRootDiv()),c.current=h._getSplitterBounds(i,!0);var o=e.getRootDiv();u.current=e.getCurrentDocument().createElement("div"),u.current.style.position="absolute",u.current.className=e.getClassName(d.CLASSES.FLEXLAYOUT__SPLITTER_DRAG),u.current.style.cursor=i.getOrientation()===s.Orientation.HORZ?"ns-resize":"ew-resize";var r=i.getRect();i.getOrientation()===s.Orientation.VERT&&r.width<2?r.width=2:i.getOrientation()===s.Orientation.HORZ&&r.height<2&&(r.height=2),r.positionElement(u.current),o.appendChild(u.current)},p=function(t){e.getRootDiv().removeChild(u.current)},f=function(){return!0},g=function(t){var o=e.getDomRect(),n=t.clientX-o.left,r=t.clientY-o.top;u&&(i.getOrientation()===s.Orientation.HORZ?u.current.style.top=E(r-4)+"px":u.current.style.left=E(n-4)+"px"),e.isRealtimeResize()&&T()},T=function(){var t=0;if(u&&(t=i.getOrientation()===s.Orientation.HORZ?u.current.offsetTop:u.current.offsetLeft),h instanceof a.BorderNode){var o=h._calculateSplit(i,t);e.doAction(r.Actions.adjustBorderSplit(i.getParent().getId(),o))}else{var n=h._calculateSplit(i,t);void 0!==n&&e.doAction(r.Actions.adjustSplit(n))}},v=function(){T(),e.getRootDiv().removeChild(u.current)},E=function(t){var e=c.current,i=t;return t<e[0]&&(i=e[0]),t>e[1]&&(i=e[1]),i},b=e.getClassName,y=i.getRect(),m=y.styleWithPosition({cursor:i.getOrientation()===s.Orientation.HORZ?"ns-resize":"ew-resize"}),A=b(d.CLASSES.FLEXLAYOUT__SPLITTER)+" "+b(d.CLASSES.FLEXLAYOUT__SPLITTER_+i.getOrientation().getName());h instanceof a.BorderNode?A+=" "+b(d.CLASSES.FLEXLAYOUT__SPLITTER_BORDER):void 0!==i.getModel().getMaximizedTabset()&&(m.display="none");var S=i.getModel().getSplitterExtra();if(0===S)return o.createElement("div",{style:m,"data-layout-path":l,className:A,onTouchStart:_,onMouseDown:_});var L=y.clone();L.x=0,L.y=0,i.getOrientation()===s.Orientation.VERT?L.width+=S:L.height+=S;var O=L.styleWithPosition({cursor:i.getOrientation()===s.Orientation.HORZ?"ns-resize":"ew-resize"}),R=b(d.CLASSES.FLEXLAYOUT__SPLITTER_EXTRA);return o.createElement("div",{style:m,"data-layout-path":l,className:A},o.createElement("div",{style:O,className:R,onTouchStart:_,onMouseDown:_}))}},301:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Tab=void 0;var o=i(899),n=i(899),r=i(920),a=i(657),s=i(398),d=i(680),l=i(306),c=i(907),u=i(258);e.Tab=function(t){var e=t.layout,i=t.selected,h=t.node,_=t.factory,p=t.path,f=o.useState(!t.node.isEnableRenderOnDemand()||t.selected),g=f[0],T=f[1];o.useLayoutEffect((function(){!g&&i&&T(!0)}));var v,E=function(){var t=h.getParent();t.getType()===a.TabSetNode.TYPE&&(t.isActive()||e.doAction(r.Actions.setActiveTabset(t.getId())))},b=e.getClassName,y=h.getModel().isUseVisibility(),m=h.getParent(),A=h._styleWithPosition();i||(0,u.hideElement)(A,y),m instanceof a.TabSetNode&&(void 0===h.getModel().getMaximizedTabset()||m.isMaximized()||(0,u.hideElement)(A,y)),g&&(v=_(h));var S=b(s.CLASSES.FLEXLAYOUT__TAB);return m instanceof c.BorderNode&&(S+=" "+b(s.CLASSES.FLEXLAYOUT__TAB_BORDER),S+=" "+b(s.CLASSES.FLEXLAYOUT__TAB_BORDER_+m.getLocation().getName())),o.createElement("div",{className:S,"data-layout-path":p,onMouseDown:E,onTouchStart:E,style:A},o.createElement(d.ErrorBoundary,{message:t.layout.i18nName(l.I18nLabel.Error_rendering_component)},o.createElement(n.Fragment,null,v)))}},625:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TabButton=void 0;var o=i(899),n=i(306),r=i(920),a=i(359),s=i(138),d=i(398),l=i(258);e.TabButton=function(t){var e=t.layout,i=t.node,c=t.selected,u=t.iconFactory,h=t.titleFactory,_=t.icons,p=t.path,f=o.useRef(null),g=o.useRef(null),T=function(t){(0,l.isAuxMouseEvent)(t)||e.getEditingTab()||e.dragStart(t,void 0,i,i.isEnableDrag(),E,b)},v=function(t){(0,l.isAuxMouseEvent)(t)&&e.auxMouseClick(i,t)},E=function(){e.doAction(r.Actions.selectTab(i.getId()))},b=function(t){i.isEnableRename()&&y()},y=function(){e.setEditingTab(i),e.getCurrentDocument().body.addEventListener("mousedown",m),e.getCurrentDocument().body.addEventListener("touchstart",m)},m=function(t){t.target!==g.current&&(e.getCurrentDocument().body.removeEventListener("mousedown",m),e.getCurrentDocument().body.removeEventListener("touchstart",m),e.setEditingTab(void 0))},A=function(t){t.stopPropagation()};o.useLayoutEffect((function(){S(),e.getEditingTab()===i&&g.current.select()}));var S=function(){var t=e.getDomRect(),o=f.current.getBoundingClientRect();i._setTabRect(new a.Rect(o.left-t.left,o.top-t.top,o.width,o.height))},L=function(t){t.stopPropagation()},O=e.getClassName,R=i.getParent(),N=d.CLASSES.FLEXLAYOUT__TAB_BUTTON,D=O(N);D+=" "+O(N+"_"+R.getTabLocation()),D+=c?" "+O(N+"--selected"):" "+O(N+"--unselected"),void 0!==i.getClassName()&&(D+=" "+i.getClassName());var w=(0,l.getRenderStateEx)(e,i,u,h),B=w.content?o.createElement("div",{className:O(d.CLASSES.FLEXLAYOUT__TAB_BUTTON_CONTENT)},w.content):null,C=w.leading?o.createElement("div",{className:O(d.CLASSES.FLEXLAYOUT__TAB_BUTTON_LEADING)},w.leading):null;if(e.getEditingTab()===i&&(B=o.createElement("input",{ref:g,className:O(d.CLASSES.FLEXLAYOUT__TAB_BUTTON_TEXTBOX),"data-layout-path":p+"/textbox",type:"text",autoFocus:!0,defaultValue:i.getName(),onKeyDown:function(t){27===t.keyCode?e.setEditingTab(void 0):13===t.keyCode&&(e.setEditingTab(void 0),e.doAction(r.Actions.renameTab(i.getId(),t.target.value)))},onMouseDown:L,onTouchStart:L})),i.isEnableClose()){var M=e.i18nName(n.I18nLabel.Close_Tab);w.buttons.push(o.createElement("div",{key:"close","data-layout-path":p+"/button/close",title:M,className:O(d.CLASSES.FLEXLAYOUT__TAB_BUTTON_TRAILING),onMouseDown:A,onClick:function(t){var o;o=i.getCloseType(),c||o===s.ICloseType.Always||o===s.ICloseType.Visible&&window.matchMedia&&window.matchMedia("(hover: hover) and (pointer: fine)").matches?e.doAction(r.Actions.deleteTab(i.getId())):E()},onTouchStart:A},"function"==typeof _.close?_.close(i):_.close))}return o.createElement("div",{ref:f,"data-layout-path":p,className:D,onMouseDown:T,onClick:v,onAuxClick:v,onContextMenu:function(t){e.showContextMenu(i,t)},onTouchStart:T,title:i.getHelpText()},C,B,w.buttons)}},176:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TabButtonStamp=void 0;var o=i(899),n=i(398),r=i(258);e.TabButtonStamp=function(t){var e=t.layout,i=t.node,a=t.iconFactory,s=t.titleFactory,d=o.useRef(null),l=e.getClassName,c=l(n.CLASSES.FLEXLAYOUT__TAB_BUTTON_STAMP),u=(0,r.getRenderStateEx)(e,i,a,s),h=u.content?o.createElement("div",{className:l(n.CLASSES.FLEXLAYOUT__TAB_BUTTON_CONTENT)},u.content):i._getNameForOverflowMenu(),_=u.leading?o.createElement("div",{className:l(n.CLASSES.FLEXLAYOUT__TAB_BUTTON_LEADING)},u.leading):null;return o.createElement("div",{ref:d,className:c,title:i.getHelpText()},_,h)}},578:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TabFloating=void 0;var o=i(899),n=i(920),r=i(657),a=i(398),s=i(306),d=i(258);e.TabFloating=function(t){var e=t.layout,i=t.selected,l=t.node,c=t.path,u=function(){l.getWindow()&&l.getWindow().focus()},h=function(){e.doAction(n.Actions.unFloatTab(l.getId()))},_=function(){var t=l.getParent();t.getType()===r.TabSetNode.TYPE&&(t.isActive()||e.doAction(n.Actions.setActiveTabset(t.getId())))},p=e.getClassName,f=l.getParent(),g=l._styleWithPosition();i||(0,d.hideElement)(g,l.getModel().isUseVisibility()),f instanceof r.TabSetNode&&(void 0===l.getModel().getMaximizedTabset()||f.isMaximized()||(0,d.hideElement)(g,l.getModel().isUseVisibility()));var T=e.i18nName(s.I18nLabel.Floating_Window_Message),v=e.i18nName(s.I18nLabel.Floating_Window_Show_Window),E=e.i18nName(s.I18nLabel.Floating_Window_Dock_Window),b=e.getOnRenderFloatingTabPlaceholder();return b?o.createElement("div",{className:p(a.CLASSES.FLEXLAYOUT__TAB_FLOATING),onMouseDown:_,onTouchStart:_,style:g},b(h,u)):o.createElement("div",{className:p(a.CLASSES.FLEXLAYOUT__TAB_FLOATING),"data-layout-path":c,onMouseDown:_,onTouchStart:_,style:g},o.createElement("div",{className:p(a.CLASSES.FLEXLAYOUT__TAB_FLOATING_INNER)},o.createElement("div",null,T),o.createElement("div",null,o.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),u()}},v)),o.createElement("div",null,o.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),h()}},E))))}},953:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.useTabOverflow=void 0;var o=i(899),n=i(359),r=i(657),a=i(327);e.useTabOverflow=function(t,e,i,s){var d=o.useRef(!0),l=o.useRef(!1),c=o.useRef(new n.Rect(0,0,0,0)),u=o.useRef(null),h=o.useState(0),_=h[0],p=h[1],f=o.useRef(!1),g=o.useState([]),T=g[0],v=g[1],E=o.useRef(0);o.useLayoutEffect((function(){f.current=!1}),[t.getSelectedNode(),t.getRect().width,t.getRect().height]),o.useLayoutEffect((function(){S()})),o.useEffect((function(){var t=u.current;return t.addEventListener("wheel",b,{passive:!1}),function(){t.removeEventListener("wheel",b)}}),[]);var b=function(t){t.preventDefault()},y=function(t){return e===a.Orientation.HORZ?t.x:t.y},m=function(t){return e===a.Orientation.HORZ?t.getRight():t.getBottom()},A=function(t){return e===a.Orientation.HORZ?t.width:t.height},S=function(){!0===d.current&&(l.current=!1);var e=t instanceof r.TabSetNode?t.getRect():t.getTabHeaderRect(),o=t.getChildren()[t.getChildren().length-1],n=null===s.current?0:A(s.current.getBoundingClientRect());if(!0===d.current||0===E.current&&0!==T.length||e.width!==c.current.width||e.height!==c.current.height){E.current=T.length,c.current=e;var a=!(t instanceof r.TabSetNode)||!0===t.isEnableTabStrip(),u=m(e)-n;if(null!==i.current&&(u-=A(i.current.getBoundingClientRect())),a&&t.getChildren().length>0){if(0===T.length&&0===_&&m(o.getTabRect())+2<u)return;var h=0,g=t.getSelectedNode();if(g&&!f.current){var b=g.getTabRect(),S=y(b)-2,L=m(b)+2;A(b)+4>=u-y(e)?h=y(e)-S:(L>u||S<y(e))&&(S<y(e)&&(h=y(e)-S),L+h>u&&(h=u-L))}for(var O=Math.max(0,u-(m(o.getTabRect())+2+h)),R=Math.min(0,_+h+O),N=R-_,D=[],w=0;w<t.getChildren().length;w++){var B=t.getChildren()[w];(y(B.getTabRect())+N<y(e)||m(B.getTabRect())+N>u)&&D.push({node:B,index:w})}D.length>0&&(l.current=!0),d.current=!1,v(D),p(R)}}else d.current=!0};return{selfRef:u,position:_,userControlledLeft:f,hiddenTabs:T,onMouseWheel:function(t){var e=0;e=Math.abs(t.deltaX)>Math.abs(t.deltaY)?-t.deltaX:-t.deltaY,1===t.deltaMode&&(e*=40),p(_+e),f.current=!0,t.stopPropagation()},tabsTruncated:l.current}}},159:function(t,e,i){var o=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var o,n=0,r=e.length;n<r;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.TabSet=void 0;var n=i(899),r=i(306),a=i(920),s=i(119),d=i(625),l=i(953),c=i(327),u=i(398),h=i(258);e.TabSet=function(t){var e=t.node,i=t.layout,_=t.iconFactory,p=t.titleFactory,f=t.icons,g=t.path,T=n.useRef(null),v=n.useRef(null),E=n.useRef(null),b=n.useRef(null),y=(0,l.useTabOverflow)(e,c.Orientation.HORZ,T,b),m=y.selfRef,A=y.position,S=y.userControlledLeft,L=y.hiddenTabs,O=y.onMouseWheel,R=y.tabsTruncated,N=function(t){i.doAction(a.Actions.selectTab(t.node.getId())),S.current=!1},D=function(t){if(!(0,h.isAuxMouseEvent)(t)){var o=e.getName();if(o=void 0===o?"":": "+o,i.doAction(a.Actions.setActiveTabset(e.getId())),!i.getEditingTab()){var n=i.i18nName(r.I18nLabel.Move_Tabset,o);void 0!==e.getModel().getMaximizedTabset()?i.dragStart(t,n,e,!1,(function(t){}),M):i.dragStart(t,n,e,e.isEnableDrag(),(function(t){}),M)}}},w=function(t){(0,h.isAuxMouseEvent)(t)&&i.auxMouseClick(e,t)},B=function(t){i.showContextMenu(e,t)},C=function(t){t.stopPropagation()},M=function(t){e.canMaximize()&&i.maximize(e)},x=i.getClassName;null!==E.current&&0!==E.current.scrollLeft&&(E.current.scrollLeft=0);var I=e.getSelectedNode(),U=e._styleWithPosition();void 0===e.getModel().getMaximizedTabset()||e.isMaximized()||(0,h.hideElement)(U,e.getModel().isUseVisibility());var F=[];if(e.isEnableTabStrip())for(var z=0;z<e.getChildren().length;z++){var P=e.getChildren()[z],Y=e.getSelected()===z;F.push(n.createElement(d.TabButton,{layout:i,node:P,path:g+"/tb"+z,key:P.getId(),selected:Y,iconFactory:_,titleFactory:p,icons:f})),F.push(n.createElement("div",{key:"divider"+z,className:x(u.CLASSES.FLEXLAYOUT__TABSET_TAB_DIVIDER)}))}var X=void 0!==e.getName(),H=[],k=[],W=[],j={headerContent:e.getName(),stickyButtons:H,buttons:k,headerButtons:W};i.customizeTabSet(e,j);var G,V,J,Z=j.headerContent;if(k=j.buttons,W=j.headerButtons,(H=j.stickyButtons).length>0&&(R?k=o(o([],H,!0),k,!0):F.push(n.createElement("div",{ref:b,key:"sticky_buttons_container",onMouseDown:C,onTouchStart:C,onDragStart:function(t){t.preventDefault()},className:x(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_STICKY_BUTTONS_CONTAINER)},H))),L.length>0){var q,K=i.i18nName(r.I18nLabel.Overflow_Menu_Tooltip);q="function"==typeof f.more?f.more(e,L):n.createElement(n.Fragment,null,f.more,n.createElement("div",{className:x(u.CLASSES.FLEXLAYOUT__TAB_BUTTON_OVERFLOW_COUNT)},L.length)),k.push(n.createElement("button",{key:"overflowbutton","data-layout-path":g+"/button/overflow",ref:v,className:x(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON)+" "+x(u.CLASSES.FLEXLAYOUT__TAB_BUTTON_OVERFLOW),title:K,onClick:function(t){var o=i.getShowOverflowMenu();if(void 0!==o)o(e,t,L,N);else{var n=v.current;(0,s.showPopup)(n,L,N,i,_,p)}t.stopPropagation()},onMouseDown:C,onTouchStart:C},q))}if(void 0!==I&&i.isSupportsPopout()&&I.isEnableFloat()&&!I.isFloating()){var $=i.i18nName(r.I18nLabel.Float_Tab);k.push(n.createElement("button",{key:"float","data-layout-path":g+"/button/float",title:$,className:x(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON)+" "+x(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_FLOAT),onClick:function(t){void 0!==I&&i.doAction(a.Actions.floatTab(I.getId())),t.stopPropagation()},onMouseDown:C,onTouchStart:C},"function"==typeof f.popout?f.popout(I):f.popout))}if(e.canMaximize()){var Q=i.i18nName(r.I18nLabel.Restore),tt=i.i18nName(r.I18nLabel.Maximize);(X?W:k).push(n.createElement("button",{key:"max","data-layout-path":g+"/button/max",title:e.isMaximized()?Q:tt,className:x(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON)+" "+x(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_+(e.isMaximized()?"max":"min")),onClick:function(t){e.canMaximize()&&i.maximize(e),t.stopPropagation()},onMouseDown:C,onTouchStart:C},e.isMaximized()?"function"==typeof f.restore?f.restore(e):f.restore:"function"==typeof f.maximize?f.maximize(e):f.maximize))}if(!e.isMaximized()&&e.isEnableClose()){var et=i.i18nName(r.I18nLabel.Close_Tabset);(X?W:k).push(n.createElement("button",{key:"close","data-layout-path":g+"/button/close",title:et,className:x(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON)+" "+x(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_CLOSE),onClick:function(t){i.doAction(a.Actions.deleteTabset(e.getId())),t.stopPropagation()},onMouseDown:C,onTouchStart:C},"function"==typeof f.closeTabset?f.closeTabset(e):f.closeTabset))}G=n.createElement("div",{key:"toolbar",ref:T,className:x(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR),onMouseDown:C,onTouchStart:C,onDragStart:function(t){t.preventDefault()}},k);var it=x(u.CLASSES.FLEXLAYOUT__TABSET_TABBAR_OUTER);if(void 0!==e.getClassNameTabStrip()&&(it+=" "+e.getClassNameTabStrip()),it+=" "+u.CLASSES.FLEXLAYOUT__TABSET_TABBAR_OUTER_+e.getTabLocation(),e.isActive()&&!X&&(it+=" "+x(u.CLASSES.FLEXLAYOUT__TABSET_SELECTED)),e.isMaximized()&&!X&&(it+=" "+x(u.CLASSES.FLEXLAYOUT__TABSET_MAXIMIZED)),X){var ot=n.createElement("div",{key:"toolbar",ref:T,className:x(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR),onMouseDown:C,onTouchStart:C,onDragStart:function(t){t.preventDefault()}},W),nt=x(u.CLASSES.FLEXLAYOUT__TABSET_HEADER);e.isActive()&&(nt+=" "+x(u.CLASSES.FLEXLAYOUT__TABSET_SELECTED)),e.isMaximized()&&(nt+=" "+x(u.CLASSES.FLEXLAYOUT__TABSET_MAXIMIZED)),void 0!==e.getClassNameHeader()&&(nt+=" "+e.getClassNameHeader()),V=n.createElement("div",{className:nt,style:{height:e.getHeaderHeight()+"px"},"data-layout-path":g+"/header",onMouseDown:D,onContextMenu:B,onClick:w,onAuxClick:w,onTouchStart:D},n.createElement("div",{className:x(u.CLASSES.FLEXLAYOUT__TABSET_HEADER_CONTENT)},Z),ot)}var rt={height:e.getTabStripHeight()+"px"};J=n.createElement("div",{className:it,style:rt,"data-layout-path":g+"/tabstrip",onMouseDown:D,onContextMenu:B,onClick:w,onAuxClick:w,onTouchStart:D},n.createElement("div",{ref:E,className:x(u.CLASSES.FLEXLAYOUT__TABSET_TABBAR_INNER)+" "+x(u.CLASSES.FLEXLAYOUT__TABSET_TABBAR_INNER_+e.getTabLocation())},n.createElement("div",{style:{left:A},className:x(u.CLASSES.FLEXLAYOUT__TABSET_TABBAR_INNER_TAB_CONTAINER)+" "+x(u.CLASSES.FLEXLAYOUT__TABSET_TABBAR_INNER_TAB_CONTAINER_+e.getTabLocation())},F)),G),U=i.styleFont(U);var at=void 0;if(0===e.getChildren().length){var st=i.getTabSetPlaceHolderCallback();st&&(at=st(e))}var dt,lt=n.createElement("div",{className:x(u.CLASSES.FLEXLAYOUT__TABSET_CONTENT)},at);return dt="top"===e.getTabLocation()?n.createElement(n.Fragment,null,V,J,lt):n.createElement(n.Fragment,null,V,lt,J),n.createElement("div",{ref:m,dir:"ltr","data-layout-path":g,style:U,className:x(u.CLASSES.FLEXLAYOUT__TABSET),onWheel:O},dt)}},258:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isAuxMouseEvent=e.hideElement=e.getRenderStateEx=void 0;var o=i(899);e.getRenderStateEx=function(t,e,i,n){var r=i?i(e):void 0,a=e.getName(),s=e.getName();if(void 0!==n){var d=n(e);void 0!==d&&("string"==typeof d?(a=d,s=d):void 0!==d.titleContent?(a=d.titleContent,s=d.name):a=d)}void 0===r&&void 0!==e.getIcon()&&(r=o.createElement("img",{style:{width:"1em",height:"1em"},src:e.getIcon(),alt:"leadingContent"}));var l={leading:r,content:a,name:s,buttons:[]};return t.customizeTab(e,l),e._setRenderedName(l.name),l},e.hideElement=function(t,e){e?t.visibility="hidden":t.display="none"},e.isAuxMouseEvent=function(t){var e=!1;return t.nativeEvent instanceof MouseEvent&&(0!==t.nativeEvent.button||t.ctrlKey||t.altKey||t.metaKey||t.shiftKey)&&(e=!0),e}},899:e=>{e.exports=t},994:t=>{t.exports=e}},o={};function n(t){var e=o[t];if(void 0!==e)return e.exports;var r=o[t]={exports:{}};return i[t].call(r.exports,r,r.exports,n),r.exports}return n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n(607)})()}));
Binary file
@@ -24,7 +24,7 @@ var useTabOverflow = function (node, orientation, toolbarRef, stickyButtonsRef)
24
24
  });
25
25
  React.useEffect(function () {
26
26
  var instance = selfRef.current;
27
- instance.addEventListener('wheel', onWheel);
27
+ instance.addEventListener('wheel', onWheel, { passive: false });
28
28
  return function () {
29
29
  instance.removeEventListener('wheel', onWheel);
30
30
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TabOverflowHook.js","sourceRoot":"","sources":["../../src/view/TabOverflowHook.tsx"],"names":[],"mappings":";;;AAAA,6BAA+B;AAE/B,gCAA+B;AAC/B,kDAAiD;AAEjD,8CAA6C;AAE7C,gBAAgB;AACT,IAAM,cAAc,GAAG,UAC1B,IAA6B,EAC7B,WAAwB,EACxB,UAAyD,EACzD,gBAA+D;IAE/D,IAAM,WAAW,GAAG,KAAK,CAAC,MAAM,CAAU,IAAI,CAAC,CAAC;IAChD,IAAM,aAAa,GAAG,KAAK,CAAC,MAAM,CAAU,KAAK,CAAC,CAAC;IACnD,IAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAO,IAAI,WAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAC1D,IAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAwB,IAAI,CAAC,CAAC;IAEpD,IAAA,KAA0B,KAAK,CAAC,QAAQ,CAAS,CAAC,CAAC,EAAlD,QAAQ,QAAA,EAAE,WAAW,QAA6B,CAAC;IAC1D,IAAM,kBAAkB,GAAG,KAAK,CAAC,MAAM,CAAU,KAAK,CAAC,CAAC;IAClD,IAAA,KAA8B,KAAK,CAAC,QAAQ,CAAqC,EAAE,CAAC,EAAnF,UAAU,QAAA,EAAE,aAAa,QAA0D,CAAC;IAC3F,IAAM,eAAe,GAAG,KAAK,CAAC,MAAM,CAAS,CAAC,CAAC,CAAC;IAEhD,sHAAsH;IACtH,KAAK,CAAC,eAAe,CAAC;QAClB,kBAAkB,CAAC,OAAO,GAAG,KAAK,CAAC;IACvC,CAAC,EAAE,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAE1E,KAAK,CAAC,eAAe,CAAC;QAClB,iBAAiB,EAAE,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,KAAK,CAAC,SAAS,CAAC;QACZ,IAAM,QAAQ,GAAG,OAAO,CAAC,OAAQ,CAAC;QAClC,QAAQ,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAC5C,OAAO;YACH,QAAQ,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACnD,CAAC,CAAA;IACL,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,yFAAyF;IACzF,IAAM,OAAO,GAAG,UAAC,KAAY;QACzB,KAAK,CAAC,cAAc,EAAE,CAAC;IAC3B,CAAC,CAAC;IAEF,IAAM,OAAO,GAAG,UAAC,IAAU;QACvB,IAAI,WAAW,KAAK,yBAAW,CAAC,IAAI,EAAE;YAClC,OAAO,IAAI,CAAC,CAAC,CAAC;SACjB;aAAM;YACH,OAAO,IAAI,CAAC,CAAC,CAAC;SACjB;IACL,CAAC,CAAC;IAEF,IAAM,MAAM,GAAG,UAAC,IAAU;QACtB,IAAI,WAAW,KAAK,yBAAW,CAAC,IAAI,EAAE;YAClC,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;SAC1B;aAAM;YACH,OAAO,IAAI,CAAC,SAAS,EAAE,CAAC;SAC3B;IACL,CAAC,CAAC;IAEF,IAAM,OAAO,GAAG,UAAC,IAAoB;QACjC,IAAI,WAAW,KAAK,yBAAW,CAAC,IAAI,EAAE;YAClC,OAAO,IAAI,CAAC,KAAK,CAAC;SACrB;aAAM;YACH,OAAO,IAAI,CAAC,MAAM,CAAC;SACtB;IACL,CAAC,CAAC;IAEF,IAAM,iBAAiB,GAAG;QACtB,IAAM,SAAS,GAAG,CAAC,CAAC;QACpB,IAAI,WAAW,CAAC,OAAO,KAAK,IAAI,EAAE;YAC9B,aAAa,CAAC,OAAO,GAAG,KAAK,CAAC;SACjC;QACD,IAAM,QAAQ,GAAG,IAAI,YAAY,uBAAU,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAE,IAAmB,CAAC,gBAAgB,EAAG,CAAC;QACxG,IAAI,SAAS,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,MAAM,GAAG,CAAC,CAAY,CAAC;QAC7E,IAAM,iBAAiB,GAAG,gBAAgB,CAAC,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,OAAQ,CAAC,qBAAqB,EAAE,CAAC,CAAC;QAE7H,IACI,WAAW,CAAC,OAAO,KAAK,IAAI;YAC5B,CAAC,eAAe,CAAC,OAAO,KAAK,CAAC,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,CAAC;YAC1D,QAAQ,CAAC,KAAK,KAAK,QAAQ,CAAC,OAAO,CAAC,KAAK,IAAI,sDAAsD;YACnG,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,OAAO,CAAC,MAAM,EAC7C;YACE,eAAe,CAAC,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC;YAC5C,QAAQ,CAAC,OAAO,GAAG,QAAQ,CAAC;YAC5B,IAAM,OAAO,GAAG,IAAI,YAAY,uBAAU,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,EAAE,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;YACrF,IAAI,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,iBAAiB,CAAC;YAClD,IAAI,UAAU,CAAC,OAAO,KAAK,IAAI,EAAE;gBAC7B,MAAM,IAAI,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,qBAAqB,EAAE,CAAC,CAAC;aACjE;YACD,IAAI,OAAO,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE;gBAC1C,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,IAAI,QAAQ,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,UAAU,EAAG,CAAC,GAAG,SAAS,GAAG,MAAM,EAAE;oBACnG,OAAO,CAAC,sDAAsD;iBACjE;gBAED,IAAI,QAAQ,GAAG,CAAC,CAAC;gBAEjB,IAAM,WAAW,GAAG,IAAI,CAAC,eAAe,EAAa,CAAC;gBACtD,IAAI,WAAW,IAAI,CAAC,kBAAkB,CAAC,OAAO,EAAE;oBAC5C,IAAM,YAAY,GAAG,WAAW,CAAC,UAAU,EAAG,CAAC;oBAC/C,IAAM,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;oBACxD,IAAM,WAAW,GAAG,MAAM,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;oBAErD,mEAAmE;oBACnE,IAAI,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,SAAS,IAAI,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,EAAE;wBACrE,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,aAAa,CAAC;qBAChD;yBAAM;wBACH,IAAI,WAAW,GAAG,MAAM,IAAI,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC,EAAE;4BAC3D,IAAI,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC,EAAE;gCACnC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,aAAa,CAAC;6BAChD;4BACD,sGAAsG;4BACtG,IAAI,WAAW,GAAG,QAAQ,GAAG,MAAM,EAAE;gCACjC,QAAQ,GAAG,MAAM,GAAG,WAAW,CAAC;6BACnC;yBACJ;qBACJ;iBACJ;gBAED,IAAM,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,EAAG,CAAC,GAAG,SAAS,GAAG,QAAQ,CAAC,CAAC,CAAC;gBAClG,IAAM,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC,CAAC;gBAElE,mBAAmB;gBACnB,IAAM,IAAI,GAAG,WAAW,GAAG,QAAQ,CAAC;gBACpC,IAAM,MAAM,GAAuC,EAAE,CAAC;gBACtD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;oBAChD,IAAM,KAAK,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAY,CAAC;oBAC/C,IAAI,OAAO,CAAC,KAAK,CAAC,UAAU,EAAG,CAAC,GAAG,IAAI,GAAG,OAAO,CAAC,QAAS,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,UAAU,EAAG,CAAC,GAAG,IAAI,GAAG,MAAM,EAAE;wBACzG,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;qBAC1C;iBACJ;gBAED,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;oBACnB,aAAa,CAAC,OAAO,GAAG,IAAI,CAAC;iBAChC;gBAED,WAAW,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC,6BAA6B;gBAC1D,aAAa,CAAC,MAAM,CAAC,CAAC;gBACtB,WAAW,CAAC,WAAW,CAAC,CAAC;aAC5B;SACJ;aAAM;YACH,WAAW,CAAC,OAAO,GAAG,IAAI,CAAC;SAC9B;IACL,CAAC,CAAC;IAEF,IAAM,YAAY,GAAG,UAAC,KAAuC;QACzD,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;YACjD,KAAK,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC;SACzB;aAAM;YACH,KAAK,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC;SACzB;QACD,IAAI,KAAK,CAAC,SAAS,KAAK,CAAC,EAAE;YACvB,+DAA+D;YAC/D,KAAK,IAAI,EAAE,CAAC;SACf;QACD,WAAW,CAAC,QAAQ,GAAG,KAAK,CAAC,CAAC;QAC9B,kBAAkB,CAAC,OAAO,GAAG,IAAI,CAAC;QAClC,KAAK,CAAC,eAAe,EAAE,CAAC;IAC5B,CAAC,CAAC;IAEF,OAAO,EAAE,OAAO,SAAA,EAAE,QAAQ,UAAA,EAAE,kBAAkB,oBAAA,EAAE,UAAU,YAAA,EAAE,YAAY,cAAA,EAAE,aAAa,EAAE,aAAa,CAAC,OAAO,EAAE,CAAC;AACrH,CAAC,CAAC;AA5JW,QAAA,cAAc,kBA4JzB"}
1
+ {"version":3,"file":"TabOverflowHook.js","sourceRoot":"","sources":["../../src/view/TabOverflowHook.tsx"],"names":[],"mappings":";;;AAAA,6BAA+B;AAE/B,gCAA+B;AAC/B,kDAAiD;AAEjD,8CAA6C;AAE7C,gBAAgB;AACT,IAAM,cAAc,GAAG,UAC1B,IAA6B,EAC7B,WAAwB,EACxB,UAAyD,EACzD,gBAA+D;IAE/D,IAAM,WAAW,GAAG,KAAK,CAAC,MAAM,CAAU,IAAI,CAAC,CAAC;IAChD,IAAM,aAAa,GAAG,KAAK,CAAC,MAAM,CAAU,KAAK,CAAC,CAAC;IACnD,IAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAO,IAAI,WAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAC1D,IAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAwB,IAAI,CAAC,CAAC;IAEpD,IAAA,KAA0B,KAAK,CAAC,QAAQ,CAAS,CAAC,CAAC,EAAlD,QAAQ,QAAA,EAAE,WAAW,QAA6B,CAAC;IAC1D,IAAM,kBAAkB,GAAG,KAAK,CAAC,MAAM,CAAU,KAAK,CAAC,CAAC;IAClD,IAAA,KAA8B,KAAK,CAAC,QAAQ,CAAqC,EAAE,CAAC,EAAnF,UAAU,QAAA,EAAE,aAAa,QAA0D,CAAC;IAC3F,IAAM,eAAe,GAAG,KAAK,CAAC,MAAM,CAAS,CAAC,CAAC,CAAC;IAEhD,sHAAsH;IACtH,KAAK,CAAC,eAAe,CAAC;QAClB,kBAAkB,CAAC,OAAO,GAAG,KAAK,CAAC;IACvC,CAAC,EAAE,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAE1E,KAAK,CAAC,eAAe,CAAC;QAClB,iBAAiB,EAAE,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,KAAK,CAAC,SAAS,CAAC;QACZ,IAAM,QAAQ,GAAG,OAAO,CAAC,OAAQ,CAAC;QAClC,QAAQ,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;QAChE,OAAO;YACH,QAAQ,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACnD,CAAC,CAAA;IACL,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,yFAAyF;IACzF,IAAM,OAAO,GAAG,UAAC,KAAY;QACzB,KAAK,CAAC,cAAc,EAAE,CAAC;IAC3B,CAAC,CAAC;IAEF,IAAM,OAAO,GAAG,UAAC,IAAU;QACvB,IAAI,WAAW,KAAK,yBAAW,CAAC,IAAI,EAAE;YAClC,OAAO,IAAI,CAAC,CAAC,CAAC;SACjB;aAAM;YACH,OAAO,IAAI,CAAC,CAAC,CAAC;SACjB;IACL,CAAC,CAAC;IAEF,IAAM,MAAM,GAAG,UAAC,IAAU;QACtB,IAAI,WAAW,KAAK,yBAAW,CAAC,IAAI,EAAE;YAClC,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;SAC1B;aAAM;YACH,OAAO,IAAI,CAAC,SAAS,EAAE,CAAC;SAC3B;IACL,CAAC,CAAC;IAEF,IAAM,OAAO,GAAG,UAAC,IAAoB;QACjC,IAAI,WAAW,KAAK,yBAAW,CAAC,IAAI,EAAE;YAClC,OAAO,IAAI,CAAC,KAAK,CAAC;SACrB;aAAM;YACH,OAAO,IAAI,CAAC,MAAM,CAAC;SACtB;IACL,CAAC,CAAC;IAEF,IAAM,iBAAiB,GAAG;QACtB,IAAM,SAAS,GAAG,CAAC,CAAC;QACpB,IAAI,WAAW,CAAC,OAAO,KAAK,IAAI,EAAE;YAC9B,aAAa,CAAC,OAAO,GAAG,KAAK,CAAC;SACjC;QACD,IAAM,QAAQ,GAAG,IAAI,YAAY,uBAAU,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAE,IAAmB,CAAC,gBAAgB,EAAG,CAAC;QACxG,IAAI,SAAS,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,MAAM,GAAG,CAAC,CAAY,CAAC;QAC7E,IAAM,iBAAiB,GAAG,gBAAgB,CAAC,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,OAAQ,CAAC,qBAAqB,EAAE,CAAC,CAAC;QAE7H,IACI,WAAW,CAAC,OAAO,KAAK,IAAI;YAC5B,CAAC,eAAe,CAAC,OAAO,KAAK,CAAC,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,CAAC;YAC1D,QAAQ,CAAC,KAAK,KAAK,QAAQ,CAAC,OAAO,CAAC,KAAK,IAAI,sDAAsD;YACnG,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,OAAO,CAAC,MAAM,EAC7C;YACE,eAAe,CAAC,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC;YAC5C,QAAQ,CAAC,OAAO,GAAG,QAAQ,CAAC;YAC5B,IAAM,OAAO,GAAG,IAAI,YAAY,uBAAU,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,EAAE,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;YACrF,IAAI,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,iBAAiB,CAAC;YAClD,IAAI,UAAU,CAAC,OAAO,KAAK,IAAI,EAAE;gBAC7B,MAAM,IAAI,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,qBAAqB,EAAE,CAAC,CAAC;aACjE;YACD,IAAI,OAAO,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE;gBAC1C,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,IAAI,QAAQ,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,UAAU,EAAG,CAAC,GAAG,SAAS,GAAG,MAAM,EAAE;oBACnG,OAAO,CAAC,sDAAsD;iBACjE;gBAED,IAAI,QAAQ,GAAG,CAAC,CAAC;gBAEjB,IAAM,WAAW,GAAG,IAAI,CAAC,eAAe,EAAa,CAAC;gBACtD,IAAI,WAAW,IAAI,CAAC,kBAAkB,CAAC,OAAO,EAAE;oBAC5C,IAAM,YAAY,GAAG,WAAW,CAAC,UAAU,EAAG,CAAC;oBAC/C,IAAM,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;oBACxD,IAAM,WAAW,GAAG,MAAM,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;oBAErD,mEAAmE;oBACnE,IAAI,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,SAAS,IAAI,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,EAAE;wBACrE,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,aAAa,CAAC;qBAChD;yBAAM;wBACH,IAAI,WAAW,GAAG,MAAM,IAAI,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC,EAAE;4BAC3D,IAAI,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC,EAAE;gCACnC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,aAAa,CAAC;6BAChD;4BACD,sGAAsG;4BACtG,IAAI,WAAW,GAAG,QAAQ,GAAG,MAAM,EAAE;gCACjC,QAAQ,GAAG,MAAM,GAAG,WAAW,CAAC;6BACnC;yBACJ;qBACJ;iBACJ;gBAED,IAAM,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,EAAG,CAAC,GAAG,SAAS,GAAG,QAAQ,CAAC,CAAC,CAAC;gBAClG,IAAM,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC,CAAC;gBAElE,mBAAmB;gBACnB,IAAM,IAAI,GAAG,WAAW,GAAG,QAAQ,CAAC;gBACpC,IAAM,MAAM,GAAuC,EAAE,CAAC;gBACtD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;oBAChD,IAAM,KAAK,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAY,CAAC;oBAC/C,IAAI,OAAO,CAAC,KAAK,CAAC,UAAU,EAAG,CAAC,GAAG,IAAI,GAAG,OAAO,CAAC,QAAS,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,UAAU,EAAG,CAAC,GAAG,IAAI,GAAG,MAAM,EAAE;wBACzG,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;qBAC1C;iBACJ;gBAED,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;oBACnB,aAAa,CAAC,OAAO,GAAG,IAAI,CAAC;iBAChC;gBAED,WAAW,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC,6BAA6B;gBAC1D,aAAa,CAAC,MAAM,CAAC,CAAC;gBACtB,WAAW,CAAC,WAAW,CAAC,CAAC;aAC5B;SACJ;aAAM;YACH,WAAW,CAAC,OAAO,GAAG,IAAI,CAAC;SAC9B;IACL,CAAC,CAAC;IAEF,IAAM,YAAY,GAAG,UAAC,KAAuC;QACzD,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;YACjD,KAAK,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC;SACzB;aAAM;YACH,KAAK,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC;SACzB;QACD,IAAI,KAAK,CAAC,SAAS,KAAK,CAAC,EAAE;YACvB,+DAA+D;YAC/D,KAAK,IAAI,EAAE,CAAC;SACf;QACD,WAAW,CAAC,QAAQ,GAAG,KAAK,CAAC,CAAC;QAC9B,kBAAkB,CAAC,OAAO,GAAG,IAAI,CAAC;QAClC,KAAK,CAAC,eAAe,EAAE,CAAC;IAC5B,CAAC,CAAC;IAEF,OAAO,EAAE,OAAO,SAAA,EAAE,QAAQ,UAAA,EAAE,kBAAkB,oBAAA,EAAE,UAAU,YAAA,EAAE,YAAY,cAAA,EAAE,aAAa,EAAE,aAAa,CAAC,OAAO,EAAE,CAAC;AACrH,CAAC,CAAC;AA5JW,QAAA,cAAc,kBA4JzB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flexlayout-react",
3
- "version": "0.6.9",
3
+ "version": "0.6.10",
4
4
  "description": "A multi-tab docking layout manager",
5
5
  "main": "lib/index.js",
6
6
  "types": "./declarations/index.d.ts",
@@ -33,7 +33,7 @@ export const useTabOverflow = (
33
33
 
34
34
  React.useEffect(() => {
35
35
  const instance = selfRef.current!;
36
- instance.addEventListener('wheel', onWheel);
36
+ instance.addEventListener('wheel', onWheel, { passive: false });
37
37
  return () => {
38
38
  instance.removeEventListener('wheel', onWheel);
39
39
  }