@cyber-harbour/ui 2.2.35 → 2.2.36

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.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import {a,w,x,u,c,l,z,Ra as Ra$1,_a,na as na$1,Na as Na$1,sa as sa$1,tb,nb,y,ob,G,kb,H,pb}from'./chunk-JRNFYOX5.mjs';export{xb as Alert,A as AlertIcon,Ba as AndroidIcon,B as ApiIcon,C as ArrowCircleTopRightIcon,D as ArrowRightIcon,ja as BallsMenu,tb as Box,q as BreakpointProvider,E as BugReportIcon,Pa as BurgerMenuIcon,ta as BusIcon,z as Button,F as CalendarIcon,ua as CarIcon,Mb as ChatField,ka as CheckIcon,zb as Checkbox,la as ChevronDownIcon,G as ChevronLeftIcon,H as ChevronRightIcon,ma as ChevronUpIcon,Qa as ClockIcon,I as CloseCircleIcon,J as ClosedLockIcon,Fb as ContentLoader,hb as ContextMenu,ib as ContextMenuDelimiter,ra as CrossIcon,K as DataSetsIcon,L as DeepSearchIcon,M as DisabledVisibleIcon,N as DocsIcon,O as DownloadIcon,Cb as Drawer,Eb as DrawerBody,Db as DrawerHeader,P as EditUserIcon,vb as EmptyData,Q as EnableVisibleIcon,R as EnterArrowLeftIcon,Ta as FaceSearchIcon,za as File2Icon,qb as FileField,ya as FileIcon,S as FiltersIcon,Ka as FlashIcon,rb as FlexContainer,sb as FlexItem,Da as FolderAlertIcon,T as FolderIcon,La as FolderInfoIcon,cb as Header,db as HeaderDelimeter,eb as HeaderSection,U as HomepageIcon,Sa as ImageIcon,pa as InfoCircleFilledIcon,V as InfoCircleIcon,ob as Input,Aa as IosIcon,yb as Label,ub as Line,Ab as LinerProgress,$a as ListMenu,ab as ListMenuItem,bb as ListMenuSection,W as MapRadarIcon,sa as MaximizeIcon,Ua as MessageAsteriskIcon,Ca as MicrosoftIcon,Ra as MinusIcon,Hb as Modal,Jb as ModalBody,Kb as ModalFooter,Ib as ModalHeader,X as MoonIcon,Y as OpenLockIcon,Z as OrganizationIcon,Gb as Overlay,gb as Pagination,Ga as PassportIcon,_ as PasswordFinderIcon,Ia as PencilIcon,$ as PhonebookIcon,wa as PlaneIcon,na as PlusIcon,Ha as PointIcon,aa as PrintIcon,ba as Profiler2Icon,ca as ProfilerIcon,Nb as ProgressLoader,Ea as RelationIcon,Fa as RelationPointsIcon,Ma as RotateLeftIcon,Na as RotateRightIcon,lb as RowActionsMenu,da as SandBoxIcon,ea as SearchIcon,kb as Select,xa as ShipIcon,Wa as Sidebar,Va as SidebarContext,Ya as SidebarDelimeter,Xa as SidebarItem,Za as SidebarSection,fa as StatisticIcon,nb as StyledTooltipContent,ga as SunIcon,Bb as Switch,fb as Table,wb as Tag,Lb as TailwindExample,s as ThemeProvider,mb as Tooltip,_a as Typography,qa as UnfoldIcon,ha as UpRightArrowCircleIcon,Oa as UploadImageIcon,Ja as UserInCircleIcon,oa as UsersIcon,ia as VectorIcon,va as WayIcon,f as convertPaletteToRem,w as createComponent,x as createStyledComponent,p as darkTheme,o as darkThemePx,t as destructSpaceProps,u as generatePropertySpaceStyle,k as getBreakpoint,h as getButtonSizeStyles,g as getButtonStyles,i as getInputStyles,v as getResponsiveProps,j as getTypographyStyles,l as hexToRgba,n as lightTheme,m as lightThemePx,e as propToRem,c as pxToRem,d as remToPx,b as resolveThemeColor,r as useBreakpoint,jb as useContextMenuControl,y as useTheme}from'./chunk-JRNFYOX5.mjs';import Gn,{styled,useTheme,keyframes,css as css$1}from'styled-components';export{ServerStyleSheet,StyleSheetManager}from'styled-components';import {jsx,jsxs}from'react/jsx-runtime';import {useState,useRef,useCallback,useEffect,Fragment,forwardRef,useMemo,useImperativeHandle,useLayoutEffect,memo}from'react';import ao from'lodash.clonedeep';import {scaleOrdinal,schemeCategory10,forceSimulation,forceLink,forceManyBody,forceX,forceY,forceCenter,forceCollide}from'd3';import Zn from'react-content-loader';import {renderAsync}from'docx-preview';import Lo from'lodash.throttle';import _o from'@uiw/react-codemirror';import {vscodeDark,vscodeLight}from'@uiw/codemirror-theme-vscode';import {javascript}from'@codemirror/lang-javascript';import {html}from'@codemirror/lang-html';import {css}from'@codemirror/lang-css';import {python}from'@codemirror/lang-python';import {java}from'@codemirror/lang-java';import {cpp}from'@codemirror/lang-cpp';import {php}from'@codemirror/lang-php';import {rust}from'@codemirror/lang-rust';import {xml}from'@codemirror/lang-xml';import {yaml}from'@codemirror/lang-yaml';import {markdown}from'@codemirror/lang-markdown';import {sql}from'@codemirror/lang-sql';import Vo from'react-markdown';import Xo from'remark-gfm';import {TableVirtuoso,Virtuoso}from'react-virtuoso';import St from'papaparse';import ea from'chardet';import {darkStyles,defaultStyles,JsonView,allExpanded}from'react-json-view-lite';import'react-json-view-lite/dist/index.css';import Ka from'copy-to-clipboard';import {Popover}from'react-tiny-popover';import {parse,isValid,getYear,format,getMonth,startOfWeek,startOfMonth,endOfMonth,getDay,previousSunday,nextSaturday,differenceInDays}from'date-fns';import {createPortal}from'react-dom';var ql=a(({children:e,className:r})=>jsx(In,{className:r,children:e}),"PageLayout"),In=styled.div`
1
+ import {a,w,x,u,c,l,z,Ra as Ra$1,_a,na as na$1,Na as Na$1,sa as sa$1,tb,nb,y,ob,G,kb,H,pb}from'./chunk-I5ITYF6G.mjs';export{xb as Alert,A as AlertIcon,Ba as AndroidIcon,B as ApiIcon,C as ArrowCircleTopRightIcon,D as ArrowRightIcon,ja as BallsMenu,tb as Box,q as BreakpointProvider,E as BugReportIcon,Pa as BurgerMenuIcon,ta as BusIcon,z as Button,F as CalendarIcon,ua as CarIcon,Mb as ChatField,ka as CheckIcon,zb as Checkbox,la as ChevronDownIcon,G as ChevronLeftIcon,H as ChevronRightIcon,ma as ChevronUpIcon,Qa as ClockIcon,I as CloseCircleIcon,J as ClosedLockIcon,Fb as ContentLoader,hb as ContextMenu,ib as ContextMenuDelimiter,ra as CrossIcon,K as DataSetsIcon,L as DeepSearchIcon,M as DisabledVisibleIcon,N as DocsIcon,O as DownloadIcon,Cb as Drawer,Eb as DrawerBody,Db as DrawerHeader,P as EditUserIcon,vb as EmptyData,Q as EnableVisibleIcon,R as EnterArrowLeftIcon,Ta as FaceSearchIcon,za as File2Icon,qb as FileField,ya as FileIcon,S as FiltersIcon,Ka as FlashIcon,rb as FlexContainer,sb as FlexItem,Da as FolderAlertIcon,T as FolderIcon,La as FolderInfoIcon,cb as Header,db as HeaderDelimeter,eb as HeaderSection,U as HomepageIcon,Sa as ImageIcon,pa as InfoCircleFilledIcon,V as InfoCircleIcon,ob as Input,Aa as IosIcon,yb as Label,ub as Line,Ab as LinerProgress,$a as ListMenu,ab as ListMenuItem,bb as ListMenuSection,W as MapRadarIcon,sa as MaximizeIcon,Ua as MessageAsteriskIcon,Ca as MicrosoftIcon,Ra as MinusIcon,Hb as Modal,Jb as ModalBody,Kb as ModalFooter,Ib as ModalHeader,X as MoonIcon,Y as OpenLockIcon,Z as OrganizationIcon,Gb as Overlay,gb as Pagination,Ga as PassportIcon,_ as PasswordFinderIcon,Ia as PencilIcon,$ as PhonebookIcon,wa as PlaneIcon,na as PlusIcon,Ha as PointIcon,aa as PrintIcon,ba as Profiler2Icon,ca as ProfilerIcon,Nb as ProgressLoader,Ea as RelationIcon,Fa as RelationPointsIcon,Ma as RotateLeftIcon,Na as RotateRightIcon,lb as RowActionsMenu,da as SandBoxIcon,ea as SearchIcon,kb as Select,xa as ShipIcon,Wa as Sidebar,Va as SidebarContext,Ya as SidebarDelimeter,Xa as SidebarItem,Za as SidebarSection,fa as StatisticIcon,nb as StyledTooltipContent,ga as SunIcon,Bb as Switch,fb as Table,wb as Tag,Lb as TailwindExample,s as ThemeProvider,mb as Tooltip,_a as Typography,qa as UnfoldIcon,ha as UpRightArrowCircleIcon,Oa as UploadImageIcon,Ja as UserInCircleIcon,oa as UsersIcon,ia as VectorIcon,va as WayIcon,f as convertPaletteToRem,w as createComponent,x as createStyledComponent,p as darkTheme,o as darkThemePx,t as destructSpaceProps,u as generatePropertySpaceStyle,k as getBreakpoint,h as getButtonSizeStyles,g as getButtonStyles,i as getInputStyles,v as getResponsiveProps,j as getTypographyStyles,l as hexToRgba,n as lightTheme,m as lightThemePx,e as propToRem,c as pxToRem,d as remToPx,b as resolveThemeColor,r as useBreakpoint,jb as useContextMenuControl,y as useTheme}from'./chunk-I5ITYF6G.mjs';import Gn,{styled,useTheme,keyframes,css as css$1}from'styled-components';export{ServerStyleSheet,StyleSheetManager}from'styled-components';import {jsx,jsxs}from'react/jsx-runtime';import {useState,useRef,useCallback,useEffect,Fragment,forwardRef,useMemo,useImperativeHandle,useLayoutEffect,memo}from'react';import ao from'lodash.clonedeep';import {scaleOrdinal,schemeCategory10,forceSimulation,forceLink,forceManyBody,forceX,forceY,forceCenter,forceCollide}from'd3';import Zn from'react-content-loader';import {renderAsync}from'docx-preview';import Lo from'lodash.throttle';import _o from'@uiw/react-codemirror';import {vscodeDark,vscodeLight}from'@uiw/codemirror-theme-vscode';import {javascript}from'@codemirror/lang-javascript';import {html}from'@codemirror/lang-html';import {css}from'@codemirror/lang-css';import {python}from'@codemirror/lang-python';import {java}from'@codemirror/lang-java';import {cpp}from'@codemirror/lang-cpp';import {php}from'@codemirror/lang-php';import {rust}from'@codemirror/lang-rust';import {xml}from'@codemirror/lang-xml';import {yaml}from'@codemirror/lang-yaml';import {markdown}from'@codemirror/lang-markdown';import {sql}from'@codemirror/lang-sql';import Vo from'react-markdown';import Xo from'remark-gfm';import {TableVirtuoso,Virtuoso}from'react-virtuoso';import St from'papaparse';import ea from'chardet';import {darkStyles,defaultStyles,JsonView,allExpanded}from'react-json-view-lite';import'react-json-view-lite/dist/index.css';import Ka from'copy-to-clipboard';import {Popover}from'react-tiny-popover';import {parse,isValid,getYear,format,getMonth,startOfWeek,startOfMonth,endOfMonth,getDay,previousSunday,nextSaturday,differenceInDays}from'date-fns';import {createPortal}from'react-dom';var ql=a(({children:e,className:r})=>jsx(In,{className:r,children:e}),"PageLayout"),In=styled.div`
2
2
  display: grid;
