@cyber-harbour/ui 2.0.52 → 2.0.53

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/dist/index.js CHANGED
@@ -38,13 +38,13 @@
38
38
  width: 100%;
39
39
  min-width: 0;
40
40
  max-width: ${typeof o=="number"?chunkZQO4NO5E_js.c(o,r.baseSize):o||"100%"};
41
- `),{ignoreStyles:["padding-inline"]});var vr=20,wr="splitter_columns_widths",Mt=chunkZQO4NO5E_js.a((r,o,c)=>{let p=localStorage.getItem(r);if(p)try{let h=JSON.parse(p);if(Array.isArray(h)&&h.length===o)return h}catch{}else if(c.length===o)return c;return Array(o).fill(100/o)},"getSavedWidths"),Fi=chunkZQO4NO5E_js.a(({columns:r,initialWidths:o,layoutClassname:c="",splitterClassname:p="",minWidth:h=vr,storageKey:v=wr})=>{let[g,S]=Rt.useState(()=>Mt(v,r.length,o)),I=Rt.useRef(null),E=Rt.useRef(null),A=Rt.useRef(h),x=Rt.useRef(g),C=Rt.useCallback(z=>{if(E.current===null||!I.current)return;let M=I.current.getBoundingClientRect(),D=M.width,ee=z-M.left,U=[...x.current],ue=E.current,J=ue+1,pe=U.slice(0,ue).reduce((ve,Pe)=>ve+Pe,0),he=ee/D*100-pe,De=U[ue]+U[J]-he;he>=A.current&&De>=A.current&&(U[ue]=he,U[J]=De,S(U),x.current=U);},[]),q=Rt.useCallback(z=>C(z.clientX),[C]),t=Rt.useCallback(z=>{z.preventDefault(),C(z.touches[0].clientX);},[C]),$=Rt.useCallback(()=>{E.current=null,localStorage.setItem(v,JSON.stringify(x.current)),document.removeEventListener("mousemove",q),document.removeEventListener("mouseup",$),document.removeEventListener("touchmove",t),document.removeEventListener("touchend",$);},[q,t,v]),Z=Rt.useCallback(z=>M=>{M.preventDefault(),E.current=z,document.addEventListener("mousemove",q,{passive:false}),document.addEventListener("mouseup",$);},[q,$]),k=Rt.useCallback(z=>M=>{M.preventDefault(),E.current=z,document.addEventListener("touchmove",t,{passive:false}),document.addEventListener("touchend",$);},[t,$]);return Rt.useEffect(()=>{let z=Mt(v,r.length,o);x.current=z,S(z);},[r.length,o,v]),jsxRuntime.jsx("div",{ref:I,className:`flex select-none ${c}`,children:r.map(({content:z,className:M},D)=>jsxRuntime.jsxs(Rt.Fragment,{children:[jsxRuntime.jsx("div",{className:M,style:{flex:`${g[D]} 1 0%`},children:z}),D<r.length-1&&jsxRuntime.jsx("div",{onMouseDown:Z(D),onTouchStart:k(D),className:`hidden lg:flex! lg:sticky lg:top-0 border-s border-gray-200 ${p}`,children:jsxRuntime.jsx("span",{className:"absolute top-1/2 start-1/2 -translate-x-1/2 -translate-y-1/2 block w-4 h-6 flex justify-center items-center bg-white border border-gray-200 text-gray-400 rounded-md cursor-col-resize hover:bg-gray-100",children:jsxRuntime.jsxs("svg",{className:"shrink-0 size-3.5",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsxRuntime.jsx("circle",{cx:"9",cy:"12",r:"1"}),jsxRuntime.jsx("circle",{cx:"9",cy:"5",r:"1"}),jsxRuntime.jsx("circle",{cx:"9",cy:"19",r:"1"}),jsxRuntime.jsx("circle",{cx:"15",cy:"12",r:"1"}),jsxRuntime.jsx("circle",{cx:"15",cy:"5",r:"1"}),jsxRuntime.jsx("circle",{cx:"15",cy:"19",r:"1"})]})})})]},`${D}`))})},"SplitterLayout");var Pr=kr__default.default.div`
41
+ `),{ignoreStyles:["padding-inline"]});var vr=20,wr="splitter_columns_widths",Mt=chunkZQO4NO5E_js.a((r,o,c)=>{let p=localStorage.getItem(r);if(p)try{let h=JSON.parse(p);if(Array.isArray(h)&&h.length===o)return h}catch{}else if(c.length===o)return c;return Array(o).fill(100/o)},"getSavedWidths"),Fi=chunkZQO4NO5E_js.a(({columns:r,initialWidths:o,layoutClassname:c="",splitterClassname:p="",minWidth:h=vr,storageKey:v=wr})=>{let[g,S]=Rt.useState(()=>Mt(v,r.length,o)),I=Rt.useRef(null),E=Rt.useRef(null),A=Rt.useRef(h),x=Rt.useRef(g),C=Rt.useCallback(j=>{if(E.current===null||!I.current)return;let M=I.current.getBoundingClientRect(),D=M.width,ee=j-M.left,U=[...x.current],ue=E.current,J=ue+1,pe=U.slice(0,ue).reduce((ve,Pe)=>ve+Pe,0),he=ee/D*100-pe,De=U[ue]+U[J]-he;he>=A.current&&De>=A.current&&(U[ue]=he,U[J]=De,S(U),x.current=U);},[]),q=Rt.useCallback(j=>C(j.clientX),[C]),t=Rt.useCallback(j=>{j.preventDefault(),C(j.touches[0].clientX);},[C]),$=Rt.useCallback(()=>{E.current=null,localStorage.setItem(v,JSON.stringify(x.current)),document.removeEventListener("mousemove",q),document.removeEventListener("mouseup",$),document.removeEventListener("touchmove",t),document.removeEventListener("touchend",$);},[q,t,v]),Z=Rt.useCallback(j=>M=>{M.preventDefault(),E.current=j,document.addEventListener("mousemove",q,{passive:false}),document.addEventListener("mouseup",$);},[q,$]),k=Rt.useCallback(j=>M=>{M.preventDefault(),E.current=j,document.addEventListener("touchmove",t,{passive:false}),document.addEventListener("touchend",$);},[t,$]);return Rt.useEffect(()=>{let j=Mt(v,r.length,o);x.current=j,S(j);},[r.length,o,v]),jsxRuntime.jsx("div",{ref:I,className:`flex select-none ${c}`,children:r.map(({content:j,className:M},D)=>jsxRuntime.jsxs(Rt.Fragment,{children:[jsxRuntime.jsx("div",{className:M,style:{flex:`${g[D]} 1 0%`},children:j}),D<r.length-1&&jsxRuntime.jsx("div",{onMouseDown:Z(D),onTouchStart:k(D),className:`hidden lg:flex! lg:sticky lg:top-0 border-s border-gray-200 ${p}`,children:jsxRuntime.jsx("span",{className:"absolute top-1/2 start-1/2 -translate-x-1/2 -translate-y-1/2 block w-4 h-6 flex justify-center items-center bg-white border border-gray-200 text-gray-400 rounded-md cursor-col-resize hover:bg-gray-100",children:jsxRuntime.jsxs("svg",{className:"shrink-0 size-3.5",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsxRuntime.jsx("circle",{cx:"9",cy:"12",r:"1"}),jsxRuntime.jsx("circle",{cx:"9",cy:"5",r:"1"}),jsxRuntime.jsx("circle",{cx:"9",cy:"19",r:"1"}),jsxRuntime.jsx("circle",{cx:"15",cy:"12",r:"1"}),jsxRuntime.jsx("circle",{cx:"15",cy:"5",r:"1"}),jsxRuntime.jsx("circle",{cx:"15",cy:"19",r:"1"})]})})})]},`${D}`))})},"SplitterLayout");var Pr=kr__default.default.div`
42
42
  width: 100%;
43
43
  height: 100%;
44
44
  display: flex;
45
45
  align-items: center;
46
46
  justify-content: center;
