From 9839435d445d141fe99695d044b0760b406d3af1 Mon Sep 17 00:00:00 2001 From: nimadez <111365948+nimadez@users.noreply.github.com> Date: Sat, 16 Nov 2024 22:26:10 +0330 Subject: [PATCH] Update 4.5.8 --- package.json | 6 +++--- src/index.html | 14 ++++++------- src/libs/babylon.gui.min.js | 2 +- src/libs/babylon.inspector.bundle.js | 2 +- src/libs/babylon.js | 2 +- src/libs/babylonjs.loaders.min.js | 2 +- src/libs/three-mesh-bvh.js | 7 ++++--- src/main.js | 2 +- src/modules/core.js | 31 +++++++++++++++------------- src/modules/interfaces/panels.js | 9 ++++++-- src/modules/sandbox/sandbox.js | 4 ++-- 11 files changed, 45 insertions(+), 36 deletions(-) diff --git a/package.json b/package.json index 015035d9..9cba2ad1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "voxel-builder", - "version": "4.5.7", + "version": "4.5.8", "description": "Voxel-based 3D modeling application", "main": "electron.js", "scripts": { @@ -11,9 +11,9 @@ "license": "MIT", "devDependencies": { "electron": "^30.0.0", - "babylonjs": "^7.32.0", + "babylonjs": "^7.33.0", "three": "^0.170.0", - "three-mesh-bvh": "^0.8.2", + "three-mesh-bvh": "^0.8.3", "three-gpu-pathtracer": "^0.0.23", "@tweenjs/tween.js": "^25.0.0" } diff --git a/src/index.html b/src/index.html index 21ddcaad..e30e5fd0 100644 --- a/src/index.html +++ b/src/index.html @@ -83,7 +83,7 @@ ul { list-style-type: none; } ul li { font-family: var(--font); font-size: var(--font-size); color: var(--btn-color); border-radius: 2px; text-align: center; } ul li:hover, .tool_selector, .tool_mesh_selector { background: orange; color: #444; box-shadow: inset 10px 10px 10px var(--btn-shadow); } - #introscreen { z-index: 99999; display: unset; background: #1C2128; position: absolute; width: 100%; height: 100%; } + #introscreen { z-index: 99999; display: unset; position: absolute; width: 100%; height: 100%; } #introscreen .logo { width: fit-content; padding: 10px 15px 10px 15px; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); border-radius: 10px; text-align: center; } #introscreen .logo img { width: 192px; height: 192px; image-rendering: optimizeQuality; } #canvas { z-index: 0; pointer-events: none; background: #3c4253; position: absolute; width: 100%; height: 100%; } @@ -159,7 +159,7 @@ #menu-inscreen-export button { width: 68px; height: 32px; font-size: 11px; } #colorpicker { z-index: 500; width: 45px; height: 32px; } #colorpicker :first-child { height: 32px; } - #info { z-index: 2; display: none; color: var(--info-color); letter-spacing: 0.06em; text-shadow: var(--text-shadow); font-size: 10px; position: absolute; padding: 2px; width: 100%; bottom: 2px; text-align: center; pointer-events: none; } + #info { z-index: 2; display: none; color: var(--info-color); letter-spacing: 0.06em; text-shadow: var(--text-shadow); font-size: 10px; position: absolute; margin-bottom: 2px; width: 100%; bottom: 2px; text-align: center; pointer-events: none; } #info_tool { z-index: 2; display: none; opacity: 0.8; color: var(--info-color); letter-spacing: 0.06em; text-shadow: var(--text-shadow); font-size: 10px; position: absolute; padding: 2px; width: auto; top: 47px; left: 50%; transform: translateX(-50%); text-align: center; text-transform: uppercase; pointer-events: none; } #info_render { z-index: 301; display: none; color: var(--info-color); letter-spacing: 0.06em; text-shadow: var(--text-shadow); font-size: 10px; position: absolute; padding: 2px; width: 100%; bottom: 2px; text-align: center; pointer-events: none; } #progressbar { z-index: 2000; background: linear-gradient(90deg, orange, orange, orange, white); width: 0; max-width: 100%; height: 3px; bottom: 0; position: fixed; } @@ -182,7 +182,7 @@ .row_input { display: flex; width: 100%; gap: 5px; align-items: center; } .row_input :first-child { width: 100%; } .row_panel { display: flex; width: 100%; height: 25px; align-items: center; gap: 0; } - .row_panel div { width: 31px; padding: 5px; text-align: center; } + .row_panel div { width: 100%; padding: 5px; text-align: center; } .row_panel:hover { box-shadow: none; } .material-icons { font-family: 'Material Icons'; font-weight: normal; font-style: normal; font-size: 16px; vertical-align: middle; text-align: center; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr; pointer-events: none; font-feature-settings: 'liga'; -webkit-font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; } ::placeholder { color: #45515c; } @@ -275,7 +275,7 @@
=this.frames.length))return e=this.frames[this.nextFrame++],(t=this.frames.indexOf(e))>0&&this.groups.has(e.data)&&this.groups.get(e.data)[0]!==t?void setTimeout(function(t){return function(){return t.frameFinished(e,!0)}}(this),0):(r=this.freeWorkers.shift(),s=this.getTask(e),this.log("starting frame "+(s.index+1)+" of "+this.frames.length),this.activeWorkers.push(r),r.postMessage(s))},t.prototype.getContextData=function(e){return e.getImageData(0,0,this.options.width,this.options.height).data},t.prototype.getImageData=function(e){var t;return null==this._canvas&&(this._canvas=document.createElement("canvas"),this._canvas.width=this.options.width,this._canvas.height=this.options.height),(t=this._canvas.getContext("2d")).setFill=this.options.background,t.fillRect(0,0,this.options.width,this.options.height),t.drawImage(e,0,0),this.getContextData(t)},t.prototype.getTask=function(e){var t,s;if(s={index:t=this.frames.indexOf(e),last:t===this.frames.length-1,delay:e.delay,transparent:e.transparent,width:this.options.width,height:this.options.height,quality:this.options.quality,dither:this.options.dither,globalPalette:this.options.globalPalette,repeat:this.options.repeat,canTransfer:!0},null!=e.data)s.data=e.data;else if(null!=e.context)s.data=this.getContextData(e.context);else{if(null==e.image)throw new Error("Invalid frame");s.data=this.getImageData(e.image)}return s},t.prototype.log=function(e){if(this.options.debug)return console.log(e)},t}(r),e.exports=n},function(e,t){function s(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function n(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._maxListeners=void 0,s.defaultMaxListeners=10,s.prototype.setMaxListeners=function(e){if(!function(e){return"number"==typeof e}(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},s.prototype.emit=function(e){var t,s,a,i,l,p;if(this._events||(this._events={}),"error"===e&&(!this._events.error||n(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(o(s=this._events[e]))return!1;if(r(s))switch(arguments.length){case 1:s.call(this);break;case 2:s.call(this,arguments[1]);break;case 3:s.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),s.apply(this,i)}else if(n(s))for(i=Array.prototype.slice.call(arguments,1),a=(p=s.slice()).length,l=0;l0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},s.prototype.on=s.prototype.addListener,s.prototype.once=function(e,t){function s(){this.removeListener(e,s),n||(n=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var n=!1;return s.listener=t,this.on(e,s),this},s.prototype.removeListener=function(e,t){var s,o,a,i;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(s=this._events[e]).length,o=-1,s===t||r(s.listener)&&s.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(n(s)){for(i=a;i-- >0;)if(s[i]===t||s[i].listener&&s[i].listener===t){o=i;break}if(o<0)return this;1===s.length?(s.length=0,delete this._events[e]):s.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},s.prototype.removeAllListeners=function(e){var t,s;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(s=this._events[e]))this.removeListener(e,s);else if(s)for(;s.length;)this.removeListener(e,s[s.length-1]);return delete this._events[e],this},s.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},s.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},s.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t){var s,r,n,o,a;a=navigator.userAgent.toLowerCase(),o=navigator.platform.toLowerCase(),n="ie"===(s=a.match(/(opera|ie|firefox|chrome|version)[\s\/:]([\w\d\.]+)?.*?(safari|version[\s\/:]([\w\d\.]+)|$)/)||[null,"unknown",0])[1]&&document.documentMode,(r={name:"version"===s[1]?s[3]:s[1],version:n||parseFloat("opera"===s[1]&&s[4]?s[4]:s[2]),platform:{name:a.match(/ip(?:ad|od|hone)/)?"ios":(a.match(/(?:webos|android)/)||o.match(/mac|win|linux/)||["other"])[0]}})[r.name]=!0,r[r.name+parseInt(r.version,10)]=!0,r.platform[r.platform.name]=!0,e.exports=r}])},772:e=>{"use strict";var t=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},s=0;s<10;s++)t["_"+String.fromCharCode(s)]=s;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var o,a,i=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;le?r.bottom=0:r.top=0,s.left<0?r.left="100%":r.right="100%",r})),C(m(t),"hideMenu",(function(e){e.preventDefault(),t.hideSubMenu(e)})),C(m(t),"hideSubMenu",(function(e){e.detail&&e.detail.id&&t.menu&&e.detail.id!==t.menu.id||(t.props.forceOpen&&t.props.forceClose(),t.setState({visible:!1,selectedItem:null}),t.unregisterHandlers())})),C(m(t),"handleClick",(function(e){e.preventDefault(),t.props.disabled||((0,c.callIfExists)(t.props.onClick,e,(0,i.default)({},t.props.data,c.store.data),c.store.target),t.props.onClick&&!t.props.preventCloseOnClick&&(0,l.hideMenu)())})),C(m(t),"handleMouseEnter",(function(){t.closetimer&&clearTimeout(t.closetimer),t.props.disabled||t.state.visible||(t.opentimer=setTimeout((function(){return t.setState({visible:!0,selectedItem:null})}),t.props.hoverDelay))})),C(m(t),"handleMouseLeave",(function(){t.opentimer&&clearTimeout(t.opentimer),t.state.visible&&(t.closetimer=setTimeout((function(){return t.setState({visible:!1,selectedItem:null})}),t.props.hoverDelay))})),C(m(t),"menuRef",(function(e){t.menu=e})),C(m(t),"subMenuRef",(function(e){t.subMenu=e})),C(m(t),"registerHandlers",(function(){document.removeEventListener("keydown",t.props.parentKeyNavigationHandler),document.addEventListener("keydown",t.handleKeyNavigation)})),C(m(t),"unregisterHandlers",(function(e){document.removeEventListener("keydown",t.handleKeyNavigation),e||document.addEventListener("keydown",t.props.parentKeyNavigationHandler)})),t.state=(0,i.default)({},t.state,{visible:!1}),t}return t=f,(s=[{key:"componentDidMount",value:function(){this.listenId=d.default.register((function(){}),this.hideSubMenu)}},{key:"getSubMenuType",value:function(){return f}},{key:"shouldComponentUpdate",value:function(e,t){return this.isVisibilityChange=!(this.state.visible===t.visible&&this.props.forceOpen===e.forceOpen||this.state.visible&&e.forceOpen||this.props.forceOpen&&t.visible),!0}},{key:"componentDidUpdate",value:function(){var e=this;this.isVisibilityChange&&(this.props.forceOpen||this.state.visible?(window.requestAnimationFrame||setTimeout)((function(){var t=e.props.rtl?e.getRTLMenuPosition():e.getMenuPosition();e.subMenu.style.removeProperty("top"),e.subMenu.style.removeProperty("bottom"),e.subMenu.style.removeProperty("left"),e.subMenu.style.removeProperty("right"),(0,c.hasOwnProp)(t,"top")&&(e.subMenu.style.top=t.top),(0,c.hasOwnProp)(t,"left")&&(e.subMenu.style.left=t.left),(0,c.hasOwnProp)(t,"bottom")&&(e.subMenu.style.bottom=t.bottom),(0,c.hasOwnProp)(t,"right")&&(e.subMenu.style.right=t.right),e.subMenu.classList.add(c.cssClasses.menuVisible),e.registerHandlers(),e.setState({selectedItem:null})})):(this.subMenu.addEventListener("transitionend",(function t(){e.subMenu.removeEventListener("transitionend",t),e.subMenu.style.removeProperty("bottom"),e.subMenu.style.removeProperty("right"),e.subMenu.style.top=0,e.subMenu.style.left="100%",e.unregisterHandlers()})),this.subMenu.classList.remove(c.cssClasses.menuVisible)))}},{key:"componentWillUnmount",value:function(){this.listenId&&d.default.unregister(this.listenId),this.opentimer&&clearTimeout(this.opentimer),this.closetimer&&clearTimeout(this.closetimer),this.unregisterHandlers(!0)}},{key:"render",value:function(){var e,t=this.props,s=t.children,r=t.attributes,o=t.disabled,i=t.title,l=t.selected,p=this.state.visible,d={ref:this.menuRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,className:(0,a.default)(c.cssClasses.menuItem,c.cssClasses.subMenu,r.listClassName),style:{position:"relative"}},h={className:(0,a.default)(c.cssClasses.menuItem,r.className,(e={},C(e,(0,a.default)(c.cssClasses.menuItemDisabled,r.disabledClassName),o),C(e,(0,a.default)(c.cssClasses.menuItemActive,r.visibleClassName),p),C(e,(0,a.default)(c.cssClasses.menuItemSelected,r.selectedClassName),l),e)),onMouseMove:this.props.onMouseMove,onMouseOut:this.props.onMouseOut,onClick:this.handleClick},b={ref:this.subMenuRef,style:{position:"absolute",transition:"opacity 1ms",top:0,left:"100%"},className:(0,a.default)(c.cssClasses.menu,this.props.className)};return n.default.createElement("nav",u({},d,{role:"menuitem",tabIndex:"-1","aria-haspopup":"true"}),n.default.createElement("div",u({},r,h),i),n.default.createElement("nav",u({},b,{role:"menu",tabIndex:"-1"}),this.renderChildren(s)))}}])&&b(t.prototype,s),Object.defineProperty(t,"prototype",{writable:!1}),f}(p.default);t.default=f,C(f,"propTypes",{children:o.default.node.isRequired,attributes:o.default.object,title:o.default.node.isRequired,className:o.default.string,disabled:o.default.bool,hoverDelay:o.default.number,rtl:o.default.bool,selected:o.default.bool,onMouseMove:o.default.func,onMouseOut:o.default.func,forceOpen:o.default.bool,forceClose:o.default.func,parentKeyNavigationHandler:o.default.func}),C(f,"defaultProps",{disabled:!1,hoverDelay:500,attributes:{},className:"",rtl:!1,selected:!1,onMouseMove:function(){return null},onMouseOut:function(){return null},forceOpen:!1,forceClose:function(){return null},parentKeyNavigationHandler:function(){return null}})},5451:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MENU_SHOW=t.MENU_HIDE=void 0,t.dispatchGlobalEvent=l,t.hideMenu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;l(i,(0,n.default)({},e,{type:i}),t)},t.showMenu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;l(a,(0,n.default)({},e,{type:a}),t)};var r,n=(r=s(772))&&r.__esModule?r:{default:r},o=s(3645),a="REACT_CONTEXTMENU_SHOW";t.MENU_SHOW=a;var i="REACT_CONTEXTMENU_HIDE";function l(e,t){var s,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;"function"==typeof window.CustomEvent?s=new window.CustomEvent(e,{detail:t}):(s=document.createEvent("CustomEvent")).initCustomEvent(e,!1,!0,t),r&&(r.dispatchEvent(s),(0,n.default)(o.store,t))}t.MENU_HIDE=i},857:(e,t,s)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){return function(s){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(C,s);var o,i,l,A,m=(o=C,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(o);if(i){var s=u(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}(this,e)});function C(t){var s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,C),b(h(s=m.call(this,t)),"handleShow",(function(t){if(t.detail.id===e){var r=t.detail.data,n={};for(var o in r)g.includes(o)||(n[o]=r[o]);s.setState({trigger:n})}})),b(h(s),"handleHide",(function(){s.setState({trigger:null})})),s.state={trigger:null},s}return l=C,(A=[{key:"componentDidMount",value:function(){this.listenId=a.default.register(this.handleShow,this.handleHide)}},{key:"componentWillUnmount",value:function(){this.listenId&&a.default.unregister(this.listenId)}},{key:"render",value:function(){return n.default.createElement(t,p({},this.props,{id:e,trigger:this.state.trigger}))}}])&&c(l.prototype,A),Object.defineProperty(l,"prototype",{writable:!1}),C}(n.Component)}};var n=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var s=l(t);if(s&&s.has(e))return s.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,s&&s.set(e,n),n}(s(7460)),o=i(s(774)),a=i(s(9225));function i(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,s=new WeakMap;return(l=function(e){return e?s:t})(e)}function p(){return p=Object.assign||function(e){for(var t=1;t<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=p.createElement(s,{is:r.is}):(e=p.createElement(s),"select"===s&&(p=e,r.multiple?p.multiple=!0:r.size&&(p.size=r.size))):e=p.createElementNS(e,s),e[Kr]=t,e[Xr]=r,Za(e,t,!1,!1),t.stateNode=e,p=je(s,r),s){case"dialog":Nr("cancel",e),Nr("close",e),o=r;break;case"iframe":case"object":case"embed":Nr("load",e),o=r;break;case"video":case"audio":for(o=0;oS(a,s))void 0!==l&&0>S(l,a)?(e[r]=l,e[i]=s,r=i):(e[r]=a,e[o]=s,r=o);else{if(!(void 0!==l&&0>S(l,s)))break e;e[r]=l,e[i]=s,r=i}}}return t}return null}function S(e,t){var s=e.sortIndex-t.sortIndex;return 0!==s?s:e.id-t.id}var M=[],w=[],N=1,L=null,k=3,P=!1,E=!1,I=!1;function D(e){for(var t=O(w);null!==t;){if(null===t.callback)j(w);else{if(!(t.startTime<=e))break;j(w),t.sortIndex=t.expirationTime,y(M,t)}t=O(w)}}function T(e){if(I=!1,D(e),!E)if(null!==O(M))E=!0,s(_);else{var t=O(w);null!==t&&r(T,t.startTime-e)}}function _(e,s){E=!1,I&&(I=!1,n()),P=!0;var o=k;try{for(D(s),L=O(M);null!==L&&(!(L.expirationTime>s)||e&&!t.unstable_shouldYield());){var a=L.callback;if("function"==typeof a){L.callback=null,k=L.priorityLevel;var i=a(L.expirationTime<=s);s=t.unstable_now(),"function"==typeof i?L.callback=i:L===O(M)&&j(M),D(s)}else j(M);L=O(M)}if(null!==L)var l=!0;else{var p=O(w);null!==p&&r(T,p.startTime-s),l=!1}return l}finally{L=null,k=o,P=!1}}var R=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){E||P||(E=!0,s(_))},t.unstable_getCurrentPriorityLevel=function(){return k},t.unstable_getFirstCallbackNode=function(){return O(M)},t.unstable_next=function(e){switch(k){case 1:case 2:case 3:var t=3;break;default:t=k}var s=k;k=t;try{return e()}finally{k=s}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=R,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var s=k;k=e;try{return t()}finally{k=s}},t.unstable_scheduleCallback=function(e,o,a){var i=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0i?(e.sortIndex=a,y(w,e),null===O(M)&&e===O(w)&&(I?n():I=!0,r(T,a-i))):(e.sortIndex=l,y(M,e),E||P||(E=!0,s(_))),e},t.unstable_wrapCallback=function(e){var t=k;return function(){var s=k;k=t;try{return e.apply(this,arguments)}finally{k=s}}}},9798:(e,t,s)=>{"use strict";e.exports=s(6447)},1283:(e,t,s)=>{"use strict";s.d(t,{A:()=>y});var r="undefined"!=typeof window?window:null,n=null===r,o=n?void 0:r.document,a="addEventListener",i="removeEventListener",l="getBoundingClientRect",p="_a",c="_b",d="_c",h="horizontal",u=function(){return!1},b=n?"calc":["","-webkit-","-moz-","-o-"].filter((function(e){var t=o.createElement("div");return t.style.cssText="width:"+e+"calc(9px)",!!t.style.length})).shift()+"calc",A=function(e){return"string"==typeof e||e instanceof String},m=function(e){if(A(e)){var t=o.querySelector(e);if(!t)throw new Error("Selector "+e+" did not match a DOM element");return t}return e},g=function(e,t,s){var r=e[t];return void 0!==r?r:s},C=function(e,t,s,r){if(t){if("end"===r)return 0;if("center"===r)return e/2}else if(s){if("start"===r)return 0;if("center"===r)return e/2}return e},f=function(e,t){var s=o.createElement("div");return s.className="gutter gutter-"+t,s},v=function(e,t,s){var r={};return A(t)?r[e]=t:r[e]=b+"("+t+"% - "+s+"px)",r},x=function(e,t){var s;return(s={})[e]=t+"px",s};const y=function(e,t){if(void 0===t&&(t={}),n)return{};var s,b,A,y,O,j,S=e;Array.from&&(S=Array.from(S));var M=m(S[0]).parentNode,w=getComputedStyle?getComputedStyle(M):null,N=w?w.flexDirection:null,L=g(t,"sizes")||S.map((function(){return 100/S.length})),k=g(t,"minSize",100),P=Array.isArray(k)?k:S.map((function(){return k})),E=g(t,"maxSize",1/0),I=Array.isArray(E)?E:S.map((function(){return E})),D=g(t,"expandToMin",!1),T=g(t,"gutterSize",10),_=g(t,"gutterAlign","center"),R=g(t,"snapOffset",30),z=Array.isArray(R)?R:S.map((function(){return R})),B=g(t,"dragInterval",1),U=g(t,"direction",h),G=g(t,"cursor",U===h?"col-resize":"row-resize"),F=g(t,"gutter",f),W=g(t,"elementStyle",v),H=g(t,"gutterStyle",x);function V(e,t,r,n){var o=W(s,t,r,n);Object.keys(o).forEach((function(t){e.style[t]=o[t]}))}function Y(){return j.map((function(e){return e.size}))}function Z(e){return"touches"in e?e.touches[0][b]:e[b]}function J(e){var t=j[this.a],s=j[this.b],r=t.size+s.size;t.size=e/this.size*r,s.size=r-e/this.size*r,V(t.element,t.size,this[c],t.i),V(s.element,s.size,this[d],s.i)}function Q(e){var s,r=j[this.a],n=j[this.b];this.dragging&&(s=Z(e)-this.start+(this[c]-this.dragOffset),B>1&&(s=Math.round(s/B)*B),s<=r.minSize+r.snapOffset+this[c]?s=r.minSize+this[c]:s>=this.size-(n.minSize+n.snapOffset+this[d])&&(s=this.size-(n.minSize+this[d])),s>=r.maxSize-r.snapOffset+this[c]?s=r.maxSize+this[c]:s<=this.size-(n.maxSize-n.snapOffset+this[d])&&(s=this.size-(n.maxSize+this[d])),J.call(this,s),g(t,"onDrag",u)(Y()))}function K(){var e=j[this.a].element,t=j[this.b].element,r=e[l](),n=t[l]();this.size=r[s]+n[s]+this[c]+this[d],this.start=r[A],this.end=r[y]}function X(e){var t=function(e){if(!getComputedStyle)return null;var t=getComputedStyle(e);if(!t)return null;var s=e[O];return 0===s?null:s-=U===h?parseFloat(t.paddingLeft)+parseFloat(t.paddingRight):parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)}(M);if(null===t)return e;if(P.reduce((function(e,t){return e+t}),0)>t)return e;var s=0,r=[],n=e.map((function(n,o){var a=t*n/100,i=C(T,0===o,o===e.length-1,_),l=P[o]+i;return a{t=e.apply(null,[t,...r])})),t}function tt(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),r=1;rr&&(r=a)}return{min:s,max:r}}_getPixelForNumber(e,t,s,r,n){const{min:o,max:a}=t;let i=Math.abs(a-o)>.001?(e-o)/(a-o):.5;return n&&(i=1-i),s+i*r}_attachEventListeners(e){e.addEventListener("wheel",this._handleZoom),e.addEventListener("mousemove",this._handleDataHover),e.addEventListener("mousedown",this._handlePanStart),e.addEventListener("mouseleave",this._handleStopHover),e.ownerDocument.addEventListener("mouseup",this._handlePanStop)}_removeEventListeners(e){e.removeEventListener("wheel",this._handleZoom),e.removeEventListener("mousemove",this._handleDataHover),e.removeEventListener("mousedown",this._handlePanStart),e.removeEventListener("mouseleave",this._handleStopHover),e.ownerDocument.removeEventListener("mouseup",this._handlePanStop)}_getDistanceFromLine(e,t,s,r,n,o){if(e===s&&t===r)return Math.sqrt(Math.pow(e-n,2)+Math.pow(t-o,2));let a=0,i=0,l=0,p=0;return t>=r?(a=e,i=t,l=s,p=r):(a=s,i=r,l=e,p=t),o