UNPKG

ui-complex

Version:

32 lines (30 loc) 66.8 kB
(function(ve,T){typeof exports=="object"&&typeof module<"u"?T(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],T):(ve=typeof globalThis<"u"?globalThis:ve||self,T(ve.UIComplex={},ve.React,ve.ReactDOM))})(this,function(ve,T,xt){"use strict";var Pe=document.createElement("style");Pe.textContent=`._container_1vzvl_1{display:flex;background:#fff;border:1px solid #eaecf0;border-top:none;gap:4px;width:100%;height:100%;-webkit-user-select:none;user-select:none}._container_fil4o_1{width:2px;min-width:2px;background:#eaecf0;cursor:e-resize;position:relative;z-index:3;display:flex;flex-direction:column;justify-content:space-around}._container_fil4o_1:after{content:"";background:#eeeeee50;width:20px;position:absolute;top:0;left:-10px;height:100%}._container_fil4o_1>svg{margin-left:4px}._resize_fil4o_25{position:absolute;top:0;left:-50%;transform:translate(-50%)}.uic-dropdown{position:absolute;z-index:100;opacity:0;pointer-events:none;transition:.3s;animation:uic-dropdown .3s}@keyframes uic-dropdown{0%{opacity:0}to{opacity:1}}.uic-dropdown-open{opacity:1;pointer-events:inherit}.uic-menu{padding:4px;list-style-type:none;background-color:#fff;background-clip:padding-box;border-radius:8px;outline:none;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d}.uic-menu-item{clear:both;margin:0;padding:6px 12px;color:#000;font-weight:400;font-size:14px;line-height:1.5;cursor:pointer;border-radius:4px}.uic-menu-item:hover{background-color:#0000000a}.uic-timeline-header{border-bottom:1px solid #EEE;height:40px;background:#fff;padding:0 16px;display:flex;align-items:center;justify-content:space-between}.uic-timeline-header-item{display:flex;gap:24px}.uic-timeline-header-today{display:flex;align-items:center;gap:12px}.uic-timeline-header-today>span{cursor:pointer}.uic-timeline-header-today-icon{padding:4px;cursor:pointer}.uic-timeline-header-dateFormat{display:flex;align-items:center;gap:6px}.uic-timeline{height:100%;width:100%;display:flex;flex-direction:column;-webkit-user-select:none;user-select:none;position:relative}.uic-timeline-shadow{background:#6ba1ff50;width:300px;height:68px;left:0;top:0;pointer-events:none;position:absolute;transition:.1s}.uic-timeline-body{width:100%;height:100%;background:#ccc;display:flex;flex-direction:column;overflow-x:auto;position:relative}.uic-timeline-body *{box-sizing:border-box}.uic-timeline-body-row{width:max-content;display:flex;position:relative;border-bottom:1px solid #eeeeee;background:#fff}.uic-timeline-body-row-topbar{min-height:44px;position:sticky;top:0;z-index:11;width:max-content;display:flex;border-bottom:1px solid #eeeeee}.uic-timeline-body-row-topbar #today{background:#f7faff}.uic-timeline-body-row-topbar-holder{width:205px;position:sticky;left:0;z-index:10;background:#fff;border-right:1px solid #eeeeee}.uic-timeline-body-holder{width:205px;position:sticky;left:0;z-index:10;background:#fff;border-right:1px solid #eeeeee;display:flex;align-items:center;justify-content:center}.uic-timeline-body-date{width:300px;background:#fff;border-right:1px solid #eeeeee;display:flex;align-items:center;justify-content:center;position:absolute;top:0;height:100%}.uic-timeline-body-date-today{background:#f7faff}.uic-timeline-body-date-title{width:300px;background:#fff;border-right:1px solid #eeeeee;display:flex;align-items:center;justify-content:center}.uic-timeline-body-tasks{display:grid;width:100%;left:0;grid-auto-flow:column}.uic-timeline-body-task{position:relative;cursor:grab;box-sizing:border-box;margin-bottom:6px;height:42px;padding:0 6px}.uic-timeline-body-task:hover .uic-timeline-body-task-resize{opacity:1}.uic-timeline-body-task-resize{opacity:0;position:absolute;height:100%;top:0;width:4px;background:#97baff;cursor:e-resize;transition:.3s}.uic-timeline-body-task-resize-left{left:0}.uic-timeline-body-task-resize-right{right:0}.uic-timeline-body-task-drag{position:fixed;z-index:1000}.uic-timeline-body-task-content{padding:4px;border:1px solid #97BAFF;border-radius:3px;background:#c2d7ff;height:100%}.uic-timeline-body-task:active{cursor:grabbing}.uic-timeline-body-ranges{position:absolute;display:grid;width:100%;left:0;grid-auto-flow:column;padding-top:6px}.uic-timeline-body-range{position:relative;cursor:grab;box-sizing:border-box;margin-bottom:6px;height:42px;padding:0 6px;display:flex;justify-content:flex-end}.uic-timeline-body-range:hover{z-index:2}.uic-timeline-body-range:hover .uic-timeline-body-range-resize{opacity:1}.uic-timeline-body-range:hover .uic-timeline-body-range-waiting{right:calc(100% - 10px)}.uic-timeline-body-range:hover .uic-timeline-body-range-blocking{left:calc(100% - 10px)}.uic-timeline-body-range:hover .uic-timeline-body-range-waiting,.uic-timeline-body-range:hover .uic-timeline-body-range-blocking{opacity:1;pointer-events:inherit;z-index:4}.uic-timeline-body-range-resize{opacity:0;position:absolute;height:100%;top:0;width:4px;background:#97baff;cursor:e-resize;transition:.3s}.uic-timeline-body-range-resize-left{left:0}.uic-timeline-body-range-resize-right{right:0}.uic-timeline-body-range-drag{position:absolute;z-index:2}.uic-timeline-body-range-chidren{position:absolute}.uic-timeline-body-range-content{padding:4px;border:1px solid #97BAFF;border-radius:3px;background:#c2d7ff;height:100%;width:100%;position:relative;overflow:hidden}.uic-timeline-body-range-content-custom{height:100%;width:100%;position:relative;overflow:hidden}.uic-timeline-body-range-waiting,.uic-timeline-body-range-blocking{pointer-events:none;opacity:0;position:absolute;top:50%;transform:translateY(-50%);width:16px;height:16px;border-radius:50%;background:#8192b2;display:flex;justify-content:center;align-items:center;font-weight:600;cursor:pointer;z-index:2;transition:.3s}.uic-timeline-body-range-waiting{right:calc(100% - 32px)}.uic-timeline-body-range-blocking{left:calc(100% - 32px)}.uic-timeline-body-range-line{position:absolute;width:100px;height:1px;background:#1e90ff;right:0;top:50%;transform:rotate(250deg);transform-origin:100% 100%;z-index:3;pointer-events:none}.uic-timeline-body-range-line-waiting{position:absolute;width:100px;height:1px;background:#1e90ff;top:50%;transform:rotate(250deg);transform-origin:100% 100%;z-index:3;right:100%}.uic-timeline-body-range-line-svg{position:absolute;pointer-events:none;z-index:1;right:-20px;top:0}.uic-timeline-body-range-line-svg path{stroke-width:2;fill:none}.uic-timeline-body-range:active{cursor:grabbing}.uic-timeline-outside-draggable{position:fixed;pointer-events:none;z-index:100;-webkit-user-select:none;user-select:none}.uic-timeline-resize{position:absolute;z-index:10;top:88px;right:32px;display:flex;padding:1px;flex-direction:column;align-items:flex-start;align-self:stretch;border-radius:4px;background:#fff;border:1px solid #D9DCDF}.uic-timeline-resize-item{display:flex;width:24px;height:24px;min-height:24px;padding:4px;justify-content:center;align-items:center;cursor:pointer;font-size:16px}.uic-timeline-resize-item:last-child{border-top:1px solid #D9DCDF} `,document.head.appendChild(Pe);var Oe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ne(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Re={exports:{}},Ee={};/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Xe;function pt(){if(Xe)return Ee;Xe=1;var e=T,h=Symbol.for("react.element"),n=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function i(L,s,m){var o,a={},C=null,E=null;m!==void 0&&(C=""+m),s.key!==void 0&&(C=""+s.key),s.ref!==void 0&&(E=s.ref);for(o in s)l.call(s,o)&&!c.hasOwnProperty(o)&&(a[o]=s[o]);if(L&&L.defaultProps)for(o in s=L.defaultProps,s)a[o]===void 0&&(a[o]=s[o]);return{$$typeof:h,type:L,key:C,ref:E,props:a,_owner:r.current}}return Ee.Fragment=n,Ee.jsx=i,Ee.jsxs=i,Ee}var _e={};/** * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ve;function wt(){return Ve||(Ve=1,process.env.NODE_ENV!=="production"&&function(){var e=T,h=Symbol.for("react.element"),n=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),L=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),o=Symbol.for("react.suspense_list"),a=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),_=Symbol.iterator,R="@@iterator";function D(t){if(t===null||typeof t!="object")return null;var p=_&&t[_]||t[R];return typeof p=="function"?p:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(t){{for(var p=arguments.length,M=new Array(p>1?p-1:0),F=1;F<p;F++)M[F-1]=arguments[F];O("error",t,M)}}function O(t,p,M){{var F=x.ReactDebugCurrentFrame,V=F.getStackAddendum();V!==""&&(p+="%s",M=M.concat([V]));var K=M.map(function(P){return String(P)});K.unshift("Warning: "+p),Function.prototype.apply.call(console[t],console,K)}}var z=!1,N=!1,Y=!1,A=!1,$=!1,W;W=Symbol.for("react.module.reference");function I(t){return!!(typeof t=="string"||typeof t=="function"||t===l||t===c||$||t===r||t===m||t===o||A||t===E||z||N||Y||typeof t=="object"&&t!==null&&(t.$$typeof===C||t.$$typeof===a||t.$$typeof===i||t.$$typeof===L||t.$$typeof===s||t.$$typeof===W||t.getModuleId!==void 0))}function S(t,p,M){var F=t.displayName;if(F)return F;var V=p.displayName||p.name||"";return V!==""?M+"("+V+")":M}function G(t){return t.displayName||"Context"}function Z(t){if(t==null)return null;if(typeof t.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case l:return"Fragment";case n:return"Portal";case c:return"Profiler";case r:return"StrictMode";case m:return"Suspense";case o:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case L:var p=t;return G(p)+".Consumer";case i:var M=t;return G(M._context)+".Provider";case s:return S(t,t.render,"ForwardRef");case a:var F=t.displayName||null;return F!==null?F:Z(t.type)||"Memo";case C:{var V=t,K=V._payload,P=V._init;try{return Z(P(K))}catch{return null}}}return null}var v=Object.assign,y=0,f,g,u,w,j,k,B;function X(){}X.__reactDisabledLog=!0;function Q(){{if(y===0){f=console.log,g=console.info,u=console.warn,w=console.error,j=console.group,k=console.groupCollapsed,B=console.groupEnd;var t={configurable:!0,enumerable:!0,value:X,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}y++}}function q(){{if(y--,y===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:v({},t,{value:f}),info:v({},t,{value:g}),warn:v({},t,{value:u}),error:v({},t,{value:w}),group:v({},t,{value:j}),groupCollapsed:v({},t,{value:k}),groupEnd:v({},t,{value:B})})}y<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ee=x.ReactCurrentDispatcher,oe;function ae(t,p,M){{if(oe===void 0)try{throw Error()}catch(V){var F=V.stack.trim().match(/\n( *(at )?)/);oe=F&&F[1]||""}return` `+oe+t}}var J=!1,H;{var te=typeof WeakMap=="function"?WeakMap:Map;H=new te}function ie(t,p){if(!t||J)return"";{var M=H.get(t);if(M!==void 0)return M}var F;J=!0;var V=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var K;K=ee.current,ee.current=null,Q();try{if(p){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(xe){F=xe}Reflect.construct(t,[],P)}else{try{P.call()}catch(xe){F=xe}t.call(P.prototype)}}else{try{throw Error()}catch(xe){F=xe}t()}}catch(xe){if(xe&&F&&typeof xe.stack=="string"){for(var U=xe.stack.split(` `),ue=F.stack.split(` `),ne=U.length-1,se=ue.length-1;ne>=1&&se>=0&&U[ne]!==ue[se];)se--;for(;ne>=1&&se>=0;ne--,se--)if(U[ne]!==ue[se]){if(ne!==1||se!==1)do if(ne--,se--,se<0||U[ne]!==ue[se]){var me=` `+U[ne].replace(" at new "," at ");return t.displayName&&me.includes("<anonymous>")&&(me=me.replace("<anonymous>",t.displayName)),typeof t=="function"&&H.set(t,me),me}while(ne>=1&&se>=0);break}}}finally{J=!1,ee.current=K,q(),Error.prepareStackTrace=V}var Me=t?t.displayName||t.name:"",yt=Me?ae(Me):"";return typeof t=="function"&&H.set(t,yt),yt}function de(t,p,M){return ie(t,!1)}function ye(t){var p=t.prototype;return!!(p&&p.isReactComponent)}function he(t,p,M){if(t==null)return"";if(typeof t=="function")return ie(t,ye(t));if(typeof t=="string")return ae(t);switch(t){case m:return ae("Suspense");case o:return ae("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case s:return de(t.render);case a:return he(t.type,p,M);case C:{var F=t,V=F._payload,K=F._init;try{return he(K(V),p,M)}catch{}}}return""}var ge=Object.prototype.hasOwnProperty,pe={},Ce=x.ReactDebugCurrentFrame;function we(t){if(t){var p=t._owner,M=he(t.type,t._source,p?p.type:null);Ce.setExtraStackFrame(M)}else Ce.setExtraStackFrame(null)}function it(t,p,M,F,V){{var K=Function.call.bind(ge);for(var P in t)if(K(t,P)){var U=void 0;try{if(typeof t[P]!="function"){var ue=Error((F||"React class")+": "+M+" type `"+P+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[P]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ue.name="Invariant Violation",ue}U=t[P](p,P,F,M,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ne){U=ne}U&&!(U instanceof Error)&&(we(V),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",F||"React class",M,P,typeof U),we(null)),U instanceof Error&&!(U.message in pe)&&(pe[U.message]=!0,we(V),b("Failed %s type: %s",M,U.message),we(null))}}}var Gt=Array.isArray;function We(t){return Gt(t)}function Jt(t){{var p=typeof Symbol=="function"&&Symbol.toStringTag,M=p&&t[Symbol.toStringTag]||t.constructor.name||"Object";return M}}function Kt(t){try{return ot(t),!1}catch{return!0}}function ot(t){return""+t}function ct(t){if(Kt(t))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Jt(t)),ot(t)}var Te=x.ReactCurrentOwner,Qt={key:!0,ref:!0,__self:!0,__source:!0},ut,lt,He;He={};function qt(t){if(ge.call(t,"ref")){var p=Object.getOwnPropertyDescriptor(t,"ref").get;if(p&&p.isReactWarning)return!1}return t.ref!==void 0}function en(t){if(ge.call(t,"key")){var p=Object.getOwnPropertyDescriptor(t,"key").get;if(p&&p.isReactWarning)return!1}return t.key!==void 0}function tn(t,p){if(typeof t.ref=="string"&&Te.current&&p&&Te.current.stateNode!==p){var M=Z(Te.current.type);He[M]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',Z(Te.current.type),t.ref),He[M]=!0)}}function nn(t,p){{var M=function(){ut||(ut=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",p))};M.isReactWarning=!0,Object.defineProperty(t,"key",{get:M,configurable:!0})}}function rn(t,p){{var M=function(){lt||(lt=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",p))};M.isReactWarning=!0,Object.defineProperty(t,"ref",{get:M,configurable:!0})}}var an=function(t,p,M,F,V,K,P){var U={$$typeof:h,type:t,key:p,ref:M,props:P,_owner:K};return U._store={},Object.defineProperty(U._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(U,"_self",{configurable:!1,enumerable:!1,writable:!1,value:F}),Object.defineProperty(U,"_source",{configurable:!1,enumerable:!1,writable:!1,value:V}),Object.freeze&&(Object.freeze(U.props),Object.freeze(U)),U};function sn(t,p,M,F,V){{var K,P={},U=null,ue=null;M!==void 0&&(ct(M),U=""+M),en(p)&&(ct(p.key),U=""+p.key),qt(p)&&(ue=p.ref,tn(p,V));for(K in p)ge.call(p,K)&&!Qt.hasOwnProperty(K)&&(P[K]=p[K]);if(t&&t.defaultProps){var ne=t.defaultProps;for(K in ne)P[K]===void 0&&(P[K]=ne[K])}if(U||ue){var se=typeof t=="function"?t.displayName||t.name||"Unknown":t;U&&nn(P,se),ue&&rn(P,se)}return an(t,U,ue,V,F,Te.current,P)}}var ze=x.ReactCurrentOwner,dt=x.ReactDebugCurrentFrame;function Le(t){if(t){var p=t._owner,M=he(t.type,t._source,p?p.type:null);dt.setExtraStackFrame(M)}else dt.setExtraStackFrame(null)}var Ue;Ue=!1;function Be(t){return typeof t=="object"&&t!==null&&t.$$typeof===h}function ft(){{if(ze.current){var t=Z(ze.current.type);if(t)return` Check the render method of \``+t+"`."}return""}}function on(t){return""}var ht={};function cn(t){{var p=ft();if(!p){var M=typeof t=="string"?t:t.displayName||t.name;M&&(p=` Check the top-level render call using <`+M+">.")}return p}}function mt(t,p){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var M=cn(p);if(ht[M])return;ht[M]=!0;var F="";t&&t._owner&&t._owner!==ze.current&&(F=" It was passed a child from "+Z(t._owner.type)+"."),Le(t),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',M,F),Le(null)}}function gt(t,p){{if(typeof t!="object")return;if(We(t))for(var M=0;M<t.length;M++){var F=t[M];Be(F)&&mt(F,p)}else if(Be(t))t._store&&(t._store.validated=!0);else if(t){var V=D(t);if(typeof V=="function"&&V!==t.entries)for(var K=V.call(t),P;!(P=K.next()).done;)Be(P.value)&&mt(P.value,p)}}}function un(t){{var p=t.type;if(p==null||typeof p=="string")return;var M;if(typeof p=="function")M=p.propTypes;else if(typeof p=="object"&&(p.$$typeof===s||p.$$typeof===a))M=p.propTypes;else return;if(M){var F=Z(p);it(M,t.props,"prop",F,t)}else if(p.PropTypes!==void 0&&!Ue){Ue=!0;var V=Z(p);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",V||"Unknown")}typeof p.getDefaultProps=="function"&&!p.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ln(t){{for(var p=Object.keys(t.props),M=0;M<p.length;M++){var F=p[M];if(F!=="children"&&F!=="key"){Le(t),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",F),Le(null);break}}t.ref!==null&&(Le(t),b("Invalid attribute `ref` supplied to `React.Fragment`."),Le(null))}}function vt(t,p,M,F,V,K){{var P=I(t);if(!P){var U="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(U+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ue=on();ue?U+=ue:U+=ft();var ne;t===null?ne="null":We(t)?ne="array":t!==void 0&&t.$$typeof===h?(ne="<"+(Z(t.type)||"Unknown")+" />",U=" Did you accidentally export a JSX literal instead of a component?"):ne=typeof t,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ne,U)}var se=sn(t,p,M,V,K);if(se==null)return se;if(P){var me=p.children;if(me!==void 0)if(F)if(We(me)){for(var Me=0;Me<me.length;Me++)gt(me[Me],t);Object.freeze&&Object.freeze(me)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else gt(me,t)}return t===l?ln(se):un(se),se}}function dn(t,p,M){return vt(t,p,M,!0)}function fn(t,p,M){return vt(t,p,M,!1)}var hn=fn,mn=dn;_e.Fragment=l,_e.jsx=hn,_e.jsxs=mn}()),_e}process.env.NODE_ENV==="production"?Re.exports=pt():Re.exports=wt();var d=Re.exports;const bt={container:"_container_1vzvl_1"},Dt={},Ct=()=>d.jsx("div",{className:Dt.container,children:"GanttTable"}),Ze={container:"_container_fil4o_1",resize:"_resize_fil4o_25"},ke=()=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"3",height:"16",viewBox:"0 0 3 16",fill:"none",children:d.jsx("path",{d:"M1 0V6L2 8L1 10V16",stroke:"#D0D5DD"})}),Lt=e=>d.jsx("svg",{viewBox:"0 -5 16 16",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",...e,children:d.jsx("path",{fill:"#cccccc",d:"M6,3a.5.5,0,0,1-.5.5H1.71L3.35,5.15a.48.48,0,0,1,0,.7.48.48,0,0,1-.7,0L.15,3.35a.48.48,0,0,1,0-.7L2.65.15a.48.48,0,0,1,.7,0,.48.48,0,0,1,0,.7L1.71,2.5H5.5A.5.5,0,0,1,6,3Zm9.85-.35L13.35.15a.48.48,0,0,0-.7,0,.48.48,0,0,0,0,.7L14.29,2.5H10.5a.5.5,0,0,0,0,1h3.79L12.65,5.15a.48.48,0,0,0,0,.7.48.48,0,0,0,.7,0l2.5-2.5A.48.48,0,0,0,15.85,2.65Z"})}),Mt=()=>d.jsxs("div",{className:Ze.container,children:[d.jsx(Lt,{className:Ze.resize}),d.jsx(ke,{}),d.jsx(ke,{}),d.jsx(ke,{})]}),Et={},_t=()=>d.jsx("div",{className:Et.container,children:" GanttChart"});function jt({children:e,state:h}){const n=T.createContext(h);return d.jsx(n.Provider,{value:h,children:e})}const Tt=({style:e})=>d.jsx(jt,{state:{lineSize:500},children:d.jsxs("div",{className:bt.container,style:{height:500,...e},children:[d.jsx(Ct,{}),d.jsx(Mt,{}),d.jsx(_t,{})]})}),Ae=e=>{const{placement:h="bottom",...n}=e,l={bottom:0,top:180,left:-90,right:90};return d.jsx("svg",{width:"10",height:"10",viewBox:"0 0 8 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${l[h]}deg)`},...n,children:d.jsx("path",{d:"M1.49264 -0.00194693L4.1802 2.68561L6.86776 -0.00194693L7.69048 0.820775L4.1802 4.33105L0.669922 0.820775L1.49264 -0.00194693Z",fill:"#70757A"})})};var Ye,Se=xt;if(process.env.NODE_ENV==="production")Ye=Se.createRoot,Se.hydrateRoot;else{var Ge=Se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Ye=function(e,h){Ge.usingClientEntryPoint=!0;try{return Se.createRoot(e,h)}finally{Ge.usingClientEntryPoint=!1}}}const Yt=({items:e})=>d.jsx("div",{className:"uic-menu",children:e==null?void 0:e.map(h=>d.jsx("div",{className:"uic-menu-item",onClick:n=>{h.onClick&&(h==null||h.onClick(h==null?void 0:h.value,n))},children:h==null?void 0:h.label},h==null?void 0:h.value))}),Je=({children:e,items:h})=>{const n=T.useRef(null),l=T.useRef(null),[r,c]=T.useState(!1),[i,L]=T.useState({x:0,y:0}),s=m=>{var o,a,C;L({x:((o=m.currentTarget)==null?void 0:o.getBoundingClientRect().left)-document.body.getBoundingClientRect().x,y:((a=m.currentTarget)==null?void 0:a.getBoundingClientRect().top)+((C=m.currentTarget)==null?void 0:C.getBoundingClientRect().height)-document.body.getBoundingClientRect().y}),c(!r)};return T.useEffect(()=>{var m,o;if(r){if(!n.current&&!l.current){const a=document.createElement("div");document.body.appendChild(a),n.current=a,l.current=Ye(n.current)}(m=l==null?void 0:l.current)==null||m.render(d.jsx(Ke,{...i,open:!0,items:h,setOpen:c}))}else n.current&&(l!=null&&l.current)&&((o=l==null?void 0:l.current)==null||o.render(d.jsx(Ke,{...i,open:!1,items:h,setOpen:c})))},[r,l.current,n.current]),d.jsx(d.Fragment,{children:T.cloneElement(e,{onClick:s})})},Ke=({x:e,y:h,open:n,items:l,setOpen:r})=>{const[c,i]=T.useState(!1);return T.useEffect(()=>{const L=s=>{n&&!c&&r(!1)};return window.addEventListener("click",L),()=>{window.removeEventListener("click",L)}},[c,n]),d.jsx("div",{className:`uic-dropdown${n?" uic-dropdown-open":""}`,style:{top:h,left:e},onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:l&&d.jsx(Yt,{items:l})})};var ce=(e=>(e.DAY="day",e.WEEK="week",e.MONTH="month",e))(ce||{}),Qe={exports:{}};(function(e,h){(function(n,l){e.exports=l()})(Oe,function(){return function(n,l){l.prototype.weekday=function(r){var c=this.$locale().weekStart||0,i=this.$W,L=(i<c?i+7:i)-c;return this.$utils().u(r)?L:this.subtract(L,"day").add(r,"day")}}})})(Qe);var St=Qe.exports;const Ot=Ne(St);var qe={exports:{}};(function(e,h){(function(n,l){e.exports=l()})(Oe,function(){var n=1e3,l=6e4,r=36e5,c="millisecond",i="second",L="minute",s="hour",m="day",o="week",a="month",C="quarter",E="year",_="date",R="Invalid Date",D=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(v){var y=["th","st","nd","rd"],f=v%100;return"["+v+(y[(f-20)%10]||y[f]||y[0])+"]"}},O=function(v,y,f){var g=String(v);return!g||g.length>=y?v:""+Array(y+1-g.length).join(f)+v},z={s:O,z:function(v){var y=-v.utcOffset(),f=Math.abs(y),g=Math.floor(f/60),u=f%60;return(y<=0?"+":"-")+O(g,2,"0")+":"+O(u,2,"0")},m:function v(y,f){if(y.date()<f.date())return-v(f,y);var g=12*(f.year()-y.year())+(f.month()-y.month()),u=y.clone().add(g,a),w=f-u<0,j=y.clone().add(g+(w?-1:1),a);return+(-(g+(f-u)/(w?u-j:j-u))||0)},a:function(v){return v<0?Math.ceil(v)||0:Math.floor(v)},p:function(v){return{M:a,y:E,w:o,d:m,D:_,h:s,m:L,s:i,ms:c,Q:C}[v]||String(v||"").toLowerCase().replace(/s$/,"")},u:function(v){return v===void 0}},N="en",Y={};Y[N]=b;var A="$isDayjsObject",$=function(v){return v instanceof G||!(!v||!v[A])},W=function v(y,f,g){var u;if(!y)return N;if(typeof y=="string"){var w=y.toLowerCase();Y[w]&&(u=w),f&&(Y[w]=f,u=w);var j=y.split("-");if(!u&&j.length>1)return v(j[0])}else{var k=y.name;Y[k]=y,u=k}return!g&&u&&(N=u),u||!g&&N},I=function(v,y){if($(v))return v.clone();var f=typeof y=="object"?y:{};return f.date=v,f.args=arguments,new G(f)},S=z;S.l=W,S.i=$,S.w=function(v,y){return I(v,{locale:y.$L,utc:y.$u,x:y.$x,$offset:y.$offset})};var G=function(){function v(f){this.$L=W(f.locale,null,!0),this.parse(f),this.$x=this.$x||f.x||{},this[A]=!0}var y=v.prototype;return y.parse=function(f){this.$d=function(g){var u=g.date,w=g.utc;if(u===null)return new Date(NaN);if(S.u(u))return new Date;if(u instanceof Date)return new Date(u);if(typeof u=="string"&&!/Z$/i.test(u)){var j=u.match(D);if(j){var k=j[2]-1||0,B=(j[7]||"0").substring(0,3);return w?new Date(Date.UTC(j[1],k,j[3]||1,j[4]||0,j[5]||0,j[6]||0,B)):new Date(j[1],k,j[3]||1,j[4]||0,j[5]||0,j[6]||0,B)}}return new Date(u)}(f),this.init()},y.init=function(){var f=this.$d;this.$y=f.getFullYear(),this.$M=f.getMonth(),this.$D=f.getDate(),this.$W=f.getDay(),this.$H=f.getHours(),this.$m=f.getMinutes(),this.$s=f.getSeconds(),this.$ms=f.getMilliseconds()},y.$utils=function(){return S},y.isValid=function(){return this.$d.toString()!==R},y.isSame=function(f,g){var u=I(f);return this.startOf(g)<=u&&u<=this.endOf(g)},y.isAfter=function(f,g){return I(f)<this.startOf(g)},y.isBefore=function(f,g){return this.endOf(g)<I(f)},y.$g=function(f,g,u){return S.u(f)?this[g]:this.set(u,f)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(f,g){var u=this,w=!!S.u(g)||g,j=S.p(f),k=function(J,H){var te=S.w(u.$u?Date.UTC(u.$y,H,J):new Date(u.$y,H,J),u);return w?te:te.endOf(m)},B=function(J,H){return S.w(u.toDate()[J].apply(u.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(H)),u)},X=this.$W,Q=this.$M,q=this.$D,ee="set"+(this.$u?"UTC":"");switch(j){case E:return w?k(1,0):k(31,11);case a:return w?k(1,Q):k(0,Q+1);case o:var oe=this.$locale().weekStart||0,ae=(X<oe?X+7:X)-oe;return k(w?q-ae:q+(6-ae),Q);case m:case _:return B(ee+"Hours",0);case s:return B(ee+"Minutes",1);case L:return B(ee+"Seconds",2);case i:return B(ee+"Milliseconds",3);default:return this.clone()}},y.endOf=function(f){return this.startOf(f,!1)},y.$set=function(f,g){var u,w=S.p(f),j="set"+(this.$u?"UTC":""),k=(u={},u[m]=j+"Date",u[_]=j+"Date",u[a]=j+"Month",u[E]=j+"FullYear",u[s]=j+"Hours",u[L]=j+"Minutes",u[i]=j+"Seconds",u[c]=j+"Milliseconds",u)[w],B=w===m?this.$D+(g-this.$W):g;if(w===a||w===E){var X=this.clone().set(_,1);X.$d[k](B),X.init(),this.$d=X.set(_,Math.min(this.$D,X.daysInMonth())).$d}else k&&this.$d[k](B);return this.init(),this},y.set=function(f,g){return this.clone().$set(f,g)},y.get=function(f){return this[S.p(f)]()},y.add=function(f,g){var u,w=this;f=Number(f);var j=S.p(g),k=function(Q){var q=I(w);return S.w(q.date(q.date()+Math.round(Q*f)),w)};if(j===a)return this.set(a,this.$M+f);if(j===E)return this.set(E,this.$y+f);if(j===m)return k(1);if(j===o)return k(7);var B=(u={},u[L]=l,u[s]=r,u[i]=n,u)[j]||1,X=this.$d.getTime()+f*B;return S.w(X,this)},y.subtract=function(f,g){return this.add(-1*f,g)},y.format=function(f){var g=this,u=this.$locale();if(!this.isValid())return u.invalidDate||R;var w=f||"YYYY-MM-DDTHH:mm:ssZ",j=S.z(this),k=this.$H,B=this.$m,X=this.$M,Q=u.weekdays,q=u.months,ee=u.meridiem,oe=function(H,te,ie,de){return H&&(H[te]||H(g,w))||ie[te].slice(0,de)},ae=function(H){return S.s(k%12||12,H,"0")},J=ee||function(H,te,ie){var de=H<12?"AM":"PM";return ie?de.toLowerCase():de};return w.replace(x,function(H,te){return te||function(ie){switch(ie){case"YY":return String(g.$y).slice(-2);case"YYYY":return S.s(g.$y,4,"0");case"M":return X+1;case"MM":return S.s(X+1,2,"0");case"MMM":return oe(u.monthsShort,X,q,3);case"MMMM":return oe(q,X);case"D":return g.$D;case"DD":return S.s(g.$D,2,"0");case"d":return String(g.$W);case"dd":return oe(u.weekdaysMin,g.$W,Q,2);case"ddd":return oe(u.weekdaysShort,g.$W,Q,3);case"dddd":return Q[g.$W];case"H":return String(k);case"HH":return S.s(k,2,"0");case"h":return ae(1);case"hh":return ae(2);case"a":return J(k,B,!0);case"A":return J(k,B,!1);case"m":return String(B);case"mm":return S.s(B,2,"0");case"s":return String(g.$s);case"ss":return S.s(g.$s,2,"0");case"SSS":return S.s(g.$ms,3,"0");case"Z":return j}return null}(H)||j.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(f,g,u){var w,j=this,k=S.p(g),B=I(f),X=(B.utcOffset()-this.utcOffset())*l,Q=this-B,q=function(){return S.m(j,B)};switch(k){case E:w=q()/12;break;case a:w=q();break;case C:w=q()/3;break;case o:w=(Q-X)/6048e5;break;case m:w=(Q-X)/864e5;break;case s:w=Q/r;break;case L:w=Q/l;break;case i:w=Q/n;break;default:w=Q}return u?w:S.a(w)},y.daysInMonth=function(){return this.endOf(a).$D},y.$locale=function(){return Y[this.$L]},y.locale=function(f,g){if(!f)return this.$L;var u=this.clone(),w=W(f,g,!0);return w&&(u.$L=w),u},y.clone=function(){return S.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},v}(),Z=G.prototype;return I.prototype=Z,[["$ms",c],["$s",i],["$m",L],["$H",s],["$W",m],["$M",a],["$y",E],["$D",_]].forEach(function(v){Z[v[1]]=function(y){return this.$g(y,v[0],v[1])}}),I.extend=function(v,y){return v.$i||(v(y,G,I),v.$i=!0),I},I.locale=W,I.isDayjs=$,I.unix=function(v){return I(1e3*v)},I.en=Y[N],I.Ls=Y,I.p={},I})})(qe);var Nt=qe.exports;const re=Ne(Nt);re.extend(Ot);const et=(e=ce.DAY,h,n=2,l=2,r)=>{const c={start:()=>re(h||new Date).startOf("week").add(-n,"week"),end(){return re(h||new Date).startOf("week").add(l,"week")},dayCount(){return Number(this.end().diff(this.start(),"day"))}},i={start(){return re(h||new Date).startOf("week").add(-n,"week")},end(){return re(h||new Date).startOf("week").add(l,"week")},dayCount(){return Number(this.end().diff(this.start(),"day"))},weekCount(){return Number(this.end().diff(this.start(),"week"))}},L={start(){return re(h||new Date).startOf("month").add(-n,"month")},end(){return re(h||new Date).startOf("month").add(l,"month")},dayCount(){return Number(this.end().diff(this.start(),"day"))},monthCount(){return Number(this.end().diff(this.start(),"month"))}};return{[ce.DAY]:{titleData:Array.from({length:1}).map((m,o)=>c.start().add(o,"week").format("MMM")),startOfDay:c==null?void 0:c.start(),endOfDay:c==null?void 0:c.end(),dayWidth:(r==null?void 0:r.day)||190,dayCount:c==null?void 0:c.dayCount(),data:Array.from({length:c.end().diff(c.start(),"day")}).map((m,o)=>{const a=c.start().add(o,"day"),C=re().format("DD MM YYYY")===a.format("DD MM YYYY");return{width:(r==null?void 0:r.day)||190,startDate:a.startOf("day"),dueDate:a.endOf("day"),label:a.format("dd - DD"),today:C,key:a.format("MMM DD YYYY")}})},[ce.WEEK]:{titleData:Array.from({length:i.weekCount()}).map((m,o)=>i.start().add(o,"week").format("DD MMM YYYY")),startOfDay:i.start(),endOfDay:i.end(),dayWidth:(r==null?void 0:r.week)||100,dayCount:i==null?void 0:i.dayCount(),data:Array.from({length:i.weekCount()}).map((m,o)=>{const a=i.start().add(o,"week"),C=re().startOf("week").format("DD MM YYYY")===a.format("DD MM YYYY");return{width:((r==null?void 0:r.week)||100)*7,startDate:a.startOf("week"),dueDate:a.endOf("week"),label:`${a.startOf("week").format("DD MMM")} ${a.endOf("week").format("DD MMM")}`,today:C,key:`${a.startOf("week").format("DD MMM YYYY")} ${a.endOf("week").format("DD MMM YYYY")}`}})},[ce.MONTH]:{titleData:Array.from({length:L.monthCount()}).map((m,o)=>L.start().add(o,"week").format("DD MMM YYYY")),startOfDay:L.start(),endOfDay:L.end(),dayWidth:(r==null?void 0:r.month)||50,dayCount:L==null?void 0:L.dayCount(),data:Array.from({length:L.monthCount()}).map((m,o)=>{const a=L.start().add(o,"month"),C=re().startOf("month").format("DD MM YYYY")===a.format("DD MM YYYY");return{width:(Number(a.endOf("month").diff(a,"day"))+1)*((r==null?void 0:r.month)||50),startDate:a.startOf("month"),dueDate:a.endOf("month"),label:`${a.startOf("month").format("DD MMM")} ${a.endOf("month").format("DD MMM")}`,today:C,key:`${a.startOf("month").format("DD MMM YYYY")} ${a.endOf("month").format("DD MMM YYYY")}`}})}}[e]},je={randomId:Math.random().toString(16).slice(2),bodyRef:null,holderWidth:205,contentRef:null,dateType:ce.DAY,dayWidthSize:{[ce.DAY]:190,[ce.WEEK]:100,[ce.MONTH]:50},dateFormatTodates:et(),setDateType:()=>{},setDayWidthSize:()=>{},dependencies:!1},fe=T.createContext(je),Rt=()=>{const{setDateType:e}=T.useContext(fe);return d.jsx(Je,{items:[{label:"Day",value:ce.DAY,onClick(h,n){e(h)}},{label:"Week",value:ce.WEEK,onClick(h,n){e(h)}},{label:"Month",value:ce.MONTH,onClick(h,n){e(h)}}],children:d.jsxs("div",{className:"uic-timeline-header-dateFormat",children:["Day ",d.jsx(Ae,{placement:"bottom"})]})})},kt=()=>{const{bodyRef:e,dateFormatTodates:h}=T.useContext(fe),{dayWidth:n,startOfDay:l}=h,r=re().diff(l,"day"),c=()=>{e==null||e.scrollTo({behavior:"smooth",left:r*n})},i=s=>{s!=null&&s.ctrlKey?e==null||e.scrollTo({behavior:"smooth",left:(e==null?void 0:e.scrollLeft)-n*5}):e==null||e.scrollTo({behavior:"smooth",left:(e==null?void 0:e.scrollLeft)-n})},L=s=>{s!=null&&s.ctrlKey?e==null||e.scrollTo({behavior:"smooth",left:(e==null?void 0:e.scrollLeft)+n*5}):e==null||e.scrollTo({behavior:"smooth",left:(e==null?void 0:e.scrollLeft)+n})};return d.jsxs("div",{className:"uic-timeline-header-today",children:[d.jsx(Ae,{placement:"right",className:"uic-timeline-header-today-icon",onClick:i}),d.jsx("span",{onClick:c,children:"Today"}),d.jsx(Ae,{placement:"left",className:"uic-timeline-header-today-icon",onClick:L})]})},At=()=>{const{header:e}=T.useContext(fe);return d.jsxs("div",{className:"uic-timeline-header",children:[d.jsxs("div",{className:"uic-timeline-header-item",children:[d.jsx(kt,{}),d.jsx(Rt,{})]}),(e==null?void 0:e.extra)&&e.extra()]})};var tt={exports:{}};(function(e,h){(function(n,l){e.exports=l()})(Oe,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,c=/\d\d/,i=/\d\d?/,L=/\d*[^-_:/,()\s\d]+/,s={},m=function(D){return(D=+D)+(D>68?1900:2e3)},o=function(D){return function(x){this[D]=+x}},a=[/[+-]\d\d:?(\d\d)?|Z/,function(D){(this.zone||(this.zone={})).offset=function(x){if(!x||x==="Z")return 0;var b=x.match(/([+-]|\d\d)/g),O=60*b[1]+(+b[2]||0);return O===0?0:b[0]==="+"?-O:O}(D)}],C=function(D){var x=s[D];return x&&(x.indexOf?x:x.s.concat(x.f))},E=function(D,x){var b,O=s.meridiem;if(O){for(var z=1;z<=24;z+=1)if(D.indexOf(O(z,0,x))>-1){b=z>12;break}}else b=D===(x?"pm":"PM");return b},_={A:[L,function(D){this.afternoon=E(D,!1)}],a:[L,function(D){this.afternoon=E(D,!0)}],Q:[r,function(D){this.month=3*(D-1)+1}],S:[r,function(D){this.milliseconds=100*+D}],SS:[c,function(D){this.milliseconds=10*+D}],SSS:[/\d{3}/,function(D){this.milliseconds=+D}],s:[i,o("seconds")],ss:[i,o("seconds")],m:[i,o("minutes")],mm:[i,o("minutes")],H:[i,o("hours")],h:[i,o("hours")],HH:[i,o("hours")],hh:[i,o("hours")],D:[i,o("day")],DD:[c,o("day")],Do:[L,function(D){var x=s.ordinal,b=D.match(/\d+/);if(this.day=b[0],x)for(var O=1;O<=31;O+=1)x(O).replace(/\[|\]/g,"")===D&&(this.day=O)}],w:[i,o("week")],ww:[c,o("week")],M:[i,o("month")],MM:[c,o("month")],MMM:[L,function(D){var x=C("months"),b=(C("monthsShort")||x.map(function(O){return O.slice(0,3)})).indexOf(D)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[L,function(D){var x=C("months").indexOf(D)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,o("year")],YY:[c,function(D){this.year=m(D)}],YYYY:[/\d{4}/,o("year")],Z:a,ZZ:a};function R(D){var x,b;x=D,b=s&&s.formats;for(var O=(D=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,S,G){var Z=G&&G.toUpperCase();return S||b[G]||n[G]||b[Z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,y,f){return y||f.slice(1)})})).match(l),z=O.length,N=0;N<z;N+=1){var Y=O[N],A=_[Y],$=A&&A[0],W=A&&A[1];O[N]=W?{regex:$,parser:W}:Y.replace(/^\[|\]$/g,"")}return function(I){for(var S={},G=0,Z=0;G<z;G+=1){var v=O[G];if(typeof v=="string")Z+=v.length;else{var y=v.regex,f=v.parser,g=I.slice(Z),u=y.exec(g)[0];f.call(S,u),I=I.replace(u,"")}}return function(w){var j=w.afternoon;if(j!==void 0){var k=w.hours;j?k<12&&(w.hours+=12):k===12&&(w.hours=0),delete w.afternoon}}(S),S}}return function(D,x,b){b.p.customParseFormat=!0,D&&D.parseTwoDigitYear&&(m=D.parseTwoDigitYear);var O=x.prototype,z=O.parse;O.parse=function(N){var Y=N.date,A=N.utc,$=N.args;this.$u=A;var W=$[1];if(typeof W=="string"){var I=$[2]===!0,S=$[3]===!0,G=I||S,Z=$[2];S&&(Z=$[2]),s=this.$locale(),!I&&Z&&(s=b.Ls[Z]),this.$d=function(g,u,w,j){try{if(["x","X"].indexOf(u)>-1)return new Date((u==="X"?1e3:1)*g);var k=R(u)(g),B=k.year,X=k.month,Q=k.day,q=k.hours,ee=k.minutes,oe=k.seconds,ae=k.milliseconds,J=k.zone,H=k.week,te=new Date,ie=Q||(B||X?1:te.getDate()),de=B||te.getFullYear(),ye=0;B&&!X||(ye=X>0?X-1:te.getMonth());var he,ge=q||0,pe=ee||0,Ce=oe||0,we=ae||0;return J?new Date(Date.UTC(de,ye,ie,ge,pe,Ce,we+60*J.offset*1e3)):w?new Date(Date.UTC(de,ye,ie,ge,pe,Ce,we)):(he=new Date(de,ye,ie,ge,pe,Ce,we),H&&(he=j(he).week(H).toDate()),he)}catch{return new Date("")}}(Y,W,A,b),this.init(),Z&&Z!==!0&&(this.$L=this.locale(Z).$L),G&&Y!=this.format(W)&&(this.$d=new Date("")),s={}}else if(W instanceof Array)for(var v=W.length,y=1;y<=v;y+=1){$[1]=W[y-1];var f=b.apply(this,$);if(f.isValid()){this.$d=f.$d,this.$L=f.$L,this.init();break}y===v&&(this.$d=new Date(""))}else z.call(this,N)}}})})(tt);var It=tt.exports;const nt=Ne(It),be={DEFAULT:"DD.MM.YYYY"},Ft={left:0,top:0,width:0,startLeft:0,startTop:0,scrollLeftStart:0,scrollTopStart:0,dragging:!1,draggingLeft:!1,draggingRight:!1},$t=(e,{randomId:h,setStartTimeline:n,startTimeline:l,endCount:r,startCount:c,dateType:i,dateFormatTodates:L,holderWidth:s})=>{var a,C,E;const m=+((((a=e==null?void 0:e.currentTarget)==null?void 0:a.scrollLeft)+((C=e==null?void 0:e.currentTarget)==null?void 0:C.offsetWidth))/L.dayWidth).toFixed(0),o=+(((E=e==null?void 0:e.currentTarget)==null?void 0:E.scrollLeft)/L.dayWidth).toFixed(0);i===ce.DAY&&(m>=(r+c)*7&&n(_=>({..._,endCount:_.endCount+1})),o<=2&&(n(_=>({..._,startCount:_.startCount+1})),e.currentTarget.scrollTo({left:e.currentTarget.scrollLeft+190*7}))),i===ce.WEEK&&(m>=(r+c)*7&&n(_=>({..._,endCount:_.endCount+1})),o<=1&&(n(_=>({..._,startCount:_.startCount+1})),e.currentTarget.scrollTo({left:e.currentTarget.scrollLeft+L.dayWidth*7}))),i===ce.MONTH&&(m>=(r+c)*30&&n(_=>({..._,endCount:_.endCount+1})),o<=1&&(n(_=>({..._,startCount:_.startCount+1})),e.currentTarget.scrollTo({left:e.currentTarget.scrollLeft+L.dayWidth*30})))},le=e=>{const h=document.getElementById(`timelineBody_${e}`);return{x:Number(h==null?void 0:h.scrollLeft)||0,y:Number(h==null?void 0:h.scrollTop)||0}},De=({offsetTop:e,offsetLeft:h,offsetHeight:n,id:l,dateCount:r,dayWidth:c,holderWidth:i,sourceId:L,end:s})=>{var _,R,D,x,b,O;let m=[];const o=document.querySelector(`#timelineBody_${l}`),a={top:e-n,left:h};(_=o==null?void 0:o.querySelectorAll(".uic-timeline-body-row"))==null||_.forEach(z=>{(z==null?void 0:z.offsetTop)<=(a==null?void 0:a.top)&&(a==null?void 0:a.top)<=(z==null?void 0:z.offsetTop)+(z==null?void 0:z.offsetHeight)&&m.push(z)});const C={top:(R=m[0])==null?void 0:R.offsetTop,left:Math.round(((a==null?void 0:a.left)-i)/c)*c+i,height:(D=m[0])==null?void 0:D.offsetHeight,width:r*c,destinationId:String(((x=m[0])==null?void 0:x.id)||((b=o==null?void 0:o.querySelectorAll(".uic-timeline-body-row")[0])==null?void 0:b.id)||L),startIndex:Math.round(((a==null?void 0:a.left)-i)/c)};return(o==null?void 0:o.querySelector(".uic-timeline-shadow"))&&((O=o==null?void 0:o.querySelector(".uic-timeline-shadow"))==null||O.setAttribute("style",` opacity: ${s?0:1}; width: ${C==null?void 0:C.width}px; height: ${C==null?void 0:C.height}px; left: ${C==null?void 0:C.left}px; top: ${C==null?void 0:C.top}px; `)),C},Ie=({dateCount:e,destinationId:h,range:n,startOfDay:l,startIndex:r,sourceId:c,onDragEnd:i,rangeOnDragEnd:L})=>{if(h&&r){const s=l==null?void 0:l.add(r,"day"),m=l==null?void 0:l.add(r+e-1,"day");(s!==(n==null?void 0:n.startDate)||m!==(n==null?void 0:n.dueDate)||h!==c)&&(i&&i({id:n==null?void 0:n.id,startDate:s,dueDate:m,destinationId:h,sourceId:c}),L&&L({id:n==null?void 0:n.id,startDate:s,dueDate:m,destinationId:h,sourceId:c}))}},Wt=({position:e,setPosition:h,range:n,rangeRef:l,holder:r,rangeOnDragEnd:c})=>{const{randomId:i,dateFormatTodates:L,holderWidth:s,contentRef:m,onDragEnd:o}=T.useContext(fe),{dayWidth:a,startOfDay:C}=L,E=()=>{var R;return-(((R=m==null?void 0:m.getBoundingClientRect())==null?void 0:R.top)||0)+le(i).y},_=()=>{var R;return-(((R=m==null?void 0:m.getBoundingClientRect())==null?void 0:R.left)||0)+le(i).x};return T.useEffect(()=>{const R=x=>{var b,O,z;if(e.dragging){const N=(e==null?void 0:e.left)-(e.startLeft-x.clientX)+(_()-(e==null?void 0:e.scrollLeftStart)),Y=(e==null?void 0:e.top)-(e.startTop-x.clientY)+(E()-(e==null?void 0:e.scrollTopStart)),A=(N-s)/a,$=+(A+(e==null?void 0:e.width)/a-A).toFixed(0);h(W=>({...W,left:N,top:Y})),De({dateCount:$,dayWidth:a,holderWidth:s,id:i,offsetLeft:N,offsetTop:x.clientY+E(),offsetHeight:Number((b=l==null?void 0:l.current)==null?void 0:b.offsetHeight),sourceId:r==null?void 0:r.id,end:!1})}if(e!=null&&e.draggingLeft){const N=_()-(e==null?void 0:e.scrollLeftStart)<0?_()-(e==null?void 0:e.scrollLeftStart):0,Y=(e==null?void 0:e.width)+(e.startLeft-x.clientX)-N,A=(e==null?void 0:e.left)-(Y>=a?e.startLeft-x.clientX:-a)+N,$=(e==null?void 0:e.top)+(E()-(e==null?void 0:e.scrollTopStart)),W=(A-s)/a,I=+(W+(Y>=a?Y:a)/a-W).toFixed(0);h(S=>({...S,left:A,top:$,width:Y>=a?Y:a})),De({dateCount:I,dayWidth:a,holderWidth:s,id:i,offsetLeft:A,offsetTop:x.clientY+E(),offsetHeight:Number((O=l==null?void 0:l.current)==null?void 0:O.offsetHeight),sourceId:r==null?void 0:r.id,end:!1})}if(e!=null&&e.draggingRight){const N=e==null?void 0:e.left,Y=(e==null?void 0:e.top)+(E()-(e==null?void 0:e.scrollTopStart)),A=(N-s)/a,$=(e==null?void 0:e.width)-(e.startLeft-x.clientX)+(_()-(e==null?void 0:e.scrollLeftStart)),W=+(A+($>=a?$:a)/a-A).toFixed(0);h(I=>({...I,left:N,top:Y,width:$>=a?$:a})),De({dateCount:W,dayWidth:a,holderWidth:s,id:i,offsetLeft:N,offsetTop:x.clientY+E(),offsetHeight:Number((z=l==null?void 0:l.current)==null?void 0:z.offsetHeight),sourceId:r==null?void 0:r.id,end:!1})}},D=x=>{var b,O,z;if(e.dragging){const N=(e==null?void 0:e.left)-(e.startLeft-x.clientX)+(_()-(e==null?void 0:e.scrollLeftStart)),Y=(N-s)/a,A=+(Y+(e==null?void 0:e.width)/a-Y).toFixed(0),$=De({dateCount:A,dayWidth:a,holderWidth:s,id:i,offsetLeft:N,offsetTop:x.clientY+E(),offsetHeight:Number((b=l==null?void 0:l.current)==null?void 0:b.offsetHeight),sourceId:r==null?void 0:r.id,end:!0});Ie({dateCount:A,destinationId:$.destinationId,startIndex:$.startIndex,startOfDay:C,range:n,onDragEnd:o,rangeOnDragEnd:c,sourceId:r==null?void 0:r.id}),h(W=>({...W,dragging:!1}))}if(e.draggingLeft){const N=_()-(e==null?void 0:e.scrollLeftStart)<0?_()-(e==null?void 0:e.scrollLeftStart):0,Y=(e==null?void 0:e.width)+(e.startLeft-x.clientX)-N,A=(e==null?void 0:e.left)-(Y>=a?e.startLeft-x.clientX:-a)+N,$=(A-s)/a,W=+($+(Y>=a?Y:a)/a-$).toFixed(0),I=De({dateCount:W,dayWidth:a,holderWidth:s,id:i,offsetLeft:A,offsetTop:x.clientY+E(),offsetHeight:Number((O=l==null?void 0:l.current)==null?void 0:O.offsetHeight),sourceId:r==null?void 0:r.id,end:!0});Ie({dateCount:W,destinationId:I.destinationId,startIndex:I.startIndex,startOfDay:C,range:n,onDragEnd:o,rangeOnDragEnd:c,sourceId:r==null?void 0:r.id}),h(S=>({...S,draggingLeft:!1}))}if(e.draggingRight){const N=e==null?void 0:e.left,Y=(N-s)/a,A=(e==null?void 0:e.width)-(e.startLeft-x.clientX)+(_()-(e==null?void 0:e.scrollLeftStart)),$=+(Y+(A>=a?A:a)/a-Y).toFixed(0),W=De({dateCount:$,dayWidth:a,holderWidth:s,id:i,offsetLeft:N,offsetTop:x.clientY+E(),offsetHeight:Number((z=l==null?void 0:l.current)==null?void 0:z.offsetHeight),sourceId:r==null?void 0:r.id,end:!0});Ie({dateCount:$,destinationId:W.destinationId,startIndex:W.startIndex,startOfDay:C,range:n,onDragEnd:o,rangeOnDragEnd:c,sourceId:r==null?void 0:r.id}),h(I=>({...I,draggingRight:!1}))}};return window.addEventListener("mousemove",R),window.addEventListener("mouseup",D),()=>{window.removeEventListener("mousemove",R),window.removeEventListener("mouseup",D)}},[e.dragging,e.draggingLeft,e.draggingRight]),d.jsx(d.Fragment,{})},Ht=({dueDateDay:e,startDateDay:h,setVisible:n,visible:l,rangeContentRef:r,rangeRef:c,defaultWidth:i,isDrag:L,...s})=>{const{randomId:m,dateFormatTodates:o,holderWidth:a}=T.useContext(fe),{dayWidth:C}=o,E=document.getElementById(`timelineBody_${m}`),_=C*(e+1),R=D=>{const x={scrolStart:(D==null?void 0:D.scrollLeft)||0,scrolEnd:((D==null?void 0:D.scrollLeft)||0)+((E==null?void 0:E.offsetWidth)||0)+i};x.scrolStart<_-a&&x.scrolEnd>_||L?n(!0):n(!1)};return T.useEffect(()=>(E==null||E.addEventListener("scroll",D=>R(D.currentTarget)),()=>{E==null||E.removeEventListener("scroll",D=>R(D.currentTarget))}),[m,o,L,R]),T.useEffect(()=>{R(E)},[s]),null},rt=({pathProps:e})=>d.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.38047 4.68553L7.964 5.11848C7.9213 5.16243 7.88735 5.215 7.86418 5.27307C7.841 5.33115 7.82906 5.39356 7.82906 5.45661C7.82906 5.51966 7.841 5.58207 7.86418 5.64015C7.88735 5.69823 7.9213 5.7508 7.964 5.79474C8.05093 5.88463 8.16762 5.93495 8.28913 5.93495C8.41064 5.93495 8.52733 5.88463 8.61426 5.79474L9.05162 5.34014C9.48142 4.89306 10.1815 4.806 10.6526 5.2046C10.7786 5.30984 10.882 5.4423 10.9558 5.59317C11.0296 5.74403 11.0722 5.90983 11.0808 6.0795C11.0893 6.24917 11.0636 6.41882 11.0053 6.57714C10.947 6.73545 10.8576 6.8788 10.7428 6.99761L9.45253 8.33978C9.23286 8.56675 8.93809 8.6938 8.63115 8.6938C8.32421 8.6938 8.02944 8.56675 7.80977 8.33978L7.3164 7.82682L6.66659 8.50355L7.15906 9.01604C7.96889 9.85748 9.29341 9.85748 10.1023 9.01604L11.3935 7.67387C11.5983 7.46097 11.758 7.20443 11.8621 6.92125C11.9662 6.63806 12.0122 6.3347 11.9972 6.03125C11.9822 5.7278 11.9065 5.43119 11.7751 5.16106C11.6436 4.89093 11.4595 4.65344 11.2349 4.46434C10.3935 3.75043 9.14807 3.88738 8.38047 4.68553Z",fill:"white",...e}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.61953 11.3145L8.036 10.8815C8.0787 10.8376 8.11265 10.785 8.13582 10.7269C8.159 10.6688 8.17094 10.6064 8.17094 10.5434C8.17094 10.4803 8.159 10.4179 8.13582 10.3598C8.11265 10.3018 8.0787 10.2492 8.036 10.2053C7.94909 10.1155 7.83249 10.0653 7.71109 10.0653C7.58969 10.0653 7.4731 10.1155 7.38619 10.2053L6.94838 10.6599C6.51858 11.1069 5.81853 11.194 5.3474 10.7954C5.2214 10.6902 5.11804 10.5577 5.04421 10.4068C4.97038 10.256 4.92778 10.0902 4.91924 9.9205C4.9107 9.75083 4.93642 9.58118 4.9947 9.42286C5.05297 9.26455 5.14245 9.1212 5.25717 9.00239L6.54747 7.66022C6.76714 7.43325 7.06191 7.3062 7.36885 7.3062C7.67579 7.3062 7.97056 7.43325 8.19023 7.66022L8.6836 8.17318L9.33341 7.49645L8.84094 6.98396C8.03111 6.14252 6.70659 6.14252 5.89765 6.98396L4.60646 8.32613C4.40169 8.53903 4.24198 8.79557 4.1379 9.07875C4.03383 9.36194 3.98777 9.6653 4.00277 9.96875C4.01777 10.2722 4.0935 10.5688 4.22493 10.8389C4.35636 11.1091 4.54049 11.3466 4.76514 11.5357C5.60652 12.2496 6.85193 12.1126 7.61953 11.3145Z",fill:"white",...e})]}),zt=({waiting:e,taskId:h})=>{var C,E,_,R,D,x,b,O,z,N;const{contentRef:n,randomId:l}=T.useContext(fe),[r,c]=T.useState({isLine:!1,startWidth:0,clientX:0,clientY:0,x:0,y:0,angle:0}),i=()=>{var Y;return-(((Y=n==null?void 0:n.getBoundingClientRect())==null?void 0:Y.top)||0)+le(l).y}