47
- `,Sr=chunkZQO4NO5E_js.a(({width:r=280,height:o=280})=>{let c=kr.useTheme();return jsxRuntime.jsx(Pr,{children:jsxRuntime.jsxs(xr__default.default,{foregroundColor:c.contentLoader.foreground,backgroundColor:c.contentLoader.background,width:r,height:o,viewBox:"0 0 280 280",children:[jsxRuntime.jsx("path",{d:"m55 38-0.97266 0.22852 7.0801 30.092-18.355-20.979-0.75195 0.6582 19.596 22.395 0.43164 1.834 0.97266-0.22852 0.75195-0.6582-0.37695-0.42969 9.625-27.912-0.94531-0.32617-9.4375 27.371-0.10547-0.12109zm8 34-0.78516 0.61914 0.0957 0.12305-12.311 13.258 0.73242 0.67969 12.205-13.145 14.277 18.084 0.78516-0.61914-14.373-18.207 0.10547-0.11328zm15 19-0.48438 0.875 46.992 25.996 8e-3 4e-3 20.506 11.592-28.182 4.5449 0.15998 0.98819 29.418-4.7441 0.25 0.14062-12.555 24.143 0.88672 0.46094 13-25 15 25 26 30v18l-11 18 0.85352 0.52148 9.8008-16.039-4.6543 33.518 0.99023 0.13867 4.7793-34.408 7.2305 16.27 0.91406-0.40625-7.9141-17.807v-17.104l18 12.316 0.56445-0.82617-18.896-12.928-25.855-29.836-14.633-24.387 0.01562-0.02344h23.805v-1h-23.152l13.848-21.234 55.201-28.791-0.45898-0.88476 0.77734 0.62305 11.402-14.25 16.668-11.842-0.58008-0.81641-16.785 11.928-11.486 14.355-55.434 28.912-14.277 21.893-7.7617-27.166-0.96094 0.27344 7.7227 27.031-1.1191 0.17969-21.604-12.211zm140.43-12.912-6.957-17.338-0.92773 0.37305 6.957 17.338zm-6.957-17.338 0.72266 0.69336 16.232-16.896-0.7207-0.69336zm-3.4766 137.25 5 15 0.94922-0.31641-5-15zm-91-63-0.48047-0.87695-31 17 0.48047 0.87695zm-31 17 5 18 0.96289-0.26758-5-18zm0 0-0.70703-0.70703-12.898 12.898-17.881 9.9336 0.48633 0.875 18-10zm5 18-0.64062-0.76758-18 15 0.64062 0.76758z"}),jsxRuntime.jsx("circle",{cx:"229.92",cy:"63.7318",r:"5",transform:"rotate(173.661 229.92 63.7318)"}),jsxRuntime.jsx("circle",{cx:"227.711",cy:"43.8541",r:"5",transform:"rotate(173.661 227.711 43.8541)"}),jsxRuntime.jsx("circle",{cx:"211.478",cy:"60.7499",r:"5",transform:"rotate(173.661 211.478 60.7499)"}),jsxRuntime.jsx("circle",{cx:"218.434",cy:"78.0877",r:"5",transform:"rotate(173.661 218.434 78.0877)"}),jsxRuntime.jsx("circle",{cx:"246.705",cy:"51.8054",r:"5",transform:"rotate(173.661 246.705 51.8054)"}),jsxRuntime.jsx("circle",{cx:"42",cy:"48",r:"5"}),jsxRuntime.jsx("circle",{cx:"55",cy:"38",r:"5"}),jsxRuntime.jsx("circle",{cx:"73",cy:"43",r:"5"}),jsxRuntime.jsx("circle",{cx:"63",cy:"72",r:"5"}),jsxRuntime.jsx("circle",{cx:"50",cy:"86",r:"5"}),jsxRuntime.jsx("circle",{cx:"78",cy:"91",r:"5"}),jsxRuntime.jsx("circle",{cx:"73",cy:"165",r:"5"}),jsxRuntime.jsx("circle",{cx:"73",cy:"185",r:"5"}),jsxRuntime.jsx("circle",{cx:"91",cy:"170",r:"5"}),jsxRuntime.jsx("circle",{cx:"86",cy:"152",r:"5"}),jsxRuntime.jsx("circle",{cx:"148",cy:"130",r:"5"}),jsxRuntime.jsx("circle",{cx:"189",cy:"185",r:"5"}),jsxRuntime.jsx("circle",{cx:"163",cy:"107",r:"5"}),jsxRuntime.jsx("circle",{cx:"140",cy:"102",r:"5"}),jsxRuntime.jsx("circle",{cx:"117",cy:"135",r:"5"}),jsxRuntime.jsx("circle",{cx:"125",cy:"117",r:"5"}),jsxRuntime.jsx("circle",{cx:"208",cy:"198",r:"5"}),jsxRuntime.jsx("circle",{cx:"189",cy:"203",r:"5"}),jsxRuntime.jsx("circle",{cx:"198",cy:"221",r:"5"}),jsxRuntime.jsx("circle",{cx:"178",cy:"221",r:"5"}),jsxRuntime.jsx("circle",{cx:"184",cy:"239",r:"5"}),jsxRuntime.jsx("circle",{cx:"213",cy:"213",r:"5"}),jsxRuntime.jsx("circle",{cx:"173",cy:"130",r:"5"}),jsxRuntime.jsx("circle",{cx:"163",cy:"155",r:"5"}),jsxRuntime.jsx("circle",{cx:"135",cy:"155",r:"5"}),jsxRuntime.jsx("circle",{cx:"55",cy:"175",r:"5"})]})})},"GraphLoader"),Ct=Sr;var ze=typeof window<"u"&&window.devicePixelRatio||1;function Wr(r){return !r||r.length===0?[]:r.map(o=>{let c=new Image;c.src=o.img;let p=new Image;return p.src=o.hoverImg,{...o,normalImg:c,hoverImg:p}})}chunkZQO4NO5E_js.a(Wr,"prepareButtonImages");var O={fontSize:3,nodeSizeBase:30,nodeAreaFactor:2,textPaddingFactor:.9,gridSpacing:20,dotSize:1,maxZoom:4},Xr=Rt.forwardRef(({loading:r,width:o,height:c,graphData:p,buttons:h=[],onNodeClick:v,onBackgroundClick:g,onNodeHover:S,onLinkHover:I,onLinkClick:E},A)=>{let x=kr.useTheme(),[C,q]=Rt.useState(true),t=Rt.useRef({transform:{x:0,y:0,k:1},isPanning:false,hoveredNode:null,hoveredLink:null,draggedNode:null,selectedNode:null,hoveredButtonIndex:null,highlightNodes:new Set,highlightLinks:new Set,lastMousePos:{x:0,y:0},mustBeStoppedPropagation:false,mouseStartPos:null,isDragging:false,width:o*ze,height:c*ze,animation:{id:null,buttonIndex:null},spinnerAngle:0}),{nodes:$,links:Z}=Rt.useMemo(()=>Ir__default.default(p),[p]),[k,z]=Rt.useState([]),M=Rt.useRef(null),D=Rt.useRef(null),ee=Rt.useRef(null),U=d3.scaleOrdinal(d3.schemeCategory10),ue=Rt.useCallback(()=>{if(!M.current)return false;try{let e=M.current.getContext("2d");return e?(ee.current=e,!0):(console.error("Failed to get 2D context"),!1)}catch(e){return console.error("Error initializing Canvas 2D context:",e),false}},[]),J=Rt.useCallback(()=>D.current?D.current.nodes():null,[]),pe=Rt.useCallback(()=>{if(!D.current)return null;let e=D.current.force("link");return e?e.links():null},[]),he=Rt.useCallback(e=>{e.save(),e.setTransform(1,0,0,1,0,0);let{width:a,height:n}=t.current,i=O.gridSpacing,s=O.dotSize;e.fillStyle=x.graph2D.grid.dotColor;for(let u=i/2;u<=a;u+=i)for(let l=i/2;l<=n;l+=i)e.beginPath(),e.arc(u,l,s,0,2*Math.PI),e.fill();e.restore();},[x.graph2D.grid.dotColor,O.gridSpacing,O.dotSize]),De=Rt.useCallback((e,a,n)=>{if(!e)return "";if(n.measureText(e).width<=a)return e;let s=e,u="...";for(;n.measureText(s+u).width>a&&s.length>0;)s=s.slice(0,-1);return s+u},[]),ve=chunkZQO4NO5E_js.a(e=>{let n=Math.min(e,O.maxZoom)/O.maxZoom;return Math.max(O.fontSize*n,O.fontSize)},"calculateFontSize"),Pe=Rt.useCallback(e=>{let a=pe(),n=J();!a||a.length===0||!n||n.length===0||(e.lineWidth=.5,e.globalAlpha=1,a.forEach(i=>{let s=typeof i.source=="object"?i.source:n.find(ne=>ne.id===i.source),u=typeof i.target=="object"?i.target:n.find(ne=>ne.id===i.target);if(!s||!u)return;let l={x:s.x||0,y:s.y||0},d={x:u.x||0,y:u.y||0},y=d.x-l.x,b=d.y-l.y,w=Math.sqrt(y*y+b*b),j=y/w,T=b/w,X=O.nodeSizeBase/2,F=O.nodeSizeBase/2,H=4,f={x:l.x+j*X,y:l.y+T*X},N={x:d.x-j*(F+H),y:d.y-T*(F+H)},P={x:d.x-j*(F+1),y:d.y-T*(F+1)},Y=t.current.highlightLinks.has(i),W=Y?x.graph2D.link.highlighted:x.graph2D.link.normal,_=Y?1.5:.5,Q=l.x+(d.x-l.x)/2,ie=l.y+(d.y-l.y)/2,se=Math.atan2(b,y);if(i.label){let ne=t.current.transform.k,ce=ve(ne);e.font=`${ce}px Sans-Serif`;let dt=e.measureText(i.label).width,ut=10;e.beginPath(),e.moveTo(f.x,f.y);let pt=w/2-(dt+ut)/2,ht={x:l.x+j*pt,y:l.y+T*pt};e.lineTo(ht.x,ht.y),e.strokeStyle=W,e.lineWidth=_,e.stroke(),e.beginPath();let gt=w/2+(dt+ut)/2,ft={x:l.x+j*gt,y:l.y+T*gt};e.moveTo(ft.x,ft.y),e.lineTo(N.x,N.y),e.strokeStyle=W,e.lineWidth=_,e.stroke();}else e.beginPath(),e.moveTo(f.x,f.y),e.lineTo(N.x,N.y),e.strokeStyle=W,e.lineWidth=_,e.stroke();let we=2;if(e.save(),e.translate(P.x,P.y),e.rotate(se),e.beginPath(),e.moveTo(0,0),e.lineTo(-4,we),e.lineTo(-4,0),e.lineTo(-4,-2),e.closePath(),e.fillStyle=W,e.fill(),e.restore(),i.label){let ne=t.current.transform.k,ce=ve(ne);e.font=`${ce}px Sans-Serif`,e.textAlign="center",e.textBaseline="middle",e.save(),e.translate(Q,ie),Math.abs(se)>Math.PI/2?e.rotate(se+Math.PI):e.rotate(se),e.fillStyle=Y?x.graph2D.link.highlightedTextColor:x.graph2D.link.textColor,e.fillText(i.label,0,0),e.restore();}}));},[O,x.graph2D.link]),tt=chunkZQO4NO5E_js.a((e,a,n,i,s,u,l)=>{try{if(u!=null){let d=s*.8;e.font=`${d}px sans-serif`,e.textBaseline="middle",e.textAlign="left";let y=new Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:1,minimumFractionDigits:0,compactDisplay:"short"}).format(u),b=e.measureText(y).width,w=s*.3,T=(s+w+b)/2;e.drawImage(a,n-T,i-s/2,s,s),e.fillStyle=l||"#99989C",e.fillText(y,n-T+s+w,i);}else e.drawImage(a,n-s/2,i-s/2,s,s);}catch(d){console.warn("Error rendering icon:",d);}},"drawIconWithOptionalCounter"),rt=Rt.useCallback((e,a)=>{if(!k||k.length===0||!e||!e.x||!e.y)return;let{x:n,y:i}=e,s=O.nodeSizeBase*O.nodeAreaFactor/2;a.save();let u=Math.min(k.length,8),l=Math.min(Math.PI*2/u,Math.PI);for(let d=0;d<u;d++){let y=d*l,b=(d+1)*l,w=t.current.hoveredButtonIndex===d;a.beginPath(),a.arc(n,i,s,y,b,false),a.lineTo(n,i),a.closePath(),a.lineWidth=1,a.strokeStyle=x.graph2D?.button?.stroke||"#FFFFFF",a.stroke(),a.fillStyle=w?x.graph2D?.button?.hoverFill||"rgba(255, 255, 255, 0.3)":x.graph2D?.button?.normalFill||"rgba(255, 255, 255, 0.1)",a.fill();let j=s*.2,T=(y+b)/2,X=s-O.nodeSizeBase/2+j,F=n+Math.cos(T)*X,H=i+Math.sin(T)*X,f=k[d];if(f.loading){let N=j/2,P=j/12;a.save(),a.translate(F,H),a.rotate(t.current.spinnerAngle);for(let Y=0;Y<12;Y++){let W=Math.PI*2*Y/12,_=Y/12,Q=Math.cos(W)*N,ie=Math.sin(W)*N;a.beginPath(),a.fillStyle=chunkZQO4NO5E_js.l(x.graph2D?.button?.spinnerColor,_),a.arc(Q,ie,P,0,Math.PI*2),a.fill();}a.restore(),t.current.spinnerAngle+=.1,t.current.spinnerAngle>Math.PI*2&&(t.current.spinnerAngle-=Math.PI*2),t.current.animation.id!==null&&(cancelAnimationFrame(t.current.animation.id),t.current.animation.id=null,t.current.animation.buttonIndex=null),t.current.animation.id=requestAnimationFrame(V),t.current.animation.buttonIndex=d;}else {t.current.animation.id&&t.current.animation.buttonIndex===d&&(cancelAnimationFrame(t.current.animation.id),t.current.animation.id=null,t.current.animation.buttonIndex=null);let N=w?f.hoverImg:f.normalImg,P=f.getCount?f.getCount(e):null;N.complete?tt(a,N,F,H,j,P,x.graph2D?.button?.textColor):N.onload=()=>{ee.current&&tt(a,N,F,H,j,P,x.graph2D?.button?.textColor);};}}a.restore();},[k,x.graph2D?.button]),ot=Rt.useCallback(e=>{let a=J();!a||a.length===0||(e.globalAlpha=1,a.forEach(n=>{let{x:i,y:s,color:u,fontColor:l,label:d}=n,y=t.current.highlightNodes.has(n)||n===t.current.hoveredNode||n===t.current.draggedNode,b=n===t.current.selectedNode,w=O.nodeSizeBase,j=O.nodeSizeBase/2;if(y&&!b){let T=O.nodeSizeBase*O.nodeAreaFactor*.75/2;e.beginPath(),e.arc(i,s,T,0,2*Math.PI,false),e.fillStyle=x.graph2D.ring.highlightFill,e.fill();}if(b)if(h&&h.length>0)rt(n,e);else {let T=O.nodeSizeBase*O.nodeAreaFactor/2;e.beginPath(),e.arc(i,s,T,0,2*Math.PI,false),e.fillStyle=x.graph2D.ring.selectionFill||x.graph2D.ring.highlightFill,e.fill();}if(e.beginPath(),e.arc(i,s,j,0,2*Math.PI),e.fillStyle=u||U(n.group||"0"),e.fill(),d){e.save(),e.translate(i,s);let T=t.current.transform.k,X=ve(T),F=w*O.textPaddingFactor;e.font=`${X}px Sans-Serif`,e.textAlign="center",e.textBaseline="middle",e.fillStyle=l||"#000";let H=De(d,F,e);e.fillText(H,0,0),e.restore();}}));},[x.graph2D.ring,h,rt]),V=Rt.useCallback(()=>{let e=ee.current;e&&(e.clearRect(0,0,t.current.width,t.current.height),he(e),e.save(),e.setTransform(t.current.transform.k,0,0,t.current.transform.k,t.current.transform.x,t.current.transform.y),Pe(e),ot(e),e.restore());},[Pe,ot,he]),nt=Rt.useCallback((e,a=[],n)=>{let i=pe()||[],s=J()||[];if(!D.current||!e.length)return;let{width:u,height:l}=t.current,d=n?.smoothAppearance??false,y=n?.transitionDuration??1e3,b=new Set(s.map(f=>f.id)),w=e.filter(f=>!b.has(f.id)),j=new Set(i.map(f=>`${typeof f.source=="object"?f.source.id:f.source}-${typeof f.target=="object"?f.target.id:f.target}`)),T=a.filter(f=>{let N=`${typeof f.source=="object"?f.source.id:f.source}-${typeof f.target=="object"?f.target.id:f.target}`;return !j.has(N)});if(w.length===0&&T.length===0)return;let X=[...s,...w],F=[...i,...T];d&&(w.forEach(f=>{let N=T.filter(P=>{let Y=typeof P.source=="object"?P.source.id:P.source,W=typeof P.target=="object"?P.target.id:P.target;return Y===f.id&&b.has(W)||W===f.id&&b.has(Y)});if(N.length>0){let P=N[0],Y=typeof P.source=="object"?P.source.id===f.id?P.target:P.source.id:P.source===f.id?P.target:P.source,W=X.find(_=>_.id===Y);if(W&&W.x!==void 0&&W.y!==void 0){let _=30+Math.random()*20,Q=Math.random()*Math.PI*2;f.x=W.x+Math.cos(Q)*_,f.y=W.y+Math.sin(Q)*_,f.vx=0,f.vy=0;}}else {let P=u/2,Y=l/2,W=Math.min(u,l)/4,_=Math.random()*Math.PI*2;f.x=P+Math.cos(_)*(W*Math.random()),f.y=Y+Math.sin(_)*(W*Math.random()),f.vx=0,f.vy=0;}}),s.forEach(f=>{f.fx=f.x,f.fy=f.y;})),D.current.nodes(X);let H=D.current.force("link");H&&H.links(F),T.forEach(f=>{let N=typeof f.source=="object"?f.source:X.find(Y=>Y.id===f.source),P=typeof f.target=="object"?f.target:X.find(Y=>Y.id===f.target);!N||!P||(!N.neighbors&&(N.neighbors=[]),!P.neighbors&&(P.neighbors=[]),N.neighbors.push(P),P.neighbors.push(N),!N.links&&(N.links=[]),!P.links&&(P.links=[]),N.links.push(f),P.links.push(f));}),d?(D.current.alphaTarget(.3),D.current.alpha(.3),D.current.velocityDecay(.7),D.current.restart(),setTimeout(()=>{s.forEach(f=>{f.fx=void 0,f.fy=void 0;}),D.current?.alphaTarget(0),D.current?.alpha(.1),D.current?.velocityDecay(.6);},y)):D.current.alpha(.1).restart(),V();},[$,V]),at=Rt.useCallback(e=>{let a=J(),n=pe();if(!D.current||!e.length||!a||a.length===0||!n||n.length===0)return;let i=new Set(e);if(t.current.selectedNode&&t.current.selectedNode.id!==void 0&&i.has(t.current.selectedNode.id)&&(t.current.selectedNode=null),t.current.hoveredNode&&t.current.hoveredNode.id!==void 0&&i.has(t.current.hoveredNode.id)&&(t.current.hoveredNode=null,t.current.highlightNodes=new Set,t.current.highlightLinks=new Set),t.current.hoveredLink){let d=typeof t.current.hoveredLink.source=="object"?t.current.hoveredLink.source.id:t.current.hoveredLink.source,y=typeof t.current.hoveredLink.target=="object"?t.current.hoveredLink.target.id:t.current.hoveredLink.target;(d!==void 0&&i.has(d)||y!==void 0&&i.has(y))&&(t.current.hoveredLink=null,t.current.highlightNodes=new Set,t.current.highlightLinks=new Set);}t.current.draggedNode&&t.current.draggedNode.id!==void 0&&i.has(t.current.draggedNode.id)&&(t.current.draggedNode=null);let s=a.filter(d=>d.id!==void 0&&!i.has(d.id)),u=n.filter(d=>{let y=typeof d.source=="object"?d.source.id:d.source,b=typeof d.target=="object"?d.target.id:d.target;return y!==void 0&&!i.has(y)&&b!==void 0&&!i.has(b)});s.forEach(d=>{d.neighbors=[],d.links=[];}),u.forEach(d=>{let y=typeof d.source=="object"?d.source:s.find(w=>w.id===d.source),b=typeof d.target=="object"?d.target:s.find(w=>w.id===d.target);!y||!b||(y.neighbors=y.neighbors||[],b.neighbors=b.neighbors||[],y.neighbors.push(b),b.neighbors.push(y),y.links=y.links||[],b.links=b.links||[],y.links.push(d),b.links.push(d));}),D.current.nodes(s);let l=D.current.force("link");l&&l.links(u),V();},[V]),Se=Rt.useCallback((e=0,a=20)=>{let n=J();if(!ee.current||!M.current||!n||!n.length)return;let s=1/0,u=1/0,l=-1/0,d=-1/0;if(n.forEach(y=>{if(y.x===void 0||y.y===void 0)return;let b=y.x,w=y.y;s=Math.min(s,b),u=Math.min(u,w),l=Math.max(l,b),d=Math.max(d,w);}),isFinite(s)&&isFinite(l)&&isFinite(u)&&isFinite(d)){let{width:y,height:b}=t.current;s-=a,u-=a,l+=a,d+=a;let w=l-s,j=d-u,T=w>0?y/w:1,X=j>0?b/j:1,F=Math.min(T,X,10),H=s+w/2,f=u+j/2,N={k:F,x:y/2-H*F,y:b/2-f*F};if(e>0){let P={...t.current.transform},Y=Date.now(),W=chunkZQO4NO5E_js.a(()=>{let _=Math.min(1,(Date.now()-Y)/e),Q=_===1?1:1-Math.pow(1-_,3),ie={k:P.k+(N.k-P.k)*Q,x:P.x+(N.x-P.x)*Q,y:P.y+(N.y-P.y)*Q};t.current.transform=ie,V(),_<1&&requestAnimationFrame(W);},"animateZoom");requestAnimationFrame(W);}else t.current.transform=N,V();}},[]),Me=Rt.useCallback((e,a)=>{let n=J();if(!n||n.length===0)return null;let i=O.nodeSizeBase/2,s=typeof window<"u"&&window.devicePixelRatio||1,u=(e*s-t.current.transform.x)/t.current.transform.k,l=(a*s-t.current.transform.y)/t.current.transform.k;return n.find(d=>{let y=(d.x||0)-u,b=(d.y||0)-l;return Math.sqrt(y*y+b*b)<=i})||null},[]),Ne=Rt.useCallback((e,a)=>{let n=pe(),i=J();if(!n||n.length===0||!i||i.length===0)return null;let s=typeof window<"u"&&window.devicePixelRatio||1,u=(e*s-t.current.transform.x)/t.current.transform.k,l=(a*s-t.current.transform.y)/t.current.transform.k,d=5;return n.find(y=>{let b=typeof y.source=="object"?y.source:i.find(ce=>ce.id===y.source),w=typeof y.target=="object"?y.target:i.find(ce=>ce.id===y.target);if(!b||!w)return false;let j=b.x||0,T=b.y||0,X=w.x||0,F=w.y||0,H=u-j,f=l-T,N=X-j,P=F-T,Y=H*N+f*P,W=N*N+P*P;if(W===0)return false;let _=Y/W;_=Math.max(0,Math.min(1,_));let Q=j+_*N,ie=T+_*P,se=u-Q,we=l-ie;return Math.sqrt(se*se+we*we)<=d})||null},[]),it=Rt.useCallback((e,a,n,i,s,u,l)=>{let d=e-n,y=a-i,b=Math.sqrt(d*d+y*y),w=Math.atan2(y,d);w<0&&(w+=2*Math.PI);let X=b>=s*.5&&b<=s*1,F=false;return u===Math.PI&&l===Math.PI*2?F=w>=Math.PI&&w<=Math.PI*2:u===0&&l===Math.PI?F=w>=0&&w<=Math.PI:F=u<=l&&w>=u&&w<=l||u>l&&(w>=u||w<=l),X&&F},[]),Ae=Rt.useCallback(e=>{if(e===t.current.hoveredNode)return;let a=new Set,n=new Set;e&&(a.add(e),e.neighbors&&e.neighbors.forEach(i=>a.add(i)),e.links&&e.links.forEach(i=>n.add(i))),t.current.hoveredNode=e,S&&S(e),t.current.highlightNodes=a,t.current.highlightLinks=n;},[S]),$e=Rt.useCallback(e=>{if(e===t.current.hoveredLink)return;let a=new Set,n=new Set;if(e){n.add(e);let i=J();if(i){let s=typeof e.source=="object"?e.source:i.find(l=>l.id===e.source),u=typeof e.target=="object"?e.target:i.find(l=>l.id===e.target);s&&a.add(s),u&&a.add(u);}}t.current.hoveredLink=e,I&&I(e),t.current.highlightNodes=a,t.current.highlightLinks=n;},[I,J]),st=Rt.useCallback(e=>{E&&E(e);},[E]),ct=Rt.useCallback(e=>{t.current.selectedNode=e,v&&v(e);},[v]),lt=Rt.useCallback(()=>{t.current.selectedNode=null,g&&g();},[g]),He=Rt.useCallback(e=>{if(!M.current||!D.current)return;let a=M.current.getBoundingClientRect(),n=e.clientX-a.left,i=e.clientY-a.top;t.current.mouseStartPos={x:n,y:i},t.current.isDragging=false;let s=Me(n,i);s?(t.current.draggedNode=s,s.fx=s.x,s.fy=s.y):(t.current.isPanning=true,t.current.lastMousePos={x:n,y:i});},[Me]),Ce=Rt.useCallback((e,a)=>{let n=null;if(M.current&&t.current&&k.length>0){let i=O.nodeSizeBase*O.nodeAreaFactor/2,s=M.current.getBoundingClientRect(),u=M.current.width/s.width,l=M.current.height/s.height,d=e*u,y=a*l,b=(d-t.current.transform.x)/t.current.transform.k,w=(y-t.current.transform.y)/t.current.transform.k,j=t.current.selectedNode?.x||0,T=t.current.selectedNode?.y||0,X=Math.min(k.length,8),F=Math.min(Math.PI*2/X,Math.PI);for(let H=0;H<X;H++){let f=H*F,N=(H+1)*F;if(it(b,w,j,T,i,f,N)){n=H;break}}}return n},[k]),We=Rt.useCallback(e=>{if(!M.current)return;let a=M.current.getBoundingClientRect(),n=e.clientX-a.left,i=e.clientY-a.top;if(t.current.draggedNode&&t.current.mouseStartPos&&D.current){let l=t.current.mouseStartPos.x,d=t.current.mouseStartPos.y,y=n-l,b=i-d;Math.sqrt(y*y+b*b)>3&&(t.current.isDragging=true,D.current.alphaTarget()===0&&D.current.alphaTarget(0).restart());let T=typeof window<"u"&&window.devicePixelRatio||1,X=(n*T-t.current.transform.x)/t.current.transform.k,F=(i*T-t.current.transform.y)/t.current.transform.k;t.current.draggedNode.fx=X,t.current.draggedNode.fy=F;return}if(t.current.isPanning&&t.current.mouseStartPos){let l=n-t.current.lastMousePos.x,d=i-t.current.lastMousePos.y,y=t.current.mouseStartPos.x,b=t.current.mouseStartPos.y;Math.sqrt(Math.pow(n-y,2)+Math.pow(i-b,2))>3&&(t.current.isDragging=true),t.current.transform={...t.current.transform,x:t.current.transform.x+l,y:t.current.transform.y+d},t.current.lastMousePos={x:n,y:i},V();return}let s,u;if(t.current.selectedNode&&M.current&&k.length>0){let l=Ce(n,i);l!==null&&(u=t.current.selectedNode),l!==t.current.hoveredButtonIndex&&(s=true),t.current.hoveredButtonIndex=l;}else t.current.hoveredButtonIndex!==null&&(t.current.hoveredButtonIndex=null);if(!u&&(u=Me(n,i),!u)){let l=Ne(n,i),d=l!==t.current.hoveredLink;if(l&&t.current.hoveredNode&&Ae(null),$e(l),M.current&&(M.current.style.cursor=l?"pointer":"default"),d){V();return}}u&&t.current.hoveredLink&&$e(null),u!==t.current.hoveredNode&&(s=true),Ae(u),M.current&&(M.current.style.cursor=u?"pointer":"default"),s&&V();},[k,Me,Ne,Ae,$e,V,it,Ce]),tr=Rt.useCallback(e=>{t.current.mustBeStoppedPropagation&&(e.stopPropagation(),e.preventDefault()),t.current.mustBeStoppedPropagation=false;},[]),Te=Rt.useCallback(e=>{let a=t.current.isDragging;if(a&&(t.current.mustBeStoppedPropagation=true),!a&&t.current.mouseStartPos){let n=M.current?.getBoundingClientRect();if(n){let i=e.clientX-n.left,s=e.clientY-n.top;k.length>0&&t.current.hoveredButtonIndex===null&&(t.current.hoveredButtonIndex=Ce(i,s));let u=false;if(t.current.selectedNode&&t.current.hoveredButtonIndex!==null&&h[t.current.hoveredButtonIndex]){let l=h[t.current.hoveredButtonIndex];l&&l.onClick&&(l.onClick(t.current.selectedNode),u=true,t.current.hoveredButtonIndex=null);}if(!u&&t.current.draggedNode)ct(t.current.draggedNode);else if(!u&&!t.current.draggedNode){let l=Ne(i,s);l?st(l):lt();}}}if(t.current.draggedNode&&D.current){if(a){D.current.alphaTarget(0);let n=.05,i=.04,s=.6;D.current.alpha(n).alphaDecay(i),D.current.velocityDecay(s);}else D.current.alphaTarget(0);t.current.draggedNode.fx=void 0,t.current.draggedNode.fy=void 0,t.current.draggedNode=null;}t.current.isDragging=false,t.current.mouseStartPos=null,t.current.isPanning&&(t.current.isPanning=false),V();},[h,V,ct,lt,Ne,st,Ce,k]),Xe=Rt.useCallback(e=>{if(e.stopPropagation(),e.preventDefault(),!M.current)return;let a=M.current.getBoundingClientRect(),n=e.clientX-a.left,i=e.clientY-a.top,u=-e.deltaY>0?1.1:1/1.1,l=t.current.transform,d=l.k*u;if(d<.01||d>10)return;let y=l.k*u,b=n-(n-l.x)*u,w=i-(i-l.y)*u;t.current.transform={k:y,x:b,y:w},V();},[V]),Ye=chunkZQO4NO5E_js.a((e,a)=>{let n=e.touches[0];if(n){let i={clientX:n.clientX,clientY:n.clientY};a(i);}},"convertTouchToMouseEvent"),rr=Rt.useCallback(e=>{Ye(e,He);},[He]),_e=Rt.useCallback(e=>{t.current.mustBeStoppedPropagation&&(e.preventDefault(),e.stopPropagation()),t.current.mustBeStoppedPropagation=false,Ye(e,Te);},[Te]),or=Rt.useCallback(e=>{Ye(e,We);},[We]);return Rt.useImperativeHandle(A,()=>({zoomToFit:Se,addNodes:nt,removeNodes:at}),[Se,nt,at]),Rt.useEffect(()=>{let e=M.current,{width:a,height:n}=t.current;if(!e)return;ue(),q(true);let i=a/2,s=n/2,u=O.nodeSizeBase,l=u/2,d=u*2.5;D.current&&D.current.stop();let y=D.current=d3.forceSimulation($).force("link",d3.forceLink(Z).id(b=>b.id).distance(d).strength(.9)).force("charge",d3.forceManyBody().strength(-u/10*200).theta(.5).distanceMin(u*2)).force("x",d3.forceX().strength(.03)).force("y",d3.forceY().strength(.03)).force("center",d3.forceCenter(i,s).strength(.05)).force("collide",d3.forceCollide().radius(l*2).iterations(2).strength(1)).velocityDecay(.6);return ()=>{y.stop();}},[$,Z]),Rt.useLayoutEffect(()=>{let e=M.current;e&&(t.current.width=o*ze,t.current.height=c*ze,e.width=t.current.width,e.height=t.current.height);},[o,c]),Rt.useEffect(()=>{if(D.current){let e=D.current;e.on("tick",()=>{V();}),e.on("end",()=>{C&&(Se(0,20),setTimeout(()=>{q(false);},200));});}C||V();},[$,Z,C,V,Se]),Rt.useEffect(()=>{!$||!Z||Z.forEach(e=>{let a=typeof e.source=="object"?e.source:$.find(i=>i.id===e.source),n=typeof e.target=="object"?e.target:$.find(i=>i.id===e.target);!a||!n||(!a.neighbors&&(a.neighbors=[]),!n.neighbors&&(n.neighbors=[]),a.neighbors.push(n),n.neighbors.push(a),!a.links&&(a.links=[]),!n.links&&(n.links=[]),a.links.push(e),n.links.push(e));});},[$,Z]),Rt.useEffect(()=>{h&&h.length>0&&z(Wr(h));},[h]),Rt.useEffect(()=>{let e=M.current;if(!(!e||typeof window>"u"))return e.addEventListener("wheel",Xe,{passive:false}),e.addEventListener("touchend",_e,{passive:false}),()=>{e.removeEventListener("wheel",Xe),e.removeEventListener("touchend",_e);}},[Xe,_e]),jsxRuntime.jsxs(Yr,{children:[(r||C)&&jsxRuntime.jsx(Ct,{width:o,height:c}),jsxRuntime.jsx(_r,{ref:M,style:{width:o,height:c,display:r||C?"none":"block"},onMouseDown:He,onMouseMove:We,onMouseUp:Te,onMouseLeave:Te,onClick:tr,onTouchStart:rr,onTouchMove:or})]})}),Yr=kr.styled.div`
47
+ `,Sr=chunkZQO4NO5E_js.a(({width:r=280,height:o=280})=>{let c=kr.useTheme();return jsxRuntime.jsx(Pr,{children:jsxRuntime.jsxs(xr__default.default,{foregroundColor:c.contentLoader.foreground,backgroundColor:c.contentLoader.background,width:r,height:o,viewBox:"0 0 280 280",children:[jsxRuntime.jsx("path",{d:"m55 38-0.97266 0.22852 7.0801 30.092-18.355-20.979-0.75195 0.6582 19.596 22.395 0.43164 1.834 0.97266-0.22852 0.75195-0.6582-0.37695-0.42969 9.625-27.912-0.94531-0.32617-9.4375 27.371-0.10547-0.12109zm8 34-0.78516 0.61914 0.0957 0.12305-12.311 13.258 0.73242 0.67969 12.205-13.145 14.277 18.084 0.78516-0.61914-14.373-18.207 0.10547-0.11328zm15 19-0.48438 0.875 46.992 25.996 8e-3 4e-3 20.506 11.592-28.182 4.5449 0.15998 0.98819 29.418-4.7441 0.25 0.14062-12.555 24.143 0.88672 0.46094 13-25 15 25 26 30v18l-11 18 0.85352 0.52148 9.8008-16.039-4.6543 33.518 0.99023 0.13867 4.7793-34.408 7.2305 16.27 0.91406-0.40625-7.9141-17.807v-17.104l18 12.316 0.56445-0.82617-18.896-12.928-25.855-29.836-14.633-24.387 0.01562-0.02344h23.805v-1h-23.152l13.848-21.234 55.201-28.791-0.45898-0.88476 0.77734 0.62305 11.402-14.25 16.668-11.842-0.58008-0.81641-16.785 11.928-11.486 14.355-55.434 28.912-14.277 21.893-7.7617-27.166-0.96094 0.27344 7.7227 27.031-1.1191 0.17969-21.604-12.211zm140.43-12.912-6.957-17.338-0.92773 0.37305 6.957 17.338zm-6.957-17.338 0.72266 0.69336 16.232-16.896-0.7207-0.69336zm-3.4766 137.25 5 15 0.94922-0.31641-5-15zm-91-63-0.48047-0.87695-31 17 0.48047 0.87695zm-31 17 5 18 0.96289-0.26758-5-18zm0 0-0.70703-0.70703-12.898 12.898-17.881 9.9336 0.48633 0.875 18-10zm5 18-0.64062-0.76758-18 15 0.64062 0.76758z"}),jsxRuntime.jsx("circle",{cx:"229.92",cy:"63.7318",r:"5",transform:"rotate(173.661 229.92 63.7318)"}),jsxRuntime.jsx("circle",{cx:"227.711",cy:"43.8541",r:"5",transform:"rotate(173.661 227.711 43.8541)"}),jsxRuntime.jsx("circle",{cx:"211.478",cy:"60.7499",r:"5",transform:"rotate(173.661 211.478 60.7499)"}),jsxRuntime.jsx("circle",{cx:"218.434",cy:"78.0877",r:"5",transform:"rotate(173.661 218.434 78.0877)"}),jsxRuntime.jsx("circle",{cx:"246.705",cy:"51.8054",r:"5",transform:"rotate(173.661 246.705 51.8054)"}),jsxRuntime.jsx("circle",{cx:"42",cy:"48",r:"5"}),jsxRuntime.jsx("circle",{cx:"55",cy:"38",r:"5"}),jsxRuntime.jsx("circle",{cx:"73",cy:"43",r:"5"}),jsxRuntime.jsx("circle",{cx:"63",cy:"72",r:"5"}),jsxRuntime.jsx("circle",{cx:"50",cy:"86",r:"5"}),jsxRuntime.jsx("circle",{cx:"78",cy:"91",r:"5"}),jsxRuntime.jsx("circle",{cx:"73",cy:"165",r:"5"}),jsxRuntime.jsx("circle",{cx:"73",cy:"185",r:"5"}),jsxRuntime.jsx("circle",{cx:"91",cy:"170",r:"5"}),jsxRuntime.jsx("circle",{cx:"86",cy:"152",r:"5"}),jsxRuntime.jsx("circle",{cx:"148",cy:"130",r:"5"}),jsxRuntime.jsx("circle",{cx:"189",cy:"185",r:"5"}),jsxRuntime.jsx("circle",{cx:"163",cy:"107",r:"5"}),jsxRuntime.jsx("circle",{cx:"140",cy:"102",r:"5"}),jsxRuntime.jsx("circle",{cx:"117",cy:"135",r:"5"}),jsxRuntime.jsx("circle",{cx:"125",cy:"117",r:"5"}),jsxRuntime.jsx("circle",{cx:"208",cy:"198",r:"5"}),jsxRuntime.jsx("circle",{cx:"189",cy:"203",r:"5"}),jsxRuntime.jsx("circle",{cx:"198",cy:"221",r:"5"}),jsxRuntime.jsx("circle",{cx:"178",cy:"221",r:"5"}),jsxRuntime.jsx("circle",{cx:"184",cy:"239",r:"5"}),jsxRuntime.jsx("circle",{cx:"213",cy:"213",r:"5"}),jsxRuntime.jsx("circle",{cx:"173",cy:"130",r:"5"}),jsxRuntime.jsx("circle",{cx:"163",cy:"155",r:"5"}),jsxRuntime.jsx("circle",{cx:"135",cy:"155",r:"5"}),jsxRuntime.jsx("circle",{cx:"55",cy:"175",r:"5"})]})})},"GraphLoader"),Ct=Sr;var je=typeof window<"u"&&window.devicePixelRatio||1;function Wr(r){return !r||r.length===0?[]:r.map(o=>{let c=new Image;c.src=o.img;let p=new Image;return p.src=o.hoverImg,{...o,normalImg:c,hoverImg:p}})}chunkZQO4NO5E_js.a(Wr,"prepareButtonImages");var O={fontSize:3,nodeSizeBase:30,nodeAreaFactor:2,textPaddingFactor:.9,gridSpacing:20,dotSize:1,maxZoom:4},Xr=Rt.forwardRef(({loading:r,width:o,height:c,graphData:p,buttons:h=[],onNodeClick:v,onBackgroundClick:g,onNodeHover:S,onLinkHover:I,onLinkClick:E},A)=>{let x=kr.useTheme(),[C,q]=Rt.useState(true),t=Rt.useRef({transform:{x:0,y:0,k:1},isPanning:false,hoveredNode:null,hoveredLink:null,draggedNode:null,selectedNode:null,hoveredButtonIndex:null,highlightNodes:new Set,highlightLinks:new Set,lastMousePos:{x:0,y:0},mustBeStoppedPropagation:false,mouseStartPos:null,isDragging:false,width:o*je,height:c*je,animation:{id:null,buttonIndex:null},spinnerAngle:0}),{nodes:$,links:Z}=Rt.useMemo(()=>Ir__default.default(p),[p]),[k,j]=Rt.useState([]),M=Rt.useRef(null),D=Rt.useRef(null),ee=Rt.useRef(null),U=d3.scaleOrdinal(d3.schemeCategory10),ue=Rt.useCallback(()=>{if(!M.current)return false;try{let e=M.current.getContext("2d");return e?(ee.current=e,!0):(console.error("Failed to get 2D context"),!1)}catch(e){return console.error("Error initializing Canvas 2D context:",e),false}},[]),J=Rt.useCallback(()=>D.current?D.current.nodes():null,[]),pe=Rt.useCallback(()=>{if(!D.current)return null;let e=D.current.force("link");return e?e.links():null},[]),he=Rt.useCallback(e=>{e.save(),e.setTransform(1,0,0,1,0,0);let{width:a,height:n}=t.current,i=O.gridSpacing,s=O.dotSize;e.fillStyle=x.graph2D.grid.dotColor;for(let u=i/2;u<=a;u+=i)for(let l=i/2;l<=n;l+=i)e.beginPath(),e.arc(u,l,s,0,2*Math.PI),e.fill();e.restore();},[x.graph2D.grid.dotColor,O.gridSpacing,O.dotSize]),De=Rt.useCallback((e,a,n)=>{if(!e)return "";if(n.measureText(e).width<=a)return e;let s=e,u="...";for(;n.measureText(s+u).width>a&&s.length>0;)s=s.slice(0,-1);return s+u},[]),ve=chunkZQO4NO5E_js.a(e=>{let n=Math.min(e,O.maxZoom)/O.maxZoom;return Math.max(O.fontSize*n,O.fontSize)},"calculateFontSize"),Pe=Rt.useCallback(e=>{let a=pe(),n=J();!a||a.length===0||!n||n.length===0||(e.lineWidth=.5,e.globalAlpha=1,a.forEach(i=>{let s=typeof i.source=="object"?i.source:n.find(ne=>ne.id===i.source),u=typeof i.target=="object"?i.target:n.find(ne=>ne.id===i.target);if(!s||!u)return;let l={x:s.x||0,y:s.y||0},d={x:u.x||0,y:u.y||0},y=d.x-l.x,b=d.y-l.y,w=Math.sqrt(y*y+b*b),z=y/w,T=b/w,X=O.nodeSizeBase/2,F=O.nodeSizeBase/2,H=4,f={x:l.x+z*X,y:l.y+T*X},N={x:d.x-z*(F+H),y:d.y-T*(F+H)},P={x:d.x-z*(F+1),y:d.y-T*(F+1)},Y=t.current.highlightLinks.has(i),W=Y?x.graph2D.link.highlighted:x.graph2D.link.normal,_=Y?1.5:.5,Q=l.x+(d.x-l.x)/2,ie=l.y+(d.y-l.y)/2,se=Math.atan2(b,y);if(i.label){let ne=t.current.transform.k,ce=ve(ne);e.font=`${ce}px Sans-Serif`;let dt=e.measureText(i.label).width,ut=10;e.beginPath(),e.moveTo(f.x,f.y);let pt=w/2-(dt+ut)/2,ht={x:l.x+z*pt,y:l.y+T*pt};e.lineTo(ht.x,ht.y),e.strokeStyle=W,e.lineWidth=_,e.stroke(),e.beginPath();let gt=w/2+(dt+ut)/2,ft={x:l.x+z*gt,y:l.y+T*gt};e.moveTo(ft.x,ft.y),e.lineTo(N.x,N.y),e.strokeStyle=W,e.lineWidth=_,e.stroke();}else e.beginPath(),e.moveTo(f.x,f.y),e.lineTo(N.x,N.y),e.strokeStyle=W,e.lineWidth=_,e.stroke();let we=2;if(e.save(),e.translate(P.x,P.y),e.rotate(se),e.beginPath(),e.moveTo(0,0),e.lineTo(-4,we),e.lineTo(-4,0),e.lineTo(-4,-2),e.closePath(),e.fillStyle=W,e.fill(),e.restore(),i.label){let ne=t.current.transform.k,ce=ve(ne);e.font=`${ce}px Sans-Serif`,e.textAlign="center",e.textBaseline="middle",e.save(),e.translate(Q,ie),Math.abs(se)>Math.PI/2?e.rotate(se+Math.PI):e.rotate(se),e.fillStyle=Y?x.graph2D.link.highlightedTextColor:x.graph2D.link.textColor,e.fillText(i.label,0,0),e.restore();}}));},[O,x.graph2D.link]),tt=chunkZQO4NO5E_js.a((e,a,n,i,s,u,l)=>{try{if(u!=null){let d=s*.8;e.font=`${d}px sans-serif`,e.textBaseline="middle",e.textAlign="left";let y=new Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:1,minimumFractionDigits:0,compactDisplay:"short"}).format(u),b=e.measureText(y).width,w=s*.3,T=(s+w+b)/2;e.drawImage(a,n-T,i-s/2,s,s),e.fillStyle=l||"#99989C",e.fillText(y,n-T+s+w,i);}else e.drawImage(a,n-s/2,i-s/2,s,s);}catch(d){console.warn("Error rendering icon:",d);}},"drawIconWithOptionalCounter"),rt=Rt.useCallback((e,a)=>{if(!k||k.length===0||!e||!e.x||!e.y)return;let{x:n,y:i}=e,s=O.nodeSizeBase*O.nodeAreaFactor/2;a.save();let u=Math.min(k.length,8),l=Math.min(Math.PI*2/u,Math.PI);for(let d=0;d<u;d++){let y=d*l,b=(d+1)*l,w=t.current.hoveredButtonIndex===d;a.beginPath(),a.arc(n,i,s,y,b,false),a.lineTo(n,i),a.closePath(),a.lineWidth=1,a.strokeStyle=x.graph2D?.button?.stroke||"#FFFFFF",a.stroke(),a.fillStyle=w?x.graph2D?.button?.hoverFill||"rgba(255, 255, 255, 0.3)":x.graph2D?.button?.normalFill||"rgba(255, 255, 255, 0.1)",a.fill();let z=s*.2,T=(y+b)/2,X=s-O.nodeSizeBase/2+z,F=n+Math.cos(T)*X,H=i+Math.sin(T)*X,f=k[d];if(f.loading){let N=z/2,P=z/12;a.save(),a.translate(F,H),a.rotate(t.current.spinnerAngle);for(let Y=0;Y<12;Y++){let W=Math.PI*2*Y/12,_=Y/12,Q=Math.cos(W)*N,ie=Math.sin(W)*N;a.beginPath(),a.fillStyle=chunkZQO4NO5E_js.l(x.graph2D?.button?.spinnerColor,_),a.arc(Q,ie,P,0,Math.PI*2),a.fill();}a.restore(),t.current.spinnerAngle+=.1,t.current.spinnerAngle>Math.PI*2&&(t.current.spinnerAngle-=Math.PI*2),t.current.animation.id!==null&&(cancelAnimationFrame(t.current.animation.id),t.current.animation.id=null,t.current.animation.buttonIndex=null),t.current.animation.id=requestAnimationFrame(V),t.current.animation.buttonIndex=d;}else {t.current.animation.id&&t.current.animation.buttonIndex===d&&(cancelAnimationFrame(t.current.animation.id),t.current.animation.id=null,t.current.animation.buttonIndex=null);let N=w?f.hoverImg:f.normalImg,P=f.getCount?f.getCount(e):null;N.complete?tt(a,N,F,H,z,P,x.graph2D?.button?.textColor):N.onload=()=>{ee.current&&tt(a,N,F,H,z,P,x.graph2D?.button?.textColor);};}}a.restore();},[k,x.graph2D?.button]),ot=Rt.useCallback(e=>{let a=J();!a||a.length===0||(e.globalAlpha=1,a.forEach(n=>{let{x:i,y:s,color:u,fontColor:l,label:d}=n,y=t.current.highlightNodes.has(n)||n===t.current.hoveredNode||n===t.current.draggedNode,b=n===t.current.selectedNode,w=O.nodeSizeBase,z=O.nodeSizeBase/2;if(y&&!b){let T=O.nodeSizeBase*O.nodeAreaFactor*.75/2;e.beginPath(),e.arc(i,s,T,0,2*Math.PI,false),e.fillStyle=x.graph2D.ring.highlightFill,e.fill();}if(b)if(h&&h.length>0)rt(n,e);else {let T=O.nodeSizeBase*O.nodeAreaFactor/2;e.beginPath(),e.arc(i,s,T,0,2*Math.PI,false),e.fillStyle=x.graph2D.ring.selectionFill||x.graph2D.ring.highlightFill,e.fill();}if(e.beginPath(),e.arc(i,s,z,0,2*Math.PI),e.fillStyle=u||U(n.group||"0"),e.fill(),d){e.save(),e.translate(i,s);let T=t.current.transform.k,X=ve(T),F=w*O.textPaddingFactor;e.font=`${X}px Sans-Serif`,e.textAlign="center",e.textBaseline="middle",e.fillStyle=l||"#000";let H=De(d,F,e);e.fillText(H,0,0),e.restore();}}));},[x.graph2D.ring,h,rt]),V=Rt.useCallback(()=>{let e=ee.current;e&&(e.clearRect(0,0,t.current.width,t.current.height),he(e),e.save(),e.setTransform(t.current.transform.k,0,0,t.current.transform.k,t.current.transform.x,t.current.transform.y),Pe(e),ot(e),e.restore());},[Pe,ot,he]),nt=Rt.useCallback((e,a=[],n)=>{let i=pe()||[],s=J()||[];if(!D.current||!e.length)return;let{width:u,height:l}=t.current,d=n?.smoothAppearance??false,y=n?.transitionDuration??1e3,b=new Set(s.map(f=>f.id)),w=e.filter(f=>!b.has(f.id)),z=new Set(i.map(f=>`${typeof f.source=="object"?f.source.id:f.source}-${typeof f.target=="object"?f.target.id:f.target}`)),T=a.filter(f=>{let N=`${typeof f.source=="object"?f.source.id:f.source}-${typeof f.target=="object"?f.target.id:f.target}`;return !z.has(N)});if(w.length===0&&T.length===0)return;let X=[...s,...w],F=[...i,...T];d&&(w.forEach(f=>{let N=T.filter(P=>{let Y=typeof P.source=="object"?P.source.id:P.source,W=typeof P.target=="object"?P.target.id:P.target;return Y===f.id&&b.has(W)||W===f.id&&b.has(Y)});if(N.length>0){let P=N[0],Y=typeof P.source=="object"?P.source.id===f.id?P.target:P.source.id:P.source===f.id?P.target:P.source,W=X.find(_=>_.id===Y);if(W&&W.x!==void 0&&W.y!==void 0){let _=30+Math.random()*20,Q=Math.random()*Math.PI*2;f.x=W.x+Math.cos(Q)*_,f.y=W.y+Math.sin(Q)*_,f.vx=0,f.vy=0;}}else {let P=u/2,Y=l/2,W=Math.min(u,l)/4,_=Math.random()*Math.PI*2;f.x=P+Math.cos(_)*(W*Math.random()),f.y=Y+Math.sin(_)*(W*Math.random()),f.vx=0,f.vy=0;}}),s.forEach(f=>{f.fx=f.x,f.fy=f.y;})),D.current.nodes(X);let H=D.current.force("link");H&&H.links(F),T.forEach(f=>{let N=typeof f.source=="object"?f.source:X.find(Y=>Y.id===f.source),P=typeof f.target=="object"?f.target:X.find(Y=>Y.id===f.target);!N||!P||(!N.neighbors&&(N.neighbors=[]),!P.neighbors&&(P.neighbors=[]),N.neighbors.push(P),P.neighbors.push(N),!N.links&&(N.links=[]),!P.links&&(P.links=[]),N.links.push(f),P.links.push(f));}),d?(D.current.alphaTarget(.3),D.current.alpha(.3),D.current.velocityDecay(.7),D.current.restart(),setTimeout(()=>{s.forEach(f=>{f.fx=void 0,f.fy=void 0;}),D.current?.alphaTarget(0),D.current?.alpha(.1),D.current?.velocityDecay(.6);},y)):D.current.alpha(.1).restart(),V();},[$,V]),at=Rt.useCallback(e=>{let a=J(),n=pe();if(!D.current||!e.length||!a||a.length===0||!n||n.length===0)return;let i=new Set(e);if(t.current.selectedNode&&t.current.selectedNode.id!==void 0&&i.has(t.current.selectedNode.id)&&(t.current.selectedNode=null),t.current.hoveredNode&&t.current.hoveredNode.id!==void 0&&i.has(t.current.hoveredNode.id)&&(t.current.hoveredNode=null,t.current.highlightNodes=new Set,t.current.highlightLinks=new Set),t.current.hoveredLink){let d=typeof t.current.hoveredLink.source=="object"?t.current.hoveredLink.source.id:t.current.hoveredLink.source,y=typeof t.current.hoveredLink.target=="object"?t.current.hoveredLink.target.id:t.current.hoveredLink.target;(d!==void 0&&i.has(d)||y!==void 0&&i.has(y))&&(t.current.hoveredLink=null,t.current.highlightNodes=new Set,t.current.highlightLinks=new Set);}t.current.draggedNode&&t.current.draggedNode.id!==void 0&&i.has(t.current.draggedNode.id)&&(t.current.draggedNode=null);let s=a.filter(d=>d.id!==void 0&&!i.has(d.id)),u=n.filter(d=>{let y=typeof d.source=="object"?d.source.id:d.source,b=typeof d.target=="object"?d.target.id:d.target;return y!==void 0&&!i.has(y)&&b!==void 0&&!i.has(b)});s.forEach(d=>{d.neighbors=[],d.links=[];}),u.forEach(d=>{let y=typeof d.source=="object"?d.source:s.find(w=>w.id===d.source),b=typeof d.target=="object"?d.target:s.find(w=>w.id===d.target);!y||!b||(y.neighbors=y.neighbors||[],b.neighbors=b.neighbors||[],y.neighbors.push(b),b.neighbors.push(y),y.links=y.links||[],b.links=b.links||[],y.links.push(d),b.links.push(d));}),D.current.nodes(s);let l=D.current.force("link");l&&l.links(u),V();},[V]),Se=Rt.useCallback((e=0,a=20)=>{let n=J();if(!ee.current||!M.current||!n||!n.length)return;let s=1/0,u=1/0,l=-1/0,d=-1/0;if(n.forEach(y=>{if(y.x===void 0||y.y===void 0)return;let b=y.x,w=y.y;s=Math.min(s,b),u=Math.min(u,w),l=Math.max(l,b),d=Math.max(d,w);}),isFinite(s)&&isFinite(l)&&isFinite(u)&&isFinite(d)){let{width:y,height:b}=t.current;s-=a,u-=a,l+=a,d+=a;let w=l-s,z=d-u,T=w>0?y/w:1,X=z>0?b/z:1,F=Math.min(T,X,10),H=s+w/2,f=u+z/2,N={k:F,x:y/2-H*F,y:b/2-f*F};if(e>0){let P={...t.current.transform},Y=Date.now(),W=chunkZQO4NO5E_js.a(()=>{let _=Math.min(1,(Date.now()-Y)/e),Q=_===1?1:1-Math.pow(1-_,3),ie={k:P.k+(N.k-P.k)*Q,x:P.x+(N.x-P.x)*Q,y:P.y+(N.y-P.y)*Q};t.current.transform=ie,V(),_<1&&requestAnimationFrame(W);},"animateZoom");requestAnimationFrame(W);}else t.current.transform=N,V();}},[]),Me=Rt.useCallback((e,a)=>{let n=J();if(!n||n.length===0)return null;let i=O.nodeSizeBase/2,s=typeof window<"u"&&window.devicePixelRatio||1,u=(e*s-t.current.transform.x)/t.current.transform.k,l=(a*s-t.current.transform.y)/t.current.transform.k;return n.find(d=>{let y=(d.x||0)-u,b=(d.y||0)-l;return Math.sqrt(y*y+b*b)<=i})||null},[]),Ne=Rt.useCallback((e,a)=>{let n=pe(),i=J();if(!n||n.length===0||!i||i.length===0)return null;let s=typeof window<"u"&&window.devicePixelRatio||1,u=(e*s-t.current.transform.x)/t.current.transform.k,l=(a*s-t.current.transform.y)/t.current.transform.k,d=5;return n.find(y=>{let b=typeof y.source=="object"?y.source:i.find(ce=>ce.id===y.source),w=typeof y.target=="object"?y.target:i.find(ce=>ce.id===y.target);if(!b||!w)return false;let z=b.x||0,T=b.y||0,X=w.x||0,F=w.y||0,H=u-z,f=l-T,N=X-z,P=F-T,Y=H*N+f*P,W=N*N+P*P;if(W===0)return false;let _=Y/W;_=Math.max(0,Math.min(1,_));let Q=z+_*N,ie=T+_*P,se=u-Q,we=l-ie;return Math.sqrt(se*se+we*we)<=d})||null},[]),it=Rt.useCallback((e,a,n,i,s,u,l)=>{let d=e-n,y=a-i,b=Math.sqrt(d*d+y*y),w=Math.atan2(y,d);w<0&&(w+=2*Math.PI);let X=b>=s*.5&&b<=s*1,F=false;return u===Math.PI&&l===Math.PI*2?F=w>=Math.PI&&w<=Math.PI*2:u===0&&l===Math.PI?F=w>=0&&w<=Math.PI:F=u<=l&&w>=u&&w<=l||u>l&&(w>=u||w<=l),X&&F},[]),Ae=Rt.useCallback(e=>{if(e===t.current.hoveredNode)return;let a=new Set,n=new Set;e&&(a.add(e),e.neighbors&&e.neighbors.forEach(i=>a.add(i)),e.links&&e.links.forEach(i=>n.add(i))),t.current.hoveredNode=e,S&&S(e),t.current.highlightNodes=a,t.current.highlightLinks=n;},[S]),$e=Rt.useCallback(e=>{if(e===t.current.hoveredLink)return;let a=new Set,n=new Set;if(e){n.add(e);let i=J();if(i){let s=typeof e.source=="object"?e.source:i.find(l=>l.id===e.source),u=typeof e.target=="object"?e.target:i.find(l=>l.id===e.target);s&&a.add(s),u&&a.add(u);}}t.current.hoveredLink=e,I&&I(e),t.current.highlightNodes=a,t.current.highlightLinks=n;},[I,J]),st=Rt.useCallback(e=>{E&&E(e);},[E]),ct=Rt.useCallback(e=>{t.current.selectedNode=e,v&&v(e);},[v]),lt=Rt.useCallback(()=>{t.current.selectedNode=null,g&&g();},[g]),He=Rt.useCallback(e=>{if(!M.current||!D.current)return;let a=M.current.getBoundingClientRect(),n=e.clientX-a.left,i=e.clientY-a.top;t.current.mouseStartPos={x:n,y:i},t.current.isDragging=false;let s=Me(n,i);s?(t.current.draggedNode=s,s.fx=s.x,s.fy=s.y):(t.current.isPanning=true,t.current.lastMousePos={x:n,y:i});},[Me]),Ce=Rt.useCallback((e,a)=>{let n=null;if(M.current&&t.current&&k.length>0){let i=O.nodeSizeBase*O.nodeAreaFactor/2,s=M.current.getBoundingClientRect(),u=M.current.width/s.width,l=M.current.height/s.height,d=e*u,y=a*l,b=(d-t.current.transform.x)/t.current.transform.k,w=(y-t.current.transform.y)/t.current.transform.k,z=t.current.selectedNode?.x||0,T=t.current.selectedNode?.y||0,X=Math.min(k.length,8),F=Math.min(Math.PI*2/X,Math.PI);for(let H=0;H<X;H++){let f=H*F,N=(H+1)*F;if(it(b,w,z,T,i,f,N)){n=H;break}}}return n},[k]),We=Rt.useCallback(e=>{if(!M.current)return;let a=M.current.getBoundingClientRect(),n=e.clientX-a.left,i=e.clientY-a.top;if(t.current.draggedNode&&t.current.mouseStartPos&&D.current){let l=t.current.mouseStartPos.x,d=t.current.mouseStartPos.y,y=n-l,b=i-d;Math.sqrt(y*y+b*b)>3&&(t.current.isDragging=true,D.current.alphaTarget()===0&&D.current.alphaTarget(0).restart());let T=typeof window<"u"&&window.devicePixelRatio||1,X=(n*T-t.current.transform.x)/t.current.transform.k,F=(i*T-t.current.transform.y)/t.current.transform.k;t.current.draggedNode.fx=X,t.current.draggedNode.fy=F;return}if(t.current.isPanning&&t.current.mouseStartPos){let l=n-t.current.lastMousePos.x,d=i-t.current.lastMousePos.y,y=t.current.mouseStartPos.x,b=t.current.mouseStartPos.y;Math.sqrt(Math.pow(n-y,2)+Math.pow(i-b,2))>3&&(t.current.isDragging=true),t.current.transform={...t.current.transform,x:t.current.transform.x+l,y:t.current.transform.y+d},t.current.lastMousePos={x:n,y:i},V();return}let s,u;if(t.current.selectedNode&&M.current&&k.length>0){let l=Ce(n,i);l!==null&&(u=t.current.selectedNode),l!==t.current.hoveredButtonIndex&&(s=true),t.current.hoveredButtonIndex=l;}else t.current.hoveredButtonIndex!==null&&(t.current.hoveredButtonIndex=null);if(!u&&(u=Me(n,i),!u)){let l=Ne(n,i),d=l!==t.current.hoveredLink;if(l&&t.current.hoveredNode&&Ae(null),$e(l),M.current&&(M.current.style.cursor=l?"pointer":"default"),d){V();return}}u&&t.current.hoveredLink&&$e(null),u!==t.current.hoveredNode&&(s=true),Ae(u),M.current&&(M.current.style.cursor=u?"pointer":"default"),s&&V();},[k,Me,Ne,Ae,$e,V,it,Ce]),tr=Rt.useCallback(e=>{t.current.mustBeStoppedPropagation&&(e.stopPropagation(),e.preventDefault()),t.current.mustBeStoppedPropagation=false;},[]),Te=Rt.useCallback(e=>{let a=t.current.isDragging;if(a&&(t.current.mustBeStoppedPropagation=true),!a&&t.current.mouseStartPos){let n=M.current?.getBoundingClientRect();if(n){let i=e.clientX-n.left,s=e.clientY-n.top;k.length>0&&t.current.hoveredButtonIndex===null&&(t.current.hoveredButtonIndex=Ce(i,s));let u=false;if(t.current.selectedNode&&t.current.hoveredButtonIndex!==null&&h[t.current.hoveredButtonIndex]){let l=h[t.current.hoveredButtonIndex];l&&l.onClick&&(l.onClick(t.current.selectedNode),u=true,t.current.hoveredButtonIndex=null);}if(!u&&t.current.draggedNode)ct(t.current.draggedNode);else if(!u&&!t.current.draggedNode){let l=Ne(i,s);l?st(l):lt();}}}if(t.current.draggedNode&&D.current){if(a){D.current.alphaTarget(0);let n=.05,i=.04,s=.6;D.current.alpha(n).alphaDecay(i),D.current.velocityDecay(s);}else D.current.alphaTarget(0);t.current.draggedNode.fx=void 0,t.current.draggedNode.fy=void 0,t.current.draggedNode=null;}t.current.isDragging=false,t.current.mouseStartPos=null,t.current.isPanning&&(t.current.isPanning=false),V();},[h,V,ct,lt,Ne,st,Ce,k]),Xe=Rt.useCallback(e=>{if(e.stopPropagation(),e.preventDefault(),!M.current)return;let a=M.current.getBoundingClientRect(),n=e.clientX-a.left,i=e.clientY-a.top,u=-e.deltaY>0?1.1:1/1.1,l=t.current.transform,d=l.k*u;if(d<.01||d>10)return;let y=l.k*u,b=n-(n-l.x)*u,w=i-(i-l.y)*u;t.current.transform={k:y,x:b,y:w},V();},[V]),Ye=chunkZQO4NO5E_js.a((e,a)=>{let n=e.touches[0];if(n){let i={clientX:n.clientX,clientY:n.clientY};a(i);}},"convertTouchToMouseEvent"),rr=Rt.useCallback(e=>{Ye(e,He);},[He]),_e=Rt.useCallback(e=>{t.current.mustBeStoppedPropagation&&(e.preventDefault(),e.stopPropagation()),t.current.mustBeStoppedPropagation=false,Ye(e,Te);},[Te]),or=Rt.useCallback(e=>{Ye(e,We);},[We]);return Rt.useImperativeHandle(A,()=>({zoomToFit:Se,addNodes:nt,removeNodes:at}),[Se,nt,at]),Rt.useEffect(()=>{let e=M.current,{width:a,height:n}=t.current;if(!e)return;ue(),q(true);let i=a/2,s=n/2,u=O.nodeSizeBase,l=u/2,d=u*2.5;D.current&&D.current.stop();let y=D.current=d3.forceSimulation($).force("link",d3.forceLink(Z).id(b=>b.id).distance(d).strength(.9)).force("charge",d3.forceManyBody().strength(-u/10*200).theta(.5).distanceMin(u*2)).force("x",d3.forceX().strength(.03)).force("y",d3.forceY().strength(.03)).force("center",d3.forceCenter(i,s).strength(.05)).force("collide",d3.forceCollide().radius(l*2).iterations(2).strength(1)).velocityDecay(.6);return ()=>{y.stop();}},[$,Z]),Rt.useLayoutEffect(()=>{let e=M.current;e&&(t.current.width=o*je,t.current.height=c*je,e.width=t.current.width,e.height=t.current.height);},[o,c]),Rt.useEffect(()=>{if(D.current){let e=D.current;e.on("tick",()=>{V();}),e.on("end",()=>{C&&(Se(0,20),setTimeout(()=>{q(false);},200));});}C||V();},[$,Z,C,V,Se]),Rt.useEffect(()=>{!$||!Z||Z.forEach(e=>{let a=typeof e.source=="object"?e.source:$.find(i=>i.id===e.source),n=typeof e.target=="object"?e.target:$.find(i=>i.id===e.target);!a||!n||(!a.neighbors&&(a.neighbors=[]),!n.neighbors&&(n.neighbors=[]),a.neighbors.push(n),n.neighbors.push(a),!a.links&&(a.links=[]),!n.links&&(n.links=[]),a.links.push(e),n.links.push(e));});},[$,Z]),Rt.useEffect(()=>{h&&h.length>0&&j(Wr(h));},[h]),Rt.useEffect(()=>{let e=M.current;if(!(!e||typeof window>"u"))return e.addEventListener("wheel",Xe,{passive:false}),e.addEventListener("touchend",_e,{passive:false}),()=>{e.removeEventListener("wheel",Xe),e.removeEventListener("touchend",_e);}},[Xe,_e]),jsxRuntime.jsxs(Yr,{children:[(r||C)&&jsxRuntime.jsx(Ct,{width:o,height:c}),jsxRuntime.jsx(_r,{ref:M,style:{width:o,height:c,display:r||C?"none":"block"},onMouseDown:He,onMouseMove:We,onMouseUp:Te,onMouseLeave:Te,onClick:tr,onTouchStart:rr,onTouchMove:or})]})}),Yr=kr.styled.div`
48
48
  display: flex;