3
3
  min-height: 100dvh;
4
4
  position: relative;
@@ -63,7 +63,7 @@ ${e?`
63
63
  `:""}
64
64
 
65
65
  min-width: 0;
66
- `);var Po=[.1,.25,.5,.75,1,1.5,2,3,4,5],Mo=5,Eo=.1,No=120;function yt(e,r,o,a){return {x:e<o?(o-e)/2:0,y:r<a?(a-r)/2:0}}a(yt,"computePadding");var Hr=a(({url:e,alt:r="image",naturalWidth:o,naturalHeight:a$1,zoomSteps:s=Po,maxZoom:i=Mo,minZoom:l=Eo,showMinimap:f=true,minimapWidth:b=No,className:N,onZoomChange:C})=>{let[p,D]=useState("adaptive"),[A,n]=useState(1),[L,P]=useState(0),[T,v]=useState(false),S=useRef(false),[y,X]=useState(false),[K,H]=useState(false),[$,q]=useState({left:0,top:0}),oe=useRef(0),[ce,ke]=useState({width:0,height:0}),fe=useRef({width:0,height:0}),se=useRef(null),z$1=useRef(null),J=useRef({x:0,y:0,scrollLeft:0,scrollTop:0}),I=useRef(p),ie=useRef(A),U=useRef(L),Q=useRef(C);I.current=p,ie.current=A,U.current=L,Q.current=C;let te=o||fe.current.width,he=a$1||fe.current.height,re=L===90||L===270,O=re?he:te,ge=re?te:he,Te=useMemo(()=>[...s].sort((k,_)=>k-_),[s]),Le=useCallback(()=>ce.width===0||O===0?1:Math.min(ce.width/O,ce.height/ge,1),[ce,O,ge]),Re=useCallback((k,_)=>{if(_==="in"){let Y=Te.find(Z=>Z>k+.001);return Y!==void 0?Math.min(Y,i):k}let B=Te.findLast(Y=>Y<k-.001);return B!==void 0?Math.max(B,l):k},[Te,i,l]),Ae=useCallback(()=>I.current==="adaptive"?Le():ie.current,[Le]),Ce=useCallback(k=>{D("manual"),n(k),Q.current?.(k,"manual");},[]),me=useCallback(()=>{D("adaptive"),Q.current?.(Le(),"adaptive");},[Le]),ve=useCallback(k=>{requestAnimationFrame(()=>{let _=z$1.current;if(!_)return;let B=_.getBoundingClientRect(),Y=O*k,Z=ge*k,be=yt(Y,Z,B.width,B.height);_.scrollLeft=Y/2+be.x-B.width/2,_.scrollTop=Z/2+be.y-B.height/2;});},[O,ge]);useEffect(()=>{D("adaptive"),n(1),P(0),X(false),H(false),fe.current={width:0,height:0};},[e]),useEffect(()=>{let k=z$1.current;if(!k)return;let _=new ResizeObserver(B=>{let Y=B[0];if(!Y)return;let{width:Z,height:be}=Y.contentRect;ke(Se=>Se.width===Z&&Se.height===be?Se:{width:Z,height:be});});return _.observe(k),()=>_.disconnect()},[]),useEffect(()=>{let k=z$1.current;if(!k)return;let _=a(()=>{cancelAnimationFrame(oe.current),oe.current=requestAnimationFrame(()=>{let B=k.scrollLeft,Y=k.scrollTop;q(Z=>Z.left===B&&Z.top===Y?Z:{left:B,top:Y});});},"handleScroll");return k.addEventListener("scroll",_,{passive:true}),()=>{k.removeEventListener("scroll",_),cancelAnimationFrame(oe.current);}},[]),useEffect(()=>{let k=z$1.current;if(!k||!y)return;let _=a(B=>{if(!(B.ctrlKey||B.metaKey))return;B.preventDefault();let Y=Ae(),Z=B.deltaY>0?"out":"in",be=Re(Y,Z),Se=Le();if(Z==="out"&&be<=Se){me();return}let Me=k.getBoundingClientRect(),Be=U.current,Xe=Be===90||Be===270,nt=fe.current.width||1,ot=fe.current.height||1,Qe=Xe?ot:nt,pt=Xe?nt:ot,Kt,Qt;if(I.current==="adaptive"){let et=se.current;if(!et)return;let tt=et.getBoundingClientRect();Kt=(B.clientX-tt.left)/(tt.width/Qe),Qt=(B.clientY-tt.top)/(tt.height/pt);}else {let et=Qe*Y,tt=pt*Y,Sr=yt(et,tt,Me.width,Me.height);Kt=(k.scrollLeft+B.clientX-Me.left-Sr.x)/Y,Qt=(k.scrollTop+B.clientY-Me.top-Sr.y)/Y;}Ce(be),requestAnimationFrame(()=>{let et=k.getBoundingClientRect(),tt=yt(Qe*be,pt*be,et.width,et.height);k.scrollLeft=Kt*be+tt.x-(B.clientX-et.left),k.scrollTop=Qt*be+tt.y-(B.clientY-et.top);});},"handleWheel");return k.addEventListener("wheel",_,{passive:false}),()=>k.removeEventListener("wheel",_)},[y,Ae,Re,Le,Ce,me]),useEffect(()=>{if(p!=="manual")return;let k=z$1.current;if(!k)return;let _=a(Z=>{Z.button===0&&(Z.preventDefault(),S.current=true,v(true),J.current={x:Z.clientX,y:Z.clientY,scrollLeft:k.scrollLeft,scrollTop:k.scrollTop});},"handleMouseDown"),B=a(Z=>{if(!S.current)return;let{x:be,y:Se,scrollLeft:Me,scrollTop:Be}=J.current;k.scrollLeft=Me-(Z.clientX-be),k.scrollTop=Be-(Z.clientY-Se);},"handleMouseMove"),Y=a(()=>{S.current=false,v(false);},"handleMouseUp");return k.addEventListener("mousedown",_),window.addEventListener("mousemove",B),window.addEventListener("mouseup",Y),()=>{k.removeEventListener("mousedown",_),window.removeEventListener("mousemove",B),window.removeEventListener("mouseup",Y);}},[p]);let ye=useCallback(()=>{p==="manual"&&me();},[p,me]),Fe=useCallback(()=>{let k=Ae(),_=Re(k,"in");_!==k&&(Ce(_),ve(_));},[Ae,Re,Ce,ve]),Oe=useCallback(()=>{let k=Ae(),_=Re(k,"out");if(_<=Le()){me();return}Ce(_),ve(_);},[Ae,Re,Le,me,Ce,ve]),bt=useCallback(()=>{Ce(1),ve(1);},[Ce,ve]),Ne=useCallback(()=>{P(k=>{let _=(k+90)%360;if(I.current==="manual"){let B=fe.current.width,Y=fe.current.height,Z=_===90||_===270,be=Z?Y:B,Se=Z?B:Y,Me=ie.current;requestAnimationFrame(()=>{let Be=z$1.current;if(!Be)return;let Xe=Be.getBoundingClientRect(),nt=be*Me,ot=Se*Me,Qe=yt(nt,ot,Xe.width,Xe.height);Be.scrollLeft=nt/2+Qe.x-Xe.width/2,Be.scrollTop=ot/2+Qe.y-Xe.height/2;});}return _});},[]),Pe=useCallback(()=>{let k=se.current;k&&(fe.current={width:k.naturalWidth,height:k.naturalHeight},X(true),H(false));},[]),t=p==="adaptive"?Le():A,d=O*t,u=ge*t,h=ce.width,g=ce.height,x=p==="manual"?yt(d,u,h,g):{x:0,y:0},w=f&&p==="manual"&&(d>h||u>g),m=O>0?b/O:0,M=ge*m,R=h>0?h/A*m:0,j=g>0?g/A*m:0,ee=Math.max(0,$.left-x.x)/A*m,V=Math.max(0,$.top-x.y)/A*m,de=p==="adaptive"?"Fit":`${Math.round(A*100)}%`,ne=Re(t,"in")!==t,le=p==="manual"||t>l,E=p==="adaptive"?{width:O?d:void 0,height:ge?u:void 0,position:"relative",flexShrink:0}:{width:d,height:u,marginLeft:x.x,marginTop:x.y,flexShrink:0,position:"relative"},W={width:te*t,height:he*t,maxWidth:"none",maxHeight:"none",position:"absolute",top:"50%",left:"50%",transform:`translate(-50%, -50%) rotate(${L}deg)`},F={cursor:p==="manual"?T?"grabbing":"grab":"default"},pe={width:te*m,height:he*m,position:"absolute",top:"50%",left:"50%",transform:`translate(-50%, -50%) rotate(${L}deg)`};return jsxs("div",{className:`h-full w-full flex flex-col min-h-0 min-w-0 overflow-hidden ${N??""}`,children:[jsxs("div",{className:"flex w-full items-center px-8.5 py-3 gap-1 shrink-0 flex-wrap",children:[jsx(z,{variant:"outlined","aria-label":"zoom-out",color:"default",size:"small",icon:jsx(Ra$1,{style:{width:20,height:20}}),onClick:Oe,disabled:!le,p:7,className:"bg-white! dark:bg-neutral-800! hover:bg-blue-50! dark:hover:bg-neutral-700! h-[38px]!"}),jsx("button",{type:"button",onClick:p==="manual"?me:void 0,className:"flex items-center justify-center bg-white dark:bg-neutral-800 h-[38px] min-w-16 px-3 select-none border border-gray-300 dark:border-neutral-600 rounded-md","aria-label":de,children:jsx(_a,{style:{fontSize:12,fontWeight:500},children:de})}),jsx(z,{variant:"outlined","aria-label":"zoom-in",size:"small",color:"default",icon:jsx(na$1,{style:{width:14,height:14}}),onClick:Fe,disabled:!ne,className:"bg-white! dark:bg-neutral-800! hover:bg-blue-50! dark:hover:bg-neutral-700! h-[38px]!",p:10}),jsx(z,{variant:"outlined","aria-label":"rotate-right",size:"small",color:"default",icon:jsx(Na$1,{style:{width:16,height:16}}),onClick:Ne,className:"bg-white! dark:bg-neutral-800! hover:bg-blue-50! dark:hover:bg-neutral-700! h-[38px]! ml-auto",p:10}),jsx(z,{variant:"outlined","aria-label":"fit-to-container",size:"small",color:p==="adaptive"?"primary":"default",icon:jsx(sa$1,{style:{width:14,height:14}}),onClick:me,className:`${p==="adaptive"?"bg-blue-50!":"bg-white! dark:bg-neutral-800! hover:bg-blue-50! dark:hover:bg-neutral-700!"} h-[38px]!`,p:10}),jsx(z,{variant:"outlined","aria-label":"original-size",size:"small",color:p==="manual"&&A===1?"primary":"default",onClick:bt,className:`${p==="manual"&&A===1?"bg-blue-50!":"bg-white! dark:bg-neutral-800! hover:bg-blue-50! dark:hover:bg-neutral-700!"} h-[38px]!`,py:10,px:11,children:jsx(_a,{style:{fontSize:12,fontWeight:500,lineHeight:1},children:"1:1"})})]}),jsxs("div",{className:"flex-1 min-h-0 min-w-0 relative",children:[jsx("div",{ref:z$1,className:`h-full w-full ${p==="adaptive"?"flex items-center justify-center overflow-hidden":"overflow-auto"}`,style:F,onDoubleClick:ye,children:K?jsx("div",{className:"flex items-center justify-center h-full w-full",children:jsx(_a,{color:"text.lighter",children:"Failed to load image"})}):jsx("div",{style:E,children:jsx("img",{ref:se,src:e,alt:r,draggable:false,className:"block select-none",style:W,onLoad:Pe,onError:()=>H(true)})})}),w&&jsxs("div",{className:"absolute bottom-3 right-3 rounded-lg overflow-hidden shadow-lg pointer-events-none",style:{width:b,height:M,backdropFilter:"blur(8px)",background:"rgba(255,255,255,0.75)"},children:[jsx("div",{style:pe,children:jsx("img",{src:e,alt:"",draggable:false,className:"block w-full h-full object-fill"})}),jsx("div",{className:"absolute border-2 border-blue-500 rounded-sm",style:{width:Math.min(R,b),height:Math.min(j,M),left:Math.max(0,Math.min(ee,b-R)),top:Math.max(0,Math.min(V,M-j)),background:"rgba(59,130,246,0.1)"}})]})]})]})},"ImageDriver");var Wr=a(({url:e})=>jsx("div",{className:"flex flex-col justify-center items-center w-full h-full py-5.5 px-8.5",children:jsx("audio",{controls:true,src:e,className:"w-full"})}),"AudioDriver");var tr=a(({url:e})=>{let[r,o]=useState(null),[a$1,s]=useState(false),[i,l]=useState(true),[f,b]=useState(null);return useEffect(()=>{s(true);},[]),useEffect(()=>{if(!a$1)return;a(async()=>{try{let C=await import('./PdfDriver-D37B42JP.mjs');o(()=>C.PdfDriver),l(!1);}catch(C){console.error("Failed to load PDF driver:",C),b("Failed to load PDF viewer"),l(false);}},"loadPdfDriver")();},[a$1]),a$1?i?jsx("div",{className:"flex items-center justify-center h-full w-full",children:jsx("div",{className:"text-gray-500 dark:text-gray-400",children:"Loading PDF viewer..."})}):f||!r?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:f||"PDF viewer unavailable"})})}):jsx(r,{url:e}):jsx("div",{className:"flex items-center justify-center h-full w-full",children:jsx("div",{className:"text-gray-500 dark:text-gray-400",children:"Loading PDF viewer..."})})},"PdfDriverWrapper");var Ur=50,Ro=1e4,qr=a(({url:e,blob:r,labels:o={}})=>{let{loading:a$1="\u0417\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u043D\u044F...",scale:s="Scale:"}=o,i=useRef(null),l=useRef(null),[f,b]=useState(null),[N,C]=useState(true),[p,D]=useState(1),A=useRef(false),[n,L]=useState({width:0,height:0}),P=useRef(0),T=a(()=>{A.current=true,D(y=>Math.min(y+.25,4));},"handleZoomIn"),v=a(()=>{A.current=true,D(y=>Math.max(y-.25,.25));},"handleZoomOut");useEffect(()=>{a(async()=>{if(l.current)try{C(!0),b(null);let X=r;if(!X&&e&&(X=await(await fetch(e)).blob()),!X){b({type:"render_error",originalMessage:"No source"}),C(!1);return}if(X.size/(1024*1024)>Ur){b({type:"file_too_large"}),C(!1);return}l.current.innerHTML="";let H=renderAsync(X,l.current,void 0,{debug:!0,experimental:!0,hideWrapperOnPrint:!0,breakPages:!0,ignoreLastRenderedPageBreak:!1}),$=new Promise((oe,ce)=>setTimeout(()=>ce({isTimeout:!0}),Ro));await Promise.race([H,$]),await new Promise(oe=>requestAnimationFrame(oe));let q=l.current.querySelector(".docx-wrapper");if(q&&(P.current=q.offsetWidth,L({width:q.offsetWidth,height:q.offsetHeight})),i.current&&P.current>0){let oe=i.current.clientWidth,ce=Math.min(oe/P.current,1);D(ce);}C(!1);}catch(X){b(X?.isTimeout?{type:"timeout"}:{type:"render_error",originalMessage:X?.message??""}),C(false);}},"renderDocument")();},[e,r]),useEffect(()=>{if(!i.current)return;let y=Lo(K=>{if(!(A.current||P.current===0))for(let H of K){let $=H.contentRect.width,q=Math.min($/P.current,1);D(q);}},150),X=new ResizeObserver(y);return X.observe(i.current),()=>{X.disconnect(),y.cancel();}},[]);let S=(()=>{if(!f)return null;switch(f.type){case "file_too_large":return o.errorFileTooLarge??`\u0424\u0430\u0439\u043B \u0437\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0438\u0439 (> ${Ur} \u041C\u0411)`;case "timeout":return o.errorTimeout??"\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";default:return (o.errorRender??f.originalMessage)||"\u041D\u0435 \u0432\u0434\u0430\u043B\u043E\u0441\u044F \u0432\u0456\u0434\u043A\u0440\u0438\u0442\u0438 DOCX \u0444\u0430\u0439\u043B"}})();return jsxs("div",{className:"h-full w-full flex flex-col px-0.5",children:[!S&&jsxs("div",{className:"flex justify-center items-stretch px-8 py-3 gap-1 border-b border-gray-200 dark:border-neutral-700",children:[jsx(z,{variant:"outlined","aria-label":"zoom-out",color:"default",size:"small",icon:jsx(Ra$1,{style:{width:20,height:20}}),onClick:v,disabled:p<=.25,className:"bg-white! dark:bg-neutral-800! hover:bg-blue-50! dark:hover:bg-neutral-700!",p:7}),jsxs(tb,{py:8,px:8,className:"flex items-center justify-between gap-1.5 min-w-21 rounded-[5px]!",children:[jsx(_a,{color:"text.lighter",style:{fontSize:10},children:s}),jsxs(_a,{children:[Math.round(p*100),"%"]})]}),jsx(z,{variant:"outlined","aria-label":"zoom-in",size:"small",color:"default",icon:jsx(na$1,{style:{width:14,height:14}}),onClick:T,disabled:p>=4,className:"bg-white! dark:bg-neutral-800! hover:bg-blue-50! dark:hover:bg-neutral-700!",p:10})]}),!!S&&!N&&jsx("div",{className:"h-full flex flex-col justify-center items-center",children:jsx(tb,{className:"mx-5",children:jsx(_a,{variant:"h2",color:"text.light",weight:500,className:"text-center",children:S})})}),N&&jsx("div",{className:"flex items-center justify-center p-8",children:a$1}),jsx("div",{ref:i,className:`w-full h-full overflow-auto bg-neutral-400 dark:bg-neutral-800
66
+ `);var Po=[.1,.25,.5,.75,1,1.5,2,3,4,5],Mo=5,Eo=.1,No=120;function yt(e,r,o,a){return {x:e<o?(o-e)/2:0,y:r<a?(a-r)/2:0}}a(yt,"computePadding");var Hr=a(({url:e,alt:r="image",naturalWidth:o,naturalHeight:a$1,zoomSteps:s=Po,maxZoom:i=Mo,minZoom:l=Eo,showMinimap:f=true,minimapWidth:b=No,className:N,onZoomChange:C})=>{let[p,D]=useState("adaptive"),[A,n]=useState(1),[L,P]=useState(0),[T,v]=useState(false),S=useRef(false),[y,X]=useState(false),[K,H]=useState(false),[$,q]=useState({left:0,top:0}),oe=useRef(0),[ce,ke]=useState({width:0,height:0}),fe=useRef({width:0,height:0}),se=useRef(null),z$1=useRef(null),J=useRef({x:0,y:0,scrollLeft:0,scrollTop:0}),I=useRef(p),ie=useRef(A),U=useRef(L),Q=useRef(C);I.current=p,ie.current=A,U.current=L,Q.current=C;let te=o||fe.current.width,he=a$1||fe.current.height,re=L===90||L===270,O=re?he:te,ge=re?te:he,Te=useMemo(()=>[...s].sort((k,_)=>k-_),[s]),Le=useCallback(()=>ce.width===0||O===0?1:Math.min(ce.width/O,ce.height/ge,1),[ce,O,ge]),Re=useCallback((k,_)=>{if(_==="in"){let Y=Te.find(Z=>Z>k+.001);return Y!==void 0?Math.min(Y,i):k}let B=Te.findLast(Y=>Y<k-.001);return B!==void 0?Math.max(B,l):k},[Te,i,l]),Ae=useCallback(()=>I.current==="adaptive"?Le():ie.current,[Le]),Ce=useCallback(k=>{D("manual"),n(k),Q.current?.(k,"manual");},[]),me=useCallback(()=>{D("adaptive"),Q.current?.(Le(),"adaptive");},[Le]),ve=useCallback(k=>{requestAnimationFrame(()=>{let _=z$1.current;if(!_)return;let B=_.getBoundingClientRect(),Y=O*k,Z=ge*k,be=yt(Y,Z,B.width,B.height);_.scrollLeft=Y/2+be.x-B.width/2,_.scrollTop=Z/2+be.y-B.height/2;});},[O,ge]);useEffect(()=>{D("adaptive"),n(1),P(0),X(false),H(false),fe.current={width:0,height:0};},[e]),useEffect(()=>{let k=z$1.current;if(!k)return;let _=new ResizeObserver(B=>{let Y=B[0];if(!Y)return;let{width:Z,height:be}=Y.contentRect;ke(Se=>Se.width===Z&&Se.height===be?Se:{width:Z,height:be});});return _.observe(k),()=>_.disconnect()},[]),useEffect(()=>{let k=z$1.current;if(!k)return;let _=a(()=>{cancelAnimationFrame(oe.current),oe.current=requestAnimationFrame(()=>{let B=k.scrollLeft,Y=k.scrollTop;q(Z=>Z.left===B&&Z.top===Y?Z:{left:B,top:Y});});},"handleScroll");return k.addEventListener("scroll",_,{passive:true}),()=>{k.removeEventListener("scroll",_),cancelAnimationFrame(oe.current);}},[]),useEffect(()=>{let k=z$1.current;if(!k||!y)return;let _=a(B=>{if(!(B.ctrlKey||B.metaKey))return;B.preventDefault();let Y=Ae(),Z=B.deltaY>0?"out":"in",be=Re(Y,Z),Se=Le();if(Z==="out"&&be<=Se){me();return}let Me=k.getBoundingClientRect(),Be=U.current,Xe=Be===90||Be===270,nt=fe.current.width||1,ot=fe.current.height||1,Qe=Xe?ot:nt,pt=Xe?nt:ot,Kt,Qt;if(I.current==="adaptive"){let et=se.current;if(!et)return;let tt=et.getBoundingClientRect();Kt=(B.clientX-tt.left)/(tt.width/Qe),Qt=(B.clientY-tt.top)/(tt.height/pt);}else {let et=Qe*Y,tt=pt*Y,Sr=yt(et,tt,Me.width,Me.height);Kt=(k.scrollLeft+B.clientX-Me.left-Sr.x)/Y,Qt=(k.scrollTop+B.clientY-Me.top-Sr.y)/Y;}Ce(be),requestAnimationFrame(()=>{let et=k.getBoundingClientRect(),tt=yt(Qe*be,pt*be,et.width,et.height);k.scrollLeft=Kt*be+tt.x-(B.clientX-et.left),k.scrollTop=Qt*be+tt.y-(B.clientY-et.top);});},"handleWheel");return k.addEventListener("wheel",_,{passive:false}),()=>k.removeEventListener("wheel",_)},[y,Ae,Re,Le,Ce,me]),useEffect(()=>{if(p!=="manual")return;let k=z$1.current;if(!k)return;let _=a(Z=>{Z.button===0&&(Z.preventDefault(),S.current=true,v(true),J.current={x:Z.clientX,y:Z.clientY,scrollLeft:k.scrollLeft,scrollTop:k.scrollTop});},"handleMouseDown"),B=a(Z=>{if(!S.current)return;let{x:be,y:Se,scrollLeft:Me,scrollTop:Be}=J.current;k.scrollLeft=Me-(Z.clientX-be),k.scrollTop=Be-(Z.clientY-Se);},"handleMouseMove"),Y=a(()=>{S.current=false,v(false);},"handleMouseUp");return k.addEventListener("mousedown",_),window.addEventListener("mousemove",B),window.addEventListener("mouseup",Y),()=>{k.removeEventListener("mousedown",_),window.removeEventListener("mousemove",B),window.removeEventListener("mouseup",Y);}},[p]);let ye=useCallback(()=>{p==="manual"&&me();},[p,me]),Fe=useCallback(()=>{let k=Ae(),_=Re(k,"in");_!==k&&(Ce(_),ve(_));},[Ae,Re,Ce,ve]),Oe=useCallback(()=>{let k=Ae(),_=Re(k,"out");if(_<=Le()){me();return}Ce(_),ve(_);},[Ae,Re,Le,me,Ce,ve]),bt=useCallback(()=>{Ce(1),ve(1);},[Ce,ve]),Ne=useCallback(()=>{P(k=>{let _=(k+90)%360;if(I.current==="manual"){let B=fe.current.width,Y=fe.current.height,Z=_===90||_===270,be=Z?Y:B,Se=Z?B:Y,Me=ie.current;requestAnimationFrame(()=>{let Be=z$1.current;if(!Be)return;let Xe=Be.getBoundingClientRect(),nt=be*Me,ot=Se*Me,Qe=yt(nt,ot,Xe.width,Xe.height);Be.scrollLeft=nt/2+Qe.x-Xe.width/2,Be.scrollTop=ot/2+Qe.y-Xe.height/2;});}return _});},[]),Pe=useCallback(()=>{let k=se.current;k&&(fe.current={width:k.naturalWidth,height:k.naturalHeight},X(true),H(false));},[]),t=p==="adaptive"?Le():A,d=O*t,u=ge*t,h=ce.width,g=ce.height,x=p==="manual"?yt(d,u,h,g):{x:0,y:0},w=f&&p==="manual"&&(d>h||u>g),m=O>0?b/O:0,M=ge*m,R=h>0?h/A*m:0,j=g>0?g/A*m:0,ee=Math.max(0,$.left-x.x)/A*m,V=Math.max(0,$.top-x.y)/A*m,de=p==="adaptive"?"Fit":`${Math.round(A*100)}%`,ne=Re(t,"in")!==t,le=p==="manual"||t>l,E=p==="adaptive"?{width:O?d:void 0,height:ge?u:void 0,position:"relative",flexShrink:0}:{width:d,height:u,marginLeft:x.x,marginTop:x.y,flexShrink:0,position:"relative"},W={width:te*t,height:he*t,maxWidth:"none",maxHeight:"none",position:"absolute",top:"50%",left:"50%",transform:`translate(-50%, -50%) rotate(${L}deg)`},F={cursor:p==="manual"?T?"grabbing":"grab":"default"},pe={width:te*m,height:he*m,position:"absolute",top:"50%",left:"50%",transform:`translate(-50%, -50%) rotate(${L}deg)`};return jsxs("div",{className:`h-full w-full flex flex-col min-h-0 min-w-0 overflow-hidden ${N??""}`,children:[jsxs("div",{className:"flex w-full items-center px-8.5 py-3 gap-1 shrink-0 flex-wrap",children:[jsx(z,{variant:"outlined","aria-label":"zoom-out",color:"default",size:"small",icon:jsx(Ra$1,{style:{width:20,height:20}}),onClick:Oe,disabled:!le,p:7,className:"bg-white! dark:bg-neutral-800! hover:bg-blue-50! dark:hover:bg-neutral-700! h-[38px]!"}),jsx("button",{type:"button",onClick:p==="manual"?me:void 0,className:"flex items-center justify-center bg-white dark:bg-neutral-800 h-[38px] min-w-16 px-3 select-none border border-gray-300 dark:border-neutral-600 rounded-md","aria-label":de,children:jsx(_a,{style:{fontSize:12,fontWeight:500},children:de})}),jsx(z,{variant:"outlined","aria-label":"zoom-in",size:"small",color:"default",icon:jsx(na$1,{style:{width:14,height:14}}),onClick:Fe,disabled:!ne,className:"bg-white! dark:bg-neutral-800! hover:bg-blue-50! dark:hover:bg-neutral-700! h-[38px]!",p:10}),jsx(z,{variant:"outlined","aria-label":"rotate-right",size:"small",color:"default",icon:jsx(Na$1,{style:{width:16,height:16}}),onClick:Ne,className:"bg-white! dark:bg-neutral-800! hover:bg-blue-50! dark:hover:bg-neutral-700! h-[38px]! ml-auto",p:10}),jsx(z,{variant:"outlined","aria-label":"fit-to-container",size:"small",color:p==="adaptive"?"primary":"default",icon:jsx(sa$1,{style:{width:14,height:14}}),onClick:me,className:`${p==="adaptive"?"bg-blue-50!":"bg-white! dark:bg-neutral-800! hover:bg-blue-50! dark:hover:bg-neutral-700!"} h-[38px]!`,p:10}),jsx(z,{variant:"outlined","aria-label":"original-size",size:"small",color:p==="manual"&&A===1?"primary":"default",onClick:bt,className:`${p==="manual"&&A===1?"bg-blue-50!":"bg-white! dark:bg-neutral-800! hover:bg-blue-50! dark:hover:bg-neutral-700!"} h-[38px]!`,py:10,px:11,children:jsx(_a,{style:{fontSize:12,fontWeight:500,lineHeight:1},children:"1:1"})})]}),jsxs("div",{className:"flex-1 min-h-0 min-w-0 relative",children:[jsx("div",{ref:z$1,className:`h-full w-full ${p==="adaptive"?"flex items-center justify-center overflow-hidden":"overflow-auto"}`,style:F,onDoubleClick:ye,children:K?jsx("div",{className:"flex items-center justify-center h-full w-full",children:jsx(_a,{color:"text.lighter",children:"Failed to load image"})}):jsx("div",{style:E,children:jsx("img",{ref:se,src:e,alt:r,draggable:false,className:"block select-none",style:W,onLoad:Pe,onError:()=>H(true)})})}),w&&jsxs("div",{className:"absolute bottom-3 right-3 rounded-lg overflow-hidden shadow-lg pointer-events-none",style:{width:b,height:M,backdropFilter:"blur(8px)",background:"rgba(255,255,255,0.75)"},children:[jsx("div",{style:pe,children:jsx("img",{src:e,alt:"",draggable:false,className:"block w-full h-full object-fill"})}),jsx("div",{className:"absolute border-2 border-blue-500 rounded-sm",style:{width:Math.min(R,b),height:Math.min(j,M),left:Math.max(0,Math.min(ee,b-R)),top:Math.max(0,Math.min(V,M-j)),background:"rgba(59,130,246,0.1)"}})]})]})]})},"ImageDriver");var Wr=a(({url:e})=>jsx("div",{className:"flex flex-col justify-center items-center w-full h-full py-5.5 px-8.5",children:jsx("audio",{controls:true,src:e,className:"w-full"})}),"AudioDriver");var tr=a(({url:e})=>{let[r,o]=useState(null),[a$1,s]=useState(false),[i,l]=useState(true),[f,b]=useState(null);return useEffect(()=>{s(true);},[]),useEffect(()=>{if(!a$1)return;a(async()=>{try{let C=await import('./PdfDriver-RLN2RLDS.mjs');o(()=>C.PdfDriver),l(!1);}catch(C){console.error("Failed to load PDF driver:",C),b("Failed to load PDF viewer"),l(false);}},"loadPdfDriver")();},[a$1]),a$1?i?jsx("div",{className:"flex items-center justify-center h-full w-full",children:jsx("div",{className:"text-gray-500 dark:text-gray-400",children:"Loading PDF viewer..."})}):f||!r?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:f||"PDF viewer unavailable"})})}):jsx(r,{url:e}):jsx("div",{className:"flex items-center justify-center h-full w-full",children:jsx("div",{className:"text-gray-500 dark:text-gray-400",children:"Loading PDF viewer..."})})},"PdfDriverWrapper");var Ur=50,Ro=1e4,qr=a(({url:e,blob:r,labels:o={}})=>{let{loading:a$1="\u0417\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u043D\u044F...",scale:s="Scale:"}=o,i=useRef(null),l=useRef(null),[f,b]=useState(null),[N,C]=useState(true),[p,D]=useState(1),A=useRef(false),[n,L]=useState({width:0,height:0}),P=useRef(0),T=a(()=>{A.current=true,D(y=>Math.min(y+.25,4));},"handleZoomIn"),v=a(()=>{A.current=true,D(y=>Math.max(y-.25,.25));},"handleZoomOut");useEffect(()=>{a(async()=>{if(l.current)try{C(!0),b(null);let X=r;if(!X&&e&&(X=await(await fetch(e)).blob()),!X){b({type:"render_error",originalMessage:"No source"}),C(!1);return}if(X.size/(1024*1024)>Ur){b({type:"file_too_large"}),C(!1);return}l.current.innerHTML="";let H=renderAsync(X,l.current,void 0,{debug:!0,experimental:!0,hideWrapperOnPrint:!0,breakPages:!0,ignoreLastRenderedPageBreak:!1}),$=new Promise((oe,ce)=>setTimeout(()=>ce({isTimeout:!0}),Ro));await Promise.race([H,$]),await new Promise(oe=>requestAnimationFrame(oe));let q=l.current.querySelector(".docx-wrapper");if(q&&(P.current=q.offsetWidth,L({width:q.offsetWidth,height:q.offsetHeight})),i.current&&P.current>0){let oe=i.current.clientWidth,ce=Math.min(oe/P.current,1);D(ce);}C(!1);}catch(X){b(X?.isTimeout?{type:"timeout"}:{type:"render_error",originalMessage:X?.message??""}),C(false);}},"renderDocument")();},[e,r]),useEffect(()=>{if(!i.current)return;let y=Lo(K=>{if(!(A.current||P.current===0))for(let H of K){let $=H.contentRect.width,q=Math.min($/P.current,1);D(q);}},150),X=new ResizeObserver(y);return X.observe(i.current),()=>{X.disconnect(),y.cancel();}},[]);let S=(()=>{if(!f)return null;switch(f.type){case "file_too_large":return o.errorFileTooLarge??`\u0424\u0430\u0439\u043B \u0437\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0438\u0439 (> ${Ur} \u041C\u0411)`;case "timeout":return o.errorTimeout??"\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";default:return (o.errorRender??f.originalMessage)||"\u041D\u0435 \u0432\u0434\u0430\u043B\u043E\u0441\u044F \u0432\u0456\u0434\u043A\u0440\u0438\u0442\u0438 DOCX \u0444\u0430\u0439\u043B"}})();return jsxs("div",{className:"h-full w-full flex flex-col px-0.5",children:[!S&&jsxs("div",{className:"flex justify-center items-stretch px-8 py-3 gap-1 border-b border-gray-200 dark:border-neutral-700",children:[jsx(z,{variant:"outlined","aria-label":"zoom-out",color:"default",size:"small",icon:jsx(Ra$1,{style:{width:20,height:20}}),onClick:v,disabled:p<=.25,className:"bg-white! dark:bg-neutral-800! hover:bg-blue-50! dark:hover:bg-neutral-700!",p:7}),jsxs(tb,{py:8,px:8,className:"flex items-center justify-between gap-1.5 min-w-21 rounded-[5px]!",children:[jsx(_a,{color:"text.lighter",style:{fontSize:10},children:s}),jsxs(_a,{children:[Math.round(p*100),"%"]})]}),jsx(z,{variant:"outlined","aria-label":"zoom-in",size:"small",color:"default",icon:jsx(na$1,{style:{width:14,height:14}}),onClick:T,disabled:p>=4,className:"bg-white! dark:bg-neutral-800! hover:bg-blue-50! dark:hover:bg-neutral-700!",p:10})]}),!!S&&!N&&jsx("div",{className:"h-full flex flex-col justify-center items-center",children:jsx(tb,{className:"mx-5",children:jsx(_a,{variant:"h2",color:"text.light",weight:500,className:"text-center",children:S})})}),N&&jsx("div",{className:"flex items-center justify-center p-8",children:a$1}),jsx("div",{ref:i,className:`w-full h-full overflow-auto bg-neutral-400 dark:bg-neutral-800
67
67
  [&::-webkit-scrollbar]:w-2.5 [&::-webkit-scrollbar]:h-2.5 [&::-webkit-scrollbar-thumb]:rounded-full
68
68
  [&::-webkit-scrollbar-thumb]:bg-neutral-500 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500
69
69
  [&::-webkit-scrollbar-track]:bg-neutral-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyber-harbour/ui",
3
- "version": "2.2.35",
3
+ "version": "2.2.36",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",