49
49
  align-items: center;
50
50
  justify-content: center;
@@ -63,7 +63,7 @@ ${r?`
63
63
  `:""}
64
64
 
65
65
  min-width: 0;
66
- `);var zt=chunkZQO4NO5E_js.a(({url:r})=>{let[o,c]=Rt.useState(1),[p,h]=Rt.useState(),v=Rt__default.default.useRef(null),g=Rt__default.default.useRef(null),S=chunkZQO4NO5E_js.a(()=>{c(E=>Math.min(E+.25,4));},"handleZoomIn");return jsxRuntime.jsxs("div",{ref:g,className:"h-full w-full flex flex-col",children:[jsxRuntime.jsxs("div",{className:"flex justify-center items-stretch p-5.5 gap-1 border-b border-gray-200 relative ",children:[jsxRuntime.jsx(chunkZQO4NO5E_js.z,{variant:"outlined","aria-label":"zoom-out",color:"secondary",size:"small",icon:jsxRuntime.jsx(chunkZQO4NO5E_js.Pa,{style:{width:20,height:20}}),onClick:chunkZQO4NO5E_js.a(()=>{c(E=>Math.max(E-.25,.25));},"handleZoomOut"),disabled:o<=.25,p:5}),jsxRuntime.jsxs(chunkZQO4NO5E_js.mb,{py:5,px:8,children:[o*100,"%"]}),jsxRuntime.jsx(chunkZQO4NO5E_js.z,{variant:"outlined","aria-label":"zoom-in",size:"small",color:"secondary",icon:jsxRuntime.jsx(chunkZQO4NO5E_js.ma,{style:{width:14,height:14}}),onClick:S,disabled:o>=4,p:8})]}),jsxRuntime.jsx("div",{className:"h-full w-full overflow-auto",children:jsxRuntime.jsx("img",{src:r,ref:v,alt:"image",className:"block w-auto max-w-none object-contain",style:{transition:"all 0.2s ease-in-out",marginInline:"auto",marginBlock:10,flexShrink:0,...p==="width"&&{width:`calc(${o*100}% - 20px)`},...p==="height"&&{height:`calc(${o*100}% - 20px)`}},onLoad:()=>{if(v.current&&g.current){let E=v.current.width,A=v.current.height,x=E<A?"height":"width";h(x);}}})})]})},"ImageDriver");var Bt=chunkZQO4NO5E_js.a(({url:r})=>jsxRuntime.jsx("div",{className:"flex flex-col justify-center items-center w-full h-full p-5.5",children:jsxRuntime.jsx("audio",{controls:true,src:r,className:"w-full"})}),"AudioDriver");var qe=chunkZQO4NO5E_js.a(({url:r})=>{let[o,c]=Rt.useState(null),[p,h]=Rt.useState(false),[v,g]=Rt.useState(true),[S,I]=Rt.useState(null);return Rt.useEffect(()=>{h(true);},[]),Rt.useEffect(()=>{if(!p)return;chunkZQO4NO5E_js.a(async()=>{try{let A=await import('./PdfDriver-KNC2XF4X.js');c(()=>A.PdfDriver),g(!1);}catch(A){console.error("Failed to load PDF driver:",A),I("Failed to load PDF viewer"),g(false);}},"loadPdfDriver")();},[p]),p?v?jsxRuntime.jsx("div",{className:"flex items-center justify-center h-full w-full",children:jsxRuntime.jsx("div",{className:"text-gray-500",children:"Loading PDF viewer..."})}):S||!o?jsxRuntime.jsx("div",{className:"flex items-center justify-center h-full w-full",children:jsxRuntime.jsx("div",{className:"text-red-500 text-center",children:jsxRuntime.jsx("p",{children:S||"PDF viewer unavailable"})})}):jsxRuntime.jsx(o,{url:r}):jsxRuntime.jsx("div",{className:"flex items-center justify-center h-full w-full",children:jsxRuntime.jsx("div",{className:"text-gray-500",children:"Loading PDF viewer..."})})},"PdfDriverWrapper");var At=50,Kr=1e4,$t=chunkZQO4NO5E_js.a(({url:r,blob:o})=>{let c=Rt.useRef(null),[p,h]=Rt.useState(null),[v,g]=Rt.useState(true);return Rt.useEffect(()=>{chunkZQO4NO5E_js.a(async()=>{if(c.current)try{if(g(!0),h(null),!o&&r&&(o=await(await fetch(r)).blob()),!o){h("\u041D\u0435 \u043D\u0430\u0434\u0430\u043D\u043E \u0434\u043B\u044F DOCX \u0444\u0430\u0439\u043B\u0443");return}if(o.size/(1024*1024)>At){h(`\u0424\u0430\u0439\u043B \u0437\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0438\u0439 (> ${At} \u041C\u0411)`);return}c.current.innerHTML="";let E=docxPreview.renderAsync(o,c.current,void 0,{debug:!0,experimental:!0,hideWrapperOnPrint:!0}),A=new Promise((x,C)=>setTimeout(()=>C(new Error("\u0420\u0435\u043D\u0434\u0435\u0440\u0438\u043D\u0433 DOCX \u0437\u0430\u0439\u043D\u044F\u0432 \u043D\u0430\u0434\u0442\u043E \u0431\u0430\u0433\u0430\u0442\u043E \u0447\u0430\u0441\u0443")),Kr));await Promise.race([E,A]),g(!1);}catch(I){h(I?.message||"\u041D\u0435 \u0432\u0434\u0430\u043B\u043E\u0441\u044F \u0432\u0456\u0434\u043A\u0440\u0438\u0442\u0438 DOCX \u0444\u0430\u0439\u043B"),g(false);}},"renderDocument")();},[r,o]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!!p&&!v&&jsxRuntime.jsx("div",{className:"text-red-500 p-5",children:p}),v&&jsxRuntime.jsx("div",{className:"flex items-center justify-center p-5",children:"\u0417\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u043D\u044F..."}),jsxRuntime.jsx("div",{ref:c,className:"w-full h-full overflow-auto [&_table]:max-w-full! [&>div.docx-wrapper]:w-fit",style:{boxSizing:"border-box"}})]})},"DocxDriver");var ao=chunkZQO4NO5E_js.a(r=>({js:"javascript",jsx:"jsx",ts:"typescript",tsx:"tsx",json:"json",html:"html",css:"css",scss:"scss",py:"python",java:"java",cpp:"cpp",c:"c",cs:"csharp",php:"php",rb:"ruby",go:"go",rs:"rust",swift:"swift",kt:"kotlin",xml:"xml",yaml:"yaml",yml:"yaml",md:"markdown",sql:"sql",sh:"bash",bash:"bash",txt:"text"})[r]||"text","getLanguageFromExtension"),Ht=chunkZQO4NO5E_js.a(({url:r,extension:o})=>{let[c,p]=Rt.useState(""),[h,v]=Rt.useState(true),[g,S]=Rt.useState(null);if(Rt.useEffect(()=>{chunkZQO4NO5E_js.a(async()=>{try{v(!0),S(null);let x=await fetch(r);if(!x.ok)throw new Error(`Failed to load file: ${x.statusText}`);let C=await x.text();p(C);}catch(x){S(x instanceof Error?x.message:"Failed to load text content");}finally{v(false);}},"loadTextContent")();},[r]),h)return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("div",{className:"text-gray-500",children:"Loading text content..."})});if(g)return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsxs("div",{className:"text-red-500",children:["Error: ",g]})});let I=ao(o);return jsxRuntime.jsx("div",{className:"h-full w-full overflow-auto",children:I!=="text"?jsxRuntime.jsx(reactSyntaxHighlighter.Prism,{className:"min-h-full! m-0! py-0!",language:I,style:prism.darcula,showLineNumbers:true,wrapLines:true,children:c}):jsxRuntime.jsx("pre",{className:"whitespace-pre-wrap p-4 text-sm font-mono bg-gray-50 min-h-full",children:c})})},"TextDriver");var Xt=chunkZQO4NO5E_js.a(({url:r})=>jsxRuntime.jsx("div",{className:"flex flex-col justify-center items-center w-full h-full",children:jsxRuntime.jsx("video",{controls:true,src:r,className:"w-full max-h-full"})}),"VideoDriver");var Yt=Rt.memo(chunkZQO4NO5E_js.a(function({extension:o,blob:c,path:p,buffer:h,not_supported_message:v=" Sorry, this file type isn\u2019t supported yet."}){console.log("Driver props:",{extension:o,blob:c,path:p,buffer:h});let g=o.toLocaleLowerCase().trim(),S;if(p?S=p:c&&(S=URL.createObjectURL(c)),S){if(["jpeg","jpg","png","gif","bmp","webp"].includes(g))return jsxRuntime.jsx(zt,{url:S});if(["mp3","wav","ogg","flac"].includes(g))return jsxRuntime.jsx(Bt,{url:S});if(["mp4","webm"].includes(g))return jsxRuntime.jsx(Xt,{url:S});if(o==="pdf")return jsxRuntime.jsx(qe,{url:S});if(["txt","js","jsx","ts","tsx","json","html","css","scss","py","java","cpp","c","cs","php","rb","go","rs","swift","kt","xml","yaml","yml","md","sql","sh","bash"].includes(g))return jsxRuntime.jsx(Ht,{url:S,extension:g})}return g==="docx"?jsxRuntime.jsx($t,{url:S,blob:c}):jsxRuntime.jsx("div",{className:"h-full flex flex-col justify-center items-center",children:jsxRuntime.jsx(chunkZQO4NO5E_js.mb,{className:"mx-5",children:jsxRuntime.jsx(chunkZQO4NO5E_js.Wa,{variant:"h2",color:"text.light",weight:500,className:"text-center",children:v})})})},"Driver"));var Pc=chunkZQO4NO5E_js.a(r=>jsxRuntime.jsx("div",{className:"h-full w-full",children:jsxRuntime.jsx(Yt,{...r})}),"FileViewer");var Vt=250,Oc=chunkZQO4NO5E_js.a(({text:r,speed:o=50,onDone:c,markdown:p=false,markdownComponents:h={},className:v,...g})=>{let[S,I]=Rt.useState(""),E=Rt.useRef(null),A=Rt.useRef(null);return Rt.useEffect(()=>{let x=false;if(o>0){I(""),E.current=performance.now();let C=chunkZQO4NO5E_js.a(q=>{if(x||!E.current)return;let t=q-E.current,$=t/o>Vt?o/2:o,Z=t/o>Vt?1.5:1,k=Math.floor(t/$*Z);if(k>=r.length){I(r),x=true,c?.();return}I(r.slice(0,k)),A.current=requestAnimationFrame(C);},"tick");A.current=requestAnimationFrame(C);}else I(r),c?.();return ()=>{A.current&&cancelAnimationFrame(A.current);}},[r,o,c]),p?jsxRuntime.jsx("div",{className:v,children:jsxRuntime.jsx(uo__default.default,{remarkPlugins:[po__default.default],components:h,...g,children:S})}):jsxRuntime.jsx(chunkZQO4NO5E_js.Wa,{className:v,...g,children:S})},"Typewriter");var yo={timeout:2e3,message:"Copied!"},Zc=chunkZQO4NO5E_js.a(({text:r,children:o,format:c="text/plain",tooltip:p})=>{let[h,v]=Rt.useState(false),g=Rt.useRef(null),S={...yo,...p},I=chunkZQO4NO5E_js.a(async()=>{"clipboard"in navigator?await navigator.clipboard.writeText(r):ho__default.default(r,{format:c}),v(true),g.current&&clearTimeout(g.current),g.current=setTimeout(()=>v(false),S.timeout);},"handleCopy");return Rt.useEffect(()=>()=>{g.current&&clearTimeout(g.current);},[]),jsxRuntime.jsx(chunkZQO4NO5E_js.yb,{onMouseLeave:()=>v(false),className:h?"visible":"hidden",content:S.message,children:o({copy:I})})},"CopyToClipboard");var qt=chunkZQO4NO5E_js.a(r=>new Date(r?Array.isArray(r)?r[1]||r[0]||new Date:r:new Date),"getInitValue"),Oe=chunkZQO4NO5E_js.a((r,o)=>{let c;if(o){let h=dateFns.parse(r||"",o,new Date);if(dateFns.isValid(h)&&dateFns.getYear(h)>=1970)return h}let p=new Date(r||"");return isNaN(p.getTime())?c:p},"parseDate"),Mo=chunkZQO4NO5E_js.a((r,o)=>{let c=r?Oe(r,o):void 0;return c&&o?dateFns.format(c,o):r},"renderDate"),ul=chunkZQO4NO5E_js.a(({value:r,range:o,inline:c=false,minDate:p=new Date(dateFns.getYear(new Date)-5,0,1),maxDate:h=new Date(dateFns.getYear(new Date)+5,11,31),format:v="dd.MM.yyyy",onChange:g,...S})=>{let[I,E]=Rt.useState(dateFns.getMonth(qt(r))),[A,x]=Rt.useState(dateFns.getYear(qt(r))),C=Rt.useMemo(()=>{if(r){if(Array.isArray(r)){let t=Oe(r[0],v),$=Oe(r[1],v);return [t,$]}return Oe(r,v)}},[r]),q=Rt.useCallback(t=>{if(o){let $=!!(C&&Array.isArray(C)&&C[0]),Z=!!(C&&Array.isArray(C)&&C[1]);!$||$&&Z?g?.([t.toString(),""]):$&&!Z&&(t<C[0]?g?.([t.toString(),C[0].toString()]):g?.([C[0].toString(),t.toString()]));}else g?.(t.toString());},[o,C,g]);return c?jsxRuntime.jsx(Ut,{month:I,year:A,minDate:p,maxDate:h,selectedDate:C,onSelectDate:q,onChangeMonth:E,onChangeYear:x}):o?jsxRuntime.jsx(No,{range:true,value:r,onChange:g,...S}):jsxRuntime.jsx(Co,{value:r,onChange:g,minDate:p,maxDate:h,month:I,year:A,selectedDate:C,onChangeMonth:E,onChangeYear:x,onSelectDate:q,formatStr:v,...S})},"DatePicker"),No=chunkZQO4NO5E_js.a(({minDate:r,maxDate:o,value:c,onChange:p})=>null,"DatePickerGroupInput"),Co=chunkZQO4NO5E_js.a(({placeholder:r,value:o,onChange:c,inputProps:p,...h})=>{let[v,g]=Rt.useState(false),S=chunkZQO4NO5E_js.y();return jsxRuntime.jsx(reactTinyPopover.Popover,{positions:["bottom","top","right","left"],align:"start",isOpen:v,onClickOutside:()=>g(false),content:jsxRuntime.jsx(chunkZQO4NO5E_js.mb,{children:jsxRuntime.jsx(Ut,{...h})}),containerStyle:{zIndex:`${S.zIndex.popover}`},children:jsxRuntime.jsx("div",{onClick:()=>g(true),children:jsxRuntime.jsx(chunkZQO4NO5E_js.ib,{...p,placeholder:r,value:Mo(o,h.formatStr),onChange:I=>c?.(I.target.value)})})})},"DatePickerInput"),Ut=chunkZQO4NO5E_js.a(({month:r,year:o,selectedDate:c,minDate:p,maxDate:h,onSelectDate:v,onChangeMonth:g,onChangeYear:S})=>{let I=Rt.useMemo(()=>new Array(12).fill(null).map((k,z)=>{let M=new Date(0,z);return {value:z+1,inputDisplay:dateFns.format(M,"MMMM")}}),[]),E=Rt.useMemo(()=>{let k=dateFns.getYear(p),M=dateFns.getYear(h)-k+1;return new Array(M).fill(null).map((D,ee)=>{let U=k+ee;return {value:U,inputDisplay:U.toString()}})},[p,h]),A=Rt.useMemo(()=>new Array(7).fill(null).map((k,z)=>{let M=dateFns.startOfWeek(new Date,{weekStartsOn:z});return dateFns.format(M,"EEE")}),[]),x=Rt.useMemo(()=>{let k=dateFns.getWeeksInMonth(new Date(o,r)),z=dateFns.startOfMonth(new Date(o,r)),M=dateFns.previousMonday(z),D=dateFns.differenceInDays(z,M);return new Array(k*7).fill(null).map((ee,U)=>new Date(o,r,U-D+1))},[r,o]),C=Rt.useCallback(()=>{r===0?(S(o-1),g(11)):g(r-1);},[r,o]),q=Rt.useCallback(()=>{r===11?(S(o+1),g(0)):g(r+1);},[r,o]),t=Rt.useMemo(()=>p?!(o<dateFns.getYear(p)||o===dateFns.getYear(p)&&r<=dateFns.getMonth(p)):true,[r,o,p]),$=Rt.useMemo(()=>h?!(o>dateFns.getYear(h)||o===dateFns.getYear(h)&&r>=dateFns.getMonth(h)):true,[r,o,h]),Z=Rt.useCallback(k=>{k.stopPropagation();},[]);return jsxRuntime.jsxs("div",{className:"flex flex-col date-picker-calendar",onClick:Z,children:[jsxRuntime.jsxs("div",{className:"flex justify-center items-center gap-2 pb-3",children:[t&&jsxRuntime.jsx(chunkZQO4NO5E_js.z,{size:"small",variant:"empty",icon:jsxRuntime.jsx(chunkZQO4NO5E_js.G,{}),onClick:C}),jsxRuntime.jsxs("div",{className:"flex-1 flex justify-center gap-1",children:[jsxRuntime.jsx(chunkZQO4NO5E_js.gb,{placeholder:"",hasBorder:false,selected:r+1,options:I,onSelect:k=>g(k-1),maxWidth:150,maxHeight:300}),jsxRuntime.jsx(chunkZQO4NO5E_js.gb,{placeholder:"",hasBorder:false,selected:o,options:E,onSelect:k=>S(k),maxWidth:100,maxHeight:300})]}),$&&jsxRuntime.jsx(chunkZQO4NO5E_js.z,{size:"small",variant:"empty",icon:jsxRuntime.jsx(chunkZQO4NO5E_js.H,{}),onClick:q})]}),jsxRuntime.jsx("div",{className:"grid grid-cols-7 gap-2",children:A.map(k=>jsxRuntime.jsx("div",{className:"text-center",children:k},k))}),jsxRuntime.jsx("div",{className:"grid grid-cols-7 gap-2 mt-2",children:x.map(k=>{let z=dateFns.getMonth(k)===r,M=dateFns.format(k,"yyyy-MM-dd")===dateFns.format(new Date,"yyyy-MM-dd"),D=c&&(Array.isArray(c)&&(c[0]&&dateFns.format(k,"yyyy-MM-dd")===dateFns.format(c[0],"yyyy-MM-dd")||c[1]&&dateFns.format(k,"yyyy-MM-dd")===dateFns.format(c[1],"yyyy-MM-dd"))||!Array.isArray(c)&&dateFns.format(k,"yyyy-MM-dd")===dateFns.format(c,"yyyy-MM-dd")),ee=c&&Array.isArray(c)&&c[0]&&c[1]&&k>c[0]&&k<c[1],U=p&&dateFns.differenceInDays(k,p)<0||h&&dateFns.differenceInDays(k,h)>0||!z;return jsxRuntime.jsx(To,{date:k,isCurrentMonth:z,isCurrentDay:M,isSelected:!!D,isInRange:!!ee,isDisabled:!!U,onSelectDate:v},k.toISOString())})})]})},"DatePickerCalendar"),To=chunkZQO4NO5E_js.a(({date:r,isCurrentMonth:o,isCurrentDay:c,isSelected:p,isInRange:h,isDisabled:v,onSelectDate:g})=>jsxRuntime.jsx("div",{className:`text-center p-2 cursor-pointer rounded ${v?"text-gray-400 cursor-not-allowed":p?"bg-blue-500 text-white":h?"bg-blue-100":c?"text-blue-500":o?"text-black":"text-gray-400"} ${v?"":p?"hover:bg-blue-600":"hover:bg-gray-100"}`,onClick:chunkZQO4NO5E_js.a(I=>{v||g(r);},"handleClick"),children:dateFns.format(r,"d")}),"CalendarDay");var Ro=chunkZQO4NO5E_js.a(r=>{switch(r){case "primary":return "bg-blue-100 border-blue-200 dark:bg-blue-800/10 dark:border-blue-900";case "error":return "bg-red-100 border-red-200 dark:bg-red-800/10 dark:border-red-900";case "warning":return "bg-yellow-100 border-yellow-200 dark:bg-yellow-800/10 dark:border-yellow-900";case "success":return "bg-teal-100 border-teal-200 dark:bg-teal-800/10 dark:border-teal-900";case "default":default:return "bg-white border border-gray-200 dark:bg-neutral-800 dark:border-neutral-700"}},"getColorStyle"),Eo=chunkZQO4NO5E_js.a(r=>{switch(r){case "primary":return "text-blue-800 dark:text-blue-500";case "error":return "text-red-800 dark:text-red-500";case "warning":return "text-yellow-800 dark:text-yellow-500";case "success":return "text-teal-800 dark:text-teal-500";case "default":default:return "text-gray-800 dark:text-white"}},"getTextColor"),zo=chunkZQO4NO5E_js.a(r=>{switch(r){case "bottom":return "translate-y-4";case "top":default:return "-translate-y-4"}},"getTransitionStarting"),Kt=chunkZQO4NO5E_js.a(({id:r,color:o="default",message:c,duration:p,transitionDirection:h,cancelable:v=true,onClose:g})=>{let[S,I]=Rt.useState(false),[E,A]=Rt.useState(false),x=Rt.useRef(null),C=Rt.useCallback(()=>{I(true),x.current=setTimeout(()=>{g(r);},300);},[r,g]);return Rt.useEffect(()=>{if(A(true),p&&p<1/0){let q=setTimeout(()=>{C();},p);return ()=>clearTimeout(q)}},[p,C]),Rt.useEffect(()=>()=>{x.current&&clearTimeout(x.current);},[]),jsxRuntime.jsx("div",{className:`max-w-xs
66
+ `);var jt=chunkZQO4NO5E_js.a(({url:r})=>{let[o,c]=Rt.useState(1),[p,h]=Rt.useState(),v=Rt__default.default.useRef(null),g=Rt__default.default.useRef(null),S=chunkZQO4NO5E_js.a(()=>{c(E=>Math.min(E+.25,4));},"handleZoomIn");return jsxRuntime.jsxs("div",{ref:g,className:"h-full w-full flex flex-col",children:[jsxRuntime.jsxs("div",{className:"flex justify-center items-stretch p-5.5 gap-1 border-b border-gray-200 relative ",children:[jsxRuntime.jsx(chunkZQO4NO5E_js.z,{variant:"outlined","aria-label":"zoom-out",color:"secondary",size:"small",icon:jsxRuntime.jsx(chunkZQO4NO5E_js.Pa,{style:{width:20,height:20}}),onClick:chunkZQO4NO5E_js.a(()=>{c(E=>Math.max(E-.25,.25));},"handleZoomOut"),disabled:o<=.25,p:5}),jsxRuntime.jsxs(chunkZQO4NO5E_js.mb,{py:5,px:8,children:[o*100,"%"]}),jsxRuntime.jsx(chunkZQO4NO5E_js.z,{variant:"outlined","aria-label":"zoom-in",size:"small",color:"secondary",icon:jsxRuntime.jsx(chunkZQO4NO5E_js.ma,{style:{width:14,height:14}}),onClick:S,disabled:o>=4,p:8})]}),jsxRuntime.jsx("div",{className:"h-full w-full overflow-auto",children:jsxRuntime.jsx("img",{src:r,ref:v,alt:"image",className:"block w-auto max-w-none object-contain",style:{transition:"all 0.2s ease-in-out",marginInline:"auto",marginBlock:10,flexShrink:0,...p==="width"&&{width:`calc(${o*100}% - 20px)`},...p==="height"&&{height:`calc(${o*100}% - 20px)`}},onLoad:()=>{if(v.current&&g.current){let E=v.current.width,A=v.current.height,x=E<A?"height":"width";h(x);}}})})]})},"ImageDriver");var Bt=chunkZQO4NO5E_js.a(({url:r})=>jsxRuntime.jsx("div",{className:"flex flex-col justify-center items-center w-full h-full p-5.5",children:jsxRuntime.jsx("audio",{controls:true,src:r,className:"w-full"})}),"AudioDriver");var qe=chunkZQO4NO5E_js.a(({url:r})=>{let[o,c]=Rt.useState(null),[p,h]=Rt.useState(false),[v,g]=Rt.useState(true),[S,I]=Rt.useState(null);return Rt.useEffect(()=>{h(true);},[]),Rt.useEffect(()=>{if(!p)return;chunkZQO4NO5E_js.a(async()=>{try{let A=await import('./PdfDriver-T552NJVX.js');c(()=>A.PdfDriver),g(!1);}catch(A){console.error("Failed to load PDF driver:",A),I("Failed to load PDF viewer"),g(false);}},"loadPdfDriver")();},[p]),p?v?jsxRuntime.jsx("div",{className:"flex items-center justify-center h-full w-full",children:jsxRuntime.jsx("div",{className:"text-gray-500",children:"Loading PDF viewer..."})}):S||!o?jsxRuntime.jsx("div",{className:"flex items-center justify-center h-full w-full",children:jsxRuntime.jsx("div",{className:"text-red-500 text-center",children:jsxRuntime.jsx("p",{children:S||"PDF viewer unavailable"})})}):jsxRuntime.jsx(o,{url:r}):jsxRuntime.jsx("div",{className:"flex items-center justify-center h-full w-full",children:jsxRuntime.jsx("div",{className:"text-gray-500",children:"Loading PDF viewer..."})})},"PdfDriverWrapper");var At=50,Kr=1e4,$t=chunkZQO4NO5E_js.a(({url:r,blob:o})=>{let c=Rt.useRef(null),[p,h]=Rt.useState(null),[v,g]=Rt.useState(true);return Rt.useEffect(()=>{chunkZQO4NO5E_js.a(async()=>{if(c.current)try{if(g(!0),h(null),!o&&r&&(o=await(await fetch(r)).blob()),!o){h("\u041D\u0435 \u043D\u0430\u0434\u0430\u043D\u043E \u0434\u043B\u044F DOCX \u0444\u0430\u0439\u043B\u0443");return}if(o.size/(1024*1024)>At){h(`\u0424\u0430\u0439\u043B \u0437\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0438\u0439 (> ${At} \u041C\u0411)`);return}c.current.innerHTML="";let E=docxPreview.renderAsync(o,c.current,void 0,{debug:!0,experimental:!0,hideWrapperOnPrint:!0}),A=new Promise((x,C)=>setTimeout(()=>C(new Error("\u0420\u0435\u043D\u0434\u0435\u0440\u0438\u043D\u0433 DOCX \u0437\u0430\u0439\u043D\u044F\u0432 \u043D\u0430\u0434\u0442\u043E \u0431\u0430\u0433\u0430\u0442\u043E \u0447\u0430\u0441\u0443")),Kr));await Promise.race([E,A]),g(!1);}catch(I){h(I?.message||"\u041D\u0435 \u0432\u0434\u0430\u043B\u043E\u0441\u044F \u0432\u0456\u0434\u043A\u0440\u0438\u0442\u0438 DOCX \u0444\u0430\u0439\u043B"),g(false);}},"renderDocument")();},[r,o]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!!p&&!v&&jsxRuntime.jsx("div",{className:"text-red-500 p-5",children:p}),v&&jsxRuntime.jsx("div",{className:"flex items-center justify-center p-5",children:"\u0417\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u043D\u044F..."}),jsxRuntime.jsx("div",{ref:c,className:"w-full h-full overflow-auto [&_table]:max-w-full! [&>div.docx-wrapper]:w-fit",style:{boxSizing:"border-box"}})]})},"DocxDriver");var ao=chunkZQO4NO5E_js.a(r=>({js:"javascript",jsx:"jsx",ts:"typescript",tsx:"tsx",json:"json",html:"html",css:"css",scss:"scss",py:"python",java:"java",cpp:"cpp",c:"c",cs:"csharp",php:"php",rb:"ruby",go:"go",rs:"rust",swift:"swift",kt:"kotlin",xml:"xml",yaml:"yaml",yml:"yaml",md:"markdown",sql:"sql",sh:"bash",bash:"bash",txt:"text"})[r]||"text","getLanguageFromExtension"),Ht=chunkZQO4NO5E_js.a(({url:r,extension:o})=>{let[c,p]=Rt.useState(""),[h,v]=Rt.useState(true),[g,S]=Rt.useState(null);if(Rt.useEffect(()=>{chunkZQO4NO5E_js.a(async()=>{try{v(!0),S(null);let x=await fetch(r);if(!x.ok)throw new Error(`Failed to load file: ${x.statusText}`);let C=await x.text();p(C);}catch(x){S(x instanceof Error?x.message:"Failed to load text content");}finally{v(false);}},"loadTextContent")();},[r]),h)return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("div",{className:"text-gray-500",children:"Loading text content..."})});if(g)return jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsxs("div",{className:"text-red-500",children:["Error: ",g]})});let I=ao(o);return jsxRuntime.jsx("div",{className:"h-full w-full overflow-auto",children:I!=="text"?jsxRuntime.jsx(reactSyntaxHighlighter.Prism,{className:"min-h-full! m-0! py-0!",language:I,style:prism.darcula,showLineNumbers:true,wrapLines:true,children:c}):jsxRuntime.jsx("pre",{className:"whitespace-pre-wrap p-4 text-sm font-mono bg-gray-50 min-h-full",children:c})})},"TextDriver");var Xt=chunkZQO4NO5E_js.a(({url:r})=>jsxRuntime.jsx("div",{className:"flex flex-col justify-center items-center w-full h-full",children:jsxRuntime.jsx("video",{controls:true,src:r,className:"w-full max-h-full"})}),"VideoDriver");var Yt=Rt.memo(chunkZQO4NO5E_js.a(function({extension:o,blob:c,path:p,buffer:h,not_supported_message:v=" Sorry, this file type isn\u2019t supported yet."}){console.log("Driver props:",{extension:o,blob:c,path:p,buffer:h});let g=o.toLocaleLowerCase().trim(),S;if(p?S=p:c&&(S=URL.createObjectURL(c)),S){if(["jpeg","jpg","png","gif","bmp","webp"].includes(g))return jsxRuntime.jsx(jt,{url:S});if(["mp3","wav","ogg","flac"].includes(g))return jsxRuntime.jsx(Bt,{url:S});if(["mp4","webm"].includes(g))return jsxRuntime.jsx(Xt,{url:S});if(o==="pdf")return jsxRuntime.jsx(qe,{url:S});if(["txt","js","jsx","ts","tsx","json","html","css","scss","py","java","cpp","c","cs","php","rb","go","rs","swift","kt","xml","yaml","yml","md","sql","sh","bash"].includes(g))return jsxRuntime.jsx(Ht,{url:S,extension:g})}return g==="docx"?jsxRuntime.jsx($t,{url:S,blob:c}):jsxRuntime.jsx("div",{className:"h-full flex flex-col justify-center items-center",children:jsxRuntime.jsx(chunkZQO4NO5E_js.mb,{className:"mx-5",children:jsxRuntime.jsx(chunkZQO4NO5E_js.Wa,{variant:"h2",color:"text.light",weight:500,className:"text-center",children:v})})})},"Driver"));var Pc=chunkZQO4NO5E_js.a(r=>jsxRuntime.jsx("div",{className:"h-full w-full",children:jsxRuntime.jsx(Yt,{...r})}),"FileViewer");var Vt=250,Oc=chunkZQO4NO5E_js.a(({text:r,speed:o=50,onDone:c,markdown:p=false,markdownComponents:h={},className:v,...g})=>{let[S,I]=Rt.useState(""),E=Rt.useRef(null),A=Rt.useRef(null);return Rt.useEffect(()=>{let x=false;if(o>0){I(""),E.current=performance.now();let C=chunkZQO4NO5E_js.a(q=>{if(x||!E.current)return;let t=q-E.current,$=t/o>Vt?o/2:o,Z=t/o>Vt?1.5:1,k=Math.floor(t/$*Z);if(k>=r.length){I(r),x=true,c?.();return}I(r.slice(0,k)),A.current=requestAnimationFrame(C);},"tick");A.current=requestAnimationFrame(C);}else I(r),c?.();return ()=>{A.current&&cancelAnimationFrame(A.current);}},[r,o,c]),p?jsxRuntime.jsx("div",{className:v,children:jsxRuntime.jsx(uo__default.default,{remarkPlugins:[po__default.default],components:h,...g,children:S})}):jsxRuntime.jsx(chunkZQO4NO5E_js.Wa,{className:v,...g,children:S})},"Typewriter");var yo={timeout:2e3,message:"Copied!"},Zc=chunkZQO4NO5E_js.a(({text:r,children:o,format:c="text/plain",tooltip:p})=>{let[h,v]=Rt.useState(false),g=Rt.useRef(null),S={...yo,...p},I=chunkZQO4NO5E_js.a(async()=>{"clipboard"in navigator?await navigator.clipboard.writeText(r):ho__default.default(r,{format:c}),v(true),g.current&&clearTimeout(g.current),g.current=setTimeout(()=>v(false),S.timeout);},"handleCopy");return Rt.useEffect(()=>()=>{g.current&&clearTimeout(g.current);},[]),jsxRuntime.jsx(chunkZQO4NO5E_js.yb,{onMouseLeave:()=>v(false),className:h?"visible":"hidden",content:S.message,children:o({copy:I})})},"CopyToClipboard");var qt=chunkZQO4NO5E_js.a(r=>new Date(r?Array.isArray(r)?r[1]||r[0]||new Date:r:new Date),"getInitValue"),Oe=chunkZQO4NO5E_js.a((r,o)=>{let c;if(o){let h=dateFns.parse(r||"",o,new Date);if(dateFns.isValid(h)&&dateFns.getYear(h)>=1970)return h}let p=new Date(r||"");return isNaN(p.getTime())?c:p},"parseDate"),Mo=chunkZQO4NO5E_js.a((r,o)=>{let c=r?Oe(r,o):void 0;return c&&o?dateFns.format(c,o):r},"renderDate"),ul=chunkZQO4NO5E_js.a(({value:r,range:o,inline:c=false,minDate:p=new Date(dateFns.getYear(new Date)-5,0,1),maxDate:h=new Date(dateFns.getYear(new Date)+5,11,31),format:v="dd.MM.yyyy",onChange:g,...S})=>{let[I,E]=Rt.useState(dateFns.getMonth(qt(r))),[A,x]=Rt.useState(dateFns.getYear(qt(r))),C=Rt.useMemo(()=>{if(r){if(Array.isArray(r)){let t=Oe(r[0],v),$=Oe(r[1],v);return [t,$]}return Oe(r,v)}},[r]),q=Rt.useCallback(t=>{if(o){let $=!!(C&&Array.isArray(C)&&C[0]),Z=!!(C&&Array.isArray(C)&&C[1]);!$||$&&Z?g?.([t.toString(),""]):$&&!Z&&(t<C[0]?g?.([t.toString(),C[0].toString()]):g?.([C[0].toString(),t.toString()]));}else g?.(t.toString());},[o,C,g]);return c?jsxRuntime.jsx(Ut,{month:I,year:A,minDate:p,maxDate:h,selectedDate:C,onSelectDate:q,onChangeMonth:E,onChangeYear:x}):o?jsxRuntime.jsx(No,{range:true,value:r,onChange:g,...S}):jsxRuntime.jsx(Co,{value:r,onChange:g,minDate:p,maxDate:h,month:I,year:A,selectedDate:C,onChangeMonth:E,onChangeYear:x,onSelectDate:q,formatStr:v,...S})},"DatePicker"),No=chunkZQO4NO5E_js.a(({minDate:r,maxDate:o,value:c,onChange:p})=>null,"DatePickerGroupInput"),Co=chunkZQO4NO5E_js.a(({placeholder:r,value:o,onChange:c,inputProps:p,...h})=>{let[v,g]=Rt.useState(false),S=chunkZQO4NO5E_js.y();return jsxRuntime.jsx(reactTinyPopover.Popover,{positions:["bottom","top","right","left"],align:"start",isOpen:v,onClickOutside:()=>g(false),content:jsxRuntime.jsx(chunkZQO4NO5E_js.mb,{children:jsxRuntime.jsx(Ut,{...h})}),containerStyle:{zIndex:`${S.zIndex.popover}`},children:jsxRuntime.jsx("div",{onClick:()=>g(true),children:jsxRuntime.jsx(chunkZQO4NO5E_js.ib,{...p,placeholder:r,value:Mo(o,h.formatStr),onChange:I=>c?.(I.target.value)})})})},"DatePickerInput"),Ut=chunkZQO4NO5E_js.a(({month:r,year:o,selectedDate:c,minDate:p,maxDate:h,onSelectDate:v,onChangeMonth:g,onChangeYear:S})=>{let I=Rt.useMemo(()=>new Array(12).fill(null).map((k,j)=>{let M=new Date(0,j);return {value:j+1,inputDisplay:dateFns.format(M,"MMMM")}}),[]),E=Rt.useMemo(()=>{let k=dateFns.getYear(p),M=dateFns.getYear(h)-k+1;return new Array(M).fill(null).map((D,ee)=>{let U=k+ee;return {value:U,inputDisplay:U.toString()}})},[p,h]),A=Rt.useMemo(()=>new Array(7).fill(null).map((k,j)=>{let M=dateFns.startOfWeek(new Date,{weekStartsOn:j});return dateFns.format(M,"EEE")}),[]),x=Rt.useMemo(()=>{let k=dateFns.getWeeksInMonth(new Date(o,r)),j=dateFns.startOfMonth(new Date(o,r)),M=dateFns.previousMonday(j),D=dateFns.differenceInDays(j,M);return new Array(k*7).fill(null).map((ee,U)=>new Date(o,r,U-D+1))},[r,o]),C=Rt.useCallback(()=>{r===0?(S(o-1),g(11)):g(r-1);},[r,o]),q=Rt.useCallback(()=>{r===11?(S(o+1),g(0)):g(r+1);},[r,o]),t=Rt.useMemo(()=>p?!(o<dateFns.getYear(p)||o===dateFns.getYear(p)&&r<=dateFns.getMonth(p)):true,[r,o,p]),$=Rt.useMemo(()=>h?!(o>dateFns.getYear(h)||o===dateFns.getYear(h)&&r>=dateFns.getMonth(h)):true,[r,o,h]),Z=Rt.useCallback(k=>{k.stopPropagation();},[]);return jsxRuntime.jsxs("div",{className:"flex flex-col date-picker-calendar",onClick:Z,children:[jsxRuntime.jsxs("div",{className:"flex justify-center items-center gap-2 pb-3",children:[t&&jsxRuntime.jsx(chunkZQO4NO5E_js.z,{size:"small",variant:"empty",icon:jsxRuntime.jsx(chunkZQO4NO5E_js.G,{}),onClick:C}),jsxRuntime.jsxs("div",{className:"flex-1 flex justify-center gap-1",children:[jsxRuntime.jsx(chunkZQO4NO5E_js.gb,{placeholder:"",hasBorder:false,selected:r+1,options:I,onSelect:k=>g(k-1),maxWidth:150,maxHeight:300}),jsxRuntime.jsx(chunkZQO4NO5E_js.gb,{placeholder:"",hasBorder:false,selected:o,options:E,onSelect:k=>S(k),maxWidth:100,maxHeight:300})]}),$&&jsxRuntime.jsx(chunkZQO4NO5E_js.z,{size:"small",variant:"empty",icon:jsxRuntime.jsx(chunkZQO4NO5E_js.H,{}),onClick:q})]}),jsxRuntime.jsx("div",{className:"grid grid-cols-7 gap-2",children:A.map(k=>jsxRuntime.jsx("div",{className:"text-center",children:k},k))}),jsxRuntime.jsx("div",{className:"grid grid-cols-7 gap-2 mt-2",children:x.map(k=>{let j=dateFns.getMonth(k)===r,M=dateFns.format(k,"yyyy-MM-dd")===dateFns.format(new Date,"yyyy-MM-dd"),D=c&&(Array.isArray(c)&&(c[0]&&dateFns.format(k,"yyyy-MM-dd")===dateFns.format(c[0],"yyyy-MM-dd")||c[1]&&dateFns.format(k,"yyyy-MM-dd")===dateFns.format(c[1],"yyyy-MM-dd"))||!Array.isArray(c)&&dateFns.format(k,"yyyy-MM-dd")===dateFns.format(c,"yyyy-MM-dd")),ee=c&&Array.isArray(c)&&c[0]&&c[1]&&k>c[0]&&k<c[1],U=p&&dateFns.differenceInDays(k,p)<0||h&&dateFns.differenceInDays(k,h)>0||!j;return jsxRuntime.jsx(To,{date:k,isCurrentMonth:j,isCurrentDay:M,isSelected:!!D,isInRange:!!ee,isDisabled:!!U,onSelectDate:v},k.toISOString())})})]})},"DatePickerCalendar"),To=chunkZQO4NO5E_js.a(({date:r,isCurrentMonth:o,isCurrentDay:c,isSelected:p,isInRange:h,isDisabled:v,onSelectDate:g})=>jsxRuntime.jsx("div",{className:`text-center p-2 cursor-pointer rounded ${v?"text-gray-400 cursor-not-allowed":p?"bg-blue-500 text-white":h?"bg-blue-100":c?"text-blue-500":o?"text-black":"text-gray-400"} ${v?"":p?"hover:bg-blue-600":"hover:bg-gray-100"}`,onClick:chunkZQO4NO5E_js.a(I=>{v||g(r);},"handleClick"),children:dateFns.format(r,"d")}),"CalendarDay");var Ro=chunkZQO4NO5E_js.a(r=>{switch(r){case "primary":return "bg-blue-100 border-blue-200 dark:bg-blue-800/10 dark:border-blue-900";case "error":return "bg-red-100 border-red-200 dark:bg-red-800/10 dark:border-red-900";case "warning":return "bg-yellow-100 border-yellow-200 dark:bg-yellow-800/10 dark:border-yellow-900";case "success":return "bg-teal-100 border-teal-200 dark:bg-teal-800/10 dark:border-teal-900";case "default":default:return "bg-white border border-gray-200 dark:bg-neutral-800 dark:border-neutral-700"}},"getColorStyle"),Eo=chunkZQO4NO5E_js.a(r=>{switch(r){case "primary":return "text-blue-800 dark:text-blue-500";case "error":return "text-red-800 dark:text-red-500";case "warning":return "text-yellow-800 dark:text-yellow-500";case "success":return "text-teal-800 dark:text-teal-500";case "default":default:return "text-gray-800 dark:text-white"}},"getTextColor"),jo=chunkZQO4NO5E_js.a(r=>{switch(r){case "bottom":return "translate-y-4";case "top":default:return "-translate-y-4"}},"getTransitionStarting"),Kt=chunkZQO4NO5E_js.a(({id:r,color:o="default",message:c,duration:p,transitionDirection:h,cancelable:v=true,onClose:g})=>{let[S,I]=Rt.useState(false),[E,A]=Rt.useState(false),x=Rt.useRef(null),C=Rt.useCallback(()=>{I(true),x.current=setTimeout(()=>{g(r);},300);},[r,g]);return Rt.useEffect(()=>{if(A(true),p&&p<1/0){let q=setTimeout(()=>{C();},p);return ()=>clearTimeout(q)}},[p,C]),Rt.useEffect(()=>()=>{x.current&&clearTimeout(x.current);},[]),jsxRuntime.jsx("div",{className:`max-w-xs
67
67
  border
68
68
  w-full
69
69
  text-sm
@@ -72,7 +72,7 @@ ${r?`
72
72
  ease-in-out
73
73
  duration-300
74
74
  ${S||!E?"opacity-0":"opacity-100"}
75
- ${E?"translate-y-0":zo(h)}
75
+ ${E?"translate-y-0":jo(h)}
76
76
  ${Ro(o)} ${Eo(o)}`,children:jsxRuntime.jsxs("div",{className:"flex p-4 ",children:[c,v&&jsxRuntime.jsx("div",{className:"ms-auto",children:jsxRuntime.jsx("button",{type:"button",className:"inline-flex shrink-0 justify-center items-center size-5 rounded-lg opacity-50 hover:opacity-100 focus:outline-hidden focus:opacity-100 cursor-pointer","aria-label":"Close",onClick:C,children:jsxRuntime.jsxs("svg",{className:"shrink-0 size-4",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsxRuntime.jsx("path",{d:"M18 6 6 18"}),jsxRuntime.jsx("path",{d:"m6 6 12 12"})]})})})]})})},"Toast");var Bo=chunkZQO4NO5E_js.a((r,o)=>{switch(r){case "top-right":return `top-${o} right-${o}`;case "top-left":return `top-${o} left-${o}`;case "bottom-right":return `bottom-${o} right-${o}`;case "bottom-left":return `bottom-${o} left-${o}`;default:return `top-${o} right-${o}`}},"getPosition"),Nl=chunkZQO4NO5E_js.a(({items:r,onClose:o,position:c="top-right",offset:p=4})=>{let h=Rt.useMemo(()=>c.startsWith("top")?"top":"bottom",[c]);return jsxRuntime.jsx("div",{className:`fixed flex min-w-0 max-w-xs w-full flex-col z-50 gap-2 ${Bo(c,p)}`,children:r.map(v=>jsxRuntime.jsx(Kt,{transitionDirection:h,...v,onClose:o},v.id))})},"ToastsList");
77
77
  Object.defineProperty(exports,"Alert",{enumerable:true,get:function(){return chunkZQO4NO5E_js.qb}});Object.defineProperty(exports,"AlertIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.A}});Object.defineProperty(exports,"AndroidIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.za}});Object.defineProperty(exports,"ApiIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.B}});Object.defineProperty(exports,"ArrowCircleTopRightIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.C}});Object.defineProperty(exports,"ArrowRightIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.D}});Object.defineProperty(exports,"BallsMenu",{enumerable:true,get:function(){return chunkZQO4NO5E_js.ia}});Object.defineProperty(exports,"Box",{enumerable:true,get:function(){return chunkZQO4NO5E_js.mb}});Object.defineProperty(exports,"BreakpointProvider",{enumerable:true,get:function(){return chunkZQO4NO5E_js.q}});Object.defineProperty(exports,"BugReportIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.E}});Object.defineProperty(exports,"BurgerMenuIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Na}});Object.defineProperty(exports,"BusIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.sa}});Object.defineProperty(exports,"Button",{enumerable:true,get:function(){return chunkZQO4NO5E_js.z}});Object.defineProperty(exports,"CalendarIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.F}});Object.defineProperty(exports,"CarIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.ta}});Object.defineProperty(exports,"ChatField",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Gb}});Object.defineProperty(exports,"CheckIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.ja}});Object.defineProperty(exports,"Checkbox",{enumerable:true,get:function(){return chunkZQO4NO5E_js.sb}});Object.defineProperty(exports,"ChevronDownIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.ka}});Object.defineProperty(exports,"ChevronLeftIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.G}});Object.defineProperty(exports,"ChevronRightIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.H}});Object.defineProperty(exports,"ChevronUpIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.la}});Object.defineProperty(exports,"ClockIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Oa}});Object.defineProperty(exports,"CloseCircleIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.I}});Object.defineProperty(exports,"ClosedLockIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.J}});Object.defineProperty(exports,"ContentLoader",{enumerable:true,get:function(){return chunkZQO4NO5E_js.zb}});Object.defineProperty(exports,"ContextMenu",{enumerable:true,get:function(){return chunkZQO4NO5E_js.db}});Object.defineProperty(exports,"ContextMenuDelimiter",{enumerable:true,get:function(){return chunkZQO4NO5E_js.eb}});Object.defineProperty(exports,"CrossIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.qa}});Object.defineProperty(exports,"DataSetsIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.K}});Object.defineProperty(exports,"DeepSearchIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.L}});Object.defineProperty(exports,"DisabledVisibleIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.M}});Object.defineProperty(exports,"DocsIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.N}});Object.defineProperty(exports,"DownloadIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.O}});Object.defineProperty(exports,"Drawer",{enumerable:true,get:function(){return chunkZQO4NO5E_js.vb}});Object.defineProperty(exports,"DrawerBody",{enumerable:true,get:function(){return chunkZQO4NO5E_js.xb}});Object.defineProperty(exports,"DrawerHeader",{enumerable:true,get:function(){return chunkZQO4NO5E_js.wb}});Object.defineProperty(exports,"EditUserIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.P}});Object.defineProperty(exports,"EmptyData",{enumerable:true,get:function(){return chunkZQO4NO5E_js.ob}});Object.defineProperty(exports,"EnableVisibleIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Q}});Object.defineProperty(exports,"EnterArrowLeftIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.R}});Object.defineProperty(exports,"FileField",{enumerable:true,get:function(){return chunkZQO4NO5E_js.jb}});Object.defineProperty(exports,"FileIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.xa}});Object.defineProperty(exports,"FiltersIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.S}});Object.defineProperty(exports,"FlashIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Ia}});Object.defineProperty(exports,"FlexContainer",{enumerable:true,get:function(){return chunkZQO4NO5E_js.kb}});Object.defineProperty(exports,"FlexItem",{enumerable:true,get:function(){return chunkZQO4NO5E_js.lb}});Object.defineProperty(exports,"FolderAlertIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Ba}});Object.defineProperty(exports,"FolderInfoIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Ja}});Object.defineProperty(exports,"Header",{enumerable:true,get:function(){return chunkZQO4NO5E_js._a}});Object.defineProperty(exports,"HeaderDelimeter",{enumerable:true,get:function(){return chunkZQO4NO5E_js.$a}});Object.defineProperty(exports,"HeaderSection",{enumerable:true,get:function(){return chunkZQO4NO5E_js.ab}});Object.defineProperty(exports,"HomepageIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.T}});Object.defineProperty(exports,"ImageIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Qa}});Object.defineProperty(exports,"InfoCircleFilledIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.oa}});Object.defineProperty(exports,"InfoCircleIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.U}});Object.defineProperty(exports,"Input",{enumerable:true,get:function(){return chunkZQO4NO5E_js.ib}});Object.defineProperty(exports,"IosIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.ya}});Object.defineProperty(exports,"Label",{enumerable:true,get:function(){return chunkZQO4NO5E_js.rb}});Object.defineProperty(exports,"Line",{enumerable:true,get:function(){return chunkZQO4NO5E_js.nb}});Object.defineProperty(exports,"LinerProgress",{enumerable:true,get:function(){return chunkZQO4NO5E_js.tb}});Object.defineProperty(exports,"ListMenu",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Xa}});Object.defineProperty(exports,"ListMenuItem",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Ya}});Object.defineProperty(exports,"ListMenuSection",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Za}});Object.defineProperty(exports,"MapRadarIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.V}});Object.defineProperty(exports,"MaximizeIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.ra}});Object.defineProperty(exports,"MicrosoftIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Aa}});Object.defineProperty(exports,"MinusIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Pa}});Object.defineProperty(exports,"Modal",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Bb}});Object.defineProperty(exports,"ModalBody",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Db}});Object.defineProperty(exports,"ModalFooter",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Eb}});Object.defineProperty(exports,"ModalHeader",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Cb}});Object.defineProperty(exports,"MoonIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.W}});Object.defineProperty(exports,"OpenLockIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.X}});Object.defineProperty(exports,"OrganizationIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Y}});Object.defineProperty(exports,"Overlay",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Ab}});Object.defineProperty(exports,"Pagination",{enumerable:true,get:function(){return chunkZQO4NO5E_js.cb}});Object.defineProperty(exports,"PassportIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Ea}});Object.defineProperty(exports,"PasswordFinderIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Z}});Object.defineProperty(exports,"PencilIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Ga}});Object.defineProperty(exports,"PhonebookIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js._}});Object.defineProperty(exports,"PlaneIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.va}});Object.defineProperty(exports,"PlusIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.ma}});Object.defineProperty(exports,"PointIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Fa}});Object.defineProperty(exports,"PrintIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.$}});Object.defineProperty(exports,"Profiler2Icon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.aa}});Object.defineProperty(exports,"ProfilerIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.ba}});Object.defineProperty(exports,"ProgressLoader",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Hb}});Object.defineProperty(exports,"RelationIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Ca}});Object.defineProperty(exports,"RelationPointsIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Da}});Object.defineProperty(exports,"RotateLeftIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Ka}});Object.defineProperty(exports,"RotateRightIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.La}});Object.defineProperty(exports,"RowActionsMenu",{enumerable:true,get:function(){return chunkZQO4NO5E_js.hb}});Object.defineProperty(exports,"SandBoxIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.ca}});Object.defineProperty(exports,"SearchIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.da}});Object.defineProperty(exports,"Select",{enumerable:true,get:function(){return chunkZQO4NO5E_js.gb}});Object.defineProperty(exports,"ShipIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.wa}});Object.defineProperty(exports,"Sidebar",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Sa}});Object.defineProperty(exports,"SidebarContext",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Ra}});Object.defineProperty(exports,"SidebarDelimeter",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Ua}});Object.defineProperty(exports,"SidebarItem",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Ta}});Object.defineProperty(exports,"SidebarSection",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Va}});Object.defineProperty(exports,"StatisticIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.ea}});Object.defineProperty(exports,"SunIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.fa}});Object.defineProperty(exports,"Switch",{enumerable:true,get:function(){return chunkZQO4NO5E_js.ub}});Object.defineProperty(exports,"Table",{enumerable:true,get:function(){return chunkZQO4NO5E_js.bb}});Object.defineProperty(exports,"Tag",{enumerable:true,get:function(){return chunkZQO4NO5E_js.pb}});Object.defineProperty(exports,"TailwindExample",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Fb}});Object.defineProperty(exports,"ThemeProvider",{enumerable:true,get:function(){return chunkZQO4NO5E_js.s}});Object.defineProperty(exports,"Tooltip",{enumerable:true,get:function(){return chunkZQO4NO5E_js.yb}});Object.defineProperty(exports,"Typography",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Wa}});Object.defineProperty(exports,"UnfoldIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.pa}});Object.defineProperty(exports,"UpRightArrowCircleIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.ga}});Object.defineProperty(exports,"UploadImageIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Ma}});Object.defineProperty(exports,"UserInCircleIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.Ha}});Object.defineProperty(exports,"UsersIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.na}});Object.defineProperty(exports,"VectorIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.ha}});Object.defineProperty(exports,"WayIcon",{enumerable:true,get:function(){return chunkZQO4NO5E_js.ua}});Object.defineProperty(exports,"convertPaletteToRem",{enumerable:true,get:function(){return chunkZQO4NO5E_js.f}});Object.defineProperty(exports,"createComponent",{enumerable:true,get:function(){return chunkZQO4NO5E_js.w}});Object.defineProperty(exports,"createStyledComponent",{enumerable:true,get:function(){return chunkZQO4NO5E_js.x}});Object.defineProperty(exports,"darkTheme",{enumerable:true,get:function(){return chunkZQO4NO5E_js.p}});Object.defineProperty(exports,"darkThemePx",{enumerable:true,get:function(){return chunkZQO4NO5E_js.o}});Object.defineProperty(exports,"destructSpaceProps",{enumerable:true,get:function(){return chunkZQO4NO5E_js.t}});Object.defineProperty(exports,"generatePropertySpaceStyle",{enumerable:true,get:function(){return chunkZQO4NO5E_js.u}});Object.defineProperty(exports,"getBreakpoint",{enumerable:true,get:function(){return chunkZQO4NO5E_js.k}});Object.defineProperty(exports,"getButtonSizeStyles",{enumerable:true,get:function(){return chunkZQO4NO5E_js.h}});Object.defineProperty(exports,"getButtonStyles",{enumerable:true,get:function(){return chunkZQO4NO5E_js.g}});Object.defineProperty(exports,"getInputStyles",{enumerable:true,get:function(){return chunkZQO4NO5E_js.i}});Object.defineProperty(exports,"getResponsiveProps",{enumerable:true,get:function(){return chunkZQO4NO5E_js.v}});Object.defineProperty(exports,"getTypographyStyles",{enumerable:true,get:function(){return chunkZQO4NO5E_js.j}});Object.defineProperty(exports,"hexToRgba",{enumerable:true,get:function(){return chunkZQO4NO5E_js.l}});Object.defineProperty(exports,"lightTheme",{enumerable:true,get:function(){return chunkZQO4NO5E_js.n}});Object.defineProperty(exports,"lightThemePx",{enumerable:true,get:function(){return chunkZQO4NO5E_js.m}});Object.defineProperty(exports,"propToRem",{enumerable:true,get:function(){return chunkZQO4NO5E_js.e}});Object.defineProperty(exports,"pxToRem",{enumerable:true,get:function(){return chunkZQO4NO5E_js.c}});Object.defineProperty(exports,"remToPx",{enumerable:true,get:function(){return chunkZQO4NO5E_js.d}});Object.defineProperty(exports,"resolveThemeColor",{enumerable:true,get:function(){return chunkZQO4NO5E_js.b}});Object.defineProperty(exports,"useBreakpoint",{enumerable:true,get:function(){return chunkZQO4NO5E_js.r}});Object.defineProperty(exports,"useContextMenuControl",{enumerable:true,get:function(){return chunkZQO4NO5E_js.fb}});Object.defineProperty(exports,"useTheme",{enumerable:true,get:function(){return chunkZQO4NO5E_js.y}});Object.defineProperty(exports,"ServerStyleSheet",{enumerable:true,get:function(){return kr.ServerStyleSheet}});Object.defineProperty(exports,"StyleSheetManager",{enumerable:true,get:function(){return kr.StyleSheetManager}});exports.Container=Ti;exports.CopyToClipboard=Zc;exports.DatePicker=ul;exports.DatePickerCalendar=Ut;exports.FileViewer=Pc;exports.FullscreenCard=xs;exports.Graph2D=Xr;exports.PageContent=di;exports.PageLayout=ni;exports.SplitterLayout=Fi;exports.Styled=ur;exports.StyledContainer=ar;exports.StyledMain=cr;exports.SubNav=mi;exports.ToastsList=Nl;exports.Typewriter=Oc;//# sourceMappingURL=index.js.map
78
78
  //# sourceMappingURL=index.js.map
package/dist/index.mjs CHANGED
@@ -63,7 +63,7 @@ ${r?`
63
63
  `:""}
64
64
 
65
65
  min-width: 0;
66
- `);var Et=a(({url:r})=>{let[o,c]=useState(1),[p,h]=useState(),b=Lt.useRef(null),g=Lt.useRef(null),S=a(()=>{c(R=>Math.min(R+.25,4));},"handleZoomIn");return jsxs("div",{ref:g,className:"h-full w-full flex flex-col",children:[jsxs("div",{className:"flex justify-center items-stretch p-5.5 gap-1 border-b border-gray-200 relative ",children:[jsx(z,{variant:"outlined","aria-label":"zoom-out",color:"secondary",size:"small",icon:jsx(Pa,{style:{width:20,height:20}}),onClick:a(()=>{c(R=>Math.max(R-.25,.25));},"handleZoomOut"),disabled:o<=.25,p:5}),jsxs(mb,{py:5,px:8,children:[o*100,"%"]}),jsx(z,{variant:"outlined","aria-label":"zoom-in",size:"small",color:"secondary",icon:jsx(ma,{style:{width:14,height:14}}),onClick:S,disabled:o>=4,p:8})]}),jsx("div",{className:"h-full w-full overflow-auto",children:jsx("img",{src:r,ref:b,alt:"image",className:"block w-auto max-w-none object-contain",style:{transition:"all 0.2s ease-in-out",marginInline:"auto",marginBlock:10,flexShrink:0,...p==="width"&&{width:`calc(${o*100}% - 20px)`},...p==="height"&&{height:`calc(${o*100}% - 20px)`}},onLoad:()=>{if(b.current&&g.current){let R=b.current.width,A=b.current.height,x=R<A?"height":"width";h(x);}}})})]})},"ImageDriver");var jt=a(({url:r})=>jsx("div",{className:"flex flex-col justify-center items-center w-full h-full p-5.5",children:jsx("audio",{controls:true,src:r,className:"w-full"})}),"AudioDriver");var Ve=a(({url:r})=>{let[o,c]=useState(null),[p,h]=useState(false),[b,g]=useState(true),[S,I]=useState(null);return useEffect(()=>{h(true);},[]),useEffect(()=>{if(!p)return;a(async()=>{try{let A=await import('./PdfDriver-YNBNQ6YM.mjs');c(()=>A.PdfDriver),g(!1);}catch(A){console.error("Failed to load PDF driver:",A),I("Failed to load PDF viewer"),g(false);}},"loadPdfDriver")();},[p]),p?b?jsx("div",{className:"flex items-center justify-center h-full w-full",children:jsx("div",{className:"text-gray-500",children:"Loading PDF viewer..."})}):S||!o?jsx("div",{className:"flex items-center justify-center h-full w-full",children:jsx("div",{className:"text-red-500 text-center",children:jsx("p",{children:S||"PDF viewer unavailable"})})}):jsx(o,{url:r}):jsx("div",{className:"flex items-center justify-center h-full w-full",children:jsx("div",{className:"text-gray-500",children:"Loading PDF viewer..."})})},"PdfDriverWrapper");var At=50,Qr=1e4,$t=a(({url:r,blob:o})=>{let c=useRef(null),[p,h]=useState(null),[b,g]=useState(true);return useEffect(()=>{a(async()=>{if(c.current)try{if(g(!0),h(null),!o&&r&&(o=await(await fetch(r)).blob()),!o){h("\u041D\u0435 \u043D\u0430\u0434\u0430\u043D\u043E \u0434\u043B\u044F DOCX \u0444\u0430\u0439\u043B\u0443");return}if(o.size/(1024*1024)>At){h(`\u0424\u0430\u0439\u043B \u0437\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0438\u0439 (> ${At} \u041C\u0411)`);return}c.current.innerHTML="";let R=renderAsync(o,c.current,void 0,{debug:!0,experimental:!0,hideWrapperOnPrint:!0}),A=new Promise((x,T)=>setTimeout(()=>T(new Error("\u0420\u0435\u043D\u0434\u0435\u0440\u0438\u043D\u0433 DOCX \u0437\u0430\u0439\u043D\u044F\u0432 \u043D\u0430\u0434\u0442\u043E \u0431\u0430\u0433\u0430\u0442\u043E \u0447\u0430\u0441\u0443")),Qr));await Promise.race([R,A]),g(!1);}catch(I){h(I?.message||"\u041D\u0435 \u0432\u0434\u0430\u043B\u043E\u0441\u044F \u0432\u0456\u0434\u043A\u0440\u0438\u0442\u0438 DOCX \u0444\u0430\u0439\u043B"),g(false);}},"renderDocument")();},[r,o]),jsxs(Fragment$1,{children:[!!p&&!b&&jsx("div",{className:"text-red-500 p-5",children:p}),b&&jsx("div",{className:"flex items-center justify-center p-5",children:"\u0417\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u043D\u044F..."}),jsx("div",{ref:c,className:"w-full h-full overflow-auto [&_table]:max-w-full! [&>div.docx-wrapper]:w-fit",style:{boxSizing:"border-box"}})]})},"DocxDriver");var no=a(r=>({js:"javascript",jsx:"jsx",ts:"typescript",tsx:"tsx",json:"json",html:"html",css:"css",scss:"scss",py:"python",java:"java",cpp:"cpp",c:"c",cs:"csharp",php:"php",rb:"ruby",go:"go",rs:"rust",swift:"swift",kt:"kotlin",xml:"xml",yaml:"yaml",yml:"yaml",md:"markdown",sql:"sql",sh:"bash",bash:"bash",txt:"text"})[r]||"text","getLanguageFromExtension"),Ot=a(({url:r,extension:o})=>{let[c,p]=useState(""),[h,b]=useState(true),[g,S]=useState(null);if(useEffect(()=>{a(async()=>{try{b(!0),S(null);let x=await fetch(r);if(!x.ok)throw new Error(`Failed to load file: ${x.statusText}`);let T=await x.text();p(T);}catch(x){S(x instanceof Error?x.message:"Failed to load text content");}finally{b(false);}},"loadTextContent")();},[r]),h)return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("div",{className:"text-gray-500",children:"Loading text content..."})});if(g)return jsx("div",{className:"flex items-center justify-center p-8",children:jsxs("div",{className:"text-red-500",children:["Error: ",g]})});let I=no(o);return jsx("div",{className:"h-full w-full overflow-auto",children:I!=="text"?jsx(Prism,{className:"min-h-full! m-0! py-0!",language:I,style:darcula,showLineNumbers:true,wrapLines:true,children:c}):jsx("pre",{className:"whitespace-pre-wrap p-4 text-sm font-mono bg-gray-50 min-h-full",children:c})})},"TextDriver");var Ht=a(({url:r})=>jsx("div",{className:"flex flex-col justify-center items-center w-full h-full",children:jsx("video",{controls:true,src:r,className:"w-full max-h-full"})}),"VideoDriver");var Xt=memo(a(function({extension:o,blob:c,path:p,buffer:h,not_supported_message:b=" Sorry, this file type isn\u2019t supported yet."}){console.log("Driver props:",{extension:o,blob:c,path:p,buffer:h});let g=o.toLocaleLowerCase().trim(),S;if(p?S=p:c&&(S=URL.createObjectURL(c)),S){if(["jpeg","jpg","png","gif","bmp","webp"].includes(g))return jsx(Et,{url:S});if(["mp3","wav","ogg","flac"].includes(g))return jsx(jt,{url:S});if(["mp4","webm"].includes(g))return jsx(Ht,{url:S});if(o==="pdf")return jsx(Ve,{url:S});if(["txt","js","jsx","ts","tsx","json","html","css","scss","py","java","cpp","c","cs","php","rb","go","rs","swift","kt","xml","yaml","yml","md","sql","sh","bash"].includes(g))return jsx(Ot,{url:S,extension:g})}return g==="docx"?jsx($t,{url:S,blob:c}):jsx("div",{className:"h-full flex flex-col justify-center items-center",children:jsx(mb,{className:"mx-5",children:jsx(Wa,{variant:"h2",color:"text.light",weight:500,className:"text-center",children:b})})})},"Driver"));var ec=a(r=>jsx("div",{className:"h-full w-full",children:jsx(Xt,{...r})}),"FileViewer");var Gt=250,pc=a(({text:r,speed:o=50,onDone:c,markdown:p=false,markdownComponents:h={},className:b,...g})=>{let[S,I]=useState(""),R=useRef(null),A=useRef(null);return useEffect(()=>{let x=false;if(o>0){I(""),R.current=performance.now();let T=a(V=>{if(x||!R.current)return;let t=V-R.current,$=t/o>Gt?o/2:o,U=t/o>Gt?1.5:1,k=Math.floor(t/$*U);if(k>=r.length){I(r),x=true,c?.();return}I(r.slice(0,k)),A.current=requestAnimationFrame(T);},"tick");A.current=requestAnimationFrame(T);}else I(r),c?.();return ()=>{A.current&&cancelAnimationFrame(A.current);}},[r,o,c]),p?jsx("div",{className:b,children:jsx(lo,{remarkPlugins:[uo],components:h,...g,children:S})}):jsx(Wa,{className:b,...g,children:S})},"Typewriter");var mo={timeout:2e3,message:"Copied!"},kc=a(({text:r,children:o,format:c="text/plain",tooltip:p})=>{let[h,b]=useState(false),g=useRef(null),S={...mo,...p},I=a(async()=>{"clipboard"in navigator?await navigator.clipboard.writeText(r):po(r,{format:c}),b(true),g.current&&clearTimeout(g.current),g.current=setTimeout(()=>b(false),S.timeout);},"handleCopy");return useEffect(()=>()=>{g.current&&clearTimeout(g.current);},[]),jsx(yb,{onMouseLeave:()=>b(false),className:h?"visible":"hidden",content:S.message,children:o({copy:I})})},"CopyToClipboard");var Vt=a(r=>new Date(r?Array.isArray(r)?r[1]||r[0]||new Date:r:new Date),"getInitValue"),Fe=a((r,o)=>{let c;if(o){let h=parse(r||"",o,new Date);if(isValid(h)&&getYear(h)>=1970)return h}let p=new Date(r||"");return isNaN(p.getTime())?c:p},"parseDate"),So=a((r,o)=>{let c=r?Fe(r,o):void 0;return c&&o?format(c,o):r},"renderDate"),jc=a(({value:r,range:o,inline:c=false,minDate:p=new Date(getYear(new Date)-5,0,1),maxDate:h=new Date(getYear(new Date)+5,11,31),format:b="dd.MM.yyyy",onChange:g,...S})=>{let[I,R]=useState(getMonth(Vt(r))),[A,x]=useState(getYear(Vt(r))),T=useMemo(()=>{if(r){if(Array.isArray(r)){let t=Fe(r[0],b),$=Fe(r[1],b);return [t,$]}return Fe(r,b)}},[r]),V=useCallback(t=>{if(o){let $=!!(T&&Array.isArray(T)&&T[0]),U=!!(T&&Array.isArray(T)&&T[1]);!$||$&&U?g?.([t.toString(),""]):$&&!U&&(t<T[0]?g?.([t.toString(),T[0].toString()]):g?.([T[0].toString(),t.toString()]));}else g?.(t.toString());},[o,T,g]);return c?jsx(qt,{month:I,year:A,minDate:p,maxDate:h,selectedDate:T,onSelectDate:V,onChangeMonth:R,onChangeYear:x}):o?jsx(Mo,{range:true,value:r,onChange:g,...S}):jsx(Co,{value:r,onChange:g,minDate:p,maxDate:h,month:I,year:A,selectedDate:T,onChangeMonth:R,onChangeYear:x,onSelectDate:V,formatStr:b,...S})},"DatePicker"),Mo=a(({minDate:r,maxDate:o,value:c,onChange:p})=>null,"DatePickerGroupInput"),Co=a(({placeholder:r,value:o,onChange:c,inputProps:p,...h})=>{let[b,g]=useState(false),S=y();return jsx(Popover,{positions:["bottom","top","right","left"],align:"start",isOpen:b,onClickOutside:()=>g(false),content:jsx(mb,{children:jsx(qt,{...h})}),containerStyle:{zIndex:`${S.zIndex.popover}`},children:jsx("div",{onClick:()=>g(true),children:jsx(ib,{...p,placeholder:r,value:So(o,h.formatStr),onChange:I=>c?.(I.target.value)})})})},"DatePickerInput"),qt=a(({month:r,year:o,selectedDate:c,minDate:p,maxDate:h,onSelectDate:b,onChangeMonth:g,onChangeYear:S})=>{let I=useMemo(()=>new Array(12).fill(null).map((k,E)=>{let M=new Date(0,E);return {value:E+1,inputDisplay:format(M,"MMMM")}}),[]),R=useMemo(()=>{let k=getYear(p),M=getYear(h)-k+1;return new Array(M).fill(null).map((D,K)=>{let q=k+K;return {value:q,inputDisplay:q.toString()}})},[p,h]),A=useMemo(()=>new Array(7).fill(null).map((k,E)=>{let M=startOfWeek(new Date,{weekStartsOn:E});return format(M,"EEE")}),[]),x=useMemo(()=>{let k=getWeeksInMonth(new Date(o,r)),E=startOfMonth(new Date(o,r)),M=previousMonday(E),D=differenceInDays(E,M);return new Array(k*7).fill(null).map((K,q)=>new Date(o,r,q-D+1))},[r,o]),T=useCallback(()=>{r===0?(S(o-1),g(11)):g(r-1);},[r,o]),V=useCallback(()=>{r===11?(S(o+1),g(0)):g(r+1);},[r,o]),t=useMemo(()=>p?!(o<getYear(p)||o===getYear(p)&&r<=getMonth(p)):true,[r,o,p]),$=useMemo(()=>h?!(o>getYear(h)||o===getYear(h)&&r>=getMonth(h)):true,[r,o,h]),U=useCallback(k=>{k.stopPropagation();},[]);return jsxs("div",{className:"flex flex-col date-picker-calendar",onClick:U,children:[jsxs("div",{className:"flex justify-center items-center gap-2 pb-3",children:[t&&jsx(z,{size:"small",variant:"empty",icon:jsx(G,{}),onClick:T}),jsxs("div",{className:"flex-1 flex justify-center gap-1",children:[jsx(gb,{placeholder:"",hasBorder:false,selected:r+1,options:I,onSelect:k=>g(k-1),maxWidth:150,maxHeight:300}),jsx(gb,{placeholder:"",hasBorder:false,selected:o,options:R,onSelect:k=>S(k),maxWidth:100,maxHeight:300})]}),$&&jsx(z,{size:"small",variant:"empty",icon:jsx(H,{}),onClick:V})]}),jsx("div",{className:"grid grid-cols-7 gap-2",children:A.map(k=>jsx("div",{className:"text-center",children:k},k))}),jsx("div",{className:"grid grid-cols-7 gap-2 mt-2",children:x.map(k=>{let E=getMonth(k)===r,M=format(k,"yyyy-MM-dd")===format(new Date,"yyyy-MM-dd"),D=c&&(Array.isArray(c)&&(c[0]&&format(k,"yyyy-MM-dd")===format(c[0],"yyyy-MM-dd")||c[1]&&format(k,"yyyy-MM-dd")===format(c[1],"yyyy-MM-dd"))||!Array.isArray(c)&&format(k,"yyyy-MM-dd")===format(c,"yyyy-MM-dd")),K=c&&Array.isArray(c)&&c[0]&&c[1]&&k>c[0]&&k<c[1],q=p&&differenceInDays(k,p)<0||h&&differenceInDays(k,h)>0||!E;return jsx(To,{date:k,isCurrentMonth:E,isCurrentDay:M,isSelected:!!D,isInRange:!!K,isDisabled:!!q,onSelectDate:b},k.toISOString())})})]})},"DatePickerCalendar"),To=a(({date:r,isCurrentMonth:o,isCurrentDay:c,isSelected:p,isInRange:h,isDisabled:b,onSelectDate:g})=>jsx("div",{className:`text-center p-2 cursor-pointer rounded ${b?"text-gray-400 cursor-not-allowed":p?"bg-blue-500 text-white":h?"bg-blue-100":c?"text-blue-500":o?"text-black":"text-gray-400"} ${b?"":p?"hover:bg-blue-600":"hover:bg-gray-100"}`,onClick:a(I=>{b||g(r);},"handleClick"),children:format(r,"d")}),"CalendarDay");var Lo=a(r=>{switch(r){case "primary":return "bg-blue-100 border-blue-200 dark:bg-blue-800/10 dark:border-blue-900";case "error":return "bg-red-100 border-red-200 dark:bg-red-800/10 dark:border-red-900";case "warning":return "bg-yellow-100 border-yellow-200 dark:bg-yellow-800/10 dark:border-yellow-900";case "success":return "bg-teal-100 border-teal-200 dark:bg-teal-800/10 dark:border-teal-900";case "default":default:return "bg-white border border-gray-200 dark:bg-neutral-800 dark:border-neutral-700"}},"getColorStyle"),Ro=a(r=>{switch(r){case "primary":return "text-blue-800 dark:text-blue-500";case "error":return "text-red-800 dark:text-red-500";case "warning":return "text-yellow-800 dark:text-yellow-500";case "success":return "text-teal-800 dark:text-teal-500";case "default":default:return "text-gray-800 dark:text-white"}},"getTextColor"),Eo=a(r=>{switch(r){case "bottom":return "translate-y-4";case "top":default:return "-translate-y-4"}},"getTransitionStarting"),Qt=a(({id:r,color:o="default",message:c,duration:p,transitionDirection:h,cancelable:b=true,onClose:g})=>{let[S,I]=useState(false),[R,A]=useState(false),x=useRef(null),T=useCallback(()=>{I(true),x.current=setTimeout(()=>{g(r);},300);},[r,g]);return useEffect(()=>{if(A(true),p&&p<1/0){let V=setTimeout(()=>{T();},p);return ()=>clearTimeout(V)}},[p,T]),useEffect(()=>()=>{x.current&&clearTimeout(x.current);},[]),jsx("div",{className:`max-w-xs
66
+ `);var Et=a(({url:r})=>{let[o,c]=useState(1),[p,h]=useState(),b=Lt.useRef(null),g=Lt.useRef(null),S=a(()=>{c(R=>Math.min(R+.25,4));},"handleZoomIn");return jsxs("div",{ref:g,className:"h-full w-full flex flex-col",children:[jsxs("div",{className:"flex justify-center items-stretch p-5.5 gap-1 border-b border-gray-200 relative ",children:[jsx(z,{variant:"outlined","aria-label":"zoom-out",color:"secondary",size:"small",icon:jsx(Pa,{style:{width:20,height:20}}),onClick:a(()=>{c(R=>Math.max(R-.25,.25));},"handleZoomOut"),disabled:o<=.25,p:5}),jsxs(mb,{py:5,px:8,children:[o*100,"%"]}),jsx(z,{variant:"outlined","aria-label":"zoom-in",size:"small",color:"secondary",icon:jsx(ma,{style:{width:14,height:14}}),onClick:S,disabled:o>=4,p:8})]}),jsx("div",{className:"h-full w-full overflow-auto",children:jsx("img",{src:r,ref:b,alt:"image",className:"block w-auto max-w-none object-contain",style:{transition:"all 0.2s ease-in-out",marginInline:"auto",marginBlock:10,flexShrink:0,...p==="width"&&{width:`calc(${o*100}% - 20px)`},...p==="height"&&{height:`calc(${o*100}% - 20px)`}},onLoad:()=>{if(b.current&&g.current){let R=b.current.width,A=b.current.height,x=R<A?"height":"width";h(x);}}})})]})},"ImageDriver");var jt=a(({url:r})=>jsx("div",{className:"flex flex-col justify-center items-center w-full h-full p-5.5",children:jsx("audio",{controls:true,src:r,className:"w-full"})}),"AudioDriver");var Ve=a(({url:r})=>{let[o,c]=useState(null),[p,h]=useState(false),[b,g]=useState(true),[S,I]=useState(null);return useEffect(()=>{h(true);},[]),useEffect(()=>{if(!p)return;a(async()=>{try{let A=await import('./PdfDriver-YEDZENTX.mjs');c(()=>A.PdfDriver),g(!1);}catch(A){console.error("Failed to load PDF driver:",A),I("Failed to load PDF viewer"),g(false);}},"loadPdfDriver")();},[p]),p?b?jsx("div",{className:"flex items-center justify-center h-full w-full",children:jsx("div",{className:"text-gray-500",children:"Loading PDF viewer..."})}):S||!o?jsx("div",{className:"flex items-center justify-center h-full w-full",children:jsx("div",{className:"text-red-500 text-center",children:jsx("p",{children:S||"PDF viewer unavailable"})})}):jsx(o,{url:r}):jsx("div",{className:"flex items-center justify-center h-full w-full",children:jsx("div",{className:"text-gray-500",children:"Loading PDF viewer..."})})},"PdfDriverWrapper");var At=50,Qr=1e4,$t=a(({url:r,blob:o})=>{let c=useRef(null),[p,h]=useState(null),[b,g]=useState(true);return useEffect(()=>{a(async()=>{if(c.current)try{if(g(!0),h(null),!o&&r&&(o=await(await fetch(r)).blob()),!o){h("\u041D\u0435 \u043D\u0430\u0434\u0430\u043D\u043E \u0434\u043B\u044F DOCX \u0444\u0430\u0439\u043B\u0443");return}if(o.size/(1024*1024)>At){h(`\u0424\u0430\u0439\u043B \u0437\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0438\u0439 (> ${At} \u041C\u0411)`);return}c.current.innerHTML="";let R=renderAsync(o,c.current,void 0,{debug:!0,experimental:!0,hideWrapperOnPrint:!0}),A=new Promise((x,T)=>setTimeout(()=>T(new Error("\u0420\u0435\u043D\u0434\u0435\u0440\u0438\u043D\u0433 DOCX \u0437\u0430\u0439\u043D\u044F\u0432 \u043D\u0430\u0434\u0442\u043E \u0431\u0430\u0433\u0430\u0442\u043E \u0447\u0430\u0441\u0443")),Qr));await Promise.race([R,A]),g(!1);}catch(I){h(I?.message||"\u041D\u0435 \u0432\u0434\u0430\u043B\u043E\u0441\u044F \u0432\u0456\u0434\u043A\u0440\u0438\u0442\u0438 DOCX \u0444\u0430\u0439\u043B"),g(false);}},"renderDocument")();},[r,o]),jsxs(Fragment$1,{children:[!!p&&!b&&jsx("div",{className:"text-red-500 p-5",children:p}),b&&jsx("div",{className:"flex items-center justify-center p-5",children:"\u0417\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u043D\u044F..."}),jsx("div",{ref:c,className:"w-full h-full overflow-auto [&_table]:max-w-full! [&>div.docx-wrapper]:w-fit",style:{boxSizing:"border-box"}})]})},"DocxDriver");var no=a(r=>({js:"javascript",jsx:"jsx",ts:"typescript",tsx:"tsx",json:"json",html:"html",css:"css",scss:"scss",py:"python",java:"java",cpp:"cpp",c:"c",cs:"csharp",php:"php",rb:"ruby",go:"go",rs:"rust",swift:"swift",kt:"kotlin",xml:"xml",yaml:"yaml",yml:"yaml",md:"markdown",sql:"sql",sh:"bash",bash:"bash",txt:"text"})[r]||"text","getLanguageFromExtension"),Ot=a(({url:r,extension:o})=>{let[c,p]=useState(""),[h,b]=useState(true),[g,S]=useState(null);if(useEffect(()=>{a(async()=>{try{b(!0),S(null);let x=await fetch(r);if(!x.ok)throw new Error(`Failed to load file: ${x.statusText}`);let T=await x.text();p(T);}catch(x){S(x instanceof Error?x.message:"Failed to load text content");}finally{b(false);}},"loadTextContent")();},[r]),h)return jsx("div",{className:"flex items-center justify-center p-8",children:jsx("div",{className:"text-gray-500",children:"Loading text content..."})});if(g)return jsx("div",{className:"flex items-center justify-center p-8",children:jsxs("div",{className:"text-red-500",children:["Error: ",g]})});let I=no(o);return jsx("div",{className:"h-full w-full overflow-auto",children:I!=="text"?jsx(Prism,{className:"min-h-full! m-0! py-0!",language:I,style:darcula,showLineNumbers:true,wrapLines:true,children:c}):jsx("pre",{className:"whitespace-pre-wrap p-4 text-sm font-mono bg-gray-50 min-h-full",children:c})})},"TextDriver");var Ht=a(({url:r})=>jsx("div",{className:"flex flex-col justify-center items-center w-full h-full",children:jsx("video",{controls:true,src:r,className:"w-full max-h-full"})}),"VideoDriver");var Xt=memo(a(function({extension:o,blob:c,path:p,buffer:h,not_supported_message:b=" Sorry, this file type isn\u2019t supported yet."}){console.log("Driver props:",{extension:o,blob:c,path:p,buffer:h});let g=o.toLocaleLowerCase().trim(),S;if(p?S=p:c&&(S=URL.createObjectURL(c)),S){if(["jpeg","jpg","png","gif","bmp","webp"].includes(g))return jsx(Et,{url:S});if(["mp3","wav","ogg","flac"].includes(g))return jsx(jt,{url:S});if(["mp4","webm"].includes(g))return jsx(Ht,{url:S});if(o==="pdf")return jsx(Ve,{url:S});if(["txt","js","jsx","ts","tsx","json","html","css","scss","py","java","cpp","c","cs","php","rb","go","rs","swift","kt","xml","yaml","yml","md","sql","sh","bash"].includes(g))return jsx(Ot,{url:S,extension:g})}return g==="docx"?jsx($t,{url:S,blob:c}):jsx("div",{className:"h-full flex flex-col justify-center items-center",children:jsx(mb,{className:"mx-5",children:jsx(Wa,{variant:"h2",color:"text.light",weight:500,className:"text-center",children:b})})})},"Driver"));var ec=a(r=>jsx("div",{className:"h-full w-full",children:jsx(Xt,{...r})}),"FileViewer");var Gt=250,pc=a(({text:r,speed:o=50,onDone:c,markdown:p=false,markdownComponents:h={},className:b,...g})=>{let[S,I]=useState(""),R=useRef(null),A=useRef(null);return useEffect(()=>{let x=false;if(o>0){I(""),R.current=performance.now();let T=a(V=>{if(x||!R.current)return;let t=V-R.current,$=t/o>Gt?o/2:o,U=t/o>Gt?1.5:1,k=Math.floor(t/$*U);if(k>=r.length){I(r),x=true,c?.();return}I(r.slice(0,k)),A.current=requestAnimationFrame(T);},"tick");A.current=requestAnimationFrame(T);}else I(r),c?.();return ()=>{A.current&&cancelAnimationFrame(A.current);}},[r,o,c]),p?jsx("div",{className:b,children:jsx(lo,{remarkPlugins:[uo],components:h,...g,children:S})}):jsx(Wa,{className:b,...g,children:S})},"Typewriter");var mo={timeout:2e3,message:"Copied!"},kc=a(({text:r,children:o,format:c="text/plain",tooltip:p})=>{let[h,b]=useState(false),g=useRef(null),S={...mo,...p},I=a(async()=>{"clipboard"in navigator?await navigator.clipboard.writeText(r):po(r,{format:c}),b(true),g.current&&clearTimeout(g.current),g.current=setTimeout(()=>b(false),S.timeout);},"handleCopy");return useEffect(()=>()=>{g.current&&clearTimeout(g.current);},[]),jsx(yb,{onMouseLeave:()=>b(false),className:h?"visible":"hidden",content:S.message,children:o({copy:I})})},"CopyToClipboard");var Vt=a(r=>new Date(r?Array.isArray(r)?r[1]||r[0]||new Date:r:new Date),"getInitValue"),Fe=a((r,o)=>{let c;if(o){let h=parse(r||"",o,new Date);if(isValid(h)&&getYear(h)>=1970)return h}let p=new Date(r||"");return isNaN(p.getTime())?c:p},"parseDate"),So=a((r,o)=>{let c=r?Fe(r,o):void 0;return c&&o?format(c,o):r},"renderDate"),jc=a(({value:r,range:o,inline:c=false,minDate:p=new Date(getYear(new Date)-5,0,1),maxDate:h=new Date(getYear(new Date)+5,11,31),format:b="dd.MM.yyyy",onChange:g,...S})=>{let[I,R]=useState(getMonth(Vt(r))),[A,x]=useState(getYear(Vt(r))),T=useMemo(()=>{if(r){if(Array.isArray(r)){let t=Fe(r[0],b),$=Fe(r[1],b);return [t,$]}return Fe(r,b)}},[r]),V=useCallback(t=>{if(o){let $=!!(T&&Array.isArray(T)&&T[0]),U=!!(T&&Array.isArray(T)&&T[1]);!$||$&&U?g?.([t.toString(),""]):$&&!U&&(t<T[0]?g?.([t.toString(),T[0].toString()]):g?.([T[0].toString(),t.toString()]));}else g?.(t.toString());},[o,T,g]);return c?jsx(qt,{month:I,year:A,minDate:p,maxDate:h,selectedDate:T,onSelectDate:V,onChangeMonth:R,onChangeYear:x}):o?jsx(Mo,{range:true,value:r,onChange:g,...S}):jsx(Co,{value:r,onChange:g,minDate:p,maxDate:h,month:I,year:A,selectedDate:T,onChangeMonth:R,onChangeYear:x,onSelectDate:V,formatStr:b,...S})},"DatePicker"),Mo=a(({minDate:r,maxDate:o,value:c,onChange:p})=>null,"DatePickerGroupInput"),Co=a(({placeholder:r,value:o,onChange:c,inputProps:p,...h})=>{let[b,g]=useState(false),S=y();return jsx(Popover,{positions:["bottom","top","right","left"],align:"start",isOpen:b,onClickOutside:()=>g(false),content:jsx(mb,{children:jsx(qt,{...h})}),containerStyle:{zIndex:`${S.zIndex.popover}`},children:jsx("div",{onClick:()=>g(true),children:jsx(ib,{...p,placeholder:r,value:So(o,h.formatStr),onChange:I=>c?.(I.target.value)})})})},"DatePickerInput"),qt=a(({month:r,year:o,selectedDate:c,minDate:p,maxDate:h,onSelectDate:b,onChangeMonth:g,onChangeYear:S})=>{let I=useMemo(()=>new Array(12).fill(null).map((k,E)=>{let M=new Date(0,E);return {value:E+1,inputDisplay:format(M,"MMMM")}}),[]),R=useMemo(()=>{let k=getYear(p),M=getYear(h)-k+1;return new Array(M).fill(null).map((D,K)=>{let q=k+K;return {value:q,inputDisplay:q.toString()}})},[p,h]),A=useMemo(()=>new Array(7).fill(null).map((k,E)=>{let M=startOfWeek(new Date,{weekStartsOn:E});return format(M,"EEE")}),[]),x=useMemo(()=>{let k=getWeeksInMonth(new Date(o,r)),E=startOfMonth(new Date(o,r)),M=previousMonday(E),D=differenceInDays(E,M);return new Array(k*7).fill(null).map((K,q)=>new Date(o,r,q-D+1))},[r,o]),T=useCallback(()=>{r===0?(S(o-1),g(11)):g(r-1);},[r,o]),V=useCallback(()=>{r===11?(S(o+1),g(0)):g(r+1);},[r,o]),t=useMemo(()=>p?!(o<getYear(p)||o===getYear(p)&&r<=getMonth(p)):true,[r,o,p]),$=useMemo(()=>h?!(o>getYear(h)||o===getYear(h)&&r>=getMonth(h)):true,[r,o,h]),U=useCallback(k=>{k.stopPropagation();},[]);return jsxs("div",{className:"flex flex-col date-picker-calendar",onClick:U,children:[jsxs("div",{className:"flex justify-center items-center gap-2 pb-3",children:[t&&jsx(z,{size:"small",variant:"empty",icon:jsx(G,{}),onClick:T}),jsxs("div",{className:"flex-1 flex justify-center gap-1",children:[jsx(gb,{placeholder:"",hasBorder:false,selected:r+1,options:I,onSelect:k=>g(k-1),maxWidth:150,maxHeight:300}),jsx(gb,{placeholder:"",hasBorder:false,selected:o,options:R,onSelect:k=>S(k),maxWidth:100,maxHeight:300})]}),$&&jsx(z,{size:"small",variant:"empty",icon:jsx(H,{}),onClick:V})]}),jsx("div",{className:"grid grid-cols-7 gap-2",children:A.map(k=>jsx("div",{className:"text-center",children:k},k))}),jsx("div",{className:"grid grid-cols-7 gap-2 mt-2",children:x.map(k=>{let E=getMonth(k)===r,M=format(k,"yyyy-MM-dd")===format(new Date,"yyyy-MM-dd"),D=c&&(Array.isArray(c)&&(c[0]&&format(k,"yyyy-MM-dd")===format(c[0],"yyyy-MM-dd")||c[1]&&format(k,"yyyy-MM-dd")===format(c[1],"yyyy-MM-dd"))||!Array.isArray(c)&&format(k,"yyyy-MM-dd")===format(c,"yyyy-MM-dd")),K=c&&Array.isArray(c)&&c[0]&&c[1]&&k>c[0]&&k<c[1],q=p&&differenceInDays(k,p)<0||h&&differenceInDays(k,h)>0||!E;return jsx(To,{date:k,isCurrentMonth:E,isCurrentDay:M,isSelected:!!D,isInRange:!!K,isDisabled:!!q,onSelectDate:b},k.toISOString())})})]})},"DatePickerCalendar"),To=a(({date:r,isCurrentMonth:o,isCurrentDay:c,isSelected:p,isInRange:h,isDisabled:b,onSelectDate:g})=>jsx("div",{className:`text-center p-2 cursor-pointer rounded ${b?"text-gray-400 cursor-not-allowed":p?"bg-blue-500 text-white":h?"bg-blue-100":c?"text-blue-500":o?"text-black":"text-gray-400"} ${b?"":p?"hover:bg-blue-600":"hover:bg-gray-100"}`,onClick:a(I=>{b||g(r);},"handleClick"),children:format(r,"d")}),"CalendarDay");var Lo=a(r=>{switch(r){case "primary":return "bg-blue-100 border-blue-200 dark:bg-blue-800/10 dark:border-blue-900";case "error":return "bg-red-100 border-red-200 dark:bg-red-800/10 dark:border-red-900";case "warning":return "bg-yellow-100 border-yellow-200 dark:bg-yellow-800/10 dark:border-yellow-900";case "success":return "bg-teal-100 border-teal-200 dark:bg-teal-800/10 dark:border-teal-900";case "default":default:return "bg-white border border-gray-200 dark:bg-neutral-800 dark:border-neutral-700"}},"getColorStyle"),Ro=a(r=>{switch(r){case "primary":return "text-blue-800 dark:text-blue-500";case "error":return "text-red-800 dark:text-red-500";case "warning":return "text-yellow-800 dark:text-yellow-500";case "success":return "text-teal-800 dark:text-teal-500";case "default":default:return "text-gray-800 dark:text-white"}},"getTextColor"),Eo=a(r=>{switch(r){case "bottom":return "translate-y-4";case "top":default:return "-translate-y-4"}},"getTransitionStarting"),Qt=a(({id:r,color:o="default",message:c,duration:p,transitionDirection:h,cancelable:b=true,onClose:g})=>{let[S,I]=useState(false),[R,A]=useState(false),x=useRef(null),T=useCallback(()=>{I(true),x.current=setTimeout(()=>{g(r);},300);},[r,g]);return useEffect(()=>{if(A(true),p&&p<1/0){let V=setTimeout(()=>{T();},p);return ()=>clearTimeout(V)}},[p,T]),useEffect(()=>()=>{x.current&&clearTimeout(x.current);},[]),jsx("div",{className:`max-w-xs
67
67
  border
68
68
  w-full
69
69
  text-sm
@@ -1,3 +1,3 @@
1
- @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-800:oklch(47.6% .114 61.907);--color-yellow-900:oklch(42.1% .095 57.708);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-teal-100:oklch(95.3% .051 180.801);--color-teal-200:oklch(91% .096 180.426);--color-teal-500:oklch(70.4% .14 182.503);--color-teal-800:oklch(43.7% .078 188.216);--color-teal-900:oklch(38.6% .063 188.416);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-zinc-100:oklch(96.7% .001 286.375);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-800:oklch(27.4% .006 286.033);--color-neutral-700:oklch(37.1% 0 0);--color-neutral-800:oklch(26.9% 0 0);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-md:.375rem;--radius-lg:.5rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.collapse{visibility:collapse}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.start-1\/2{inset-inline-start:50%}.top-0{top:calc(var(--spacing)*0)}.top-1\/2{top:50%}.top-4{top:calc(var(--spacing)*4)}.top-8{top:calc(var(--spacing)*8)}.right-0{right:calc(var(--spacing)*0)}.right-4{right:calc(var(--spacing)*4)}.right-8{right:calc(var(--spacing)*8)}.bottom-4{bottom:calc(var(--spacing)*4)}.bottom-8{bottom:calc(var(--spacing)*8)}.left-4{left:calc(var(--spacing)*4)}.left-8{left:calc(var(--spacing)*8)}.z-50{z-index:50}.row-1{grid-row:1}.row-2{grid-row:2}.row-3{grid-row:3}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-0\!{margin:calc(var(--spacing)*0)!important}.mx-5{margin-inline:calc(var(--spacing)*5)}.mx-auto{margin-inline:auto}.ms-auto{margin-inline-start:auto}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-2\.5{margin-top:calc(var(--spacing)*2.5)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-5{margin-top:calc(var(--spacing)*5)}.mt-5\.5{margin-top:calc(var(--spacing)*5.5)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-5{margin-bottom:calc(var(--spacing)*5)}.ml-3{margin-left:calc(var(--spacing)*3)}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.size-3\.5{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5{width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.h-1{height:calc(var(--spacing)*1)}.h-1\.5{height:calc(var(--spacing)*1.5)}.h-2\.5{height:calc(var(--spacing)*2.5)}.h-5{height:calc(var(--spacing)*5)}.h-5\.5{height:calc(var(--spacing)*5.5)}.h-6{height:calc(var(--spacing)*6)}.h-\[76px\]{height:76px}.h-\[500px\]{height:500px}.h-\[600px\]{height:600px}.h-auto{height:auto}.h-full{height:100%}.max-h-full{max-height:100%}.min-h-full{min-height:100%}.min-h-full\!{min-height:100%!important}.min-h-screen{min-height:100vh}.w-2\.5{width:calc(var(--spacing)*2.5)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-5\.5{width:calc(var(--spacing)*5.5)}.w-15{width:calc(var(--spacing)*15)}.w-\[82px\]{width:82px}.w-\[500px\]{width:500px}.w-\[600px\]{width:600px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-none{max-width:none}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:calc(var(--spacing)*0)}.flex-1{flex:1}.flex-shrink,.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-4{--tw-translate-y:calc(var(--spacing)*-4);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-4{--tw-translate-y:calc(var(--spacing)*4);translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.cursor-col-resize{cursor:col-resize}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-start{justify-content:flex-start}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-5{gap:calc(var(--spacing)*5)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-blue-200{border-color:var(--color-blue-200)}.border-blue-300{border-color:var(--color-blue-300)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400\!{border-color:var(--color-gray-400)!important}.border-red-200{border-color:var(--color-red-200)}.border-red-500{border-color:var(--color-red-500)}.border-teal-200{border-color:var(--color-teal-200)}.border-yellow-200{border-color:var(--color-yellow-200)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-500{background-color:var(--color-gray-500)}.bg-green-500{background-color:var(--color-green-500)}.bg-red-100{background-color:var(--color-red-100)}.bg-red-500{background-color:var(--color-red-500)}.bg-teal-100{background-color:var(--color-teal-100)}.bg-white{background-color:var(--color-white)}.bg-yellow-100{background-color:var(--color-yellow-100)}.bg-none{background-image:none}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-2{padding:calc(var(--spacing)*2)}.p-2\.5{padding:calc(var(--spacing)*2.5)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.p-5\.5{padding:calc(var(--spacing)*5.5)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-0\!{padding-block:calc(var(--spacing)*0)!important}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.pt-1\.5{padding-top:calc(var(--spacing)*1.5)}.pr-3{padding-right:calc(var(--spacing)*3)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pb-5{padding-bottom:calc(var(--spacing)*5)}.pl-2\.5{padding-left:calc(var(--spacing)*2.5)}.text-center{text-align:center}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-wrap{text-wrap:wrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-black{color:var(--color-black)}.text-blue-500{color:var(--color-blue-500)}.text-blue-800{color:var(--color-blue-800)}.text-gray-300{color:var(--color-gray-300)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-red-500{color:var(--color-red-500)}.text-red-800{color:var(--color-red-800)}.text-teal-800{color:var(--color-teal-800)}.text-white{color:var(--color-white)}.text-yellow-800{color:var(--color-yellow-800)}.text-zinc-800{color:var(--color-zinc-800)}.italic{font-style:italic}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-\[600ms\]{--tw-duration:.6s;transition-duration:.6s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.hover\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-gray-600:hover{background-color:var(--color-gray-600)}.hover\:bg-green-600:hover{background-color:var(--color-green-600)}.hover\:bg-red-600:hover{background-color:var(--color-red-600)}.hover\:text-blue-200:hover{color:var(--color-blue-200)}.hover\:text-blue-600:hover{color:var(--color-blue-600)}.hover\:opacity-100:hover{opacity:1}}.focus\:opacity-100:focus{opacity:1}.focus\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}@media (hover:hover){.hover\:enabled\:text-blue-200:hover:enabled{color:var(--color-blue-200)}}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-blue-300:disabled{background-color:var(--color-blue-300)}.disabled\:text-gray-200:disabled{color:var(--color-gray-200)}.disabled\:text-zinc-400:disabled{color:var(--color-zinc-400)}@media (min-width:64rem){.lg\:sticky{position:sticky}.lg\:top-0{top:calc(var(--spacing)*0)}.lg\:flex\!{display:flex!important}}.dark\:border-blue-900:where(.dark,.dark *){border-color:var(--color-blue-900)}.dark\:border-neutral-700:where(.dark,.dark *){border-color:var(--color-neutral-700)}.dark\:border-red-900:where(.dark,.dark *){border-color:var(--color-red-900)}.dark\:border-teal-900:where(.dark,.dark *){border-color:var(--color-teal-900)}.dark\:border-yellow-900:where(.dark,.dark *){border-color:var(--color-yellow-900)}.dark\:bg-blue-800\/10:where(.dark,.dark *){background-color:#193cb81a}@supports (color:color-mix(in lab,red,red)){.dark\:bg-blue-800\/10:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-blue-800)10%,transparent)}}.dark\:bg-gray-900:where(.dark,.dark *){background-color:var(--color-gray-900)}.dark\:bg-neutral-800:where(.dark,.dark *){background-color:var(--color-neutral-800)}.dark\:bg-red-800\/10:where(.dark,.dark *){background-color:#9f07121a}@supports (color:color-mix(in lab,red,red)){.dark\:bg-red-800\/10:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-red-800)10%,transparent)}}.dark\:bg-teal-800\/10:where(.dark,.dark *){background-color:#005f5a1a}@supports (color:color-mix(in lab,red,red)){.dark\:bg-teal-800\/10:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-teal-800)10%,transparent)}}.dark\:bg-yellow-800\/10:where(.dark,.dark *){background-color:#874b001a}@supports (color:color-mix(in lab,red,red)){.dark\:bg-yellow-800\/10:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-yellow-800)10%,transparent)}}.dark\:text-blue-500:where(.dark,.dark *){color:var(--color-blue-500)}.dark\:text-gray-300:where(.dark,.dark *){color:var(--color-gray-300)}.dark\:text-red-500:where(.dark,.dark *){color:var(--color-red-500)}.dark\:text-teal-500:where(.dark,.dark *){color:var(--color-teal-500)}.dark\:text-white:where(.dark,.dark *){color:var(--color-white)}.dark\:text-yellow-500:where(.dark,.dark *){color:var(--color-yellow-500)}.\[\&_table\]\:max-w-full\! table{max-width:100%!important}.\[\&\>div\.docx-wrapper\]\:w-fit>div.docx-wrapper{width:fit-content}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}
1
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-800:oklch(47.6% .114 61.907);--color-yellow-900:oklch(42.1% .095 57.708);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-teal-100:oklch(95.3% .051 180.801);--color-teal-200:oklch(91% .096 180.426);--color-teal-500:oklch(70.4% .14 182.503);--color-teal-800:oklch(43.7% .078 188.216);--color-teal-900:oklch(38.6% .063 188.416);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-zinc-100:oklch(96.7% .001 286.375);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-800:oklch(27.4% .006 286.033);--color-neutral-700:oklch(37.1% 0 0);--color-neutral-800:oklch(26.9% 0 0);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-md:.375rem;--radius-lg:.5rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.collapse{visibility:collapse}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.start-1\/2{inset-inline-start:50%}.top-0{top:calc(var(--spacing)*0)}.top-1\/2{top:50%}.top-4{top:calc(var(--spacing)*4)}.top-8{top:calc(var(--spacing)*8)}.right-0{right:calc(var(--spacing)*0)}.right-4{right:calc(var(--spacing)*4)}.right-8{right:calc(var(--spacing)*8)}.bottom-4{bottom:calc(var(--spacing)*4)}.bottom-8{bottom:calc(var(--spacing)*8)}.left-4{left:calc(var(--spacing)*4)}.left-8{left:calc(var(--spacing)*8)}.z-50{z-index:50}.row-1{grid-row:1}.row-2{grid-row:2}.row-3{grid-row:3}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-0\!{margin:calc(var(--spacing)*0)!important}.mx-5{margin-inline:calc(var(--spacing)*5)}.mx-auto{margin-inline:auto}.ms-auto{margin-inline-start:auto}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-2\.5{margin-top:calc(var(--spacing)*2.5)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-5{margin-top:calc(var(--spacing)*5)}.mt-5\.5{margin-top:calc(var(--spacing)*5.5)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-5{margin-bottom:calc(var(--spacing)*5)}.ml-3{margin-left:calc(var(--spacing)*3)}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.size-3\.5{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5{width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.h-1{height:calc(var(--spacing)*1)}.h-1\.5{height:calc(var(--spacing)*1.5)}.h-2\.5{height:calc(var(--spacing)*2.5)}.h-5{height:calc(var(--spacing)*5)}.h-5\.5{height:calc(var(--spacing)*5.5)}.h-6{height:calc(var(--spacing)*6)}.h-\[76px\]{height:76px}.h-\[500px\]{height:500px}.h-\[600px\]{height:600px}.h-auto{height:auto}.h-full{height:100%}.max-h-full{max-height:100%}.min-h-full{min-height:100%}.min-h-full\!{min-height:100%!important}.min-h-screen{min-height:100vh}.w-2\.5{width:calc(var(--spacing)*2.5)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-5\.5{width:calc(var(--spacing)*5.5)}.w-15{width:calc(var(--spacing)*15)}.w-\[82px\]{width:82px}.w-\[500px\]{width:500px}.w-\[600px\]{width:600px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-none{max-width:none}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:calc(var(--spacing)*0)}.flex-1{flex:1}.flex-shrink,.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-4{--tw-translate-y:calc(var(--spacing)*-4);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-4{--tw-translate-y:calc(var(--spacing)*4);translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.cursor-col-resize{cursor:col-resize}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-start{justify-content:flex-start}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-5{gap:calc(var(--spacing)*5)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-blue-200{border-color:var(--color-blue-200)}.border-blue-300{border-color:var(--color-blue-300)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400\!{border-color:var(--color-gray-400)!important}.border-red-200{border-color:var(--color-red-200)}.border-red-500{border-color:var(--color-red-500)}.border-teal-200{border-color:var(--color-teal-200)}.border-yellow-200{border-color:var(--color-yellow-200)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-500{background-color:var(--color-gray-500)}.bg-green-500{background-color:var(--color-green-500)}.bg-red-100{background-color:var(--color-red-100)}.bg-red-500{background-color:var(--color-red-500)}.bg-teal-100{background-color:var(--color-teal-100)}.bg-white{background-color:var(--color-white)}.bg-yellow-100{background-color:var(--color-yellow-100)}.bg-none{background-image:none}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-2{padding:calc(var(--spacing)*2)}.p-2\.5{padding:calc(var(--spacing)*2.5)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.p-5\.5{padding:calc(var(--spacing)*5.5)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-0\!{padding-block:calc(var(--spacing)*0)!important}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.pt-1\.5{padding-top:calc(var(--spacing)*1.5)}.pr-3{padding-right:calc(var(--spacing)*3)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pb-5{padding-bottom:calc(var(--spacing)*5)}.pl-2\.5{padding-left:calc(var(--spacing)*2.5)}.text-center{text-align:center}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-wrap{text-wrap:wrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-black{color:var(--color-black)}.text-blue-500{color:var(--color-blue-500)}.text-blue-800{color:var(--color-blue-800)}.text-gray-300{color:var(--color-gray-300)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-red-500{color:var(--color-red-500)}.text-red-800{color:var(--color-red-800)}.text-teal-800{color:var(--color-teal-800)}.text-white{color:var(--color-white)}.text-yellow-800{color:var(--color-yellow-800)}.text-zinc-800{color:var(--color-zinc-800)}.italic{font-style:italic}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-\[600ms\]{--tw-duration:.6s;transition-duration:.6s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.hover\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-gray-600:hover{background-color:var(--color-gray-600)}.hover\:bg-green-600:hover{background-color:var(--color-green-600)}.hover\:bg-red-600:hover{background-color:var(--color-red-600)}.hover\:text-blue-200:hover{color:var(--color-blue-200)}.hover\:text-blue-600:hover{color:var(--color-blue-600)}.hover\:opacity-100:hover{opacity:1}}.focus\:opacity-100:focus{opacity:1}.focus\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}@media (hover:hover){.hover\:enabled\:text-blue-200:hover:enabled{color:var(--color-blue-200)}}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-blue-300:disabled{background-color:var(--color-blue-300)}.disabled\:text-gray-200:disabled{color:var(--color-gray-200)}.disabled\:text-zinc-400:disabled{color:var(--color-zinc-400)}@media (min-width:48rem){.md\:justify-between{justify-content:space-between}}@media (min-width:64rem){.lg\:sticky{position:sticky}.lg\:top-0{top:calc(var(--spacing)*0)}.lg\:flex\!{display:flex!important}}.dark\:border-blue-900:where(.dark,.dark *){border-color:var(--color-blue-900)}.dark\:border-neutral-700:where(.dark,.dark *){border-color:var(--color-neutral-700)}.dark\:border-red-900:where(.dark,.dark *){border-color:var(--color-red-900)}.dark\:border-teal-900:where(.dark,.dark *){border-color:var(--color-teal-900)}.dark\:border-yellow-900:where(.dark,.dark *){border-color:var(--color-yellow-900)}.dark\:bg-blue-800\/10:where(.dark,.dark *){background-color:#193cb81a}@supports (color:color-mix(in lab,red,red)){.dark\:bg-blue-800\/10:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-blue-800)10%,transparent)}}.dark\:bg-gray-900:where(.dark,.dark *){background-color:var(--color-gray-900)}.dark\:bg-neutral-800:where(.dark,.dark *){background-color:var(--color-neutral-800)}.dark\:bg-red-800\/10:where(.dark,.dark *){background-color:#9f07121a}@supports (color:color-mix(in lab,red,red)){.dark\:bg-red-800\/10:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-red-800)10%,transparent)}}.dark\:bg-teal-800\/10:where(.dark,.dark *){background-color:#005f5a1a}@supports (color:color-mix(in lab,red,red)){.dark\:bg-teal-800\/10:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-teal-800)10%,transparent)}}.dark\:bg-yellow-800\/10:where(.dark,.dark *){background-color:#874b001a}@supports (color:color-mix(in lab,red,red)){.dark\:bg-yellow-800\/10:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-yellow-800)10%,transparent)}}.dark\:text-blue-500:where(.dark,.dark *){color:var(--color-blue-500)}.dark\:text-gray-300:where(.dark,.dark *){color:var(--color-gray-300)}.dark\:text-red-500:where(.dark,.dark *){color:var(--color-red-500)}.dark\:text-teal-500:where(.dark,.dark *){color:var(--color-teal-500)}.dark\:text-white:where(.dark,.dark *){color:var(--color-white)}.dark\:text-yellow-500:where(.dark,.dark *){color:var(--color-yellow-500)}.\[\&_table\]\:max-w-full\! table{max-width:100%!important}.\[\&\>div\.docx-wrapper\]\:w-fit>div.docx-wrapper{width:fit-content}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}
2
2
  /*! tailwindcss v4.1.12 | MIT License | https://tailwindcss.com */
3
3
  /*# sourceMappingURL=tailwind.css.map */