({name:"arrow",options:e,async fn(n){const{x:r,y:i,placement:a,rects:l,platform:u,elements:d,middlewareData:h}=n,{element:m,padding:y=0}=pr(e,n)||{};if(m==null)return{};const x=Cy(y),b={x:r,y:i},C=Kf(a),N=Gf(C),E=await u.getDimensions(m),j=C==="y",A=j?"top":"left",k=j?"bottom":"right",M=j?"clientHeight":"clientWidth",P=l.reference[N]+l.reference[C]-b[C]-l.floating[N],L=b[C]-l.reference[C],H=await(u.getOffsetParent==null?void 0:u.getOffsetParent(m));let _=H?H[M]:0;(!_||!await(u.isElement==null?void 0:u.isElement(H)))&&(_=d.floating[M]||l.floating[N]);const F=P/2-L/2,W=_/2-E[N]/2-1,Z=Xr(x[A],W),ie=Xr(x[k],W),U=Z,de=_-E[N]-ie,se=_/2-E[N]/2+F,ce=Hd(U,se,de),ae=!h.arrow&&ji(a)!=null&&se!==ce&&l.reference[N]/2-(sese<=0)){var ie,U;const se=(((ie=l.flip)==null?void 0:ie.index)||0)+1,ce=_[se];if(ce&&(!(x==="alignment"&&k!==$n(ce))||Z.every(oe=>$n(oe.placement)===k?oe.overflows[0]>0:!0)))return{data:{index:se,overflows:Z},reset:{placement:ce}};let ae=(U=Z.filter(oe=>oe.overflows[0]<=0).sort((oe,Y)=>oe.overflows[1]-Y.overflows[1])[0])==null?void 0:U.placement;if(!ae)switch(C){case"bestFit":{var de;const oe=(de=Z.filter(Y=>{if(H){const I=$n(Y.placement);return I===k||I==="y"}return!0}).map(Y=>[Y.placement,Y.overflows.filter(I=>I>0).reduce((I,q)=>I+q,0)]).sort((Y,I)=>Y[1]-I[1])[0])==null?void 0:de[0];oe&&(ae=oe);break}case"initialPlacement":ae=d;break}if(a!==ae)return{reset:{placement:ae}}}return{}}}};function m1(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function g1(e){return xS.some(n=>e[n]>=0)}const zS=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(n){const{rects:r}=n,{strategy:i="referenceHidden",...a}=pr(e,n);switch(i){case"referenceHidden":{const l=await zs(n,{...a,elementContext:"reference"}),u=m1(l,r.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:g1(u)}}}case"escaped":{const l=await zs(n,{...a,altBoundary:!0}),u=m1(l,r.floating);return{data:{escapedOffsets:u,escaped:g1(u)}}}default:return{}}}}},ky=new Set(["left","top"]);async function OS(e,n){const{placement:r,platform:i,elements:a}=e,l=await(i.isRTL==null?void 0:i.isRTL(a.floating)),u=hr(r),d=ji(r),h=$n(r)==="y",m=ky.has(u)?-1:1,y=l&&h?-1:1,x=pr(n,e);let{mainAxis:b,crossAxis:C,alignmentAxis:N}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return d&&typeof N=="number"&&(C=d==="end"?N*-1:N),h?{x:C*y,y:b*m}:{x:b*m,y:C*y}}const TS=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var r,i;const{x:a,y:l,placement:u,middlewareData:d}=n,h=await OS(n,e);return u===((r=d.offset)==null?void 0:r.placement)&&(i=d.arrow)!=null&&i.alignmentOffset?{}:{x:a+h.x,y:l+h.y,data:{...h,placement:u}}}}},_S=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:r,y:i,placement:a}=n,{mainAxis:l=!0,crossAxis:u=!1,limiter:d={fn:j=>{let{x:A,y:k}=j;return{x:A,y:k}}},...h}=pr(e,n),m={x:r,y:i},y=await zs(n,h),x=$n(hr(a)),b=Xf(x);let C=m[b],N=m[x];if(l){const j=b==="y"?"top":"left",A=b==="y"?"bottom":"right",k=C+y[j],M=C-y[A];C=Hd(k,C,M)}if(u){const j=x==="y"?"top":"left",A=x==="y"?"bottom":"right",k=N+y[j],M=N-y[A];N=Hd(k,N,M)}const E=d.fn({...n,[b]:C,[x]:N});return{...E,data:{x:E.x-r,y:E.y-i,enabled:{[b]:l,[x]:u}}}}}},DS=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:r,y:i,placement:a,rects:l,middlewareData:u}=n,{offset:d=0,mainAxis:h=!0,crossAxis:m=!0}=pr(e,n),y={x:r,y:i},x=$n(a),b=Xf(x);let C=y[b],N=y[x];const E=pr(d,n),j=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(h){const M=b==="y"?"height":"width",P=l.reference[b]-l.floating[M]+j.mainAxis,L=l.reference[b]+l.reference[M]-j.mainAxis;C L&&(C=L)}if(m){var A,k;const M=b==="y"?"width":"height",P=ky.has(hr(a)),L=l.reference[x]-l.floating[M]+(P&&((A=u.offset)==null?void 0:A[x])||0)+(P?0:j.crossAxis),H=l.reference[x]+l.reference[M]+(P?0:((k=u.offset)==null?void 0:k[x])||0)-(P?j.crossAxis:0);NH&&(N=H)}return{[b]:C,[x]:N}}}},LS=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){var r,i;const{placement:a,rects:l,platform:u,elements:d}=n,{apply:h=()=>{},...m}=pr(e,n),y=await zs(n,m),x=hr(a),b=ji(a),C=$n(a)==="y",{width:N,height:E}=l.floating;let j,A;x==="top"||x==="bottom"?(j=x,A=b===(await(u.isRTL==null?void 0:u.isRTL(d.floating))?"start":"end")?"left":"right"):(A=x,j=b==="end"?"top":"bottom");const k=E-y.top-y.bottom,M=N-y.left-y.right,P=Xr(E-y[j],k),L=Xr(N-y[A],M),H=!n.middlewareData.shift;let _=P,F=L;if((r=n.middlewareData.shift)!=null&&r.enabled.x&&(F=M),(i=n.middlewareData.shift)!=null&&i.enabled.y&&(_=k),H&&!b){const Z=qt(y.left,0),ie=qt(y.right,0),U=qt(y.top,0),de=qt(y.bottom,0);C?F=N-2*(Z!==0||ie!==0?Z+ie:qt(y.left,y.right)):_=E-2*(U!==0||de!==0?U+de:qt(y.top,y.bottom))}await h({...n,availableWidth:F,availableHeight:_});const W=await u.getDimensions(d.floating);return N!==W.width||E!==W.height?{reset:{rects:!0}}:{}}}};function Xl(){return typeof window<"u"}function Ei(e){return jy(e)?(e.nodeName||"").toLowerCase():"#document"}function Jt(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function qn(e){var n;return(n=(jy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function jy(e){return Xl()?e instanceof Node||e instanceof Jt(e).Node:!1}function kn(e){return Xl()?e instanceof Element||e instanceof Jt(e).Element:!1}function Yn(e){return Xl()?e instanceof HTMLElement||e instanceof Jt(e).HTMLElement:!1}function y1(e){return!Xl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Jt(e).ShadowRoot}const FS=new Set(["inline","contents"]);function $s(e){const{overflow:n,overflowX:r,overflowY:i,display:a}=jn(e);return/auto|scroll|overlay|hidden|clip/.test(n+i+r)&&!FS.has(a)}const $S=new Set(["table","td","th"]);function HS(e){return $S.has(Ei(e))}const VS=[":popover-open",":modal"];function Gl(e){return VS.some(n=>{try{return e.matches(n)}catch{return!1}})}const BS=["transform","translate","scale","rotate","perspective"],WS=["transform","translate","scale","rotate","perspective","filter"],US=["paint","layout","strict","content"];function qf(e){const n=Qf(),r=kn(e)?jn(e):e;return BS.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!n&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!n&&(r.filter?r.filter!=="none":!1)||WS.some(i=>(r.willChange||"").includes(i))||US.some(i=>(r.contain||"").includes(i))}function YS(e){let n=Gr(e);for(;Yn(n)&&!bi(n);){if(qf(n))return n;if(Gl(n))return null;n=Gr(n)}return null}function Qf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const XS=new Set(["html","body","#document"]);function bi(e){return XS.has(Ei(e))}function jn(e){return Jt(e).getComputedStyle(e)}function Kl(e){return kn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Gr(e){if(Ei(e)==="html")return e;const n=e.assignedSlot||e.parentNode||y1(e)&&e.host||qn(e);return y1(n)?n.host:n}function Ey(e){const n=Gr(e);return bi(n)?e.ownerDocument?e.ownerDocument.body:e.body:Yn(n)&&$s(n)?n:Ey(n)}function Os(e,n,r){var i;n===void 0&&(n=[]),r===void 0&&(r=!0);const a=Ey(e),l=a===((i=e.ownerDocument)==null?void 0:i.body),u=Jt(a);if(l){const d=Bd(u);return n.concat(u,u.visualViewport||[],$s(a)?a:[],d&&r?Os(d):[])}return n.concat(a,Os(a,[],r))}function Bd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ny(e){const n=jn(e);let r=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const a=Yn(e),l=a?e.offsetWidth:r,u=a?e.offsetHeight:i,d=Pl(r)!==l||Pl(i)!==u;return d&&(r=l,i=u),{width:r,height:i,$:d}}function Jf(e){return kn(e)?e:e.contextElement}function mi(e){const n=Jf(e);if(!Yn(n))return Un(1);const r=n.getBoundingClientRect(),{width:i,height:a,$:l}=Ny(n);let u=(l?Pl(r.width):r.width)/i,d=(l?Pl(r.height):r.height)/a;return(!u||!Number.isFinite(u))&&(u=1),(!d||!Number.isFinite(d))&&(d=1),{x:u,y:d}}const GS=Un(0);function My(e){const n=Jt(e);return!Qf()||!n.visualViewport?GS:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function KS(e,n,r){return n===void 0&&(n=!1),!r||n&&r!==Jt(e)?!1:n}function No(e,n,r,i){n===void 0&&(n=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),l=Jf(e);let u=Un(1);n&&(i?kn(i)&&(u=mi(i)):u=mi(e));const d=KS(l,r,i)?My(l):Un(0);let h=(a.left+d.x)/u.x,m=(a.top+d.y)/u.y,y=a.width/u.x,x=a.height/u.y;if(l){const b=Jt(l),C=i&&kn(i)?Jt(i):i;let N=b,E=Bd(N);for(;E&&i&&C!==N;){const j=mi(E),A=E.getBoundingClientRect(),k=jn(E),M=A.left+(E.clientLeft+parseFloat(k.paddingLeft))*j.x,P=A.top+(E.clientTop+parseFloat(k.paddingTop))*j.y;h*=j.x,m*=j.y,y*=j.x,x*=j.y,h+=M,m+=P,N=Jt(E),E=Bd(N)}}return Il({width:y,height:x,x:h,y:m})}function ql(e,n){const r=Kl(e).scrollLeft;return n?n.left+r:No(qn(e)).left+r}function Ay(e,n){const r=e.getBoundingClientRect(),i=r.left+n.scrollLeft-ql(e,r),a=r.top+n.scrollTop;return{x:i,y:a}}function qS(e){let{elements:n,rect:r,offsetParent:i,strategy:a}=e;const l=a==="fixed",u=qn(i),d=n?Gl(n.floating):!1;if(i===u||d&&l)return r;let h={scrollLeft:0,scrollTop:0},m=Un(1);const y=Un(0),x=Yn(i);if((x||!x&&!l)&&((Ei(i)!=="body"||$s(u))&&(h=Kl(i)),Yn(i))){const C=No(i);m=mi(i),y.x=C.x+i.clientLeft,y.y=C.y+i.clientTop}const b=u&&!x&&!l?Ay(u,h):Un(0);return{width:r.width*m.x,height:r.height*m.y,x:r.x*m.x-h.scrollLeft*m.x+y.x+b.x,y:r.y*m.y-h.scrollTop*m.y+y.y+b.y}}function QS(e){return Array.from(e.getClientRects())}function JS(e){const n=qn(e),r=Kl(e),i=e.ownerDocument.body,a=qt(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),l=qt(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let u=-r.scrollLeft+ql(e);const d=-r.scrollTop;return jn(i).direction==="rtl"&&(u+=qt(n.clientWidth,i.clientWidth)-a),{width:a,height:l,x:u,y:d}}const v1=25;function ZS(e,n){const r=Jt(e),i=qn(e),a=r.visualViewport;let l=i.clientWidth,u=i.clientHeight,d=0,h=0;if(a){l=a.width,u=a.height;const y=Qf();(!y||y&&n==="fixed")&&(d=a.offsetLeft,h=a.offsetTop)}const m=ql(i);if(m<=0){const y=i.ownerDocument,x=y.body,b=getComputedStyle(x),C=y.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,N=Math.abs(i.clientWidth-x.clientWidth-C);N<=v1&&(l-=N)}else m<=v1&&(l+=m);return{width:l,height:u,x:d,y:h}}const e8=new Set(["absolute","fixed"]);function t8(e,n){const r=No(e,!0,n==="fixed"),i=r.top+e.clientTop,a=r.left+e.clientLeft,l=Yn(e)?mi(e):Un(1),u=e.clientWidth*l.x,d=e.clientHeight*l.y,h=a*l.x,m=i*l.y;return{width:u,height:d,x:h,y:m}}function x1(e,n,r){let i;if(n==="viewport")i=ZS(e,r);else if(n==="document")i=JS(qn(e));else if(kn(n))i=t8(n,r);else{const a=My(e);i={x:n.x-a.x,y:n.y-a.y,width:n.width,height:n.height}}return Il(i)}function Py(e,n){const r=Gr(e);return r===n||!kn(r)||bi(r)?!1:jn(r).position==="fixed"||Py(r,n)}function n8(e,n){const r=n.get(e);if(r)return r;let i=Os(e,[],!1).filter(d=>kn(d)&&Ei(d)!=="body"),a=null;const l=jn(e).position==="fixed";let u=l?Gr(e):e;for(;kn(u)&&!bi(u);){const d=jn(u),h=qf(u);!h&&d.position==="fixed"&&(a=null),(l?!h&&!a:!h&&d.position==="static"&&a&&e8.has(a.position)||$s(u)&&!h&&Py(e,u))?i=i.filter(m=>m!==u):a=d,u=Gr(u)}return n.set(e,i),i}function r8(e){let{element:n,boundary:r,rootBoundary:i,strategy:a}=e;const l=[...r==="clippingAncestors"?Gl(n)?[]:n8(n,this._c):[].concat(r),i],u=l[0],d=l.reduce((h,m)=>{const y=x1(n,m,a);return h.top=qt(y.top,h.top),h.right=Xr(y.right,h.right),h.bottom=Xr(y.bottom,h.bottom),h.left=qt(y.left,h.left),h},x1(n,u,a));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function o8(e){const{width:n,height:r}=Ny(e);return{width:n,height:r}}function i8(e,n,r){const i=Yn(n),a=qn(n),l=r==="fixed",u=No(e,!0,l,n);let d={scrollLeft:0,scrollTop:0};const h=Un(0);function m(){h.x=ql(a)}if(i||!i&&!l)if((Ei(n)!=="body"||$s(a))&&(d=Kl(n)),i){const C=No(n,!0,l,n);h.x=C.x+n.clientLeft,h.y=C.y+n.clientTop}else a&&m();l&&!i&&a&&m();const y=a&&!i&&!l?Ay(a,d):Un(0),x=u.left+d.scrollLeft-h.x-y.x,b=u.top+d.scrollTop-h.y-y.y;return{x,y:b,width:u.width,height:u.height}}function cd(e){return jn(e).position==="static"}function w1(e,n){if(!Yn(e)||jn(e).position==="fixed")return null;if(n)return n(e);let r=e.offsetParent;return qn(e)===r&&(r=r.ownerDocument.body),r}function Ry(e,n){const r=Jt(e);if(Gl(e))return r;if(!Yn(e)){let a=Gr(e);for(;a&&!bi(a);){if(kn(a)&&!cd(a))return a;a=Gr(a)}return r}let i=w1(e,n);for(;i&&HS(i)&&cd(i);)i=w1(i,n);return i&&bi(i)&&cd(i)&&!qf(i)?r:i||YS(e)||r}const s8=async function(e){const n=this.getOffsetParent||Ry,r=this.getDimensions,i=await r(e.floating);return{reference:i8(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function a8(e){return jn(e).direction==="rtl"}const l8={convertOffsetParentRelativeRectToViewportRelativeRect:qS,getDocumentElement:qn,getClippingRect:r8,getOffsetParent:Ry,getElementRects:s8,getClientRects:QS,getDimensions:o8,getScale:mi,isElement:kn,isRTL:a8};function Iy(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function c8(e,n){let r=null,i;const a=qn(e);function l(){var d;clearTimeout(i),(d=r)==null||d.disconnect(),r=null}function u(d,h){d===void 0&&(d=!1),h===void 0&&(h=1),l();const m=e.getBoundingClientRect(),{left:y,top:x,width:b,height:C}=m;if(d||n(),!b||!C)return;const N=sl(x),E=sl(a.clientWidth-(y+b)),j=sl(a.clientHeight-(x+C)),A=sl(y),k={rootMargin:-N+"px "+-E+"px "+-j+"px "+-A+"px",threshold:qt(0,Xr(1,h))||1};let M=!0;function P(L){const H=L[0].intersectionRatio;if(H!==h){if(!M)return u();H?u(!1,H):i=setTimeout(()=>{u(!1,1e-7)},1e3)}H===1&&!Iy(m,e.getBoundingClientRect())&&u(),M=!1}try{r=new IntersectionObserver(P,{...k,root:a.ownerDocument})}catch{r=new IntersectionObserver(P,k)}r.observe(e)}return u(!0),l}function u8(e,n,r,i){i===void 0&&(i={});const{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=i,m=Jf(e),y=a||l?[...m?Os(m):[],...Os(n)]:[];y.forEach(A=>{a&&A.addEventListener("scroll",r,{passive:!0}),l&&A.addEventListener("resize",r)});const x=m&&d?c8(m,r):null;let b=-1,C=null;u&&(C=new ResizeObserver(A=>{let[k]=A;k&&k.target===m&&C&&(C.unobserve(n),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var M;(M=C)==null||M.observe(n)})),r()}),m&&!h&&C.observe(m),C.observe(n));let N,E=h?No(e):null;h&&j();function j(){const A=No(e);E&&!Iy(E,A)&&r(),E=A,N=requestAnimationFrame(j)}return r(),()=>{var A;y.forEach(k=>{a&&k.removeEventListener("scroll",r),l&&k.removeEventListener("resize",r)}),x==null||x(),(A=C)==null||A.disconnect(),C=null,h&&cancelAnimationFrame(N)}}const d8=TS,f8=_S,p8=IS,h8=LS,m8=zS,b1=RS,g8=DS,y8=(e,n,r)=>{const i=new Map,a={platform:l8,...r},l={...a.platform,_c:i};return PS(e,n,{...a,platform:l})};var v8=typeof document<"u",x8=function(){},yl=v8?v.useLayoutEffect:x8;function zl(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let r,i,a;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==n.length)return!1;for(i=r;i--!==0;)if(!zl(e[i],n[i]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){const l=a[i];if(!(l==="_owner"&&e.$$typeof)&&!zl(e[l],n[l]))return!1}return!0}return e!==e&&n!==n}function zy(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function S1(e,n){const r=zy(e);return Math.round(n*r)/r}function ud(e){const n=v.useRef(e);return yl(()=>{n.current=e}),n}function w8(e){e===void 0&&(e={});const{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:a,elements:{reference:l,floating:u}={},transform:d=!0,whileElementsMounted:h,open:m}=e,[y,x]=v.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[b,C]=v.useState(i);zl(b,i)||C(i);const[N,E]=v.useState(null),[j,A]=v.useState(null),k=v.useCallback(Y=>{Y!==H.current&&(H.current=Y,E(Y))},[]),M=v.useCallback(Y=>{Y!==_.current&&(_.current=Y,A(Y))},[]),P=l||N,L=u||j,H=v.useRef(null),_=v.useRef(null),F=v.useRef(y),W=h!=null,Z=ud(h),ie=ud(a),U=ud(m),de=v.useCallback(()=>{if(!H.current||!_.current)return;const Y={placement:n,strategy:r,middleware:b};ie.current&&(Y.platform=ie.current),y8(H.current,_.current,Y).then(I=>{const q={...I,isPositioned:U.current!==!1};se.current&&!zl(F.current,q)&&(F.current=q,If.flushSync(()=>{x(q)}))})},[b,n,r,ie,U]);yl(()=>{m===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,x(Y=>({...Y,isPositioned:!1})))},[m]);const se=v.useRef(!1);yl(()=>(se.current=!0,()=>{se.current=!1}),[]),yl(()=>{if(P&&(H.current=P),L&&(_.current=L),P&&L){if(Z.current)return Z.current(P,L,de);de()}},[P,L,de,Z,W]);const ce=v.useMemo(()=>({reference:H,floating:_,setReference:k,setFloating:M}),[k,M]),ae=v.useMemo(()=>({reference:P,floating:L}),[P,L]),oe=v.useMemo(()=>{const Y={position:r,left:0,top:0};if(!ae.floating)return Y;const I=S1(ae.floating,y.x),q=S1(ae.floating,y.y);return d?{...Y,transform:"translate("+I+"px, "+q+"px)",...zy(ae.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:I,top:q}},[r,d,ae.floating,y.x,y.y]);return v.useMemo(()=>({...y,update:de,refs:ce,elements:ae,floatingStyles:oe}),[y,de,ce,ae,oe])}const b8=e=>{function n(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:i,padding:a}=typeof e=="function"?e(r):e;return i&&n(i)?i.current!=null?b1({element:i.current,padding:a}).fn(r):{}:i?b1({element:i,padding:a}).fn(r):{}}}},S8=(e,n)=>({...d8(e),options:[e,n]}),C8=(e,n)=>({...f8(e),options:[e,n]}),k8=(e,n)=>({...g8(e),options:[e,n]}),j8=(e,n)=>({...p8(e),options:[e,n]}),E8=(e,n)=>({...h8(e),options:[e,n]}),N8=(e,n)=>({...m8(e),options:[e,n]}),M8=(e,n)=>({...b8(e),options:[e,n]});var A8="Arrow",Oy=v.forwardRef((e,n)=>{const{children:r,width:i=10,height:a=5,...l}=e;return w.jsx(Xe.svg,{...l,ref:n,width:i,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:w.jsx("polygon",{points:"0,0 30,0 15,10"})})});Oy.displayName=A8;var P8=Oy;function R8(e){const[n,r]=v.useState(void 0);return Zt(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const l=a[0];let u,d;if("borderBoxSize"in l){const h=l.borderBoxSize,m=Array.isArray(h)?h[0]:h;u=m.inlineSize,d=m.blockSize}else u=e.offsetWidth,d=e.offsetHeight;r({width:u,height:d})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else r(void 0)},[e]),n}var Zf="Popper",[Ty,_y]=Io(Zf),[I8,Dy]=Ty(Zf),Ly=e=>{const{__scopePopper:n,children:r}=e,[i,a]=v.useState(null);return w.jsx(I8,{scope:n,anchor:i,onAnchorChange:a,children:r})};Ly.displayName=Zf;var Fy="PopperAnchor",$y=v.forwardRef((e,n)=>{const{__scopePopper:r,virtualRef:i,...a}=e,l=Dy(Fy,r),u=v.useRef(null),d=rt(n,u),h=v.useRef(null);return v.useEffect(()=>{const m=h.current;h.current=(i==null?void 0:i.current)||u.current,m!==h.current&&l.onAnchorChange(h.current)}),i?null:w.jsx(Xe.div,{...a,ref:d})});$y.displayName=Fy;var e0="PopperContent",[z8,O8]=Ty(e0),Hy=v.forwardRef((e,n)=>{var r,i,a,l,u,d;const{__scopePopper:h,side:m="bottom",sideOffset:y=0,align:x="center",alignOffset:b=0,arrowPadding:C=0,avoidCollisions:N=!0,collisionBoundary:E=[],collisionPadding:j=0,sticky:A="partial",hideWhenDetached:k=!1,updatePositionStrategy:M="optimized",onPlaced:P,...L}=e,H=Dy(e0,h),[_,F]=v.useState(null),W=rt(n,Ot=>F(Ot)),[Z,ie]=v.useState(null),U=R8(Z),de=(U==null?void 0:U.width)??0,se=(U==null?void 0:U.height)??0,ce=m+(x!=="center"?"-"+x:""),ae=typeof j=="number"?j:{top:0,right:0,bottom:0,left:0,...j},oe=Array.isArray(E)?E:[E],Y=oe.length>0,I={padding:ae,boundary:oe.filter(_8),altBoundary:Y},{refs:q,floatingStyles:T,placement:z,isPositioned:K,middlewareData:ee}=w8({strategy:"fixed",placement:ce,whileElementsMounted:(...Ot)=>u8(...Ot,{animationFrame:M==="always"}),elements:{reference:H.anchor},middleware:[S8({mainAxis:y+se,alignmentAxis:b}),N&&C8({mainAxis:!0,crossAxis:!1,limiter:A==="partial"?k8():void 0,...I}),N&&j8({...I}),E8({...I,apply:({elements:Ot,rects:Qn,availableWidth:eo,availableHeight:to})=>{const{width:vr,height:zo}=Qn.reference,nn=Ot.floating.style;nn.setProperty("--radix-popper-available-width",`${eo}px`),nn.setProperty("--radix-popper-available-height",`${to}px`),nn.setProperty("--radix-popper-anchor-width",`${vr}px`),nn.setProperty("--radix-popper-anchor-height",`${zo}px`)}}),Z&&M8({element:Z,padding:C}),D8({arrowWidth:de,arrowHeight:se}),k&&N8({strategy:"referenceHidden",...I})]}),[Q,ne]=Wy(z),le=Ht(P);Zt(()=>{K&&(le==null||le())},[K,le]);const he=(r=ee.arrow)==null?void 0:r.x,fe=(i=ee.arrow)==null?void 0:i.y,Ie=((a=ee.arrow)==null?void 0:a.centerOffset)!==0,[Le,vt]=v.useState();return Zt(()=>{_&&vt(window.getComputedStyle(_).zIndex)},[_]),w.jsx("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:K?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Le,"--radix-popper-transform-origin":[(l=ee.transformOrigin)==null?void 0:l.x,(u=ee.transformOrigin)==null?void 0:u.y].join(" "),...((d=ee.hide)==null?void 0:d.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:w.jsx(z8,{scope:h,placedSide:Q,onArrowChange:ie,arrowX:he,arrowY:fe,shouldHideArrow:Ie,children:w.jsx(Xe.div,{"data-side":Q,"data-align":ne,...L,ref:W,style:{...L.style,animation:K?void 0:"none"}})})})});Hy.displayName=e0;var Vy="PopperArrow",T8={top:"bottom",right:"left",bottom:"top",left:"right"},By=v.forwardRef(function(e,n){const{__scopePopper:r,...i}=e,a=O8(Vy,r),l=T8[a.placedSide];return w.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:w.jsx(P8,{...i,ref:n,style:{...i.style,display:"block"}})})});By.displayName=Vy;function _8(e){return e!==null}var D8=e=>({name:"transformOrigin",options:e,fn(n){var r,i,a;const{placement:l,rects:u,middlewareData:d}=n,h=((r=d.arrow)==null?void 0:r.centerOffset)!==0,m=h?0:e.arrowWidth,y=h?0:e.arrowHeight,[x,b]=Wy(l),C={start:"0%",center:"50%",end:"100%"}[b],N=(((i=d.arrow)==null?void 0:i.x)??0)+m/2,E=(((a=d.arrow)==null?void 0:a.y)??0)+y/2;let j="",A="";return x==="bottom"?(j=h?C:`${N}px`,A=`${-y}px`):x==="top"?(j=h?C:`${N}px`,A=`${u.floating.height+y}px`):x==="right"?(j=`${-y}px`,A=h?C:`${E}px`):x==="left"&&(j=`${u.floating.width+y}px`,A=h?C:`${E}px`),{data:{x:j,y:A}}}});function Wy(e){const[n,r="center"]=e.split("-");return[n,r]}var L8=Ly,Uy=$y,F8=Hy,$8=By,H8="Portal",t0=v.forwardRef((e,n)=>{var r;const{container:i,...a}=e,[l,u]=v.useState(!1);Zt(()=>u(!0),[]);const d=i||l&&((r=globalThis==null?void 0:globalThis.document)==null?void 0:r.body);return d?Vw.createPortal(w.jsx(Xe.div,{...a,ref:n}),d):null});t0.displayName=H8;var V8=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},si=new WeakMap,al=new WeakMap,ll={},dd=0,Yy=function(e){return e&&(e.host||Yy(e.parentNode))},B8=function(e,n){return n.map(function(r){if(e.contains(r))return r;var i=Yy(r);return i&&e.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},W8=function(e,n,r,i){var a=B8(n,Array.isArray(e)?e:[e]);ll[r]||(ll[r]=new WeakMap);var l=ll[r],u=[],d=new Set,h=new Set(a),m=function(x){!x||d.has(x)||(d.add(x),m(x.parentNode))};a.forEach(m);var y=function(x){!x||h.has(x)||Array.prototype.forEach.call(x.children,function(b){if(d.has(b))y(b);else try{var C=b.getAttribute(i),N=C!==null&&C!=="false",E=(si.get(b)||0)+1,j=(l.get(b)||0)+1;si.set(b,E),l.set(b,j),u.push(b),E===1&&N&&al.set(b,!0),j===1&&b.setAttribute(r,"true"),N||b.setAttribute(i,"true")}catch(A){console.error("aria-hidden: cannot operate on ",b,A)}})};return y(n),d.clear(),dd++,function(){u.forEach(function(x){var b=si.get(x)-1,C=l.get(x)-1;si.set(x,b),l.set(x,C),b||(al.has(x)||x.removeAttribute(i),al.delete(x)),C||x.removeAttribute(r)}),dd--,dd||(si=new WeakMap,si=new WeakMap,al=new WeakMap,ll={})}},Xy=function(e,n,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),a=V8(e);return a?(i.push.apply(i,Array.from(a.querySelectorAll("[aria-live], script"))),W8(i,a,r,"aria-hidden")):function(){return null}},Fn=function(){return Fn=Object.assign||function(e){for(var n,r=1,i=arguments.length;r"u")return aC;var n=lC(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,i-r+n[2]-n[0])}},uC=Qy(),gi="data-scroll-locked",dC=function(e,n,r,i){var a=e.left,l=e.top,u=e.right,d=e.gap;return r===void 0&&(r="margin"),`
+ .`.concat(Y8,` {
overflow: hidden `).concat(i,`;
- padding-right: `).concat(f,"px ").concat(i,`;
+ padding-right: `).concat(d,"px ").concat(i,`;
}
- body[`).concat(si,`] {
+ body[`).concat(gi,`] {
overflow: hidden `).concat(i,`;
overscroll-behavior: contain;
- `).concat([n&&"position: relative ".concat(i,";"),o==="margin"&&`
+ `).concat([n&&"position: relative ".concat(i,";"),r==="margin"&&`
padding-left: `.concat(a,`px;
padding-top: `).concat(l,`px;
padding-right: `).concat(u,`px;
margin-left:0;
margin-top:0;
- margin-right: `).concat(f,"px ").concat(i,`;
- `),o==="padding"&&"padding-right: ".concat(f,"px ").concat(i,";")].filter(Boolean).join(""),`
+ margin-right: `).concat(d,"px ").concat(i,`;
+ `),r==="padding"&&"padding-right: ".concat(d,"px ").concat(i,";")].filter(Boolean).join(""),`
}
- .`).concat(sl,` {
- right: `).concat(f,"px ").concat(i,`;
+ .`).concat(vl,` {
+ right: `).concat(d,"px ").concat(i,`;
}
- .`).concat(al,` {
- margin-right: `).concat(f,"px ").concat(i,`;
+ .`).concat(xl,` {
+ margin-right: `).concat(d,"px ").concat(i,`;
}
- .`).concat(sl," .").concat(sl,` {
+ .`).concat(vl," .").concat(vl,` {
right: 0 `).concat(i,`;
}
- .`).concat(al," .").concat(al,` {
+ .`).concat(xl," .").concat(xl,` {
margin-right: 0 `).concat(i,`;
}
- body[`).concat(si,`] {
- `).concat(lS,": ").concat(f,`px;
+ body[`).concat(gi,`] {
+ `).concat(X8,": ").concat(d,`px;
}
-`)},t1=function(){var e=parseInt(document.body.getAttribute(si)||"0",10);return isFinite(e)?e:0},NS=function(){y.useEffect(function(){return document.body.setAttribute(si,(t1()+1).toString()),function(){var e=t1()-1;e<=0?document.body.removeAttribute(si):document.body.setAttribute(si,e.toString())}},[])},MS=function(e){var n=e.noRelative,o=e.noImportant,i=e.gapMode,a=i===void 0?"margin":i;NS();var l=y.useMemo(function(){return kS(a)},[a]);return y.createElement(jS,{styles:ES(l,!n,a,o?"":"!important")})},Pf=!1;if(typeof window<"u")try{var Ja=Object.defineProperty({},"passive",{get:function(){return Pf=!0,!0}});window.addEventListener("test",Ja,Ja),window.removeEventListener("test",Ja,Ja)}catch{Pf=!1}var Zo=Pf?{passive:!1}:!1,AS=function(e){return e.tagName==="TEXTAREA"},xv=function(e,n){if(!(e instanceof Element))return!1;var o=window.getComputedStyle(e);return o[n]!=="hidden"&&!(o.overflowY===o.overflowX&&!AS(e)&&o[n]==="visible")},PS=function(e){return xv(e,"overflowY")},RS=function(e){return xv(e,"overflowX")},n1=function(e,n){var o=n.ownerDocument,i=n;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var a=wv(e,i);if(a){var l=bv(e,i),u=l[1],f=l[2];if(u>f)return!0}i=i.parentNode}while(i&&i!==o.body);return!1},IS=function(e){var n=e.scrollTop,o=e.scrollHeight,i=e.clientHeight;return[n,o,i]},zS=function(e){var n=e.scrollLeft,o=e.scrollWidth,i=e.clientWidth;return[n,o,i]},wv=function(e,n){return e==="v"?PS(n):RS(n)},bv=function(e,n){return e==="v"?IS(n):zS(n)},OS=function(e,n){return e==="h"&&n==="rtl"?-1:1},_S=function(e,n,o,i,a){var l=OS(e,window.getComputedStyle(n).direction),u=l*i,f=o.target,h=n.contains(f),m=!1,v=u>0,x=0,b=0;do{if(!f)break;var C=bv(e,f),N=C[0],k=C[1],j=C[2],M=k-j-l*N;(N||M)&&wv(e,f)&&(x+=M,b+=N);var E=f.parentNode;f=E&&E.nodeType===Node.DOCUMENT_FRAGMENT_NODE?E.host:E}while(!h&&f!==document.body||h&&(n.contains(f)||n===f));return(v&&Math.abs(x)<1||!v&&Math.abs(b)<1)&&(m=!0),m},el=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},r1=function(e){return[e.deltaX,e.deltaY]},o1=function(e){return e&&"current"in e?e.current:e},DS=function(e,n){return e[0]===n[0]&&e[1]===n[1]},TS=function(e){return`
+`)},k1=function(){var e=parseInt(document.body.getAttribute(gi)||"0",10);return isFinite(e)?e:0},fC=function(){v.useEffect(function(){return document.body.setAttribute(gi,(k1()+1).toString()),function(){var e=k1()-1;e<=0?document.body.removeAttribute(gi):document.body.setAttribute(gi,e.toString())}},[])},pC=function(e){var n=e.noRelative,r=e.noImportant,i=e.gapMode,a=i===void 0?"margin":i;fC();var l=v.useMemo(function(){return cC(a)},[a]);return v.createElement(uC,{styles:dC(l,!n,a,r?"":"!important")})},Wd=!1;if(typeof window<"u")try{var cl=Object.defineProperty({},"passive",{get:function(){return Wd=!0,!0}});window.addEventListener("test",cl,cl),window.removeEventListener("test",cl,cl)}catch{Wd=!1}var ai=Wd?{passive:!1}:!1,hC=function(e){return e.tagName==="TEXTAREA"},Jy=function(e,n){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[n]!=="hidden"&&!(r.overflowY===r.overflowX&&!hC(e)&&r[n]==="visible")},mC=function(e){return Jy(e,"overflowY")},gC=function(e){return Jy(e,"overflowX")},j1=function(e,n){var r=n.ownerDocument,i=n;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var a=Zy(e,i);if(a){var l=ev(e,i),u=l[1],d=l[2];if(u>d)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},yC=function(e){var n=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[n,r,i]},vC=function(e){var n=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[n,r,i]},Zy=function(e,n){return e==="v"?mC(n):gC(n)},ev=function(e,n){return e==="v"?yC(n):vC(n)},xC=function(e,n){return e==="h"&&n==="rtl"?-1:1},wC=function(e,n,r,i,a){var l=xC(e,window.getComputedStyle(n).direction),u=l*i,d=r.target,h=n.contains(d),m=!1,y=u>0,x=0,b=0;do{if(!d)break;var C=ev(e,d),N=C[0],E=C[1],j=C[2],A=E-j-l*N;(N||A)&&Zy(e,d)&&(x+=A,b+=N);var k=d.parentNode;d=k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE?k.host:k}while(!h&&d!==document.body||h&&(n.contains(d)||n===d));return(y&&Math.abs(x)<1||!y&&Math.abs(b)<1)&&(m=!0),m},ul=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},E1=function(e){return[e.deltaX,e.deltaY]},N1=function(e){return e&&"current"in e?e.current:e},bC=function(e,n){return e[0]===n[0]&&e[1]===n[1]},SC=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
-`)},LS=0,Jo=[];function FS(e){var n=y.useRef([]),o=y.useRef([0,0]),i=y.useRef(),a=y.useState(LS++)[0],l=y.useState(yv)[0],u=y.useRef(e);y.useEffect(function(){u.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var k=sS([e.lockRef.current],(e.shards||[]).map(o1)).filter(Boolean);return k.forEach(function(j){return j.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),k.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var f=y.useCallback(function(k,j){if("touches"in k&&k.touches.length===2||k.type==="wheel"&&k.ctrlKey)return!u.current.allowPinchZoom;var M=el(k),E=o.current,R="deltaX"in k?k.deltaX:E[0]-M[0],z="deltaY"in k?k.deltaY:E[1]-M[1],L,A=k.target,D=Math.abs(R)>Math.abs(z)?"h":"v";if("touches"in k&&D==="h"&&A.type==="range")return!1;var F=window.getSelection(),W=F&&F.anchorNode,J=W?W===A||W.contains(A):!1;if(J)return!1;var oe=n1(D,A);if(!oe)return!0;if(oe?L=D:(L=D==="v"?"h":"v",oe=n1(D,A)),!oe)return!1;if(!i.current&&"changedTouches"in k&&(R||z)&&(i.current=L),!L)return!0;var B=i.current||L;return _S(B,j,k,B==="h"?R:z)},[]),h=y.useCallback(function(k){var j=k;if(!(!Jo.length||Jo[Jo.length-1]!==l)){var M="deltaY"in j?r1(j):el(j),E=n.current.filter(function(L){return L.name===j.type&&(L.target===j.target||j.target===L.shadowParent)&&DS(L.delta,M)})[0];if(E&&E.should){j.cancelable&&j.preventDefault();return}if(!E){var R=(u.current.shards||[]).map(o1).filter(Boolean).filter(function(L){return L.contains(j.target)}),z=R.length>0?f(j,R[0]):!u.current.noIsolation;z&&j.cancelable&&j.preventDefault()}}},[]),m=y.useCallback(function(k,j,M,E){var R={name:k,delta:j,target:M,should:E,shadowParent:$S(M)};n.current.push(R),setTimeout(function(){n.current=n.current.filter(function(z){return z!==R})},1)},[]),v=y.useCallback(function(k){o.current=el(k),i.current=void 0},[]),x=y.useCallback(function(k){m(k.type,r1(k),k.target,f(k,e.lockRef.current))},[]),b=y.useCallback(function(k){m(k.type,el(k),k.target,f(k,e.lockRef.current))},[]);y.useEffect(function(){return Jo.push(l),e.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:b}),document.addEventListener("wheel",h,Zo),document.addEventListener("touchmove",h,Zo),document.addEventListener("touchstart",v,Zo),function(){Jo=Jo.filter(function(k){return k!==l}),document.removeEventListener("wheel",h,Zo),document.removeEventListener("touchmove",h,Zo),document.removeEventListener("touchstart",v,Zo)}},[]);var C=e.removeScrollBar,N=e.inert;return y.createElement(y.Fragment,null,N?y.createElement(l,{styles:TS(a)}):null,C?y.createElement(MS,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function $S(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const HS=mS(vv,FS);var Fd=y.forwardRef(function(e,n){return y.createElement(Fl,On({},e,{ref:n,sideCar:HS}))});Fd.classNames=Fl.classNames;var $l="Popover",[Sv]=ko($l,[rv]),Ps=rv(),[VS,Gr]=Sv($l),Cv=e=>{const{__scopePopover:n,children:o,open:i,defaultOpen:a,onOpenChange:l,modal:u=!1}=e,f=Ps(n),h=y.useRef(null),[m,v]=y.useState(!1),[x,b]=Ms({prop:i,defaultProp:a??!1,onChange:l,caller:$l});return w.jsx(J8,{...f,children:w.jsx(VS,{scope:n,contentId:ln(),triggerRef:h,open:x,onOpenChange:b,onOpenToggle:y.useCallback(()=>b(C=>!C),[b]),hasCustomAnchor:m,onCustomAnchorAdd:y.useCallback(()=>v(!0),[]),onCustomAnchorRemove:y.useCallback(()=>v(!1),[]),modal:u,children:o})})};Cv.displayName=$l;var kv="PopoverAnchor",WS=y.forwardRef((e,n)=>{const{__scopePopover:o,...i}=e,a=Gr(kv,o),l=Ps(o),{onCustomAnchorAdd:u,onCustomAnchorRemove:f}=a;return y.useEffect(()=>(u(),()=>f()),[u,f]),w.jsx(dv,{...l,...i,ref:n})});WS.displayName=kv;var jv="PopoverTrigger",Ev=y.forwardRef((e,n)=>{const{__scopePopover:o,...i}=e,a=Gr(jv,o),l=Ps(o),u=nt(n,a.triggerRef),f=w.jsx(Ye.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Rv(a.open),...i,ref:u,onClick:Je(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?f:w.jsx(dv,{asChild:!0,...l,children:f})});Ev.displayName=jv;var $d="PopoverPortal",[BS,US]=Sv($d,{forceMount:void 0}),Nv=e=>{const{__scopePopover:n,forceMount:o,children:i,container:a}=e,l=Gr($d,n);return w.jsx(BS,{scope:n,forceMount:o,children:w.jsx(Cn,{present:o||l.open,children:w.jsx(Ld,{asChild:!0,container:a,children:i})})})};Nv.displayName=$d;var fi="PopoverContent",Mv=y.forwardRef((e,n)=>{const o=US(fi,e.__scopePopover),{forceMount:i=o.forceMount,...a}=e,l=Gr(fi,e.__scopePopover);return w.jsx(Cn,{present:i||l.open,children:l.modal?w.jsx(XS,{...a,ref:n}):w.jsx(GS,{...a,ref:n})})});Mv.displayName=fi;var YS=ws("PopoverContent.RemoveScroll"),XS=y.forwardRef((e,n)=>{const o=Gr(fi,e.__scopePopover),i=y.useRef(null),a=nt(n,i),l=y.useRef(!1);return y.useEffect(()=>{const u=i.current;if(u)return hv(u)},[]),w.jsx(Fd,{as:YS,allowPinchZoom:!0,children:w.jsx(Av,{...e,ref:a,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Je(e.onCloseAutoFocus,u=>{var f;u.preventDefault(),l.current||(f=o.triggerRef.current)==null||f.focus()}),onPointerDownOutside:Je(e.onPointerDownOutside,u=>{const f=u.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0,m=f.button===2||h;l.current=m},{checkForDefaultPrevented:!1}),onFocusOutside:Je(e.onFocusOutside,u=>u.preventDefault(),{checkForDefaultPrevented:!1})})})}),GS=y.forwardRef((e,n)=>{const o=Gr(fi,e.__scopePopover),i=y.useRef(!1),a=y.useRef(!1);return w.jsx(Av,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var u,f;(u=e.onCloseAutoFocus)==null||u.call(e,l),l.defaultPrevented||(i.current||(f=o.triggerRef.current)==null||f.focus(),l.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:l=>{var u,f;(u=e.onInteractOutside)==null||u.call(e,l),l.defaultPrevented||(i.current=!0,l.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const h=l.target;(f=o.triggerRef.current)!=null&&f.contains(h)&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&a.current&&l.preventDefault()}})}),Av=y.forwardRef((e,n)=>{const{__scopePopover:o,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:l,disableOutsidePointerEvents:u,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:m,onInteractOutside:v,...x}=e,b=Gr(fi,o),C=Ps(o);return V2(),w.jsx(Ad,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:l,children:w.jsx(Md,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:v,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:m,onDismiss:()=>b.onOpenChange(!1),children:w.jsx(eS,{"data-state":Rv(b.open),role:"dialog",id:b.contentId,...C,...x,ref:n,style:{...x.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Pv="PopoverClose",KS=y.forwardRef((e,n)=>{const{__scopePopover:o,...i}=e,a=Gr(Pv,o);return w.jsx(Ye.button,{type:"button",...i,ref:n,onClick:Je(e.onClick,()=>a.onOpenChange(!1))})});KS.displayName=Pv;var qS="PopoverArrow",QS=y.forwardRef((e,n)=>{const{__scopePopover:o,...i}=e,a=Ps(o);return w.jsx(tS,{...a,...i,ref:n})});QS.displayName=qS;function Rv(e){return e?"open":"closed"}var ZS=Cv,JS=Ev,eC=Nv,Iv=Mv;const zv=ZS,Ov=JS,Hd=y.forwardRef(({className:e,align:n="center",sideOffset:o=4,portal:i=!0,...a},l)=>{const u=w.jsx(Iv,{ref:l,align:n,sideOffset:o,className:Se("z-[100] w-72 rounded-md border border-border_primary bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a});return i?w.jsx(eC,{children:u}):u});Hd.displayName=Iv.displayName;var i1=1,tC=.9,nC=.8,rC=.17,tf=.1,nf=.999,oC=.9999,iC=.99,sC=/[\\\/_+.#"@\[\(\{&]/,aC=/[\\\/_+.#"@\[\(\{&]/g,lC=/[\s-]/,_v=/[\s-]/g;function Rf(e,n,o,i,a,l,u){if(l===n.length)return a===e.length?i1:iC;var f=`${a},${l}`;if(u[f]!==void 0)return u[f];for(var h=i.charAt(l),m=o.indexOf(h,a),v=0,x,b,C,N;m>=0;)x=Rf(e,n,o,i,m+1,l+1,u),x>v&&(m===a?x*=i1:sC.test(e.charAt(m-1))?(x*=nC,C=e.slice(a,m-1).match(aC),C&&a>0&&(x*=Math.pow(nf,C.length))):lC.test(e.charAt(m-1))?(x*=tC,N=e.slice(a,m-1).match(_v),N&&a>0&&(x*=Math.pow(nf,N.length))):(x*=rC,a>0&&(x*=Math.pow(nf,m-a))),e.charAt(m)!==n.charAt(l)&&(x*=oC)),(xx&&(x=b*tf)),x>v&&(v=x),m=o.indexOf(h,m+1);return u[f]=v,v}function s1(e){return e.toLowerCase().replace(_v," ")}function cC(e,n,o){return e=o&&o.length>0?`${e+" "+o.join(" ")}`:e,Rf(e,n,s1(e),s1(n),0,0,{})}var Hl="Dialog",[Dv]=ko(Hl),[uC,jn]=Dv(Hl),Tv=e=>{const{__scopeDialog:n,children:o,open:i,defaultOpen:a,onOpenChange:l,modal:u=!0}=e,f=y.useRef(null),h=y.useRef(null),[m,v]=Ms({prop:i,defaultProp:a??!1,onChange:l,caller:Hl});return w.jsx(uC,{scope:n,triggerRef:f,contentRef:h,contentId:ln(),titleId:ln(),descriptionId:ln(),open:m,onOpenChange:v,onOpenToggle:y.useCallback(()=>v(x=>!x),[v]),modal:u,children:o})};Tv.displayName=Hl;var Lv="DialogTrigger",fC=y.forwardRef((e,n)=>{const{__scopeDialog:o,...i}=e,a=jn(Lv,o),l=nt(n,a.triggerRef);return w.jsx(Ye.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Bd(a.open),...i,ref:l,onClick:Je(e.onClick,a.onOpenToggle)})});fC.displayName=Lv;var Vd="DialogPortal",[dC,Fv]=Dv(Vd,{forceMount:void 0}),$v=e=>{const{__scopeDialog:n,forceMount:o,children:i,container:a}=e,l=jn(Vd,n);return w.jsx(dC,{scope:n,forceMount:o,children:y.Children.map(i,u=>w.jsx(Cn,{present:o||l.open,children:w.jsx(Ld,{asChild:!0,container:a,children:u})}))})};$v.displayName=Vd;var Sl="DialogOverlay",Hv=y.forwardRef((e,n)=>{const o=Fv(Sl,e.__scopeDialog),{forceMount:i=o.forceMount,...a}=e,l=jn(Sl,e.__scopeDialog);return l.modal?w.jsx(Cn,{present:i||l.open,children:w.jsx(hC,{...a,ref:n})}):null});Hv.displayName=Sl;var pC=ws("DialogOverlay.RemoveScroll"),hC=y.forwardRef((e,n)=>{const{__scopeDialog:o,...i}=e,a=jn(Sl,o);return w.jsx(Fd,{as:pC,allowPinchZoom:!0,shards:[a.contentRef],children:w.jsx(Ye.div,{"data-state":Bd(a.open),...i,ref:n,style:{pointerEvents:"auto",...i.style}})})}),wo="DialogContent",Vv=y.forwardRef((e,n)=>{const o=Fv(wo,e.__scopeDialog),{forceMount:i=o.forceMount,...a}=e,l=jn(wo,e.__scopeDialog);return w.jsx(Cn,{present:i||l.open,children:l.modal?w.jsx(mC,{...a,ref:n}):w.jsx(gC,{...a,ref:n})})});Vv.displayName=wo;var mC=y.forwardRef((e,n)=>{const o=jn(wo,e.__scopeDialog),i=y.useRef(null),a=nt(n,o.contentRef,i);return y.useEffect(()=>{const l=i.current;if(l)return hv(l)},[]),w.jsx(Wv,{...e,ref:a,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Je(e.onCloseAutoFocus,l=>{var u;l.preventDefault(),(u=o.triggerRef.current)==null||u.focus()}),onPointerDownOutside:Je(e.onPointerDownOutside,l=>{const u=l.detail.originalEvent,f=u.button===0&&u.ctrlKey===!0;(u.button===2||f)&&l.preventDefault()}),onFocusOutside:Je(e.onFocusOutside,l=>l.preventDefault())})}),gC=y.forwardRef((e,n)=>{const o=jn(wo,e.__scopeDialog),i=y.useRef(!1),a=y.useRef(!1);return w.jsx(Wv,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var u,f;(u=e.onCloseAutoFocus)==null||u.call(e,l),l.defaultPrevented||(i.current||(f=o.triggerRef.current)==null||f.focus(),l.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:l=>{var u,f;(u=e.onInteractOutside)==null||u.call(e,l),l.defaultPrevented||(i.current=!0,l.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const h=l.target;(f=o.triggerRef.current)!=null&&f.contains(h)&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&a.current&&l.preventDefault()}})}),Wv=y.forwardRef((e,n)=>{const{__scopeDialog:o,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:l,...u}=e,f=jn(wo,o),h=y.useRef(null),m=nt(n,h);return V2(),w.jsxs(w.Fragment,{children:[w.jsx(Ad,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:l,children:w.jsx(Md,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":Bd(f.open),...u,ref:m,onDismiss:()=>f.onOpenChange(!1)})}),w.jsxs(w.Fragment,{children:[w.jsx(vC,{titleId:f.titleId}),w.jsx(xC,{contentRef:h,descriptionId:f.descriptionId})]})]})}),Wd="DialogTitle",Bv=y.forwardRef((e,n)=>{const{__scopeDialog:o,...i}=e,a=jn(Wd,o);return w.jsx(Ye.h2,{id:a.titleId,...i,ref:n})});Bv.displayName=Wd;var Uv="DialogDescription",Yv=y.forwardRef((e,n)=>{const{__scopeDialog:o,...i}=e,a=jn(Uv,o);return w.jsx(Ye.p,{id:a.descriptionId,...i,ref:n})});Yv.displayName=Uv;var Xv="DialogClose",Gv=y.forwardRef((e,n)=>{const{__scopeDialog:o,...i}=e,a=jn(Xv,o);return w.jsx(Ye.button,{type:"button",...i,ref:n,onClick:Je(e.onClick,()=>a.onOpenChange(!1))})});Gv.displayName=Xv;function Bd(e){return e?"open":"closed"}var Kv="DialogTitleWarning",[Wj,qv]=bb(Kv,{contentName:wo,titleName:Wd,docsSlug:"dialog"}),vC=({titleId:e})=>{const n=qv(Kv),o=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
+`)},CC=0,li=[];function kC(e){var n=v.useRef([]),r=v.useRef([0,0]),i=v.useRef(),a=v.useState(CC++)[0],l=v.useState(Qy)[0],u=v.useRef(e);v.useEffect(function(){u.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var E=U8([e.lockRef.current],(e.shards||[]).map(N1)).filter(Boolean);return E.forEach(function(j){return j.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),E.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var d=v.useCallback(function(E,j){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!u.current.allowPinchZoom;var A=ul(E),k=r.current,M="deltaX"in E?E.deltaX:k[0]-A[0],P="deltaY"in E?E.deltaY:k[1]-A[1],L,H=E.target,_=Math.abs(M)>Math.abs(P)?"h":"v";if("touches"in E&&_==="h"&&H.type==="range")return!1;var F=window.getSelection(),W=F&&F.anchorNode,Z=W?W===H||W.contains(H):!1;if(Z)return!1;var ie=j1(_,H);if(!ie)return!0;if(ie?L=_:(L=_==="v"?"h":"v",ie=j1(_,H)),!ie)return!1;if(!i.current&&"changedTouches"in E&&(M||P)&&(i.current=L),!L)return!0;var U=i.current||L;return wC(U,j,E,U==="h"?M:P)},[]),h=v.useCallback(function(E){var j=E;if(!(!li.length||li[li.length-1]!==l)){var A="deltaY"in j?E1(j):ul(j),k=n.current.filter(function(L){return L.name===j.type&&(L.target===j.target||j.target===L.shadowParent)&&bC(L.delta,A)})[0];if(k&&k.should){j.cancelable&&j.preventDefault();return}if(!k){var M=(u.current.shards||[]).map(N1).filter(Boolean).filter(function(L){return L.contains(j.target)}),P=M.length>0?d(j,M[0]):!u.current.noIsolation;P&&j.cancelable&&j.preventDefault()}}},[]),m=v.useCallback(function(E,j,A,k){var M={name:E,delta:j,target:A,should:k,shadowParent:jC(A)};n.current.push(M),setTimeout(function(){n.current=n.current.filter(function(P){return P!==M})},1)},[]),y=v.useCallback(function(E){r.current=ul(E),i.current=void 0},[]),x=v.useCallback(function(E){m(E.type,E1(E),E.target,d(E,e.lockRef.current))},[]),b=v.useCallback(function(E){m(E.type,ul(E),E.target,d(E,e.lockRef.current))},[]);v.useEffect(function(){return li.push(l),e.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:b}),document.addEventListener("wheel",h,ai),document.addEventListener("touchmove",h,ai),document.addEventListener("touchstart",y,ai),function(){li=li.filter(function(E){return E!==l}),document.removeEventListener("wheel",h,ai),document.removeEventListener("touchmove",h,ai),document.removeEventListener("touchstart",y,ai)}},[]);var C=e.removeScrollBar,N=e.inert;return v.createElement(v.Fragment,null,N?v.createElement(l,{styles:SC(a)}):null,C?v.createElement(pC,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function jC(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const EC=eC(qy,kC);var n0=v.forwardRef(function(e,n){return v.createElement(Ql,Fn({},e,{ref:n,sideCar:EC}))});n0.classNames=Ql.classNames;var Jl="Popover",[tv]=Io(Jl,[_y]),Hs=_y(),[NC,Zr]=tv(Jl),nv=e=>{const{__scopePopover:n,children:r,open:i,defaultOpen:a,onOpenChange:l,modal:u=!1}=e,d=Hs(n),h=v.useRef(null),[m,y]=v.useState(!1),[x,b]=Fs({prop:i,defaultProp:a??!1,onChange:l,caller:Jl});return w.jsx(L8,{...d,children:w.jsx(NC,{scope:n,contentId:fn(),triggerRef:h,open:x,onOpenChange:b,onOpenToggle:v.useCallback(()=>b(C=>!C),[b]),hasCustomAnchor:m,onCustomAnchorAdd:v.useCallback(()=>y(!0),[]),onCustomAnchorRemove:v.useCallback(()=>y(!1),[]),modal:u,children:r})})};nv.displayName=Jl;var rv="PopoverAnchor",MC=v.forwardRef((e,n)=>{const{__scopePopover:r,...i}=e,a=Zr(rv,r),l=Hs(r),{onCustomAnchorAdd:u,onCustomAnchorRemove:d}=a;return v.useEffect(()=>(u(),()=>d()),[u,d]),w.jsx(Uy,{...l,...i,ref:n})});MC.displayName=rv;var ov="PopoverTrigger",iv=v.forwardRef((e,n)=>{const{__scopePopover:r,...i}=e,a=Zr(ov,r),l=Hs(r),u=rt(n,a.triggerRef),d=w.jsx(Xe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":uv(a.open),...i,ref:u,onClick:et(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?d:w.jsx(Uy,{asChild:!0,...l,children:d})});iv.displayName=ov;var r0="PopoverPortal",[AC,PC]=tv(r0,{forceMount:void 0}),sv=e=>{const{__scopePopover:n,forceMount:r,children:i,container:a}=e,l=Zr(r0,n);return w.jsx(AC,{scope:n,forceMount:r,children:w.jsx(Nn,{present:r||l.open,children:w.jsx(t0,{asChild:!0,container:a,children:i})})})};sv.displayName=r0;var Si="PopoverContent",av=v.forwardRef((e,n)=>{const r=PC(Si,e.__scopePopover),{forceMount:i=r.forceMount,...a}=e,l=Zr(Si,e.__scopePopover);return w.jsx(Nn,{present:i||l.open,children:l.modal?w.jsx(IC,{...a,ref:n}):w.jsx(zC,{...a,ref:n})})});av.displayName=Si;var RC=Is("PopoverContent.RemoveScroll"),IC=v.forwardRef((e,n)=>{const r=Zr(Si,e.__scopePopover),i=v.useRef(null),a=rt(n,i),l=v.useRef(!1);return v.useEffect(()=>{const u=i.current;if(u)return Xy(u)},[]),w.jsx(n0,{as:RC,allowPinchZoom:!0,children:w.jsx(lv,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:et(e.onCloseAutoFocus,u=>{var d;u.preventDefault(),l.current||(d=r.triggerRef.current)==null||d.focus()}),onPointerDownOutside:et(e.onPointerDownOutside,u=>{const d=u.detail.originalEvent,h=d.button===0&&d.ctrlKey===!0,m=d.button===2||h;l.current=m},{checkForDefaultPrevented:!1}),onFocusOutside:et(e.onFocusOutside,u=>u.preventDefault(),{checkForDefaultPrevented:!1})})})}),zC=v.forwardRef((e,n)=>{const r=Zr(Si,e.__scopePopover),i=v.useRef(!1),a=v.useRef(!1);return w.jsx(lv,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var u,d;(u=e.onCloseAutoFocus)==null||u.call(e,l),l.defaultPrevented||(i.current||(d=r.triggerRef.current)==null||d.focus(),l.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:l=>{var u,d;(u=e.onInteractOutside)==null||u.call(e,l),l.defaultPrevented||(i.current=!0,l.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const h=l.target;(d=r.triggerRef.current)!=null&&d.contains(h)&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&a.current&&l.preventDefault()}})}),lv=v.forwardRef((e,n)=>{const{__scopePopover:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:l,disableOutsidePointerEvents:u,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:m,onInteractOutside:y,...x}=e,b=Zr(Si,r),C=Hs(r);return by(),w.jsx(Yf,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:l,children:w.jsx(Uf,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:y,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:m,onDismiss:()=>b.onOpenChange(!1),children:w.jsx(F8,{"data-state":uv(b.open),role:"dialog",id:b.contentId,...C,...x,ref:n,style:{...x.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),cv="PopoverClose",OC=v.forwardRef((e,n)=>{const{__scopePopover:r,...i}=e,a=Zr(cv,r);return w.jsx(Xe.button,{type:"button",...i,ref:n,onClick:et(e.onClick,()=>a.onOpenChange(!1))})});OC.displayName=cv;var TC="PopoverArrow",_C=v.forwardRef((e,n)=>{const{__scopePopover:r,...i}=e,a=Hs(r);return w.jsx($8,{...a,...i,ref:n})});_C.displayName=TC;function uv(e){return e?"open":"closed"}var DC=nv,LC=iv,FC=sv,dv=av;const fv=DC,pv=LC,o0=v.forwardRef(({className:e,align:n="center",sideOffset:r=4,portal:i=!0,...a},l)=>{const u=w.jsx(dv,{ref:l,align:n,sideOffset:r,className:Se("z-[100] w-72 rounded-md border border-border_primary bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a});return i?w.jsx(FC,{children:u}):u});o0.displayName=dv.displayName;var M1=1,$C=.9,HC=.8,VC=.17,md=.1,gd=.999,BC=.9999,WC=.99,UC=/[\\\/_+.#"@\[\(\{&]/,YC=/[\\\/_+.#"@\[\(\{&]/g,XC=/[\s-]/,hv=/[\s-]/g;function Ud(e,n,r,i,a,l,u){if(l===n.length)return a===e.length?M1:WC;var d=`${a},${l}`;if(u[d]!==void 0)return u[d];for(var h=i.charAt(l),m=r.indexOf(h,a),y=0,x,b,C,N;m>=0;)x=Ud(e,n,r,i,m+1,l+1,u),x>y&&(m===a?x*=M1:UC.test(e.charAt(m-1))?(x*=HC,C=e.slice(a,m-1).match(YC),C&&a>0&&(x*=Math.pow(gd,C.length))):XC.test(e.charAt(m-1))?(x*=$C,N=e.slice(a,m-1).match(hv),N&&a>0&&(x*=Math.pow(gd,N.length))):(x*=VC,a>0&&(x*=Math.pow(gd,m-a))),e.charAt(m)!==n.charAt(l)&&(x*=BC)),(xx&&(x=b*md)),x>y&&(y=x),m=r.indexOf(h,m+1);return u[d]=y,y}function A1(e){return e.toLowerCase().replace(hv," ")}function GC(e,n,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,Ud(e,n,A1(e),A1(n),0,0,{})}var Zl="Dialog",[mv]=Io(Zl),[KC,An]=mv(Zl),gv=e=>{const{__scopeDialog:n,children:r,open:i,defaultOpen:a,onOpenChange:l,modal:u=!0}=e,d=v.useRef(null),h=v.useRef(null),[m,y]=Fs({prop:i,defaultProp:a??!1,onChange:l,caller:Zl});return w.jsx(KC,{scope:n,triggerRef:d,contentRef:h,contentId:fn(),titleId:fn(),descriptionId:fn(),open:m,onOpenChange:y,onOpenToggle:v.useCallback(()=>y(x=>!x),[y]),modal:u,children:r})};gv.displayName=Zl;var yv="DialogTrigger",qC=v.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,a=An(yv,r),l=rt(n,a.triggerRef);return w.jsx(Xe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":a0(a.open),...i,ref:l,onClick:et(e.onClick,a.onOpenToggle)})});qC.displayName=yv;var i0="DialogPortal",[QC,vv]=mv(i0,{forceMount:void 0}),xv=e=>{const{__scopeDialog:n,forceMount:r,children:i,container:a}=e,l=An(i0,n);return w.jsx(QC,{scope:n,forceMount:r,children:v.Children.map(i,u=>w.jsx(Nn,{present:r||l.open,children:w.jsx(t0,{asChild:!0,container:a,children:u})}))})};xv.displayName=i0;var Ol="DialogOverlay",wv=v.forwardRef((e,n)=>{const r=vv(Ol,e.__scopeDialog),{forceMount:i=r.forceMount,...a}=e,l=An(Ol,e.__scopeDialog);return l.modal?w.jsx(Nn,{present:i||l.open,children:w.jsx(ZC,{...a,ref:n})}):null});wv.displayName=Ol;var JC=Is("DialogOverlay.RemoveScroll"),ZC=v.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,a=An(Ol,r);return w.jsx(n0,{as:JC,allowPinchZoom:!0,shards:[a.contentRef],children:w.jsx(Xe.div,{"data-state":a0(a.open),...i,ref:n,style:{pointerEvents:"auto",...i.style}})})}),Mo="DialogContent",bv=v.forwardRef((e,n)=>{const r=vv(Mo,e.__scopeDialog),{forceMount:i=r.forceMount,...a}=e,l=An(Mo,e.__scopeDialog);return w.jsx(Nn,{present:i||l.open,children:l.modal?w.jsx(ek,{...a,ref:n}):w.jsx(tk,{...a,ref:n})})});bv.displayName=Mo;var ek=v.forwardRef((e,n)=>{const r=An(Mo,e.__scopeDialog),i=v.useRef(null),a=rt(n,r.contentRef,i);return v.useEffect(()=>{const l=i.current;if(l)return Xy(l)},[]),w.jsx(Sv,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:et(e.onCloseAutoFocus,l=>{var u;l.preventDefault(),(u=r.triggerRef.current)==null||u.focus()}),onPointerDownOutside:et(e.onPointerDownOutside,l=>{const u=l.detail.originalEvent,d=u.button===0&&u.ctrlKey===!0;(u.button===2||d)&&l.preventDefault()}),onFocusOutside:et(e.onFocusOutside,l=>l.preventDefault())})}),tk=v.forwardRef((e,n)=>{const r=An(Mo,e.__scopeDialog),i=v.useRef(!1),a=v.useRef(!1);return w.jsx(Sv,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var u,d;(u=e.onCloseAutoFocus)==null||u.call(e,l),l.defaultPrevented||(i.current||(d=r.triggerRef.current)==null||d.focus(),l.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:l=>{var u,d;(u=e.onInteractOutside)==null||u.call(e,l),l.defaultPrevented||(i.current=!0,l.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const h=l.target;(d=r.triggerRef.current)!=null&&d.contains(h)&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&a.current&&l.preventDefault()}})}),Sv=v.forwardRef((e,n)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:l,...u}=e,d=An(Mo,r),h=v.useRef(null),m=rt(n,h);return by(),w.jsxs(w.Fragment,{children:[w.jsx(Yf,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:l,children:w.jsx(Uf,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":a0(d.open),...u,ref:m,onDismiss:()=>d.onOpenChange(!1)})}),w.jsxs(w.Fragment,{children:[w.jsx(nk,{titleId:d.titleId}),w.jsx(ok,{contentRef:h,descriptionId:d.descriptionId})]})]})}),s0="DialogTitle",Cv=v.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,a=An(s0,r);return w.jsx(Xe.h2,{id:a.titleId,...i,ref:n})});Cv.displayName=s0;var kv="DialogDescription",jv=v.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,a=An(kv,r);return w.jsx(Xe.p,{id:a.descriptionId,...i,ref:n})});jv.displayName=kv;var Ev="DialogClose",Nv=v.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,a=An(Ev,r);return w.jsx(Xe.button,{type:"button",...i,ref:n,onClick:et(e.onClick,()=>a.onOpenChange(!1))})});Nv.displayName=Ev;function a0(e){return e?"open":"closed"}var Mv="DialogTitleWarning",[eN,Av]=s6(Mv,{contentName:Mo,titleName:s0,docsSlug:"dialog"}),nk=({titleId:e})=>{const n=Av(Mv),r=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
-For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return y.useEffect(()=>{e&&(document.getElementById(e)||console.error(o))},[o,e]),null},yC="DialogDescriptionWarning",xC=({contentRef:e,descriptionId:n})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${qv(yC).contentName}}.`;return y.useEffect(()=>{var i;const a=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");n&&a&&(document.getElementById(n)||console.warn(o))},[o,e,n]),null},wC=Tv,Qv=$v,Ud=Hv,Zv=Vv,Jv=Bv,ey=Yv,bC=Gv,ss='[cmdk-group=""]',rf='[cmdk-group-items=""]',SC='[cmdk-group-heading=""]',ty='[cmdk-item=""]',a1=`${ty}:not([aria-disabled="true"])`,If="cmdk-item-select",ei="data-value",CC=(e,n,o)=>cC(e,n,o),ny=y.createContext(void 0),Rs=()=>y.useContext(ny),ry=y.createContext(void 0),Yd=()=>y.useContext(ry),oy=y.createContext(void 0),iy=y.forwardRef((e,n)=>{let o=ti(()=>{var I,G;return{search:"",value:(G=(I=e.value)!=null?I:e.defaultValue)!=null?G:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),i=ti(()=>new Set),a=ti(()=>new Map),l=ti(()=>new Map),u=ti(()=>new Set),f=sy(e),{label:h,children:m,value:v,onValueChange:x,filter:b,shouldFilter:C,loop:N,disablePointerSelection:k=!1,vimBindings:j=!0,...M}=e,E=ln(),R=ln(),z=ln(),L=y.useRef(null),A=OC();bo(()=>{if(v!==void 0){let I=v.trim();o.current.value=I,D.emit()}},[v]),bo(()=>{A(6,de)},[]);let D=y.useMemo(()=>({subscribe:I=>(u.current.add(I),()=>u.current.delete(I)),snapshot:()=>o.current,setState:(I,G,ee)=>{var K,ne,se,he;if(!Object.is(o.current[I],G)){if(o.current[I]=G,I==="search")B(),J(),A(1,oe);else if(I==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let ce=document.getElementById(z);ce?ce.focus():(K=document.getElementById(E))==null||K.focus()}if(A(7,()=>{var ce;o.current.selectedItemId=(ce=ie())==null?void 0:ce.id,D.emit()}),ee||A(5,de),((ne=f.current)==null?void 0:ne.value)!==void 0){let ce=G??"";(he=(se=f.current).onValueChange)==null||he.call(se,ce);return}}D.emit()}},emit:()=>{u.current.forEach(I=>I())}}),[]),F=y.useMemo(()=>({value:(I,G,ee)=>{var K;G!==((K=l.current.get(I))==null?void 0:K.value)&&(l.current.set(I,{value:G,keywords:ee}),o.current.filtered.items.set(I,W(G,ee)),A(2,()=>{J(),D.emit()}))},item:(I,G)=>(i.current.add(I),G&&(a.current.has(G)?a.current.get(G).add(I):a.current.set(G,new Set([I]))),A(3,()=>{B(),J(),o.current.value||oe(),D.emit()}),()=>{l.current.delete(I),i.current.delete(I),o.current.filtered.items.delete(I);let ee=ie();A(4,()=>{B(),(ee==null?void 0:ee.getAttribute("id"))===I&&oe(),D.emit()})}),group:I=>(a.current.has(I)||a.current.set(I,new Set),()=>{l.current.delete(I),a.current.delete(I)}),filter:()=>f.current.shouldFilter,label:h||e["aria-label"],getDisablePointerSelection:()=>f.current.disablePointerSelection,listId:E,inputId:z,labelId:R,listInnerRef:L}),[]);function W(I,G){var ee,K;let ne=(K=(ee=f.current)==null?void 0:ee.filter)!=null?K:CC;return I?ne(I,o.current.search,G):0}function J(){if(!o.current.search||f.current.shouldFilter===!1)return;let I=o.current.filtered.items,G=[];o.current.filtered.groups.forEach(K=>{let ne=a.current.get(K),se=0;ne.forEach(he=>{let ce=I.get(he);se=Math.max(ce,se)}),G.push([K,se])});let ee=L.current;ue().sort((K,ne)=>{var se,he;let ce=K.getAttribute("id"),Ie=ne.getAttribute("id");return((se=I.get(Ie))!=null?se:0)-((he=I.get(ce))!=null?he:0)}).forEach(K=>{let ne=K.closest(rf);ne?ne.appendChild(K.parentElement===ne?K:K.closest(`${rf} > *`)):ee.appendChild(K.parentElement===ee?K:K.closest(`${rf} > *`))}),G.sort((K,ne)=>ne[1]-K[1]).forEach(K=>{var ne;let se=(ne=L.current)==null?void 0:ne.querySelector(`${ss}[${ei}="${encodeURIComponent(K[0])}"]`);se==null||se.parentElement.appendChild(se)})}function oe(){let I=ue().find(ee=>ee.getAttribute("aria-disabled")!=="true"),G=I==null?void 0:I.getAttribute(ei);D.setState("value",G||void 0)}function B(){var I,G,ee,K;if(!o.current.search||f.current.shouldFilter===!1){o.current.filtered.count=i.current.size;return}o.current.filtered.groups=new Set;let ne=0;for(let se of i.current){let he=(G=(I=l.current.get(se))==null?void 0:I.value)!=null?G:"",ce=(K=(ee=l.current.get(se))==null?void 0:ee.keywords)!=null?K:[],Ie=W(he,ce);o.current.filtered.items.set(se,Ie),Ie>0&&ne++}for(let[se,he]of a.current)for(let ce of he)if(o.current.filtered.items.get(ce)>0){o.current.filtered.groups.add(se);break}o.current.filtered.count=ne}function de(){var I,G,ee;let K=ie();K&&(((I=K.parentElement)==null?void 0:I.firstChild)===K&&((ee=(G=K.closest(ss))==null?void 0:G.querySelector(SC))==null||ee.scrollIntoView({block:"nearest"})),K.scrollIntoView({block:"nearest"}))}function ie(){var I;return(I=L.current)==null?void 0:I.querySelector(`${ty}[aria-selected="true"]`)}function ue(){var I;return Array.from(((I=L.current)==null?void 0:I.querySelectorAll(a1))||[])}function ae(I){let G=ue()[I];G&&D.setState("value",G.getAttribute(ei))}function fe(I){var G;let ee=ie(),K=ue(),ne=K.findIndex(he=>he===ee),se=K[ne+I];(G=f.current)!=null&&G.loop&&(se=ne+I<0?K[K.length-1]:ne+I===K.length?K[0]:K[ne+I]),se&&D.setState("value",se.getAttribute(ei))}function U(I){let G=ie(),ee=G==null?void 0:G.closest(ss),K;for(;ee&&!K;)ee=I>0?IC(ee,ss):zC(ee,ss),K=ee==null?void 0:ee.querySelector(a1);K?D.setState("value",K.getAttribute(ei)):fe(I)}let Q=()=>ae(ue().length-1),Z=I=>{I.preventDefault(),I.metaKey?Q():I.altKey?U(1):fe(1)},_=I=>{I.preventDefault(),I.metaKey?ae(0):I.altKey?U(-1):fe(-1)};return y.createElement(Sn.div,{ref:n,tabIndex:-1,...M,"cmdk-root":"",onKeyDown:I=>{var G;(G=M.onKeyDown)==null||G.call(M,I);let ee=I.nativeEvent.isComposing||I.keyCode===229;if(!(I.defaultPrevented||ee))switch(I.key){case"n":case"j":{j&&I.ctrlKey&&Z(I);break}case"ArrowDown":{Z(I);break}case"p":case"k":{j&&I.ctrlKey&&_(I);break}case"ArrowUp":{_(I);break}case"Home":{I.preventDefault(),ae(0);break}case"End":{I.preventDefault(),Q();break}case"Enter":{I.preventDefault();let K=ie();if(K){let ne=new Event(If);K.dispatchEvent(ne)}}}}},y.createElement("label",{"cmdk-label":"",htmlFor:F.inputId,id:F.labelId,style:DC},h),Vl(e,I=>y.createElement(ry.Provider,{value:D},y.createElement(ny.Provider,{value:F},I))))}),kC=y.forwardRef((e,n)=>{var o,i;let a=ln(),l=y.useRef(null),u=y.useContext(oy),f=Rs(),h=sy(e),m=(i=(o=h.current)==null?void 0:o.forceMount)!=null?i:u==null?void 0:u.forceMount;bo(()=>{if(!m)return f.item(a,u==null?void 0:u.id)},[m]);let v=ay(a,l,[e.value,e.children,l],e.keywords),x=Yd(),b=Br(A=>A.value&&A.value===v.current),C=Br(A=>m||f.filter()===!1?!0:A.search?A.filtered.items.get(a)>0:!0);y.useEffect(()=>{let A=l.current;if(!(!A||e.disabled))return A.addEventListener(If,N),()=>A.removeEventListener(If,N)},[C,e.onSelect,e.disabled]);function N(){var A,D;k(),(D=(A=h.current).onSelect)==null||D.call(A,v.current)}function k(){x.setState("value",v.current,!0)}if(!C)return null;let{disabled:j,value:M,onSelect:E,forceMount:R,keywords:z,...L}=e;return y.createElement(Sn.div,{ref:Hr(l,n),...L,id:a,"cmdk-item":"",role:"option","aria-disabled":!!j,"aria-selected":!!b,"data-disabled":!!j,"data-selected":!!b,onPointerMove:j||f.getDisablePointerSelection()?void 0:k,onClick:j?void 0:N},e.children)}),jC=y.forwardRef((e,n)=>{let{heading:o,children:i,forceMount:a,...l}=e,u=ln(),f=y.useRef(null),h=y.useRef(null),m=ln(),v=Rs(),x=Br(C=>a||v.filter()===!1?!0:C.search?C.filtered.groups.has(u):!0);bo(()=>v.group(u),[]),ay(u,f,[e.value,e.heading,h]);let b=y.useMemo(()=>({id:u,forceMount:a}),[a]);return y.createElement(Sn.div,{ref:Hr(f,n),...l,"cmdk-group":"",role:"presentation",hidden:x?void 0:!0},o&&y.createElement("div",{ref:h,"cmdk-group-heading":"","aria-hidden":!0,id:m},o),Vl(e,C=>y.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":o?m:void 0},y.createElement(oy.Provider,{value:b},C))))}),EC=y.forwardRef((e,n)=>{let{alwaysRender:o,...i}=e,a=y.useRef(null),l=Br(u=>!u.search);return!o&&!l?null:y.createElement(Sn.div,{ref:Hr(a,n),...i,"cmdk-separator":"",role:"separator"})}),NC=y.forwardRef((e,n)=>{let{onValueChange:o,...i}=e,a=e.value!=null,l=Yd(),u=Br(m=>m.search),f=Br(m=>m.selectedItemId),h=Rs();return y.useEffect(()=>{e.value!=null&&l.setState("search",e.value)},[e.value]),y.createElement(Sn.input,{ref:n,...i,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":h.listId,"aria-labelledby":h.labelId,"aria-activedescendant":f,id:h.inputId,type:"text",value:a?e.value:u,onChange:m=>{a||l.setState("search",m.target.value),o==null||o(m.target.value)}})}),MC=y.forwardRef((e,n)=>{let{children:o,label:i="Suggestions",...a}=e,l=y.useRef(null),u=y.useRef(null),f=Br(m=>m.selectedItemId),h=Rs();return y.useEffect(()=>{if(u.current&&l.current){let m=u.current,v=l.current,x,b=new ResizeObserver(()=>{x=requestAnimationFrame(()=>{let C=m.offsetHeight;v.style.setProperty("--cmdk-list-height",C.toFixed(1)+"px")})});return b.observe(m),()=>{cancelAnimationFrame(x),b.unobserve(m)}}},[]),y.createElement(Sn.div,{ref:Hr(l,n),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":f,"aria-label":i,id:h.listId},Vl(e,m=>y.createElement("div",{ref:Hr(u,h.listInnerRef),"cmdk-list-sizer":""},m)))}),AC=y.forwardRef((e,n)=>{let{open:o,onOpenChange:i,overlayClassName:a,contentClassName:l,container:u,...f}=e;return y.createElement(wC,{open:o,onOpenChange:i},y.createElement(Qv,{container:u},y.createElement(Ud,{"cmdk-overlay":"",className:a}),y.createElement(Zv,{"aria-label":e.label,"cmdk-dialog":"",className:l},y.createElement(iy,{ref:n,...f}))))}),PC=y.forwardRef((e,n)=>Br(o=>o.filtered.count===0)?y.createElement(Sn.div,{ref:n,...e,"cmdk-empty":"",role:"presentation"}):null),RC=y.forwardRef((e,n)=>{let{progress:o,children:i,label:a="Loading...",...l}=e;return y.createElement(Sn.div,{ref:n,...l,"cmdk-loading":"",role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},Vl(e,u=>y.createElement("div",{"aria-hidden":!0},u)))}),$t=Object.assign(iy,{List:MC,Item:kC,Input:NC,Group:jC,Separator:EC,Dialog:AC,Empty:PC,Loading:RC});function IC(e,n){let o=e.nextElementSibling;for(;o;){if(o.matches(n))return o;o=o.nextElementSibling}}function zC(e,n){let o=e.previousElementSibling;for(;o;){if(o.matches(n))return o;o=o.previousElementSibling}}function sy(e){let n=y.useRef(e);return bo(()=>{n.current=e}),n}var bo=typeof window>"u"?y.useEffect:y.useLayoutEffect;function ti(e){let n=y.useRef();return n.current===void 0&&(n.current=e()),n}function Br(e){let n=Yd(),o=()=>e(n.snapshot());return y.useSyncExternalStore(n.subscribe,o,o)}function ay(e,n,o,i=[]){let a=y.useRef(),l=Rs();return bo(()=>{var u;let f=(()=>{var m;for(let v of o){if(typeof v=="string")return v.trim();if(typeof v=="object"&&"current"in v)return v.current?(m=v.current.textContent)==null?void 0:m.trim():a.current}})(),h=i.map(m=>m.trim());l.value(e,f,h),(u=n.current)==null||u.setAttribute(ei,f),a.current=f}),a}var OC=()=>{let[e,n]=y.useState(),o=ti(()=>new Map);return bo(()=>{o.current.forEach(i=>i()),o.current=new Map},[e]),(i,a)=>{o.current.set(i,a),n({})}};function _C(e){let n=e.type;return typeof n=="function"?n(e.props):"render"in n?n.render(e.props):e}function Vl({asChild:e,children:n},o){return e&&y.isValidElement(n)?y.cloneElement(_C(n),{ref:n.ref},o(n.props.children)):o(n)}var DC={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Xd=y.forwardRef(({className:e,...n},o)=>w.jsx($t,{ref:o,className:Se("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...n}));Xd.displayName=$t.displayName;const Gd=y.forwardRef(({className:e,...n},o)=>w.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[w.jsx(ub,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),w.jsx($t.Input,{ref:o,className:Se("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...n})]}));Gd.displayName=$t.Input.displayName;const Kd=y.forwardRef(({className:e,...n},o)=>w.jsx($t.List,{ref:o,className:Se("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...n}));Kd.displayName=$t.List.displayName;const qd=y.forwardRef((e,n)=>w.jsx($t.Empty,{ref:n,className:"py-6 text-center text-sm",...e}));qd.displayName=$t.Empty.displayName;const Qd=y.forwardRef(({className:e,...n},o)=>w.jsx($t.Group,{ref:o,className:Se("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...n}));Qd.displayName=$t.Group.displayName;const TC=y.forwardRef(({className:e,...n},o)=>w.jsx($t.Separator,{ref:o,className:Se("-mx-1 h-px bg-border",e),...n}));TC.displayName=$t.Separator.displayName;const Cl=y.forwardRef(({className:e,...n},o)=>w.jsx($t.Item,{ref:o,className:Se("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground",e),...n}));Cl.displayName=$t.Item.displayName;const LC=Qv,FC=bC,ly=y.forwardRef(({className:e,...n},o)=>w.jsx(Ud,{ref:o,className:Se("fixed inset-0 z-50 bg-black/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n}));ly.displayName=Ud.displayName;const $C={bottom:"fixed inset-x-0 bottom-0 mt-24 h-auto max-h-[90vh] rounded-t-[10px] border-t border-x data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom",top:"fixed inset-x-0 top-0 mb-24 h-auto max-h-[90vh] rounded-b-[10px] border-b border-x data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top",right:"fixed inset-y-0 right-0 h-full w-full max-w-2xl rounded-l-[10px] border-l border-y data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right",left:"fixed inset-y-0 left-0 h-full w-full max-w-2xl rounded-r-[10px] border-r border-y data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left"},HC=y.forwardRef(({className:e,children:n,side:o="bottom",hideHandle:i=!1,...a},l)=>w.jsxs(LC,{children:[w.jsx(ly,{}),w.jsxs(Zv,{ref:l,className:Se("z-50 flex flex-col border-border bg-card shadow-2xl transition-transform duration-300","data-[state=open]:animate-in data-[state=closed]:animate-out",$C[o],e),...a,children:[o==="bottom"&&!i&&w.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted shrink-0"}),w.jsx("div",{className:Se("flex-1 overflow-y-auto",o==="bottom"?"p-6 pt-2":"p-0"),children:n}),w.jsxs(FC,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[w.jsx(i2,{className:"h-4 w-4"}),w.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));HC.displayName="MriDrawerContent";const VC=y.forwardRef(({className:e,...n},o)=>w.jsx(Jv,{ref:o,className:Se("text-lg font-semibold leading-none tracking-tight",e),...n}));VC.displayName=Jv.displayName;const WC=y.forwardRef(({className:e,...n},o)=>w.jsx(ey,{ref:o,className:Se("text-sm text-muted-foreground",e),...n}));WC.displayName=ey.displayName;function BC({options:e,value:n,onChange:o,placeholder:i,searchPlaceholder:a="Search...",emptyMessage:l="No results found.",className:u,disabled:f,isLoading:h=!1,error:m,portal:v=!0,size:x="default",clearable:b=!1,creatable:C=!1,createLabelPrefix:N="Create"}){const[k,j]=y.useState(!1),[M,E]=y.useState(""),R=e.find(L=>String(L.value)===String(n)),z=C&&M.trim()!==""&&!e.some(L=>String(L.label).toLowerCase()===M.toLowerCase());return w.jsxs(zv,{open:k,onOpenChange:j,children:[w.jsx(Ov,{asChild:!0,children:w.jsxs("div",{className:"w-full space-y-1",children:[w.jsxs(li,{variant:"outline",role:"combobox",disabled:f||h,isLoading:h,"aria-expanded":k,size:x,className:Se("w-full justify-between bg-background border-border hover:bg-muted hover:text-foreground text-foreground",m&&"border-destructive focus:ring-destructive",u),children:[w.jsx("span",{className:"truncate",children:R?R.label:w.jsx("span",{className:"text-muted-foreground font-normal",children:i??"Select..."})}),w.jsx(o2,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]}),typeof m=="string"&&w.jsx("p",{className:"text-[10px] font-medium text-destructive px-1 animate-in fade-in slide-in-from-top-1",children:m})]})}),w.jsx(Hd,{portal:v,className:"w-[--radix-popover-trigger-width] p-0 border-border bg-popover z-[100]",children:w.jsxs(Xd,{className:"bg-transparent text-popover-foreground",children:[w.jsx(Gd,{placeholder:a,className:"h-9",value:M,onValueChange:E}),w.jsx(qd,{children:z?w.jsxs("div",{className:"flex items-center gap-2 cursor-pointer hover:text-primary transition-colors px-4 py-2",onClick:()=>{o(M),j(!1),E("")},children:[w.jsx(Om,{className:"w-4 h-4"}),w.jsxs("span",{children:[N,' "',M,'"']})]}):w.jsx("span",{children:l})}),w.jsx(Kd,{className:"max-h-60 overflow-auto p-1 custom-scrollbar",onWheel:L=>L.stopPropagation(),children:w.jsxs(Qd,{children:[e.map(L=>w.jsxs(Cl,{value:`${String(L.label)} ${String(L.value)}`,onSelect:()=>{const A=String(L.value);b&&String(n)===A?o(""):o(A),j(!1),E("")},className:"aria-selected:bg-accent aria-selected:text-accent-foreground rounded-md cursor-pointer",children:[w.jsx(r2,{className:Se("mr-2 h-4 w-4 text-primary",String(n)===String(L.value)?"opacity-100":"opacity-0")}),w.jsx("span",{className:"truncate",children:L.label})]},L.value)),z&&w.jsxs(Cl,{value:M,onSelect:()=>{o(M),j(!1),E("")},className:"text-primary font-medium",children:[w.jsx(Om,{className:"mr-2 h-4 w-4"}),N,' "',M,'"']})]})})]})})]})}function UC({options:e,value:n,onChange:o,placeholder:i,searchPlaceholder:a="Search...",emptyMessage:l="No results found.",className:u,disabled:f,isLoading:h=!1,error:m,portal:v=!0,maxVisibleValues:x=3}){const[b,C]=y.useState(!1),N=y.useCallback(j=>{n.includes(j)?o(n.filter(M=>M!==j)):o([...n,j])},[n,o]),k=e.filter(j=>n.includes(j.value));return w.jsxs(zv,{open:b,onOpenChange:C,children:[w.jsx(Ov,{asChild:!0,children:w.jsxs("div",{className:"w-full space-y-1",children:[w.jsxs(li,{variant:"outline",role:"combobox",disabled:f||h,isLoading:h,"aria-expanded":b,className:Se("w-full justify-between bg-background border-border hover:bg-muted hover:text-foreground text-foreground min-h-[40px] h-auto py-2",m&&"border-destructive focus:ring-destructive",u),children:[w.jsx("div",{className:"flex flex-wrap gap-1 items-center max-w-[90%]",children:k.length>0?w.jsxs(w.Fragment,{children:[k.slice(0,x).map(j=>w.jsxs(zm,{variant:"secondary",className:"flex items-center gap-1 pr-1 bg-primary/10 text-primary border-primary/20 hover:bg-primary/20 transition-colors",children:[w.jsx("span",{className:"truncate max-w-[100px]",children:j.label}),w.jsx("button",{className:"ml-1 ring-offset-background rounded-full outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",onKeyDown:M=>{M.key==="Enter"&&N(j.value)},onMouseDown:M=>{M.preventDefault(),M.stopPropagation()},onClick:()=>N(j.value),children:w.jsx(i2,{className:"h-3 w-3 text-primary/60 hover:text-primary transition-colors"})})]},j.value)),k.length>x&&w.jsxs(zm,{variant:"secondary",className:"bg-muted text-muted-foreground border-border",children:["+",k.length-x]})]}):w.jsx("span",{className:"text-muted-foreground font-normal",children:i??"Select options..."})}),w.jsx(o2,{className:"h-4 w-4 shrink-0 opacity-50"})]}),typeof m=="string"&&w.jsx("p",{className:"text-[10px] font-medium text-destructive px-1 animate-in fade-in slide-in-from-top-1",children:m})]})}),w.jsx(Hd,{portal:v,className:"w-[--radix-popover-trigger-width] p-0 border-border bg-popover z-[100] shadow-2xl overflow-hidden rounded-xl",children:w.jsxs(Xd,{className:"bg-transparent text-popover-foreground",children:[w.jsx(Gd,{placeholder:a,className:"h-10 border-none focus:ring-0 bg-transparent"}),w.jsx(qd,{className:"py-6 text-sm text-center text-muted-foreground",children:l}),w.jsx(Kd,{className:"max-h-64 overflow-auto p-1.5 space-y-0.5 custom-scrollbar",onWheel:j=>j.stopPropagation(),children:w.jsx(Qd,{children:e.map(j=>w.jsx(Cl,{value:j.label,onSelect:()=>N(j.value),className:"aria-selected:bg-primary/10 aria-selected:text-primary rounded-lg cursor-pointer flex items-center justify-between py-2.5 px-3 transition-all active:scale-[0.98]",children:w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx("div",{className:Se("w-4 h-4 rounded border flex items-center justify-center transition-all duration-200",n.includes(j.value)?"bg-primary border-primary":"border-border bg-background"),children:n.includes(j.value)&&w.jsx(r2,{className:"h-3 w-3 text-primary-foreground stroke-[3px]"})}),w.jsx("span",{className:Se("text-sm font-medium",n.includes(j.value)?"text-primary":"text-foreground"),children:j.label})]})},j.value))})})]})})]})}function YC(e){return e.multiple===!0?w.jsx(UC,{...e}):w.jsx(BC,{...e})}var XC=(e,n,o,i,a,l,u,f)=>{let h=document.documentElement,m=["light","dark"];function v(C){(Array.isArray(e)?e:[e]).forEach(N=>{let k=N==="class",j=k&&l?a.map(M=>l[M]||M):a;k?(h.classList.remove(...j),h.classList.add(l&&l[C]?l[C]:C)):h.setAttribute(N,C)}),x(C)}function x(C){f&&m.includes(C)&&(h.style.colorScheme=C)}function b(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(i)v(i);else try{let C=localStorage.getItem(n)||o,N=u&&C==="system"?b():C;v(N)}catch{}};y.createContext(void 0);y.memo(({forcedTheme:e,storageKey:n,attribute:o,enableSystem:i,enableColorScheme:a,defaultTheme:l,value:u,themes:f,nonce:h,scriptProps:m})=>{let v=JSON.stringify([o,n,l,e,f,u,i,a]).slice(1,-1);return y.createElement("script",{...m,suppressHydrationWarning:!0,nonce:typeof window>"u"?h:"",dangerouslySetInnerHTML:{__html:`(${XC.toString()})(${v})`}})});Array.from({length:24},(e,n)=>n);Array.from({length:60},(e,n)=>n);const GC={default:"from-primary/10 to-primary/5 border-primary/20 text-primary",warning:"from-amber-500/10 to-amber-500/5 border-amber-500/20 text-amber-500",info:"from-blue-500/10 to-blue-500/5 border-blue-500/20 text-blue-500",success:"from-emerald-500/10 to-emerald-500/5 border-emerald-500/20 text-emerald-500",purple:"from-purple-500/10 to-purple-500/5 border-purple-500/20 text-purple-500",indigo:"from-indigo-500/10 to-indigo-500/5 border-indigo-500/20 text-indigo-500",orange:"from-orange-500/10 to-orange-500/5 border-orange-500/20 text-orange-500",destructive:"from-destructive/10 to-destructive/5 border-destructive/20 text-destructive"},KC=y.forwardRef(({title:e,value:n,icon:o,variant:i="default",trend:a,className:l,...u},f)=>w.jsxs("div",{ref:f,className:Se("p-6 rounded-2xl border bg-gradient-to-br transition-all hover:scale-[1.02] duration-300 group",GC[i],l),...u,children:[w.jsx("div",{className:"flex items-start justify-between mb-4",children:w.jsx("div",{className:"p-2.5 rounded-xl bg-background/50 border border-current/10 group-hover:border-current/20 transition-colors",children:o})}),w.jsxs("div",{className:"space-y-1",children:[w.jsx("p",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider",children:e}),w.jsx("h3",{className:"text-3xl font-black tracking-tight text-foreground tabular-nums",children:n}),a&&w.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:a})]})]}));KC.displayName="MriStatCard";var fs=function(){return fs=Object.assign||function(e){for(var n,o=1,i=arguments.length;o=0||(a[o]=e[o]);return a}function l1(e){var n=y.useRef(e),o=y.useRef(function(i){n.current&&n.current(i)});return n.current=e,o.current}var Cs=function(e,n,o){return n===void 0&&(n=0),o===void 0&&(o=1),e>o?o:e0:j.buttons>0)&&a.current?l(c1(a.current,j,f.current)):k(!1)},N=function(){return k(!1)};function k(j){var M=h.current,E=zf(a.current),R=j?E.addEventListener:E.removeEventListener;R(M?"touchmove":"mousemove",C),R(M?"touchend":"mouseup",N)}return[function(j){var M=j.nativeEvent,E=a.current;if(E&&(u1(M),!(function(z,L){return L&&!ds(z)})(M,h.current)&&E)){if(ds(M)){h.current=!0;var R=M.changedTouches||[];R.length&&(f.current=R[0].identifier)}E.focus(),l(c1(E,M,f.current)),k(!0)}},function(j){var M=j.which||j.keyCode;M<37||M>40||(j.preventDefault(),u({left:M===39?.05:M===37?-.05:0,top:M===40?.05:M===38?-.05:0}))},k]},[u,l]),v=m[0],x=m[1],b=m[2];return y.useEffect(function(){return b},[b]),ke.createElement("div",cy({},i,{onTouchStart:v,onMouseDown:v,className:"react-colorful__interactive",ref:a,onKeyDown:x,tabIndex:0,role:"slider"}))}),fy=function(e){return e.filter(Boolean).join(" ")},dy=function(e){var n=e.color,o=e.left,i=e.top,a=i===void 0?.5:i,l=fy(["react-colorful__pointer",e.className]);return ke.createElement("div",{className:l,style:{top:100*a+"%",left:100*o+"%"}},ke.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:n}}))},go=function(e,n,o){return n===void 0&&(n=0),o===void 0&&(o=Math.pow(10,n)),Math.round(o*e)/o},JC=function(e){var n=e.s,o=e.v,i=e.a,a=(200-n)*o/100;return{h:go(e.h),s:go(a>0&&a<200?n*o/100/(a<=100?a:200-a)*100:0),l:go(a/2),a:go(i,2)}},Of=function(e){var n=JC(e);return"hsl("+n.h+", "+n.s+"%, "+n.l+"%)"};ke.memo(function(e){var n=e.hue,o=e.onChange,i=fy(["react-colorful__hue",e.className]);return ke.createElement("div",{className:i},ke.createElement(uy,{onMove:function(a){o({h:360*a.left})},onKey:function(a){o({h:Cs(n+360*a.left,0,360)})},"aria-label":"Hue","aria-valuenow":go(n),"aria-valuemax":"360","aria-valuemin":"0"},ke.createElement(dy,{className:"react-colorful__hue-pointer",left:n/360,color:Of({h:n,s:100,v:100,a:1})})))});ke.memo(function(e){var n=e.hsva,o=e.onChange,i={backgroundColor:Of({h:n.h,s:100,v:100,a:1})};return ke.createElement("div",{className:"react-colorful__saturation",style:i},ke.createElement(uy,{onMove:function(a){o({s:100*a.left,v:100-100*a.top})},onKey:function(a){o({s:Cs(n.s+100*a.left,0,100),v:Cs(n.v-100*a.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+go(n.s)+"%, Brightness "+go(n.v)+"%"},ke.createElement(dy,{className:"react-colorful__saturation-pointer",top:1-n.v/100,left:n.s/100,color:Of(n)})))});var ek={grad:.9,turn:360,rad:360/(2*Math.PI)},rr=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},ut=function(e,n,o){return n===void 0&&(n=0),o===void 0&&(o=Math.pow(10,n)),Math.round(o*e)/o+0},sn=function(e,n,o){return n===void 0&&(n=0),o===void 0&&(o=1),e>o?o:e>n?e:n},py=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},f1=function(e){return{r:sn(e.r,0,255),g:sn(e.g,0,255),b:sn(e.b,0,255),a:sn(e.a)}},of=function(e){return{r:ut(e.r),g:ut(e.g),b:ut(e.b),a:ut(e.a,3)}},tk=/^#([0-9a-f]{3,8})$/i,tl=function(e){var n=e.toString(16);return n.length<2?"0"+n:n},hy=function(e){var n=e.r,o=e.g,i=e.b,a=e.a,l=Math.max(n,o,i),u=l-Math.min(n,o,i),f=u?l===n?(o-i)/u:l===o?2+(i-n)/u:4+(n-o)/u:0;return{h:60*(f<0?f+6:f),s:l?u/l*100:0,v:l/255*100,a}},my=function(e){var n=e.h,o=e.s,i=e.v,a=e.a;n=n/360*6,o/=100,i/=100;var l=Math.floor(n),u=i*(1-o),f=i*(1-(n-l)*o),h=i*(1-(1-n+l)*o),m=l%6;return{r:255*[i,f,u,u,h,i][m],g:255*[h,i,i,f,u,u][m],b:255*[u,u,h,i,i,f][m],a}},d1=function(e){return{h:py(e.h),s:sn(e.s,0,100),l:sn(e.l,0,100),a:sn(e.a)}},p1=function(e){return{h:ut(e.h),s:ut(e.s),l:ut(e.l),a:ut(e.a,3)}},h1=function(e){return my((o=(n=e).s,{h:n.h,s:(o*=((i=n.l)<50?i:100-i)/100)>0?2*o/(i+o)*100:0,v:i+o,a:n.a}));var n,o,i},ps=function(e){return{h:(n=hy(e)).h,s:(a=(200-(o=n.s))*(i=n.v)/100)>0&&a<200?o*i/100/(a<=100?a:200-a)*100:0,l:a/2,a:n.a};var n,o,i,a},nk=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,rk=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ok=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ik=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_f={string:[[function(e){var n=tk.exec(e);return n?(e=n[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?ut(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?ut(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var n=ok.exec(e)||ik.exec(e);return n?n[2]!==n[4]||n[4]!==n[6]?null:f1({r:Number(n[1])/(n[2]?100/255:1),g:Number(n[3])/(n[4]?100/255:1),b:Number(n[5])/(n[6]?100/255:1),a:n[7]===void 0?1:Number(n[7])/(n[8]?100:1)}):null},"rgb"],[function(e){var n=nk.exec(e)||rk.exec(e);if(!n)return null;var o,i,a=d1({h:(o=n[1],i=n[2],i===void 0&&(i="deg"),Number(o)*(ek[i]||1)),s:Number(n[3]),l:Number(n[4]),a:n[5]===void 0?1:Number(n[5])/(n[6]?100:1)});return h1(a)},"hsl"]],object:[[function(e){var n=e.r,o=e.g,i=e.b,a=e.a,l=a===void 0?1:a;return rr(n)&&rr(o)&&rr(i)?f1({r:Number(n),g:Number(o),b:Number(i),a:Number(l)}):null},"rgb"],[function(e){var n=e.h,o=e.s,i=e.l,a=e.a,l=a===void 0?1:a;if(!rr(n)||!rr(o)||!rr(i))return null;var u=d1({h:Number(n),s:Number(o),l:Number(i),a:Number(l)});return h1(u)},"hsl"],[function(e){var n=e.h,o=e.s,i=e.v,a=e.a,l=a===void 0?1:a;if(!rr(n)||!rr(o)||!rr(i))return null;var u=(function(f){return{h:py(f.h),s:sn(f.s,0,100),v:sn(f.v,0,100),a:sn(f.a)}})({h:Number(n),s:Number(o),v:Number(i),a:Number(l)});return my(u)},"hsv"]]},m1=function(e,n){for(var o=0;o=.5},e.prototype.toHex=function(){return n=of(this.rgba),o=n.r,i=n.g,a=n.b,u=(l=n.a)<1?tl(ut(255*l)):"","#"+tl(o)+tl(i)+tl(a)+u;var n,o,i,a,l,u},e.prototype.toRgb=function(){return of(this.rgba)},e.prototype.toRgbString=function(){return n=of(this.rgba),o=n.r,i=n.g,a=n.b,(l=n.a)<1?"rgba("+o+", "+i+", "+a+", "+l+")":"rgb("+o+", "+i+", "+a+")";var n,o,i,a,l},e.prototype.toHsl=function(){return p1(ps(this.rgba))},e.prototype.toHslString=function(){return n=p1(ps(this.rgba)),o=n.h,i=n.s,a=n.l,(l=n.a)<1?"hsla("+o+", "+i+"%, "+a+"%, "+l+")":"hsl("+o+", "+i+"%, "+a+"%)";var n,o,i,a,l},e.prototype.toHsv=function(){return n=hy(this.rgba),{h:ut(n.h),s:ut(n.s),v:ut(n.v),a:ut(n.a,3)};var n},e.prototype.invert=function(){return or({r:255-(n=this.rgba).r,g:255-n.g,b:255-n.b,a:n.a});var n},e.prototype.saturate=function(n){return n===void 0&&(n=.1),or(sf(this.rgba,n))},e.prototype.desaturate=function(n){return n===void 0&&(n=.1),or(sf(this.rgba,-n))},e.prototype.grayscale=function(){return or(sf(this.rgba,-1))},e.prototype.lighten=function(n){return n===void 0&&(n=.1),or(g1(this.rgba,n))},e.prototype.darken=function(n){return n===void 0&&(n=.1),or(g1(this.rgba,-n))},e.prototype.rotate=function(n){return n===void 0&&(n=15),this.hue(this.hue()+n)},e.prototype.alpha=function(n){return typeof n=="number"?or({r:(o=this.rgba).r,g:o.g,b:o.b,a:n}):ut(this.rgba.a,3);var o},e.prototype.hue=function(n){var o=ps(this.rgba);return typeof n=="number"?or({h:n,s:o.s,l:o.l,a:o.a}):ut(o.h)},e.prototype.isEqual=function(n){return this.toHex()===or(n).toHex()},e})(),or=function(e){return e instanceof Df?e:new Df(e)},v1=[],ak=function(e){e.forEach(function(n){v1.indexOf(n)<0&&(n(Df,_f),v1.push(n))})};function lk(e,n){var o={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},i={};for(var a in o)i[o[a]]=a;var l={};e.prototype.toName=function(u){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var f,h,m=i[this.toHex()];if(m)return m;if(u!=null&&u.closest){var v=this.toRgb(),x=1/0,b="black";if(!l.length)for(var C in o)l[C]=new e(o[C]).toRgb();for(var N in o){var k=(f=v,h=l[N],Math.pow(f.r-h.r,2)+Math.pow(f.g-h.g,2)+Math.pow(f.b-h.b,2));kw.jsx("div",{className:"relative w-full overflow-auto",children:w.jsx("table",{ref:o,className:Se("w-full caption-bottom text-sm",e),...n})}));ck.displayName="MriTable";const uk=y.forwardRef(({className:e,...n},o)=>w.jsx("thead",{ref:o,className:Se("[&_tr]:border-b",e),...n}));uk.displayName="MriTableHeader";const fk=y.forwardRef(({className:e,...n},o)=>w.jsx("tbody",{ref:o,className:Se("[&_tr:last-child]:border-0",e),...n}));fk.displayName="MriTableBody";const dk=y.forwardRef(({className:e,...n},o)=>w.jsx("tfoot",{ref:o,className:Se("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...n}));dk.displayName="MriTableFooter";const pk=y.forwardRef(({className:e,...n},o)=>w.jsx("tr",{ref:o,className:Se("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...n}));pk.displayName="MriTableRow";const hk=y.forwardRef(({className:e,...n},o)=>w.jsx("th",{ref:o,className:Se("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[0.5px]",e),...n}));hk.displayName="MriTableHead";const mk=y.forwardRef(({className:e,...n},o)=>w.jsx("td",{ref:o,className:Se("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[0.5px]",e),...n}));mk.displayName="MriTableCell";const gk=y.forwardRef(({className:e,...n},o)=>w.jsx("caption",{ref:o,className:Se("mt-4 text-sm text-muted-foreground",e),...n}));gk.displayName="MriTableCaption";function Ee(e,n,o){const i=[];return e&&i.push(`drop-shadow(0px 0px ${e}px ${n})`),o!==100&&i.push(`contrast(${o}%)`),i.join(" ")}function qt({icon:e,cx:n,cy:o,scaling:i,color:a,translateX:l=0,translateY:u=0,filter:f}){const[h,m]=e.viewBox,v=n*2*i,x=n-v/2+l,b=o-v/2+u,C=Array.isArray(e.paths)?e.paths:[e.paths];return w.jsx("svg",{x,y:b,width:v,height:v,viewBox:`0 0 ${h} ${m}`,style:f?{filter:f}:void 0,overflow:"visible",children:C.map((N,k)=>w.jsx("path",{d:N,fill:a},k))})}qt.displayName="MriShapeIcon";const gy=y.forwardRef(({displayOutline:e=!0,height:n=50,width:o=50,icon:i=null,iconColor:a="currentColor",iconContrast:l=100,iconDropShadowAmount:u=0,iconScaling:f=.4,iconTranslateX:h=0,iconTranslateY:m=0,innerColor:v="#212121",outlineColor:x="currentColor",outlineContrast:b=100,outlineDropShadowAmount:C=0,progressColor:N="currentColor",progressContrast:k=100,progressDropShadowAmount:j=0,progressValue:M=100,ringSize:E=4,rotateDegree:R=0,translateX:z=0,translateY:L=0},A)=>{const D=Math.max(n,o)/2,F=D-E/2,W=F*2*Math.PI,J=W-M/100*W,oe=[R>0?`rotate(${R} ${D} ${D})`:"",`translate(${z} ${L})`].filter(Boolean).join(" "),B=F-E/2+.1;return w.jsxs("svg",{ref:A,width:D*2,height:D*2,viewBox:`0 0 ${D*2} ${D*2}`,overflow:"visible",children:[w.jsxs("g",{transform:oe,children:[w.jsx("circle",{fill:v,stroke:"transparent",strokeDashoffset:0,strokeDasharray:`${W} ${W}`,strokeWidth:E-.6,r:B,cx:D,cy:D,transform:`rotate(-90, ${D}, ${D})`}),e&&w.jsx("circle",{fill:"transparent",stroke:x,strokeDashoffset:0,strokeDasharray:`${W} ${W}`,strokeWidth:E,r:F,cx:D,cy:D,transform:`rotate(-90, ${D}, ${D})`,style:{filter:Ee(C,x,b)}}),w.jsx("circle",{stroke:N,fill:"transparent",strokeDashoffset:J,strokeDasharray:`${W} ${W}`,strokeWidth:E,r:F,cx:D,cy:D,transform:`rotate(-90, ${D}, ${D})`,style:{transition:"stroke-dashoffset 0.6s cubic-bezier(0.215, 0.61, 0.355, 1)",filter:Ee(j,N,k)}})]}),i&&w.jsx("g",{style:{filter:Ee(u,a,l)},children:w.jsx(qt,{icon:i,cx:D,cy:D,scaling:f,color:a,translateX:h,translateY:m})})]})});gy.displayName="MriCircleRing";const vy=y.forwardRef(({height:e=50,width:n=50,icon:o=null,iconColor:i="currentColor",iconContrast:a=100,iconDropShadowAmount:l=0,iconScaling:u=.4,iconTranslateX:f=0,iconTranslateY:h=1,progressColor:m="currentColor",progressContrast:v=100,progressDropShadowAmount:x=0,progressValue:b=100,borderSize:C=4,rotateDegree:N=0,translateX:k=0,translateY:j=0,name:M="icon"},E)=>{const R=Math.max(e,n),z=R/2,L=z,A=z-L/2,D=R-b/100*R,F=[N>0?`rotate(${N} ${z} ${e/4})`:"",`translate(${k} ${j})`].filter(Boolean).join(" "),W=`${M||"icon"}-cut-out-circle`;return w.jsxs("svg",{ref:E,width:z*2,height:z*2,viewBox:`0 0 ${z*2} ${z*2}`,overflow:"visible",children:[w.jsx("defs",{children:w.jsx("clipPath",{id:W,children:w.jsx("circle",{strokeWidth:L,r:z,cx:z,cy:z})})}),w.jsxs("g",{transform:F,children:[w.jsx("circle",{stroke:"black",fill:"transparent",strokeWidth:C,r:A*2+C/2,cx:z,cy:z,shapeRendering:"geometricPrecision"}),w.jsx("line",{x1:"50%",y1:"100%",x2:"50%",y2:"0%",stroke:m,strokeDasharray:R,strokeDashoffset:D,strokeWidth:R,clipPath:`url(#${W})`,shapeRendering:"geometricPrecision",style:{transition:"stroke-dashoffset 0.6s cubic-bezier(0.215, 0.61, 0.355, 1)",filter:Ee(x,m,v)}})]}),o&&w.jsx("g",{style:{filter:Ee(l,i,a)},children:w.jsx(qt,{icon:o,cx:z,cy:z,scaling:u,color:i,translateX:f,translateY:h})})]})});vy.displayName="MriCircleFill";const yy=y.forwardRef(({displayOutline:e=!0,height:n=50,width:o=50,icon:i=null,iconColor:a="currentColor",iconContrast:l=100,iconDropShadowAmount:u=0,iconScaling:f=.4,iconTranslateX:h=0,iconTranslateY:m=1,innerColor:v="#212121",outlineColor:x="currentColor",outlineContrast:b=100,outlineDropShadowAmount:C=0,progressColor:N="currentColor",progressContrast:k=100,progressDropShadowAmount:j=0,progressValue:M=100,ringSize:E=4,borderGap:R=.85,rotateDegree:z=0,translateX:L=0,translateY:A=0},D)=>{const F=Math.max(n,o)/2,W=F-E/2,J=W*2*Math.PI,oe=W*(R??.85),B=J*(R??.85),de=B-M/100*B,ie=[z>0?`rotate(${z} ${F} ${F})`:"",`translate(${L} ${A})`].filter(Boolean).join(" ");return w.jsxs("svg",{ref:D,width:F*2,height:F*2,viewBox:`0 0 ${F*2} ${F*2}`,overflow:"visible",children:[w.jsxs("g",{transform:ie,children:[w.jsx("circle",{fill:v,r:W+1,cx:F,cy:F,transform:`rotate(-90, ${F}, ${F})`}),e&&w.jsx("circle",{fill:"transparent",stroke:x,strokeDashoffset:0,strokeDasharray:`${B} ${B}`,strokeWidth:E,r:oe,cx:F,cy:F,transform:`rotate(-90, ${F}, ${F})`,style:{filter:Ee(C,x,b)}}),w.jsx("circle",{stroke:N,fill:"transparent",strokeDashoffset:de,strokeDasharray:`${B} ${B}`,strokeWidth:E,r:oe,cx:F,cy:F,transform:`rotate(-90, ${F}, ${F})`,style:{transition:"stroke-dashoffset 0.6s cubic-bezier(0.215, 0.61, 0.355, 1)",filter:Ee(j,N,k)}})]}),i&&w.jsx("g",{style:{filter:Ee(u,a,l)},children:w.jsx(qt,{icon:i,cx:F,cy:F,scaling:f,color:a,translateX:h,translateY:m})})]})});yy.displayName="MriInnerCircle";function y1(e,n,o,i){const a=e-(100-n)/100*e;let l=0,u=`0 ${Math.floor(i/2)}`;const f=(e-o*i)/o;if(a=a){const m=a-l;if(m<.1)break;return u+=` ${m} ${e}`,u}u+=` ${f} ${i}`,l+=f+i}const h=u.lastIndexOf(" ");return u=u.substring(0,h),u+=` ${e}`,u}const xy=y.forwardRef(({height:e=50,width:n=50,icon:o=null,iconColor:i="currentColor",iconContrast:a=100,iconDropShadowAmount:l=0,iconScaling:u=.4,iconTranslateX:f=0,iconTranslateY:h=1,innerColor:m="#212121",outlineColor:v="currentColor",outlineContrast:x=100,outlineDropShadowAmount:b=0,progressColor:C="currentColor",progressContrast:N=100,progressDropShadowAmount:k=0,progressValue:j=100,ringSize:M=4,borderGap:E=.85,dashes:R=8,gap:z=4,rotateDegree:L=0,translateX:A=0,translateY:D=0},F)=>{const W=Math.max(e,n)/2,J=W-M/2,oe=J*2*Math.PI,B=J*E,de=oe*E,ie=y1(de,j,R,z),ue=y1(de,100,R,z),ae=[L>0?`rotate(${L} ${W} ${W})`:"",`translate(${A} ${D})`].filter(Boolean).join(" ");return w.jsxs("svg",{ref:F,width:W*2,height:W*2,viewBox:`0 0 ${W*2} ${W*2}`,overflow:"visible",children:[w.jsxs("g",{transform:ae,children:[w.jsx("circle",{fill:m,r:J+3,cx:W,cy:W,transform:`rotate(-90, ${W}, ${W})`}),w.jsx("circle",{fill:"transparent",stroke:v,strokeDasharray:ue,strokeWidth:M,r:B,cx:W,cy:W,transform:`rotate(-90, ${W}, ${W})`,style:{filter:Ee(b,v,x)}}),w.jsx("circle",{stroke:C,fill:"transparent",strokeDasharray:ie,strokeWidth:M,r:B,cx:W,cy:W,transform:`rotate(-90, ${W}, ${W})`,style:{filter:Ee(k,C,N)}})]}),o&&w.jsx("g",{style:{filter:Ee(l,i,a)},children:w.jsx(qt,{icon:o,cx:W,cy:W,scaling:u,color:i,translateX:f,translateY:h})})]})});xy.displayName="MriSplitCircle";const wy=y.forwardRef(({displayOutline:e=!0,height:n=50,icon:o=null,iconColor:i="currentColor",iconScaling:a=.45,iconTranslateX:l=0,iconTranslateY:u=0,innerColor:f="#212121",innerColorOpacity:h=1,outlineColor:m="currentColor",outlineColorOpacity:v=.4,progressColor:x="currentColor",progressValue:b=100,ringSize:C=4,rotateDegree:N=0,translateX:k=0,translateY:j=0,maxLengthDisplay:M=100,maxProgressValue:E=100,showInnerBG:R=!1,displayNumber:z=0,text:L=""},A)=>{const D=n/2,F=D-C/2,W=F*2*Math.PI,J=Math.min(b,E)/E*100,oe=W-J/(100/M)/100*W,B=W-M/100*W,[de,ie]=y.useState(z),ue=y.useRef({from:z,to:z,start:0,raf:0});y.useEffect(()=>{const ne=ue.current;cancelAnimationFrame(ne.raf),ne.from=de,ne.to=z,ne.start=performance.now();const se=600;function he(ce){const Ie=ce-ne.start,Le=Math.min(Ie/se,1);ie(ne.from+(ne.to-ne.from)*Le),Le<1&&(ne.raf=requestAnimationFrame(he))}return ne.raf=requestAnimationFrame(he),()=>cancelAnimationFrame(ne.raf)},[z]);const ae=[N>0?`rotate(${N} ${D} ${D})`:"",`translate(${k} ${j})`].filter(Boolean).join(" ");let fe=null,U=[0,0,512,512];o&&(U=[0,0,o.viewBox[0],o.viewBox[1]],fe=o.paths);const Q=D*2*a,Z=D-Q/2+l,_=D-Q/2+u,[I,G,ee,K]=U;return w.jsxs("svg",{ref:A,width:D*2,height:D*2,viewBox:`0 0 ${D*2} ${D*2}`,overflow:"visible",children:[w.jsxs("g",{transform:ae,children:[e&&w.jsx("circle",{opacity:v,fill:"transparent",stroke:m,strokeDashoffset:B,strokeDasharray:`${W} ${W}`,strokeWidth:C,r:F,cx:D,cy:D,transform:`rotate(-90, ${D}, ${D})`}),R&&w.jsx("circle",{fill:f,fillOpacity:h,stroke:"transparent",strokeWidth:C-.6,r:F-C/2+.1,cx:D,cy:D}),w.jsx("circle",{stroke:x,fill:"transparent",strokeDashoffset:oe,strokeDasharray:`${W} ${W}`,strokeWidth:C,r:F,cx:D,cy:D,transform:`rotate(-90, ${D}, ${D})`,style:{transition:"stroke-dashoffset 0.6s linear"}})]}),L&&w.jsxs(w.Fragment,{children:[w.jsx("text",{className:"vehicle-number",fill:"white",x:"50%",y:"45%",dominantBaseline:"middle",textAnchor:"middle",children:Math.floor(de)}),w.jsx("text",{className:"vehicle-text",fill:"white",x:"50%",y:"70%",dominantBaseline:"middle",textAnchor:"middle",children:L})]}),fe&&w.jsx("svg",{x:Z,y:_,width:Q,height:Q,viewBox:`${I} ${G} ${ee} ${K}`,children:Array.isArray(fe)?fe.map((ne,se)=>w.jsx("path",{d:ne,fill:i},se)):w.jsx("path",{d:fe,fill:i})})]})});wy.displayName="MriPartialCircleRing";const by=y.forwardRef(({displayOutline:e=!0,height:n=50,width:o=20,icon:i=null,iconColor:a="currentColor",iconContrast:l=100,iconDropShadowAmount:u=0,iconScaling:f=.45,iconTranslateX:h=0,iconTranslateY:m=0,innerColor:v="#212121",outlineColor:x="currentColor",outlineContrast:b=100,outlineDropShadowAmount:C=0,progressColor:N="currentColor",progressContrast:k=100,progressDropShadowAmount:j=0,progressValue:M=100,ringSize:E=4,rotateDegree:R=0,translateX:z=0,translateY:L=0},A)=>{const D=o/2,F=2*(n-o)+Math.PI*(o-E),W=F-M/100*F,J=o/2,oe=n/2,B=[R>0?`rotate(${R} ${J} ${oe})`:"",`translate(${z} ${L})`].filter(Boolean).join(" ");return w.jsxs("svg",{ref:A,width:o,height:n,viewBox:`0 0 ${o} ${n}`,overflow:"visible",children:[w.jsxs("g",{transform:B,children:[w.jsx("rect",{x:0,y:0,width:o,height:n,rx:D,ry:D,fill:v}),e&&w.jsx("rect",{x:E/2,y:E/2,width:o-E,height:n-E,rx:D-E/2,ry:D-E/2,fill:"transparent",stroke:x,strokeWidth:E,style:{filter:Ee(C,x,b)}}),w.jsx("rect",{x:E/2,y:E/2,width:o-E,height:n-E,rx:D-E/2,ry:D-E/2,fill:"transparent",stroke:N,strokeWidth:E,strokeDasharray:`${F} ${F}`,strokeDashoffset:W,style:{transition:"stroke-dashoffset 0.6s cubic-bezier(0.215, 0.61, 0.355, 1)",filter:Ee(j,N,k)}})]}),i&&w.jsx("g",{style:{filter:Ee(u,a,l)},children:w.jsx(qt,{icon:i,cx:J,cy:oe,scaling:f,color:a,translateX:h,translateY:m})})]})});by.displayName="MriPillRing";const Sy=y.forwardRef(({height:e=50,width:n=50,icon:o=null,iconColor:i="currentColor",iconContrast:a=100,iconDropShadowAmount:l=0,iconScaling:u=.28,innerColor:f="#212121",outlineColor:h="currentColor",outlineContrast:m=100,outlineDropShadowAmount:v=0,progressColor:x="currentColor",progressContrast:b=100,progressDropShadowAmount:C=0,progressValue:N=100,translateX:k=0,translateY:j=0,xAxisRound:M=5,yAxisRound:E=5,barHeight:R,cardRadius:z},L)=>{const A=e*.07,D=e*u,F=e*.09,W=R??e*.078,J=n-2*A,oe=N/100*J,B=Math.min(M,W/2),de=Math.min(E,W/2),ie=k||j?`translate(${k} ${j})`:void 0;return w.jsxs("div",{ref:L,style:{width:n,padding:A,borderRadius:z??e*.056,backgroundColor:f,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",boxSizing:"border-box",transform:ie},children:[o&&w.jsx("div",{style:{marginBottom:F,filter:Ee(l,i,a)},children:w.jsx("svg",{width:D,height:D,viewBox:`0 0 ${o.viewBox[0]} ${o.viewBox[1]}`,style:{display:"block",fill:i},children:Array.isArray(o.paths)?o.paths.map((ue,ae)=>w.jsx("path",{d:ue,fill:i},ae)):w.jsx("path",{d:o.paths,fill:i})})}),w.jsxs("svg",{width:J,height:W,overflow:"visible",style:{display:"block"},children:[w.jsx("rect",{width:J,height:W,fill:h,rx:B,ry:de,style:{filter:Ee(v,h,m)}}),w.jsx("rect",{width:oe,height:W,fill:x,rx:B,ry:de,style:{transition:"width 0.6s cubic-bezier(0.215, 0.61, 0.355, 1)",filter:Ee(C,x,b)}})]})]})});Sy.displayName="MriBadgeShape";const Cy=y.forwardRef(({height:e=50,width:n=50,icon:o=null,iconColor:i="currentColor",iconContrast:a=100,iconDropShadowAmount:l=0,iconScaling:u=.45,iconTranslateX:f=0,iconTranslateY:h=0,outlineColor:m="currentColor",outlineContrast:v=100,outlineDropShadowAmount:x=0,progressColor:b="currentColor",progressContrast:C=100,progressDropShadowAmount:N=0,progressValue:k=100,rotateDegree:j=0,translateX:M=0,translateY:E=0},R)=>{const z=n-k/100*n,L=[j>0?`rotate(${j} ${e/2} ${n/4})`:"",`translate(${M} ${E})`].filter(Boolean).join(" ");return w.jsx("div",{ref:R,className:"border-4 border-black relative",children:w.jsxs("svg",{height:e-8,width:n,children:[w.jsxs("g",{transform:L,children:[w.jsx("line",{stroke:m,x1:"0%",y1:"50%",x2:"100%",y2:"50%",strokeWidth:e-8,style:{filter:Ee(x,m,v)}}),w.jsx("line",{x1:"0%",y1:"50%",x2:"100%",y2:"50%",stroke:b,fill:"transparent",strokeDasharray:n,strokeDashoffset:z,strokeWidth:e-8,style:{transition:"stroke-dashoffset 0.6s cubic-bezier(0.215, 0.61, 0.355, 1)",filter:Ee(N,b,C)}})]}),o&&w.jsx("g",{dominantBaseline:"middle",style:{filter:Ee(l,i,a)},children:w.jsx(qt,{icon:o,cx:n/2,cy:(e-8)/2,scaling:u,color:i,translateX:f,translateY:h})})]})})});Cy.displayName="MriHorizontalBar";const ky=y.forwardRef(({height:e=50,width:n=50,icon:o=null,iconColor:i="currentColor",iconContrast:a=100,iconDropShadowAmount:l=0,iconScaling:u=.45,progressColor:f="currentColor",progressValue:h=100},m)=>w.jsxs("div",{ref:m,style:{display:"flex",flexDirection:"column",alignItems:"center",color:f,fontSize:e,width:n,height:e},children:[o&&w.jsx("svg",{width:n*u*2,height:n*u*2,viewBox:`0 0 ${o.viewBox[0]} ${o.viewBox[1]}`,style:{display:"block",fill:i,filter:Ee(l,i,a)},children:Array.isArray(o.paths)?o.paths.map((v,x)=>w.jsx("path",{d:v,fill:i},x)):w.jsx("path",{d:o.paths,fill:i})}),w.jsxs("span",{style:{fontSize:e*.3,fontWeight:700,color:f},children:[Math.round(h),"%"]})]}));ky.displayName="MriIconPercentage";const jy=y.forwardRef(({height:e=50,width:n=50,icon:o=null,iconColor:i="currentColor",iconContrast:a=100,iconDropShadowAmount:l=0,iconScaling:u=.45,iconTranslateX:f=0,iconTranslateY:h=3,innerColor:m="#212121",outlineColor:v="currentColor",outlineContrast:x=100,outlineDropShadowAmount:b=0,progressColor:C="currentColor",progressContrast:N=100,progressDropShadowAmount:k=0,progressValue:j=100,borderSize:M=3,name:E="icon"},R)=>{const z=j/100*e,L=`${E}-sq-fill-clip`;return w.jsxs("svg",{ref:R,width:n,height:e,overflow:"visible",children:[w.jsx("defs",{children:w.jsx("clipPath",{id:L,children:w.jsx("rect",{width:n,height:e,rx:2,ry:2})})}),w.jsx("rect",{width:n,height:e,fill:m}),w.jsx("rect",{x:0,y:e-z,width:n,height:z,fill:C,clipPath:`url(#${L})`,style:{transition:"y 0.6s cubic-bezier(0.215, 0.61, 0.355, 1), height 0.6s cubic-bezier(0.215, 0.61, 0.355, 1)",filter:Ee(k,C,N)}}),w.jsx("rect",{width:n-.2,height:e-.2,fill:"transparent",stroke:v,strokeWidth:M,style:{filter:Ee(b,v,x)}}),o&&w.jsx("g",{style:{filter:Ee(l,i,a)},children:w.jsx(qt,{icon:o,cx:n/2,cy:e/2,scaling:u,color:i,translateX:f,translateY:h})})]})});jy.displayName="MriSquareFill";const Ey=y.forwardRef(({displayOutline:e=!0,height:n=50,width:o=50,icon:i=null,iconColor:a="currentColor",iconContrast:l=100,iconDropShadowAmount:u=0,iconScaling:f=.45,iconTranslateX:h=0,iconTranslateY:m=3,innerColor:v="#212121",outlineColor:x="currentColor",outlineContrast:b=100,outlineDropShadowAmount:C=0,progressColor:N="currentColor",progressContrast:k=100,progressDropShadowAmount:j=0,progressValue:M=100,ringSize:E=4,rotateDegree:R=0,translateX:z=0,translateY:L=0},A)=>{const D=(o+n)*2,F=D-M/100*D,W=[R>0?`rotate(${R} 0 0)`:"",`translate(${z} ${L})`].filter(Boolean).join(" ");return w.jsxs("svg",{ref:A,width:o,height:n,transform:W,overflow:"visible",children:[w.jsxs("g",{children:[e&&w.jsx("rect",{stroke:x,width:o,height:n,strokeWidth:E,strokeDasharray:`${D} ${D}`,shapeRendering:"geometricPrecision",strokeDashoffset:0,fill:"transparent",style:{filter:Ee(C,x,b)}}),w.jsx("rect",{fill:v,transform:`translate(${E/2-.1} ${E/2-.3})`,stroke:"transparent",shapeRendering:"geometricPrecision",width:o-E+.2,height:n-E+.2,strokeDasharray:`${D} ${D}`,strokeDashoffset:0}),w.jsx("rect",{stroke:N,fill:"transparent",width:o,height:n,strokeWidth:E-.1,strokeDasharray:`${D} ${D}`,strokeDashoffset:F,style:{transition:"stroke-dashoffset 0.6s cubic-bezier(0.215, 0.61, 0.355, 1)",filter:Ee(j,N,k)}})]}),i&&w.jsx("g",{style:{filter:Ee(u,a,l)},children:w.jsx(qt,{icon:i,cx:o/2,cy:n/2,scaling:f,color:a,translateX:h,translateY:m})})]})});Ey.displayName="MriSquareRing";const lf="M19 1l-5.545 11.236L1 13.819l9 8.776L7.91 37 19 30.764 30.09 37 28 22.595l9-8.776-12.455-1.583z",Ny=y.forwardRef(({displayOutline:e=!0,height:n=50,width:o=50,icon:i=null,iconColor:a="currentColor",iconContrast:l=100,iconDropShadowAmount:u=0,iconScaling:f=.35,iconTranslateX:h=0,iconTranslateY:m=3,innerColor:v="#212121",outlineColor:x="currentColor",outlineContrast:b=100,outlineDropShadowAmount:C=0,progressColor:N="currentColor",progressContrast:k=100,progressDropShadowAmount:j=0,progressValue:M=100,ringSize:E=4,rotateDegree:R=0,translateX:z=0,translateY:L=0},A)=>{const D=y.useRef(null),[F,W]=y.useState(0);y.useEffect(()=>{if(D.current)try{W(D.current.getTotalLength())}catch{}},[]);const J=F-M/100*F,oe=19,B=19,de=E/Math.min(o/38,n/40),ie=`star-clip-${y.useId()}`,ue=[R>0?`rotate(${R} ${oe} ${B})`:"",`translate(${z} ${L})`].filter(Boolean).join(" ");return w.jsxs("svg",{ref:A,width:o,height:n,viewBox:"0 0 38 40",overflow:"visible",children:[w.jsx("defs",{children:w.jsx("clipPath",{id:ie,children:w.jsx("path",{d:lf})})}),w.jsxs("g",{transform:ue,children:[w.jsx("rect",{width:"38",height:"40",fill:v,clipPath:`url(#${ie})`}),e&&F>0&&w.jsx("path",{d:lf,fill:"transparent",stroke:x,strokeWidth:de,strokeLinejoin:"round",strokeDasharray:`${F} ${F}`,strokeDashoffset:0,style:{filter:Ee(C,x,b)}}),w.jsx("path",{ref:D,d:lf,stroke:N,strokeWidth:de,strokeLinejoin:"round",fill:"transparent",strokeDasharray:F>0?`${F} ${F}`:void 0,strokeDashoffset:F>0?J:void 0,style:{transition:"stroke-dashoffset 0.6s cubic-bezier(0.215, 0.61, 0.355, 1)",filter:Ee(j,N,k)}})]}),i&&w.jsx("g",{style:{filter:Ee(u,a,l)},children:w.jsx(qt,{icon:i,cx:oe,cy:B,scaling:f,color:a,translateX:h,translateY:m})})]})});Ny.displayName="MriStarRing";const cf="M8.384 1.226a.463.463 0 0 0-.768 0l-4.56 6.468a.537.537 0 0 0 0 .612l4.56 6.469a.463.463 0 0 0 .768 0l4.56-6.469a.537.537 0 0 0 0-.612l-4.56-6.468z",My=y.forwardRef(({displayOutline:e=!0,height:n=50,width:o=50,icon:i=null,iconColor:a="currentColor",iconContrast:l=100,iconDropShadowAmount:u=0,iconScaling:f=.35,iconTranslateX:h=0,iconTranslateY:m=.7,innerColor:v="#212121",outlineColor:x="currentColor",outlineContrast:b=100,outlineDropShadowAmount:C=0,progressColor:N="currentColor",progressContrast:k=100,progressDropShadowAmount:j=0,progressValue:M=100,ringSize:E=4,rotateDegree:R=0,translateX:z=0,translateY:L=0},A)=>{const D=y.useRef(null),[F,W]=y.useState(0);y.useEffect(()=>{if(D.current)try{W(D.current.getTotalLength())}catch{}},[]);const J=F-M/100*F,oe=[R>0?`rotate(${R} 8 8)`:"",`translate(${z} ${L})`].filter(Boolean).join(" "),B=8,de=8,ie=E/(Math.min(o,n)/16);return w.jsx("div",{ref:A,style:{margin:"0 -7px"},children:w.jsxs("svg",{version:"1.1",width:o,height:n,viewBox:"0 0 16 16",transform:"scale(-1,1)",overflow:"visible",children:[w.jsxs("g",{transform:oe,children:[e&&F>0&&w.jsx("path",{d:cf,fill:"transparent",stroke:x,strokeWidth:ie,strokeDasharray:`${F} ${F}`,strokeDashoffset:0,style:{filter:Ee(C,x,b)}}),w.jsx("svg",{viewBox:"-1.5 4.5 19 7",children:w.jsx("path",{d:cf,strokeWidth:E-.3,fill:v,stroke:"transparent"})}),w.jsx("path",{ref:D,d:cf,stroke:N,strokeWidth:ie,fill:"transparent",strokeDasharray:F>0?`${F} ${F}`:void 0,strokeDashoffset:F>0?J:void 0,style:{transition:"stroke-dashoffset 0.6s cubic-bezier(0.215, 0.61, 0.355, 1)",filter:Ee(j,N,k)}})]}),i&&w.jsx("g",{style:{filter:Ee(u,a,l)},children:w.jsx(qt,{icon:i,cx:B,cy:de,scaling:f,color:a,translateX:h,translateY:m})})]})})});My.displayName="MriDiamondRing";const uf="M21 2L3 12v10l18 10 18-10V12L21 2z",Ay=y.forwardRef(({displayOutline:e=!0,height:n=50,width:o=50,icon:i=null,iconColor:a="currentColor",iconContrast:l=100,iconDropShadowAmount:u=0,iconScaling:f=.35,iconTranslateX:h=0,iconTranslateY:m=.7,innerColor:v="#212121",outlineColor:x="currentColor",outlineContrast:b=100,outlineDropShadowAmount:C=0,progressColor:N="currentColor",progressContrast:k=100,progressDropShadowAmount:j=0,progressValue:M=100,ringSize:E=4,rotateDegree:R=0,translateX:z=0,translateY:L=0},A)=>{const D=y.useRef(null),[F,W]=y.useState(0);y.useEffect(()=>{if(D.current)try{W(D.current.getTotalLength())}catch{}},[]);const J=F-M/100*F,oe=21,B=17,de=E/Math.min(o/40,n/34),ie=[R>0?`rotate(${R} ${oe} ${B})`:"",`translate(${z} ${L})`].filter(Boolean).join(" ");return w.jsxs("svg",{ref:A,width:o,height:n,viewBox:"1 0 40 34",overflow:"visible",children:[w.jsxs("g",{transform:ie,children:[w.jsx("path",{d:uf,fill:v,stroke:"transparent"}),e&&F>0&&w.jsx("path",{d:uf,fill:"transparent",stroke:x,strokeWidth:de,strokeDasharray:`${F} ${F}`,strokeDashoffset:0,style:{filter:Ee(C,x,b)}}),w.jsx("path",{ref:D,d:uf,stroke:N,strokeWidth:de,fill:"transparent",strokeDasharray:F>0?`${F} ${F}`:void 0,strokeDashoffset:F>0?J:void 0,style:{transition:"stroke-dashoffset 0.6s cubic-bezier(0.215, 0.61, 0.355, 1)",filter:Ee(j,N,k)}})]}),i&&w.jsx("g",{style:{filter:Ee(u,a,l)},children:w.jsx(qt,{icon:i,cx:oe,cy:B,scaling:f,color:a,translateX:h,translateY:m})})]})});Ay.displayName="MriHexagonRing";const ff="M21.87,19.29,13.13,4.14a1.29,1.29,0,0,0-2.26,0L2.13,19.29a1.27,1.27,0,0,0,1.13,1.86H20.74A1.27,1.27,0,0,0,21.87,19.29Z",Py=y.forwardRef(({displayOutline:e=!0,height:n=50,width:o=50,icon:i=null,iconColor:a="currentColor",iconContrast:l=100,iconDropShadowAmount:u=0,iconScaling:f=.35,iconTranslateX:h=0,iconTranslateY:m=3,innerColor:v="#212121",outlineColor:x="currentColor",outlineContrast:b=100,outlineDropShadowAmount:C=0,progressColor:N="currentColor",progressContrast:k=100,progressDropShadowAmount:j=0,progressValue:M=100,ringSize:E=4,rotateDegree:R=0,translateX:z=0,translateY:L=0},A)=>{const D=y.useRef(null),[F,W]=y.useState(0);y.useEffect(()=>{if(D.current)try{W(D.current.getTotalLength())}catch{}},[]);const J=F-M/100*F,oe=12,B=12,de=E/Math.min(o/24,n/24),ie=[R>0?`rotate(${R} ${oe} ${B})`:"",`translate(${z} ${L})`].filter(Boolean).join(" ");return w.jsxs("svg",{ref:A,width:o,height:n,viewBox:"0 0 24 24",overflow:"visible",children:[w.jsxs("g",{transform:ie,children:[w.jsx("path",{d:ff,fill:v,stroke:"transparent"}),e&&F>0&&w.jsx("path",{d:ff,fill:"transparent",stroke:x,strokeWidth:de,strokeDasharray:`${F} ${F}`,strokeDashoffset:0,style:{filter:Ee(C,x,b)}}),w.jsx("path",{ref:D,d:ff,stroke:N,strokeWidth:de,fill:"transparent",strokeDasharray:F>0?`${F} ${F}`:void 0,strokeDashoffset:F>0?J:void 0,style:{transition:"stroke-dashoffset 0.6s cubic-bezier(0.215, 0.61, 0.355, 1)",filter:Ee(j,N,k)}})]}),i&&w.jsx("g",{style:{filter:Ee(u,a,l)},children:w.jsx(qt,{icon:i,cx:oe,cy:B,scaling:f,color:a,translateX:h,translateY:m})})]})});Py.displayName="MriTriangleRing";function po(e,n,o,i){const a=(i-90)*Math.PI/180;return{x:e+o*Math.cos(a),y:n+o*Math.sin(a)}}function x1(e,n,o,i,a){if(a<=0)return"";const l=po(e,n,o,i),u=po(e,n,o,i+a),f=a>180?1:0;return`M${l.x.toFixed(3)},${l.y.toFixed(3)} A${o},${o} 0 ${f} 1 ${u.x.toFixed(3)},${u.y.toFixed(3)}`}const Ry=y.forwardRef(({size:e,value:n,minValue:o,maxValue:i,arcLength:a,rotation:l,majorTickInterval:u,minorTickCount:f,ringSize:h,color:m,outlineColor:v,outlineOpacity:x,needleStyle:b,showValue:C,unit:N,label:k,odometer:j},M)=>{const E=e/2,R=e/2,z=y.useMemo(()=>{const ue=e/2-2,ae=a/100*360,fe=ue-h/2,U=fe-h/2-3,Q=ue*.12,Z=ue*.065,_=U-Q-ue*.05,I=fe*.88,G=Math.max(4,ue*.065),ee=Math.max(o,Math.min(i,n)),K=i>o?(ee-o)/(i-o):0,ne=l+K*ae,se=x1(E,R,fe,l,ae),he=x1(E,R,fe,l,K*ae),ce=[];for(let Le=o;Le<=i+u*.001;Le+=u)ce.push(parseFloat(Math.min(Le,i).toFixed(10)));ce[ce.length-1]0){const jo=ce[Le+1];for(let Zt=1;Zt<=f;Zt++){const Qr=Rt+Zt/(f+1)*((jo-o)/(i-o)-Rt),Xn=l+Qr*ae,Eo=po(E,R,U,Xn),vi=po(E,R,U-Z,Xn);Ie.push({x1:Eo.x,y1:Eo.y,x2:vi.x,y2:vi.y,isMajor:!1,labelX:0,labelY:0})}}}return{outerR:ue,trackR:fe,hubR:G,needleR:I,ticks:Ie,track:se,progress:he,valueDeg:ne,cval:ee}},[e,n,o,i,a,l,u,f,h,E,R]),{outerR:L,hubR:A,needleR:D,ticks:F,track:W,progress:J,valueDeg:oe,cval:B}=z,de=L*.145,ie=Math.max(1.5,L*.025);return w.jsxs("svg",{ref:M,width:e,height:e,viewBox:`0 0 ${e} ${e}`,style:{display:"block",overflow:"visible"},children:[w.jsx("circle",{cx:E,cy:R,r:L,fill:"rgba(0,0,0,0.88)"}),w.jsx("circle",{cx:E,cy:R,r:L,fill:"none",stroke:"rgba(255,255,255,0.07)",strokeWidth:"1.5"}),W&&w.jsx("path",{d:W,fill:"none",stroke:v,strokeOpacity:x,strokeWidth:h,strokeLinecap:"round"}),J&&w.jsx("path",{d:J,fill:"none",stroke:m,strokeWidth:h,strokeLinecap:"round"}),F.map((ue,ae)=>w.jsx("line",{x1:ue.x1.toFixed(2),y1:ue.y1.toFixed(2),x2:ue.x2.toFixed(2),y2:ue.y2.toFixed(2),stroke:ue.isMajor?"rgba(255,255,255,0.85)":"rgba(255,255,255,0.38)",strokeWidth:ue.isMajor?1.5:.9,strokeLinecap:"round"},ae)),F.filter(ue=>ue.isMajor).map((ue,ae)=>w.jsx("text",{x:ue.labelX.toFixed(2),y:ue.labelY.toFixed(2),textAnchor:"middle",dominantBaseline:"middle",fill:"rgba(255,255,255,0.8)",fontSize:de.toFixed(1),fontFamily:"system-ui, sans-serif",fontWeight:"400",children:ue.label},ae)),b==="needle"&&w.jsxs(w.Fragment,{children:[w.jsxs("g",{transform:`translate(${E},${R}) rotate(${oe})`,children:[w.jsx("line",{x1:"0",y1:A+1,x2:"0",y2:-D,stroke:"white",strokeWidth:ie,strokeLinecap:"round",opacity:"0.95"}),w.jsx("line",{x1:"0",y1:A+1,x2:"0",y2:L*.12,stroke:"rgba(255,255,255,0.4)",strokeWidth:ie*1.6,strokeLinecap:"round"})]}),w.jsx("circle",{cx:E,cy:R,r:A,fill:m}),w.jsx("circle",{cx:E,cy:R,r:A*.45,fill:"rgba(0,0,0,0.6)"}),C&&w.jsxs(w.Fragment,{children:[w.jsx("text",{x:E,y:R+L*.3,textAnchor:"middle",dominantBaseline:"middle",fill:"white",fontSize:(L*.22).toFixed(1),fontFamily:"system-ui, sans-serif",fontWeight:"700",children:Math.round(B)}),N&&w.jsx("text",{x:E,y:R+L*.46,textAnchor:"middle",dominantBaseline:"middle",fill:"rgba(255,255,255,0.5)",fontSize:(L*.11).toFixed(1),fontFamily:"system-ui, sans-serif",fontWeight:"500",letterSpacing:"2",children:N.toUpperCase()}),j&&(()=>{const ue=L*.92,ae=L*.26,fe=E-ue/2,U=R+L*.52,Q=U+ae/2,Z=(L*.148).toFixed(1),_=j.replace(/\d/g,"8");return w.jsxs(w.Fragment,{children:[w.jsx("rect",{x:fe.toFixed(2),y:U.toFixed(2),width:ue.toFixed(2),height:ae.toFixed(2),rx:"2",ry:"2",fill:"rgba(4,9,5,0.92)",stroke:"rgba(90,160,100,0.18)",strokeWidth:"0.5"}),w.jsx("text",{x:E,y:Q.toFixed(2),textAnchor:"middle",dominantBaseline:"middle",fill:"rgba(110,200,120,0.13)",fontSize:Z,fontFamily:'"Courier New", monospace',children:_}),w.jsx("text",{x:E,y:Q.toFixed(2),textAnchor:"middle",dominantBaseline:"middle",fill:"#82de8c",fontSize:Z,fontFamily:'"Courier New", monospace',fontWeight:"600",children:j})]})})()]})]}),b==="digital"&&w.jsxs(w.Fragment,{children:[w.jsx("circle",{cx:E,cy:R,r:L*.38,fill:"rgba(0,0,0,0.45)"}),C&&w.jsx("text",{x:E,y:N?R-L*.06:R,textAnchor:"middle",dominantBaseline:"middle",fill:"white",fontSize:(L*.3).toFixed(1),fontFamily:"system-ui, sans-serif",fontWeight:"700",letterSpacing:"-0.5",children:Math.round(B)}),N&&w.jsx("text",{x:E,y:R+L*.22,textAnchor:"middle",dominantBaseline:"middle",fill:"rgba(255,255,255,0.55)",fontSize:(L*.12).toFixed(1),fontFamily:"system-ui, sans-serif",fontWeight:"500",letterSpacing:"2",children:N.toUpperCase()})]}),b==="arc"&&C&&w.jsx("text",{x:E,y:R,textAnchor:"middle",dominantBaseline:"middle",fill:"white",fontSize:(L*.26).toFixed(1),fontFamily:"system-ui, sans-serif",fontWeight:"700",children:Math.round(B)}),k&&!(b==="needle"&&j)&&w.jsx("text",{x:E,y:R+L*(b==="needle"?.6:.55),textAnchor:"middle",dominantBaseline:"middle",fill:"rgba(255,255,255,0.38)",fontSize:(L*.095).toFixed(1),fontFamily:"system-ui, sans-serif",fontWeight:"400",letterSpacing:"1.5",children:k.toUpperCase()})]})});Ry.displayName="MriAnalogGauge";function w1(e,n,o,i){const a=(i-90)*Math.PI/180;return{x:e+o*Math.cos(a),y:n+o*Math.sin(a)}}const vk=[[0,1,!0],[10,.5,!1],[-10,.5,!1],[20,.5,!1],[-20,.5,!1],[30,.75,!0],[-30,.75,!0],[45,.55,!1],[-45,.55,!1],[60,.75,!0],[-60,.75,!0]],Iy=y.forwardRef(({size:e,pitch:n,roll:o},i)=>{const a=`ah-clip-${y.useId()}`,l=e/2,u=e/2,f=e/2-2,h=f-4,m=h/50,v=n*m,x=o,b=h*2.8,C=f*.88,N=f*.08,k=[h*.18,h*.28,h*.38],j=f*.1,M=[];for(const E of[-30,-20,-10,-5,5,10,20,30]){const R=Math.abs(E),z=R>=20?2:R>=10?1:0;M.push({deg:E,y:-E*m,w:k[z],major:R%10===0})}return w.jsxs("svg",{ref:i,width:e,height:e,viewBox:`0 0 ${e} ${e}`,style:{display:"block",overflow:"visible"},children:[w.jsx("defs",{children:w.jsx("clipPath",{id:a,children:w.jsx("circle",{cx:l,cy:u,r:h})})}),w.jsx("g",{clipPath:`url(#${a})`,children:w.jsxs("g",{transform:`translate(${l},${u}) rotate(${x}) translate(0,${v.toFixed(2)})`,children:[w.jsx("rect",{x:-b,y:-b,width:b*2,height:b,fill:"#1a4fa0"}),w.jsx("rect",{x:-b,y:0,width:b*2,height:b,fill:"#7a5230"}),w.jsx("rect",{x:-b,y:-4,width:b*2,height:4,fill:"rgba(255,255,255,0.06)"}),w.jsx("line",{x1:-b,y1:0,x2:b,y2:0,stroke:"rgba(255,255,255,0.92)",strokeWidth:1.5}),M.map(({deg:E,y:R,w:z,major:L})=>w.jsxs("g",{children:[w.jsx("line",{x1:-z,y1:R,x2:z,y2:R,stroke:"rgba(255,255,255,0.75)",strokeWidth:L?1.2:.85,strokeLinecap:"round"}),L&&w.jsxs(w.Fragment,{children:[w.jsx("text",{x:-z-3,y:R,textAnchor:"end",dominantBaseline:"middle",fill:"rgba(255,255,255,0.65)",fontSize:j,fontFamily:"system-ui, sans-serif",children:Math.abs(E)}),w.jsx("text",{x:z+3,y:R,textAnchor:"start",dominantBaseline:"middle",fill:"rgba(255,255,255,0.65)",fontSize:j,fontFamily:"system-ui, sans-serif",children:Math.abs(E)})]})]},E))]})}),w.jsx("circle",{cx:l,cy:u,r:f,fill:"none",stroke:"rgba(0,0,0,0.75)",strokeWidth:5}),w.jsx("circle",{cx:l,cy:u,r:f,fill:"none",stroke:"rgba(255,255,255,0.07)",strokeWidth:1.5}),vk.map(([E,R,z])=>{const L=N*R,A=w1(l,u,C,E),D=w1(l,u,C-L,E);return w.jsx("line",{x1:A.x.toFixed(2),y1:A.y.toFixed(2),x2:D.x.toFixed(2),y2:D.y.toFixed(2),stroke:z?"rgba(255,255,255,0.85)":"rgba(255,255,255,0.5)",strokeWidth:z?1.5:1,strokeLinecap:"round"},E)}),w.jsx("g",{transform:`rotate(${x}, ${l}, ${u})`,children:w.jsx("path",{d:`M ${l} ${(u-C+1).toFixed(1)} L ${(l-5).toFixed(1)} ${(u-C+11).toFixed(1)} L ${(l+5).toFixed(1)} ${(u-C+11).toFixed(1)} Z`,fill:"white",opacity:.92})}),w.jsx("line",{x1:l-f*.38,y1:u,x2:l-f*.1,y2:u,stroke:"#f59e0b",strokeWidth:2.5,strokeLinecap:"round"}),w.jsx("line",{x1:l+f*.1,y1:u,x2:l+f*.38,y2:u,stroke:"#f59e0b",strokeWidth:2.5,strokeLinecap:"round"}),w.jsx("circle",{cx:l,cy:u,r:2.5,fill:"#f59e0b"}),w.jsx("line",{x1:l,y1:u,x2:l,y2:u-f*.1,stroke:"#f59e0b",strokeWidth:1.5,strokeLinecap:"round"}),w.jsx("line",{x1:l-f*.09,y1:u,x2:l-f*.14,y2:u,stroke:"white",strokeWidth:1,opacity:.35}),w.jsx("line",{x1:l+f*.09,y1:u,x2:l+f*.14,y2:u,stroke:"white",strokeWidth:1,opacity:.35})]})});Iy.displayName="MriArtificialHorizon";function In(e,n,o,i){const a=(i-90)*Math.PI/180;return{x:e+o*Math.cos(a),y:n+o*Math.sin(a)}}function b1(e,n,o,i,a){const l=In(e,n,o,i),u=In(e,n,o,i+a);return`M${l.x.toFixed(3)},${l.y.toFixed(3)} A${o},${o} 0 0 1 ${u.x.toFixed(3)},${u.y.toFixed(3)}`}const S1=35,yk=[[10,.6],[20,.8],[30,1],[-10,.6],[-20,.8],[-30,1]],zy=y.forwardRef(({size:e,roll:n},o)=>{const i=e/2,a=e/2,l=e/2-2,u=l*.6,f=l*.22,h=f*.4,m=l*.07,v=145,x=70,b=180-Math.max(-S1,Math.min(S1,n)),C=In(i,a,u,b),N=In(i,a,u,219),k=In(i,a,u,141),j=Math.abs(Math.round(n)),M=n<-.5?"PORT":n>.5?"STBD":"LEVEL",E=n<-.5?"rgba(255,110,110,0.85)":n>.5?"rgba(110,220,130,0.85)":"rgba(255,255,255,0.45)";return w.jsxs("svg",{ref:o,width:e,height:e,viewBox:`0 0 ${e} ${e}`,style:{display:"block"},children:[w.jsx("circle",{cx:i,cy:a,r:l,fill:"rgba(0,0,0,0.88)"}),w.jsx("circle",{cx:i,cy:a,r:l,fill:"none",stroke:"rgba(255,255,255,0.07)",strokeWidth:1.5}),w.jsx("path",{d:b1(i,a,u,v,x),fill:"none",stroke:"rgba(255,255,255,0.10)",strokeWidth:f,strokeLinecap:"round"}),w.jsx("path",{d:b1(i,a,u-f*.16,v,x),fill:"none",stroke:"rgba(255,255,255,0.07)",strokeWidth:f*.32,strokeLinecap:"round"}),yk.map(([R,z])=>{const L=180-R,A=m*z,D=In(i,a,u-f/2-2,L),F=In(i,a,u+f/2+2,L),W=In(i,a,u-f/2-A-4,L),J=Math.abs(R)===30;return w.jsxs("g",{children:[w.jsx("line",{x1:D.x.toFixed(2),y1:D.y.toFixed(2),x2:F.x.toFixed(2),y2:F.y.toFixed(2),stroke:J?"rgba(255,255,255,0.75)":"rgba(255,255,255,0.40)",strokeWidth:J?1.5:1,strokeLinecap:"round"}),J&&w.jsx("text",{x:W.x.toFixed(2),y:W.y.toFixed(2),textAnchor:"middle",dominantBaseline:"middle",fill:"rgba(255,255,255,0.45)",fontSize:(l*.095).toFixed(1),fontFamily:"system-ui, sans-serif",children:Math.abs(R)})]},R)}),(()=>{const R=In(i,a,u-f/2-2,180),z=In(i,a,u+f/2+2,180);return w.jsx("line",{x1:R.x.toFixed(2),y1:R.y.toFixed(2),x2:z.x.toFixed(2),y2:z.y.toFixed(2),stroke:"rgba(255,255,255,0.9)",strokeWidth:2,strokeLinecap:"round"})})(),w.jsx("circle",{cx:C.x.toFixed(2),cy:C.y.toFixed(2),r:h,fill:"#f59e0b"}),w.jsx("circle",{cx:C.x.toFixed(2),cy:C.y.toFixed(2),r:h,fill:"none",stroke:"rgba(0,0,0,0.30)",strokeWidth:1}),w.jsx("circle",{cx:(C.x-h*.25).toFixed(2),cy:(C.y-h*.28).toFixed(2),r:(h*.3).toFixed(2),fill:"rgba(255,255,255,0.35)"}),w.jsx("text",{x:N.x.toFixed(2),y:N.y.toFixed(2),textAnchor:"middle",dominantBaseline:"middle",fill:"rgba(255,110,110,0.80)",fontSize:(l*.13).toFixed(1),fontFamily:"system-ui, sans-serif",fontWeight:"700",children:"P"}),w.jsx("text",{x:k.x.toFixed(2),y:k.y.toFixed(2),textAnchor:"middle",dominantBaseline:"middle",fill:"rgba(110,220,130,0.80)",fontSize:(l*.13).toFixed(1),fontFamily:"system-ui, sans-serif",fontWeight:"700",children:"S"}),w.jsxs("text",{x:i,y:a-l*.1,textAnchor:"middle",dominantBaseline:"middle",fill:"white",fontSize:(l*.3).toFixed(1),fontFamily:"system-ui, sans-serif",fontWeight:"700",children:[j,"°"]}),w.jsx("text",{x:i,y:a+l*.16,textAnchor:"middle",dominantBaseline:"middle",fill:E,fontSize:(l*.1).toFixed(1),fontFamily:"system-ui, sans-serif",letterSpacing:"1.5",children:M}),w.jsx("text",{x:i,y:a+l*.36,textAnchor:"middle",dominantBaseline:"middle",fill:"rgba(255,255,255,0.22)",fontSize:(l*.085).toFixed(1),fontFamily:"system-ui, sans-serif",letterSpacing:"1.5",children:"HEEL"})]})});zy.displayName="MriClinometer";function Oy(e){return{viewBox:[e.icon[0],e.icon[1]],paths:e.icon[4]}}function Ht(e){const{icon:n,...o}=e;return{...o,icon:n?Oy(n):null}}function xk(e){return g.jsx(Sy,{...Ht(e)})}function C1(e){return g.jsx(gy,{...Ht(e)})}function wk(e){return g.jsx(vy,{...Ht(e)})}function bk(e){return g.jsx(My,{...Ht(e)})}function Sk(e){return g.jsx(Ay,{...Ht(e)})}function Ck(e){return g.jsx(Cy,{...Ht(e)})}function kk(e){return g.jsx(ky,{...Ht(e)})}function jk(e){return g.jsx(yy,{...Ht(e)})}function Ek(e){return g.jsx(by,{...Ht(e)})}function Nk(e){return g.jsx(xy,{...Ht(e)})}function Mk(e){return g.jsx(jy,{...Ht(e)})}function Ak(e){return g.jsx(Ey,{...Ht(e)})}function Pk(e){return g.jsx(Ny,{...Ht(e)})}function Rk({height:e=50,width:n=50}){return g.jsx("div",{style:{width:n,height:e}})}function Ik(e){return g.jsx(Py,{...Ht(e)})}function Tf({hudIconInfo:e}){const{shape:n,isShowing:o,...i}=e;switch(n){case"badge":return g.jsx(xk,{...i});case"circle-ring":return g.jsx(C1,{...i});case"circle-fill":return g.jsx(wk,{...i});case"diamond-ring":return g.jsx(bk,{...i});case"hexagon-ring":return g.jsx(Sk,{...i});case"horizontal-bar":return g.jsx(Ck,{...i});case"icon-percentage":return g.jsx(kk,{...i});case"inner-circle":return g.jsx(jk,{...i});case"pill-ring":return g.jsx(Ek,{...i});case"split-circle":return g.jsx(Nk,{...i});case"square-fill":return g.jsx(Mk,{...i});case"square-ring":return g.jsx(Ak,{...i});case"star-ring":return g.jsx(Pk,{...i});case"transparent":return g.jsx(Rk,{...i});case"triangle-ring":return g.jsx(Ik,{...i});default:return g.jsx(C1,{...i})}}function zk({isReversed:e=!1,iconsToShow:n=[],iconsToNotShow:o=[]}){const i=Te(x=>x.icons),a=Te(x=>x.showingOrder),l=Te(x=>x.designMode),u=Te(x=>x.designProgress),f=Pt(x=>x.icons),h=Pt(x=>x.globalColorSettings),m=Sf(x=>x.icons);let v=n.length?n:a;return e&&(v=[...v].reverse()),g.jsxs(g.Fragment,{children:[v.map(x=>{const b=i[x],C=f[x];if(!C)return null;const N=l?h.editSingleIconName===x?h.editSingleIconStage:0:C.currentEffect,k=C.colorEffects[N],j=m[x];if(!(b.isShowing&&!o.includes(x)||l))return null;const E={...b,progressColor:k.progressColor,progressContrast:k.progressContrast,progressDropShadowAmount:k.progressDropShadowAmount,progressValue:l?u:b.progressValue,iconColor:j?j.iconColor:k.iconColor,iconContrast:k.iconContrast,iconDropShadowAmount:k.iconDropShadowAmount,outlineColor:k.outlineColor,outlineContrast:k.outlineContrast,outlineDropShadowAmount:k.outlineDropShadowAmount,innerColor:k.innerColor};return g.jsx("div",{className:"my-auto",children:g.jsx(Tf,{hudIconInfo:E})},x)}),Object.entries(m).map(([x,b])=>!b.name||!b.isShowing&&!l?null:g.jsx("div",{className:"my-auto",children:g.jsx(Tf,{hudIconInfo:b})},x))]})}const Ok={biohazard:hg,database:Eg,dollarsign:Mg,dumbbell:vg,exclamation:pd,lightbulb:lg,locationarrow:fg,swimming:wg,wind:Sg,bolt:xg,brain:Ng,carbattery:K4,droplet:a5,fire:X4,gaspump:H4,gear:n5,heart:e5,house:o5,info:L4,meteor:gg,microphone:fd,oilcan:jg,parachutebox:mg,person:F4,question:Z4,radiation:B4,shield:d5,skull:i5,star:Y4,tachometer:bg,thermometer:W4,triangle:p5,trophy:u5,user:ug,userslash:dd,virus:Q4,wrench:t5,xmark:c5,zap:s5};function Lf(e){if(!e)return null;const n=e.toLowerCase().replace(/[^a-z0-9]/g,"");return Ok[n]??null}const _k=new Set(["progressColor","outlineColor","iconColor","innerColor","progressContrast","outlineContrast","iconContrast","progressDropShadowAmount","outlineDropShadowAmount","iconDropShadowAmount","progressValue","icon","iconName","isShowing","name"]);function Dk({panel:e}){const[n,o]=y.useState(!1),i=Te(a=>a.icons.health);if(e.hudIconInfo){const a={...e.hudIconInfo};typeof a.icon=="string"?a.icon=Lf(a.icon):!a.icon&&a.iconName&&(a.icon=Lf(a.iconName));const l=a.shape??i.shape??"inner-circle",f={...ho(l,{}),height:i.height,width:i.width,...i.ringSize!=null&&{ringSize:i.ringSize},...i.borderGap!=null&&{borderGap:i.borderGap},...i.iconScaling!=null&&{iconScaling:i.iconScaling},shape:l};for(const[h,m]of Object.entries(a))m!=null&&_k.has(h)&&(f[h]=m);return f.progressColor||(f.progressColor="#3b82f6"),f.outlineColor||(f.outlineColor="rgba(59,130,246,0.4)"),f.iconColor||(f.iconColor="#ffffff"),f.progressContrast==null&&(f.progressContrast=100),f.iconContrast==null&&(f.iconContrast=100),f.outlineContrast==null&&(f.outlineContrast=100),f.progressDropShadowAmount==null&&(f.progressDropShadowAmount=0),f.iconDropShadowAmount==null&&(f.iconDropShadowAmount=0),f.outlineDropShadowAmount==null&&(f.outlineDropShadowAmount=0),f.progressValue==null&&(f.progressValue=0),g.jsxs("div",{className:"flex flex-col items-center gap-[6px] text-white text-[12px] text-center",children:[g.jsx(Tf,{hudIconInfo:f}),e.title&&g.jsx("div",{className:"opacity-85 text-[11px] mt-1",children:e.title}),e.value!==void 0&&g.jsx("div",{className:"font-bold",children:e.value})]})}return g.jsxs("div",{className:"flex flex-col items-center gap-[4px] text-white text-[12px] text-center w-[56px]",children:[e.icon&&!n&&g.jsx("div",{className:"w-[44px] h-[44px] rounded-full flex items-center justify-center p-[2px] bg-black/[0.12] border border-white/[0.06]",children:g.jsx("img",{src:`assets/panels/${e.icon}`,alt:e.title||e.id,className:"w-[36px] h-[36px] object-contain block mx-auto",onError:a=>{o(!0),a.target.style.display="none"}})}),n&&g.jsx("div",{className:"text-[14px] opacity-90",children:e.title?e.title.charAt(0):"#"}),e.title&&g.jsx("div",{className:"text-[11px] opacity-90 mt-[2px]",children:e.title}),e.value!==void 0&&g.jsx("div",{className:"font-bold text-[12px]",children:e.value})]})}function Tk(){const e=cs(o=>o.panels),n=Object.values(e).filter(o=>o.isShowing!==!1);return n.length?g.jsx("div",{className:"flex flex-row gap-[10px] pointer-events-none",children:n.map(o=>g.jsx("div",{className:"my-auto pointer-events-auto",children:g.jsx(Dk,{panel:o})},o.id))}):null}/*!
+For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return v.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},rk="DialogDescriptionWarning",ok=({contentRef:e,descriptionId:n})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Av(rk).contentName}}.`;return v.useEffect(()=>{var i;const a=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");n&&a&&(document.getElementById(n)||console.warn(r))},[r,e,n]),null},ik=gv,Pv=xv,l0=wv,Rv=bv,Iv=Cv,zv=jv,sk=Nv,xs='[cmdk-group=""]',yd='[cmdk-group-items=""]',ak='[cmdk-group-heading=""]',Ov='[cmdk-item=""]',P1=`${Ov}:not([aria-disabled="true"])`,Yd="cmdk-item-select",ci="data-value",lk=(e,n,r)=>GC(e,n,r),Tv=v.createContext(void 0),Vs=()=>v.useContext(Tv),_v=v.createContext(void 0),c0=()=>v.useContext(_v),Dv=v.createContext(void 0),Lv=v.forwardRef((e,n)=>{let r=ui(()=>{var z,K;return{search:"",value:(K=(z=e.value)!=null?z:e.defaultValue)!=null?K:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),i=ui(()=>new Set),a=ui(()=>new Map),l=ui(()=>new Map),u=ui(()=>new Set),d=Fv(e),{label:h,children:m,value:y,onValueChange:x,filter:b,shouldFilter:C,loop:N,disablePointerSelection:E=!1,vimBindings:j=!0,...A}=e,k=fn(),M=fn(),P=fn(),L=v.useRef(null),H=xk();Ao(()=>{if(y!==void 0){let z=y.trim();r.current.value=z,_.emit()}},[y]),Ao(()=>{H(6,de)},[]);let _=v.useMemo(()=>({subscribe:z=>(u.current.add(z),()=>u.current.delete(z)),snapshot:()=>r.current,setState:(z,K,ee)=>{var Q,ne,le,he;if(!Object.is(r.current[z],K)){if(r.current[z]=K,z==="search")U(),Z(),H(1,ie);else if(z==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let fe=document.getElementById(P);fe?fe.focus():(Q=document.getElementById(k))==null||Q.focus()}if(H(7,()=>{var fe;r.current.selectedItemId=(fe=se())==null?void 0:fe.id,_.emit()}),ee||H(5,de),((ne=d.current)==null?void 0:ne.value)!==void 0){let fe=K??"";(he=(le=d.current).onValueChange)==null||he.call(le,fe);return}}_.emit()}},emit:()=>{u.current.forEach(z=>z())}}),[]),F=v.useMemo(()=>({value:(z,K,ee)=>{var Q;K!==((Q=l.current.get(z))==null?void 0:Q.value)&&(l.current.set(z,{value:K,keywords:ee}),r.current.filtered.items.set(z,W(K,ee)),H(2,()=>{Z(),_.emit()}))},item:(z,K)=>(i.current.add(z),K&&(a.current.has(K)?a.current.get(K).add(z):a.current.set(K,new Set([z]))),H(3,()=>{U(),Z(),r.current.value||ie(),_.emit()}),()=>{l.current.delete(z),i.current.delete(z),r.current.filtered.items.delete(z);let ee=se();H(4,()=>{U(),(ee==null?void 0:ee.getAttribute("id"))===z&&ie(),_.emit()})}),group:z=>(a.current.has(z)||a.current.set(z,new Set),()=>{l.current.delete(z),a.current.delete(z)}),filter:()=>d.current.shouldFilter,label:h||e["aria-label"],getDisablePointerSelection:()=>d.current.disablePointerSelection,listId:k,inputId:P,labelId:M,listInnerRef:L}),[]);function W(z,K){var ee,Q;let ne=(Q=(ee=d.current)==null?void 0:ee.filter)!=null?Q:lk;return z?ne(z,r.current.search,K):0}function Z(){if(!r.current.search||d.current.shouldFilter===!1)return;let z=r.current.filtered.items,K=[];r.current.filtered.groups.forEach(Q=>{let ne=a.current.get(Q),le=0;ne.forEach(he=>{let fe=z.get(he);le=Math.max(fe,le)}),K.push([Q,le])});let ee=L.current;ce().sort((Q,ne)=>{var le,he;let fe=Q.getAttribute("id"),Ie=ne.getAttribute("id");return((le=z.get(Ie))!=null?le:0)-((he=z.get(fe))!=null?he:0)}).forEach(Q=>{let ne=Q.closest(yd);ne?ne.appendChild(Q.parentElement===ne?Q:Q.closest(`${yd} > *`)):ee.appendChild(Q.parentElement===ee?Q:Q.closest(`${yd} > *`))}),K.sort((Q,ne)=>ne[1]-Q[1]).forEach(Q=>{var ne;let le=(ne=L.current)==null?void 0:ne.querySelector(`${xs}[${ci}="${encodeURIComponent(Q[0])}"]`);le==null||le.parentElement.appendChild(le)})}function ie(){let z=ce().find(ee=>ee.getAttribute("aria-disabled")!=="true"),K=z==null?void 0:z.getAttribute(ci);_.setState("value",K||void 0)}function U(){var z,K,ee,Q;if(!r.current.search||d.current.shouldFilter===!1){r.current.filtered.count=i.current.size;return}r.current.filtered.groups=new Set;let ne=0;for(let le of i.current){let he=(K=(z=l.current.get(le))==null?void 0:z.value)!=null?K:"",fe=(Q=(ee=l.current.get(le))==null?void 0:ee.keywords)!=null?Q:[],Ie=W(he,fe);r.current.filtered.items.set(le,Ie),Ie>0&&ne++}for(let[le,he]of a.current)for(let fe of he)if(r.current.filtered.items.get(fe)>0){r.current.filtered.groups.add(le);break}r.current.filtered.count=ne}function de(){var z,K,ee;let Q=se();Q&&(((z=Q.parentElement)==null?void 0:z.firstChild)===Q&&((ee=(K=Q.closest(xs))==null?void 0:K.querySelector(ak))==null||ee.scrollIntoView({block:"nearest"})),Q.scrollIntoView({block:"nearest"}))}function se(){var z;return(z=L.current)==null?void 0:z.querySelector(`${Ov}[aria-selected="true"]`)}function ce(){var z;return Array.from(((z=L.current)==null?void 0:z.querySelectorAll(P1))||[])}function ae(z){let K=ce()[z];K&&_.setState("value",K.getAttribute(ci))}function oe(z){var K;let ee=se(),Q=ce(),ne=Q.findIndex(he=>he===ee),le=Q[ne+z];(K=d.current)!=null&&K.loop&&(le=ne+z<0?Q[Q.length-1]:ne+z===Q.length?Q[0]:Q[ne+z]),le&&_.setState("value",le.getAttribute(ci))}function Y(z){let K=se(),ee=K==null?void 0:K.closest(xs),Q;for(;ee&&!Q;)ee=z>0?yk(ee,xs):vk(ee,xs),Q=ee==null?void 0:ee.querySelector(P1);Q?_.setState("value",Q.getAttribute(ci)):oe(z)}let I=()=>ae(ce().length-1),q=z=>{z.preventDefault(),z.metaKey?I():z.altKey?Y(1):oe(1)},T=z=>{z.preventDefault(),z.metaKey?ae(0):z.altKey?Y(-1):oe(-1)};return v.createElement(En.div,{ref:n,tabIndex:-1,...A,"cmdk-root":"",onKeyDown:z=>{var K;(K=A.onKeyDown)==null||K.call(A,z);let ee=z.nativeEvent.isComposing||z.keyCode===229;if(!(z.defaultPrevented||ee))switch(z.key){case"n":case"j":{j&&z.ctrlKey&&q(z);break}case"ArrowDown":{q(z);break}case"p":case"k":{j&&z.ctrlKey&&T(z);break}case"ArrowUp":{T(z);break}case"Home":{z.preventDefault(),ae(0);break}case"End":{z.preventDefault(),I();break}case"Enter":{z.preventDefault();let Q=se();if(Q){let ne=new Event(Yd);Q.dispatchEvent(ne)}}}}},v.createElement("label",{"cmdk-label":"",htmlFor:F.inputId,id:F.labelId,style:bk},h),ec(e,z=>v.createElement(_v.Provider,{value:_},v.createElement(Tv.Provider,{value:F},z))))}),ck=v.forwardRef((e,n)=>{var r,i;let a=fn(),l=v.useRef(null),u=v.useContext(Dv),d=Vs(),h=Fv(e),m=(i=(r=h.current)==null?void 0:r.forceMount)!=null?i:u==null?void 0:u.forceMount;Ao(()=>{if(!m)return d.item(a,u==null?void 0:u.id)},[m]);let y=$v(a,l,[e.value,e.children,l],e.keywords),x=c0(),b=Kr(H=>H.value&&H.value===y.current),C=Kr(H=>m||d.filter()===!1?!0:H.search?H.filtered.items.get(a)>0:!0);v.useEffect(()=>{let H=l.current;if(!(!H||e.disabled))return H.addEventListener(Yd,N),()=>H.removeEventListener(Yd,N)},[C,e.onSelect,e.disabled]);function N(){var H,_;E(),(_=(H=h.current).onSelect)==null||_.call(H,y.current)}function E(){x.setState("value",y.current,!0)}if(!C)return null;let{disabled:j,value:A,onSelect:k,forceMount:M,keywords:P,...L}=e;return v.createElement(En.div,{ref:Yr(l,n),...L,id:a,"cmdk-item":"",role:"option","aria-disabled":!!j,"aria-selected":!!b,"data-disabled":!!j,"data-selected":!!b,onPointerMove:j||d.getDisablePointerSelection()?void 0:E,onClick:j?void 0:N},e.children)}),uk=v.forwardRef((e,n)=>{let{heading:r,children:i,forceMount:a,...l}=e,u=fn(),d=v.useRef(null),h=v.useRef(null),m=fn(),y=Vs(),x=Kr(C=>a||y.filter()===!1?!0:C.search?C.filtered.groups.has(u):!0);Ao(()=>y.group(u),[]),$v(u,d,[e.value,e.heading,h]);let b=v.useMemo(()=>({id:u,forceMount:a}),[a]);return v.createElement(En.div,{ref:Yr(d,n),...l,"cmdk-group":"",role:"presentation",hidden:x?void 0:!0},r&&v.createElement("div",{ref:h,"cmdk-group-heading":"","aria-hidden":!0,id:m},r),ec(e,C=>v.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?m:void 0},v.createElement(Dv.Provider,{value:b},C))))}),dk=v.forwardRef((e,n)=>{let{alwaysRender:r,...i}=e,a=v.useRef(null),l=Kr(u=>!u.search);return!r&&!l?null:v.createElement(En.div,{ref:Yr(a,n),...i,"cmdk-separator":"",role:"separator"})}),fk=v.forwardRef((e,n)=>{let{onValueChange:r,...i}=e,a=e.value!=null,l=c0(),u=Kr(m=>m.search),d=Kr(m=>m.selectedItemId),h=Vs();return v.useEffect(()=>{e.value!=null&&l.setState("search",e.value)},[e.value]),v.createElement(En.input,{ref:n,...i,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":h.listId,"aria-labelledby":h.labelId,"aria-activedescendant":d,id:h.inputId,type:"text",value:a?e.value:u,onChange:m=>{a||l.setState("search",m.target.value),r==null||r(m.target.value)}})}),pk=v.forwardRef((e,n)=>{let{children:r,label:i="Suggestions",...a}=e,l=v.useRef(null),u=v.useRef(null),d=Kr(m=>m.selectedItemId),h=Vs();return v.useEffect(()=>{if(u.current&&l.current){let m=u.current,y=l.current,x,b=new ResizeObserver(()=>{x=requestAnimationFrame(()=>{let C=m.offsetHeight;y.style.setProperty("--cmdk-list-height",C.toFixed(1)+"px")})});return b.observe(m),()=>{cancelAnimationFrame(x),b.unobserve(m)}}},[]),v.createElement(En.div,{ref:Yr(l,n),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":d,"aria-label":i,id:h.listId},ec(e,m=>v.createElement("div",{ref:Yr(u,h.listInnerRef),"cmdk-list-sizer":""},m)))}),hk=v.forwardRef((e,n)=>{let{open:r,onOpenChange:i,overlayClassName:a,contentClassName:l,container:u,...d}=e;return v.createElement(ik,{open:r,onOpenChange:i},v.createElement(Pv,{container:u},v.createElement(l0,{"cmdk-overlay":"",className:a}),v.createElement(Rv,{"aria-label":e.label,"cmdk-dialog":"",className:l},v.createElement(Lv,{ref:n,...d}))))}),mk=v.forwardRef((e,n)=>Kr(r=>r.filtered.count===0)?v.createElement(En.div,{ref:n,...e,"cmdk-empty":"",role:"presentation"}):null),gk=v.forwardRef((e,n)=>{let{progress:r,children:i,label:a="Loading...",...l}=e;return v.createElement(En.div,{ref:n,...l,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},ec(e,u=>v.createElement("div",{"aria-hidden":!0},u)))}),Bt=Object.assign(Lv,{List:pk,Item:ck,Input:fk,Group:uk,Separator:dk,Dialog:hk,Empty:mk,Loading:gk});function yk(e,n){let r=e.nextElementSibling;for(;r;){if(r.matches(n))return r;r=r.nextElementSibling}}function vk(e,n){let r=e.previousElementSibling;for(;r;){if(r.matches(n))return r;r=r.previousElementSibling}}function Fv(e){let n=v.useRef(e);return Ao(()=>{n.current=e}),n}var Ao=typeof window>"u"?v.useEffect:v.useLayoutEffect;function ui(e){let n=v.useRef();return n.current===void 0&&(n.current=e()),n}function Kr(e){let n=c0(),r=()=>e(n.snapshot());return v.useSyncExternalStore(n.subscribe,r,r)}function $v(e,n,r,i=[]){let a=v.useRef(),l=Vs();return Ao(()=>{var u;let d=(()=>{var m;for(let y of r){if(typeof y=="string")return y.trim();if(typeof y=="object"&&"current"in y)return y.current?(m=y.current.textContent)==null?void 0:m.trim():a.current}})(),h=i.map(m=>m.trim());l.value(e,d,h),(u=n.current)==null||u.setAttribute(ci,d),a.current=d}),a}var xk=()=>{let[e,n]=v.useState(),r=ui(()=>new Map);return Ao(()=>{r.current.forEach(i=>i()),r.current=new Map},[e]),(i,a)=>{r.current.set(i,a),n({})}};function wk(e){let n=e.type;return typeof n=="function"?n(e.props):"render"in n?n.render(e.props):e}function ec({asChild:e,children:n},r){return e&&v.isValidElement(n)?v.cloneElement(wk(n),{ref:n.ref},r(n.props.children)):r(n)}var bk={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const u0=v.forwardRef(({className:e,...n},r)=>w.jsx(Bt,{ref:r,className:Se("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...n}));u0.displayName=Bt.displayName;const d0=v.forwardRef(({className:e,...n},r)=>w.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[w.jsx(Kb,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),w.jsx(Bt.Input,{ref:r,className:Se("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...n})]}));d0.displayName=Bt.Input.displayName;const f0=v.forwardRef(({className:e,...n},r)=>w.jsx(Bt.List,{ref:r,className:Se("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...n}));f0.displayName=Bt.List.displayName;const p0=v.forwardRef((e,n)=>w.jsx(Bt.Empty,{ref:n,className:"py-6 text-center text-sm",...e}));p0.displayName=Bt.Empty.displayName;const h0=v.forwardRef(({className:e,...n},r)=>w.jsx(Bt.Group,{ref:r,className:Se("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...n}));h0.displayName=Bt.Group.displayName;const Sk=v.forwardRef(({className:e,...n},r)=>w.jsx(Bt.Separator,{ref:r,className:Se("-mx-1 h-px bg-border",e),...n}));Sk.displayName=Bt.Separator.displayName;const Tl=v.forwardRef(({className:e,...n},r)=>w.jsx(Bt.Item,{ref:r,className:Se("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground",e),...n}));Tl.displayName=Bt.Item.displayName;const Ck=Pv,kk=sk,Hv=v.forwardRef(({className:e,...n},r)=>w.jsx(l0,{ref:r,className:Se("fixed inset-0 z-50 bg-black/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n}));Hv.displayName=l0.displayName;const jk={bottom:"fixed inset-x-0 bottom-0 mt-24 h-auto max-h-[90vh] rounded-t-[10px] border-t border-x data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom",top:"fixed inset-x-0 top-0 mb-24 h-auto max-h-[90vh] rounded-b-[10px] border-b border-x data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top",right:"fixed inset-y-0 right-0 h-full w-full max-w-2xl rounded-l-[10px] border-l border-y data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right",left:"fixed inset-y-0 left-0 h-full w-full max-w-2xl rounded-r-[10px] border-r border-y data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left"},Ek=v.forwardRef(({className:e,children:n,side:r="bottom",hideHandle:i=!1,...a},l)=>w.jsxs(Ck,{children:[w.jsx(Hv,{}),w.jsxs(Rv,{ref:l,className:Se("z-50 flex flex-col border-border bg-card shadow-2xl transition-transform duration-300","data-[state=open]:animate-in data-[state=closed]:animate-out",jk[r],e),...a,children:[r==="bottom"&&!i&&w.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted shrink-0"}),w.jsx("div",{className:Se("flex-1 overflow-y-auto",r==="bottom"?"p-6 pt-2":"p-0"),children:n}),w.jsxs(kk,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[w.jsx(L2,{className:"h-4 w-4"}),w.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ek.displayName="MriDrawerContent";const Nk=v.forwardRef(({className:e,...n},r)=>w.jsx(Iv,{ref:r,className:Se("text-lg font-semibold leading-none tracking-tight",e),...n}));Nk.displayName=Iv.displayName;const Mk=v.forwardRef(({className:e,...n},r)=>w.jsx(zv,{ref:r,className:Se("text-sm text-muted-foreground",e),...n}));Mk.displayName=zv.displayName;function Ak({options:e,value:n,onChange:r,placeholder:i,searchPlaceholder:a="Search...",emptyMessage:l="No results found.",className:u,disabled:d,isLoading:h=!1,error:m,portal:y=!0,size:x="default",clearable:b=!1,creatable:C=!1,createLabelPrefix:N="Create"}){const[E,j]=v.useState(!1),[A,k]=v.useState(""),M=e.find(L=>String(L.value)===String(n)),P=C&&A.trim()!==""&&!e.some(L=>String(L.label).toLowerCase()===A.toLowerCase());return w.jsxs(fv,{open:E,onOpenChange:j,children:[w.jsx(pv,{asChild:!0,children:w.jsxs("div",{className:"w-full space-y-1",children:[w.jsxs(xi,{variant:"outline",role:"combobox",disabled:d||h,isLoading:h,"aria-expanded":E,size:x,className:Se("w-full justify-between bg-background border-border hover:bg-muted hover:text-foreground text-foreground",m&&"border-destructive focus:ring-destructive",u),children:[w.jsx("span",{className:"truncate",children:M?M.label:w.jsx("span",{className:"text-muted-foreground font-normal",children:i??"Select..."})}),w.jsx(D2,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]}),typeof m=="string"&&w.jsx("p",{className:"text-[10px] font-medium text-destructive px-1 animate-in fade-in slide-in-from-top-1",children:m})]})}),w.jsx(o0,{portal:y,className:"w-[--radix-popover-trigger-width] p-0 border-border bg-popover z-[100]",children:w.jsxs(u0,{className:"bg-transparent text-popover-foreground",children:[w.jsx(d0,{placeholder:a,className:"h-9",value:A,onValueChange:k}),w.jsx(p0,{children:P?w.jsxs("div",{className:"flex items-center gap-2 cursor-pointer hover:text-primary transition-colors px-4 py-2",onClick:()=>{r(A),j(!1),k("")},children:[w.jsx(r1,{className:"w-4 h-4"}),w.jsxs("span",{children:[N,' "',A,'"']})]}):w.jsx("span",{children:l})}),w.jsx(f0,{className:"max-h-60 overflow-auto p-1 custom-scrollbar",onWheel:L=>L.stopPropagation(),children:w.jsxs(h0,{children:[e.map(L=>w.jsxs(Tl,{value:`${String(L.label)} ${String(L.value)}`,onSelect:()=>{const H=String(L.value);b&&String(n)===H?r(""):r(H),j(!1),k("")},className:"aria-selected:bg-accent aria-selected:text-accent-foreground rounded-md cursor-pointer",children:[w.jsx(_2,{className:Se("mr-2 h-4 w-4 text-primary",String(n)===String(L.value)?"opacity-100":"opacity-0")}),w.jsx("span",{className:"truncate",children:L.label})]},L.value)),P&&w.jsxs(Tl,{value:A,onSelect:()=>{r(A),j(!1),k("")},className:"text-primary font-medium",children:[w.jsx(r1,{className:"mr-2 h-4 w-4"}),N,' "',A,'"']})]})})]})})]})}function Pk({options:e,value:n,onChange:r,placeholder:i,searchPlaceholder:a="Search...",emptyMessage:l="No results found.",className:u,disabled:d,isLoading:h=!1,error:m,portal:y=!0,maxVisibleValues:x=3}){const[b,C]=v.useState(!1),N=v.useCallback(j=>{n.includes(j)?r(n.filter(A=>A!==j)):r([...n,j])},[n,r]),E=e.filter(j=>n.includes(j.value));return w.jsxs(fv,{open:b,onOpenChange:C,children:[w.jsx(pv,{asChild:!0,children:w.jsxs("div",{className:"w-full space-y-1",children:[w.jsxs(xi,{variant:"outline",role:"combobox",disabled:d||h,isLoading:h,"aria-expanded":b,className:Se("w-full justify-between bg-background border-border hover:bg-muted hover:text-foreground text-foreground min-h-[40px] h-auto py-2",m&&"border-destructive focus:ring-destructive",u),children:[w.jsx("div",{className:"flex flex-wrap gap-1 items-center max-w-[90%]",children:E.length>0?w.jsxs(w.Fragment,{children:[E.slice(0,x).map(j=>w.jsxs(n1,{variant:"secondary",className:"flex items-center gap-1 pr-1 bg-primary/10 text-primary border-primary/20 hover:bg-primary/20 transition-colors",children:[w.jsx("span",{className:"truncate max-w-[100px]",children:j.label}),w.jsx("button",{className:"ml-1 ring-offset-background rounded-full outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",onKeyDown:A=>{A.key==="Enter"&&N(j.value)},onMouseDown:A=>{A.preventDefault(),A.stopPropagation()},onClick:()=>N(j.value),children:w.jsx(L2,{className:"h-3 w-3 text-primary/60 hover:text-primary transition-colors"})})]},j.value)),E.length>x&&w.jsxs(n1,{variant:"secondary",className:"bg-muted text-muted-foreground border-border",children:["+",E.length-x]})]}):w.jsx("span",{className:"text-muted-foreground font-normal",children:i??"Select options..."})}),w.jsx(D2,{className:"h-4 w-4 shrink-0 opacity-50"})]}),typeof m=="string"&&w.jsx("p",{className:"text-[10px] font-medium text-destructive px-1 animate-in fade-in slide-in-from-top-1",children:m})]})}),w.jsx(o0,{portal:y,className:"w-[--radix-popover-trigger-width] p-0 border-border bg-popover z-[100] shadow-2xl overflow-hidden rounded-xl",children:w.jsxs(u0,{className:"bg-transparent text-popover-foreground",children:[w.jsx(d0,{placeholder:a,className:"h-10 border-none focus:ring-0 bg-transparent"}),w.jsx(p0,{className:"py-6 text-sm text-center text-muted-foreground",children:l}),w.jsx(f0,{className:"max-h-64 overflow-auto p-1.5 space-y-0.5 custom-scrollbar",onWheel:j=>j.stopPropagation(),children:w.jsx(h0,{children:e.map(j=>w.jsx(Tl,{value:j.label,onSelect:()=>N(j.value),className:"aria-selected:bg-primary/10 aria-selected:text-primary rounded-lg cursor-pointer flex items-center justify-between py-2.5 px-3 transition-all active:scale-[0.98]",children:w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx("div",{className:Se("w-4 h-4 rounded border flex items-center justify-center transition-all duration-200",n.includes(j.value)?"bg-primary border-primary":"border-border bg-background"),children:n.includes(j.value)&&w.jsx(_2,{className:"h-3 w-3 text-primary-foreground stroke-[3px]"})}),w.jsx("span",{className:Se("text-sm font-medium",n.includes(j.value)?"text-primary":"text-foreground"),children:j.label})]})},j.value))})})]})})]})}function Rk(e){return e.multiple===!0?w.jsx(Pk,{...e}):w.jsx(Ak,{...e})}var Ik=(e,n,r,i,a,l,u,d)=>{let h=document.documentElement,m=["light","dark"];function y(C){(Array.isArray(e)?e:[e]).forEach(N=>{let E=N==="class",j=E&&l?a.map(A=>l[A]||A):a;E?(h.classList.remove(...j),h.classList.add(l&&l[C]?l[C]:C)):h.setAttribute(N,C)}),x(C)}function x(C){d&&m.includes(C)&&(h.style.colorScheme=C)}function b(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(i)y(i);else try{let C=localStorage.getItem(n)||r,N=u&&C==="system"?b():C;y(N)}catch{}};v.createContext(void 0);v.memo(({forcedTheme:e,storageKey:n,attribute:r,enableSystem:i,enableColorScheme:a,defaultTheme:l,value:u,themes:d,nonce:h,scriptProps:m})=>{let y=JSON.stringify([r,n,l,e,d,u,i,a]).slice(1,-1);return v.createElement("script",{...m,suppressHydrationWarning:!0,nonce:typeof window>"u"?h:"",dangerouslySetInnerHTML:{__html:`(${Ik.toString()})(${y})`}})});Array.from({length:24},(e,n)=>n);Array.from({length:60},(e,n)=>n);const zk={default:"from-primary/10 to-primary/5 border-primary/20 text-primary",warning:"from-amber-500/10 to-amber-500/5 border-amber-500/20 text-amber-500",info:"from-blue-500/10 to-blue-500/5 border-blue-500/20 text-blue-500",success:"from-emerald-500/10 to-emerald-500/5 border-emerald-500/20 text-emerald-500",purple:"from-purple-500/10 to-purple-500/5 border-purple-500/20 text-purple-500",indigo:"from-indigo-500/10 to-indigo-500/5 border-indigo-500/20 text-indigo-500",orange:"from-orange-500/10 to-orange-500/5 border-orange-500/20 text-orange-500",destructive:"from-destructive/10 to-destructive/5 border-destructive/20 text-destructive"},Ok=v.forwardRef(({title:e,value:n,icon:r,variant:i="default",trend:a,className:l,...u},d)=>w.jsxs("div",{ref:d,className:Se("p-6 rounded-2xl border bg-gradient-to-br transition-all hover:scale-[1.02] duration-300 group",zk[i],l),...u,children:[w.jsx("div",{className:"flex items-start justify-between mb-4",children:w.jsx("div",{className:"p-2.5 rounded-xl bg-background/50 border border-current/10 group-hover:border-current/20 transition-colors",children:r})}),w.jsxs("div",{className:"space-y-1",children:[w.jsx("p",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider",children:e}),w.jsx("h3",{className:"text-3xl font-black tracking-tight text-foreground tabular-nums",children:n}),a&&w.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:a})]})]}));Ok.displayName="MriStatCard";var ks=function(){return ks=Object.assign||function(e){for(var n,r=1,i=arguments.length;r=0||(a[r]=e[r]);return a}function R1(e){var n=v.useRef(e),r=v.useRef(function(i){n.current&&n.current(i)});return n.current=e,r.current}var Ts=function(e,n,r){return n===void 0&&(n=0),r===void 0&&(r=1),e>r?r:e0:j.buttons>0)&&a.current?l(I1(a.current,j,d.current)):E(!1)},N=function(){return E(!1)};function E(j){var A=h.current,k=Xd(a.current),M=j?k.addEventListener:k.removeEventListener;M(A?"touchmove":"mousemove",C),M(A?"touchend":"mouseup",N)}return[function(j){var A=j.nativeEvent,k=a.current;if(k&&(z1(A),!(function(P,L){return L&&!js(P)})(A,h.current)&&k)){if(js(A)){h.current=!0;var M=A.changedTouches||[];M.length&&(d.current=M[0].identifier)}k.focus(),l(I1(k,A,d.current)),E(!0)}},function(j){var A=j.which||j.keyCode;A<37||A>40||(j.preventDefault(),u({left:A===39?.05:A===37?-.05:0,top:A===40?.05:A===38?-.05:0}))},E]},[u,l]),y=m[0],x=m[1],b=m[2];return v.useEffect(function(){return b},[b]),ke.createElement("div",Vv({},i,{onTouchStart:y,onMouseDown:y,className:"react-colorful__interactive",ref:a,onKeyDown:x,tabIndex:0,role:"slider"}))}),Wv=function(e){return e.filter(Boolean).join(" ")},Uv=function(e){var n=e.color,r=e.left,i=e.top,a=i===void 0?.5:i,l=Wv(["react-colorful__pointer",e.className]);return ke.createElement("div",{className:l,style:{top:100*a+"%",left:100*r+"%"}},ke.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:n}}))},Co=function(e,n,r){return n===void 0&&(n=0),r===void 0&&(r=Math.pow(10,n)),Math.round(r*e)/r},Lk=function(e){var n=e.s,r=e.v,i=e.a,a=(200-n)*r/100;return{h:Co(e.h),s:Co(a>0&&a<200?n*r/100/(a<=100?a:200-a)*100:0),l:Co(a/2),a:Co(i,2)}},Gd=function(e){var n=Lk(e);return"hsl("+n.h+", "+n.s+"%, "+n.l+"%)"};ke.memo(function(e){var n=e.hue,r=e.onChange,i=Wv(["react-colorful__hue",e.className]);return ke.createElement("div",{className:i},ke.createElement(Bv,{onMove:function(a){r({h:360*a.left})},onKey:function(a){r({h:Ts(n+360*a.left,0,360)})},"aria-label":"Hue","aria-valuenow":Co(n),"aria-valuemax":"360","aria-valuemin":"0"},ke.createElement(Uv,{className:"react-colorful__hue-pointer",left:n/360,color:Gd({h:n,s:100,v:100,a:1})})))});ke.memo(function(e){var n=e.hsva,r=e.onChange,i={backgroundColor:Gd({h:n.h,s:100,v:100,a:1})};return ke.createElement("div",{className:"react-colorful__saturation",style:i},ke.createElement(Bv,{onMove:function(a){r({s:100*a.left,v:100-100*a.top})},onKey:function(a){r({s:Ts(n.s+100*a.left,0,100),v:Ts(n.v-100*a.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Co(n.s)+"%, Brightness "+Co(n.v)+"%"},ke.createElement(Uv,{className:"react-colorful__saturation-pointer",top:1-n.v/100,left:n.s/100,color:Gd(n)})))});var Fk={grad:.9,turn:360,rad:360/(2*Math.PI)},lr=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},ht=function(e,n,r){return n===void 0&&(n=0),r===void 0&&(r=Math.pow(10,n)),Math.round(r*e)/r+0},dn=function(e,n,r){return n===void 0&&(n=0),r===void 0&&(r=1),e>r?r:e>n?e:n},Yv=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},O1=function(e){return{r:dn(e.r,0,255),g:dn(e.g,0,255),b:dn(e.b,0,255),a:dn(e.a)}},vd=function(e){return{r:ht(e.r),g:ht(e.g),b:ht(e.b),a:ht(e.a,3)}},$k=/^#([0-9a-f]{3,8})$/i,dl=function(e){var n=e.toString(16);return n.length<2?"0"+n:n},Xv=function(e){var n=e.r,r=e.g,i=e.b,a=e.a,l=Math.max(n,r,i),u=l-Math.min(n,r,i),d=u?l===n?(r-i)/u:l===r?2+(i-n)/u:4+(n-r)/u:0;return{h:60*(d<0?d+6:d),s:l?u/l*100:0,v:l/255*100,a}},Gv=function(e){var n=e.h,r=e.s,i=e.v,a=e.a;n=n/360*6,r/=100,i/=100;var l=Math.floor(n),u=i*(1-r),d=i*(1-(n-l)*r),h=i*(1-(1-n+l)*r),m=l%6;return{r:255*[i,d,u,u,h,i][m],g:255*[h,i,i,d,u,u][m],b:255*[u,u,h,i,i,d][m],a}},T1=function(e){return{h:Yv(e.h),s:dn(e.s,0,100),l:dn(e.l,0,100),a:dn(e.a)}},_1=function(e){return{h:ht(e.h),s:ht(e.s),l:ht(e.l),a:ht(e.a,3)}},D1=function(e){return Gv((r=(n=e).s,{h:n.h,s:(r*=((i=n.l)<50?i:100-i)/100)>0?2*r/(i+r)*100:0,v:i+r,a:n.a}));var n,r,i},Es=function(e){return{h:(n=Xv(e)).h,s:(a=(200-(r=n.s))*(i=n.v)/100)>0&&a<200?r*i/100/(a<=100?a:200-a)*100:0,l:a/2,a:n.a};var n,r,i,a},Hk=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Vk=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Bk=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Wk=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Kd={string:[[function(e){var n=$k.exec(e);return n?(e=n[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?ht(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?ht(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var n=Bk.exec(e)||Wk.exec(e);return n?n[2]!==n[4]||n[4]!==n[6]?null:O1({r:Number(n[1])/(n[2]?100/255:1),g:Number(n[3])/(n[4]?100/255:1),b:Number(n[5])/(n[6]?100/255:1),a:n[7]===void 0?1:Number(n[7])/(n[8]?100:1)}):null},"rgb"],[function(e){var n=Hk.exec(e)||Vk.exec(e);if(!n)return null;var r,i,a=T1({h:(r=n[1],i=n[2],i===void 0&&(i="deg"),Number(r)*(Fk[i]||1)),s:Number(n[3]),l:Number(n[4]),a:n[5]===void 0?1:Number(n[5])/(n[6]?100:1)});return D1(a)},"hsl"]],object:[[function(e){var n=e.r,r=e.g,i=e.b,a=e.a,l=a===void 0?1:a;return lr(n)&&lr(r)&&lr(i)?O1({r:Number(n),g:Number(r),b:Number(i),a:Number(l)}):null},"rgb"],[function(e){var n=e.h,r=e.s,i=e.l,a=e.a,l=a===void 0?1:a;if(!lr(n)||!lr(r)||!lr(i))return null;var u=T1({h:Number(n),s:Number(r),l:Number(i),a:Number(l)});return D1(u)},"hsl"],[function(e){var n=e.h,r=e.s,i=e.v,a=e.a,l=a===void 0?1:a;if(!lr(n)||!lr(r)||!lr(i))return null;var u=(function(d){return{h:Yv(d.h),s:dn(d.s,0,100),v:dn(d.v,0,100),a:dn(d.a)}})({h:Number(n),s:Number(r),v:Number(i),a:Number(l)});return Gv(u)},"hsv"]]},L1=function(e,n){for(var r=0;r=.5},e.prototype.toHex=function(){return n=vd(this.rgba),r=n.r,i=n.g,a=n.b,u=(l=n.a)<1?dl(ht(255*l)):"","#"+dl(r)+dl(i)+dl(a)+u;var n,r,i,a,l,u},e.prototype.toRgb=function(){return vd(this.rgba)},e.prototype.toRgbString=function(){return n=vd(this.rgba),r=n.r,i=n.g,a=n.b,(l=n.a)<1?"rgba("+r+", "+i+", "+a+", "+l+")":"rgb("+r+", "+i+", "+a+")";var n,r,i,a,l},e.prototype.toHsl=function(){return _1(Es(this.rgba))},e.prototype.toHslString=function(){return n=_1(Es(this.rgba)),r=n.h,i=n.s,a=n.l,(l=n.a)<1?"hsla("+r+", "+i+"%, "+a+"%, "+l+")":"hsl("+r+", "+i+"%, "+a+"%)";var n,r,i,a,l},e.prototype.toHsv=function(){return n=Xv(this.rgba),{h:ht(n.h),s:ht(n.s),v:ht(n.v),a:ht(n.a,3)};var n},e.prototype.invert=function(){return cr({r:255-(n=this.rgba).r,g:255-n.g,b:255-n.b,a:n.a});var n},e.prototype.saturate=function(n){return n===void 0&&(n=.1),cr(xd(this.rgba,n))},e.prototype.desaturate=function(n){return n===void 0&&(n=.1),cr(xd(this.rgba,-n))},e.prototype.grayscale=function(){return cr(xd(this.rgba,-1))},e.prototype.lighten=function(n){return n===void 0&&(n=.1),cr(F1(this.rgba,n))},e.prototype.darken=function(n){return n===void 0&&(n=.1),cr(F1(this.rgba,-n))},e.prototype.rotate=function(n){return n===void 0&&(n=15),this.hue(this.hue()+n)},e.prototype.alpha=function(n){return typeof n=="number"?cr({r:(r=this.rgba).r,g:r.g,b:r.b,a:n}):ht(this.rgba.a,3);var r},e.prototype.hue=function(n){var r=Es(this.rgba);return typeof n=="number"?cr({h:n,s:r.s,l:r.l,a:r.a}):ht(r.h)},e.prototype.isEqual=function(n){return this.toHex()===cr(n).toHex()},e})(),cr=function(e){return e instanceof qd?e:new qd(e)},$1=[],Yk=function(e){e.forEach(function(n){$1.indexOf(n)<0&&(n(qd,Kd),$1.push(n))})};function Xk(e,n){var r={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},i={};for(var a in r)i[r[a]]=a;var l={};e.prototype.toName=function(u){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var d,h,m=i[this.toHex()];if(m)return m;if(u!=null&&u.closest){var y=this.toRgb(),x=1/0,b="black";if(!l.length)for(var C in r)l[C]=new e(r[C]).toRgb();for(var N in r){var E=(d=y,h=l[N],Math.pow(d.r-h.r,2)+Math.pow(d.g-h.g,2)+Math.pow(d.b-h.b,2));Ew.jsx("div",{className:"relative w-full overflow-auto",children:w.jsx("table",{ref:r,className:Se("w-full caption-bottom text-sm",e),...n})}));Gk.displayName="MriTable";const Kk=v.forwardRef(({className:e,...n},r)=>w.jsx("thead",{ref:r,className:Se("[&_tr]:border-b",e),...n}));Kk.displayName="MriTableHeader";const qk=v.forwardRef(({className:e,...n},r)=>w.jsx("tbody",{ref:r,className:Se("[&_tr:last-child]:border-0",e),...n}));qk.displayName="MriTableBody";const Qk=v.forwardRef(({className:e,...n},r)=>w.jsx("tfoot",{ref:r,className:Se("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...n}));Qk.displayName="MriTableFooter";const Jk=v.forwardRef(({className:e,...n},r)=>w.jsx("tr",{ref:r,className:Se("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...n}));Jk.displayName="MriTableRow";const Zk=v.forwardRef(({className:e,...n},r)=>w.jsx("th",{ref:r,className:Se("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[0.5px]",e),...n}));Zk.displayName="MriTableHead";const e7=v.forwardRef(({className:e,...n},r)=>w.jsx("td",{ref:r,className:Se("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[0.5px]",e),...n}));e7.displayName="MriTableCell";const t7=v.forwardRef(({className:e,...n},r)=>w.jsx("caption",{ref:r,className:Se("mt-4 text-sm text-muted-foreground",e),...n}));t7.displayName="MriTableCaption";function Ee(e,n,r){const i=[];return e&&i.push(`drop-shadow(0px 0px ${e}px ${n})`),r!==100&&i.push(`contrast(${r}%)`),i.join(" ")}function en({icon:e,cx:n,cy:r,scaling:i,color:a,translateX:l=0,translateY:u=0,filter:d}){const[h,m]=e.viewBox,y=n*2*i,x=n-y/2+l,b=r-y/2+u,C=Array.isArray(e.paths)?e.paths:[e.paths];return w.jsx("svg",{x,y:b,width:y,height:y,viewBox:`0 0 ${h} ${m}`,style:d?{filter:d}:void 0,overflow:"visible",children:C.map((N,E)=>w.jsx("path",{d:N,fill:a},E))})}en.displayName="MriShapeIcon";const Kv=v.forwardRef(({displayOutline:e=!0,height:n=50,width:r=50,icon:i=null,iconColor:a="currentColor",iconContrast:l=100,iconDropShadowAmount:u=0,iconScaling:d=.4,iconTranslateX:h=0,iconTranslateY:m=0,innerColor:y="#212121",outlineColor:x="currentColor",outlineContrast:b=100,outlineDropShadowAmount:C=0,progressColor:N="currentColor",progressContrast:E=100,progressDropShadowAmount:j=0,progressValue:A=100,ringSize:k=4,rotateDegree:M=0,translateX:P=0,translateY:L=0},H)=>{const _=Math.max(n,r)/2,F=_-k/2,W=F*2*Math.PI,Z=W-A/100*W,ie=[M>0?`rotate(${M} ${_} ${_})`:"",`translate(${P} ${L})`].filter(Boolean).join(" "),U=F-k/2+.1;return w.jsxs("svg",{ref:H,width:_*2,height:_*2,viewBox:`0 0 ${_*2} ${_*2}`,overflow:"visible",children:[w.jsxs("g",{transform:ie,children:[w.jsx("circle",{fill:y,stroke:"transparent",strokeDashoffset:0,strokeDasharray:`${W} ${W}`,strokeWidth:k-.6,r:U,cx:_,cy:_,transform:`rotate(-90, ${_}, ${_})`}),e&&w.jsx("circle",{fill:"transparent",stroke:x,strokeDashoffset:0,strokeDasharray:`${W} ${W}`,strokeWidth:k,r:F,cx:_,cy:_,transform:`rotate(-90, ${_}, ${_})`,style:{filter:Ee(C,x,b)}}),w.jsx("circle",{stroke:N,fill:"transparent",strokeDashoffset:Z,strokeDasharray:`${W} ${W}`,strokeWidth:k,r:F,cx:_,cy:_,transform:`rotate(-90, ${_}, ${_})`,style:{transition:"stroke-dashoffset 0.6s cubic-bezier(0.215, 0.61, 0.355, 1)",filter:Ee(j,N,E)}})]}),i&&w.jsx("g",{style:{filter:Ee(u,a,l)},children:w.jsx(en,{icon:i,cx:_,cy:_,scaling:d,color:a,translateX:h,translateY:m})})]})});Kv.displayName="MriCircleRing";const qv=v.forwardRef(({height:e=50,width:n=50,icon:r=null,iconColor:i="currentColor",iconContrast:a=100,iconDropShadowAmount:l=0,iconScaling:u=.4,iconTranslateX:d=0,iconTranslateY:h=1,progressColor:m="currentColor",progressContrast:y=100,progressDropShadowAmount:x=0,progressValue:b=100,borderSize:C=4,rotateDegree:N=0,translateX:E=0,translateY:j=0,name:A="icon"},k)=>{const M=Math.max(e,n),P=M/2,L=P,H=P-L/2,_=M-b/100*M,F=[N>0?`rotate(${N} ${P} ${e/4})`:"",`translate(${E} ${j})`].filter(Boolean).join(" "),W=`${A||"icon"}-cut-out-circle`;return w.jsxs("svg",{ref:k,width:P*2,height:P*2,viewBox:`0 0 ${P*2} ${P*2}`,overflow:"visible",children:[w.jsx("defs",{children:w.jsx("clipPath",{id:W,children:w.jsx("circle",{strokeWidth:L,r:P,cx:P,cy:P})})}),w.jsxs("g",{transform:F,children:[w.jsx("circle",{stroke:"black",fill:"transparent",strokeWidth:C,r:H*2+C/2,cx:P,cy:P,shapeRendering:"geometricPrecision"}),w.jsx("line",{x1:"50%",y1:"100%",x2:"50%",y2:"0%",stroke:m,strokeDasharray:M,strokeDashoffset:_,strokeWidth:M,clipPath:`url(#${W})`,shapeRendering:"geometricPrecision",style:{transition:"stroke-dashoffset 0.6s cubic-bezier(0.215, 0.61, 0.355, 1)",filter:Ee(x,m,y)}})]}),r&&w.jsx("g",{style:{filter:Ee(l,i,a)},children:w.jsx(en,{icon:r,cx:P,cy:P,scaling:u,color:i,translateX:d,translateY:h})})]})});qv.displayName="MriCircleFill";const Qv=v.forwardRef(({displayOutline:e=!0,height:n=50,width:r=50,icon:i=null,iconColor:a="currentColor",iconContrast:l=100,iconDropShadowAmount:u=0,iconScaling:d=.4,iconTranslateX:h=0,iconTranslateY:m=1,innerColor:y="#212121",outlineColor:x="currentColor",outlineContrast:b=100,outlineDropShadowAmount:C=0,progressColor:N="currentColor",progressContrast:E=100,progressDropShadowAmount:j=0,progressValue:A=100,ringSize:k=4,borderGap:M=.85,rotateDegree:P=0,translateX:L=0,translateY:H=0},_)=>{const F=Math.max(n,r)/2,W=F-k/2,Z=W*2*Math.PI,ie=W*(M??.85),U=Z*(M??.85),de=U-A/100*U,se=[P>0?`rotate(${P} ${F} ${F})`:"",`translate(${L} ${H})`].filter(Boolean).join(" ");return w.jsxs("svg",{ref:_,width:F*2,height:F*2,viewBox:`0 0 ${F*2} ${F*2}`,overflow:"visible",children:[w.jsxs("g",{transform:se,children:[w.jsx("circle",{fill:y,r:W+1,cx:F,cy:F,transform:`rotate(-90, ${F}, ${F})`}),e&&w.jsx("circle",{fill:"transparent",stroke:x,strokeDashoffset:0,strokeDasharray:`${U} ${U}`,strokeWidth:k,r:ie,cx:F,cy:F,transform:`rotate(-90, ${F}, ${F})`,style:{filter:Ee(C,x,b)}}),w.jsx("circle",{stroke:N,fill:"transparent",strokeDashoffset:de,strokeDasharray:`${U} ${U}`,strokeWidth:k,r:ie,cx:F,cy:F,transform:`rotate(-90, ${F}, ${F})`,style:{transition:"stroke-dashoffset 0.6s cubic-bezier(0.215, 0.61, 0.355, 1)",filter:Ee(j,N,E)}})]}),i&&w.jsx("g",{style:{filter:Ee(u,a,l)},children:w.jsx(en,{icon:i,cx:F,cy:F,scaling:d,color:a,translateX:h,translateY:m})})]})});Qv.displayName="MriInnerCircle";function H1(e,n,r,i){const a=e-(100-n)/100*e;let l=0,u=`0 ${Math.floor(i/2)}`;const d=(e-r*i)/r;if(a=a){const m=a-l;if(m<.1)break;return u+=` ${m} ${e}`,u}u+=` ${d} ${i}`,l+=d+i}const h=u.lastIndexOf(" ");return u=u.substring(0,h),u+=` ${e}`,u}const Jv=v.forwardRef(({height:e=50,width:n=50,icon:r=null,iconColor:i="currentColor",iconContrast:a=100,iconDropShadowAmount:l=0,iconScaling:u=.4,iconTranslateX:d=0,iconTranslateY:h=1,innerColor:m="#212121",outlineColor:y="currentColor",outlineContrast:x=100,outlineDropShadowAmount:b=0,progressColor:C="currentColor",progressContrast:N=100,progressDropShadowAmount:E=0,progressValue:j=100,ringSize:A=4,borderGap:k=.85,dashes:M=8,gap:P=4,rotateDegree:L=0,translateX:H=0,translateY:_=0},F)=>{const W=Math.max(e,n)/2,Z=W-A/2,ie=Z*2*Math.PI,U=Z*k,de=ie*k,se=H1(de,j,M,P),ce=H1(de,100,M,P),ae=[L>0?`rotate(${L} ${W} ${W})`:"",`translate(${H} ${_})`].filter(Boolean).join(" ");return w.jsxs("svg",{ref:F,width:W*2,height:W*2,viewBox:`0 0 ${W*2} ${W*2}`,overflow:"visible",children:[w.jsxs("g",{transform:ae,children:[w.jsx("circle",{fill:m,r:Z+3,cx:W,cy:W,transform:`rotate(-90, ${W}, ${W})`}),w.jsx("circle",{fill:"transparent",stroke:y,strokeDasharray:ce,strokeWidth:A,r:U,cx:W,cy:W,transform:`rotate(-90, ${W}, ${W})`,style:{filter:Ee(b,y,x)}}),w.jsx("circle",{stroke:C,fill:"transparent",strokeDasharray:se,strokeWidth:A,r:U,cx:W,cy:W,transform:`rotate(-90, ${W}, ${W})`,style:{filter:Ee(E,C,N)}})]}),r&&w.jsx("g",{style:{filter:Ee(l,i,a)},children:w.jsx(en,{icon:r,cx:W,cy:W,scaling:u,color:i,translateX:d,translateY:h})})]})});Jv.displayName="MriSplitCircle";const Zv=v.forwardRef(({displayOutline:e=!0,height:n=50,icon:r=null,iconColor:i="currentColor",iconScaling:a=.45,iconTranslateX:l=0,iconTranslateY:u=0,innerColor:d="#212121",innerColorOpacity:h=1,outlineColor:m="currentColor",outlineColorOpacity:y=.4,progressColor:x="currentColor",progressValue:b=100,ringSize:C=4,rotateDegree:N=0,translateX:E=0,translateY:j=0,maxLengthDisplay:A=100,maxProgressValue:k=100,showInnerBG:M=!1,displayNumber:P=0,text:L=""},H)=>{const _=n/2,F=_-C/2,W=F*2*Math.PI,Z=Math.min(b,k)/k*100,ie=W-Z/(100/A)/100*W,U=W-A/100*W,[de,se]=v.useState(P),ce=v.useRef({from:P,to:P,start:0,raf:0});v.useEffect(()=>{const ne=ce.current;cancelAnimationFrame(ne.raf),ne.from=de,ne.to=P,ne.start=performance.now();const le=600;function he(fe){const Ie=fe-ne.start,Le=Math.min(Ie/le,1);se(ne.from+(ne.to-ne.from)*Le),Le<1&&(ne.raf=requestAnimationFrame(he))}return ne.raf=requestAnimationFrame(he),()=>cancelAnimationFrame(ne.raf)},[P]);const ae=[N>0?`rotate(${N} ${_} ${_})`:"",`translate(${E} ${j})`].filter(Boolean).join(" ");let oe=null,Y=[0,0,512,512];r&&(Y=[0,0,r.viewBox[0],r.viewBox[1]],oe=r.paths);const I=_*2*a,q=_-I/2+l,T=_-I/2+u,[z,K,ee,Q]=Y;return w.jsxs("svg",{ref:H,width:_*2,height:_*2,viewBox:`0 0 ${_*2} ${_*2}`,overflow:"visible",children:[w.jsxs("g",{transform:ae,children:[e&&w.jsx("circle",{opacity:y,fill:"transparent",stroke:m,strokeDashoffset:U,strokeDasharray:`${W} ${W}`,strokeWidth:C,r:F,cx:_,cy:_,transform:`rotate(-90, ${_}, ${_})`}),M&&w.jsx("circle",{fill:d,fillOpacity:h,stroke:"transparent",strokeWidth:C-.6,r:F-C/2+.1,cx:_,cy:_}),w.jsx("circle",{stroke:x,fill:"transparent",strokeDashoffset:ie,strokeDasharray:`${W} ${W}`,strokeWidth:C,r:F,cx:_,cy:_,transform:`rotate(-90, ${_}, ${_})`,style:{transition:"stroke-dashoffset 0.6s linear"}})]}),L&&w.jsxs(w.Fragment,{children:[w.jsx("text",{className:"vehicle-number",fill:"white",x:"50%",y:"45%",dominantBaseline:"middle",textAnchor:"middle",children:Math.floor(de)}),w.jsx("text",{className:"vehicle-text",fill:"white",x:"50%",y:"70%",dominantBaseline:"middle",textAnchor:"middle",children:L})]}),oe&&w.jsx("svg",{x:q,y:T,width:I,height:I,viewBox:`${z} ${K} ${ee} ${Q}`,children:Array.isArray(oe)?oe.map((ne,le)=>w.jsx("path",{d:ne,fill:i},le)):w.jsx("path",{d:oe,fill:i})})]})});Zv.displayName="MriPartialCircleRing";const ex=v.forwardRef(({displayOutline:e=!0,height:n=50,width:r=20,icon:i=null,iconColor:a="currentColor",iconContrast:l=100,iconDropShadowAmount:u=0,iconScaling:d=.45,iconTranslateX:h=0,iconTranslateY:m=0,innerColor:y="#212121",outlineColor:x="currentColor",outlineContrast:b=100,outlineDropShadowAmount:C=0,progressColor:N="currentColor",progressContrast:E=100,progressDropShadowAmount:j=0,progressValue:A=100,ringSize:k=4,rotateDegree:M=0,translateX:P=0,translateY:L=0},H)=>{const _=r/2,F=2*(n-r)+Math.PI*(r-k),W=F-A/100*F,Z=r/2,ie=n/2,U=[M>0?`rotate(${M} ${Z} ${ie})`:"",`translate(${P} ${L})`].filter(Boolean).join(" ");return w.jsxs("svg",{ref:H,width:r,height:n,viewBox:`0 0 ${r} ${n}`,overflow:"visible",children:[w.jsxs("g",{transform:U,children:[w.jsx("rect",{x:0,y:0,width:r,height:n,rx:_,ry:_,fill:y}),e&&w.jsx("rect",{x:k/2,y:k/2,width:r-k,height:n-k,rx:_-k/2,ry:_-k/2,fill:"transparent",stroke:x,strokeWidth:k,style:{filter:Ee(C,x,b)}}),w.jsx("rect",{x:k/2,y:k/2,width:r-k,height:n-k,rx:_-k/2,ry:_-k/2,fill:"transparent",stroke:N,strokeWidth:k,strokeDasharray:`${F} ${F}`,strokeDashoffset:W,style:{transition:"stroke-dashoffset 0.6s cubic-bezier(0.215, 0.61, 0.355, 1)",filter:Ee(j,N,E)}})]}),i&&w.jsx("g",{style:{filter:Ee(u,a,l)},children:w.jsx(en,{icon:i,cx:Z,cy:ie,scaling:d,color:a,translateX:h,translateY:m})})]})});ex.displayName="MriPillRing";const tx=v.forwardRef(({height:e=50,width:n=50,icon:r=null,iconColor:i="currentColor",iconContrast:a=100,iconDropShadowAmount:l=0,iconScaling:u=.28,innerColor:d="#212121",outlineColor:h="currentColor",outlineContrast:m=100,outlineDropShadowAmount:y=0,progressColor:x="currentColor",progressContrast:b=100,progressDropShadowAmount:C=0,progressValue:N=100,translateX:E=0,translateY:j=0,xAxisRound:A=5,yAxisRound:k=5,barHeight:M,cardRadius:P},L)=>{const H=e*.07,_=e*u,F=e*.09,W=M??e*.078,Z=n-2*H,ie=N/100*Z,U=Math.min(A,W/2),de=Math.min(k,W/2),se=E||j?`translate(${E} ${j})`:void 0;return w.jsxs("div",{ref:L,style:{width:n,padding:H,borderRadius:P??e*.056,backgroundColor:d,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",boxSizing:"border-box",transform:se},children:[r&&w.jsx("div",{style:{marginBottom:F,filter:Ee(l,i,a)},children:w.jsx("svg",{width:_,height:_,viewBox:`0 0 ${r.viewBox[0]} ${r.viewBox[1]}`,style:{display:"block",fill:i},children:Array.isArray(r.paths)?r.paths.map((ce,ae)=>w.jsx("path",{d:ce,fill:i},ae)):w.jsx("path",{d:r.paths,fill:i})})}),w.jsxs("svg",{width:Z,height:W,overflow:"visible",style:{display:"block"},children:[w.jsx("rect",{width:Z,height:W,fill:h,rx:U,ry:de,style:{filter:Ee(y,h,m)}}),w.jsx("rect",{width:ie,height:W,fill:x,rx:U,ry:de,style:{transition:"width 0.6s cubic-bezier(0.215, 0.61, 0.355, 1)",filter:Ee(C,x,b)}})]})]})});tx.displayName="MriBadgeShape";const nx=v.forwardRef(({height:e=50,width:n=50,icon:r=null,iconColor:i="currentColor",iconContrast:a=100,iconDropShadowAmount:l=0,iconScaling:u=.45,iconTranslateX:d=0,iconTranslateY:h=0,outlineColor:m="currentColor",outlineContrast:y=100,outlineDropShadowAmount:x=0,progressColor:b="currentColor",progressContrast:C=100,progressDropShadowAmount:N=0,progressValue:E=100,rotateDegree:j=0,translateX:A=0,translateY:k=0},M)=>{const P=n-E/100*n,L=[j>0?`rotate(${j} ${e/2} ${n/4})`:"",`translate(${A} ${k})`].filter(Boolean).join(" ");return w.jsx("div",{ref:M,className:"border-4 border-black relative",children:w.jsxs("svg",{height:e-8,width:n,children:[w.jsxs("g",{transform:L,children:[w.jsx("line",{stroke:m,x1:"0%",y1:"50%",x2:"100%",y2:"50%",strokeWidth:e-8,style:{filter:Ee(x,m,y)}}),w.jsx("line",{x1:"0%",y1:"50%",x2:"100%",y2:"50%",stroke:b,fill:"transparent",strokeDasharray:n,strokeDashoffset:P,strokeWidth:e-8,style:{transition:"stroke-dashoffset 0.6s cubic-bezier(0.215, 0.61, 0.355, 1)",filter:Ee(N,b,C)}})]}),r&&w.jsx("g",{dominantBaseline:"middle",style:{filter:Ee(l,i,a)},children:w.jsx(en,{icon:r,cx:n/2,cy:(e-8)/2,scaling:u,color:i,translateX:d,translateY:h})})]})})});nx.displayName="MriHorizontalBar";const rx=v.forwardRef(({height:e=50,width:n=50,icon:r=null,iconColor:i="currentColor",iconContrast:a=100,iconDropShadowAmount:l=0,iconScaling:u=.45,progressColor:d="currentColor",progressValue:h=100},m)=>w.jsxs("div",{ref:m,style:{display:"flex",flexDirection:"column",alignItems:"center",color:d,fontSize:e,width:n,height:e},children:[r&&w.jsx("svg",{width:n*u*2,height:n*u*2,viewBox:`0 0 ${r.viewBox[0]} ${r.viewBox[1]}`,style:{display:"block",fill:i,filter:Ee(l,i,a)},children:Array.isArray(r.paths)?r.paths.map((y,x)=>w.jsx("path",{d:y,fill:i},x)):w.jsx("path",{d:r.paths,fill:i})}),w.jsxs("span",{style:{fontSize:e*.3,fontWeight:700,color:d},children:[Math.round(h),"%"]})]}));rx.displayName="MriIconPercentage";const ox=v.forwardRef(({height:e=50,width:n=50,icon:r=null,iconColor:i="currentColor",iconContrast:a=100,iconDropShadowAmount:l=0,iconScaling:u=.45,iconTranslateX:d=0,iconTranslateY:h=3,innerColor:m="#212121",outlineColor:y="currentColor",outlineContrast:x=100,outlineDropShadowAmount:b=0,progressColor:C="currentColor",progressContrast:N=100,progressDropShadowAmount:E=0,progressValue:j=100,borderSize:A=3,name:k="icon"},M)=>{const P=j/100*e,L=`${k}-sq-fill-clip`;return w.jsxs("svg",{ref:M,width:n,height:e,overflow:"visible",children:[w.jsx("defs",{children:w.jsx("clipPath",{id:L,children:w.jsx("rect",{width:n,height:e,rx:2,ry:2})})}),w.jsx("rect",{width:n,height:e,fill:m}),w.jsx("rect",{x:0,y:e-P,width:n,height:P,fill:C,clipPath:`url(#${L})`,style:{transition:"y 0.6s cubic-bezier(0.215, 0.61, 0.355, 1), height 0.6s cubic-bezier(0.215, 0.61, 0.355, 1)",filter:Ee(E,C,N)}}),w.jsx("rect",{width:n-.2,height:e-.2,fill:"transparent",stroke:y,strokeWidth:A,style:{filter:Ee(b,y,x)}}),r&&w.jsx("g",{style:{filter:Ee(l,i,a)},children:w.jsx(en,{icon:r,cx:n/2,cy:e/2,scaling:u,color:i,translateX:d,translateY:h})})]})});ox.displayName="MriSquareFill";const ix=v.forwardRef(({displayOutline:e=!0,height:n=50,width:r=50,icon:i=null,iconColor:a="currentColor",iconContrast:l=100,iconDropShadowAmount:u=0,iconScaling:d=.45,iconTranslateX:h=0,iconTranslateY:m=3,innerColor:y="#212121",outlineColor:x="currentColor",outlineContrast:b=100,outlineDropShadowAmount:C=0,progressColor:N="currentColor",progressContrast:E=100,progressDropShadowAmount:j=0,progressValue:A=100,ringSize:k=4,rotateDegree:M=0,translateX:P=0,translateY:L=0},H)=>{const _=(r+n)*2,F=_-A/100*_,W=[M>0?`rotate(${M} 0 0)`:"",`translate(${P} ${L})`].filter(Boolean).join(" ");return w.jsxs("svg",{ref:H,width:r,height:n,transform:W,overflow:"visible",children:[w.jsxs("g",{children:[e&&w.jsx("rect",{stroke:x,width:r,height:n,strokeWidth:k,strokeDasharray:`${_} ${_}`,shapeRendering:"geometricPrecision",strokeDashoffset:0,fill:"transparent",style:{filter:Ee(C,x,b)}}),w.jsx("rect",{fill:y,transform:`translate(${k/2-.1} ${k/2-.3})`,stroke:"transparent",shapeRendering:"geometricPrecision",width:r-k+.2,height:n-k+.2,strokeDasharray:`${_} ${_}`,strokeDashoffset:0}),w.jsx("rect",{stroke:N,fill:"transparent",width:r,height:n,strokeWidth:k-.1,strokeDasharray:`${_} ${_}`,strokeDashoffset:F,style:{transition:"stroke-dashoffset 0.6s cubic-bezier(0.215, 0.61, 0.355, 1)",filter:Ee(j,N,E)}})]}),i&&w.jsx("g",{style:{filter:Ee(u,a,l)},children:w.jsx(en,{icon:i,cx:r/2,cy:n/2,scaling:d,color:a,translateX:h,translateY:m})})]})});ix.displayName="MriSquareRing";const bd="M19 1l-5.545 11.236L1 13.819l9 8.776L7.91 37 19 30.764 30.09 37 28 22.595l9-8.776-12.455-1.583z",sx=v.forwardRef(({displayOutline:e=!0,height:n=50,width:r=50,icon:i=null,iconColor:a="currentColor",iconContrast:l=100,iconDropShadowAmount:u=0,iconScaling:d=.35,iconTranslateX:h=0,iconTranslateY:m=3,innerColor:y="#212121",outlineColor:x="currentColor",outlineContrast:b=100,outlineDropShadowAmount:C=0,progressColor:N="currentColor",progressContrast:E=100,progressDropShadowAmount:j=0,progressValue:A=100,ringSize:k=4,rotateDegree:M=0,translateX:P=0,translateY:L=0},H)=>{const _=v.useRef(null),[F,W]=v.useState(0);v.useEffect(()=>{if(_.current)try{W(_.current.getTotalLength())}catch{}},[]);const Z=F-A/100*F,ie=19,U=19,de=k/Math.min(r/38,n/40),se=`star-clip-${v.useId()}`,ce=[M>0?`rotate(${M} ${ie} ${U})`:"",`translate(${P} ${L})`].filter(Boolean).join(" ");return w.jsxs("svg",{ref:H,width:r,height:n,viewBox:"0 0 38 40",overflow:"visible",children:[w.jsx("defs",{children:w.jsx("clipPath",{id:se,children:w.jsx("path",{d:bd})})}),w.jsxs("g",{transform:ce,children:[w.jsx("rect",{width:"38",height:"40",fill:y,clipPath:`url(#${se})`}),e&&F>0&&w.jsx("path",{d:bd,fill:"transparent",stroke:x,strokeWidth:de,strokeLinejoin:"round",strokeDasharray:`${F} ${F}`,strokeDashoffset:0,style:{filter:Ee(C,x,b)}}),w.jsx("path",{ref:_,d:bd,stroke:N,strokeWidth:de,strokeLinejoin:"round",fill:"transparent",strokeDasharray:F>0?`${F} ${F}`:void 0,strokeDashoffset:F>0?Z:void 0,style:{transition:"stroke-dashoffset 0.6s cubic-bezier(0.215, 0.61, 0.355, 1)",filter:Ee(j,N,E)}})]}),i&&w.jsx("g",{style:{filter:Ee(u,a,l)},children:w.jsx(en,{icon:i,cx:ie,cy:U,scaling:d,color:a,translateX:h,translateY:m})})]})});sx.displayName="MriStarRing";const Sd="M8.384 1.226a.463.463 0 0 0-.768 0l-4.56 6.468a.537.537 0 0 0 0 .612l4.56 6.469a.463.463 0 0 0 .768 0l4.56-6.469a.537.537 0 0 0 0-.612l-4.56-6.468z",ax=v.forwardRef(({displayOutline:e=!0,height:n=50,width:r=50,icon:i=null,iconColor:a="currentColor",iconContrast:l=100,iconDropShadowAmount:u=0,iconScaling:d=.35,iconTranslateX:h=0,iconTranslateY:m=.7,innerColor:y="#212121",outlineColor:x="currentColor",outlineContrast:b=100,outlineDropShadowAmount:C=0,progressColor:N="currentColor",progressContrast:E=100,progressDropShadowAmount:j=0,progressValue:A=100,ringSize:k=4,rotateDegree:M=0,translateX:P=0,translateY:L=0},H)=>{const _=v.useRef(null),[F,W]=v.useState(0);v.useEffect(()=>{if(_.current)try{W(_.current.getTotalLength())}catch{}},[]);const Z=F-A/100*F,ie=[M>0?`rotate(${M} 8 8)`:"",`translate(${P} ${L})`].filter(Boolean).join(" "),U=8,de=8,se=k/(Math.min(r,n)/16);return w.jsx("div",{ref:H,style:{margin:"0 -7px"},children:w.jsxs("svg",{version:"1.1",width:r,height:n,viewBox:"0 0 16 16",transform:"scale(-1,1)",overflow:"visible",children:[w.jsxs("g",{transform:ie,children:[e&&F>0&&w.jsx("path",{d:Sd,fill:"transparent",stroke:x,strokeWidth:se,strokeDasharray:`${F} ${F}`,strokeDashoffset:0,style:{filter:Ee(C,x,b)}}),w.jsx("svg",{viewBox:"-1.5 4.5 19 7",children:w.jsx("path",{d:Sd,strokeWidth:k-.3,fill:y,stroke:"transparent"})}),w.jsx("path",{ref:_,d:Sd,stroke:N,strokeWidth:se,fill:"transparent",strokeDasharray:F>0?`${F} ${F}`:void 0,strokeDashoffset:F>0?Z:void 0,style:{transition:"stroke-dashoffset 0.6s cubic-bezier(0.215, 0.61, 0.355, 1)",filter:Ee(j,N,E)}})]}),i&&w.jsx("g",{style:{filter:Ee(u,a,l)},children:w.jsx(en,{icon:i,cx:U,cy:de,scaling:d,color:a,translateX:h,translateY:m})})]})})});ax.displayName="MriDiamondRing";const Cd="M21 2L3 12v10l18 10 18-10V12L21 2z",lx=v.forwardRef(({displayOutline:e=!0,height:n=50,width:r=50,icon:i=null,iconColor:a="currentColor",iconContrast:l=100,iconDropShadowAmount:u=0,iconScaling:d=.35,iconTranslateX:h=0,iconTranslateY:m=.7,innerColor:y="#212121",outlineColor:x="currentColor",outlineContrast:b=100,outlineDropShadowAmount:C=0,progressColor:N="currentColor",progressContrast:E=100,progressDropShadowAmount:j=0,progressValue:A=100,ringSize:k=4,rotateDegree:M=0,translateX:P=0,translateY:L=0},H)=>{const _=v.useRef(null),[F,W]=v.useState(0);v.useEffect(()=>{if(_.current)try{W(_.current.getTotalLength())}catch{}},[]);const Z=F-A/100*F,ie=21,U=17,de=k/Math.min(r/40,n/34),se=[M>0?`rotate(${M} ${ie} ${U})`:"",`translate(${P} ${L})`].filter(Boolean).join(" ");return w.jsxs("svg",{ref:H,width:r,height:n,viewBox:"1 0 40 34",overflow:"visible",children:[w.jsxs("g",{transform:se,children:[w.jsx("path",{d:Cd,fill:y,stroke:"transparent"}),e&&F>0&&w.jsx("path",{d:Cd,fill:"transparent",stroke:x,strokeWidth:de,strokeDasharray:`${F} ${F}`,strokeDashoffset:0,style:{filter:Ee(C,x,b)}}),w.jsx("path",{ref:_,d:Cd,stroke:N,strokeWidth:de,fill:"transparent",strokeDasharray:F>0?`${F} ${F}`:void 0,strokeDashoffset:F>0?Z:void 0,style:{transition:"stroke-dashoffset 0.6s cubic-bezier(0.215, 0.61, 0.355, 1)",filter:Ee(j,N,E)}})]}),i&&w.jsx("g",{style:{filter:Ee(u,a,l)},children:w.jsx(en,{icon:i,cx:ie,cy:U,scaling:d,color:a,translateX:h,translateY:m})})]})});lx.displayName="MriHexagonRing";const kd="M21.87,19.29,13.13,4.14a1.29,1.29,0,0,0-2.26,0L2.13,19.29a1.27,1.27,0,0,0,1.13,1.86H20.74A1.27,1.27,0,0,0,21.87,19.29Z",cx=v.forwardRef(({displayOutline:e=!0,height:n=50,width:r=50,icon:i=null,iconColor:a="currentColor",iconContrast:l=100,iconDropShadowAmount:u=0,iconScaling:d=.35,iconTranslateX:h=0,iconTranslateY:m=3,innerColor:y="#212121",outlineColor:x="currentColor",outlineContrast:b=100,outlineDropShadowAmount:C=0,progressColor:N="currentColor",progressContrast:E=100,progressDropShadowAmount:j=0,progressValue:A=100,ringSize:k=4,rotateDegree:M=0,translateX:P=0,translateY:L=0},H)=>{const _=v.useRef(null),[F,W]=v.useState(0);v.useEffect(()=>{if(_.current)try{W(_.current.getTotalLength())}catch{}},[]);const Z=F-A/100*F,ie=12,U=12,de=k/Math.min(r/24,n/24),se=[M>0?`rotate(${M} ${ie} ${U})`:"",`translate(${P} ${L})`].filter(Boolean).join(" ");return w.jsxs("svg",{ref:H,width:r,height:n,viewBox:"0 0 24 24",overflow:"visible",children:[w.jsxs("g",{transform:se,children:[w.jsx("path",{d:kd,fill:y,stroke:"transparent"}),e&&F>0&&w.jsx("path",{d:kd,fill:"transparent",stroke:x,strokeWidth:de,strokeDasharray:`${F} ${F}`,strokeDashoffset:0,style:{filter:Ee(C,x,b)}}),w.jsx("path",{ref:_,d:kd,stroke:N,strokeWidth:de,fill:"transparent",strokeDasharray:F>0?`${F} ${F}`:void 0,strokeDashoffset:F>0?Z:void 0,style:{transition:"stroke-dashoffset 0.6s cubic-bezier(0.215, 0.61, 0.355, 1)",filter:Ee(j,N,E)}})]}),i&&w.jsx("g",{style:{filter:Ee(u,a,l)},children:w.jsx(en,{icon:i,cx:ie,cy:U,scaling:d,color:a,translateX:h,translateY:m})})]})});cx.displayName="MriTriangleRing";function xo(e,n,r,i){const a=(i-90)*Math.PI/180;return{x:e+r*Math.cos(a),y:n+r*Math.sin(a)}}function V1(e,n,r,i,a){if(a<=0)return"";const l=xo(e,n,r,i),u=xo(e,n,r,i+a),d=a>180?1:0;return`M${l.x.toFixed(3)},${l.y.toFixed(3)} A${r},${r} 0 ${d} 1 ${u.x.toFixed(3)},${u.y.toFixed(3)}`}const ux=v.forwardRef(({size:e,value:n,minValue:r,maxValue:i,arcLength:a,rotation:l,majorTickInterval:u,minorTickCount:d,ringSize:h,color:m,outlineColor:y,outlineOpacity:x,needleStyle:b,showValue:C,unit:N,label:E,odometer:j},A)=>{const k=e/2,M=e/2,P=v.useMemo(()=>{const ce=e/2-2,ae=a/100*360,oe=ce-h/2,Y=oe-h/2-3,I=ce*.12,q=ce*.065,T=Y-I-ce*.05,z=oe*.88,K=Math.max(4,ce*.065),ee=Math.max(r,Math.min(i,n)),Q=i>r?(ee-r)/(i-r):0,ne=l+Q*ae,le=V1(k,M,oe,l,ae),he=V1(k,M,oe,l,Q*ae),fe=[];for(let Le=r;Le<=i+u*.001;Le+=u)fe.push(parseFloat(Math.min(Le,i).toFixed(10)));fe[fe.length-1]0){const zo=fe[Le+1];for(let nn=1;nn<=d;nn++){const no=Ot+nn/(d+1)*((zo-r)/(i-r)-Ot),Jn=l+no*ae,Oo=xo(k,M,Y,Jn),Mi=xo(k,M,Y-q,Jn);Ie.push({x1:Oo.x,y1:Oo.y,x2:Mi.x,y2:Mi.y,isMajor:!1,labelX:0,labelY:0})}}}return{outerR:ce,trackR:oe,hubR:K,needleR:z,ticks:Ie,track:le,progress:he,valueDeg:ne,cval:ee}},[e,n,r,i,a,l,u,d,h,k,M]),{outerR:L,hubR:H,needleR:_,ticks:F,track:W,progress:Z,valueDeg:ie,cval:U}=P,de=L*.145,se=Math.max(1.5,L*.025);return w.jsxs("svg",{ref:A,width:e,height:e,viewBox:`0 0 ${e} ${e}`,style:{display:"block",overflow:"visible"},children:[w.jsx("circle",{cx:k,cy:M,r:L,fill:"rgba(0,0,0,0.88)"}),w.jsx("circle",{cx:k,cy:M,r:L,fill:"none",stroke:"rgba(255,255,255,0.07)",strokeWidth:"1.5"}),W&&w.jsx("path",{d:W,fill:"none",stroke:y,strokeOpacity:x,strokeWidth:h,strokeLinecap:"round"}),Z&&w.jsx("path",{d:Z,fill:"none",stroke:m,strokeWidth:h,strokeLinecap:"round"}),F.map((ce,ae)=>w.jsx("line",{x1:ce.x1.toFixed(2),y1:ce.y1.toFixed(2),x2:ce.x2.toFixed(2),y2:ce.y2.toFixed(2),stroke:ce.isMajor?"rgba(255,255,255,0.85)":"rgba(255,255,255,0.38)",strokeWidth:ce.isMajor?1.5:.9,strokeLinecap:"round"},ae)),F.filter(ce=>ce.isMajor).map((ce,ae)=>w.jsx("text",{x:ce.labelX.toFixed(2),y:ce.labelY.toFixed(2),textAnchor:"middle",dominantBaseline:"middle",fill:"rgba(255,255,255,0.8)",fontSize:de.toFixed(1),fontFamily:"system-ui, sans-serif",fontWeight:"400",children:ce.label},ae)),b==="needle"&&w.jsxs(w.Fragment,{children:[w.jsxs("g",{transform:`translate(${k},${M}) rotate(${ie})`,children:[w.jsx("line",{x1:"0",y1:H+1,x2:"0",y2:-_,stroke:"white",strokeWidth:se,strokeLinecap:"round",opacity:"0.95"}),w.jsx("line",{x1:"0",y1:H+1,x2:"0",y2:L*.12,stroke:"rgba(255,255,255,0.4)",strokeWidth:se*1.6,strokeLinecap:"round"})]}),w.jsx("circle",{cx:k,cy:M,r:H,fill:m}),w.jsx("circle",{cx:k,cy:M,r:H*.45,fill:"rgba(0,0,0,0.6)"}),C&&w.jsxs(w.Fragment,{children:[w.jsx("text",{x:k,y:M+L*.3,textAnchor:"middle",dominantBaseline:"middle",fill:"white",fontSize:(L*.22).toFixed(1),fontFamily:"system-ui, sans-serif",fontWeight:"700",children:Math.round(U)}),N&&w.jsx("text",{x:k,y:M+L*.46,textAnchor:"middle",dominantBaseline:"middle",fill:"rgba(255,255,255,0.5)",fontSize:(L*.11).toFixed(1),fontFamily:"system-ui, sans-serif",fontWeight:"500",letterSpacing:"2",children:N.toUpperCase()}),j&&(()=>{const ce=L*.92,ae=L*.26,oe=k-ce/2,Y=M+L*.52,I=Y+ae/2,q=(L*.148).toFixed(1),T=j.replace(/\d/g,"8");return w.jsxs(w.Fragment,{children:[w.jsx("rect",{x:oe.toFixed(2),y:Y.toFixed(2),width:ce.toFixed(2),height:ae.toFixed(2),rx:"2",ry:"2",fill:"rgba(4,9,5,0.92)",stroke:"rgba(90,160,100,0.18)",strokeWidth:"0.5"}),w.jsx("text",{x:k,y:I.toFixed(2),textAnchor:"middle",dominantBaseline:"middle",fill:"rgba(110,200,120,0.13)",fontSize:q,fontFamily:'"Courier New", monospace',children:T}),w.jsx("text",{x:k,y:I.toFixed(2),textAnchor:"middle",dominantBaseline:"middle",fill:"#82de8c",fontSize:q,fontFamily:'"Courier New", monospace',fontWeight:"600",children:j})]})})()]})]}),b==="digital"&&w.jsxs(w.Fragment,{children:[w.jsx("circle",{cx:k,cy:M,r:L*.38,fill:"rgba(0,0,0,0.45)"}),C&&w.jsx("text",{x:k,y:N?M-L*.06:M,textAnchor:"middle",dominantBaseline:"middle",fill:"white",fontSize:(L*.3).toFixed(1),fontFamily:"system-ui, sans-serif",fontWeight:"700",letterSpacing:"-0.5",children:Math.round(U)}),N&&w.jsx("text",{x:k,y:M+L*.22,textAnchor:"middle",dominantBaseline:"middle",fill:"rgba(255,255,255,0.55)",fontSize:(L*.12).toFixed(1),fontFamily:"system-ui, sans-serif",fontWeight:"500",letterSpacing:"2",children:N.toUpperCase()})]}),b==="arc"&&C&&w.jsx("text",{x:k,y:M,textAnchor:"middle",dominantBaseline:"middle",fill:"white",fontSize:(L*.26).toFixed(1),fontFamily:"system-ui, sans-serif",fontWeight:"700",children:Math.round(U)}),E&&!(b==="needle"&&j)&&w.jsx("text",{x:k,y:M+L*(b==="needle"?.6:.55),textAnchor:"middle",dominantBaseline:"middle",fill:"rgba(255,255,255,0.38)",fontSize:(L*.095).toFixed(1),fontFamily:"system-ui, sans-serif",fontWeight:"400",letterSpacing:"1.5",children:E.toUpperCase()})]})});ux.displayName="MriAnalogGauge";function B1(e,n,r,i){const a=(i-90)*Math.PI/180;return{x:e+r*Math.cos(a),y:n+r*Math.sin(a)}}const n7=[[0,1,!0],[10,.5,!1],[-10,.5,!1],[20,.5,!1],[-20,.5,!1],[30,.75,!0],[-30,.75,!0],[45,.55,!1],[-45,.55,!1],[60,.75,!0],[-60,.75,!0]],dx=v.forwardRef(({size:e,pitch:n,roll:r},i)=>{const a=`ah-clip-${v.useId()}`,l=e/2,u=e/2,d=e/2-2,h=d-4,m=h/50,y=n*m,x=r,b=h*2.8,C=d*.88,N=d*.08,E=[h*.18,h*.28,h*.38],j=d*.1,A=[];for(const k of[-30,-20,-10,-5,5,10,20,30]){const M=Math.abs(k),P=M>=20?2:M>=10?1:0;A.push({deg:k,y:-k*m,w:E[P],major:M%10===0})}return w.jsxs("svg",{ref:i,width:e,height:e,viewBox:`0 0 ${e} ${e}`,style:{display:"block",overflow:"visible"},children:[w.jsx("defs",{children:w.jsx("clipPath",{id:a,children:w.jsx("circle",{cx:l,cy:u,r:h})})}),w.jsx("g",{clipPath:`url(#${a})`,children:w.jsxs("g",{transform:`translate(${l},${u}) rotate(${x}) translate(0,${y.toFixed(2)})`,children:[w.jsx("rect",{x:-b,y:-b,width:b*2,height:b,fill:"#1a4fa0"}),w.jsx("rect",{x:-b,y:0,width:b*2,height:b,fill:"#7a5230"}),w.jsx("rect",{x:-b,y:-4,width:b*2,height:4,fill:"rgba(255,255,255,0.06)"}),w.jsx("line",{x1:-b,y1:0,x2:b,y2:0,stroke:"rgba(255,255,255,0.92)",strokeWidth:1.5}),A.map(({deg:k,y:M,w:P,major:L})=>w.jsxs("g",{children:[w.jsx("line",{x1:-P,y1:M,x2:P,y2:M,stroke:"rgba(255,255,255,0.75)",strokeWidth:L?1.2:.85,strokeLinecap:"round"}),L&&w.jsxs(w.Fragment,{children:[w.jsx("text",{x:-P-3,y:M,textAnchor:"end",dominantBaseline:"middle",fill:"rgba(255,255,255,0.65)",fontSize:j,fontFamily:"system-ui, sans-serif",children:Math.abs(k)}),w.jsx("text",{x:P+3,y:M,textAnchor:"start",dominantBaseline:"middle",fill:"rgba(255,255,255,0.65)",fontSize:j,fontFamily:"system-ui, sans-serif",children:Math.abs(k)})]})]},k))]})}),w.jsx("circle",{cx:l,cy:u,r:d,fill:"none",stroke:"rgba(0,0,0,0.75)",strokeWidth:5}),w.jsx("circle",{cx:l,cy:u,r:d,fill:"none",stroke:"rgba(255,255,255,0.07)",strokeWidth:1.5}),n7.map(([k,M,P])=>{const L=N*M,H=B1(l,u,C,k),_=B1(l,u,C-L,k);return w.jsx("line",{x1:H.x.toFixed(2),y1:H.y.toFixed(2),x2:_.x.toFixed(2),y2:_.y.toFixed(2),stroke:P?"rgba(255,255,255,0.85)":"rgba(255,255,255,0.5)",strokeWidth:P?1.5:1,strokeLinecap:"round"},k)}),w.jsx("g",{transform:`rotate(${x}, ${l}, ${u})`,children:w.jsx("path",{d:`M ${l} ${(u-C+1).toFixed(1)} L ${(l-5).toFixed(1)} ${(u-C+11).toFixed(1)} L ${(l+5).toFixed(1)} ${(u-C+11).toFixed(1)} Z`,fill:"white",opacity:.92})}),w.jsx("line",{x1:l-d*.38,y1:u,x2:l-d*.1,y2:u,stroke:"#f59e0b",strokeWidth:2.5,strokeLinecap:"round"}),w.jsx("line",{x1:l+d*.1,y1:u,x2:l+d*.38,y2:u,stroke:"#f59e0b",strokeWidth:2.5,strokeLinecap:"round"}),w.jsx("circle",{cx:l,cy:u,r:2.5,fill:"#f59e0b"}),w.jsx("line",{x1:l,y1:u,x2:l,y2:u-d*.1,stroke:"#f59e0b",strokeWidth:1.5,strokeLinecap:"round"}),w.jsx("line",{x1:l-d*.09,y1:u,x2:l-d*.14,y2:u,stroke:"white",strokeWidth:1,opacity:.35}),w.jsx("line",{x1:l+d*.09,y1:u,x2:l+d*.14,y2:u,stroke:"white",strokeWidth:1,opacity:.35})]})});dx.displayName="MriArtificialHorizon";function _n(e,n,r,i){const a=(i-90)*Math.PI/180;return{x:e+r*Math.cos(a),y:n+r*Math.sin(a)}}function W1(e,n,r,i,a){const l=_n(e,n,r,i),u=_n(e,n,r,i+a);return`M${l.x.toFixed(3)},${l.y.toFixed(3)} A${r},${r} 0 0 1 ${u.x.toFixed(3)},${u.y.toFixed(3)}`}const U1=35,r7=[[10,.6],[20,.8],[30,1],[-10,.6],[-20,.8],[-30,1]],fx=v.forwardRef(({size:e,roll:n},r)=>{const i=e/2,a=e/2,l=e/2-2,u=l*.6,d=l*.22,h=d*.4,m=l*.07,y=145,x=70,b=180-Math.max(-U1,Math.min(U1,n)),C=_n(i,a,u,b),N=_n(i,a,u,219),E=_n(i,a,u,141),j=Math.abs(Math.round(n)),A=n<-.5?"PORT":n>.5?"STBD":"LEVEL",k=n<-.5?"rgba(255,110,110,0.85)":n>.5?"rgba(110,220,130,0.85)":"rgba(255,255,255,0.45)";return w.jsxs("svg",{ref:r,width:e,height:e,viewBox:`0 0 ${e} ${e}`,style:{display:"block"},children:[w.jsx("circle",{cx:i,cy:a,r:l,fill:"rgba(0,0,0,0.88)"}),w.jsx("circle",{cx:i,cy:a,r:l,fill:"none",stroke:"rgba(255,255,255,0.07)",strokeWidth:1.5}),w.jsx("path",{d:W1(i,a,u,y,x),fill:"none",stroke:"rgba(255,255,255,0.10)",strokeWidth:d,strokeLinecap:"round"}),w.jsx("path",{d:W1(i,a,u-d*.16,y,x),fill:"none",stroke:"rgba(255,255,255,0.07)",strokeWidth:d*.32,strokeLinecap:"round"}),r7.map(([M,P])=>{const L=180-M,H=m*P,_=_n(i,a,u-d/2-2,L),F=_n(i,a,u+d/2+2,L),W=_n(i,a,u-d/2-H-4,L),Z=Math.abs(M)===30;return w.jsxs("g",{children:[w.jsx("line",{x1:_.x.toFixed(2),y1:_.y.toFixed(2),x2:F.x.toFixed(2),y2:F.y.toFixed(2),stroke:Z?"rgba(255,255,255,0.75)":"rgba(255,255,255,0.40)",strokeWidth:Z?1.5:1,strokeLinecap:"round"}),Z&&w.jsx("text",{x:W.x.toFixed(2),y:W.y.toFixed(2),textAnchor:"middle",dominantBaseline:"middle",fill:"rgba(255,255,255,0.45)",fontSize:(l*.095).toFixed(1),fontFamily:"system-ui, sans-serif",children:Math.abs(M)})]},M)}),(()=>{const M=_n(i,a,u-d/2-2,180),P=_n(i,a,u+d/2+2,180);return w.jsx("line",{x1:M.x.toFixed(2),y1:M.y.toFixed(2),x2:P.x.toFixed(2),y2:P.y.toFixed(2),stroke:"rgba(255,255,255,0.9)",strokeWidth:2,strokeLinecap:"round"})})(),w.jsx("circle",{cx:C.x.toFixed(2),cy:C.y.toFixed(2),r:h,fill:"#f59e0b"}),w.jsx("circle",{cx:C.x.toFixed(2),cy:C.y.toFixed(2),r:h,fill:"none",stroke:"rgba(0,0,0,0.30)",strokeWidth:1}),w.jsx("circle",{cx:(C.x-h*.25).toFixed(2),cy:(C.y-h*.28).toFixed(2),r:(h*.3).toFixed(2),fill:"rgba(255,255,255,0.35)"}),w.jsx("text",{x:N.x.toFixed(2),y:N.y.toFixed(2),textAnchor:"middle",dominantBaseline:"middle",fill:"rgba(255,110,110,0.80)",fontSize:(l*.13).toFixed(1),fontFamily:"system-ui, sans-serif",fontWeight:"700",children:"P"}),w.jsx("text",{x:E.x.toFixed(2),y:E.y.toFixed(2),textAnchor:"middle",dominantBaseline:"middle",fill:"rgba(110,220,130,0.80)",fontSize:(l*.13).toFixed(1),fontFamily:"system-ui, sans-serif",fontWeight:"700",children:"S"}),w.jsxs("text",{x:i,y:a-l*.1,textAnchor:"middle",dominantBaseline:"middle",fill:"white",fontSize:(l*.3).toFixed(1),fontFamily:"system-ui, sans-serif",fontWeight:"700",children:[j,"°"]}),w.jsx("text",{x:i,y:a+l*.16,textAnchor:"middle",dominantBaseline:"middle",fill:k,fontSize:(l*.1).toFixed(1),fontFamily:"system-ui, sans-serif",letterSpacing:"1.5",children:A}),w.jsx("text",{x:i,y:a+l*.36,textAnchor:"middle",dominantBaseline:"middle",fill:"rgba(255,255,255,0.22)",fontSize:(l*.085).toFixed(1),fontFamily:"system-ui, sans-serif",letterSpacing:"1.5",children:"HEEL"})]})});fx.displayName="MriClinometer";function px(e){return{viewBox:[e.icon[0],e.icon[1]],paths:e.icon[4]}}function Wt(e){const{icon:n,...r}=e;return{...r,icon:n?px(n):null}}function o7(e){return p.jsx(tx,{...Wt(e)})}function Y1(e){return p.jsx(Kv,{...Wt(e)})}function i7(e){return p.jsx(qv,{...Wt(e)})}function s7(e){return p.jsx(ax,{...Wt(e)})}function a7(e){return p.jsx(lx,{...Wt(e)})}function l7(e){return p.jsx(nx,{...Wt(e)})}function c7(e){return p.jsx(rx,{...Wt(e)})}function u7(e){return p.jsx(Qv,{...Wt(e)})}function d7(e){return p.jsx(ex,{...Wt(e)})}function f7(e){return p.jsx(Jv,{...Wt(e)})}function p7(e){return p.jsx(ox,{...Wt(e)})}function h7(e){return p.jsx(ix,{...Wt(e)})}function m7(e){return p.jsx(sx,{...Wt(e)})}function g7({height:e=50,width:n=50}){return p.jsx("div",{style:{width:n,height:e}})}function y7(e){return p.jsx(cx,{...Wt(e)})}function Qd({hudIconInfo:e}){const{shape:n,isShowing:r,...i}=e;switch(n){case"badge":return p.jsx(o7,{...i});case"circle-ring":return p.jsx(Y1,{...i});case"circle-fill":return p.jsx(i7,{...i});case"diamond-ring":return p.jsx(s7,{...i});case"hexagon-ring":return p.jsx(a7,{...i});case"horizontal-bar":return p.jsx(l7,{...i});case"icon-percentage":return p.jsx(c7,{...i});case"inner-circle":return p.jsx(u7,{...i});case"pill-ring":return p.jsx(d7,{...i});case"split-circle":return p.jsx(f7,{...i});case"square-fill":return p.jsx(p7,{...i});case"square-ring":return p.jsx(h7,{...i});case"star-ring":return p.jsx(m7,{...i});case"transparent":return p.jsx(g7,{...i});case"triangle-ring":return p.jsx(y7,{...i});default:return p.jsx(Y1,{...i})}}const v7=["harness"];function x7({isReversed:e=!1,iconsToShow:n=[],iconsToNotShow:r=[]}){const i=Oe(N=>N.icons),a=Oe(N=>N.showingOrder),l=Oe(N=>N.designMode),u=Oe(N=>N.designProgress),d=jt(N=>N.icons),h=jt(N=>N.globalColorSettings),m=_d(N=>N.icons),y=fr(N=>N.theme),x=He(N=>N.show),b=y==="digital"&&x;let C=n.length?n:a;return e&&(C=[...C].reverse()),p.jsxs(p.Fragment,{children:[C.map(N=>{const E=i[N],j=d[N];if(!j)return null;const A=l?h.editSingleIconName===N?h.editSingleIconStage:0:j.currentEffect,k=j.colorEffects[A],M=m[N],P=b&&!l&&v7.includes(N);if(!(E.isShowing&&!r.includes(N)&&!P||l))return null;const H={...E,progressColor:k.progressColor,progressContrast:k.progressContrast,progressDropShadowAmount:k.progressDropShadowAmount,progressValue:l?u:E.progressValue,iconColor:M?M.iconColor:k.iconColor,iconContrast:k.iconContrast,iconDropShadowAmount:k.iconDropShadowAmount,outlineColor:k.outlineColor,outlineContrast:k.outlineContrast,outlineDropShadowAmount:k.outlineDropShadowAmount,innerColor:k.innerColor};return p.jsx("div",{className:"my-auto",children:p.jsx(Qd,{hudIconInfo:H})},N)}),Object.entries(m).map(([N,E])=>!E.name||!E.isShowing&&!l?null:p.jsx("div",{className:"my-auto",children:p.jsx(Qd,{hudIconInfo:E})},N))]})}const w7={biohazard:$g,database:Jg,dollarsign:e2,dumbbell:Bg,exclamation:Af,lightbulb:Og,locationarrow:Dg,swimming:Yg,wind:Gg,bolt:Ug,brain:Zg,carbattery:P4,droplet:V4,fire:M4,gaspump:S4,gear:D4,heart:T4,house:F4,info:x4,meteor:Vg,microphone:Nf,oilcan:Qg,parachutebox:Hg,person:w4,question:z4,radiation:j4,shield:X4,skull:$4,star:N4,tachometer:Xg,thermometer:k4,triangle:G4,trophy:U4,user:_g,userslash:Mf,virus:I4,wrench:_4,xmark:W4,zap:H4};function Jd(e){if(!e)return null;const n=e.toLowerCase().replace(/[^a-z0-9]/g,"");return w7[n]??null}const b7=new Set(["progressColor","outlineColor","iconColor","innerColor","progressContrast","outlineContrast","iconContrast","progressDropShadowAmount","outlineDropShadowAmount","iconDropShadowAmount","progressValue","icon","iconName","isShowing","name"]);function S7({panel:e}){const[n,r]=v.useState(!1),i=Oe(a=>a.icons.health);if(e.hudIconInfo){const a={...e.hudIconInfo};typeof a.icon=="string"?a.icon=Jd(a.icon):!a.icon&&a.iconName&&(a.icon=Jd(a.iconName));const l=a.shape??i.shape??"inner-circle",d={...wo(l,{}),height:i.height,width:i.width,...i.ringSize!=null&&{ringSize:i.ringSize},...i.borderGap!=null&&{borderGap:i.borderGap},...i.iconScaling!=null&&{iconScaling:i.iconScaling},shape:l};for(const[h,m]of Object.entries(a))m!=null&&b7.has(h)&&(d[h]=m);return d.progressColor||(d.progressColor="#3b82f6"),d.outlineColor||(d.outlineColor="rgba(59,130,246,0.4)"),d.iconColor||(d.iconColor="#ffffff"),d.progressContrast==null&&(d.progressContrast=100),d.iconContrast==null&&(d.iconContrast=100),d.outlineContrast==null&&(d.outlineContrast=100),d.progressDropShadowAmount==null&&(d.progressDropShadowAmount=0),d.iconDropShadowAmount==null&&(d.iconDropShadowAmount=0),d.outlineDropShadowAmount==null&&(d.outlineDropShadowAmount=0),d.progressValue==null&&(d.progressValue=0),p.jsxs("div",{className:"flex flex-col items-center gap-[6px] text-white text-[12px] text-center",children:[p.jsx(Qd,{hudIconInfo:d}),e.title&&p.jsx("div",{className:"opacity-85 text-[11px] mt-1",children:e.title}),e.value!==void 0&&p.jsx("div",{className:"font-bold",children:e.value})]})}return p.jsxs("div",{className:"flex flex-col items-center gap-[4px] text-white text-[12px] text-center w-[56px]",children:[e.icon&&!n&&p.jsx("div",{className:"w-[44px] h-[44px] rounded-full flex items-center justify-center p-[2px] bg-black/[0.12] border border-white/[0.06]",children:p.jsx("img",{src:`assets/panels/${e.icon}`,alt:e.title||e.id,className:"w-[36px] h-[36px] object-contain block mx-auto",onError:a=>{r(!0),a.target.style.display="none"}})}),n&&p.jsx("div",{className:"text-[14px] opacity-90",children:e.title?e.title.charAt(0):"#"}),e.title&&p.jsx("div",{className:"text-[11px] opacity-90 mt-[2px]",children:e.title}),e.value!==void 0&&p.jsx("div",{className:"font-bold text-[12px]",children:e.value})]})}function C7(){const e=Ss(r=>r.panels),n=Object.values(e).filter(r=>r.isShowing!==!1);return n.length?p.jsx("div",{className:"flex flex-row gap-[10px] pointer-events-none",children:n.map(r=>p.jsx("div",{className:"my-auto pointer-events-auto",children:p.jsx(S7,{panel:r})},r.id))}):null}/*!
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2024 Fonticons, Inc.
- */function Lk(e,n,o){return(n=$k(n))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,e}function k1(e,n){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,i)}return o}function te(e){for(var n=1;n{};let Zd={},_y={},Dy=null,Ty={mark:j1,measure:j1};try{typeof window<"u"&&(Zd=window),typeof document<"u"&&(_y=document),typeof MutationObserver<"u"&&(Dy=MutationObserver),typeof performance<"u"&&(Ty=performance)}catch{}const{userAgent:E1=""}=Zd.navigator||{},Ur=Zd,Be=_y,N1=Dy,nl=Ty;Ur.document;const dr=!!Be.documentElement&&!!Be.head&&typeof Be.addEventListener=="function"&&typeof Be.createElement=="function",Ly=~E1.indexOf("MSIE")||~E1.indexOf("Trident/");var Hk=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,Vk=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Fy={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},Wk={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},$y=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],Ct="classic",Wl="duotone",Bk="sharp",Uk="sharp-duotone",Hy=[Ct,Wl,Bk,Uk],Yk={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},Xk={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},Gk=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),Kk={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},qk=["fak","fa-kit","fakd","fa-kit-duotone"],M1={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},Qk=["kit"],Zk={kit:{"fa-kit":"fak"}},Jk=["fak","fakd"],e7={kit:{fak:"fa-kit"}},A1={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},rl={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},t7=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],n7=["fak","fa-kit","fakd","fa-kit-duotone"],r7={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},o7={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},i7={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},Ff={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},s7=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],$f=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...t7,...s7],a7=["solid","regular","light","thin","duotone","brands"],Vy=[1,2,3,4,5,6,7,8,9,10],l7=Vy.concat([11,12,13,14,15,16,17,18,19,20]),c7=[...Object.keys(i7),...a7,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",rl.GROUP,rl.SWAP_OPACITY,rl.PRIMARY,rl.SECONDARY].concat(Vy.map(e=>"".concat(e,"x"))).concat(l7.map(e=>"w-".concat(e))),u7={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const ur="___FONT_AWESOME___",Hf=16,Wy="fa",By="svg-inline--fa",So="data-fa-i2svg",Vf="data-fa-pseudo-element",f7="data-fa-pseudo-element-pending",Jd="data-prefix",e0="data-icon",P1="fontawesome-i2svg",d7="async",p7=["HTML","HEAD","STYLE","SCRIPT"],Uy=(()=>{try{return!0}catch{return!1}})();function Is(e){return new Proxy(e,{get(n,o){return o in n?n[o]:n[Ct]}})}const Yy=te({},Fy);Yy[Ct]=te(te(te(te({},{"fa-duotone":"duotone"}),Fy[Ct]),M1.kit),M1["kit-duotone"]);const h7=Is(Yy),Wf=te({},Kk);Wf[Ct]=te(te(te(te({},{duotone:"fad"}),Wf[Ct]),A1.kit),A1["kit-duotone"]);const R1=Is(Wf),Bf=te({},Ff);Bf[Ct]=te(te({},Bf[Ct]),e7.kit);const t0=Is(Bf),Uf=te({},o7);Uf[Ct]=te(te({},Uf[Ct]),Zk.kit);Is(Uf);const m7=Hk,Xy="fa-layers-text",g7=Vk,v7=te({},Yk);Is(v7);const y7=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],df=Wk,x7=[...Qk,...c7],hs=Ur.FontAwesomeConfig||{};function w7(e){var n=Be.querySelector("script["+e+"]");if(n)return n.getAttribute(e)}function b7(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}Be&&typeof Be.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(n=>{let[o,i]=n;const a=b7(w7(o));a!=null&&(hs[i]=a)});const Gy={styleDefault:"solid",familyDefault:Ct,cssPrefix:Wy,replacementClass:By,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};hs.familyPrefix&&(hs.cssPrefix=hs.familyPrefix);const di=te(te({},Gy),hs);di.autoReplaceSvg||(di.observeMutations=!1);const ye={};Object.keys(Gy).forEach(e=>{Object.defineProperty(ye,e,{enumerable:!0,set:function(n){di[e]=n,ms.forEach(o=>o(ye))},get:function(){return di[e]}})});Object.defineProperty(ye,"familyPrefix",{enumerable:!0,set:function(e){di.cssPrefix=e,ms.forEach(n=>n(ye))},get:function(){return di.cssPrefix}});Ur.FontAwesomeConfig=ye;const ms=[];function S7(e){return ms.push(e),()=>{ms.splice(ms.indexOf(e),1)}}const _r=Hf,Dn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function C7(e){if(!e||!dr)return;const n=Be.createElement("style");n.setAttribute("type","text/css"),n.innerHTML=e;const o=Be.head.childNodes;let i=null;for(let a=o.length-1;a>-1;a--){const l=o[a],u=(l.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(u)>-1&&(i=l)}return Be.head.insertBefore(n,i),e}const k7="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ks(){let e=12,n="";for(;e-- >0;)n+=k7[Math.random()*62|0];return n}function gi(e){const n=[];for(let o=(e||[]).length>>>0;o--;)n[o]=e[o];return n}function n0(e){return e.classList?gi(e.classList):(e.getAttribute("class")||"").split(" ").filter(n=>n)}function Ky(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function j7(e){return Object.keys(e||{}).reduce((n,o)=>n+"".concat(o,'="').concat(Ky(e[o]),'" '),"").trim()}function Bl(e){return Object.keys(e||{}).reduce((n,o)=>n+"".concat(o,": ").concat(e[o].trim(),";"),"")}function r0(e){return e.size!==Dn.size||e.x!==Dn.x||e.y!==Dn.y||e.rotate!==Dn.rotate||e.flipX||e.flipY}function E7(e){let{transform:n,containerWidth:o,iconWidth:i}=e;const a={transform:"translate(".concat(o/2," 256)")},l="translate(".concat(n.x*32,", ").concat(n.y*32,") "),u="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),f="rotate(".concat(n.rotate," 0 0)"),h={transform:"".concat(l," ").concat(u," ").concat(f)},m={transform:"translate(".concat(i/2*-1," -256)")};return{outer:a,inner:h,path:m}}function N7(e){let{transform:n,width:o=Hf,height:i=Hf,startCentered:a=!1}=e,l="";return a&&Ly?l+="translate(".concat(n.x/_r-o/2,"em, ").concat(n.y/_r-i/2,"em) "):a?l+="translate(calc(-50% + ".concat(n.x/_r,"em), calc(-50% + ").concat(n.y/_r,"em)) "):l+="translate(".concat(n.x/_r,"em, ").concat(n.y/_r,"em) "),l+="scale(".concat(n.size/_r*(n.flipX?-1:1),", ").concat(n.size/_r*(n.flipY?-1:1),") "),l+="rotate(".concat(n.rotate,"deg) "),l}var M7=`:root, :host {
+ */function k7(e,n,r){return(n=E7(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function X1(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function te(e){for(var n=1;n{};let m0={},hx={},mx=null,gx={mark:G1,measure:G1};try{typeof window<"u"&&(m0=window),typeof document<"u"&&(hx=document),typeof MutationObserver<"u"&&(mx=MutationObserver),typeof performance<"u"&&(gx=performance)}catch{}const{userAgent:K1=""}=m0.navigator||{},qr=m0,Ue=hx,q1=mx,fl=gx;qr.document;const yr=!!Ue.documentElement&&!!Ue.head&&typeof Ue.addEventListener=="function"&&typeof Ue.createElement=="function",yx=~K1.indexOf("MSIE")||~K1.indexOf("Trident/");var N7=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,M7=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,vx={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},A7={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},xx=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],Et="classic",tc="duotone",P7="sharp",R7="sharp-duotone",wx=[Et,tc,P7,R7],I7={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},z7={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},O7=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),T7={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},_7=["fak","fa-kit","fakd","fa-kit-duotone"],Q1={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},D7=["kit"],L7={kit:{"fa-kit":"fak"}},F7=["fak","fakd"],$7={kit:{fak:"fa-kit"}},J1={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},pl={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},H7=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],V7=["fak","fa-kit","fakd","fa-kit-duotone"],B7={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},W7={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},U7={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},Zd={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},Y7=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],ef=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...H7,...Y7],X7=["solid","regular","light","thin","duotone","brands"],bx=[1,2,3,4,5,6,7,8,9,10],G7=bx.concat([11,12,13,14,15,16,17,18,19,20]),K7=[...Object.keys(U7),...X7,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",pl.GROUP,pl.SWAP_OPACITY,pl.PRIMARY,pl.SECONDARY].concat(bx.map(e=>"".concat(e,"x"))).concat(G7.map(e=>"w-".concat(e))),q7={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const mr="___FONT_AWESOME___",tf=16,Sx="fa",Cx="svg-inline--fa",Po="data-fa-i2svg",nf="data-fa-pseudo-element",Q7="data-fa-pseudo-element-pending",g0="data-prefix",y0="data-icon",Z1="fontawesome-i2svg",J7="async",Z7=["HTML","HEAD","STYLE","SCRIPT"],kx=(()=>{try{return!0}catch{return!1}})();function Bs(e){return new Proxy(e,{get(n,r){return r in n?n[r]:n[Et]}})}const jx=te({},vx);jx[Et]=te(te(te(te({},{"fa-duotone":"duotone"}),vx[Et]),Q1.kit),Q1["kit-duotone"]);const e9=Bs(jx),rf=te({},T7);rf[Et]=te(te(te(te({},{duotone:"fad"}),rf[Et]),J1.kit),J1["kit-duotone"]);const eg=Bs(rf),of=te({},Zd);of[Et]=te(te({},of[Et]),$7.kit);const v0=Bs(of),sf=te({},W7);sf[Et]=te(te({},sf[Et]),L7.kit);Bs(sf);const t9=N7,Ex="fa-layers-text",n9=M7,r9=te({},I7);Bs(r9);const o9=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],jd=A7,i9=[...D7,...K7],Ns=qr.FontAwesomeConfig||{};function s9(e){var n=Ue.querySelector("script["+e+"]");if(n)return n.getAttribute(e)}function a9(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}Ue&&typeof Ue.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(n=>{let[r,i]=n;const a=a9(s9(r));a!=null&&(Ns[i]=a)});const Nx={styleDefault:"solid",familyDefault:Et,cssPrefix:Sx,replacementClass:Cx,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ns.familyPrefix&&(Ns.cssPrefix=Ns.familyPrefix);const Ci=te(te({},Nx),Ns);Ci.autoReplaceSvg||(Ci.observeMutations=!1);const ve={};Object.keys(Nx).forEach(e=>{Object.defineProperty(ve,e,{enumerable:!0,set:function(n){Ci[e]=n,Ms.forEach(r=>r(ve))},get:function(){return Ci[e]}})});Object.defineProperty(ve,"familyPrefix",{enumerable:!0,set:function(e){Ci.cssPrefix=e,Ms.forEach(n=>n(ve))},get:function(){return Ci.cssPrefix}});qr.FontAwesomeConfig=ve;const Ms=[];function l9(e){return Ms.push(e),()=>{Ms.splice(Ms.indexOf(e),1)}}const $r=tf,Hn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function c9(e){if(!e||!yr)return;const n=Ue.createElement("style");n.setAttribute("type","text/css"),n.innerHTML=e;const r=Ue.head.childNodes;let i=null;for(let a=r.length-1;a>-1;a--){const l=r[a],u=(l.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(u)>-1&&(i=l)}return Ue.head.insertBefore(n,i),e}const u9="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function _s(){let e=12,n="";for(;e-- >0;)n+=u9[Math.random()*62|0];return n}function Ni(e){const n=[];for(let r=(e||[]).length>>>0;r--;)n[r]=e[r];return n}function x0(e){return e.classList?Ni(e.classList):(e.getAttribute("class")||"").split(" ").filter(n=>n)}function Mx(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function d9(e){return Object.keys(e||{}).reduce((n,r)=>n+"".concat(r,'="').concat(Mx(e[r]),'" '),"").trim()}function nc(e){return Object.keys(e||{}).reduce((n,r)=>n+"".concat(r,": ").concat(e[r].trim(),";"),"")}function w0(e){return e.size!==Hn.size||e.x!==Hn.x||e.y!==Hn.y||e.rotate!==Hn.rotate||e.flipX||e.flipY}function f9(e){let{transform:n,containerWidth:r,iconWidth:i}=e;const a={transform:"translate(".concat(r/2," 256)")},l="translate(".concat(n.x*32,", ").concat(n.y*32,") "),u="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),d="rotate(".concat(n.rotate," 0 0)"),h={transform:"".concat(l," ").concat(u," ").concat(d)},m={transform:"translate(".concat(i/2*-1," -256)")};return{outer:a,inner:h,path:m}}function p9(e){let{transform:n,width:r=tf,height:i=tf,startCentered:a=!1}=e,l="";return a&&yx?l+="translate(".concat(n.x/$r-r/2,"em, ").concat(n.y/$r-i/2,"em) "):a?l+="translate(calc(-50% + ".concat(n.x/$r,"em), calc(-50% + ").concat(n.y/$r,"em)) "):l+="translate(".concat(n.x/$r,"em, ").concat(n.y/$r,"em) "),l+="scale(".concat(n.size/$r*(n.flipX?-1:1),", ").concat(n.size/$r*(n.flipY?-1:1),") "),l+="rotate(".concat(n.rotate,"deg) "),l}var h9=`:root, :host {
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
@@ -823,11 +823,17 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
.svg-inline--fa mask .fa-primary,
.svg-inline--fa mask .fa-secondary {
fill: black;
-}`;function qy(){const e=Wy,n=By,o=ye.cssPrefix,i=ye.replacementClass;let a=M7;if(o!==e||i!==n){const l=new RegExp("\\.".concat(e,"\\-"),"g"),u=new RegExp("\\--".concat(e,"\\-"),"g"),f=new RegExp("\\.".concat(n),"g");a=a.replace(l,".".concat(o,"-")).replace(u,"--".concat(o,"-")).replace(f,".".concat(i))}return a}let I1=!1;function pf(){ye.autoAddCss&&!I1&&(C7(qy()),I1=!0)}var A7={mixout(){return{dom:{css:qy,insertCss:pf}}},hooks(){return{beforeDOMElementCreation(){pf()},beforeI2svg(){pf()}}}};const fr=Ur||{};fr[ur]||(fr[ur]={});fr[ur].styles||(fr[ur].styles={});fr[ur].hooks||(fr[ur].hooks={});fr[ur].shims||(fr[ur].shims=[]);var Tn=fr[ur];const Qy=[],Zy=function(){Be.removeEventListener("DOMContentLoaded",Zy),kl=1,Qy.map(e=>e())};let kl=!1;dr&&(kl=(Be.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Be.readyState),kl||Be.addEventListener("DOMContentLoaded",Zy));function P7(e){dr&&(kl?setTimeout(e,0):Qy.push(e))}function zs(e){const{tag:n,attributes:o={},children:i=[]}=e;return typeof e=="string"?Ky(e):"<".concat(n," ").concat(j7(o),">").concat(i.map(zs).join(""),"").concat(n,">")}function z1(e,n,o){if(e&&e[n]&&e[n][o])return{prefix:n,iconName:o,icon:e[n][o]}}var hf=function(n,o,i,a){var l=Object.keys(n),u=l.length,f=o,h,m,v;for(i===void 0?(h=1,v=n[l[0]]):(h=0,v=i);h=55296&&a<=56319&&o=55296&&i<=56319&&o>n+1&&(a=e.charCodeAt(n+1),a>=56320&&a<=57343)?(i-55296)*1024+a-56320+65536:i}function O1(e){return Object.keys(e).reduce((n,o)=>{const i=e[o];return!!i.icon?n[i.iconName]=i.icon:n[o]=i,n},{})}function Xf(e,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:i=!1}=o,a=O1(n);typeof Tn.hooks.addPack=="function"&&!i?Tn.hooks.addPack(e,O1(n)):Tn.styles[e]=te(te({},Tn.styles[e]||{}),a),e==="fas"&&Xf("fa",n)}const{styles:js,shims:z7}=Tn,Jy=Object.keys(t0),O7=Jy.reduce((e,n)=>(e[n]=Object.keys(t0[n]),e),{});let o0=null,ex={},tx={},nx={},rx={},ox={};function _7(e){return~x7.indexOf(e)}function D7(e,n){const o=n.split("-"),i=o[0],a=o.slice(1).join("-");return i===e&&a!==""&&!_7(a)?a:null}const ix=()=>{const e=i=>hf(js,(a,l,u)=>(a[u]=hf(l,i,{}),a),{});ex=e((i,a,l)=>(a[3]&&(i[a[3]]=l),a[2]&&a[2].filter(f=>typeof f=="number").forEach(f=>{i[f.toString(16)]=l}),i)),tx=e((i,a,l)=>(i[l]=l,a[2]&&a[2].filter(f=>typeof f=="string").forEach(f=>{i[f]=l}),i)),ox=e((i,a,l)=>{const u=a[2];return i[l]=l,u.forEach(f=>{i[f]=l}),i});const n="far"in js||ye.autoFetchSvg,o=hf(z7,(i,a)=>{const l=a[0];let u=a[1];const f=a[2];return u==="far"&&!n&&(u="fas"),typeof l=="string"&&(i.names[l]={prefix:u,iconName:f}),typeof l=="number"&&(i.unicodes[l.toString(16)]={prefix:u,iconName:f}),i},{names:{},unicodes:{}});nx=o.names,rx=o.unicodes,o0=Ul(ye.styleDefault,{family:ye.familyDefault})};S7(e=>{o0=Ul(e.styleDefault,{family:ye.familyDefault})});ix();function i0(e,n){return(ex[e]||{})[n]}function T7(e,n){return(tx[e]||{})[n]}function vo(e,n){return(ox[e]||{})[n]}function sx(e){return nx[e]||{prefix:null,iconName:null}}function L7(e){const n=rx[e],o=i0("fas",e);return n||(o?{prefix:"fas",iconName:o}:null)||{prefix:null,iconName:null}}function Yr(){return o0}const ax=()=>({prefix:null,iconName:null,rest:[]});function F7(e){let n=Ct;const o=Jy.reduce((i,a)=>(i[a]="".concat(ye.cssPrefix,"-").concat(a),i),{});return Hy.forEach(i=>{(e.includes(o[i])||e.some(a=>O7[i].includes(a)))&&(n=i)}),n}function Ul(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:o=Ct}=n,i=h7[o][e];if(o===Wl&&!e)return"fad";const a=R1[o][e]||R1[o][i],l=e in Tn.styles?e:null;return a||l||null}function $7(e){let n=[],o=null;return e.forEach(i=>{const a=D7(ye.cssPrefix,i);a?o=a:i&&n.push(i)}),{iconName:o,rest:n}}function _1(e){return e.sort().filter((n,o,i)=>i.indexOf(n)===o)}function Yl(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:o=!1}=n;let i=null;const a=$f.concat(n7),l=_1(e.filter(x=>a.includes(x))),u=_1(e.filter(x=>!$f.includes(x))),f=l.filter(x=>(i=x,!$y.includes(x))),[h=null]=f,m=F7(l),v=te(te({},$7(u)),{},{prefix:Ul(h,{family:m})});return te(te(te({},v),B7({values:e,family:m,styles:js,config:ye,canonical:v,givenPrefix:i})),H7(o,i,v))}function H7(e,n,o){let{prefix:i,iconName:a}=o;if(e||!i||!a)return{prefix:i,iconName:a};const l=n==="fa"?sx(a):{},u=vo(i,a);return a=l.iconName||u||a,i=l.prefix||i,i==="far"&&!js.far&&js.fas&&!ye.autoFetchSvg&&(i="fas"),{prefix:i,iconName:a}}const V7=Hy.filter(e=>e!==Ct||e!==Wl),W7=Object.keys(Ff).filter(e=>e!==Ct).map(e=>Object.keys(Ff[e])).flat();function B7(e){const{values:n,family:o,canonical:i,givenPrefix:a="",styles:l={},config:u={}}=e,f=o===Wl,h=n.includes("fa-duotone")||n.includes("fad"),m=u.familyDefault==="duotone",v=i.prefix==="fad"||i.prefix==="fa-duotone";if(!f&&(h||m||v)&&(i.prefix="fad"),(n.includes("fa-brands")||n.includes("fab"))&&(i.prefix="fab"),!i.prefix&&V7.includes(o)&&(Object.keys(l).find(b=>W7.includes(b))||u.autoFetchSvg)){const b=Gk.get(o).defaultShortPrefixId;i.prefix=b,i.iconName=vo(i.prefix,i.iconName)||i.iconName}return(i.prefix==="fa"||a==="fa")&&(i.prefix=Yr()||"fas"),i}class U7{constructor(){this.definitions={}}add(){for(var n=arguments.length,o=new Array(n),i=0;i{this.definitions[l]=te(te({},this.definitions[l]||{}),a[l]),Xf(l,a[l]);const u=t0[Ct][l];u&&Xf(u,a[l]),ix()})}reset(){this.definitions={}}_pullDefinitions(n,o){const i=o.prefix&&o.iconName&&o.icon?{0:o}:o;return Object.keys(i).map(a=>{const{prefix:l,iconName:u,icon:f}=i[a],h=f[2];n[l]||(n[l]={}),h.length>0&&h.forEach(m=>{typeof m=="string"&&(n[l][m]=f)}),n[l][u]=f}),n}}let D1=[],ni={};const ai={},Y7=Object.keys(ai);function X7(e,n){let{mixoutsTo:o}=n;return D1=e,ni={},Object.keys(ai).forEach(i=>{Y7.indexOf(i)===-1&&delete ai[i]}),D1.forEach(i=>{const a=i.mixout?i.mixout():{};if(Object.keys(a).forEach(l=>{typeof a[l]=="function"&&(o[l]=a[l]),typeof a[l]=="object"&&Object.keys(a[l]).forEach(u=>{o[l]||(o[l]={}),o[l][u]=a[l][u]})}),i.hooks){const l=i.hooks();Object.keys(l).forEach(u=>{ni[u]||(ni[u]=[]),ni[u].push(l[u])})}i.provides&&i.provides(ai)}),o}function Gf(e,n){for(var o=arguments.length,i=new Array(o>2?o-2:0),a=2;a{n=u.apply(null,[n,...i])}),n}function Co(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i{l.apply(null,o)})}function Xr(){const e=arguments[0],n=Array.prototype.slice.call(arguments,1);return ai[e]?ai[e].apply(null,n):void 0}function Kf(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:n}=e;const o=e.prefix||Yr();if(n)return n=vo(o,n)||n,z1(lx.definitions,o,n)||z1(Tn.styles,o,n)}const lx=new U7,G7=()=>{ye.autoReplaceSvg=!1,ye.observeMutations=!1,Co("noAuto")},K7={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return dr?(Co("beforeI2svg",e),Xr("pseudoElements2svg",e),Xr("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:n}=e;ye.autoReplaceSvg===!1&&(ye.autoReplaceSvg=!0),ye.observeMutations=!0,P7(()=>{Q7({autoReplaceSvgRoot:n}),Co("watch",e)})}},q7={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:vo(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const n=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],o=Ul(e[0]);return{prefix:o,iconName:vo(o,n)||n}}if(typeof e=="string"&&(e.indexOf("".concat(ye.cssPrefix,"-"))>-1||e.match(m7))){const n=Yl(e.split(" "),{skipLookups:!0});return{prefix:n.prefix||Yr(),iconName:vo(n.prefix,n.iconName)||n.iconName}}if(typeof e=="string"){const n=Yr();return{prefix:n,iconName:vo(n,e)||e}}}},Qt={noAuto:G7,config:ye,dom:K7,parse:q7,library:lx,findIconDefinition:Kf,toHtml:zs},Q7=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:n=Be}=e;(Object.keys(Tn.styles).length>0||ye.autoFetchSvg)&&dr&&ye.autoReplaceSvg&&Qt.dom.i2svg({node:n})};function Xl(e,n){return Object.defineProperty(e,"abstract",{get:n}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(o=>zs(o))}}),Object.defineProperty(e,"node",{get:function(){if(!dr)return;const o=Be.createElement("div");return o.innerHTML=e.html,o.children}}),e}function Z7(e){let{children:n,main:o,mask:i,attributes:a,styles:l,transform:u}=e;if(r0(u)&&o.found&&!i.found){const{width:f,height:h}=o,m={x:f/h/2,y:.5};a.style=Bl(te(te({},l),{},{"transform-origin":"".concat(m.x+u.x/16,"em ").concat(m.y+u.y/16,"em")}))}return[{tag:"svg",attributes:a,children:n}]}function J7(e){let{prefix:n,iconName:o,children:i,attributes:a,symbol:l}=e;const u=l===!0?"".concat(n,"-").concat(ye.cssPrefix,"-").concat(o):l;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:te(te({},a),{},{id:u}),children:i}]}]}function s0(e){const{icons:{main:n,mask:o},prefix:i,iconName:a,transform:l,symbol:u,title:f,maskId:h,titleId:m,extra:v,watchable:x=!1}=e,{width:b,height:C}=o.found?o:n,N=Jk.includes(i),k=[ye.replacementClass,a?"".concat(ye.cssPrefix,"-").concat(a):""].filter(L=>v.classes.indexOf(L)===-1).filter(L=>L!==""||!!L).concat(v.classes).join(" ");let j={children:[],attributes:te(te({},v.attributes),{},{"data-prefix":i,"data-icon":a,class:k,role:v.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(b," ").concat(C)})};const M=N&&!~v.classes.indexOf("fa-fw")?{width:"".concat(b/C*16*.0625,"em")}:{};x&&(j.attributes[So]=""),f&&(j.children.push({tag:"title",attributes:{id:j.attributes["aria-labelledby"]||"title-".concat(m||ks())},children:[f]}),delete j.attributes.title);const E=te(te({},j),{},{prefix:i,iconName:a,main:n,mask:o,maskId:h,transform:l,symbol:u,styles:te(te({},M),v.styles)}),{children:R,attributes:z}=o.found&&n.found?Xr("generateAbstractMask",E)||{children:[],attributes:{}}:Xr("generateAbstractIcon",E)||{children:[],attributes:{}};return E.children=R,E.attributes=z,u?J7(E):Z7(E)}function T1(e){const{content:n,width:o,height:i,transform:a,title:l,extra:u,watchable:f=!1}=e,h=te(te(te({},u.attributes),l?{title:l}:{}),{},{class:u.classes.join(" ")});f&&(h[So]="");const m=te({},u.styles);r0(a)&&(m.transform=N7({transform:a,startCentered:!0,width:o,height:i}),m["-webkit-transform"]=m.transform);const v=Bl(m);v.length>0&&(h.style=v);const x=[];return x.push({tag:"span",attributes:h,children:[n]}),l&&x.push({tag:"span",attributes:{class:"sr-only"},children:[l]}),x}function e9(e){const{content:n,title:o,extra:i}=e,a=te(te(te({},i.attributes),o?{title:o}:{}),{},{class:i.classes.join(" ")}),l=Bl(i.styles);l.length>0&&(a.style=l);const u=[];return u.push({tag:"span",attributes:a,children:[n]}),o&&u.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),u}const{styles:mf}=Tn;function qf(e){const n=e[0],o=e[1],[i]=e.slice(4);let a=null;return Array.isArray(i)?a={tag:"g",attributes:{class:"".concat(ye.cssPrefix,"-").concat(df.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ye.cssPrefix,"-").concat(df.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(ye.cssPrefix,"-").concat(df.PRIMARY),fill:"currentColor",d:i[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:n,height:o,icon:a}}const t9={found:!1,width:512,height:512};function n9(e,n){!Uy&&!ye.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(n,'" is missing.'))}function Qf(e,n){let o=n;return n==="fa"&&ye.styleDefault!==null&&(n=Yr()),new Promise((i,a)=>{if(o==="fa"){const l=sx(e)||{};e=l.iconName||e,n=l.prefix||n}if(e&&n&&mf[n]&&mf[n][e]){const l=mf[n][e];return i(qf(l))}n9(e,n),i(te(te({},t9),{},{icon:ye.showMissingIcons&&e?Xr("missingIconAbstract")||{}:{}}))})}const L1=()=>{},Zf=ye.measurePerformance&&nl&&nl.mark&&nl.measure?nl:{mark:L1,measure:L1},us='FA "6.7.2"',r9=e=>(Zf.mark("".concat(us," ").concat(e," begins")),()=>cx(e)),cx=e=>{Zf.mark("".concat(us," ").concat(e," ends")),Zf.measure("".concat(us," ").concat(e),"".concat(us," ").concat(e," begins"),"".concat(us," ").concat(e," ends"))};var a0={begin:r9,end:cx};const ll=()=>{};function F1(e){return typeof(e.getAttribute?e.getAttribute(So):null)=="string"}function o9(e){const n=e.getAttribute?e.getAttribute(Jd):null,o=e.getAttribute?e.getAttribute(e0):null;return n&&o}function i9(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ye.replacementClass)}function s9(){return ye.autoReplaceSvg===!0?cl.replace:cl[ye.autoReplaceSvg]||cl.replace}function a9(e){return Be.createElementNS("http://www.w3.org/2000/svg",e)}function l9(e){return Be.createElement(e)}function ux(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:o=e.tag==="svg"?a9:l9}=n;if(typeof e=="string")return Be.createTextNode(e);const i=o(e.tag);return Object.keys(e.attributes||[]).forEach(function(l){i.setAttribute(l,e.attributes[l])}),(e.children||[]).forEach(function(l){i.appendChild(ux(l,{ceFn:o}))}),i}function c9(e){let n=" ".concat(e.outerHTML," ");return n="".concat(n,"Font Awesome fontawesome.com "),n}const cl={replace:function(e){const n=e[0];if(n.parentNode)if(e[1].forEach(o=>{n.parentNode.insertBefore(ux(o),n)}),n.getAttribute(So)===null&&ye.keepOriginalSource){let o=Be.createComment(c9(n));n.parentNode.replaceChild(o,n)}else n.remove()},nest:function(e){const n=e[0],o=e[1];if(~n0(n).indexOf(ye.replacementClass))return cl.replace(e);const i=new RegExp("".concat(ye.cssPrefix,"-.*"));if(delete o[0].attributes.id,o[0].attributes.class){const l=o[0].attributes.class.split(" ").reduce((u,f)=>(f===ye.replacementClass||f.match(i)?u.toSvg.push(f):u.toNode.push(f),u),{toNode:[],toSvg:[]});o[0].attributes.class=l.toSvg.join(" "),l.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",l.toNode.join(" "))}const a=o.map(l=>zs(l)).join(`
-`);n.setAttribute(So,""),n.innerHTML=a}};function $1(e){e()}function fx(e,n){const o=typeof n=="function"?n:ll;if(e.length===0)o();else{let i=$1;ye.mutateApproach===d7&&(i=Ur.requestAnimationFrame||$1),i(()=>{const a=s9(),l=a0.begin("mutate");e.map(a),l(),o()})}}let l0=!1;function dx(){l0=!0}function Jf(){l0=!1}let jl=null;function H1(e){if(!N1||!ye.observeMutations)return;const{treeCallback:n=ll,nodeCallback:o=ll,pseudoElementsCallback:i=ll,observeMutationsRoot:a=Be}=e;jl=new N1(l=>{if(l0)return;const u=Yr();gi(l).forEach(f=>{if(f.type==="childList"&&f.addedNodes.length>0&&!F1(f.addedNodes[0])&&(ye.searchPseudoElements&&i(f.target),n(f.target)),f.type==="attributes"&&f.target.parentNode&&ye.searchPseudoElements&&i(f.target.parentNode),f.type==="attributes"&&F1(f.target)&&~y7.indexOf(f.attributeName))if(f.attributeName==="class"&&o9(f.target)){const{prefix:h,iconName:m}=Yl(n0(f.target));f.target.setAttribute(Jd,h||u),m&&f.target.setAttribute(e0,m)}else i9(f.target)&&o(f.target)})}),dr&&jl.observe(a,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function u9(){jl&&jl.disconnect()}function f9(e){const n=e.getAttribute("style");let o=[];return n&&(o=n.split(";").reduce((i,a)=>{const l=a.split(":"),u=l[0],f=l.slice(1);return u&&f.length>0&&(i[u]=f.join(":").trim()),i},{})),o}function d9(e){const n=e.getAttribute("data-prefix"),o=e.getAttribute("data-icon"),i=e.innerText!==void 0?e.innerText.trim():"";let a=Yl(n0(e));return a.prefix||(a.prefix=Yr()),n&&o&&(a.prefix=n,a.iconName=o),a.iconName&&a.prefix||(a.prefix&&i.length>0&&(a.iconName=T7(a.prefix,e.innerText)||i0(a.prefix,Yf(e.innerText))),!a.iconName&&ye.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}function p9(e){const n=gi(e.attributes).reduce((a,l)=>(a.name!=="class"&&a.name!=="style"&&(a[l.name]=l.value),a),{}),o=e.getAttribute("title"),i=e.getAttribute("data-fa-title-id");return ye.autoA11y&&(o?n["aria-labelledby"]="".concat(ye.replacementClass,"-title-").concat(i||ks()):(n["aria-hidden"]="true",n.focusable="false")),n}function h9(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Dn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function V1(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:o,prefix:i,rest:a}=d9(e),l=p9(e),u=Gf("parseNodeAttributes",{},e);let f=n.styleParser?f9(e):[];return te({iconName:o,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:Dn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:f,attributes:l}},u)}const{styles:m9}=Tn;function px(e){const n=ye.autoReplaceSvg==="nest"?V1(e,{styleParser:!1}):V1(e);return~n.extra.classes.indexOf(Xy)?Xr("generateLayersText",e,n):Xr("generateSvgReplacementMutation",e,n)}function g9(){return[...qk,...$f]}function W1(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!dr)return Promise.resolve();const o=Be.documentElement.classList,i=v=>o.add("".concat(P1,"-").concat(v)),a=v=>o.remove("".concat(P1,"-").concat(v)),l=ye.autoFetchSvg?g9():$y.concat(Object.keys(m9));l.includes("fa")||l.push("fa");const u=[".".concat(Xy,":not([").concat(So,"])")].concat(l.map(v=>".".concat(v,":not([").concat(So,"])"))).join(", ");if(u.length===0)return Promise.resolve();let f=[];try{f=gi(e.querySelectorAll(u))}catch{}if(f.length>0)i("pending"),a("complete");else return Promise.resolve();const h=a0.begin("onTree"),m=f.reduce((v,x)=>{try{const b=px(x);b&&v.push(b)}catch(b){Uy||b.name==="MissingIcon"&&console.error(b)}return v},[]);return new Promise((v,x)=>{Promise.all(m).then(b=>{fx(b,()=>{i("active"),i("complete"),a("pending"),typeof n=="function"&&n(),h(),v()})}).catch(b=>{h(),x(b)})})}function v9(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;px(e).then(o=>{o&&fx([o],n)})}function y9(e){return function(n){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=(n||{}).icon?n:Kf(n||{});let{mask:a}=o;return a&&(a=(a||{}).icon?a:Kf(a||{})),e(i,te(te({},o),{},{mask:a}))}}const x9=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:o=Dn,symbol:i=!1,mask:a=null,maskId:l=null,title:u=null,titleId:f=null,classes:h=[],attributes:m={},styles:v={}}=n;if(!e)return;const{prefix:x,iconName:b,icon:C}=e;return Xl(te({type:"icon"},e),()=>(Co("beforeDOMElementCreation",{iconDefinition:e,params:n}),ye.autoA11y&&(u?m["aria-labelledby"]="".concat(ye.replacementClass,"-title-").concat(f||ks()):(m["aria-hidden"]="true",m.focusable="false")),s0({icons:{main:qf(C),mask:a?qf(a.icon):{found:!1,width:null,height:null,icon:{}}},prefix:x,iconName:b,transform:te(te({},Dn),o),symbol:i,title:u,maskId:l,titleId:f,extra:{attributes:m,styles:v,classes:h}})))};var w9={mixout(){return{icon:y9(x9)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=W1,e.nodeCallback=v9,e}}},provides(e){e.i2svg=function(n){const{node:o=Be,callback:i=()=>{}}=n;return W1(o,i)},e.generateSvgReplacementMutation=function(n,o){const{iconName:i,title:a,titleId:l,prefix:u,transform:f,symbol:h,mask:m,maskId:v,extra:x}=o;return new Promise((b,C)=>{Promise.all([Qf(i,u),m.iconName?Qf(m.iconName,m.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(N=>{let[k,j]=N;b([n,s0({icons:{main:k,mask:j},prefix:u,iconName:i,transform:f,symbol:h,maskId:v,title:a,titleId:l,extra:x,watchable:!0})])}).catch(C)})},e.generateAbstractIcon=function(n){let{children:o,attributes:i,main:a,transform:l,styles:u}=n;const f=Bl(u);f.length>0&&(i.style=f);let h;return r0(l)&&(h=Xr("generateAbstractTransformGrouping",{main:a,transform:l,containerWidth:a.width,iconWidth:a.width})),o.push(h||a.icon),{children:o,attributes:i}}}},b9={mixout(){return{layer(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:o=[]}=n;return Xl({type:"layer"},()=>{Co("beforeDOMElementCreation",{assembler:e,params:n});let i=[];return e(a=>{Array.isArray(a)?a.map(l=>{i=i.concat(l.abstract)}):i=i.concat(a.abstract)}),[{tag:"span",attributes:{class:["".concat(ye.cssPrefix,"-layers"),...o].join(" ")},children:i}]})}}}},S9={mixout(){return{counter(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:o=null,classes:i=[],attributes:a={},styles:l={}}=n;return Xl({type:"counter",content:e},()=>(Co("beforeDOMElementCreation",{content:e,params:n}),e9({content:e.toString(),title:o,extra:{attributes:a,styles:l,classes:["".concat(ye.cssPrefix,"-layers-counter"),...i]}})))}}}},C9={mixout(){return{text(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:o=Dn,title:i=null,classes:a=[],attributes:l={},styles:u={}}=n;return Xl({type:"text",content:e},()=>(Co("beforeDOMElementCreation",{content:e,params:n}),T1({content:e,transform:te(te({},Dn),o),title:i,extra:{attributes:l,styles:u,classes:["".concat(ye.cssPrefix,"-layers-text"),...a]}})))}}},provides(e){e.generateLayersText=function(n,o){const{title:i,transform:a,extra:l}=o;let u=null,f=null;if(Ly){const h=parseInt(getComputedStyle(n).fontSize,10),m=n.getBoundingClientRect();u=m.width/h,f=m.height/h}return ye.autoA11y&&!i&&(l.attributes["aria-hidden"]="true"),Promise.resolve([n,T1({content:n.innerHTML,width:u,height:f,transform:a,title:i,extra:l,watchable:!0})])}}};const k9=new RegExp('"',"ug"),B1=[1105920,1112319],U1=te(te(te(te({},{FontAwesome:{normal:"fas",400:"fas"}}),Xk),u7),r7),ed=Object.keys(U1).reduce((e,n)=>(e[n.toLowerCase()]=U1[n],e),{}),j9=Object.keys(ed).reduce((e,n)=>{const o=ed[n];return e[n]=o[900]||[...Object.entries(o)][0][1],e},{});function E9(e){const n=e.replace(k9,""),o=I7(n,0),i=o>=B1[0]&&o<=B1[1],a=n.length===2?n[0]===n[1]:!1;return{value:Yf(a?n[0]:n),isSecondary:i||a}}function N9(e,n){const o=e.replace(/^['"]|['"]$/g,"").toLowerCase(),i=parseInt(n),a=isNaN(i)?"normal":i;return(ed[o]||{})[a]||j9[o]}function Y1(e,n){const o="".concat(f7).concat(n.replace(":","-"));return new Promise((i,a)=>{if(e.getAttribute(o)!==null)return i();const u=gi(e.children).filter(b=>b.getAttribute(Vf)===n)[0],f=Ur.getComputedStyle(e,n),h=f.getPropertyValue("font-family"),m=h.match(g7),v=f.getPropertyValue("font-weight"),x=f.getPropertyValue("content");if(u&&!m)return e.removeChild(u),i();if(m&&x!=="none"&&x!==""){const b=f.getPropertyValue("content");let C=N9(h,v);const{value:N,isSecondary:k}=E9(b),j=m[0].startsWith("FontAwesome");let M=i0(C,N),E=M;if(j){const R=L7(N);R.iconName&&R.prefix&&(M=R.iconName,C=R.prefix)}if(M&&!k&&(!u||u.getAttribute(Jd)!==C||u.getAttribute(e0)!==E)){e.setAttribute(o,E),u&&e.removeChild(u);const R=h9(),{extra:z}=R;z.attributes[Vf]=n,Qf(M,C).then(L=>{const A=s0(te(te({},R),{},{icons:{main:L,mask:ax()},prefix:C,iconName:E,extra:z,watchable:!0})),D=Be.createElementNS("http://www.w3.org/2000/svg","svg");n==="::before"?e.insertBefore(D,e.firstChild):e.appendChild(D),D.outerHTML=A.map(F=>zs(F)).join(`
-`),e.removeAttribute(o),i()}).catch(a)}else i()}else i()})}function M9(e){return Promise.all([Y1(e,"::before"),Y1(e,"::after")])}function A9(e){return e.parentNode!==document.head&&!~p7.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Vf)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function X1(e){if(dr)return new Promise((n,o)=>{const i=gi(e.querySelectorAll("*")).filter(A9).map(M9),a=a0.begin("searchPseudoElements");dx(),Promise.all(i).then(()=>{a(),Jf(),n()}).catch(()=>{a(),Jf(),o()})})}var P9={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=X1,e}}},provides(e){e.pseudoElements2svg=function(n){const{node:o=Be}=n;ye.searchPseudoElements&&X1(o)}}};let G1=!1;var R9={mixout(){return{dom:{unwatch(){dx(),G1=!0}}}},hooks(){return{bootstrap(){H1(Gf("mutationObserverCallbacks",{}))},noAuto(){u9()},watch(e){const{observeMutationsRoot:n}=e;G1?Jf():H1(Gf("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}};const K1=e=>{let n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((o,i)=>{const a=i.toLowerCase().split("-"),l=a[0];let u=a.slice(1).join("-");if(l&&u==="h")return o.flipX=!0,o;if(l&&u==="v")return o.flipY=!0,o;if(u=parseFloat(u),isNaN(u))return o;switch(l){case"grow":o.size=o.size+u;break;case"shrink":o.size=o.size-u;break;case"left":o.x=o.x-u;break;case"right":o.x=o.x+u;break;case"up":o.y=o.y-u;break;case"down":o.y=o.y+u;break;case"rotate":o.rotate=o.rotate+u;break}return o},n)};var I9={mixout(){return{parse:{transform:e=>K1(e)}}},hooks(){return{parseNodeAttributes(e,n){const o=n.getAttribute("data-fa-transform");return o&&(e.transform=K1(o)),e}}},provides(e){e.generateAbstractTransformGrouping=function(n){let{main:o,transform:i,containerWidth:a,iconWidth:l}=n;const u={transform:"translate(".concat(a/2," 256)")},f="translate(".concat(i.x*32,", ").concat(i.y*32,") "),h="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),m="rotate(".concat(i.rotate," 0 0)"),v={transform:"".concat(f," ").concat(h," ").concat(m)},x={transform:"translate(".concat(l/2*-1," -256)")},b={outer:u,inner:v,path:x};return{tag:"g",attributes:te({},b.outer),children:[{tag:"g",attributes:te({},b.inner),children:[{tag:o.icon.tag,children:o.icon.children,attributes:te(te({},o.icon.attributes),b.path)}]}]}}}};const gf={x:0,y:0,width:"100%",height:"100%"};function q1(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||n)&&(e.attributes.fill="black"),e}function z9(e){return e.tag==="g"?e.children:[e]}var O9={hooks(){return{parseNodeAttributes(e,n){const o=n.getAttribute("data-fa-mask"),i=o?Yl(o.split(" ").map(a=>a.trim())):ax();return i.prefix||(i.prefix=Yr()),e.mask=i,e.maskId=n.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(n){let{children:o,attributes:i,main:a,mask:l,maskId:u,transform:f}=n;const{width:h,icon:m}=a,{width:v,icon:x}=l,b=E7({transform:f,containerWidth:v,iconWidth:h}),C={tag:"rect",attributes:te(te({},gf),{},{fill:"white"})},N=m.children?{children:m.children.map(q1)}:{},k={tag:"g",attributes:te({},b.inner),children:[q1(te({tag:m.tag,attributes:te(te({},m.attributes),b.path)},N))]},j={tag:"g",attributes:te({},b.outer),children:[k]},M="mask-".concat(u||ks()),E="clip-".concat(u||ks()),R={tag:"mask",attributes:te(te({},gf),{},{id:M,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[C,j]},z={tag:"defs",children:[{tag:"clipPath",attributes:{id:E},children:z9(x)},R]};return o.push(z,{tag:"rect",attributes:te({fill:"currentColor","clip-path":"url(#".concat(E,")"),mask:"url(#".concat(M,")")},gf)}),{children:o,attributes:i}}}},_9={provides(e){let n=!1;Ur.matchMedia&&(n=Ur.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const o=[],i={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};o.push({tag:"path",attributes:te(te({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const l=te(te({},a),{},{attributeName:"opacity"}),u={tag:"circle",attributes:te(te({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||u.children.push({tag:"animate",attributes:te(te({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:te(te({},l),{},{values:"1;0;1;1;0;1;"})}),o.push(u),o.push({tag:"path",attributes:te(te({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:te(te({},l),{},{values:"1;0;0;0;0;1;"})}]}),n||o.push({tag:"path",attributes:te(te({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:te(te({},l),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:o}}}},D9={hooks(){return{parseNodeAttributes(e,n){const o=n.getAttribute("data-fa-symbol"),i=o===null?!1:o===""?!0:o;return e.symbol=i,e}}}},T9=[A7,w9,b9,S9,C9,P9,R9,I9,O9,_9,D9];X7(T9,{mixoutsTo:Qt});Qt.noAuto;Qt.config;Qt.library;Qt.dom;const td=Qt.parse;Qt.findIconDefinition;Qt.toHtml;const L9=Qt.icon;Qt.layer;Qt.text;Qt.counter;var vf={exports:{}},yf,Q1;function F9(){if(Q1)return yf;Q1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return yf=e,yf}var xf,Z1;function $9(){if(Z1)return xf;Z1=1;var e=F9();function n(){}function o(){}return o.resetWarningCache=n,xf=function(){function i(u,f,h,m,v,x){if(x!==e){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}i.isRequired=i;function a(){return i}var l={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:o,resetWarningCache:n};return l.PropTypes=l,l},xf}var J1;function H9(){return J1||(J1=1,vf.exports=$9()()),vf.exports}var V9=H9();const je=Nl(V9);var W9={};function nd(e,n){(n==null||n>e.length)&&(n=e.length);for(var o=0,i=Array(n);oj}for(var M=0;M2&&arguments[2]!==void 0?arguments[2]:{};if(typeof n=="string")return n;var i=(n.children||[]).map(function(h){return gx(e,h)}),a=Object.keys(n.attributes||{}).reduce(function(h,m){var v=n.attributes[m];switch(m){case"class":h.attrs.className=v,delete n.attributes.class;break;case"style":h.attrs.style=aj(v);break;default:m.indexOf("aria-")===0||m.indexOf("data-")===0?h.attrs[m.toLowerCase()]=v:h.attrs[mx(m)]=v}return h},{attrs:{}}),l=o.style,u=l===void 0?{}:l,f=q9(o,ij);return a.attrs.style=zn(zn({},a.attrs.style),u),e.apply(void 0,[n.tag,zn(zn({},a.attrs),f)].concat(rd(i)))}var vx=!1;try{vx=!0}catch{}function lj(){if(!vx&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function ng(e){if(e&&El(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(td.icon)return td.icon(e);if(e===null)return null;if(e&&El(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function wf(e,n){return Array.isArray(n)&&n.length>0||!Array.isArray(n)&&n?Tr({},e,n):{}}var rg={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,rotateBy:!1,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1,widthAuto:!1},ar=ke.forwardRef(function(e,n){var o=zn(zn({},rg),e),i=o.icon,a=o.mask,l=o.symbol,u=o.className,f=o.title,h=o.titleId,m=o.maskId,v=ng(i),x=wf("classes",[].concat(rd(nj(o)),rd((u||"").split(" ")))),b=wf("transform",typeof o.transform=="string"?td.transform(o.transform):o.transform),C=wf("mask",ng(a)),N=L9(v,zn(zn(zn(zn({},x),b),C),{},{symbol:l,title:f,titleId:h,maskId:m}));if(!N)return lj("Could not find icon",v),null;var k=N.abstract,j={ref:n};return Object.keys(o).forEach(function(M){rg.hasOwnProperty(M)||(j[M]=o[M])}),cj(k[0],j)});ar.displayName="FontAwesomeIcon";ar.propTypes={beat:je.bool,border:je.bool,beatFade:je.bool,bounce:je.bool,className:je.string,fade:je.bool,flash:je.bool,mask:je.oneOfType([je.object,je.array,je.string]),maskId:je.string,fixedWidth:je.bool,inverse:je.bool,flip:je.oneOf([!0,!1,"horizontal","vertical","both"]),icon:je.oneOfType([je.object,je.array,je.string]),listItem:je.bool,pull:je.oneOf(["right","left"]),pulse:je.bool,rotation:je.oneOf([0,90,180,270]),rotateBy:je.bool,shake:je.bool,size:je.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:je.bool,spinPulse:je.bool,spinReverse:je.bool,symbol:je.oneOfType([je.bool,je.string]),title:je.string,titleId:je.string,transform:je.oneOfType([je.string,je.object]),swapOpacity:je.bool,widthAuto:je.bool};var cj=gx.bind(null,ke.createElement);const yx=y.createContext(1);function mt({id:e,label:n,zIndex:o=10,canRotate:i=!1,canResize:a=!0,children:l}){const u=Pe(I=>I.active),f=Pe(I=>I.elements[e]),h=Pe(I=>I.move),m=Pe(I=>I.toggleHidden),v=Pe(I=>I.toggleVertical),x=Pe(I=>I.rescale),b=Pe(I=>I.reset),C=Pe(I=>I.permissions[e]),N=(C==null?void 0:C.canMove)??!0,k=(C==null?void 0:C.canHide)??!0,j=a&&((C==null?void 0:C.canResize)??!0),M=(f==null?void 0:f.dx)??0,E=(f==null?void 0:f.dy)??0,R=(f==null?void 0:f.hidden)??!1,z=(f==null?void 0:f.vertical)??!1,L=(f==null?void 0:f.scale)??1,[A,D]=y.useState(!1),[F,W]=y.useState(null),J=y.useRef({startX:0,startY:0,startDx:0,startDy:0}),oe=y.useRef({minDx:-1/0,maxDx:1/0,minDy:-1/0,maxDy:1/0}),B=y.useRef(null),de=y.useRef(null),ie=y.useRef(M),ue=y.useRef(E);ie.current=M,ue.current=E;const ae=20;y.useLayoutEffect(()=>{if(!u||!B.current)return;const I=B.current,G=de.current;let ee=1/0,K=1/0,ne=-1/0,se=-1/0;for(const he of Array.from(I.querySelectorAll("*"))){if(G&&(he===G||G.contains(he))||he instanceof SVGElement&&!(he instanceof SVGSVGElement))continue;const ce=he.getBoundingClientRect();ce.width===0&&ce.height===0||(ee=Math.min(ee,ce.left),K=Math.min(K,ce.top),ne=Math.max(ne,ce.right),se=Math.max(se,ce.bottom))}if(ee!==1/0){const he=ie.current,ce=ue.current;W({l:ee-he,t:K-ce,r:ne-he,b:se-ce})}return()=>W(null)},[u]);const fe=y.useCallback(I=>{I.preventDefault(),I.stopPropagation();const G=B.current;if(G){const ne=de.current;let se=1/0,he=1/0,ce=-1/0,Ie=-1/0;for(const Le of Array.from(G.querySelectorAll("*"))){if(ne&&(Le===ne||ne.contains(Le))||Le instanceof SVGElement&&!(Le instanceof SVGSVGElement))continue;const vt=Le.getBoundingClientRect();vt.width===0&&vt.height===0||(se=Math.min(se,vt.left),he=Math.min(he,vt.top),ce=Math.max(ce,vt.right),Ie=Math.max(Ie,vt.bottom))}se!==1/0&&(oe.current={minDx:ae-se+M,maxDx:window.innerWidth-ae-ce+M,minDy:ae-he+E,maxDy:window.innerHeight-ae-Ie+E})}J.current={startX:I.clientX,startY:I.clientY,startDx:M,startDy:E},D(!0);const ee=ne=>{const{minDx:se,maxDx:he,minDy:ce,maxDy:Ie}=oe.current,Le=Math.max(se,Math.min(he,J.current.startDx+ne.clientX-J.current.startX)),vt=Math.max(ce,Math.min(Ie,J.current.startDy+ne.clientY-J.current.startY));h(e,Le,vt)},K=()=>{D(!1),window.removeEventListener("mousemove",ee),window.removeEventListener("mouseup",K)};window.addEventListener("mousemove",ee),window.addEventListener("mouseup",K)},[M,E,e,h]);if(R&&!u)return null;const U=M!==0||E!==0,Q=Math.abs(L-1)>.005,Z=U?`translate(${M}px, ${E}px)`:void 0,_=F?{x:(F.l+F.r)/2,y:(F.t+F.b)/2}:null;return g.jsxs("div",{ref:B,style:{position:"fixed",inset:0,overflow:"visible",pointerEvents:"none",zIndex:o,transform:Z,opacity:R?.3:1},children:[g.jsx(yx.Provider,{value:L,children:l}),u&&F&&N&&g.jsx("div",{style:{position:"absolute",left:F.l,top:F.t,width:F.r-F.l,height:F.b-F.t,pointerEvents:"auto",cursor:A?"grabbing":"grab",zIndex:9997},onMouseDown:fe}),A&&F&&g.jsx("div",{style:{position:"absolute",left:F.l-6,top:F.t-6,width:F.r-F.l+12,height:F.b-F.t+12,border:"2px solid hsl(var(--primary))",boxShadow:"0 0 12px hsl(var(--primary) / 0.5), inset 0 0 8px hsl(var(--primary) / 0.15)",borderRadius:6,pointerEvents:"none",zIndex:9998}}),u&&F&&_&&(N||k||j)&&g.jsxs("div",{ref:de,style:{position:"absolute",left:_.x,top:F.b+8,transform:"translate(-50%, 0)",pointerEvents:"auto",display:"flex",alignItems:"center",gap:6,background:A?"hsl(var(--primary) / 0.22)":"hsl(var(--card))",border:`1px solid ${A?"hsl(var(--primary))":"hsl(var(--border))"}`,borderRadius:8,padding:"4px 8px",color:"white",fontSize:12,fontWeight:600,userSelect:"none",boxShadow:A?"0 0 10px hsl(var(--primary) / 0.4), 0 2px 8px rgba(0,0,0,0.5)":"0 2px 8px rgba(0,0,0,0.5)",cursor:N?A?"grabbing":"grab":"default",zIndex:9999,whiteSpace:"nowrap",opacity:A?.5:1,transition:"background 0.1s, border-color 0.1s, opacity 0.1s"},onMouseDown:N?fe:void 0,children:[N&&g.jsx(ar,{icon:kg,style:{color:A?"hsl(var(--foreground))":"hsl(var(--muted-foreground))",fontSize:11,flexShrink:0}}),g.jsx("span",{style:{color:A?"hsl(var(--primary))":"hsl(var(--muted-foreground))",letterSpacing:"0.04em"},children:n}),k&&g.jsx(as,{title:R?"Mostrar":"Ocultar",onClick:()=>m(e),icon:R?pg:cg}),N&&i&&g.jsx(as,{title:z?"Horizontal":"Vertical",onClick:()=>v(e),icon:f5,color:z?"rgba(167,243,208,0.9)":"rgba(255,255,255,0.55)"}),j&&g.jsxs(g.Fragment,{children:[g.jsx(as,{title:"Diminuir",onClick:()=>x(e,L/1.1),icon:yg,color:"rgba(255,255,255,0.7)"}),g.jsxs("span",{style:{color:Q?"hsl(var(--foreground))":"hsl(var(--muted-foreground) / 0.5)",fontSize:10,minWidth:28,textAlign:"center",userSelect:"none"},children:[Math.round(L*100),"%"]}),g.jsx(as,{title:"Aumentar",onClick:()=>x(e,L*1.1),icon:Cg,color:"rgba(255,255,255,0.7)"})]}),N&&(U||Q)&&g.jsx(as,{title:"Resetar posição",onClick:()=>b(e),icon:dg,color:"hsl(var(--destructive))"})]})]})}function as({title:e,onClick:n,icon:o,color:i="rgba(255,255,255,0.8)"}){return g.jsx("button",{style:{background:"none",border:"none",color:i,cursor:"pointer",padding:"0 2px",lineHeight:1,flexShrink:0},title:e,onMouseDown:a=>a.stopPropagation(),onClick:a=>{a.stopPropagation(),n()},children:g.jsx(ar,{icon:o,style:{fontSize:12}})})}function uj(){const e=Te(m=>m.show),n=ct(m=>m.layout),o=ct(m=>m.iconBetweenSpacing),i=ct(m=>m.yAxisSpacing),a=ct(m=>m.xAxisSpacing),l=Pe(m=>{var v;return((v=m.elements.statusBar)==null?void 0:v.vertical)??!1});if(!e&&!an)return null;const u={gap:`${o}px`,marginBottom:`${i}px`,marginLeft:`${a}px`},f=g.jsxs("div",{style:{display:"flex",flexDirection:l?"column":"row",alignItems:"center",gap:`${o}px`},children:[g.jsx(zk,{}),g.jsx(Tk,{})]});let h;return n==="center-bottom-row"?h=g.jsx("div",{className:"absolute bottom-[0.3vw] w-[100vw]",children:g.jsx("div",{className:"static flex flex-col mx-auto",style:{width:"max-content",...u},children:f})}):n==="bottom-right-row"?h=g.jsx("div",{className:"absolute bottom-[0.3vw] right-[0.3vw] flex flex-col",style:u,children:f}):n==="left-bottom-column"?h=g.jsx("div",{className:"absolute bottom-[0.3vw] left-[1vh]",children:g.jsx("div",{className:"static flex flex-col",style:u,children:f})}):n==="right-bottom-column"?h=g.jsx("div",{className:"absolute bottom-[0.3vw] right-[1vh]",children:g.jsx("div",{className:"static flex flex-col",style:u,children:f})}):n==="top-left-row"?h=g.jsx("div",{className:"absolute top-[0.3vw] left-[0.3vw] flex flex-col",style:u,children:f}):n==="top-right-row"?h=g.jsx("div",{className:"absolute top-[0.3vw] right-[0.3vw] flex flex-col",style:u,children:f}):h=g.jsx("div",{className:"absolute bottom-[0.3vw] left-[0.3vw] flex flex-col standard-layout",style:u,children:f}),g.jsx(mt,{id:"statusBar",label:"Barra de Status",zIndex:20,canRotate:!0,children:h})}function xn({name:e,disabled:n=!1,disabledText:o="",className:i="",onClick:a}){return g.jsx(li,{disabled:n,onClick:a,className:`my-2 w-[150px] uppercase font-bold ${i}`,children:n&&o?o:e})}function ht({checked:e,primaryText:n,secondaryText:o="",onChange:i}){return g.jsxs("div",{className:`flex flex-row gap-4 py-3 cursor-pointer select-none ${o?"items-center":""}`,onClick:()=>i(!e),children:[g.jsx("div",{className:`grid place-content-center shrink-0 rounded-[0.15em] border-[0.15em] -translate-y-[0.075em] transition-colors ${e?"border-primary bg-primary":"border-primary/45 bg-card"}`,style:{width:"1.6em",height:"1.6em"},children:e&&g.jsx("svg",{viewBox:"0 0 12 12",width:"10",height:"10",fill:"none",children:g.jsx("polyline",{points:"1.5,6.5 4.5,9.5 10.5,2.5",stroke:"hsl(var(--primary-foreground))",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),o?g.jsxs("div",{className:"flex flex-col text-foreground",children:[g.jsx("span",{className:"text-[1.2em] leading-tight mb-1",children:n}),g.jsx("span",{className:"text-[1.1em] leading-tight text-muted-foreground",children:o})]}):g.jsx("span",{className:"text-[1.2em] leading-tight text-foreground",children:n})]})}function Es({checked:e,checkedText:n="",uncheckedText:o="",center:i=!1,onChange:a}){return g.jsxs("div",{className:"flex flex-row items-center pt-2 pb-4 gap-3 select-none",style:i?{justifyContent:"center"}:{},children:[g.jsx(S2,{checked:e,onCheckedChange:a,"aria-label":n||o||"toggle"}),n&&o?g.jsx("span",{className:"text-[1.2em] leading-tight text-foreground",children:e?n:o}):null]})}const fj=""+new URL("mri-logo.png",import.meta.url).href;function dj(){return g.jsx("img",{src:fj,alt:"MRI Qbox Brasil",className:"w-full h-auto object-contain rounded-lg",draggable:!1})}function pj(){const e=Wn(A=>A.translations),n=Ae(A=>A.isRestarting),o=Ae(A=>A.isOutMapChecked),i=Ae(A=>A.isOutCompassChecked),a=Ae(A=>A.isCompassFollowChecked),l=Ae(A=>A.isOpenMenuSoundsChecked),u=Ae(A=>A.isResetSoundsChecked),f=Ae(A=>A.isListSoundsChecked),h=Ae(A=>A.isMapNotifyChecked),m=Ae(A=>A.isLowFuelAlertChecked),v=Ae(A=>A.isCinematicNotifyChecked),x=Ae(A=>A.isMapEnabledChecked),b=Ae(A=>A.isToggleMapShapeChecked),C=Ae(A=>A.isShowCompassChecked),N=Ae(A=>A.isShowStreetsChecked),k=Ae(A=>A.isPointerShowChecked),j=Ae(A=>A.isCinematicModeChecked),M=Ae(A=>A.isUseMPHChecked),E=Pe(A=>A.enabled),R=Te(A=>A.dynamicIcons),z=Ae.setState,L=Te.getState;return g.jsxs("div",{className:"text-sm flex flex-col",style:{color:"hsl(var(--muted-foreground))"},children:[g.jsxs("div",{className:"mx-4 mb-5 mt-3",children:[g.jsx("div",{className:"float-right w-[25%]",children:g.jsx(dj,{})}),g.jsx("div",{className:"-mx-4 mb-4 text-xl",style:{color:"hsl(var(--foreground))"},children:g.jsx("p",{children:e.resetHud})}),g.jsx(xn,{name:e.resetHud,disabled:n,disabledText:e.resettingHud,className:"whitespace-nowrap hover:bg-red-600",onClick:()=>{$e("restartHud"),z({isRestarting:!0})}}),g.jsx("p",{className:"text-base",children:e.resetHudDescription}),g.jsx(xn,{name:e.resetSettings,className:"hover:bg-red-600",onClick:()=>{Ae.getState().resetHudMenuSetting(),Ae.getState().sendMenuSettingsToClient()}}),g.jsx("p",{className:"text-base",children:e.resetSettingsDescriptionLine1}),g.jsx("p",{className:"text-base",children:e.resetSettingsDescriptionLine2})]}),E&&g.jsxs(g.Fragment,{children:[g.jsx("hr",{style:{borderColor:"hsl(var(--border))"}}),g.jsx("div",{className:"my-3 text-base font-semibold",style:{color:"hsl(var(--muted-foreground))",textTransform:"uppercase",letterSpacing:"0.06em"},children:g.jsx("p",{children:e.positioningMenu})}),g.jsxs("div",{className:"mx-4 mb-4 flex flex-col gap-3",children:[g.jsxs("div",{children:[g.jsx(xn,{name:e.openPositioningMode,onClick:()=>{$e("switchToPositioningMode"),Ae.setState({show:!1}),Pe.setState({active:!0})}}),g.jsx("p",{className:"text-base",children:e.openPositioningModeDescription})]}),g.jsxs("div",{children:[g.jsx(xn,{name:e.resetAllPositions,className:"hover:bg-red-600",onClick:()=>Pe.getState().resetAll()}),g.jsx("p",{className:"text-base",children:e.resetAllPositionsDescription})]})]})]}),g.jsx("hr",{style:{borderColor:"hsl(var(--border))"}}),g.jsx("div",{className:"my-3 text-base font-semibold",style:{color:"hsl(var(--muted-foreground))",textTransform:"uppercase",letterSpacing:"0.06em"},children:g.jsx("p",{children:e.optionsMenu})}),g.jsxs("div",{className:"mx-4 mb-4 flex flex-col",children:[g.jsx(ht,{checked:o,primaryText:e.minimapVehicleCheckBoxPrimary,secondaryText:e.minimapVehicleCheckBoxSecondary,onChange:A=>{z({isOutMapChecked:A}),$e("showOutMap",{checked:A})}}),g.jsx(ht,{checked:i,primaryText:e.compassVehicleCheckBoxPrimary,secondaryText:e.compassVehicleCheckBoxSecondary,onChange:A=>{z({isOutCompassChecked:A}),$e("showOutCompass",{checked:A})}}),g.jsx(ht,{checked:a,primaryText:e.compassFollowCheckBoxPrimary,secondaryText:e.compassFollowCheckBoxSecondary,onChange:A=>{z({isCompassFollowChecked:A}),$e("showFollowCompass",{checked:A})}})]}),g.jsx("hr",{style:{borderColor:"hsl(var(--border))"}}),g.jsx("div",{className:"my-3 text-base font-semibold",style:{color:"hsl(var(--muted-foreground))",textTransform:"uppercase",letterSpacing:"0.06em"},children:g.jsx("p",{children:e.notificationsMenu})}),g.jsxs("div",{className:"mx-4 mb-4 flex flex-col",children:[g.jsx(ht,{checked:l,primaryText:e.menuSoundEffectsEnabled,onChange:A=>{z({isOpenMenuSoundsChecked:A}),$e("openMenuSounds",{checked:A})}}),g.jsx(ht,{checked:u,primaryText:e.resetSoundEffectsEnabled,onChange:A=>{z({isResetSoundsChecked:A}),$e("resetHudSounds",{checked:A})}}),g.jsx(ht,{checked:f,primaryText:e.guiSoundEffectsEnabled,onChange:A=>{z({isListSoundsChecked:A}),$e("checklistSounds",{checked:A})}}),g.jsx(ht,{checked:h,primaryText:e.mapNotificationsEnabled,onChange:A=>{z({isMapNotifyChecked:A}),$e("showMapNotif",{checked:A})}}),g.jsx(ht,{checked:m,primaryText:e.lowFuelNotificationsEnabled,onChange:A=>{z({isLowFuelAlertChecked:A}),$e("showFuelAlert",{checked:A})}}),g.jsx(ht,{checked:v,primaryText:e.cinematicModeNotificationEnabled,onChange:A=>{z({isCinematicNotifyChecked:A}),$e("showCinematicNotif",{checked:A})}})]}),g.jsx("hr",{style:{borderColor:"hsl(var(--border))"}}),g.jsx("div",{className:"my-3 text-base font-semibold",style:{color:"hsl(var(--muted-foreground))",textTransform:"uppercase",letterSpacing:"0.06em"},children:g.jsx("p",{children:e.statusMenu})}),g.jsx("div",{className:"mx-4 mb-4 flex flex-col",children:["health","armor","hunger","thirst","stress","oxygen"].map(A=>g.jsx(ht,{checked:R[A],primaryText:e[`show${A.charAt(0).toUpperCase()+A.slice(1)}Always`],onChange:D=>{L().updateShowingDynamicIcon(A,D),$e("dynamicChange")}},A))}),g.jsx("hr",{style:{borderColor:"hsl(var(--border))"}}),g.jsx("div",{className:"my-3 text-base font-semibold",style:{color:"hsl(var(--muted-foreground))",textTransform:"uppercase",letterSpacing:"0.06em"},children:g.jsx("p",{children:e.vehicleMenu})}),g.jsxs("div",{className:"mx-4 mb-4 flex flex-col",children:[g.jsx(Es,{checked:b==="circle",checkedText:e.minimapTypeCircle,uncheckedText:e.minimapTypeSquare,onChange:A=>{const D=A?"circle":"square";z({isToggleMapShapeChecked:D}),$e("ToggleMapShape",{shape:D})}}),g.jsx("p",{className:"font-semibold text-base pb-2",children:e.minimapTypeDescription}),g.jsx(Es,{checked:M,checkedText:e.metricsTypeMiles,uncheckedText:e.metricsTypeKmh,onChange:A=>{z({isUseMPHChecked:A}),$e("toggleSpeedUnit",{useMPH:A})}}),g.jsx("p",{className:"font-semibold text-base pb-2",children:e.metricsTypeDescription}),g.jsx(ht,{checked:x,primaryText:e.minimapEnabled,onChange:A=>{z({isMapEnabledChecked:A}),$e("HideMap",{checked:A})}}),g.jsx(ht,{checked:R.engine,primaryText:e.showEngineAlways,onChange:A=>{L().updateShowingDynamicIcon("engine",A),$e("dynamicChange")}}),g.jsx(ht,{checked:R.nitro,primaryText:e.showNitroAlways,onChange:A=>{L().updateShowingDynamicIcon("nitro",A),$e("dynamicChange")}})]}),g.jsx("hr",{style:{borderColor:"hsl(var(--border))"}}),g.jsx("div",{className:"my-3 text-base font-semibold",style:{color:"hsl(var(--muted-foreground))",textTransform:"uppercase",letterSpacing:"0.06em"},children:g.jsx("p",{children:e.compassMenu})}),g.jsxs("div",{className:"mx-4 mb-4 flex flex-col",children:[g.jsx(ht,{checked:C,primaryText:e.compassEnabled,secondaryText:e.compassEnabledDescription,onChange:A=>{z({isShowCompassChecked:A}),$e("showCompassBase",{checked:A})}}),g.jsx(ht,{checked:N,primaryText:e.showStreetNamesEnabled,secondaryText:e.showStreetNamesDescription,onChange:A=>{z({isShowStreetsChecked:A}),$e("showStreetsNames",{checked:A})}}),g.jsx(ht,{checked:k,primaryText:e.showCompassPointerEnabled,secondaryText:e.showCompassPointerDescription,onChange:A=>{z({isPointerShowChecked:A}),$e("showPointerIndex",{checked:A})}})]}),g.jsx("hr",{style:{borderColor:"hsl(var(--border))"}}),g.jsx("div",{className:"my-3 text-base font-semibold",style:{color:"hsl(var(--muted-foreground))",textTransform:"uppercase",letterSpacing:"0.06em"},children:g.jsx("p",{children:e.cinematicMenu})}),g.jsx("div",{className:"mx-4 mb-4 flex flex-row gap-5",children:g.jsx(ht,{checked:j,primaryText:e.showCinematicBarsEnabled,onChange:A=>{z({isCinematicModeChecked:A}),$e("cinematicMode",{checked:A})}})})]})}function Os({name:e,icon:n=null,color:o="currentColor",children:i,defaultOpen:a=!1}){const[l,u]=y.useState(a);let f=null,h=512,m=512;if(n){h=n.icon[0],m=n.icon[1];const v=n.icon[4];f=Array.isArray(v)?v[0]:v}return g.jsxs("div",{children:[g.jsxs("button",{type:"button",onClick:()=>u(v=>!v),className:"w-full flex flex-row items-center text-lg font-semibold px-3 py-3 bg-transparent border-none cursor-pointer text-left text-foreground hover:text-primary transition-colors focus:outline-none",children:[g.jsx("div",{className:"w-8 grid place-items-center shrink-0 text-muted-foreground",children:f&&g.jsx("svg",{width:"16",height:"16",viewBox:`0 0 ${h} ${m}`,children:g.jsx("path",{d:f,fill:o==="white"?"currentColor":o})})}),g.jsx("p",{className:"ml-3",children:e}),g.jsx("span",{className:"ml-auto transition-transform duration-200 text-muted-foreground",style:{transform:l?"rotate(180deg)":"rotate(0deg)",lineHeight:.5},children:g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",stroke:"currentColor",fill:"currentColor",children:g.jsx("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})})]}),l&&g.jsx("div",{className:"pb-4",children:i})]})}function hj(e){return e.split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" ")}function gs({values:e,value:n,onChange:o}){const i=e.map(a=>({label:hj(a),value:a}));return g.jsx(YC,{options:i,value:n,onChange:o,className:"w-full"})}function og(e,n,o){const i=Math.max(n,Math.min(o,e));return Math.round(i*100)/100}function Me({value:e,min:n=0,max:o=10,step:i=1,onChange:a}){function l(f){a(og(e+f*i,n,o))}function u(f){const h=f.target.value;if(h.endsWith("."))return;const m=Number(h);isNaN(m)||a(og(m,n,o))}return g.jsxs("div",{className:"flex flex-row mx-auto h-10 w-30 rounded border border-border overflow-hidden",children:[g.jsx("button",{type:"button",onClick:()=>l(-1),className:"font-semibold text-muted-foreground h-full w-8 flex bg-card border-r border-border cursor-pointer transition-colors hover:bg-muted hover:text-foreground focus:outline-none",children:g.jsx("span",{className:"mx-auto mt-[10%] text-lg font-bold",children:"-"})}),g.jsx("input",{type:"text",value:e,onChange:u,className:"w-14 p-1 text-base focus:outline-none text-center bg-background text-foreground"}),g.jsx("button",{type:"button",onClick:()=>l(1),className:"font-semibold text-muted-foreground h-full w-8 flex bg-card border-l border-border cursor-pointer transition-colors hover:bg-muted hover:text-foreground focus:outline-none",children:g.jsx("span",{className:"mx-auto mt-[10%] text-lg font-bold",children:"+"})})]})}function $r({color:e,onChange:n}){const o=e&&e!==""?e:"#3b82f6";return g.jsx("div",{className:"flex flex-col items-center mx-auto rounded-lg overflow-hidden w-[40px] h-[40px] border-2 border-border",children:g.jsx("input",{type:"color",value:o.length===9?o.slice(0,7):o,onChange:i=>n(i.target.value),className:"w-[60px] h-[60px] -translate-x-[10px] -translate-y-[10px] cursor-pointer border-none bg-transparent",title:o})})}function mj(){var l;const e=Wn(u=>u.translations),n=Te(u=>u.globalIconSettings),o=Pt(u=>u.globalColorSettings),i=Te.getState,a=Pt.getState;return g.jsxs(Os,{name:e.globalStatusIconsSettings,icon:U4,color:"white",children:[g.jsx("div",{className:"flex justify-center mb-8",children:g.jsxs("div",{className:"w-50",children:[g.jsx("p",{className:"text-lg text-center mb-2",children:e.iconShape}),g.jsx(gs,{values:sg,value:n.shape??"circle-ring",onChange:u=>{i().updateAllShapes(u),a().updateAllIconShapeEditableColor(u)}})]})}),g.jsxs("div",{className:"mx-8",children:[g.jsx("p",{className:"text-sm font-semibold uppercase",style:{color:"hsl(var(--muted-foreground))",letterSpacing:"0.06em"},children:e.globalSizeAndPositionSection}),g.jsx("hr",{className:"mb-6",style:{borderColor:"hsl(var(--border))"}})]}),g.jsxs("div",{className:"mx-4 grid grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-6 items-end",children:[g.jsx(Qe,{label:e.widthSize,children:g.jsx(Me,{min:1,max:200,value:n.width??50,onChange:i().updateAllWidth})}),g.jsx(Qe,{label:e.heightSize,children:g.jsx(Me,{min:1,max:200,value:n.height??50,onChange:i().updateAllHeight})}),n.ringSize!=null&&g.jsx(Qe,{label:e.ringSize,children:g.jsx(Me,{min:1,max:25,step:.5,value:n.ringSize,onChange:i().updateAllRingSize})}),n.displayOutline!=null&&g.jsx(Qe,{label:e.showProgressOutline,children:g.jsx(Es,{center:!0,checked:n.displayOutline,onChange:i().updateAllDisplayOutline})}),g.jsx(Qe,{label:e.xAxisPosition,children:g.jsx(Me,{min:-20,max:20,step:.25,value:n.translateX??0,onChange:i().updateAllTranslateX})}),g.jsx(Qe,{label:e.yAxisPosition,children:g.jsx(Me,{min:-20,max:20,step:.25,value:n.translateY??0,onChange:i().updateAllTranslateY})}),g.jsx(Qe,{label:e.rotation,children:g.jsx(Me,{min:0,max:360,value:n.rotateDegree??0,onChange:i().updateAllRotateDegree})}),g.jsx(Qe,{label:e.iconXAxisPosition,children:g.jsx(Me,{min:-10,max:10,step:.01,value:n.iconTranslateX??0,onChange:i().updateAllTranslateIconX})}),g.jsx(Qe,{label:e.iconYAxisPosition,children:g.jsx(Me,{min:-10,max:10,step:.01,value:n.iconTranslateY??0,onChange:i().updateAllTranslateIconY})}),g.jsx(Qe,{label:e.iconSize,children:g.jsx(Me,{min:0,max:3,step:.01,value:n.iconScaling??.4,onChange:i().updateAllIconScale})}),n.xAxisRound!=null&&g.jsx(Qe,{label:e.xAxisCurve,children:g.jsx(Me,{min:0,max:100,value:n.xAxisRound,onChange:i().updateAllRoundXAxis})}),n.yAxisRound!=null&&g.jsx(Qe,{label:e.yAxisCurve,children:g.jsx(Me,{min:0,max:100,value:n.yAxisRound,onChange:i().updateAllRoundYAxis})})]}),g.jsxs("div",{className:"mx-8 mt-8",children:[g.jsx("p",{className:"text-sm font-semibold uppercase",style:{color:"hsl(var(--muted-foreground))",letterSpacing:"0.06em"},children:e.globalColorSection}),g.jsx("hr",{style:{borderColor:"hsl(var(--border))"}})]}),g.jsxs("div",{className:"mx-4 mt-6 mb-10 grid grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-6",children:[g.jsx(Qe,{label:e.progressColor,children:g.jsx($r,{color:o.progressColor,onChange:u=>a().updateAllDefaultEffectColorSetting("progressColor",u)})}),g.jsx(Qe,{label:e.progressContrast,children:g.jsx(Me,{min:0,max:300,value:o.progressContrast,onChange:u=>a().updateAllDefaultEffectColorSetting("progressContrast",u)})}),g.jsx(Qe,{label:e.progressShadow,children:g.jsx(Me,{min:0,max:20,value:o.progressDropShadowAmount,onChange:u=>a().updateAllDefaultEffectColorSetting("progressDropShadowAmount",u)})}),g.jsx(Qe,{label:e.iconColor,children:g.jsx($r,{color:o.iconColor,onChange:u=>a().updateAllDefaultEffectColorSetting("iconColor",u)})}),g.jsx(Qe,{label:e.iconContrast,children:g.jsx(Me,{min:0,max:300,value:o.iconContrast,onChange:u=>a().updateAllDefaultEffectColorSetting("iconContrast",u)})}),g.jsx(Qe,{label:e.iconShadow,children:g.jsx(Me,{min:0,max:20,value:o.iconDropShadowAmount,onChange:u=>a().updateAllDefaultEffectColorSetting("iconDropShadowAmount",u)})}),g.jsx(Qe,{label:e.outlineColor,children:g.jsx($r,{color:o.outlineColor,onChange:u=>a().updateAllDefaultEffectColorSetting("outlineColor",u)})}),g.jsx(Qe,{label:e.outlineContrast,children:g.jsx(Me,{min:0,max:300,value:o.outlineContrast,onChange:u=>a().updateAllDefaultEffectColorSetting("outlineContrast",u)})}),g.jsx(Qe,{label:e.outlineShadow,children:g.jsx(Me,{min:0,max:20,value:o.outlineDropShadowAmount,onChange:u=>a().updateAllDefaultEffectColorSetting("outlineDropShadowAmount",u)})}),((l=o.editableColors)==null?void 0:l.innerColor)&&g.jsx(Qe,{label:e.innerColor,children:g.jsx($r,{color:o.innerColor,onChange:u=>a().updateAllDefaultEffectColorSetting("innerColor",u)})})]})]})}function Qe({label:e,children:n}){return g.jsxs("div",{className:"flex flex-col mx-auto items-center",children:[g.jsx("p",{className:"text-base text-center mb-2",children:e}),n]})}const gj=["#FFFFFF","rgb(33, 171, 97)","#326dbf","#dd6e14","#1a7cad","rgb(220, 6, 6)","rgb(138, 168, 189)","rgb(255, 72, 133)","rgb(185, 255, 40)","#3FA554","rgb(182, 72, 255)","rgb(255, 72, 133)","#D64763","rgb(0, 0, 0)"];function vj(){var M;const e=Wn(E=>E.translations),n=Te(E=>E.icons),o=Pt(E=>E.icons),i=Te.getState,a=Pt.getState,[l,u]=y.useState("voice"),[f,h]=y.useState(0),m=n[l],v=o[l],x=(v==null?void 0:v.colorEffects)??[],b=x.map(E=>E.name),C=x[f]??x[0],N=bf.indexOf(l),k=gj[N]??"#FFFFFF";y.useEffect(()=>{Pt.setState(E=>({globalColorSettings:{...E.globalColorSettings,editSingleIconName:l,editSingleIconStage:f}}))},[l,f]);function j(E){u(E),h(0)}return g.jsxs(Os,{name:e.singleStatusIconSettings,color:k,children:[g.jsxs("div",{className:"flex flex-row mb-8 mt-4",children:[g.jsx("div",{className:"flex-1",children:g.jsxs("div",{className:"max-w-50 ml-8",children:[g.jsx("p",{className:"text-lg text-center mb-2",children:e.iconStatusToEdit}),g.jsx(gs,{values:[...bf],value:l,onChange:j})]})}),g.jsxs("div",{className:"w-50",children:[g.jsx("p",{className:"text-lg text-center mb-2",children:e.iconShape}),g.jsx(gs,{values:sg,value:(m==null?void 0:m.shape)??"circle-ring",onChange:E=>{i().updateIconShape(l,E),a().updateIconShapeEditableColor(l,E)}})]}),g.jsx("div",{className:"flex-1"})]}),g.jsxs("div",{className:"mx-8",children:[g.jsx("p",{className:"text-sm font-semibold uppercase",style:{color:"hsl(var(--muted-foreground))",letterSpacing:"0.06em"},children:e.singleIconSizeAndPositionSection}),g.jsx("hr",{className:"mb-6",style:{borderColor:"hsl(var(--border))"}})]}),g.jsxs("div",{className:"mx-4 grid grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-6 items-end",children:[g.jsx(Ze,{label:e.widthSize,children:g.jsx(Me,{min:1,max:200,value:(m==null?void 0:m.width)??50,onChange:E=>i().updateIconSetting(l,"width",E)})}),g.jsx(Ze,{label:e.heightSize,children:g.jsx(Me,{min:1,max:200,value:(m==null?void 0:m.height)??50,onChange:E=>i().updateIconSetting(l,"height",E)})}),(m==null?void 0:m.ringSize)!=null&&g.jsx(Ze,{label:e.ringSize,children:g.jsx(Me,{min:1,max:25,step:.5,value:m.ringSize,onChange:E=>i().updateIconSetting(l,"ringSize",E)})}),(m==null?void 0:m.displayOutline)!=null&&g.jsx(Ze,{label:e.showProgressOutline,children:g.jsx(Es,{center:!0,checked:m.displayOutline,onChange:E=>i().updateIconSetting(l,"displayOutline",E)})}),g.jsx(Ze,{label:e.xAxisPosition,children:g.jsx(Me,{min:-20,max:20,step:.25,value:(m==null?void 0:m.translateX)??0,onChange:E=>i().updateIconSetting(l,"translateX",E)})}),g.jsx(Ze,{label:e.yAxisPosition,children:g.jsx(Me,{min:-20,max:20,step:.25,value:(m==null?void 0:m.translateY)??0,onChange:E=>i().updateIconSetting(l,"translateY",E)})}),g.jsx(Ze,{label:e.rotation,children:g.jsx(Me,{min:0,max:360,value:(m==null?void 0:m.rotateDegree)??0,onChange:E=>i().updateIconSetting(l,"rotateDegree",E)})}),g.jsx(Ze,{label:e.iconXAxisPosition,children:g.jsx(Me,{min:-10,max:10,step:.01,value:(m==null?void 0:m.iconTranslateX)??0,onChange:E=>i().updateIconSetting(l,"iconTranslateX",E)})}),g.jsx(Ze,{label:e.iconYAxisPosition,children:g.jsx(Me,{min:-10,max:10,step:.01,value:(m==null?void 0:m.iconTranslateY)??0,onChange:E=>i().updateIconSetting(l,"iconTranslateY",E)})}),g.jsx(Ze,{label:e.iconSize,children:g.jsx(Me,{min:0,max:3,step:.01,value:(m==null?void 0:m.iconScaling)??.4,onChange:E=>i().updateIconSetting(l,"iconScaling",E)})}),(m==null?void 0:m.xAxisRound)!=null&&g.jsx(Ze,{label:e.xAxisCurve,children:g.jsx(Me,{min:0,max:100,value:m.xAxisRound,onChange:E=>i().updateIconSetting(l,"xAxisRound",E)})}),(m==null?void 0:m.yAxisRound)!=null&&g.jsx(Ze,{label:e.yAxisCurve,children:g.jsx(Me,{min:0,max:100,value:m.yAxisRound,onChange:E=>i().updateIconSetting(l,"yAxisRound",E)})})]}),g.jsxs("div",{className:"mx-8 mt-8",children:[g.jsx("p",{className:"text-sm font-semibold uppercase",style:{color:"hsl(var(--muted-foreground))",letterSpacing:"0.06em"},children:e.singleIconColorSection}),g.jsx("hr",{style:{borderColor:"hsl(var(--border))"}})]}),b.length>1&&g.jsx("div",{className:"flex flex-row justify-center mt-4",children:g.jsxs("div",{className:"w-50",children:[g.jsx("p",{className:"text-lg text-center mb-2",children:e.iconState}),g.jsx(gs,{values:b,value:b[f]??b[0],onChange:E=>h(b.indexOf(E))})]})}),C&&g.jsxs("div",{className:"mx-4 mt-6 mb-10 grid grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-6",children:[g.jsx(Ze,{label:e.progressColor,children:g.jsx($r,{color:C.progressColor,onChange:E=>a().updateColorSetting(l,f,"progressColor",E)})}),g.jsx(Ze,{label:e.progressContrast,children:g.jsx(Me,{min:0,max:300,value:C.progressContrast,onChange:E=>a().updateColorSetting(l,f,"progressContrast",E)})}),g.jsx(Ze,{label:e.progressShadow,children:g.jsx(Me,{min:0,max:20,value:C.progressDropShadowAmount,onChange:E=>a().updateColorSetting(l,f,"progressDropShadowAmount",E)})}),g.jsx(Ze,{label:e.iconColor,children:g.jsx($r,{color:C.iconColor,onChange:E=>a().updateColorSetting(l,f,"iconColor",E)})}),g.jsx(Ze,{label:e.iconContrast,children:g.jsx(Me,{min:0,max:300,value:C.iconContrast,onChange:E=>a().updateColorSetting(l,f,"iconContrast",E)})}),g.jsx(Ze,{label:e.iconShadow,children:g.jsx(Me,{min:0,max:20,value:C.iconDropShadowAmount,onChange:E=>a().updateColorSetting(l,f,"iconDropShadowAmount",E)})}),g.jsx(Ze,{label:e.outlineColor,children:g.jsx($r,{color:C.outlineColor,onChange:E=>a().updateColorSetting(l,f,"outlineColor",E)})}),g.jsx(Ze,{label:e.outlineContrast,children:g.jsx(Me,{min:0,max:300,value:C.outlineContrast,onChange:E=>a().updateColorSetting(l,f,"outlineContrast",E)})}),g.jsx(Ze,{label:e.outlineShadow,children:g.jsx(Me,{min:0,max:20,value:C.outlineDropShadowAmount,onChange:E=>a().updateColorSetting(l,f,"outlineDropShadowAmount",E)})}),((M=v==null?void 0:v.editableColors)==null?void 0:M.innerColor)&&g.jsx(Ze,{label:e.innerColor,children:g.jsx($r,{color:C.innerColor,onChange:E=>a().updateColorSetting(l,f,"innerColor",E)})})]})]})}function Ze({label:e,children:n}){return g.jsxs("div",{className:"flex flex-col mx-auto items-center",children:[g.jsx("p",{className:"text-base text-center mb-2",children:e}),n]})}function yj(){const e=Wn(u=>u.translations),n=ct(u=>u.layout),o=ct(u=>u.iconBetweenSpacing),i=ct(u=>u.yAxisSpacing),a=ct(u=>u.xAxisSpacing),l=ct.getState;return g.jsx(Os,{name:e.globalStatusIconLayoutSettings,icon:q4,color:"white",children:g.jsxs("div",{className:"text-sm flex flex-col",style:{color:"hsl(var(--muted-foreground))"},children:[g.jsx("div",{className:"flex justify-center mb-4",children:g.jsxs("div",{className:"w-55",children:[g.jsx("p",{className:"text-lg text-center mb-2",children:e.iconLayout}),g.jsx(gs,{values:[...P4],value:n,onChange:u=>l().updateLayout(u)})]})}),g.jsxs("div",{className:"mx-4 grid grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-6 items-end mb-8",children:[g.jsxs("div",{children:[g.jsx("p",{className:"text-base text-center mb-2",children:e.betweenIconSpacing}),g.jsx(Me,{min:-100,max:200,value:o,onChange:u=>ct.setState({iconBetweenSpacing:u})})]}),g.jsxs("div",{children:[g.jsx("p",{className:"text-base text-center mb-2",children:e.yAxisSpacing}),g.jsx(Me,{min:-100,max:500,value:i,onChange:u=>ct.setState({yAxisSpacing:u})})]}),g.jsxs("div",{children:[g.jsx("p",{className:"text-base text-center mb-2",children:e.xAxisSpacing}),g.jsx(Me,{min:-100,max:500,value:a,onChange:u=>ct.setState({xAxisSpacing:u})})]})]})]})})}function xj(){const e=Wn(n=>n.translations);return g.jsx(Os,{name:e.utilityFunctions,icon:J4,color:"white",children:g.jsx("div",{className:"flex flex-row mx-4",children:g.jsx(xn,{name:e.copyProgressColorsToIconsColors,className:"h-15 w-55 whitespace-normal text-center",onClick:()=>Pt.getState().updateIconColorToProgressColor()})})})}function wj({value:e,onChange:n,onBlur:o}){return g.jsx(s2,{type:"text",value:e,onChange:i=>n(i.target.value),onBlur:o,autoFocus:!0,className:"text-center"})}function bj(){const e=Wn(m=>m.translations),n=Cf(m=>m.profiles),{addNewProfile:o,saveHUDToProfile:i,applyProfileToHud:a,deleteProfile:l,renameProfile:u}=Cf.getState(),[f,h]=y.useState(null);return g.jsx(Os,{name:e.customizationProfiles,icon:ug,color:"white",children:g.jsxs("div",{className:"mx-4 grid grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-8 items-center",children:[n.map((m,v)=>g.jsxs("div",{className:"flex flex-col justify-end items-center border-2 p-3 border-border rounded-lg my-3",children:[f===v?g.jsx(wj,{value:m.name,onChange:x=>u(v,x),onBlur:()=>h(null)}):g.jsx("p",{className:"text-xl font-semibold text-center cursor-pointer",onClick:()=>h(v),children:m.name}),g.jsx(xn,{name:e.saveHudToProfile,onClick:()=>i(v)}),g.jsx(xn,{name:e.applyProfileToHud,onClick:()=>a(v)}),g.jsx(xn,{name:e.deleteProfile,className:"hover:bg-red-600",onClick:()=>l(v)})]},v)),n.length<6&&g.jsx("div",{className:"flex flex-col",children:g.jsx(xn,{name:e.addNewProfile,className:"w-[100px]",onClick:o})})]})})}function Sj(){const e=Wn(l=>l.translations),n=Te(l=>l.designMode),o=Te(l=>l.saveUIState),i=Ae(l=>l.adminOnly),a=Ae(l=>l.isAdmin);return g.jsxs("div",{className:"text-sm flex flex-col select-none",style:{color:"hsl(var(--muted-foreground))"},children:[g.jsxs("div",{className:"my-3 flex flex-row items-center",style:{color:"hsl(var(--foreground))"},children:[g.jsx("div",{className:"flex-1 flex flex-col justify-center min-w-min",children:g.jsx("p",{className:"ml-3 p-0",children:e.statusIconsSettings})}),g.jsxs("div",{className:"text-base",children:[g.jsx("p",{children:e.designMode}),g.jsx(Es,{center:!0,checked:n,onChange:l=>Te.setState({designMode:l})})]}),g.jsxs("div",{className:"flex flex-1 min-w-min justify-end gap-2",children:[g.jsx(xn,{name:e.resetStatusIconSettings,className:"mr-5 hover:bg-red-600",onClick:()=>{Te.getState().resetPlayerStatusIcons(),Pt.getState().resetColorEffects(),ct.getState().resetLayout()}}),i&&a&&g.jsx(xn,{name:e.saveChangesToServer,disabled:o!=="ready",onClick:()=>{_g(),Te.setState({saveUIState:"updating"})}})]})]}),g.jsx("hr",{style:{borderColor:"hsl(var(--border))"}}),g.jsx(mj,{}),g.jsx("hr",{style:{borderColor:"hsl(var(--border))"}}),g.jsx(vj,{}),g.jsx("hr",{style:{borderColor:"hsl(var(--border))"}}),g.jsx(yj,{}),g.jsx("hr",{style:{borderColor:"hsl(var(--border))"}}),g.jsx(xj,{}),g.jsx("hr",{style:{borderColor:"hsl(var(--border))"}}),g.jsx(bj,{})]})}const Cj=[{key:"hud",labelKey:"generalTab",icon:r5,adminOnly:!1,content:pj},{key:"status",labelKey:"customizationTab",icon:$4,adminOnly:!0,content:Sj}];function kj(){const e=Ae(N=>N.show),n=Ae(N=>N.adminOnly),o=Ae(N=>N.isAdmin),i=Wn(N=>N.translations),[a,l]=y.useState("hud"),u=y.useRef({x:Math.round(window.innerWidth/5),y:Math.round(window.innerHeight/5)}),[f,h]=y.useState(u.current),m=y.useRef(!1),v=y.useRef({mx:0,my:0,ox:0,oy:0}),x=y.useCallback(N=>{m.current=!0,v.current={mx:N.clientX,my:N.clientY,ox:u.current.x,oy:u.current.y};const k=M=>{if(!m.current)return;const E=v.current.ox+(M.clientX-v.current.mx),R=v.current.oy+(M.clientY-v.current.my);u.current={x:E,y:R},h({x:E,y:R})},j=()=>{m.current=!1,window.removeEventListener("mousemove",k),window.removeEventListener("mouseup",j)};window.addEventListener("mousemove",k),window.addEventListener("mouseup",j)},[]);if(!e)return null;const b=Cj.filter(N=>!N.adminOnly||!n||n&&o),C=b.find(N=>N.key===a)??b[0];return g.jsxs("section",{className:"w-[60vw] h-[60vh] flex flex-col rounded-t-2xl text-foreground bg-background/95 border border-primary/25 shadow-[0_8px_32px_rgba(0,0,0,0.7)]",style:{position:"fixed",left:f.x,top:f.y,zIndex:90},children:[g.jsx("div",{className:"drag-bar rounded-t-2xl select-none bg-card/80 border-b border-primary/20",onMouseDown:x,style:{cursor:"grab"},children:g.jsx("svg",{role:"img","aria-label":"drag handle",viewBox:"0 0 24 24",height:24,width:24,className:"mx-auto text-primary/60",style:{opacity:.4},children:g.jsx("path",{fill:"currentColor",d:"M3,15V13H5V15H3M3,11V9H5V11H3M7,15V13H9V15H7M7,11V9H9V11H7M11,15V13H13V15H11M11,11V9H13V11H11M15,15V13H17V15H15M15,11V9H17V11H15M19,15V13H21V15H19M19,11V9H21V11H19Z"})})}),g.jsxs("div",{className:"flex font-semibold",style:{height:"calc(100% - 24px)"},children:[g.jsx("div",{className:"flex flex-col w-1/6 bg-card/90 border-r border-primary/20",children:b.map(N=>{const k=N.icon.icon[0],j=N.icon.icon[1],M=N.icon.icon[4],E=C.key===N.key;return g.jsxs("div",{className:`px-4 py-4 flex flex-row gap-3 cursor-pointer select-none transition-colors border-l-2 ${E?"bg-primary/15 border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:bg-muted/50"}`,onClick:()=>l(N.key),children:[g.jsx("svg",{width:"16",height:"16",viewBox:`0 0 ${k} ${j}`,className:"shrink-0 mt-0.5",children:g.jsx("path",{d:M,fill:"currentColor"})}),g.jsx("span",{children:i[N.labelKey]})]},N.key)})}),b.map(N=>g.jsx("div",{className:"flex-col w-5/6 px-5 overflow-y-scroll bg-background/60",style:{display:C.key===N.key?"flex":"none"},children:g.jsx(N.content,{})},N.key))]})]})}function jj(){const e=At(o=>o.show),n=Pe(o=>o.elements.minimap);return y.useEffect(()=>{const o=(n==null?void 0:n.dx)??0,i=(n==null?void 0:n.dy)??0;$e("minimapPosition",{x:o/window.innerWidth,y:i/window.innerHeight})},[n==null?void 0:n.dx,n==null?void 0:n.dy]),!e&&!an?null:g.jsx(mt,{id:"minimap",label:"Minimapa",zIndex:8,children:g.jsx("div",{style:{position:"absolute",bottom:"7.9%",left:"1.3%",width:0,textAlign:"center"},children:g.jsx("div",{"aria-hidden":!0,style:{bottom:"6.30%",width:"29vh",height:"18.5vh",position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"},children:an})})})}function Ej(){const e=Fr(k=>k.show),n=Fr(k=>k.heading),o=Fr(k=>k.streetName),i=Fr(k=>k.crossingRoad),a=Ae(k=>k.isShowCompassChecked),l=Ae(k=>k.isShowStreetsChecked),u=Ae(k=>k.isPointerShowChecked),f=Pe(k=>k.active),[h,m]=y.useState(n),v=y.useRef(n),x=y.useRef(0),b=y.useRef(0),C=y.useRef(n),N=y.useRef(n);return y.useEffect(()=>{const k=v.current;if(k>230&&n<-50||k<-50&&n>230){m(n),C.current=n,N.current=n,v.current=n;return}v.current=n,C.current=h,N.current=n,b.current=performance.now(),cancelAnimationFrame(x.current);const M=600;function E(R){const z=R-b.current,L=Math.min(z/M,1),A=C.current+(N.current-C.current)*L;m(A),L<1&&(x.current=requestAnimationFrame(E))}return x.current=requestAnimationFrame(E),()=>cancelAnimationFrame(x.current)},[n]),!e&&!an&&!f?null:g.jsx(mt,{id:"compassHud",label:"Bússola",zIndex:12,children:g.jsxs("div",{style:{position:"absolute",margin:"0 auto",left:0,right:0,top:"-0.8vh",width:150,height:"auto"},children:[(l||an)&&g.jsxs("div",{style:{position:"relative",top:"1.3vh",fontFamily:"Arial, Helvetica, sans-serif",fontSize:"1.4vh",letterSpacing:"0.7px",fontVariant:"small-caps",fontWeight:800,textShadow:"0 0 1px rgba(0,0,0,0.6), 0 0 1px rgba(0,0,0,0.6), 0 0 1px rgba(0,0,0,0.6), 0 0 1px rgba(0,0,0,0.6)"},children:[g.jsx("div",{style:{position:"absolute",right:"135%",whiteSpace:"nowrap",color:"rgb(255,255,255)"},children:o}),g.jsx("div",{style:{position:"absolute",left:"135%",whiteSpace:"nowrap",color:"rgb(255,255,255)"},children:i})]}),g.jsxs("div",{style:{position:"relative"},children:[u&&g.jsx("div",{style:{position:"absolute",margin:"0 auto",top:"-2%",left:0,right:0,fontFamily:"'Yantramanav', sans-serif",color:"rgb(255,255,255)",fontSize:"2.2vh",textAlign:"center",textShadow:"0 0 1px rgba(0,0,0,0.6), 0 0 1px rgba(0,0,0,0.6), 0 0 1px rgba(0,0,0,0.6), 0 0 1px rgba(0,0,0,0.6)",zIndex:1},children:"˅"}),(a||an)&&g.jsxs(g.Fragment,{children:[g.jsxs("svg",{style:{position:"relative",width:"100%",height:"2vh",fontFamily:"'Yantramanav', sans-serif",fontSize:"0.35vh",fontWeight:700},viewBox:`${h} 0 180 5`,children:[g.jsx("rect",{width:"3",stroke:"black",fill:"white",strokeWidth:"0.5",strokeOpacity:"0.6",height:"20",x:"-90"}),g.jsx("rect",{width:"3",stroke:"black",fill:"white",strokeWidth:"0.5",strokeOpacity:"0.6",height:"9",x:"-45"}),g.jsx("rect",{width:"4.5",stroke:"black",fill:"white",strokeWidth:"0.5",strokeOpacity:"0.6",height:"20",x:"0"}),g.jsx("rect",{width:"3",stroke:"black",fill:"white",strokeWidth:"0.5",strokeOpacity:"0.6",height:"9",x:"45"}),g.jsx("rect",{width:"4.5",stroke:"black",fill:"white",strokeWidth:"0.5",strokeOpacity:"0.6",height:"20",x:"90"}),g.jsx("rect",{width:"3",stroke:"black",fill:"white",strokeWidth:"0.5",strokeOpacity:"0.6",height:"9",x:"135"}),g.jsx("rect",{width:"4.5",stroke:"black",fill:"white",strokeWidth:"0.5",strokeOpacity:"0.6",height:"20",x:"180"}),g.jsx("rect",{width:"3",stroke:"black",fill:"white",strokeWidth:"0.5",strokeOpacity:"0.6",height:"9",x:"225"}),g.jsx("rect",{width:"4.5",stroke:"black",fill:"white",strokeWidth:"0.5",strokeOpacity:"0.6",height:"20",x:"270"}),g.jsx("rect",{width:"3",stroke:"black",fill:"white",strokeWidth:"0.5",strokeOpacity:"0.6",height:"9",x:"315"}),g.jsx("rect",{width:"4.5",stroke:"black",fill:"white",strokeWidth:"0.5",strokeOpacity:"0.6",height:"20",x:"360"}),g.jsx("rect",{width:"3",stroke:"black",fill:"white",strokeWidth:"0.5",strokeOpacity:"0.6",height:"9",x:"405"}),g.jsx("rect",{width:"3",stroke:"black",fill:"white",strokeWidth:"0.5",strokeOpacity:"0.6",height:"20",x:"450"})]}),g.jsxs("svg",{style:{position:"relative",width:"100%",top:"-0.5vh",height:"3.5vh",paddingLeft:"0.12vw",fontFamily:"Arial, Helvetica, sans-serif",fontSize:"2vh",letterSpacing:"0.7px",fontVariant:"small-caps",fontWeight:600},viewBox:`${h} 0 180 1.5`,children:[g.jsx("text",{x:"0",y:"1.5",dominantBaseline:"middle",textAnchor:"middle",fill:"yellow",children:"N"}),g.jsx("text",{x:"360",y:"1.5",dominantBaseline:"middle",textAnchor:"middle",fill:"yellow",children:"N"}),g.jsx("text",{x:"315",y:"-11",dominantBaseline:"middle",textAnchor:"middle",fill:"white",fontSize:"1.4vh",fontWeight:"800",children:"NW"}),g.jsx("text",{x:"-45",y:"-11",dominantBaseline:"middle",textAnchor:"middle",fill:"white",fontSize:"1.4vh",fontWeight:"800",children:"NW"}),g.jsx("text",{x:"45",y:"-11",dominantBaseline:"middle",textAnchor:"middle",fill:"white",fontSize:"1.4vh",fontWeight:"800",children:"NE"}),g.jsx("text",{x:"405",y:"-11",dominantBaseline:"middle",textAnchor:"middle",fill:"white",fontSize:"1.4vh",fontWeight:"800",children:"NE"}),g.jsx("text",{x:"90",y:"1.5",dominantBaseline:"middle",textAnchor:"middle",fill:"white",children:"E"}),g.jsx("text",{x:"135",y:"-11",dominantBaseline:"middle",textAnchor:"middle",fill:"white",fontSize:"1.4vh",fontWeight:"800",children:"SE"}),g.jsx("text",{x:"180",y:"1.5",dominantBaseline:"middle",textAnchor:"middle",fill:"white",children:"S"}),g.jsx("text",{x:"225",y:"-11",dominantBaseline:"middle",textAnchor:"middle",fill:"white",fontSize:"1.4vh",fontWeight:"800",children:"SW"}),g.jsx("text",{x:"270",y:"1.5",dominantBaseline:"middle",textAnchor:"middle",fill:"white",children:"W"})]})]})]})]})})}function Nj(){const e=ir(h=>h.cash),n=ir(h=>h.bank),o=ir(h=>h.show),i=ir(h=>h.showConstant),a=ir(h=>h.isPlus),l=ir(h=>h.isMinus),f={fontFamily:"'Pricedown Bl', sans-serif",textAlign:"right",textShadow:"-1px -1px 0 rgba(0,0,0,0.7), 1px -1px 0 rgba(0,0,0,0.7), -1px 1px 0 rgba(0,0,0,0.7), 1px 1px 0 rgba(0,0,0,0.7)"};return g.jsx(mt,{id:"moneyHud",label:"Dinheiro",zIndex:12,children:g.jsxs("div",{style:{position:"absolute",right:"2vw",top:"5vh",fontWeight:400,fontSize:40},children:[(o||i)&&g.jsxs("p",{children:[g.jsx("span",{style:{...f,color:"#00ac31"},children:"$ "}),g.jsx("span",{style:{...f,color:"#ffffff"},children:e})]}),(o||i)&&g.jsxs("p",{children:[g.jsx("span",{style:{...f,color:"#00ac31"},children:"$ "}),g.jsx("span",{style:{...f,color:"#00ac31"},children:n})]}),o&&a&&g.jsxs("p",{children:[g.jsx("span",{style:{...f,fontSize:50,color:"#00ac31"},children:"+ "}),g.jsx("span",{style:{...f,color:"#ffffff"},children:e})]}),o&&l&&g.jsxs("p",{children:[g.jsx("span",{style:{...f,fontSize:50,color:"#ac0000"},children:"- "}),g.jsx("span",{style:{...f,color:"#ffffff"},children:e})]})]})})}function Ln(e){return g.jsx(Ry,{...e})}function yn({style:e,children:n}){const o=y.useContext(yx);return g.jsx("div",{style:e,children:g.jsx("div",{style:{display:"inline-block",transform:o!==1?`scale(${o})`:void 0,transformOrigin:"center"},children:n})})}function Mj(e,n=120,o=.3){const[i,a]=y.useState(e),l=y.useRef(e),u=y.useRef(e),f=y.useRef(null);return u.current=e,y.useEffect(()=>{let h=0;const m=v=>{const x=f.current??v;f.current=v;const b=v-x,C=l.current,N=u.current,k=N-C,j=Math.abs(k)<=o?N:C+k*(1-Math.exp(-b/n));j!==C&&(l.current=j,a(j)),h=requestAnimationFrame(m)};return h=requestAnimationFrame(m),()=>{cancelAnimationFrame(h),f.current=null}},[n,o]),i}function Aj(){const e=At(j=>j.show),n=At(j=>j.speed),o=Mj(n,70),i=At(j=>j.fuel),a=At(j=>j.odometer),l=At(j=>j.fuelColor),u=At(j=>j.showSeatBelt),f=At(j=>j.seatbeltColor),h=At(j=>j.useMPH),m=Lr(j=>j.show),v=sr(j=>j.show),x=Pe(j=>j.active);if(!e&&!an&&!x)return null;const b=h?120:200,C=h?"mph":"km/h",N=20,k=a>0?`${a.toLocaleString("pt-BR")} ${h?"mi":"km"}`:void 0;return g.jsxs(g.Fragment,{children:[g.jsx(mt,{id:"speedometer",label:"Velocímetro",zIndex:10,children:g.jsx(yn,{style:{position:"fixed",bottom:"12.21vh",left:"17.69vw",pointerEvents:"none"},children:g.jsx(Ln,{size:140,value:o,minValue:0,maxValue:b,arcLength:75,rotation:225,majorTickInterval:N,minorTickCount:4,ringSize:5,color:"#ffffff",outlineColor:"#ffffff",outlineOpacity:.22,needleStyle:"needle",showValue:!0,unit:C,label:"SPEED",odometer:k})})}),(!m&&!v||x||an)&&g.jsx(mt,{id:"fuelgauge",label:"Combustível",zIndex:10,children:g.jsx(yn,{style:{position:"fixed",bottom:"6.44vh",left:"22.61vw",pointerEvents:"none"},children:g.jsx(Ln,{size:88,value:i,minValue:0,maxValue:100,arcLength:75,rotation:225,majorTickInterval:25,minorTickCount:1,ringSize:4,color:l,outlineColor:l,outlineOpacity:.28,needleStyle:"needle",showValue:!0,unit:"%",label:"FUEL"})})}),u&&g.jsx(mt,{id:"seatbelt",label:"Cinto",zIndex:10,canResize:!1,children:g.jsx("div",{style:{position:"fixed",bottom:"8.09vh",left:"17.91vw",pointerEvents:"none"},children:g.jsx(Pj,{color:f})})})]})}function Pj({color:e}){const n=dd,o=n.icon[4],i=n.icon[0],a=n.icon[1];return g.jsx("svg",{width:"22",height:"22",viewBox:`0 0 ${i} ${a}`,overflow:"visible",children:g.jsx("path",{d:o,fill:e,transform:"scale(1.1)"})})}function Rj({icon:e,...n}){return g.jsx(wy,{...n,icon:e?Oy(e):null})}function Ij({cfg:e,value:n,icon:o}){const i=Pe(B=>B.active),a=Pe(B=>B.permissions.dynamicGauges),l=Pe(B=>B.gaugeOverrides[e.id]),u=Pe(B=>B.setGaugePosition),f=Pe(B=>B.setGaugeVisibility),h=Pe(B=>B.rescaleGauge),m=Pe(B=>B.resetGauge),v=(a==null?void 0:a.canMove)??!0,x=(a==null?void 0:a.canHide)??!0,b=(a==null?void 0:a.canResize)??!0,C=(l==null?void 0:l.isShowing)!==!1,N=(l==null?void 0:l.x)!=null||(l==null?void 0:l.y)!=null,k=(l==null?void 0:l.scale)??1,j=Math.round(e.size*k),M=Math.abs(k-1)>.005,[E,R]=y.useState(null),[z,L]=y.useState(!1),A=y.useRef({startMouseX:0,startMouseY:0,startCfgX:0,startCfgY:0}),D=(l==null?void 0:l.x)??e.x,F=(l==null?void 0:l.y)??e.y,W=(E==null?void 0:E.x)??D,J=(E==null?void 0:E.y)??F,oe=y.useCallback(B=>{B.preventDefault(),B.stopPropagation(),A.current={startMouseX:B.clientX,startMouseY:B.clientY,startCfgX:D,startCfgY:F},L(!0);const de=j/2+10,ie=de/window.innerWidth*100,ue=100-ie,ae=de/window.innerHeight*100,fe=100-ae,U=(_,I)=>({x:Math.max(ie,Math.min(ue,_)),y:Math.max(ae,Math.min(fe,I))}),Q=_=>{const I=A.current.startCfgX+(_.clientX-A.current.startMouseX)/window.innerWidth*100,G=A.current.startCfgY+(_.clientY-A.current.startMouseY)/window.innerHeight*100;R(U(I,G))},Z=_=>{const I=A.current.startCfgX+(_.clientX-A.current.startMouseX)/window.innerWidth*100,G=A.current.startCfgY+(_.clientY-A.current.startMouseY)/window.innerHeight*100,ee=U(I,G);u(e.id,ee.x,ee.y),R(null),L(!1),window.removeEventListener("mousemove",Q),window.removeEventListener("mouseup",Z)};window.addEventListener("mousemove",Q),window.addEventListener("mouseup",Z)},[e.id,e.size,D,F,u]);return!C&&!i?null:g.jsxs("div",{style:{position:"fixed",left:`${W}vw`,top:`${J}vh`,transform:"translate(-50%, -50%)",pointerEvents:"none",zIndex:20,opacity:!C&&i?.35:1,userSelect:"none"},children:[z&&g.jsx("div",{style:{position:"absolute",inset:-6,borderRadius:"50%",border:"2px solid hsl(var(--primary))",boxShadow:"0 0 12px hsl(var(--primary) / 0.5), inset 0 0 8px hsl(var(--primary) / 0.15)",pointerEvents:"none"}}),e.style==="analog"?g.jsx(Ln,{size:j,value:n,minValue:e.minValue??0,maxValue:e.maxValue,arcLength:e.arcLength,rotation:e.rotation,majorTickInterval:e.majorTickInterval??Math.ceil(e.maxValue/5),minorTickCount:e.minorTickCount??4,ringSize:e.ringSize,color:z?"hsl(var(--primary))":e.color,outlineColor:z?"hsl(var(--primary))":e.outlineColor,outlineOpacity:e.outlineOpacity,needleStyle:e.needleStyle??"needle",showValue:e.showValue,unit:e.unit,label:e.label}):g.jsx(Rj,{height:j,width:j,progressValue:n,maxProgressValue:e.maxValue,maxLengthDisplay:e.arcLength,rotateDegree:e.rotation,ringSize:e.ringSize,progressColor:z?"hsl(var(--primary))":e.color,outlineColor:z?"hsl(var(--primary))":e.outlineColor,outlineColorOpacity:e.outlineOpacity,displayOutline:!0,icon:o,iconColor:z?"hsl(var(--primary))":e.color,iconScaling:.38,text:e.showValue?e.label??"":"",displayNumber:e.showValue?Math.round(n):0}),i&&v&&g.jsx("div",{style:{position:"absolute",left:0,top:0,width:j,height:j,borderRadius:"50%",pointerEvents:"auto",cursor:z?"grabbing":"grab",zIndex:9997},onMouseDown:oe}),i&&(v||x)&&g.jsxs("div",{style:{position:"absolute",left:j/2,top:j+8,transform:"translate(-50%, 0)",display:"flex",alignItems:"center",gap:5,background:z?"hsl(var(--primary) / 0.22)":"hsl(var(--card))",border:`1px solid ${z?"hsl(var(--primary))":"hsl(var(--border))"}`,borderRadius:7,padding:"3px 8px",color:"white",fontSize:11,fontWeight:600,whiteSpace:"nowrap",boxShadow:z?"0 0 10px hsl(var(--primary) / 0.4), 0 2px 8px rgba(0,0,0,0.5)":"0 2px 8px rgba(0,0,0,0.5)",pointerEvents:"auto",cursor:"default",zIndex:9999,opacity:z?.5:1,transition:"background 0.1s, border-color 0.1s, opacity 0.1s"},children:[v&&g.jsx(ar,{icon:kg,style:{color:z?"hsl(var(--foreground))":"hsl(var(--muted-foreground))",fontSize:10}}),g.jsx("span",{style:{color:z?"hsl(var(--primary))":"hsl(var(--muted-foreground))"},children:e.label??e.id}),x&&g.jsx("button",{style:{background:"none",border:"none",color:"rgba(255,255,255,0.75)",cursor:"pointer",padding:"0 2px",lineHeight:1},title:C?"Ocultar":"Mostrar",onMouseDown:B=>B.stopPropagation(),onClick:()=>f(e.id,!C),children:g.jsx(ar,{icon:C?cg:pg,style:{fontSize:11}})}),b&&g.jsxs(g.Fragment,{children:[g.jsx("button",{style:{background:"none",border:"none",color:"rgba(255,255,255,0.7)",cursor:"pointer",padding:"0 2px",lineHeight:1},title:"Diminuir",onMouseDown:B=>B.stopPropagation(),onClick:()=>h(e.id,k/1.1),children:g.jsx(ar,{icon:yg,style:{fontSize:10}})}),g.jsxs("span",{style:{color:M?"hsl(var(--foreground))":"hsl(var(--muted-foreground) / 0.5)",fontSize:10,minWidth:28,textAlign:"center",userSelect:"none"},children:[Math.round(k*100),"%"]}),g.jsx("button",{style:{background:"none",border:"none",color:"rgba(255,255,255,0.7)",cursor:"pointer",padding:"0 2px",lineHeight:1},title:"Aumentar",onMouseDown:B=>B.stopPropagation(),onClick:()=>h(e.id,k*1.1),children:g.jsx(ar,{icon:Cg,style:{fontSize:10}})})]}),v&&(N||M)&&g.jsx("button",{style:{background:"none",border:"none",color:"hsl(var(--destructive))",cursor:"pointer",padding:"0 2px",lineHeight:1},title:"Resetar posição",onMouseDown:B=>B.stopPropagation(),onClick:()=>m(e.id),children:g.jsx(ar,{icon:dg,style:{fontSize:11}})})]})]})}function zj(){const e=fo(i=>i.configs),n=fo(i=>i.runtime),o=Object.values(e);return o.length?g.jsx(g.Fragment,{children:o.map(i=>{var a;return g.jsx(Ij,{cfg:i,value:((a=n[i.id])==null?void 0:a.value)??0,icon:Lf(i.iconName)},i.id)})}):null}function Oj(e){return g.jsx(Iy,{...e})}function _j(){const e=sr(x=>x.show),n=sr(x=>x.airspeed),o=sr(x=>x.altitude),i=sr(x=>x.verticalSpeed),a=sr(x=>x.pitch),l=sr(x=>x.roll),u=At(x=>x.fuel),f=At(x=>x.fuelColor),h=Pe(x=>x.active);if(!e&&!h)return null;const m=(o%1e3+1e3)%1e3,v=Math.floor(o/1e3);return g.jsxs(g.Fragment,{children:[g.jsx(mt,{id:"aircraftHorizon",label:"Horizonte",zIndex:15,children:g.jsx(yn,{style:{position:"fixed",bottom:"2.16vh",left:"43.43vw",pointerEvents:"none"},children:g.jsx(Oj,{size:160,pitch:a,roll:l})})}),g.jsx(mt,{id:"aircraftAsi",label:"Velocidade",zIndex:15,children:g.jsx(yn,{style:{position:"fixed",bottom:"2vh",left:"52vw",pointerEvents:"none"},children:g.jsx(Ln,{size:120,value:n,minValue:0,maxValue:400,arcLength:75,rotation:225,majorTickInterval:50,minorTickCount:4,ringSize:5,color:"#00cfff",outlineColor:"#00cfff",outlineOpacity:.25,needleStyle:"needle",showValue:!0,unit:"km/h",label:"SPEED"})})}),g.jsx(mt,{id:"aircraftAlt",label:"Altímetro",zIndex:15,children:g.jsx(yn,{style:{position:"fixed",bottom:"2vh",left:"37vw",pointerEvents:"none"},children:g.jsx(Ln,{size:120,value:m,minValue:0,maxValue:1e3,arcLength:100,rotation:0,majorTickInterval:100,minorTickCount:4,ringSize:5,color:"#f59e0b",outlineColor:"#f59e0b",outlineOpacity:.25,needleStyle:"needle",showValue:!0,unit:"m",label:v>0?`ALT +${v}K`:"ALT"})})}),g.jsx(mt,{id:"aircraftVsi",label:"Vel.Vertical",zIndex:15,children:g.jsx(yn,{style:{position:"fixed",bottom:"2vh",left:"32vw",pointerEvents:"none"},children:g.jsx(Ln,{size:100,value:i,minValue:-30,maxValue:30,arcLength:75,rotation:225,majorTickInterval:10,minorTickCount:1,ringSize:5,color:"#a78bfa",outlineColor:"#a78bfa",outlineOpacity:.25,needleStyle:"needle",showValue:!0,unit:"m/s",label:"VSI"})})}),g.jsx(mt,{id:"aircraftFuel",label:"Combustível",zIndex:15,children:g.jsx(yn,{style:{position:"fixed",bottom:"2vh",left:"58vw",pointerEvents:"none"},children:g.jsx(Ln,{size:88,value:u,minValue:0,maxValue:100,arcLength:75,rotation:225,majorTickInterval:25,minorTickCount:1,ringSize:4,color:f,outlineColor:f,outlineOpacity:.28,needleStyle:"needle",showValue:!0,unit:"%",label:"FUEL"})})})]})}function Dj(e){return g.jsx(zy,{...e})}function Tj(){const e=Lr(u=>u.show),n=Lr(u=>u.speedKnots),o=Lr(u=>u.rpm),i=Lr(u=>u.pitch),a=Lr(u=>u.roll),l=Pe(u=>u.active);return!e&&!l?null:g.jsxs(g.Fragment,{children:[g.jsx(mt,{id:"marineHeel",label:"Escora",zIndex:15,children:g.jsx(yn,{style:{position:"fixed",bottom:"4.5vh",right:"21vw",pointerEvents:"none"},children:g.jsx(Dj,{size:130,roll:a})})}),g.jsx(mt,{id:"marineSpeed",label:"Velocidade",zIndex:15,children:g.jsx(yn,{style:{position:"fixed",bottom:"4.5vh",right:"14vw",pointerEvents:"none"},children:g.jsx(Ln,{size:120,value:n,minValue:0,maxValue:50,arcLength:75,rotation:225,majorTickInterval:10,minorTickCount:1,ringSize:5,color:"#38bdf8",outlineColor:"#38bdf8",outlineOpacity:.25,needleStyle:"needle",showValue:!0,unit:"kn",label:"SPEED"})})}),g.jsx(mt,{id:"marineRpm",label:"RPM",zIndex:15,children:g.jsx(yn,{style:{position:"fixed",bottom:"4.5vh",right:"8vw",pointerEvents:"none"},children:g.jsx(Ln,{size:110,value:o,minValue:0,maxValue:100,arcLength:75,rotation:225,majorTickInterval:25,minorTickCount:1,ringSize:5,color:"#34d399",outlineColor:"#34d399",outlineOpacity:.25,needleStyle:"needle",showValue:!0,unit:"%",label:"RPM"})})}),g.jsx(mt,{id:"marineTrim",label:"Trim",zIndex:15,children:g.jsx(yn,{style:{position:"fixed",bottom:"4.5vh",right:"2vw",pointerEvents:"none"},children:g.jsx(Ln,{size:100,value:i,minValue:-20,maxValue:20,arcLength:75,rotation:225,majorTickInterval:10,minorTickCount:1,ringSize:5,color:"#fb923c",outlineColor:"#fb923c",outlineOpacity:.25,needleStyle:"needle",showValue:!0,unit:"°",label:"TRIM"})})})]})}function Lj(){const e=Pe(l=>l.active),n=Pe(l=>l.toggle),o=Pe(l=>l.resetAll),i=Wn(l=>l.translations);function a(){$e("closePositioningMode"),n()}return e?g.jsxs(g.Fragment,{children:[g.jsx("div",{style:{position:"fixed",inset:0,zIndex:30,pointerEvents:"none",backgroundImage:`
+}`;function Ax(){const e=Sx,n=Cx,r=ve.cssPrefix,i=ve.replacementClass;let a=h9;if(r!==e||i!==n){const l=new RegExp("\\.".concat(e,"\\-"),"g"),u=new RegExp("\\--".concat(e,"\\-"),"g"),d=new RegExp("\\.".concat(n),"g");a=a.replace(l,".".concat(r,"-")).replace(u,"--".concat(r,"-")).replace(d,".".concat(i))}return a}let tg=!1;function Ed(){ve.autoAddCss&&!tg&&(c9(Ax()),tg=!0)}var m9={mixout(){return{dom:{css:Ax,insertCss:Ed}}},hooks(){return{beforeDOMElementCreation(){Ed()},beforeI2svg(){Ed()}}}};const gr=qr||{};gr[mr]||(gr[mr]={});gr[mr].styles||(gr[mr].styles={});gr[mr].hooks||(gr[mr].hooks={});gr[mr].shims||(gr[mr].shims=[]);var Vn=gr[mr];const Px=[],Rx=function(){Ue.removeEventListener("DOMContentLoaded",Rx),_l=1,Px.map(e=>e())};let _l=!1;yr&&(_l=(Ue.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ue.readyState),_l||Ue.addEventListener("DOMContentLoaded",Rx));function g9(e){yr&&(_l?setTimeout(e,0):Px.push(e))}function Ws(e){const{tag:n,attributes:r={},children:i=[]}=e;return typeof e=="string"?Mx(e):"<".concat(n," ").concat(d9(r),">").concat(i.map(Ws).join(""),"").concat(n,">")}function ng(e,n,r){if(e&&e[n]&&e[n][r])return{prefix:n,iconName:r,icon:e[n][r]}}var Nd=function(n,r,i,a){var l=Object.keys(n),u=l.length,d=r,h,m,y;for(i===void 0?(h=1,y=n[l[0]]):(h=0,y=i);h=55296&&a<=56319&&r=55296&&i<=56319&&r>n+1&&(a=e.charCodeAt(n+1),a>=56320&&a<=57343)?(i-55296)*1024+a-56320+65536:i}function rg(e){return Object.keys(e).reduce((n,r)=>{const i=e[r];return!!i.icon?n[i.iconName]=i.icon:n[r]=i,n},{})}function lf(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:i=!1}=r,a=rg(n);typeof Vn.hooks.addPack=="function"&&!i?Vn.hooks.addPack(e,rg(n)):Vn.styles[e]=te(te({},Vn.styles[e]||{}),a),e==="fas"&&lf("fa",n)}const{styles:Ds,shims:x9}=Vn,Ix=Object.keys(v0),w9=Ix.reduce((e,n)=>(e[n]=Object.keys(v0[n]),e),{});let b0=null,zx={},Ox={},Tx={},_x={},Dx={};function b9(e){return~i9.indexOf(e)}function S9(e,n){const r=n.split("-"),i=r[0],a=r.slice(1).join("-");return i===e&&a!==""&&!b9(a)?a:null}const Lx=()=>{const e=i=>Nd(Ds,(a,l,u)=>(a[u]=Nd(l,i,{}),a),{});zx=e((i,a,l)=>(a[3]&&(i[a[3]]=l),a[2]&&a[2].filter(d=>typeof d=="number").forEach(d=>{i[d.toString(16)]=l}),i)),Ox=e((i,a,l)=>(i[l]=l,a[2]&&a[2].filter(d=>typeof d=="string").forEach(d=>{i[d]=l}),i)),Dx=e((i,a,l)=>{const u=a[2];return i[l]=l,u.forEach(d=>{i[d]=l}),i});const n="far"in Ds||ve.autoFetchSvg,r=Nd(x9,(i,a)=>{const l=a[0];let u=a[1];const d=a[2];return u==="far"&&!n&&(u="fas"),typeof l=="string"&&(i.names[l]={prefix:u,iconName:d}),typeof l=="number"&&(i.unicodes[l.toString(16)]={prefix:u,iconName:d}),i},{names:{},unicodes:{}});Tx=r.names,_x=r.unicodes,b0=rc(ve.styleDefault,{family:ve.familyDefault})};l9(e=>{b0=rc(e.styleDefault,{family:ve.familyDefault})});Lx();function S0(e,n){return(zx[e]||{})[n]}function C9(e,n){return(Ox[e]||{})[n]}function ko(e,n){return(Dx[e]||{})[n]}function Fx(e){return Tx[e]||{prefix:null,iconName:null}}function k9(e){const n=_x[e],r=S0("fas",e);return n||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}function Qr(){return b0}const $x=()=>({prefix:null,iconName:null,rest:[]});function j9(e){let n=Et;const r=Ix.reduce((i,a)=>(i[a]="".concat(ve.cssPrefix,"-").concat(a),i),{});return wx.forEach(i=>{(e.includes(r[i])||e.some(a=>w9[i].includes(a)))&&(n=i)}),n}function rc(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:r=Et}=n,i=e9[r][e];if(r===tc&&!e)return"fad";const a=eg[r][e]||eg[r][i],l=e in Vn.styles?e:null;return a||l||null}function E9(e){let n=[],r=null;return e.forEach(i=>{const a=S9(ve.cssPrefix,i);a?r=a:i&&n.push(i)}),{iconName:r,rest:n}}function og(e){return e.sort().filter((n,r,i)=>i.indexOf(n)===r)}function oc(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:r=!1}=n;let i=null;const a=ef.concat(V7),l=og(e.filter(x=>a.includes(x))),u=og(e.filter(x=>!ef.includes(x))),d=l.filter(x=>(i=x,!xx.includes(x))),[h=null]=d,m=j9(l),y=te(te({},E9(u)),{},{prefix:rc(h,{family:m})});return te(te(te({},y),P9({values:e,family:m,styles:Ds,config:ve,canonical:y,givenPrefix:i})),N9(r,i,y))}function N9(e,n,r){let{prefix:i,iconName:a}=r;if(e||!i||!a)return{prefix:i,iconName:a};const l=n==="fa"?Fx(a):{},u=ko(i,a);return a=l.iconName||u||a,i=l.prefix||i,i==="far"&&!Ds.far&&Ds.fas&&!ve.autoFetchSvg&&(i="fas"),{prefix:i,iconName:a}}const M9=wx.filter(e=>e!==Et||e!==tc),A9=Object.keys(Zd).filter(e=>e!==Et).map(e=>Object.keys(Zd[e])).flat();function P9(e){const{values:n,family:r,canonical:i,givenPrefix:a="",styles:l={},config:u={}}=e,d=r===tc,h=n.includes("fa-duotone")||n.includes("fad"),m=u.familyDefault==="duotone",y=i.prefix==="fad"||i.prefix==="fa-duotone";if(!d&&(h||m||y)&&(i.prefix="fad"),(n.includes("fa-brands")||n.includes("fab"))&&(i.prefix="fab"),!i.prefix&&M9.includes(r)&&(Object.keys(l).find(b=>A9.includes(b))||u.autoFetchSvg)){const b=O7.get(r).defaultShortPrefixId;i.prefix=b,i.iconName=ko(i.prefix,i.iconName)||i.iconName}return(i.prefix==="fa"||a==="fa")&&(i.prefix=Qr()||"fas"),i}class R9{constructor(){this.definitions={}}add(){for(var n=arguments.length,r=new Array(n),i=0;i{this.definitions[l]=te(te({},this.definitions[l]||{}),a[l]),lf(l,a[l]);const u=v0[Et][l];u&&lf(u,a[l]),Lx()})}reset(){this.definitions={}}_pullDefinitions(n,r){const i=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(i).map(a=>{const{prefix:l,iconName:u,icon:d}=i[a],h=d[2];n[l]||(n[l]={}),h.length>0&&h.forEach(m=>{typeof m=="string"&&(n[l][m]=d)}),n[l][u]=d}),n}}let ig=[],di={};const yi={},I9=Object.keys(yi);function z9(e,n){let{mixoutsTo:r}=n;return ig=e,di={},Object.keys(yi).forEach(i=>{I9.indexOf(i)===-1&&delete yi[i]}),ig.forEach(i=>{const a=i.mixout?i.mixout():{};if(Object.keys(a).forEach(l=>{typeof a[l]=="function"&&(r[l]=a[l]),typeof a[l]=="object"&&Object.keys(a[l]).forEach(u=>{r[l]||(r[l]={}),r[l][u]=a[l][u]})}),i.hooks){const l=i.hooks();Object.keys(l).forEach(u=>{di[u]||(di[u]=[]),di[u].push(l[u])})}i.provides&&i.provides(yi)}),r}function cf(e,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a{n=u.apply(null,[n,...i])}),n}function Ro(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i{l.apply(null,r)})}function Jr(){const e=arguments[0],n=Array.prototype.slice.call(arguments,1);return yi[e]?yi[e].apply(null,n):void 0}function uf(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:n}=e;const r=e.prefix||Qr();if(n)return n=ko(r,n)||n,ng(Hx.definitions,r,n)||ng(Vn.styles,r,n)}const Hx=new R9,O9=()=>{ve.autoReplaceSvg=!1,ve.observeMutations=!1,Ro("noAuto")},T9={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return yr?(Ro("beforeI2svg",e),Jr("pseudoElements2svg",e),Jr("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:n}=e;ve.autoReplaceSvg===!1&&(ve.autoReplaceSvg=!0),ve.observeMutations=!0,g9(()=>{D9({autoReplaceSvgRoot:n}),Ro("watch",e)})}},_9={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:ko(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const n=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],r=rc(e[0]);return{prefix:r,iconName:ko(r,n)||n}}if(typeof e=="string"&&(e.indexOf("".concat(ve.cssPrefix,"-"))>-1||e.match(t9))){const n=oc(e.split(" "),{skipLookups:!0});return{prefix:n.prefix||Qr(),iconName:ko(n.prefix,n.iconName)||n.iconName}}if(typeof e=="string"){const n=Qr();return{prefix:n,iconName:ko(n,e)||e}}}},tn={noAuto:O9,config:ve,dom:T9,parse:_9,library:Hx,findIconDefinition:uf,toHtml:Ws},D9=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:n=Ue}=e;(Object.keys(Vn.styles).length>0||ve.autoFetchSvg)&&yr&&ve.autoReplaceSvg&&tn.dom.i2svg({node:n})};function ic(e,n){return Object.defineProperty(e,"abstract",{get:n}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(r=>Ws(r))}}),Object.defineProperty(e,"node",{get:function(){if(!yr)return;const r=Ue.createElement("div");return r.innerHTML=e.html,r.children}}),e}function L9(e){let{children:n,main:r,mask:i,attributes:a,styles:l,transform:u}=e;if(w0(u)&&r.found&&!i.found){const{width:d,height:h}=r,m={x:d/h/2,y:.5};a.style=nc(te(te({},l),{},{"transform-origin":"".concat(m.x+u.x/16,"em ").concat(m.y+u.y/16,"em")}))}return[{tag:"svg",attributes:a,children:n}]}function F9(e){let{prefix:n,iconName:r,children:i,attributes:a,symbol:l}=e;const u=l===!0?"".concat(n,"-").concat(ve.cssPrefix,"-").concat(r):l;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:te(te({},a),{},{id:u}),children:i}]}]}function C0(e){const{icons:{main:n,mask:r},prefix:i,iconName:a,transform:l,symbol:u,title:d,maskId:h,titleId:m,extra:y,watchable:x=!1}=e,{width:b,height:C}=r.found?r:n,N=F7.includes(i),E=[ve.replacementClass,a?"".concat(ve.cssPrefix,"-").concat(a):""].filter(L=>y.classes.indexOf(L)===-1).filter(L=>L!==""||!!L).concat(y.classes).join(" ");let j={children:[],attributes:te(te({},y.attributes),{},{"data-prefix":i,"data-icon":a,class:E,role:y.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(b," ").concat(C)})};const A=N&&!~y.classes.indexOf("fa-fw")?{width:"".concat(b/C*16*.0625,"em")}:{};x&&(j.attributes[Po]=""),d&&(j.children.push({tag:"title",attributes:{id:j.attributes["aria-labelledby"]||"title-".concat(m||_s())},children:[d]}),delete j.attributes.title);const k=te(te({},j),{},{prefix:i,iconName:a,main:n,mask:r,maskId:h,transform:l,symbol:u,styles:te(te({},A),y.styles)}),{children:M,attributes:P}=r.found&&n.found?Jr("generateAbstractMask",k)||{children:[],attributes:{}}:Jr("generateAbstractIcon",k)||{children:[],attributes:{}};return k.children=M,k.attributes=P,u?F9(k):L9(k)}function sg(e){const{content:n,width:r,height:i,transform:a,title:l,extra:u,watchable:d=!1}=e,h=te(te(te({},u.attributes),l?{title:l}:{}),{},{class:u.classes.join(" ")});d&&(h[Po]="");const m=te({},u.styles);w0(a)&&(m.transform=p9({transform:a,startCentered:!0,width:r,height:i}),m["-webkit-transform"]=m.transform);const y=nc(m);y.length>0&&(h.style=y);const x=[];return x.push({tag:"span",attributes:h,children:[n]}),l&&x.push({tag:"span",attributes:{class:"sr-only"},children:[l]}),x}function $9(e){const{content:n,title:r,extra:i}=e,a=te(te(te({},i.attributes),r?{title:r}:{}),{},{class:i.classes.join(" ")}),l=nc(i.styles);l.length>0&&(a.style=l);const u=[];return u.push({tag:"span",attributes:a,children:[n]}),r&&u.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),u}const{styles:Md}=Vn;function df(e){const n=e[0],r=e[1],[i]=e.slice(4);let a=null;return Array.isArray(i)?a={tag:"g",attributes:{class:"".concat(ve.cssPrefix,"-").concat(jd.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ve.cssPrefix,"-").concat(jd.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(ve.cssPrefix,"-").concat(jd.PRIMARY),fill:"currentColor",d:i[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:n,height:r,icon:a}}const H9={found:!1,width:512,height:512};function V9(e,n){!kx&&!ve.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(n,'" is missing.'))}function ff(e,n){let r=n;return n==="fa"&&ve.styleDefault!==null&&(n=Qr()),new Promise((i,a)=>{if(r==="fa"){const l=Fx(e)||{};e=l.iconName||e,n=l.prefix||n}if(e&&n&&Md[n]&&Md[n][e]){const l=Md[n][e];return i(df(l))}V9(e,n),i(te(te({},H9),{},{icon:ve.showMissingIcons&&e?Jr("missingIconAbstract")||{}:{}}))})}const ag=()=>{},pf=ve.measurePerformance&&fl&&fl.mark&&fl.measure?fl:{mark:ag,measure:ag},Cs='FA "6.7.2"',B9=e=>(pf.mark("".concat(Cs," ").concat(e," begins")),()=>Vx(e)),Vx=e=>{pf.mark("".concat(Cs," ").concat(e," ends")),pf.measure("".concat(Cs," ").concat(e),"".concat(Cs," ").concat(e," begins"),"".concat(Cs," ").concat(e," ends"))};var k0={begin:B9,end:Vx};const wl=()=>{};function lg(e){return typeof(e.getAttribute?e.getAttribute(Po):null)=="string"}function W9(e){const n=e.getAttribute?e.getAttribute(g0):null,r=e.getAttribute?e.getAttribute(y0):null;return n&&r}function U9(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ve.replacementClass)}function Y9(){return ve.autoReplaceSvg===!0?bl.replace:bl[ve.autoReplaceSvg]||bl.replace}function X9(e){return Ue.createElementNS("http://www.w3.org/2000/svg",e)}function G9(e){return Ue.createElement(e)}function Bx(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:r=e.tag==="svg"?X9:G9}=n;if(typeof e=="string")return Ue.createTextNode(e);const i=r(e.tag);return Object.keys(e.attributes||[]).forEach(function(l){i.setAttribute(l,e.attributes[l])}),(e.children||[]).forEach(function(l){i.appendChild(Bx(l,{ceFn:r}))}),i}function K9(e){let n=" ".concat(e.outerHTML," ");return n="".concat(n,"Font Awesome fontawesome.com "),n}const bl={replace:function(e){const n=e[0];if(n.parentNode)if(e[1].forEach(r=>{n.parentNode.insertBefore(Bx(r),n)}),n.getAttribute(Po)===null&&ve.keepOriginalSource){let r=Ue.createComment(K9(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(e){const n=e[0],r=e[1];if(~x0(n).indexOf(ve.replacementClass))return bl.replace(e);const i=new RegExp("".concat(ve.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){const l=r[0].attributes.class.split(" ").reduce((u,d)=>(d===ve.replacementClass||d.match(i)?u.toSvg.push(d):u.toNode.push(d),u),{toNode:[],toSvg:[]});r[0].attributes.class=l.toSvg.join(" "),l.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",l.toNode.join(" "))}const a=r.map(l=>Ws(l)).join(`
+`);n.setAttribute(Po,""),n.innerHTML=a}};function cg(e){e()}function Wx(e,n){const r=typeof n=="function"?n:wl;if(e.length===0)r();else{let i=cg;ve.mutateApproach===J7&&(i=qr.requestAnimationFrame||cg),i(()=>{const a=Y9(),l=k0.begin("mutate");e.map(a),l(),r()})}}let j0=!1;function Ux(){j0=!0}function hf(){j0=!1}let Dl=null;function ug(e){if(!q1||!ve.observeMutations)return;const{treeCallback:n=wl,nodeCallback:r=wl,pseudoElementsCallback:i=wl,observeMutationsRoot:a=Ue}=e;Dl=new q1(l=>{if(j0)return;const u=Qr();Ni(l).forEach(d=>{if(d.type==="childList"&&d.addedNodes.length>0&&!lg(d.addedNodes[0])&&(ve.searchPseudoElements&&i(d.target),n(d.target)),d.type==="attributes"&&d.target.parentNode&&ve.searchPseudoElements&&i(d.target.parentNode),d.type==="attributes"&&lg(d.target)&&~o9.indexOf(d.attributeName))if(d.attributeName==="class"&&W9(d.target)){const{prefix:h,iconName:m}=oc(x0(d.target));d.target.setAttribute(g0,h||u),m&&d.target.setAttribute(y0,m)}else U9(d.target)&&r(d.target)})}),yr&&Dl.observe(a,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function q9(){Dl&&Dl.disconnect()}function Q9(e){const n=e.getAttribute("style");let r=[];return n&&(r=n.split(";").reduce((i,a)=>{const l=a.split(":"),u=l[0],d=l.slice(1);return u&&d.length>0&&(i[u]=d.join(":").trim()),i},{})),r}function J9(e){const n=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),i=e.innerText!==void 0?e.innerText.trim():"";let a=oc(x0(e));return a.prefix||(a.prefix=Qr()),n&&r&&(a.prefix=n,a.iconName=r),a.iconName&&a.prefix||(a.prefix&&i.length>0&&(a.iconName=C9(a.prefix,e.innerText)||S0(a.prefix,af(e.innerText))),!a.iconName&&ve.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}function Z9(e){const n=Ni(e.attributes).reduce((a,l)=>(a.name!=="class"&&a.name!=="style"&&(a[l.name]=l.value),a),{}),r=e.getAttribute("title"),i=e.getAttribute("data-fa-title-id");return ve.autoA11y&&(r?n["aria-labelledby"]="".concat(ve.replacementClass,"-title-").concat(i||_s()):(n["aria-hidden"]="true",n.focusable="false")),n}function ej(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Hn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function dg(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:r,prefix:i,rest:a}=J9(e),l=Z9(e),u=cf("parseNodeAttributes",{},e);let d=n.styleParser?Q9(e):[];return te({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:Hn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:d,attributes:l}},u)}const{styles:tj}=Vn;function Yx(e){const n=ve.autoReplaceSvg==="nest"?dg(e,{styleParser:!1}):dg(e);return~n.extra.classes.indexOf(Ex)?Jr("generateLayersText",e,n):Jr("generateSvgReplacementMutation",e,n)}function nj(){return[..._7,...ef]}function fg(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!yr)return Promise.resolve();const r=Ue.documentElement.classList,i=y=>r.add("".concat(Z1,"-").concat(y)),a=y=>r.remove("".concat(Z1,"-").concat(y)),l=ve.autoFetchSvg?nj():xx.concat(Object.keys(tj));l.includes("fa")||l.push("fa");const u=[".".concat(Ex,":not([").concat(Po,"])")].concat(l.map(y=>".".concat(y,":not([").concat(Po,"])"))).join(", ");if(u.length===0)return Promise.resolve();let d=[];try{d=Ni(e.querySelectorAll(u))}catch{}if(d.length>0)i("pending"),a("complete");else return Promise.resolve();const h=k0.begin("onTree"),m=d.reduce((y,x)=>{try{const b=Yx(x);b&&y.push(b)}catch(b){kx||b.name==="MissingIcon"&&console.error(b)}return y},[]);return new Promise((y,x)=>{Promise.all(m).then(b=>{Wx(b,()=>{i("active"),i("complete"),a("pending"),typeof n=="function"&&n(),h(),y()})}).catch(b=>{h(),x(b)})})}function rj(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Yx(e).then(r=>{r&&Wx([r],n)})}function oj(e){return function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=(n||{}).icon?n:uf(n||{});let{mask:a}=r;return a&&(a=(a||{}).icon?a:uf(a||{})),e(i,te(te({},r),{},{mask:a}))}}const ij=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:r=Hn,symbol:i=!1,mask:a=null,maskId:l=null,title:u=null,titleId:d=null,classes:h=[],attributes:m={},styles:y={}}=n;if(!e)return;const{prefix:x,iconName:b,icon:C}=e;return ic(te({type:"icon"},e),()=>(Ro("beforeDOMElementCreation",{iconDefinition:e,params:n}),ve.autoA11y&&(u?m["aria-labelledby"]="".concat(ve.replacementClass,"-title-").concat(d||_s()):(m["aria-hidden"]="true",m.focusable="false")),C0({icons:{main:df(C),mask:a?df(a.icon):{found:!1,width:null,height:null,icon:{}}},prefix:x,iconName:b,transform:te(te({},Hn),r),symbol:i,title:u,maskId:l,titleId:d,extra:{attributes:m,styles:y,classes:h}})))};var sj={mixout(){return{icon:oj(ij)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=fg,e.nodeCallback=rj,e}}},provides(e){e.i2svg=function(n){const{node:r=Ue,callback:i=()=>{}}=n;return fg(r,i)},e.generateSvgReplacementMutation=function(n,r){const{iconName:i,title:a,titleId:l,prefix:u,transform:d,symbol:h,mask:m,maskId:y,extra:x}=r;return new Promise((b,C)=>{Promise.all([ff(i,u),m.iconName?ff(m.iconName,m.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(N=>{let[E,j]=N;b([n,C0({icons:{main:E,mask:j},prefix:u,iconName:i,transform:d,symbol:h,maskId:y,title:a,titleId:l,extra:x,watchable:!0})])}).catch(C)})},e.generateAbstractIcon=function(n){let{children:r,attributes:i,main:a,transform:l,styles:u}=n;const d=nc(u);d.length>0&&(i.style=d);let h;return w0(l)&&(h=Jr("generateAbstractTransformGrouping",{main:a,transform:l,containerWidth:a.width,iconWidth:a.width})),r.push(h||a.icon),{children:r,attributes:i}}}},aj={mixout(){return{layer(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:r=[]}=n;return ic({type:"layer"},()=>{Ro("beforeDOMElementCreation",{assembler:e,params:n});let i=[];return e(a=>{Array.isArray(a)?a.map(l=>{i=i.concat(l.abstract)}):i=i.concat(a.abstract)}),[{tag:"span",attributes:{class:["".concat(ve.cssPrefix,"-layers"),...r].join(" ")},children:i}]})}}}},lj={mixout(){return{counter(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:r=null,classes:i=[],attributes:a={},styles:l={}}=n;return ic({type:"counter",content:e},()=>(Ro("beforeDOMElementCreation",{content:e,params:n}),$9({content:e.toString(),title:r,extra:{attributes:a,styles:l,classes:["".concat(ve.cssPrefix,"-layers-counter"),...i]}})))}}}},cj={mixout(){return{text(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:r=Hn,title:i=null,classes:a=[],attributes:l={},styles:u={}}=n;return ic({type:"text",content:e},()=>(Ro("beforeDOMElementCreation",{content:e,params:n}),sg({content:e,transform:te(te({},Hn),r),title:i,extra:{attributes:l,styles:u,classes:["".concat(ve.cssPrefix,"-layers-text"),...a]}})))}}},provides(e){e.generateLayersText=function(n,r){const{title:i,transform:a,extra:l}=r;let u=null,d=null;if(yx){const h=parseInt(getComputedStyle(n).fontSize,10),m=n.getBoundingClientRect();u=m.width/h,d=m.height/h}return ve.autoA11y&&!i&&(l.attributes["aria-hidden"]="true"),Promise.resolve([n,sg({content:n.innerHTML,width:u,height:d,transform:a,title:i,extra:l,watchable:!0})])}}};const uj=new RegExp('"',"ug"),pg=[1105920,1112319],hg=te(te(te(te({},{FontAwesome:{normal:"fas",400:"fas"}}),z7),q7),B7),mf=Object.keys(hg).reduce((e,n)=>(e[n.toLowerCase()]=hg[n],e),{}),dj=Object.keys(mf).reduce((e,n)=>{const r=mf[n];return e[n]=r[900]||[...Object.entries(r)][0][1],e},{});function fj(e){const n=e.replace(uj,""),r=v9(n,0),i=r>=pg[0]&&r<=pg[1],a=n.length===2?n[0]===n[1]:!1;return{value:af(a?n[0]:n),isSecondary:i||a}}function pj(e,n){const r=e.replace(/^['"]|['"]$/g,"").toLowerCase(),i=parseInt(n),a=isNaN(i)?"normal":i;return(mf[r]||{})[a]||dj[r]}function mg(e,n){const r="".concat(Q7).concat(n.replace(":","-"));return new Promise((i,a)=>{if(e.getAttribute(r)!==null)return i();const u=Ni(e.children).filter(b=>b.getAttribute(nf)===n)[0],d=qr.getComputedStyle(e,n),h=d.getPropertyValue("font-family"),m=h.match(n9),y=d.getPropertyValue("font-weight"),x=d.getPropertyValue("content");if(u&&!m)return e.removeChild(u),i();if(m&&x!=="none"&&x!==""){const b=d.getPropertyValue("content");let C=pj(h,y);const{value:N,isSecondary:E}=fj(b),j=m[0].startsWith("FontAwesome");let A=S0(C,N),k=A;if(j){const M=k9(N);M.iconName&&M.prefix&&(A=M.iconName,C=M.prefix)}if(A&&!E&&(!u||u.getAttribute(g0)!==C||u.getAttribute(y0)!==k)){e.setAttribute(r,k),u&&e.removeChild(u);const M=ej(),{extra:P}=M;P.attributes[nf]=n,ff(A,C).then(L=>{const H=C0(te(te({},M),{},{icons:{main:L,mask:$x()},prefix:C,iconName:k,extra:P,watchable:!0})),_=Ue.createElementNS("http://www.w3.org/2000/svg","svg");n==="::before"?e.insertBefore(_,e.firstChild):e.appendChild(_),_.outerHTML=H.map(F=>Ws(F)).join(`
+`),e.removeAttribute(r),i()}).catch(a)}else i()}else i()})}function hj(e){return Promise.all([mg(e,"::before"),mg(e,"::after")])}function mj(e){return e.parentNode!==document.head&&!~Z7.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(nf)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function gg(e){if(yr)return new Promise((n,r)=>{const i=Ni(e.querySelectorAll("*")).filter(mj).map(hj),a=k0.begin("searchPseudoElements");Ux(),Promise.all(i).then(()=>{a(),hf(),n()}).catch(()=>{a(),hf(),r()})})}var gj={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=gg,e}}},provides(e){e.pseudoElements2svg=function(n){const{node:r=Ue}=n;ve.searchPseudoElements&&gg(r)}}};let yg=!1;var yj={mixout(){return{dom:{unwatch(){Ux(),yg=!0}}}},hooks(){return{bootstrap(){ug(cf("mutationObserverCallbacks",{}))},noAuto(){q9()},watch(e){const{observeMutationsRoot:n}=e;yg?hf():ug(cf("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}};const vg=e=>{let n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((r,i)=>{const a=i.toLowerCase().split("-"),l=a[0];let u=a.slice(1).join("-");if(l&&u==="h")return r.flipX=!0,r;if(l&&u==="v")return r.flipY=!0,r;if(u=parseFloat(u),isNaN(u))return r;switch(l){case"grow":r.size=r.size+u;break;case"shrink":r.size=r.size-u;break;case"left":r.x=r.x-u;break;case"right":r.x=r.x+u;break;case"up":r.y=r.y-u;break;case"down":r.y=r.y+u;break;case"rotate":r.rotate=r.rotate+u;break}return r},n)};var vj={mixout(){return{parse:{transform:e=>vg(e)}}},hooks(){return{parseNodeAttributes(e,n){const r=n.getAttribute("data-fa-transform");return r&&(e.transform=vg(r)),e}}},provides(e){e.generateAbstractTransformGrouping=function(n){let{main:r,transform:i,containerWidth:a,iconWidth:l}=n;const u={transform:"translate(".concat(a/2," 256)")},d="translate(".concat(i.x*32,", ").concat(i.y*32,") "),h="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),m="rotate(".concat(i.rotate," 0 0)"),y={transform:"".concat(d," ").concat(h," ").concat(m)},x={transform:"translate(".concat(l/2*-1," -256)")},b={outer:u,inner:y,path:x};return{tag:"g",attributes:te({},b.outer),children:[{tag:"g",attributes:te({},b.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:te(te({},r.icon.attributes),b.path)}]}]}}}};const Ad={x:0,y:0,width:"100%",height:"100%"};function xg(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||n)&&(e.attributes.fill="black"),e}function xj(e){return e.tag==="g"?e.children:[e]}var wj={hooks(){return{parseNodeAttributes(e,n){const r=n.getAttribute("data-fa-mask"),i=r?oc(r.split(" ").map(a=>a.trim())):$x();return i.prefix||(i.prefix=Qr()),e.mask=i,e.maskId=n.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(n){let{children:r,attributes:i,main:a,mask:l,maskId:u,transform:d}=n;const{width:h,icon:m}=a,{width:y,icon:x}=l,b=f9({transform:d,containerWidth:y,iconWidth:h}),C={tag:"rect",attributes:te(te({},Ad),{},{fill:"white"})},N=m.children?{children:m.children.map(xg)}:{},E={tag:"g",attributes:te({},b.inner),children:[xg(te({tag:m.tag,attributes:te(te({},m.attributes),b.path)},N))]},j={tag:"g",attributes:te({},b.outer),children:[E]},A="mask-".concat(u||_s()),k="clip-".concat(u||_s()),M={tag:"mask",attributes:te(te({},Ad),{},{id:A,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[C,j]},P={tag:"defs",children:[{tag:"clipPath",attributes:{id:k},children:xj(x)},M]};return r.push(P,{tag:"rect",attributes:te({fill:"currentColor","clip-path":"url(#".concat(k,")"),mask:"url(#".concat(A,")")},Ad)}),{children:r,attributes:i}}}},bj={provides(e){let n=!1;qr.matchMedia&&(n=qr.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const r=[],i={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:te(te({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const l=te(te({},a),{},{attributeName:"opacity"}),u={tag:"circle",attributes:te(te({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||u.children.push({tag:"animate",attributes:te(te({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:te(te({},l),{},{values:"1;0;1;1;0;1;"})}),r.push(u),r.push({tag:"path",attributes:te(te({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:te(te({},l),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:te(te({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:te(te({},l),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},Sj={hooks(){return{parseNodeAttributes(e,n){const r=n.getAttribute("data-fa-symbol"),i=r===null?!1:r===""?!0:r;return e.symbol=i,e}}}},Cj=[m9,sj,aj,lj,cj,gj,yj,vj,wj,bj,Sj];z9(Cj,{mixoutsTo:tn});tn.noAuto;tn.config;tn.library;tn.dom;const gf=tn.parse;tn.findIconDefinition;tn.toHtml;const kj=tn.icon;tn.layer;tn.text;tn.counter;var Pd={exports:{}},Rd,wg;function jj(){if(wg)return Rd;wg=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Rd=e,Rd}var Id,bg;function Ej(){if(bg)return Id;bg=1;var e=jj();function n(){}function r(){}return r.resetWarningCache=n,Id=function(){function i(u,d,h,m,y,x){if(x!==e){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}i.isRequired=i;function a(){return i}var l={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:n};return l.PropTypes=l,l},Id}var Sg;function Nj(){return Sg||(Sg=1,Pd.exports=Ej()()),Pd.exports}var Mj=Nj();const je=Fl(Mj);var Aj={};function yf(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=Array(n);rj}for(var A=0;A2&&arguments[2]!==void 0?arguments[2]:{};if(typeof n=="string")return n;var i=(n.children||[]).map(function(h){return Kx(e,h)}),a=Object.keys(n.attributes||{}).reduce(function(h,m){var y=n.attributes[m];switch(m){case"class":h.attrs.className=y,delete n.attributes.class;break;case"style":h.attrs.style=Xj(y);break;default:m.indexOf("aria-")===0||m.indexOf("data-")===0?h.attrs[m.toLowerCase()]=y:h.attrs[Gx(m)]=y}return h},{attrs:{}}),l=r.style,u=l===void 0?{}:l,d=_j(r,Uj);return a.attrs.style=Ln(Ln({},a.attrs.style),u),e.apply(void 0,[n.tag,Ln(Ln({},a.attrs),d)].concat(vf(i)))}var qx=!1;try{qx=!0}catch{}function Gj(){if(!qx&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function jg(e){if(e&&Ll(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(gf.icon)return gf.icon(e);if(e===null)return null;if(e&&Ll(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function zd(e,n){return Array.isArray(n)&&n.length>0||!Array.isArray(n)&&n?Vr({},e,n):{}}var Eg={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,rotateBy:!1,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1,widthAuto:!1},dr=ke.forwardRef(function(e,n){var r=Ln(Ln({},Eg),e),i=r.icon,a=r.mask,l=r.symbol,u=r.className,d=r.title,h=r.titleId,m=r.maskId,y=jg(i),x=zd("classes",[].concat(vf(Vj(r)),vf((u||"").split(" ")))),b=zd("transform",typeof r.transform=="string"?gf.transform(r.transform):r.transform),C=zd("mask",jg(a)),N=kj(y,Ln(Ln(Ln(Ln({},x),b),C),{},{symbol:l,title:d,titleId:h,maskId:m}));if(!N)return Gj("Could not find icon",y),null;var E=N.abstract,j={ref:n};return Object.keys(r).forEach(function(A){Eg.hasOwnProperty(A)||(j[A]=r[A])}),Kj(E[0],j)});dr.displayName="FontAwesomeIcon";dr.propTypes={beat:je.bool,border:je.bool,beatFade:je.bool,bounce:je.bool,className:je.string,fade:je.bool,flash:je.bool,mask:je.oneOfType([je.object,je.array,je.string]),maskId:je.string,fixedWidth:je.bool,inverse:je.bool,flip:je.oneOf([!0,!1,"horizontal","vertical","both"]),icon:je.oneOfType([je.object,je.array,je.string]),listItem:je.bool,pull:je.oneOf(["right","left"]),pulse:je.bool,rotation:je.oneOf([0,90,180,270]),rotateBy:je.bool,shake:je.bool,size:je.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:je.bool,spinPulse:je.bool,spinReverse:je.bool,symbol:je.oneOfType([je.bool,je.string]),title:je.string,titleId:je.string,transform:je.oneOfType([je.string,je.object]),swapOpacity:je.bool,widthAuto:je.bool};var Kj=Kx.bind(null,ke.createElement);const Qx=v.createContext(1);function lt({id:e,label:n,zIndex:r=10,canRotate:i=!1,canResize:a=!0,children:l}){const u=Pe(z=>z.active),d=Pe(z=>z.elements[e]),h=Pe(z=>z.move),m=Pe(z=>z.toggleHidden),y=Pe(z=>z.toggleVertical),x=Pe(z=>z.rescale),b=Pe(z=>z.reset),C=Pe(z=>z.permissions[e]),N=(C==null?void 0:C.canMove)??!0,E=(C==null?void 0:C.canHide)??!0,j=a&&((C==null?void 0:C.canResize)??!0),A=(d==null?void 0:d.dx)??0,k=(d==null?void 0:d.dy)??0,M=(d==null?void 0:d.hidden)??!1,P=(d==null?void 0:d.vertical)??!1,L=(d==null?void 0:d.scale)??1,[H,_]=v.useState(!1),[F,W]=v.useState(null),Z=v.useRef({startX:0,startY:0,startDx:0,startDy:0}),ie=v.useRef({minDx:-1/0,maxDx:1/0,minDy:-1/0,maxDy:1/0}),U=v.useRef(null),de=v.useRef(null),se=v.useRef(A),ce=v.useRef(k);se.current=A,ce.current=k;const ae=20;v.useLayoutEffect(()=>{if(!u||!U.current)return;const z=U.current,K=de.current;let ee=1/0,Q=1/0,ne=-1/0,le=-1/0;for(const he of Array.from(z.querySelectorAll("*"))){if(K&&(he===K||K.contains(he))||he instanceof SVGElement&&!(he instanceof SVGSVGElement))continue;const fe=he.getBoundingClientRect();fe.width===0&&fe.height===0||(ee=Math.min(ee,fe.left),Q=Math.min(Q,fe.top),ne=Math.max(ne,fe.right),le=Math.max(le,fe.bottom))}if(ee!==1/0){const he=se.current,fe=ce.current;W({l:ee-he,t:Q-fe,r:ne-he,b:le-fe})}return()=>W(null)},[u]);const oe=v.useCallback(z=>{z.preventDefault(),z.stopPropagation();const K=U.current;if(K){const ne=de.current;let le=1/0,he=1/0,fe=-1/0,Ie=-1/0;for(const Le of Array.from(K.querySelectorAll("*"))){if(ne&&(Le===ne||ne.contains(Le))||Le instanceof SVGElement&&!(Le instanceof SVGSVGElement))continue;const vt=Le.getBoundingClientRect();vt.width===0&&vt.height===0||(le=Math.min(le,vt.left),he=Math.min(he,vt.top),fe=Math.max(fe,vt.right),Ie=Math.max(Ie,vt.bottom))}le!==1/0&&(ie.current={minDx:ae-le+A,maxDx:window.innerWidth-ae-fe+A,minDy:ae-he+k,maxDy:window.innerHeight-ae-Ie+k})}Z.current={startX:z.clientX,startY:z.clientY,startDx:A,startDy:k},_(!0);const ee=ne=>{const{minDx:le,maxDx:he,minDy:fe,maxDy:Ie}=ie.current,Le=Math.max(le,Math.min(he,Z.current.startDx+ne.clientX-Z.current.startX)),vt=Math.max(fe,Math.min(Ie,Z.current.startDy+ne.clientY-Z.current.startY));h(e,Le,vt)},Q=()=>{_(!1),window.removeEventListener("mousemove",ee),window.removeEventListener("mouseup",Q)};window.addEventListener("mousemove",ee),window.addEventListener("mouseup",Q)},[A,k,e,h]);if(M&&!u)return null;const Y=A!==0||k!==0,I=Math.abs(L-1)>.005,q=Y?`translate(${A}px, ${k}px)`:void 0,T=F?{x:(F.l+F.r)/2,y:(F.t+F.b)/2}:null;return p.jsxs("div",{ref:U,style:{position:"fixed",inset:0,overflow:"visible",pointerEvents:"none",zIndex:r,transform:q,opacity:M?.3:1},children:[p.jsx(Qx.Provider,{value:L,children:l}),u&&F&&N&&p.jsx("div",{style:{position:"absolute",left:F.l,top:F.t,width:F.r-F.l,height:F.b-F.t,pointerEvents:"auto",cursor:H?"grabbing":"grab",zIndex:9997},onMouseDown:oe}),H&&F&&p.jsx("div",{style:{position:"absolute",left:F.l-6,top:F.t-6,width:F.r-F.l+12,height:F.b-F.t+12,border:"2px solid hsl(var(--primary))",boxShadow:"0 0 12px hsl(var(--primary) / 0.5), inset 0 0 8px hsl(var(--primary) / 0.15)",borderRadius:6,pointerEvents:"none",zIndex:9998}}),u&&F&&T&&(N||E||j)&&p.jsxs("div",{ref:de,style:{position:"absolute",left:T.x,top:F.b+8,transform:"translate(-50%, 0)",pointerEvents:"auto",display:"flex",alignItems:"center",gap:6,background:H?"hsl(var(--primary) / 0.22)":"hsl(var(--card))",border:`1px solid ${H?"hsl(var(--primary))":"hsl(var(--border))"}`,borderRadius:8,padding:"4px 8px",color:"white",fontSize:12,fontWeight:600,userSelect:"none",boxShadow:H?"0 0 10px hsl(var(--primary) / 0.4), 0 2px 8px rgba(0,0,0,0.5)":"0 2px 8px rgba(0,0,0,0.5)",cursor:N?H?"grabbing":"grab":"default",zIndex:9999,whiteSpace:"nowrap",opacity:H?.5:1,transition:"background 0.1s, border-color 0.1s, opacity 0.1s"},onMouseDown:N?oe:void 0,children:[N&&p.jsx(dr,{icon:qg,style:{color:H?"hsl(var(--foreground))":"hsl(var(--muted-foreground))",fontSize:11,flexShrink:0}}),p.jsx("span",{style:{color:H?"hsl(var(--primary))":"hsl(var(--muted-foreground))",letterSpacing:"0.04em"},children:n}),E&&p.jsx(ws,{title:M?"Mostrar":"Ocultar",onClick:()=>m(e),icon:M?Fg:Tg}),N&&i&&p.jsx(ws,{title:P?"Horizontal":"Vertical",onClick:()=>y(e),icon:Y4,color:P?"rgba(167,243,208,0.9)":"rgba(255,255,255,0.55)"}),j&&p.jsxs(p.Fragment,{children:[p.jsx(ws,{title:"Diminuir",onClick:()=>x(e,L/1.1),icon:Wg,color:"rgba(255,255,255,0.7)"}),p.jsxs("span",{style:{color:I?"hsl(var(--foreground))":"hsl(var(--muted-foreground) / 0.5)",fontSize:10,minWidth:28,textAlign:"center",userSelect:"none"},children:[Math.round(L*100),"%"]}),p.jsx(ws,{title:"Aumentar",onClick:()=>x(e,L*1.1),icon:Kg,color:"rgba(255,255,255,0.7)"})]}),N&&(Y||I)&&p.jsx(ws,{title:"Resetar posição",onClick:()=>b(e),icon:Lg,color:"hsl(var(--destructive))"})]})]})}function ws({title:e,onClick:n,icon:r,color:i="rgba(255,255,255,0.8)"}){return p.jsx("button",{style:{background:"none",border:"none",color:i,cursor:"pointer",padding:"0 2px",lineHeight:1,flexShrink:0},title:e,onMouseDown:a=>a.stopPropagation(),onClick:a=>{a.stopPropagation(),n()},children:p.jsx(dr,{icon:r,style:{fontSize:12}})})}function qj(){const e=Oe(m=>m.show),n=pt(m=>m.layout),r=pt(m=>m.iconBetweenSpacing),i=pt(m=>m.yAxisSpacing),a=pt(m=>m.xAxisSpacing),l=Pe(m=>{var y;return((y=m.elements.statusBar)==null?void 0:y.vertical)??!1});if(!e&&!zt)return null;const u={gap:`${r}px`,marginBottom:`${i}px`,marginLeft:`${a}px`},d=p.jsxs("div",{style:{display:"flex",flexDirection:l?"column":"row",alignItems:"center",gap:`${r}px`},children:[p.jsx(x7,{}),p.jsx(C7,{})]});let h;return n==="center-bottom-row"?h=p.jsx("div",{className:"absolute bottom-[0.3vw] w-[100vw]",children:p.jsx("div",{className:"static flex flex-col mx-auto",style:{width:"max-content",...u},children:d})}):n==="bottom-right-row"?h=p.jsx("div",{className:"absolute bottom-[0.3vw] right-[0.3vw] flex flex-col",style:u,children:d}):n==="left-bottom-column"?h=p.jsx("div",{className:"absolute bottom-[0.3vw] left-[1vh]",children:p.jsx("div",{className:"static flex flex-col",style:u,children:d})}):n==="right-bottom-column"?h=p.jsx("div",{className:"absolute bottom-[0.3vw] right-[1vh]",children:p.jsx("div",{className:"static flex flex-col",style:u,children:d})}):n==="top-left-row"?h=p.jsx("div",{className:"absolute top-[0.3vw] left-[0.3vw] flex flex-col",style:u,children:d}):n==="top-right-row"?h=p.jsx("div",{className:"absolute top-[0.3vw] right-[0.3vw] flex flex-col",style:u,children:d}):h=p.jsx("div",{className:"absolute bottom-[0.3vw] left-[0.3vw] flex flex-col standard-layout",style:u,children:d}),p.jsx(lt,{id:"statusBar",label:"Barra de Status",zIndex:20,canRotate:!0,children:h})}function Cn({name:e,disabled:n=!1,disabledText:r="",className:i="",onClick:a}){return p.jsx(xi,{disabled:n,onClick:a,className:`my-2 w-[150px] uppercase font-bold ${i}`,children:n&&r?r:e})}function ft({checked:e,primaryText:n,secondaryText:r="",onChange:i}){return p.jsxs("div",{className:`flex flex-row gap-4 py-3 cursor-pointer select-none ${r?"items-center":""}`,onClick:()=>i(!e),children:[p.jsx("div",{className:`grid place-content-center shrink-0 rounded-[0.15em] border-[0.15em] -translate-y-[0.075em] transition-colors ${e?"border-primary bg-primary":"border-primary/45 bg-card"}`,style:{width:"1.6em",height:"1.6em"},children:e&&p.jsx("svg",{viewBox:"0 0 12 12",width:"10",height:"10",fill:"none",children:p.jsx("polyline",{points:"1.5,6.5 4.5,9.5 10.5,2.5",stroke:"hsl(var(--primary-foreground))",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),r?p.jsxs("div",{className:"flex flex-col text-foreground",children:[p.jsx("span",{className:"text-[1.2em] leading-tight mb-1",children:n}),p.jsx("span",{className:"text-[1.1em] leading-tight text-muted-foreground",children:r})]}):p.jsx("span",{className:"text-[1.2em] leading-tight text-foreground",children:n})]})}function jo({checked:e,checkedText:n="",uncheckedText:r="",center:i=!1,onChange:a}){return p.jsxs("div",{className:"flex flex-row items-center pt-2 pb-4 gap-3 select-none",style:i?{justifyContent:"center"}:{},children:[p.jsx(ty,{checked:e,onCheckedChange:a,"aria-label":n||r||"toggle"}),n&&r?p.jsx("span",{className:"text-[1.2em] leading-tight text-foreground",children:e?n:r}):null]})}function Qj(e){return e.split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" ")}function Ur({values:e,value:n,onChange:r}){const i=e.map(a=>({label:Qj(a),value:a}));return p.jsx(Rk,{options:i,value:n,onChange:r,className:"w-full"})}const Jj=""+new URL("mri-logo.png",import.meta.url).href;function Zj(){return p.jsx("img",{src:Jj,alt:"MRI Qbox Brasil",className:"w-full h-auto object-contain rounded-lg",draggable:!1})}function eE(){const e=Gn(I=>I.translations),n=Me(I=>I.isRestarting),r=Me(I=>I.isOutMapChecked),i=Me(I=>I.isOutCompassChecked),a=Me(I=>I.isCompassFollowChecked),l=Me(I=>I.isOpenMenuSoundsChecked),u=Me(I=>I.isResetSoundsChecked),d=Me(I=>I.isListSoundsChecked),h=Me(I=>I.isMapNotifyChecked),m=Me(I=>I.isLowFuelAlertChecked),y=Me(I=>I.isCinematicNotifyChecked),x=Me(I=>I.isMapEnabledChecked),b=Me(I=>I.isToggleMapShapeChecked),C=Me(I=>I.isShowCompassChecked),N=Me(I=>I.isShowStreetsChecked),E=Me(I=>I.isPointerShowChecked),j=Me(I=>I.isCinematicModeChecked),A=Me(I=>I.isUseMPHChecked),k=Pe(I=>I.enabled),M=Me(I=>I.isAdmin),P=fr(I=>I.theme),L=fr(I=>I.variant),H=fr(I=>I.setTheme),_=fr(I=>I.setVariant),F=Kt(I=>I.skin),W=Kt(I=>I.palette),Z=Kt(I=>I.vitalStyle),ie=Kt(I=>I.frameless),U=Kt(I=>I.setSkin),de=Kt(I=>I.setPalette),se=Kt(I=>I.setVitalStyle),ce=Kt(I=>I.setFrameless),ae=Oe(I=>I.dynamicIcons),oe=Me.setState,Y=Oe.getState;return p.jsxs("div",{className:"text-sm flex flex-col",style:{color:"hsl(var(--muted-foreground))"},children:[p.jsxs("div",{className:"mx-4 mb-5 mt-3",children:[p.jsx("div",{className:"float-right w-[25%]",children:p.jsx(Zj,{})}),p.jsx("div",{className:"-mx-4 mb-4 text-xl",style:{color:"hsl(var(--foreground))"},children:p.jsx("p",{children:e.resetHud})}),p.jsx(Cn,{name:e.resetHud,disabled:n,disabledText:e.resettingHud,className:"whitespace-nowrap hover:bg-red-600",onClick:()=>{$e("restartHud"),oe({isRestarting:!0})}}),p.jsx("p",{className:"text-base",children:e.resetHudDescription}),p.jsx(Cn,{name:e.resetSettings,className:"hover:bg-red-600",onClick:()=>{Me.getState().resetHudMenuSetting(),Me.getState().sendMenuSettingsToClient()}}),p.jsx("p",{className:"text-base",children:e.resetSettingsDescriptionLine1}),p.jsx("p",{className:"text-base",children:e.resetSettingsDescriptionLine2})]}),k&&p.jsxs(p.Fragment,{children:[p.jsx("hr",{style:{borderColor:"hsl(var(--border))"}}),p.jsx("div",{className:"my-3 text-base font-semibold",style:{color:"hsl(var(--muted-foreground))",textTransform:"uppercase",letterSpacing:"0.06em"},children:p.jsx("p",{children:e.positioningMenu})}),p.jsxs("div",{className:"mx-4 mb-4 flex flex-col gap-3",children:[p.jsxs("div",{children:[p.jsx(Cn,{name:e.openPositioningMode,onClick:()=>{$e("switchToPositioningMode"),Me.setState({show:!1}),Pe.setState({active:!0})}}),p.jsx("p",{className:"text-base",children:e.openPositioningModeDescription})]}),p.jsxs("div",{children:[p.jsx(Cn,{name:e.resetAllPositions,className:"hover:bg-red-600",onClick:()=>Pe.getState().resetAll()}),p.jsx("p",{className:"text-base",children:e.resetAllPositionsDescription})]})]})]}),p.jsx("hr",{style:{borderColor:"hsl(var(--border))"}}),p.jsx("div",{className:"my-3 text-base font-semibold",style:{color:"hsl(var(--muted-foreground))",textTransform:"uppercase",letterSpacing:"0.06em"},children:p.jsx("p",{children:e.optionsMenu})}),p.jsxs("div",{className:"mx-4 mb-4 flex flex-col",children:[p.jsx(ft,{checked:r,primaryText:e.minimapVehicleCheckBoxPrimary,secondaryText:e.minimapVehicleCheckBoxSecondary,onChange:I=>{oe({isOutMapChecked:I}),$e("showOutMap",{checked:I})}}),p.jsx(ft,{checked:i,primaryText:e.compassVehicleCheckBoxPrimary,secondaryText:e.compassVehicleCheckBoxSecondary,onChange:I=>{oe({isOutCompassChecked:I}),$e("showOutCompass",{checked:I})}}),p.jsx(ft,{checked:a,primaryText:e.compassFollowCheckBoxPrimary,secondaryText:e.compassFollowCheckBoxSecondary,onChange:I=>{oe({isCompassFollowChecked:I}),$e("showFollowCompass",{checked:I})}})]}),p.jsx("hr",{style:{borderColor:"hsl(var(--border))"}}),p.jsx("div",{className:"my-3 text-base font-semibold",style:{color:"hsl(var(--muted-foreground))",textTransform:"uppercase",letterSpacing:"0.06em"},children:p.jsx("p",{children:e.notificationsMenu})}),p.jsxs("div",{className:"mx-4 mb-4 flex flex-col",children:[p.jsx(ft,{checked:l,primaryText:e.menuSoundEffectsEnabled,onChange:I=>{oe({isOpenMenuSoundsChecked:I}),$e("openMenuSounds",{checked:I})}}),p.jsx(ft,{checked:u,primaryText:e.resetSoundEffectsEnabled,onChange:I=>{oe({isResetSoundsChecked:I}),$e("resetHudSounds",{checked:I})}}),p.jsx(ft,{checked:d,primaryText:e.guiSoundEffectsEnabled,onChange:I=>{oe({isListSoundsChecked:I}),$e("checklistSounds",{checked:I})}}),p.jsx(ft,{checked:h,primaryText:e.mapNotificationsEnabled,onChange:I=>{oe({isMapNotifyChecked:I}),$e("showMapNotif",{checked:I})}}),p.jsx(ft,{checked:m,primaryText:e.lowFuelNotificationsEnabled,onChange:I=>{oe({isLowFuelAlertChecked:I}),$e("showFuelAlert",{checked:I})}}),p.jsx(ft,{checked:y,primaryText:e.cinematicModeNotificationEnabled,onChange:I=>{oe({isCinematicNotifyChecked:I}),$e("showCinematicNotif",{checked:I})}})]}),p.jsx("hr",{style:{borderColor:"hsl(var(--border))"}}),p.jsx("div",{className:"my-3 text-base font-semibold",style:{color:"hsl(var(--muted-foreground))",textTransform:"uppercase",letterSpacing:"0.06em"},children:p.jsx("p",{children:e.statusMenu})}),p.jsx("div",{className:"mx-4 mb-4 flex flex-col",children:["health","armor","hunger","thirst","stress","oxygen"].map(I=>p.jsx(ft,{checked:ae[I],primaryText:e[`show${I.charAt(0).toUpperCase()+I.slice(1)}Always`],onChange:q=>{Y().updateShowingDynamicIcon(I,q),$e("dynamicChange")}},I))}),p.jsx("hr",{style:{borderColor:"hsl(var(--border))"}}),p.jsx("div",{className:"my-3 text-base font-semibold",style:{color:"hsl(var(--muted-foreground))",textTransform:"uppercase",letterSpacing:"0.06em"},children:p.jsx("p",{children:e.vehicleMenu})}),p.jsxs("div",{className:"mx-4 mb-4 flex flex-col",children:[p.jsx(jo,{checked:b==="circle",checkedText:e.minimapTypeCircle,uncheckedText:e.minimapTypeSquare,onChange:I=>{const q=I?"circle":"square";oe({isToggleMapShapeChecked:q}),$e("ToggleMapShape",{shape:q})}}),p.jsx("p",{className:"font-semibold text-base pb-2",children:e.minimapTypeDescription}),p.jsx(jo,{checked:A,checkedText:e.metricsTypeMiles,uncheckedText:e.metricsTypeKmh,onChange:I=>{oe({isUseMPHChecked:I}),$e("toggleSpeedUnit",{useMPH:I})}}),p.jsx("p",{className:"font-semibold text-base pb-2",children:e.metricsTypeDescription}),p.jsx("p",{className:"font-semibold text-base pt-1",style:{color:"hsl(var(--foreground))"},children:e.vehicleThemeLabel}),p.jsxs("div",{style:{opacity:M?1:.5,pointerEvents:M?"auto":"none"},children:[p.jsx(jo,{checked:P==="digital",checkedText:e.vehicleThemeDigital,uncheckedText:e.vehicleThemeClassic,onChange:I=>H(I?"digital":"classic")}),P==="digital"&&p.jsxs("div",{className:"pb-2",children:[p.jsx("p",{className:"font-semibold text-base pb-1",children:e.vehicleSpeedoVariantLabel}),p.jsx(Ur,{values:Rw,value:L,onChange:I=>_(I)}),p.jsx("p",{className:"text-base pt-1",children:e.vehicleSpeedoVariantDescription})]})]}),p.jsx("p",{className:"font-semibold text-base pb-2",children:M?e.vehicleThemeDescription:e.vehicleThemeAdminOnly}),p.jsx(ft,{checked:x,primaryText:e.minimapEnabled,onChange:I=>{oe({isMapEnabledChecked:I}),$e("HideMap",{checked:I})}}),p.jsx(ft,{checked:ae.engine,primaryText:e.showEngineAlways,onChange:I=>{Y().updateShowingDynamicIcon("engine",I),$e("dynamicChange")}}),p.jsx(ft,{checked:ae.nitro,primaryText:e.showNitroAlways,onChange:I=>{Y().updateShowingDynamicIcon("nitro",I),$e("dynamicChange")}})]}),p.jsx("hr",{style:{borderColor:"hsl(var(--border))"}}),p.jsx("div",{className:"my-3 text-base font-semibold",style:{color:"hsl(var(--muted-foreground))",textTransform:"uppercase",letterSpacing:"0.06em"},children:p.jsx("p",{children:e.playerSkinLabel})}),p.jsxs("div",{className:"mx-4 mb-4 flex flex-col",style:{opacity:M?1:.5,pointerEvents:M?"auto":"none"},children:[p.jsx(jo,{checked:F==="sobrenatural",checkedText:e.playerSkinSupernatural,uncheckedText:e.playerSkinClassic,onChange:I=>U(I?"sobrenatural":"classic")}),F==="sobrenatural"&&p.jsxs("div",{className:"flex flex-col gap-3 pb-2",children:[p.jsxs("div",{children:[p.jsx("p",{className:"font-semibold text-base pb-1",children:e.skinPaletteLabel}),p.jsx(Ur,{values:a2,value:W,onChange:I=>de(I)})]}),p.jsxs("div",{children:[p.jsx("p",{className:"font-semibold text-base pb-1",children:e.skinStyleLabel}),p.jsx(Ur,{values:l2,value:Z,onChange:I=>se(I)})]}),p.jsx(ft,{checked:ie,primaryText:e.skinFramelessLabel,onChange:I=>ce(I)})]}),p.jsx("p",{className:"font-semibold text-base pb-2",children:M?e.playerSkinDescription:e.playerSkinAdminOnly})]}),p.jsx("hr",{style:{borderColor:"hsl(var(--border))"}}),p.jsx("div",{className:"my-3 text-base font-semibold",style:{color:"hsl(var(--muted-foreground))",textTransform:"uppercase",letterSpacing:"0.06em"},children:p.jsx("p",{children:e.compassMenu})}),p.jsxs("div",{className:"mx-4 mb-4 flex flex-col",children:[p.jsx(ft,{checked:C,primaryText:e.compassEnabled,secondaryText:e.compassEnabledDescription,onChange:I=>{oe({isShowCompassChecked:I}),$e("showCompassBase",{checked:I})}}),p.jsx(ft,{checked:N,primaryText:e.showStreetNamesEnabled,secondaryText:e.showStreetNamesDescription,onChange:I=>{oe({isShowStreetsChecked:I}),$e("showStreetsNames",{checked:I})}}),p.jsx(ft,{checked:E,primaryText:e.showCompassPointerEnabled,secondaryText:e.showCompassPointerDescription,onChange:I=>{oe({isPointerShowChecked:I}),$e("showPointerIndex",{checked:I})}})]}),p.jsx("hr",{style:{borderColor:"hsl(var(--border))"}}),p.jsx("div",{className:"my-3 text-base font-semibold",style:{color:"hsl(var(--muted-foreground))",textTransform:"uppercase",letterSpacing:"0.06em"},children:p.jsx("p",{children:e.cinematicMenu})}),p.jsx("div",{className:"mx-4 mb-4 flex flex-row gap-5",children:p.jsx(ft,{checked:j,primaryText:e.showCinematicBarsEnabled,onChange:I=>{oe({isCinematicModeChecked:I}),$e("cinematicMode",{checked:I})}})})]})}function Us({name:e,icon:n=null,color:r="currentColor",children:i,defaultOpen:a=!1}){const[l,u]=v.useState(a);let d=null,h=512,m=512;if(n){h=n.icon[0],m=n.icon[1];const y=n.icon[4];d=Array.isArray(y)?y[0]:y}return p.jsxs("div",{children:[p.jsxs("button",{type:"button",onClick:()=>u(y=>!y),className:"w-full flex flex-row items-center text-lg font-semibold px-3 py-3 bg-transparent border-none cursor-pointer text-left text-foreground hover:text-primary transition-colors focus:outline-none",children:[p.jsx("div",{className:"w-8 grid place-items-center shrink-0 text-muted-foreground",children:d&&p.jsx("svg",{width:"16",height:"16",viewBox:`0 0 ${h} ${m}`,children:p.jsx("path",{d,fill:r==="white"?"currentColor":r})})}),p.jsx("p",{className:"ml-3",children:e}),p.jsx("span",{className:"ml-auto transition-transform duration-200 text-muted-foreground",style:{transform:l?"rotate(180deg)":"rotate(0deg)",lineHeight:.5},children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",stroke:"currentColor",fill:"currentColor",children:p.jsx("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})})]}),l&&p.jsx("div",{className:"pb-4",children:i})]})}function Ng(e,n,r){const i=Math.max(n,Math.min(r,e));return Math.round(i*100)/100}function Ae({value:e,min:n=0,max:r=10,step:i=1,onChange:a}){function l(d){a(Ng(e+d*i,n,r))}function u(d){const h=d.target.value;if(h.endsWith("."))return;const m=Number(h);isNaN(m)||a(Ng(m,n,r))}return p.jsxs("div",{className:"flex flex-row mx-auto h-10 w-30 rounded border border-border overflow-hidden",children:[p.jsx("button",{type:"button",onClick:()=>l(-1),className:"font-semibold text-muted-foreground h-full w-8 flex bg-card border-r border-border cursor-pointer transition-colors hover:bg-muted hover:text-foreground focus:outline-none",children:p.jsx("span",{className:"mx-auto mt-[10%] text-lg font-bold",children:"-"})}),p.jsx("input",{type:"text",value:e,onChange:u,className:"w-14 p-1 text-base focus:outline-none text-center bg-background text-foreground"}),p.jsx("button",{type:"button",onClick:()=>l(1),className:"font-semibold text-muted-foreground h-full w-8 flex bg-card border-l border-border cursor-pointer transition-colors hover:bg-muted hover:text-foreground focus:outline-none",children:p.jsx("span",{className:"mx-auto mt-[10%] text-lg font-bold",children:"+"})})]})}function Wr({color:e,onChange:n}){const r=e&&e!==""?e:"#3b82f6";return p.jsx("div",{className:"flex flex-col items-center mx-auto rounded-lg overflow-hidden w-[40px] h-[40px] border-2 border-border",children:p.jsx("input",{type:"color",value:r.length===9?r.slice(0,7):r,onChange:i=>n(i.target.value),className:"w-[60px] h-[60px] -translate-x-[10px] -translate-y-[10px] cursor-pointer border-none bg-transparent",title:r})})}function tE(){var l;const e=Gn(u=>u.translations),n=Oe(u=>u.globalIconSettings),r=jt(u=>u.globalColorSettings),i=Oe.getState,a=jt.getState;return p.jsxs(Us,{name:e.globalStatusIconsSettings,icon:E4,color:"white",children:[p.jsx("div",{className:"flex justify-center mb-8",children:p.jsxs("div",{className:"w-50",children:[p.jsx("p",{className:"text-lg text-center mb-2",children:e.iconShape}),p.jsx(Ur,{values:Pg,value:n.shape??"circle-ring",onChange:u=>{i().updateAllShapes(u),a().updateAllIconShapeEditableColor(u)}})]})}),p.jsxs("div",{className:"mx-8",children:[p.jsx("p",{className:"text-sm font-semibold uppercase",style:{color:"hsl(var(--muted-foreground))",letterSpacing:"0.06em"},children:e.globalSizeAndPositionSection}),p.jsx("hr",{className:"mb-6",style:{borderColor:"hsl(var(--border))"}})]}),p.jsxs("div",{className:"mx-4 grid grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-6 items-end",children:[p.jsx(Je,{label:e.widthSize,children:p.jsx(Ae,{min:1,max:200,value:n.width??50,onChange:i().updateAllWidth})}),p.jsx(Je,{label:e.heightSize,children:p.jsx(Ae,{min:1,max:200,value:n.height??50,onChange:i().updateAllHeight})}),n.ringSize!=null&&p.jsx(Je,{label:e.ringSize,children:p.jsx(Ae,{min:1,max:25,step:.5,value:n.ringSize,onChange:i().updateAllRingSize})}),n.displayOutline!=null&&p.jsx(Je,{label:e.showProgressOutline,children:p.jsx(jo,{center:!0,checked:n.displayOutline,onChange:i().updateAllDisplayOutline})}),p.jsx(Je,{label:e.xAxisPosition,children:p.jsx(Ae,{min:-20,max:20,step:.25,value:n.translateX??0,onChange:i().updateAllTranslateX})}),p.jsx(Je,{label:e.yAxisPosition,children:p.jsx(Ae,{min:-20,max:20,step:.25,value:n.translateY??0,onChange:i().updateAllTranslateY})}),p.jsx(Je,{label:e.rotation,children:p.jsx(Ae,{min:0,max:360,value:n.rotateDegree??0,onChange:i().updateAllRotateDegree})}),p.jsx(Je,{label:e.iconXAxisPosition,children:p.jsx(Ae,{min:-10,max:10,step:.01,value:n.iconTranslateX??0,onChange:i().updateAllTranslateIconX})}),p.jsx(Je,{label:e.iconYAxisPosition,children:p.jsx(Ae,{min:-10,max:10,step:.01,value:n.iconTranslateY??0,onChange:i().updateAllTranslateIconY})}),p.jsx(Je,{label:e.iconSize,children:p.jsx(Ae,{min:0,max:3,step:.01,value:n.iconScaling??.4,onChange:i().updateAllIconScale})}),n.xAxisRound!=null&&p.jsx(Je,{label:e.xAxisCurve,children:p.jsx(Ae,{min:0,max:100,value:n.xAxisRound,onChange:i().updateAllRoundXAxis})}),n.yAxisRound!=null&&p.jsx(Je,{label:e.yAxisCurve,children:p.jsx(Ae,{min:0,max:100,value:n.yAxisRound,onChange:i().updateAllRoundYAxis})})]}),p.jsxs("div",{className:"mx-8 mt-8",children:[p.jsx("p",{className:"text-sm font-semibold uppercase",style:{color:"hsl(var(--muted-foreground))",letterSpacing:"0.06em"},children:e.globalColorSection}),p.jsx("hr",{style:{borderColor:"hsl(var(--border))"}})]}),p.jsxs("div",{className:"mx-4 mt-6 mb-10 grid grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-6",children:[p.jsx(Je,{label:e.progressColor,children:p.jsx(Wr,{color:r.progressColor,onChange:u=>a().updateAllDefaultEffectColorSetting("progressColor",u)})}),p.jsx(Je,{label:e.progressContrast,children:p.jsx(Ae,{min:0,max:300,value:r.progressContrast,onChange:u=>a().updateAllDefaultEffectColorSetting("progressContrast",u)})}),p.jsx(Je,{label:e.progressShadow,children:p.jsx(Ae,{min:0,max:20,value:r.progressDropShadowAmount,onChange:u=>a().updateAllDefaultEffectColorSetting("progressDropShadowAmount",u)})}),p.jsx(Je,{label:e.iconColor,children:p.jsx(Wr,{color:r.iconColor,onChange:u=>a().updateAllDefaultEffectColorSetting("iconColor",u)})}),p.jsx(Je,{label:e.iconContrast,children:p.jsx(Ae,{min:0,max:300,value:r.iconContrast,onChange:u=>a().updateAllDefaultEffectColorSetting("iconContrast",u)})}),p.jsx(Je,{label:e.iconShadow,children:p.jsx(Ae,{min:0,max:20,value:r.iconDropShadowAmount,onChange:u=>a().updateAllDefaultEffectColorSetting("iconDropShadowAmount",u)})}),p.jsx(Je,{label:e.outlineColor,children:p.jsx(Wr,{color:r.outlineColor,onChange:u=>a().updateAllDefaultEffectColorSetting("outlineColor",u)})}),p.jsx(Je,{label:e.outlineContrast,children:p.jsx(Ae,{min:0,max:300,value:r.outlineContrast,onChange:u=>a().updateAllDefaultEffectColorSetting("outlineContrast",u)})}),p.jsx(Je,{label:e.outlineShadow,children:p.jsx(Ae,{min:0,max:20,value:r.outlineDropShadowAmount,onChange:u=>a().updateAllDefaultEffectColorSetting("outlineDropShadowAmount",u)})}),((l=r.editableColors)==null?void 0:l.innerColor)&&p.jsx(Je,{label:e.innerColor,children:p.jsx(Wr,{color:r.innerColor,onChange:u=>a().updateAllDefaultEffectColorSetting("innerColor",u)})})]})]})}function Je({label:e,children:n}){return p.jsxs("div",{className:"flex flex-col mx-auto items-center",children:[p.jsx("p",{className:"text-base text-center mb-2",children:e}),n]})}const nE=["#FFFFFF","rgb(33, 171, 97)","#326dbf","#dd6e14","#1a7cad","rgb(220, 6, 6)","rgb(138, 168, 189)","rgb(255, 72, 133)","rgb(185, 255, 40)","#3FA554","rgb(182, 72, 255)","rgb(255, 72, 133)","#D64763","rgb(0, 0, 0)"];function rE(){var A;const e=Gn(k=>k.translations),n=Oe(k=>k.icons),r=jt(k=>k.icons),i=Oe.getState,a=jt.getState,[l,u]=v.useState("voice"),[d,h]=v.useState(0),m=n[l],y=r[l],x=(y==null?void 0:y.colorEffects)??[],b=x.map(k=>k.name),C=x[d]??x[0],N=Td.indexOf(l),E=nE[N]??"#FFFFFF";v.useEffect(()=>{jt.setState(k=>({globalColorSettings:{...k.globalColorSettings,editSingleIconName:l,editSingleIconStage:d}}))},[l,d]);function j(k){u(k),h(0)}return p.jsxs(Us,{name:e.singleStatusIconSettings,color:E,children:[p.jsxs("div",{className:"flex flex-row mb-8 mt-4",children:[p.jsx("div",{className:"flex-1",children:p.jsxs("div",{className:"max-w-50 ml-8",children:[p.jsx("p",{className:"text-lg text-center mb-2",children:e.iconStatusToEdit}),p.jsx(Ur,{values:[...Td],value:l,onChange:j})]})}),p.jsxs("div",{className:"w-50",children:[p.jsx("p",{className:"text-lg text-center mb-2",children:e.iconShape}),p.jsx(Ur,{values:Pg,value:(m==null?void 0:m.shape)??"circle-ring",onChange:k=>{i().updateIconShape(l,k),a().updateIconShapeEditableColor(l,k)}})]}),p.jsx("div",{className:"flex-1"})]}),p.jsxs("div",{className:"mx-8",children:[p.jsx("p",{className:"text-sm font-semibold uppercase",style:{color:"hsl(var(--muted-foreground))",letterSpacing:"0.06em"},children:e.singleIconSizeAndPositionSection}),p.jsx("hr",{className:"mb-6",style:{borderColor:"hsl(var(--border))"}})]}),p.jsxs("div",{className:"mx-4 grid grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-6 items-end",children:[p.jsx(Ze,{label:e.widthSize,children:p.jsx(Ae,{min:1,max:200,value:(m==null?void 0:m.width)??50,onChange:k=>i().updateIconSetting(l,"width",k)})}),p.jsx(Ze,{label:e.heightSize,children:p.jsx(Ae,{min:1,max:200,value:(m==null?void 0:m.height)??50,onChange:k=>i().updateIconSetting(l,"height",k)})}),(m==null?void 0:m.ringSize)!=null&&p.jsx(Ze,{label:e.ringSize,children:p.jsx(Ae,{min:1,max:25,step:.5,value:m.ringSize,onChange:k=>i().updateIconSetting(l,"ringSize",k)})}),(m==null?void 0:m.displayOutline)!=null&&p.jsx(Ze,{label:e.showProgressOutline,children:p.jsx(jo,{center:!0,checked:m.displayOutline,onChange:k=>i().updateIconSetting(l,"displayOutline",k)})}),p.jsx(Ze,{label:e.xAxisPosition,children:p.jsx(Ae,{min:-20,max:20,step:.25,value:(m==null?void 0:m.translateX)??0,onChange:k=>i().updateIconSetting(l,"translateX",k)})}),p.jsx(Ze,{label:e.yAxisPosition,children:p.jsx(Ae,{min:-20,max:20,step:.25,value:(m==null?void 0:m.translateY)??0,onChange:k=>i().updateIconSetting(l,"translateY",k)})}),p.jsx(Ze,{label:e.rotation,children:p.jsx(Ae,{min:0,max:360,value:(m==null?void 0:m.rotateDegree)??0,onChange:k=>i().updateIconSetting(l,"rotateDegree",k)})}),p.jsx(Ze,{label:e.iconXAxisPosition,children:p.jsx(Ae,{min:-10,max:10,step:.01,value:(m==null?void 0:m.iconTranslateX)??0,onChange:k=>i().updateIconSetting(l,"iconTranslateX",k)})}),p.jsx(Ze,{label:e.iconYAxisPosition,children:p.jsx(Ae,{min:-10,max:10,step:.01,value:(m==null?void 0:m.iconTranslateY)??0,onChange:k=>i().updateIconSetting(l,"iconTranslateY",k)})}),p.jsx(Ze,{label:e.iconSize,children:p.jsx(Ae,{min:0,max:3,step:.01,value:(m==null?void 0:m.iconScaling)??.4,onChange:k=>i().updateIconSetting(l,"iconScaling",k)})}),(m==null?void 0:m.xAxisRound)!=null&&p.jsx(Ze,{label:e.xAxisCurve,children:p.jsx(Ae,{min:0,max:100,value:m.xAxisRound,onChange:k=>i().updateIconSetting(l,"xAxisRound",k)})}),(m==null?void 0:m.yAxisRound)!=null&&p.jsx(Ze,{label:e.yAxisCurve,children:p.jsx(Ae,{min:0,max:100,value:m.yAxisRound,onChange:k=>i().updateIconSetting(l,"yAxisRound",k)})})]}),p.jsxs("div",{className:"mx-8 mt-8",children:[p.jsx("p",{className:"text-sm font-semibold uppercase",style:{color:"hsl(var(--muted-foreground))",letterSpacing:"0.06em"},children:e.singleIconColorSection}),p.jsx("hr",{style:{borderColor:"hsl(var(--border))"}})]}),b.length>1&&p.jsx("div",{className:"flex flex-row justify-center mt-4",children:p.jsxs("div",{className:"w-50",children:[p.jsx("p",{className:"text-lg text-center mb-2",children:e.iconState}),p.jsx(Ur,{values:b,value:b[d]??b[0],onChange:k=>h(b.indexOf(k))})]})}),C&&p.jsxs("div",{className:"mx-4 mt-6 mb-10 grid grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-6",children:[p.jsx(Ze,{label:e.progressColor,children:p.jsx(Wr,{color:C.progressColor,onChange:k=>a().updateColorSetting(l,d,"progressColor",k)})}),p.jsx(Ze,{label:e.progressContrast,children:p.jsx(Ae,{min:0,max:300,value:C.progressContrast,onChange:k=>a().updateColorSetting(l,d,"progressContrast",k)})}),p.jsx(Ze,{label:e.progressShadow,children:p.jsx(Ae,{min:0,max:20,value:C.progressDropShadowAmount,onChange:k=>a().updateColorSetting(l,d,"progressDropShadowAmount",k)})}),p.jsx(Ze,{label:e.iconColor,children:p.jsx(Wr,{color:C.iconColor,onChange:k=>a().updateColorSetting(l,d,"iconColor",k)})}),p.jsx(Ze,{label:e.iconContrast,children:p.jsx(Ae,{min:0,max:300,value:C.iconContrast,onChange:k=>a().updateColorSetting(l,d,"iconContrast",k)})}),p.jsx(Ze,{label:e.iconShadow,children:p.jsx(Ae,{min:0,max:20,value:C.iconDropShadowAmount,onChange:k=>a().updateColorSetting(l,d,"iconDropShadowAmount",k)})}),p.jsx(Ze,{label:e.outlineColor,children:p.jsx(Wr,{color:C.outlineColor,onChange:k=>a().updateColorSetting(l,d,"outlineColor",k)})}),p.jsx(Ze,{label:e.outlineContrast,children:p.jsx(Ae,{min:0,max:300,value:C.outlineContrast,onChange:k=>a().updateColorSetting(l,d,"outlineContrast",k)})}),p.jsx(Ze,{label:e.outlineShadow,children:p.jsx(Ae,{min:0,max:20,value:C.outlineDropShadowAmount,onChange:k=>a().updateColorSetting(l,d,"outlineDropShadowAmount",k)})}),((A=y==null?void 0:y.editableColors)==null?void 0:A.innerColor)&&p.jsx(Ze,{label:e.innerColor,children:p.jsx(Wr,{color:C.innerColor,onChange:k=>a().updateColorSetting(l,d,"innerColor",k)})})]})]})}function Ze({label:e,children:n}){return p.jsxs("div",{className:"flex flex-col mx-auto items-center",children:[p.jsx("p",{className:"text-base text-center mb-2",children:e}),n]})}function oE(){const e=Gn(u=>u.translations),n=pt(u=>u.layout),r=pt(u=>u.iconBetweenSpacing),i=pt(u=>u.yAxisSpacing),a=pt(u=>u.xAxisSpacing),l=pt.getState;return p.jsx(Us,{name:e.globalStatusIconLayoutSettings,icon:R4,color:"white",children:p.jsxs("div",{className:"text-sm flex flex-col",style:{color:"hsl(var(--muted-foreground))"},children:[p.jsx("div",{className:"flex justify-center mb-4",children:p.jsxs("div",{className:"w-55",children:[p.jsx("p",{className:"text-lg text-center mb-2",children:e.iconLayout}),p.jsx(Ur,{values:[...d4],value:n,onChange:u=>l().updateLayout(u)})]})}),p.jsxs("div",{className:"mx-4 grid grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-6 items-end mb-8",children:[p.jsxs("div",{children:[p.jsx("p",{className:"text-base text-center mb-2",children:e.betweenIconSpacing}),p.jsx(Ae,{min:-100,max:200,value:r,onChange:u=>pt.setState({iconBetweenSpacing:u})})]}),p.jsxs("div",{children:[p.jsx("p",{className:"text-base text-center mb-2",children:e.yAxisSpacing}),p.jsx(Ae,{min:-100,max:500,value:i,onChange:u=>pt.setState({yAxisSpacing:u})})]}),p.jsxs("div",{children:[p.jsx("p",{className:"text-base text-center mb-2",children:e.xAxisSpacing}),p.jsx(Ae,{min:-100,max:500,value:a,onChange:u=>pt.setState({xAxisSpacing:u})})]})]})]})})}function iE(){const e=Gn(n=>n.translations);return p.jsx(Us,{name:e.utilityFunctions,icon:O4,color:"white",children:p.jsx("div",{className:"flex flex-row mx-4",children:p.jsx(Cn,{name:e.copyProgressColorsToIconsColors,className:"h-15 w-55 whitespace-normal text-center",onClick:()=>jt.getState().updateIconColorToProgressColor()})})})}function sE({value:e,onChange:n,onBlur:r}){return p.jsx(F2,{type:"text",value:e,onChange:i=>n(i.target.value),onBlur:r,autoFocus:!0,className:"text-center"})}function aE(){const e=Gn(m=>m.translations),n=Dd(m=>m.profiles),{addNewProfile:r,saveHUDToProfile:i,applyProfileToHud:a,deleteProfile:l,renameProfile:u}=Dd.getState(),[d,h]=v.useState(null);return p.jsx(Us,{name:e.customizationProfiles,icon:_g,color:"white",children:p.jsxs("div",{className:"mx-4 grid grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-8 items-center",children:[n.map((m,y)=>p.jsxs("div",{className:"flex flex-col justify-end items-center border-2 p-3 border-border rounded-lg my-3",children:[d===y?p.jsx(sE,{value:m.name,onChange:x=>u(y,x),onBlur:()=>h(null)}):p.jsx("p",{className:"text-xl font-semibold text-center cursor-pointer",onClick:()=>h(y),children:m.name}),p.jsx(Cn,{name:e.saveHudToProfile,onClick:()=>i(y)}),p.jsx(Cn,{name:e.applyProfileToHud,onClick:()=>a(y)}),p.jsx(Cn,{name:e.deleteProfile,className:"hover:bg-red-600",onClick:()=>l(y)})]},y)),n.length<6&&p.jsx("div",{className:"flex flex-col",children:p.jsx(Cn,{name:e.addNewProfile,className:"w-[100px]",onClick:r})})]})})}function lE(){const e=Gn(l=>l.translations),n=Oe(l=>l.designMode),r=Oe(l=>l.saveUIState),i=Me(l=>l.adminOnly),a=Me(l=>l.isAdmin);return p.jsxs("div",{className:"text-sm flex flex-col select-none",style:{color:"hsl(var(--muted-foreground))"},children:[p.jsxs("div",{className:"my-3 flex flex-row items-center",style:{color:"hsl(var(--foreground))"},children:[p.jsx("div",{className:"flex-1 flex flex-col justify-center min-w-min",children:p.jsx("p",{className:"ml-3 p-0",children:e.statusIconsSettings})}),p.jsxs("div",{className:"text-base",children:[p.jsx("p",{children:e.designMode}),p.jsx(jo,{center:!0,checked:n,onChange:l=>Oe.setState({designMode:l})})]}),p.jsxs("div",{className:"flex flex-1 min-w-min justify-end gap-2",children:[p.jsx(Cn,{name:e.resetStatusIconSettings,className:"mr-5 hover:bg-red-600",onClick:()=>{Oe.getState().resetPlayerStatusIcons(),jt.getState().resetColorEffects(),pt.getState().resetLayout()}}),i&&a&&p.jsx(Cn,{name:e.saveChangesToServer,disabled:r!=="ready",onClick:()=>{h2(),Oe.setState({saveUIState:"updating"})}})]})]}),p.jsx("hr",{style:{borderColor:"hsl(var(--border))"}}),p.jsx(tE,{}),p.jsx("hr",{style:{borderColor:"hsl(var(--border))"}}),p.jsx(rE,{}),p.jsx("hr",{style:{borderColor:"hsl(var(--border))"}}),p.jsx(oE,{}),p.jsx("hr",{style:{borderColor:"hsl(var(--border))"}}),p.jsx(iE,{}),p.jsx("hr",{style:{borderColor:"hsl(var(--border))"}}),p.jsx(aE,{})]})}const cE=[{key:"hud",labelKey:"generalTab",icon:L4,adminOnly:!1,content:eE},{key:"status",labelKey:"customizationTab",icon:b4,adminOnly:!0,content:lE}];function uE(){const e=Me(N=>N.show),n=Me(N=>N.adminOnly),r=Me(N=>N.isAdmin),i=Gn(N=>N.translations),[a,l]=v.useState("hud"),u=v.useRef({x:Math.round(window.innerWidth/5),y:Math.round(window.innerHeight/5)}),[d,h]=v.useState(u.current),m=v.useRef(!1),y=v.useRef({mx:0,my:0,ox:0,oy:0}),x=v.useCallback(N=>{m.current=!0,y.current={mx:N.clientX,my:N.clientY,ox:u.current.x,oy:u.current.y};const E=A=>{if(!m.current)return;const k=y.current.ox+(A.clientX-y.current.mx),M=y.current.oy+(A.clientY-y.current.my);u.current={x:k,y:M},h({x:k,y:M})},j=()=>{m.current=!1,window.removeEventListener("mousemove",E),window.removeEventListener("mouseup",j)};window.addEventListener("mousemove",E),window.addEventListener("mouseup",j)},[]);if(!e)return null;const b=cE.filter(N=>!N.adminOnly||!n||n&&r),C=b.find(N=>N.key===a)??b[0];return p.jsxs("section",{className:"w-[60vw] h-[60vh] flex flex-col rounded-t-2xl text-foreground bg-background/95 border border-primary/25 shadow-[0_8px_32px_rgba(0,0,0,0.7)]",style:{position:"fixed",left:d.x,top:d.y,zIndex:90},children:[p.jsx("div",{className:"drag-bar rounded-t-2xl select-none bg-card/80 border-b border-primary/20",onMouseDown:x,style:{cursor:"grab"},children:p.jsx("svg",{role:"img","aria-label":"drag handle",viewBox:"0 0 24 24",height:24,width:24,className:"mx-auto text-primary/60",style:{opacity:.4},children:p.jsx("path",{fill:"currentColor",d:"M3,15V13H5V15H3M3,11V9H5V11H3M7,15V13H9V15H7M7,11V9H9V11H7M11,15V13H13V15H11M11,11V9H13V11H11M15,15V13H17V15H15M15,11V9H17V11H15M19,15V13H21V15H19M19,11V9H21V11H19Z"})})}),p.jsxs("div",{className:"flex font-semibold",style:{height:"calc(100% - 24px)"},children:[p.jsx("div",{className:"flex flex-col w-1/6 bg-card/90 border-r border-primary/20",children:b.map(N=>{const E=N.icon.icon[0],j=N.icon.icon[1],A=N.icon.icon[4],k=C.key===N.key;return p.jsxs("div",{className:`px-4 py-4 flex flex-row gap-3 cursor-pointer select-none transition-colors border-l-2 ${k?"bg-primary/15 border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:bg-muted/50"}`,onClick:()=>l(N.key),children:[p.jsx("svg",{width:"16",height:"16",viewBox:`0 0 ${E} ${j}`,className:"shrink-0 mt-0.5",children:p.jsx("path",{d:A,fill:"currentColor"})}),p.jsx("span",{children:i[N.labelKey]})]},N.key)})}),b.map(N=>p.jsx("div",{className:"flex-col w-5/6 px-5 overflow-y-scroll bg-background/60",style:{display:C.key===N.key?"flex":"none"},children:p.jsx(N.content,{})},N.key))]})]})}function dE(){const e=He(r=>r.show),n=Pe(r=>r.elements.minimap);return v.useEffect(()=>{const r=(n==null?void 0:n.dx)??0,i=(n==null?void 0:n.dy)??0;$e("minimapPosition",{x:r/window.innerWidth,y:i/window.innerHeight})},[n==null?void 0:n.dx,n==null?void 0:n.dy]),!e&&!zt?null:p.jsx(lt,{id:"minimap",label:"Minimapa",zIndex:8,children:p.jsx("div",{style:{position:"absolute",bottom:"7.9%",left:"1.3%",width:0,textAlign:"center"},children:p.jsx("div",{"aria-hidden":!0,style:{bottom:"6.30%",width:"29vh",height:"18.5vh",position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"},children:zt})})})}function fE(){const e=Br(A=>A.show),n=Br(A=>A.heading),r=Br(A=>A.streetName),i=Br(A=>A.crossingRoad),a=Me(A=>A.isShowCompassChecked),l=Me(A=>A.isShowStreetsChecked),u=Me(A=>A.isPointerShowChecked),d=Pe(A=>A.active),h=fr(A=>A.theme),m=He(A=>A.show),[y,x]=v.useState(n),b=v.useRef(n),C=v.useRef(0),N=v.useRef(0),E=v.useRef(n),j=v.useRef(n);return v.useEffect(()=>{const A=b.current;if(A>230&&n<-50||A<-50&&n>230){x(n),E.current=n,j.current=n,b.current=n;return}b.current=n,E.current=y,j.current=n,N.current=performance.now(),cancelAnimationFrame(C.current);const M=600;function P(L){const H=L-N.current,_=Math.min(H/M,1),F=E.current+(j.current-E.current)*_;x(F),_<1&&(C.current=requestAnimationFrame(P))}return C.current=requestAnimationFrame(P),()=>cancelAnimationFrame(C.current)},[n]),!e&&!zt&&!d||h==="digital"&&m&&!d?null:p.jsx(lt,{id:"compassHud",label:"Bússola",zIndex:12,children:p.jsxs("div",{style:{position:"absolute",margin:"0 auto",left:0,right:0,top:"-0.8vh",width:150,height:"auto"},children:[(l||zt)&&p.jsxs("div",{style:{position:"relative",top:"1.3vh",fontFamily:"Arial, Helvetica, sans-serif",fontSize:"1.4vh",letterSpacing:"0.7px",fontVariant:"small-caps",fontWeight:800,textShadow:"0 0 1px rgba(0,0,0,0.6), 0 0 1px rgba(0,0,0,0.6), 0 0 1px rgba(0,0,0,0.6), 0 0 1px rgba(0,0,0,0.6)"},children:[p.jsx("div",{style:{position:"absolute",right:"135%",whiteSpace:"nowrap",color:"rgb(255,255,255)"},children:r}),p.jsx("div",{style:{position:"absolute",left:"135%",whiteSpace:"nowrap",color:"rgb(255,255,255)"},children:i})]}),p.jsxs("div",{style:{position:"relative"},children:[u&&p.jsx("div",{style:{position:"absolute",margin:"0 auto",top:"-2%",left:0,right:0,fontFamily:"'Yantramanav', sans-serif",color:"rgb(255,255,255)",fontSize:"2.2vh",textAlign:"center",textShadow:"0 0 1px rgba(0,0,0,0.6), 0 0 1px rgba(0,0,0,0.6), 0 0 1px rgba(0,0,0,0.6), 0 0 1px rgba(0,0,0,0.6)",zIndex:1},children:"˅"}),(a||zt)&&p.jsxs(p.Fragment,{children:[p.jsxs("svg",{style:{position:"relative",width:"100%",height:"2vh",fontFamily:"'Yantramanav', sans-serif",fontSize:"0.35vh",fontWeight:700},viewBox:`${y} 0 180 5`,children:[p.jsx("rect",{width:"3",stroke:"black",fill:"white",strokeWidth:"0.5",strokeOpacity:"0.6",height:"20",x:"-90"}),p.jsx("rect",{width:"3",stroke:"black",fill:"white",strokeWidth:"0.5",strokeOpacity:"0.6",height:"9",x:"-45"}),p.jsx("rect",{width:"4.5",stroke:"black",fill:"white",strokeWidth:"0.5",strokeOpacity:"0.6",height:"20",x:"0"}),p.jsx("rect",{width:"3",stroke:"black",fill:"white",strokeWidth:"0.5",strokeOpacity:"0.6",height:"9",x:"45"}),p.jsx("rect",{width:"4.5",stroke:"black",fill:"white",strokeWidth:"0.5",strokeOpacity:"0.6",height:"20",x:"90"}),p.jsx("rect",{width:"3",stroke:"black",fill:"white",strokeWidth:"0.5",strokeOpacity:"0.6",height:"9",x:"135"}),p.jsx("rect",{width:"4.5",stroke:"black",fill:"white",strokeWidth:"0.5",strokeOpacity:"0.6",height:"20",x:"180"}),p.jsx("rect",{width:"3",stroke:"black",fill:"white",strokeWidth:"0.5",strokeOpacity:"0.6",height:"9",x:"225"}),p.jsx("rect",{width:"4.5",stroke:"black",fill:"white",strokeWidth:"0.5",strokeOpacity:"0.6",height:"20",x:"270"}),p.jsx("rect",{width:"3",stroke:"black",fill:"white",strokeWidth:"0.5",strokeOpacity:"0.6",height:"9",x:"315"}),p.jsx("rect",{width:"4.5",stroke:"black",fill:"white",strokeWidth:"0.5",strokeOpacity:"0.6",height:"20",x:"360"}),p.jsx("rect",{width:"3",stroke:"black",fill:"white",strokeWidth:"0.5",strokeOpacity:"0.6",height:"9",x:"405"}),p.jsx("rect",{width:"3",stroke:"black",fill:"white",strokeWidth:"0.5",strokeOpacity:"0.6",height:"20",x:"450"})]}),p.jsxs("svg",{style:{position:"relative",width:"100%",top:"-0.5vh",height:"3.5vh",paddingLeft:"0.12vw",fontFamily:"Arial, Helvetica, sans-serif",fontSize:"2vh",letterSpacing:"0.7px",fontVariant:"small-caps",fontWeight:600},viewBox:`${y} 0 180 1.5`,children:[p.jsx("text",{x:"0",y:"1.5",dominantBaseline:"middle",textAnchor:"middle",fill:"yellow",children:"N"}),p.jsx("text",{x:"360",y:"1.5",dominantBaseline:"middle",textAnchor:"middle",fill:"yellow",children:"N"}),p.jsx("text",{x:"315",y:"-11",dominantBaseline:"middle",textAnchor:"middle",fill:"white",fontSize:"1.4vh",fontWeight:"800",children:"NW"}),p.jsx("text",{x:"-45",y:"-11",dominantBaseline:"middle",textAnchor:"middle",fill:"white",fontSize:"1.4vh",fontWeight:"800",children:"NW"}),p.jsx("text",{x:"45",y:"-11",dominantBaseline:"middle",textAnchor:"middle",fill:"white",fontSize:"1.4vh",fontWeight:"800",children:"NE"}),p.jsx("text",{x:"405",y:"-11",dominantBaseline:"middle",textAnchor:"middle",fill:"white",fontSize:"1.4vh",fontWeight:"800",children:"NE"}),p.jsx("text",{x:"90",y:"1.5",dominantBaseline:"middle",textAnchor:"middle",fill:"white",children:"E"}),p.jsx("text",{x:"135",y:"-11",dominantBaseline:"middle",textAnchor:"middle",fill:"white",fontSize:"1.4vh",fontWeight:"800",children:"SE"}),p.jsx("text",{x:"180",y:"1.5",dominantBaseline:"middle",textAnchor:"middle",fill:"white",children:"S"}),p.jsx("text",{x:"225",y:"-11",dominantBaseline:"middle",textAnchor:"middle",fill:"white",fontSize:"1.4vh",fontWeight:"800",children:"SW"}),p.jsx("text",{x:"270",y:"1.5",dominantBaseline:"middle",textAnchor:"middle",fill:"white",children:"W"})]})]})]})]})})}function pE(){const e=bn(h=>h.cash),n=bn(h=>h.bank),r=bn(h=>h.show),i=bn(h=>h.showConstant),a=bn(h=>h.isPlus),l=bn(h=>h.isMinus),d={fontFamily:"'Pricedown Bl', sans-serif",textAlign:"right",textShadow:"-1px -1px 0 rgba(0,0,0,0.7), 1px -1px 0 rgba(0,0,0,0.7), -1px 1px 0 rgba(0,0,0,0.7), 1px 1px 0 rgba(0,0,0,0.7)"};return p.jsx(lt,{id:"moneyHud",label:"Dinheiro",zIndex:12,children:p.jsxs("div",{style:{position:"absolute",right:"2vw",top:"5vh",fontWeight:400,fontSize:40},children:[(r||i)&&p.jsxs("p",{children:[p.jsx("span",{style:{...d,color:"#00ac31"},children:"$ "}),p.jsx("span",{style:{...d,color:"#ffffff"},children:e})]}),(r||i)&&p.jsxs("p",{children:[p.jsx("span",{style:{...d,color:"#00ac31"},children:"$ "}),p.jsx("span",{style:{...d,color:"#00ac31"},children:n})]}),r&&a&&p.jsxs("p",{children:[p.jsx("span",{style:{...d,fontSize:50,color:"#00ac31"},children:"+ "}),p.jsx("span",{style:{...d,color:"#ffffff"},children:e})]}),r&&l&&p.jsxs("p",{children:[p.jsx("span",{style:{...d,fontSize:50,color:"#ac0000"},children:"- "}),p.jsx("span",{style:{...d,color:"#ffffff"},children:e})]})]})})}function Bn(e){return p.jsx(ux,{...e})}function Qt({style:e,children:n}){const r=v.useContext(Qx);return p.jsx("div",{style:e,children:p.jsx("div",{style:{display:"inline-block",transform:r!==1?`scale(${r})`:void 0,transformOrigin:"center"},children:n})})}function wf(e,n=120,r=.3){const[i,a]=v.useState(e),l=v.useRef(e),u=v.useRef(e),d=v.useRef(null);return u.current=e,v.useEffect(()=>{let h=0;const m=y=>{const x=d.current??y;d.current=y;const b=y-x,C=l.current,N=u.current,E=N-C,j=Math.abs(E)<=r?N:C+E*(1-Math.exp(-b/n));j!==C&&(l.current=j,a(j)),h=requestAnimationFrame(m)};return h=requestAnimationFrame(m),()=>{cancelAnimationFrame(h),d.current=null}},[n,r]),i}const It="'Chakra Petch', 'Yantramanav', sans-serif",hE=8e3,Jx="#ffc24d",E0="#ff5a52",mE=[9,11,13,15,17,19,21,23,25,27];function vi(e,n,r){return Math.max(n,Math.min(r,e))}function Mg(e,n){return e>50?n:e>22?Jx:E0}function gE(e,n){const[r,i]=v.useState(0),a=v.useRef(e);a.current=e;const l=v.useRef(e),u=v.useRef(0);return v.useEffect(()=>{let d=0,h=performance.now();const m=y=>{const x=(y-h)/1e3;if(h=y,x>0){const b=(a.current-l.current)/x;l.current=a.current;const C=vi(b/n*100*4,0,100);u.current+=(C-u.current)*(1-Math.exp(-x/.18)),i(u.current)}d=requestAnimationFrame(m)};return d=requestAnimationFrame(m),()=>cancelAnimationFrame(d)},[n]),r}function yE(){const e=He(P=>P.show),n=He(P=>P.speed),r=wf(n,70),i=He(P=>P.fuel),a=He(P=>P.engine),l=He(P=>P.rpm),u=wf(l,90),d=He(P=>P.gear),h=He(P=>P.heading),m=He(P=>P.showSeatBelt),y=He(P=>P.useMPH),x=Rf(P=>P.accentColor),b=fr(P=>P.variant),C=ur(P=>P.show),N=Dn(P=>P.show),E=Pe(P=>P.active),j=y?120:200,A=gE(r,j);if(!e&&!zt&&!E||(C||N)&&!E&&!zt)return null;const k=((360-h)%360+360)%360,M={speed:r,speedInt:Math.round(r),speedMax:j,speedUnit:y?"MPH":"KM/H",fuel:vi(Math.round(i),0,100),eng:vi(Math.round(a),0,100),boost:Math.round(A),rpm:u,gear:d,bearing:k,beltOn:!m,accent:x,variant:b};return p.jsxs(p.Fragment,{children:[p.jsx(yo,{id:"digitalCompass",label:"Bússola",left:"50%",bottom:230,children:p.jsx(CE,{bearing:M.bearing,accent:M.accent})}),p.jsx(yo,{id:"digitalSpeedo",label:"Velocímetro",left:"50%",bottom:90,children:p.jsx(vE,{variant:M.variant,speedInt:M.speedInt,frac:vi(M.speed/M.speedMax,0,1),unit:M.speedUnit,accent:M.accent})}),p.jsx(yo,{id:"digitalFuel",label:"Combustível",left:"calc(50% - 200px)",bottom:108,children:p.jsx(Od,{value:M.fuel,label:"FUEL",height:78,color:Mg(M.fuel,M.accent)})}),p.jsx(yo,{id:"digitalEngine",label:"Motor",left:"calc(50% - 158px)",bottom:108,children:p.jsx(Od,{value:M.eng,label:"ENG",height:78,color:Mg(M.eng,M.accent)})}),p.jsx(yo,{id:"digitalTurbo",label:"Turbo",left:"calc(50% + 178px)",bottom:122,children:p.jsx(Od,{value:M.boost,label:"TURBO",height:60,color:M.accent,glow:!0})}),p.jsx(yo,{id:"digitalBelt",label:"Cinto",left:"calc(50% + 178px)",bottom:92,canResize:!1,children:p.jsx(xE,{on:M.beltOn,accent:M.accent})}),p.jsx(yo,{id:"digitalTach",label:"Tacômetro",left:"50%",bottom:50,children:p.jsx(wE,{rpm:M.rpm,gear:M.gear,accent:M.accent})})]})}function yo({id:e,label:n,left:r,bottom:i,canResize:a=!0,children:l}){return p.jsx(lt,{id:e,label:n,zIndex:10,canResize:a,children:p.jsx(Qt,{style:{position:"fixed",left:r,bottom:i,transform:"translateX(-50%)",pointerEvents:"none",fontFamily:It},children:l})})}function vE({variant:e,speedInt:n,frac:r,unit:i,accent:a}){const l="0 0 22px rgba(70,224,255,0.32)",u="rgba(255,255,255,0.07)";if(e==="linear")return p.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:11,width:280},children:[p.jsxs("div",{style:{display:"flex",alignItems:"baseline",gap:11},children:[p.jsx("div",{style:{font:`600 72px ${It}`,color:"#fff",lineHeight:.78,textShadow:l},children:n}),p.jsx("div",{style:{font:`500 11px ${It}`,letterSpacing:"0.3em",color:"rgba(255,255,255,0.5)"},children:i})]}),p.jsxs("div",{style:{position:"relative",width:"100%",height:6,borderRadius:4,background:"rgba(255,255,255,0.08)",overflow:"hidden"},children:[p.jsx("div",{style:{position:"absolute",left:0,top:0,bottom:0,borderRadius:4,width:`${r*100}%`,background:a,boxShadow:`0 0 12px ${a}`}}),p.jsx("div",{style:{position:"absolute",inset:0,backgroundImage:"repeating-linear-gradient(90deg, rgba(8,11,15,0.85) 0 1px, transparent 1px 26px)"}})]})]});if(e==="arc"){const x=Math.PI*120,b="M 20 140 A 120 120 0 0 1 260 140";return p.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[p.jsxs("svg",{width:280,height:146,viewBox:"0 0 280 146",style:{overflow:"visible"},children:[p.jsx("path",{d:b,fill:"none",stroke:u,strokeWidth:28,strokeLinecap:"butt"}),p.jsx("path",{d:b,fill:"none",stroke:a,strokeWidth:28,strokeLinecap:"butt",strokeDasharray:x,strokeDashoffset:x*(1-r)})]}),p.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",marginTop:-62},children:[p.jsx("div",{style:{font:`600 56px ${It}`,color:"#fff",lineHeight:.85,textShadow:l},children:n}),p.jsx("div",{style:{font:`500 10px ${It}`,letterSpacing:"0.32em",color:"rgba(255,255,255,0.5)",marginTop:5},children:i})]})]})}return p.jsxs("div",{style:{position:"relative",width:206,height:206},children:[p.jsx("div",{style:{position:"absolute",inset:0,borderRadius:"50%",background:`conic-gradient(${a} ${r*100}%, ${u} 0)`,WebkitMask:"radial-gradient(circle, transparent 80px, #000 81px)",mask:"radial-gradient(circle, transparent 80px, #000 81px)"}}),p.jsx("div",{style:{position:"absolute",inset:16,borderRadius:"50%",border:"1px solid rgba(255,255,255,0.05)"}}),p.jsxs("div",{style:{position:"absolute",inset:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[p.jsx("div",{style:{font:`600 60px ${It}`,color:"#fff",lineHeight:.85,textShadow:l},children:n}),p.jsx("div",{style:{font:`500 10px ${It}`,letterSpacing:"0.32em",color:"rgba(255,255,255,0.5)",marginTop:7},children:i})]})]})}function Od({value:e,label:n,height:r,color:i,glow:a=!1}){return p.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:7},children:[p.jsx("div",{style:{font:`600 10px ${It}`,color:"#fff"},children:e}),p.jsx("div",{style:{position:"relative",width:7,height:r,borderRadius:5,background:"rgba(255,255,255,0.08)",overflow:"hidden"},children:p.jsx("div",{style:{position:"absolute",left:0,right:0,bottom:0,height:`${vi(e,0,100)}%`,background:i,borderRadius:5,boxShadow:a?`0 0 8px ${i}`:void 0,transition:"height 0.12s ease-out"}})}),p.jsx("div",{style:{font:`500 9px ${It}`,letterSpacing:"0.16em",color:"rgba(255,255,255,0.45)"},children:n})]})}function xE({on:e,accent:n}){const r=e?n:E0;return p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"5px 9px",borderRadius:20,background:e?"rgba(70,224,255,0.1)":"rgba(255,90,82,0.12)",border:`1px solid ${e?"rgba(70,224,255,0.32)":"rgba(255,90,82,0.4)"}`},children:[p.jsx("div",{style:{width:6,height:6,borderRadius:"50%",background:r,boxShadow:`0 0 8px ${r}`}}),p.jsx("div",{style:{font:`600 9px ${It}`,letterSpacing:"0.16em",color:r},children:"BELT"})]})}function wE({rpm:e,gear:n,accent:r}){const i=Math.round(vi(e/hE,0,1)*10),a=n>0?String(n):"N";return p.jsxs("div",{style:{display:"flex",alignItems:"flex-end",gap:16},children:[p.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",lineHeight:1},children:[p.jsx("div",{style:{font:`700 22px ${It}`,color:"#fff"},children:a}),p.jsx("div",{style:{font:`500 8px ${It}`,letterSpacing:"0.2em",color:"rgba(255,255,255,0.4)",marginTop:3},children:"GEAR"})]}),p.jsx("div",{style:{display:"flex",alignItems:"flex-end",gap:3,height:28},children:mE.map((l,u)=>{const d=u=8?E0:u>=7?Jx:r:"rgba(255,255,255,0.10)";return p.jsx("div",{style:{width:5,borderRadius:2,height:l,background:d}},u)})}),p.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",lineHeight:1},children:[p.jsx("div",{style:{font:`600 16px ${It}`,color:"#fff"},children:Math.round(e)}),p.jsx("div",{style:{font:`500 8px ${It}`,letterSpacing:"0.2em",color:"rgba(255,255,255,0.4)",marginTop:3},children:"RPM"})]})]})}const bE={0:"N",45:"NE",90:"E",135:"SE",180:"S",225:"SW",270:"W",315:"NW"},SE=(()=>{const e=[];for(let n=0;n<=720;n+=15){const r=n%45===0;e.push({left:n*3,h:r?12:6,col:r?"rgba(255,255,255,0.72)":"rgba(255,255,255,0.20)",label:r&&bE[n%360]||""})}return e})();function CE({bearing:e,accent:n}){const r=118-e*3;return p.jsxs("svg",{width:236,height:34,viewBox:"0 0 236 34",style:{overflow:"hidden",display:"block"},children:[p.jsx("g",{transform:`translate(${r} 0)`,children:SE.map((i,a)=>p.jsxs("g",{children:[p.jsx("rect",{x:i.left-.5,y:34-i.h,width:1,height:i.h,fill:i.col}),i.label&&p.jsx("text",{x:i.left,y:13,textAnchor:"middle",fill:i.col,style:{font:`600 10px ${It}`},children:i.label})]},a))}),p.jsx("line",{x1:118,y1:7,x2:118,y2:34,stroke:n,strokeOpacity:.7,strokeWidth:1}),p.jsx("polygon",{points:"113,0 123,0 118,6",fill:n})]})}function kE(){return fr(n=>n.theme)==="digital"?p.jsx(yE,{}):p.jsx(jE,{})}function jE(){const e=He(j=>j.show),n=He(j=>j.speed),r=wf(n,70),i=He(j=>j.fuel),a=He(j=>j.odometer),l=He(j=>j.fuelColor),u=He(j=>j.showSeatBelt),d=He(j=>j.seatbeltColor),h=He(j=>j.useMPH),m=ur(j=>j.show),y=Dn(j=>j.show),x=Pe(j=>j.active);if(!e&&!zt&&!x)return null;const b=h?120:200,C=h?"mph":"km/h",N=20,E=a>0?`${a.toLocaleString("pt-BR")} ${h?"mi":"km"}`:void 0;return p.jsxs(p.Fragment,{children:[p.jsx(lt,{id:"speedometer",label:"Velocímetro",zIndex:10,children:p.jsx(Qt,{style:{position:"fixed",bottom:"12.21vh",left:"17.69vw",pointerEvents:"none"},children:p.jsx(Bn,{size:140,value:r,minValue:0,maxValue:b,arcLength:75,rotation:225,majorTickInterval:N,minorTickCount:4,ringSize:5,color:"#ffffff",outlineColor:"#ffffff",outlineOpacity:.22,needleStyle:"needle",showValue:!0,unit:C,label:"SPEED",odometer:E})})}),(!m&&!y||x||zt)&&p.jsx(lt,{id:"fuelgauge",label:"Combustível",zIndex:10,children:p.jsx(Qt,{style:{position:"fixed",bottom:"6.44vh",left:"22.61vw",pointerEvents:"none"},children:p.jsx(Bn,{size:88,value:i,minValue:0,maxValue:100,arcLength:75,rotation:225,majorTickInterval:25,minorTickCount:1,ringSize:4,color:l,outlineColor:l,outlineOpacity:.28,needleStyle:"needle",showValue:!0,unit:"%",label:"FUEL"})})}),u&&p.jsx(lt,{id:"seatbelt",label:"Cinto",zIndex:10,canResize:!1,children:p.jsx("div",{style:{position:"fixed",bottom:"8.09vh",left:"17.91vw",pointerEvents:"none"},children:p.jsx(EE,{color:d})})})]})}function EE({color:e}){const n=Mf,r=n.icon[4],i=n.icon[0],a=n.icon[1];return p.jsx("svg",{width:"22",height:"22",viewBox:`0 0 ${i} ${a}`,overflow:"visible",children:p.jsx("path",{d:r,fill:e,transform:"scale(1.1)"})})}function NE({icon:e,...n}){return p.jsx(Zv,{...n,icon:e?px(e):null})}function ME({cfg:e,value:n,icon:r}){const i=Pe(U=>U.active),a=Pe(U=>U.permissions.dynamicGauges),l=Pe(U=>U.gaugeOverrides[e.id]),u=Pe(U=>U.setGaugePosition),d=Pe(U=>U.setGaugeVisibility),h=Pe(U=>U.rescaleGauge),m=Pe(U=>U.resetGauge),y=(a==null?void 0:a.canMove)??!0,x=(a==null?void 0:a.canHide)??!0,b=(a==null?void 0:a.canResize)??!0,C=(l==null?void 0:l.isShowing)!==!1,N=(l==null?void 0:l.x)!=null||(l==null?void 0:l.y)!=null,E=(l==null?void 0:l.scale)??1,j=Math.round(e.size*E),A=Math.abs(E-1)>.005,[k,M]=v.useState(null),[P,L]=v.useState(!1),H=v.useRef({startMouseX:0,startMouseY:0,startCfgX:0,startCfgY:0}),_=(l==null?void 0:l.x)??e.x,F=(l==null?void 0:l.y)??e.y,W=(k==null?void 0:k.x)??_,Z=(k==null?void 0:k.y)??F,ie=v.useCallback(U=>{U.preventDefault(),U.stopPropagation(),H.current={startMouseX:U.clientX,startMouseY:U.clientY,startCfgX:_,startCfgY:F},L(!0);const de=j/2+10,se=de/window.innerWidth*100,ce=100-se,ae=de/window.innerHeight*100,oe=100-ae,Y=(T,z)=>({x:Math.max(se,Math.min(ce,T)),y:Math.max(ae,Math.min(oe,z))}),I=T=>{const z=H.current.startCfgX+(T.clientX-H.current.startMouseX)/window.innerWidth*100,K=H.current.startCfgY+(T.clientY-H.current.startMouseY)/window.innerHeight*100;M(Y(z,K))},q=T=>{const z=H.current.startCfgX+(T.clientX-H.current.startMouseX)/window.innerWidth*100,K=H.current.startCfgY+(T.clientY-H.current.startMouseY)/window.innerHeight*100,ee=Y(z,K);u(e.id,ee.x,ee.y),M(null),L(!1),window.removeEventListener("mousemove",I),window.removeEventListener("mouseup",q)};window.addEventListener("mousemove",I),window.addEventListener("mouseup",q)},[e.id,e.size,_,F,u]);return!C&&!i?null:p.jsxs("div",{style:{position:"fixed",left:`${W}vw`,top:`${Z}vh`,transform:"translate(-50%, -50%)",pointerEvents:"none",zIndex:20,opacity:!C&&i?.35:1,userSelect:"none"},children:[P&&p.jsx("div",{style:{position:"absolute",inset:-6,borderRadius:"50%",border:"2px solid hsl(var(--primary))",boxShadow:"0 0 12px hsl(var(--primary) / 0.5), inset 0 0 8px hsl(var(--primary) / 0.15)",pointerEvents:"none"}}),e.style==="analog"?p.jsx(Bn,{size:j,value:n,minValue:e.minValue??0,maxValue:e.maxValue,arcLength:e.arcLength,rotation:e.rotation,majorTickInterval:e.majorTickInterval??Math.ceil(e.maxValue/5),minorTickCount:e.minorTickCount??4,ringSize:e.ringSize,color:P?"hsl(var(--primary))":e.color,outlineColor:P?"hsl(var(--primary))":e.outlineColor,outlineOpacity:e.outlineOpacity,needleStyle:e.needleStyle??"needle",showValue:e.showValue,unit:e.unit,label:e.label}):p.jsx(NE,{height:j,width:j,progressValue:n,maxProgressValue:e.maxValue,maxLengthDisplay:e.arcLength,rotateDegree:e.rotation,ringSize:e.ringSize,progressColor:P?"hsl(var(--primary))":e.color,outlineColor:P?"hsl(var(--primary))":e.outlineColor,outlineColorOpacity:e.outlineOpacity,displayOutline:!0,icon:r,iconColor:P?"hsl(var(--primary))":e.color,iconScaling:.38,text:e.showValue?e.label??"":"",displayNumber:e.showValue?Math.round(n):0}),i&&y&&p.jsx("div",{style:{position:"absolute",left:0,top:0,width:j,height:j,borderRadius:"50%",pointerEvents:"auto",cursor:P?"grabbing":"grab",zIndex:9997},onMouseDown:ie}),i&&(y||x)&&p.jsxs("div",{style:{position:"absolute",left:j/2,top:j+8,transform:"translate(-50%, 0)",display:"flex",alignItems:"center",gap:5,background:P?"hsl(var(--primary) / 0.22)":"hsl(var(--card))",border:`1px solid ${P?"hsl(var(--primary))":"hsl(var(--border))"}`,borderRadius:7,padding:"3px 8px",color:"white",fontSize:11,fontWeight:600,whiteSpace:"nowrap",boxShadow:P?"0 0 10px hsl(var(--primary) / 0.4), 0 2px 8px rgba(0,0,0,0.5)":"0 2px 8px rgba(0,0,0,0.5)",pointerEvents:"auto",cursor:"default",zIndex:9999,opacity:P?.5:1,transition:"background 0.1s, border-color 0.1s, opacity 0.1s"},children:[y&&p.jsx(dr,{icon:qg,style:{color:P?"hsl(var(--foreground))":"hsl(var(--muted-foreground))",fontSize:10}}),p.jsx("span",{style:{color:P?"hsl(var(--primary))":"hsl(var(--muted-foreground))"},children:e.label??e.id}),x&&p.jsx("button",{style:{background:"none",border:"none",color:"rgba(255,255,255,0.75)",cursor:"pointer",padding:"0 2px",lineHeight:1},title:C?"Ocultar":"Mostrar",onMouseDown:U=>U.stopPropagation(),onClick:()=>d(e.id,!C),children:p.jsx(dr,{icon:C?Tg:Fg,style:{fontSize:11}})}),b&&p.jsxs(p.Fragment,{children:[p.jsx("button",{style:{background:"none",border:"none",color:"rgba(255,255,255,0.7)",cursor:"pointer",padding:"0 2px",lineHeight:1},title:"Diminuir",onMouseDown:U=>U.stopPropagation(),onClick:()=>h(e.id,E/1.1),children:p.jsx(dr,{icon:Wg,style:{fontSize:10}})}),p.jsxs("span",{style:{color:A?"hsl(var(--foreground))":"hsl(var(--muted-foreground) / 0.5)",fontSize:10,minWidth:28,textAlign:"center",userSelect:"none"},children:[Math.round(E*100),"%"]}),p.jsx("button",{style:{background:"none",border:"none",color:"rgba(255,255,255,0.7)",cursor:"pointer",padding:"0 2px",lineHeight:1},title:"Aumentar",onMouseDown:U=>U.stopPropagation(),onClick:()=>h(e.id,E*1.1),children:p.jsx(dr,{icon:Kg,style:{fontSize:10}})})]}),y&&(N||A)&&p.jsx("button",{style:{background:"none",border:"none",color:"hsl(var(--destructive))",cursor:"pointer",padding:"0 2px",lineHeight:1},title:"Resetar posição",onMouseDown:U=>U.stopPropagation(),onClick:()=>m(e.id),children:p.jsx(dr,{icon:Lg,style:{fontSize:11}})})]})]})}function AE(){const e=vo(i=>i.configs),n=vo(i=>i.runtime),r=Object.values(e);return r.length?p.jsx(p.Fragment,{children:r.map(i=>{var a;return p.jsx(ME,{cfg:i,value:((a=n[i.id])==null?void 0:a.value)??0,icon:Jd(i.iconName)},i.id)})}):null}function PE(e){return p.jsx(dx,{...e})}function RE(){const e=Dn(x=>x.show),n=Dn(x=>x.airspeed),r=Dn(x=>x.altitude),i=Dn(x=>x.verticalSpeed),a=Dn(x=>x.pitch),l=Dn(x=>x.roll),u=He(x=>x.fuel),d=He(x=>x.fuelColor),h=Pe(x=>x.active);if(!e&&!h)return null;const m=(r%1e3+1e3)%1e3,y=Math.floor(r/1e3);return p.jsxs(p.Fragment,{children:[p.jsx(lt,{id:"aircraftHorizon",label:"Horizonte",zIndex:15,children:p.jsx(Qt,{style:{position:"fixed",bottom:"2.16vh",left:"43.43vw",pointerEvents:"none"},children:p.jsx(PE,{size:160,pitch:a,roll:l})})}),p.jsx(lt,{id:"aircraftAsi",label:"Velocidade",zIndex:15,children:p.jsx(Qt,{style:{position:"fixed",bottom:"2vh",left:"52vw",pointerEvents:"none"},children:p.jsx(Bn,{size:120,value:n,minValue:0,maxValue:400,arcLength:75,rotation:225,majorTickInterval:50,minorTickCount:4,ringSize:5,color:"#00cfff",outlineColor:"#00cfff",outlineOpacity:.25,needleStyle:"needle",showValue:!0,unit:"km/h",label:"SPEED"})})}),p.jsx(lt,{id:"aircraftAlt",label:"Altímetro",zIndex:15,children:p.jsx(Qt,{style:{position:"fixed",bottom:"2vh",left:"37vw",pointerEvents:"none"},children:p.jsx(Bn,{size:120,value:m,minValue:0,maxValue:1e3,arcLength:100,rotation:0,majorTickInterval:100,minorTickCount:4,ringSize:5,color:"#f59e0b",outlineColor:"#f59e0b",outlineOpacity:.25,needleStyle:"needle",showValue:!0,unit:"m",label:y>0?`ALT +${y}K`:"ALT"})})}),p.jsx(lt,{id:"aircraftVsi",label:"Vel.Vertical",zIndex:15,children:p.jsx(Qt,{style:{position:"fixed",bottom:"2vh",left:"32vw",pointerEvents:"none"},children:p.jsx(Bn,{size:100,value:i,minValue:-30,maxValue:30,arcLength:75,rotation:225,majorTickInterval:10,minorTickCount:1,ringSize:5,color:"#a78bfa",outlineColor:"#a78bfa",outlineOpacity:.25,needleStyle:"needle",showValue:!0,unit:"m/s",label:"VSI"})})}),p.jsx(lt,{id:"aircraftFuel",label:"Combustível",zIndex:15,children:p.jsx(Qt,{style:{position:"fixed",bottom:"2vh",left:"58vw",pointerEvents:"none"},children:p.jsx(Bn,{size:88,value:u,minValue:0,maxValue:100,arcLength:75,rotation:225,majorTickInterval:25,minorTickCount:1,ringSize:4,color:d,outlineColor:d,outlineOpacity:.28,needleStyle:"needle",showValue:!0,unit:"%",label:"FUEL"})})})]})}function IE(e){return p.jsx(fx,{...e})}function zE(){const e=ur(u=>u.show),n=ur(u=>u.speedKnots),r=ur(u=>u.rpm),i=ur(u=>u.pitch),a=ur(u=>u.roll),l=Pe(u=>u.active);return!e&&!l?null:p.jsxs(p.Fragment,{children:[p.jsx(lt,{id:"marineHeel",label:"Escora",zIndex:15,children:p.jsx(Qt,{style:{position:"fixed",bottom:"4.5vh",right:"21vw",pointerEvents:"none"},children:p.jsx(IE,{size:130,roll:a})})}),p.jsx(lt,{id:"marineSpeed",label:"Velocidade",zIndex:15,children:p.jsx(Qt,{style:{position:"fixed",bottom:"4.5vh",right:"14vw",pointerEvents:"none"},children:p.jsx(Bn,{size:120,value:n,minValue:0,maxValue:50,arcLength:75,rotation:225,majorTickInterval:10,minorTickCount:1,ringSize:5,color:"#38bdf8",outlineColor:"#38bdf8",outlineOpacity:.25,needleStyle:"needle",showValue:!0,unit:"kn",label:"SPEED"})})}),p.jsx(lt,{id:"marineRpm",label:"RPM",zIndex:15,children:p.jsx(Qt,{style:{position:"fixed",bottom:"4.5vh",right:"8vw",pointerEvents:"none"},children:p.jsx(Bn,{size:110,value:r,minValue:0,maxValue:100,arcLength:75,rotation:225,majorTickInterval:25,minorTickCount:1,ringSize:5,color:"#34d399",outlineColor:"#34d399",outlineOpacity:.25,needleStyle:"needle",showValue:!0,unit:"%",label:"RPM"})})}),p.jsx(lt,{id:"marineTrim",label:"Trim",zIndex:15,children:p.jsx(Qt,{style:{position:"fixed",bottom:"4.5vh",right:"2vw",pointerEvents:"none"},children:p.jsx(Bn,{size:100,value:i,minValue:-20,maxValue:20,arcLength:75,rotation:225,majorTickInterval:10,minorTickCount:1,ringSize:5,color:"#fb923c",outlineColor:"#fb923c",outlineOpacity:.25,needleStyle:"needle",showValue:!0,unit:"°",label:"TRIM"})})})]})}function OE(){const e=Pe(l=>l.active),n=Pe(l=>l.toggle),r=Pe(l=>l.resetAll),i=Gn(l=>l.translations);function a(){$e("closePositioningMode"),n()}return e?p.jsxs(p.Fragment,{children:[p.jsx("div",{style:{position:"fixed",inset:0,zIndex:30,pointerEvents:"none",backgroundImage:`
linear-gradient(hsl(var(--primary) / 0.08) 1px, transparent 1px),
linear-gradient(90deg, hsl(var(--primary) / 0.08) 1px, transparent 1px)
- `,backgroundSize:"48px 48px"}}),g.jsxs("div",{className:"fixed top-0 left-0 right-0 z-[9999] flex items-center justify-between px-4 py-2 bg-card/95 border-b border-border text-foreground select-none",style:{fontSize:13,fontWeight:600,letterSpacing:"0.04em"},children:[g.jsx("span",{className:"text-foreground",children:i.positioningModeTitle}),g.jsxs("div",{className:"flex gap-2",children:[g.jsx(li,{variant:"destructive",size:"sm",onClick:o,children:i.positioningResetAll}),g.jsx(li,{variant:"default",size:"sm",onClick:a,children:i.positioningClose})]})]})]}):null}function Fj(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`./${e}`}function $j(){const e=Ig(u=>u.config),n=Pe(u=>u.active);if(!e||!e.enabled&&!n)return null;const{src:o,width:i,x:a,y:l}=e;return g.jsx(mt,{id:"serverLogo",label:"Logo do Servidor",zIndex:5,children:g.jsx("div",{style:{position:"absolute",left:`${a}vw`,top:`${l}vh`,transform:"translate(-50%, -50%)",pointerEvents:"none",userSelect:"none"},children:g.jsx("img",{src:Fj(o),alt:"",draggable:!1,style:{width:i,display:"block",objectFit:"contain"}})})})}function Hj(){Og();const e=zg(l=>l.accentColor);nw(e);const n=Ae(l=>l.handleKeyUp),o=Ae(l=>l.isCinematicModeChecked),i=Pe(l=>l.toggle),a=y.useRef(!0);return y.useEffect(()=>{const l=setInterval(()=>{Te.setState(u=>{let f=u.designProgress;return a.current?(f+=15,f>100&&(f=100,a.current=!1)):(f-=15,f<0&&(f=0,a.current=!0)),{designProgress:f}})},1400);return()=>clearInterval(l)},[]),y.useEffect(()=>{const l=u=>{if(u.key==="Escape"&&Pe.getState().active){$e("closePositioningMode"),i();return}n(u)};return document.addEventListener("keyup",l),()=>document.removeEventListener("keyup",l)},[n,i]),g.jsxs("main",{className:"bg-transparent min-h-screen",children:[g.jsx(Lj,{}),an,g.jsx($j,{}),!o&&g.jsxs(g.Fragment,{children:[g.jsx(Ej,{}),g.jsx(Nj,{}),g.jsx(uj,{}),g.jsx(Aj,{}),g.jsx(zj,{}),g.jsx(_j,{}),g.jsx(Tj,{}),g.jsx(jj,{})]}),g.jsx(kj,{})]})}E4.createRoot(document.getElementById("root")).render(g.jsx(Hj,{}));
+ `,backgroundSize:"48px 48px"}}),p.jsxs("div",{className:"fixed top-0 left-0 right-0 z-[9999] flex items-center justify-between px-4 py-2 bg-card/95 border-b border-border text-foreground select-none",style:{fontSize:13,fontWeight:600,letterSpacing:"0.04em"},children:[p.jsx("span",{className:"text-foreground",children:i.positioningModeTitle}),p.jsxs("div",{className:"flex gap-2",children:[p.jsx(xi,{variant:"destructive",size:"sm",onClick:r,children:i.positioningResetAll}),p.jsx(xi,{variant:"default",size:"sm",onClick:a,children:i.positioningClose})]})]})]}):null}function TE(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`./${e}`}function _E(){const e=o2(u=>u.config),n=Pe(u=>u.active);if(!e||!e.enabled&&!n)return null;const{src:r,width:i,x:a,y:l}=e;return p.jsx(lt,{id:"serverLogo",label:"Logo do Servidor",zIndex:5,children:p.jsx("div",{style:{position:"absolute",left:`${a}vw`,top:`${l}vh`,transform:"translate(-50%, -50%)",pointerEvents:"none",userSelect:"none"},children:p.jsx("img",{src:TE(r),alt:"",draggable:!1,style:{width:i,display:"block",objectFit:"contain"}})})})}const DE={pergaminho:{accent:"#d9b25e",deep:"#6e4f1c",glow:"rgba(217,178,94,.5)",stone:"#181208",stone2:"#22190c",amb:"rgba(200,150,60,.12)"},sangue:{accent:"#c75b4a",deep:"#5e1f18",glow:"rgba(199,91,74,.5)",stone:"#1a1010",stone2:"#241413",amb:"rgba(180,60,40,.10)"},eterno:{accent:"#a87fe0",deep:"#3e2767",glow:"rgba(168,127,224,.5)",stone:"#150f1d",stone2:"#1f1630",amb:"rgba(120,70,200,.12)"},esmeralda:{accent:"#5fb87a",deep:"#1f5236",glow:"rgba(95,184,122,.5)",stone:"#0e1611",stone2:"#142019",amb:"rgba(50,160,100,.12)"},geada:{accent:"#6fc2d6",deep:"#1f4e5e",glow:"rgba(111,194,214,.5)",stone:"#0d141a",stone2:"#131e26",amb:"rgba(90,180,210,.12)"},cinzas:{accent:"#bcae98",deep:"#5a5040",glow:"rgba(188,174,152,.45)",stone:"#15130f",stone2:"#1f1c16",amb:"rgba(180,170,150,.10)"}},N0={vida:25,folego:135,fome:60,sede:230,sanidade:185,mana:295},M0={vida:"ᚺ",folego:"ᛋ",fome:"ᚠ",sede:"ᛚ",sanidade:"ᛟ",mana:"ᛜ"},sc={vida:"Vida",folego:"Fôlego",fome:"Fome",sede:"Sede",sanidade:"Sanidade",mana:"Mana"},LE=sc,Zx=["vida","folego","fome","sede","sanidade","mana"],A0=e=>`oklch(0.62 0.15 ${e})`,un=(e,n)=>`oklch(0.62 0.15 ${e} / ${n})`,FE=`
+@keyframes hud-glowpulse{0%,100%{opacity:.55}50%{opacity:1}}
+@keyframes hud-voiceripple{0%{transform:scale(.8);opacity:.7}100%{transform:scale(2.1);opacity:0}}
+@keyframes hud-lowpulse{0%,100%{box-shadow:0 0 0 0 rgba(220,40,40,0),inset 0 0 28px rgba(0,0,0,.7)}50%{box-shadow:0 0 26px 4px rgba(220,40,40,.6),inset 0 0 28px rgba(0,0,0,.7)}}
+@keyframes hud-meniscus{0%,100%{transform:translateY(0);opacity:.85}50%{transform:translateY(-1.5px);opacity:1}}
+@keyframes hud-sheen{0%{transform:translate(-60%,-60%) rotate(28deg);opacity:0}18%{opacity:.5}40%{transform:translate(60%,60%) rotate(28deg);opacity:0}100%{transform:translate(60%,60%) rotate(28deg);opacity:0}}
+`;function ac(e){return{background:`radial-gradient(120% 130% at 30% 0%, rgba(255,225,160,.05), transparent 55%), linear-gradient(160deg, ${e.stone2}, ${e.stone}), repeating-linear-gradient(115deg, rgba(255,255,255,.02) 0 2px, transparent 2px 6px), repeating-linear-gradient(28deg, rgba(0,0,0,.14) 0 3px, transparent 3px 9px)`,border:"1px solid rgba(180,140,70,.4)",boxShadow:"0 10px 34px rgba(0,0,0,.6), inset 0 0 30px rgba(0,0,0,.45), inset 0 0 0 1px rgba(180,140,70,.1), inset 0 1px 0 rgba(255,220,150,.1)",borderRadius:5,position:"relative"}}function $E({c:e}){const n=r=>({position:"absolute",width:7,height:7,transform:"rotate(45deg)",background:e.accent,boxShadow:`0 0 6px ${e.glow}`,...r});return p.jsxs(p.Fragment,{children:[p.jsx("span",{style:n({top:5,left:5})}),p.jsx("span",{style:n({top:5,right:5})}),p.jsx("span",{style:n({bottom:5,left:5})}),p.jsx("span",{style:n({bottom:5,right:5})})]})}const P0={fontFamily:"'JetBrains Mono',monospace",textTransform:"uppercase"};function HE({k:e,value:n,size:r,low:i}){const a=N0[e],l=A0(a),u=Math.round(n),d=r>70;return p.jsxs("div",{className:"flex flex-col items-center gap-1.5",children:[p.jsxs("div",{className:"relative rounded-full",style:{width:r,height:r,background:"radial-gradient(circle at 36% 28%, #f7e3ad, #c79a44 42%, #8a6526 64%, #4a3514 82%, #2a1d0c)",boxShadow:`0 5px 16px rgba(0,0,0,.7), 0 0 22px ${un(a,.3)}, inset 0 2px 5px rgba(255,238,190,.65), inset 0 -5px 9px rgba(0,0,0,.6), inset 0 0 0 1px rgba(40,28,12,.7)`,animation:i?"hud-lowpulse 1.1s infinite":void 0},children:[p.jsxs("div",{className:"absolute rounded-full overflow-hidden",style:{inset:3,background:"radial-gradient(circle at 40% 35%, #1c150c, #0a0703)",boxShadow:"inset 0 0 18px rgba(0,0,0,.9), inset 0 0 0 2px rgba(0,0,0,.65), inset 0 0 0 3px rgba(180,140,70,.22)"},children:[p.jsx("div",{className:"absolute left-0 right-0 bottom-0 transition-[height] duration-500",style:{height:`${u}%`,background:`linear-gradient(180deg, ${un(a,.95)}, ${un(a,.8)} 40%, ${un(a,.45)})`,boxShadow:`inset 0 6px 10px ${un(a,.7)}, 0 -2px 8px ${un(a,.55)}`},children:p.jsx("div",{className:"absolute left-0 right-0",style:{top:-1,height:d?5:3,background:`linear-gradient(180deg, oklch(0.85 0.12 ${a} / .95), transparent)`,boxShadow:`0 0 7px ${un(a,.9)}`,animation:"hud-meniscus 3.4s ease-in-out infinite"}})}),p.jsx("div",{className:"absolute rounded-full pointer-events-none",style:{top:"9%",left:"15%",width:"44%",height:"32%",background:"radial-gradient(circle, rgba(255,255,255,.42), transparent 70%)"}}),p.jsx("div",{className:"absolute rounded-full pointer-events-none z-[3]",style:{top:"8%",left:"14%",width:"46%",height:"38%",background:"radial-gradient(circle, rgba(255,255,255,.55), transparent 72%)",animation:"hud-sheen 6.5s ease-in-out infinite"}})]}),p.jsxs("div",{className:"absolute inset-0 z-[2] flex flex-col items-center justify-center gap-px",children:[p.jsx("span",{style:{fontFamily:"'Cinzel',serif",fontSize:d?19:15,lineHeight:1,color:"#f3e9d4",textShadow:`0 0 8px ${l}, 0 1px 2px #000`},children:M0[e]}),p.jsx("span",{style:{fontFamily:"'JetBrains Mono',monospace",fontSize:d?12:10,color:"#f3e9d4",textShadow:"0 1px 2px #000"},children:u})]})]}),p.jsx("span",{style:{fontFamily:"'JetBrains Mono',monospace",fontSize:8,letterSpacing:1.5,color:"#9c8458",textTransform:"uppercase"},children:sc[e]})]})}function VE({k:e,value:n}){const r=N0[e],i=A0(r),a=Math.round(n),l=a*3.6;return p.jsxs("div",{className:"flex flex-col items-center gap-1.5",children:[p.jsxs("div",{className:"relative rounded-full",style:{width:62,height:62},children:[p.jsx("div",{className:"absolute inset-0 rounded-full",style:{background:`conic-gradient(${i} ${l}deg, rgba(255,255,255,.06) ${l}deg 360deg)`,filter:`drop-shadow(0 0 6px ${un(r,.4)})`}}),p.jsxs("div",{className:"absolute rounded-full flex flex-col items-center justify-center gap-px",style:{inset:6,background:"#0c0805"},children:[p.jsx("span",{style:{fontSize:17,lineHeight:1,color:i,textShadow:`0 0 8px ${un(r,.6)}`},children:M0[e]}),p.jsx("span",{style:{fontFamily:"'JetBrains Mono',monospace",fontSize:11,color:"#e7dac0"},children:a})]})]}),p.jsx("span",{style:{fontFamily:"'JetBrains Mono',monospace",fontSize:8,letterSpacing:1,color:"#9c8458",textTransform:"uppercase"},children:sc[e]})]})}function BE({k:e,value:n,cristal:r}){const i=N0[e],a=A0(i),l=Math.round(n);return p.jsxs("div",{className:"flex items-center gap-[11px]",style:{width:320},children:[p.jsx("span",{className:"text-center",style:{fontSize:16,width:20,color:a,textShadow:`0 0 8px ${un(i,.6)}`},children:M0[e]}),p.jsx("span",{style:{fontFamily:"'JetBrains Mono',monospace",fontSize:9,letterSpacing:1,color:"#9c8458",textTransform:"uppercase",width:54},children:sc[e]}),p.jsx("div",{className:"relative flex-1 overflow-hidden",style:{height:11,background:"rgba(255,255,255,.06)",clipPath:r?"polygon(0 0,100% 0,94% 100%,0 100%)":void 0,borderRadius:r?0:3},children:p.jsx("div",{className:"absolute inset-0 transition-[width] duration-500",style:{width:`${l}%`,background:`linear-gradient(90deg, ${un(i,.6)}, ${a})`,boxShadow:`0 0 10px ${un(i,.55)}`,clipPath:r?"polygon(0 0,100% 0,90% 100%,0 100%)":void 0}})}),p.jsx("span",{className:"text-right",style:{fontFamily:"'JetBrains Mono',monospace",fontSize:11,color:"#e7dac0",width:26},children:l})]})}function WE({k:e,value:n,style:r}){if(r==="orbes"){const i=e==="vida"||e==="mana";return p.jsx(HE,{k:e,value:n,size:i?96:58,low:e==="vida"&&Math.round(n)<30})}return r==="aneis"?p.jsx(VE,{k:e,value:n}):p.jsx(BE,{k:e,value:n,cristal:r==="cristal"})}function UE({k:e,value:n,style:r,c:i,framed:a}){const l=p.jsx(WE,{k:e,value:n,style:r});return a?p.jsx("div",{style:{...ac(i),padding:11,display:"inline-flex"},children:l}):l}function YE({server:e,c:n}){return p.jsxs("div",{style:{...ac(n),padding:"14px 18px",minWidth:240,borderLeft:`3px solid ${n.accent}`},children:[p.jsx($E,{c:n}),p.jsxs("div",{className:"flex items-center gap-[11px]",children:[p.jsx("span",{style:{fontFamily:"'Cinzel Decorative',serif",fontWeight:900,fontSize:12,lineHeight:1,padding:"7px 8px",border:`1px solid ${n.accent}77`,borderRadius:3,color:n.accent,textShadow:`0 0 10px ${n.glow}`,background:"rgba(0,0,0,.3)"},children:e.sigil}),p.jsxs("div",{children:[p.jsx("div",{style:{fontFamily:"'Cinzel Decorative',serif",fontWeight:900,fontSize:20,letterSpacing:1,lineHeight:1,color:n.accent,textShadow:`0 0 14px ${n.glow}`},children:e.name}),p.jsx("div",{style:{...P0,fontSize:10,letterSpacing:2,color:"#9c8458",marginTop:4},children:e.tagline})]})]}),(e.players||e.ping>0)&&p.jsxs("div",{className:"flex items-center gap-4 mt-3 pt-[11px]",style:{borderTop:"1px solid rgba(180,140,70,.18)"},children:[e.players&&p.jsxs("div",{className:"flex items-center gap-[7px]",children:[p.jsx("span",{className:"rounded-full",style:{width:8,height:8,background:"#7bbf63",boxShadow:"0 0 8px #7bbf63",animation:"hud-glowpulse 2.4s infinite"}}),p.jsxs("span",{style:{fontFamily:"'JetBrains Mono',monospace",fontSize:12,color:"#d8c9a6"},children:[e.players," ",p.jsx("span",{style:{color:"#857036"},children:"online"})]})]}),e.ping>0&&p.jsxs("div",{className:"flex items-center gap-[7px]",children:[p.jsx("span",{style:{fontFamily:"'JetBrains Mono',monospace",fontSize:11,color:"#857036"},children:"ping"}),p.jsxs("span",{style:{fontFamily:"'JetBrains Mono',monospace",fontSize:12,color:"#d8c9a6"},children:[e.ping,"ms"]})]})]})]})}function XE({money:e,c:n,framed:r}){const i=(a,l,u)=>{const d=p.jsxs(p.Fragment,{children:[p.jsx("div",{style:{...P0,fontSize:9,letterSpacing:2,color:"#857036"},children:a}),p.jsxs("div",{style:{fontFamily:"'Cinzel',serif",fontWeight:700,fontSize:22,marginTop:2,color:u?n.accent:"#efe3c6",textShadow:u?`0 0 14px ${n.glow}`:void 0},children:[l," ",p.jsx("span",{style:{fontSize:13,color:u?void 0:"#9c8458",opacity:u?.7:1},children:"au"})]})]});return r?p.jsx("div",{style:{...ac(n),padding:"10px 16px",minWidth:138,textAlign:"right",borderTop:`2px solid ${n.accent}`},children:d}):p.jsx("div",{style:{textAlign:"right",minWidth:110,textShadow:"0 1px 3px #000"},children:d})};return p.jsxs("div",{className:"flex gap-2.5",children:[i("moeda viva",e.cash,!1),i("cofre etéreo",e.bank,!0)]})}function GE({voice:e,c:n,framed:r}){const i=n.accent,a=p.jsxs("div",{className:"flex flex-col items-center gap-1.5",style:{padding:0},children:[p.jsxs("div",{className:"relative flex items-center justify-center rounded-full",style:{width:42,height:42,border:`1px solid ${e.talking?i:"rgba(180,140,70,.35)"}`,background:e.talking?`${i}22`:"rgba(0,0,0,.25)",boxShadow:e.talking?`0 0 16px ${n.glow}`:void 0,transition:"all .2s"},children:[e.talking&&p.jsx("span",{className:"absolute inset-0 rounded-full",style:{border:`1px solid ${i}`,animation:"hud-voiceripple 1.1s ease-out infinite"}}),p.jsx("span",{style:{fontSize:18,lineHeight:1,color:e.talking?i:"#857036",transition:"color .2s"},children:"⊻"})]}),p.jsx(KE,{talking:e.talking,accent:i}),p.jsx("span",{style:{...P0,fontSize:8,letterSpacing:1,color:"#9c8458"},children:e.range})]});return r?p.jsx("div",{style:{...ac(n),display:"flex",flexDirection:"column",alignItems:"center",gap:6,padding:"12px 12px 10px"},children:a}):a}function KE({talking:e,accent:n}){const[,r]=v.useState(0),i=v.useRef(0);return v.useEffect(()=>{if(!e)return;let a=0;const l=()=>{i.current+=1,r(u=>(u+1)%1e3),a=requestAnimationFrame(l)};return a=requestAnimationFrame(l),()=>cancelAnimationFrame(a)},[e]),p.jsx("div",{className:"flex gap-[3px] items-end",style:{height:16},children:[0,1,2,3,4].map(a=>{const l=e?4+Math.abs(Math.sin(i.current/12+a))*12:3;return p.jsx("span",{className:"rounded-[2px]",style:{width:3,height:l,opacity:e?1:.35,background:n}},a)})})}function qE(e,n,r){return e==="orbes"?{vida:{left:24,bottom:22},folego:{left:150,bottom:96},fome:{left:226,bottom:96},sede:{left:150,bottom:22},sanidade:{left:226,bottom:22},mana:{right:24,bottom:22}}[n]:e==="aneis"?{left:24+r*74,bottom:22}:{left:24,bottom:22+(Zx.length-1-r)*30}}function hl({id:e,label:n,anchor:r,canResize:i=!0,children:a}){return p.jsx(lt,{id:e,label:n,zIndex:20,canResize:i,children:p.jsx(Qt,{style:{position:"fixed",...r,pointerEvents:"none"},children:a})})}function QE(){const e=Oe(M=>M.show),n=Oe(M=>M.icons),r=jt(M=>{var P;return((P=M.icons.voice)==null?void 0:P.currentEffect)??0}),i=bn(M=>M.cash),a=bn(M=>M.bank),l=gl(M=>M.folego),u=gl(M=>M.sanidade),d=gl(M=>M.mana),h=Kt(M=>M.palette),m=Kt(M=>M.vitalStyle),y=Kt(M=>M.frameless),x=Pe(M=>M.active);if(!e&&!zt&&!x)return null;const b=DE[h],C=!y,N=M=>{var P;return Math.round(((P=n[M])==null?void 0:P.progressValue)??0)},E={vida:N("health"),fome:N("hunger"),sede:N("thirst"),folego:Math.round(l),sanidade:Math.round(u),mana:Math.round(d)},j={cash:i.toLocaleString("pt-BR"),bank:a.toLocaleString("pt-BR")},A={name:"MRI",tagline:"roleplay",sigil:"MRI",players:"",ping:0},k={talking:r>0,range:r>0?"NORMAL":"MUDO"};return p.jsxs(p.Fragment,{children:[p.jsx("style",{children:FE}),p.jsx(hl,{id:"skinServer",label:"Servidor",anchor:{top:24,left:24},children:p.jsx(YE,{server:A,c:b})}),p.jsx(hl,{id:"skinMoney",label:"Dinheiro",anchor:{top:24,right:24},children:p.jsx(XE,{money:j,c:b,framed:C})}),p.jsx(hl,{id:"skinVoice",label:"Voz",anchor:{bottom:26,left:320},canResize:!1,children:p.jsx(GE,{voice:k,c:b,framed:!0})}),Zx.map((M,P)=>p.jsx(hl,{id:`skinVital_${M}`,label:LE[M],anchor:qE(m,M,P),children:p.jsx(UE,{k:M,value:E[M],style:m,c:b,framed:C})},M))]})}function JE(){p2();const e=Rf(u=>u.accentColor);Hw(e);const n=Me(u=>u.handleKeyUp),r=Me(u=>u.isCinematicModeChecked),i=Pe(u=>u.toggle),a=Kt(u=>u.skin)==="sobrenatural",l=v.useRef(!0);return v.useEffect(()=>{const u=setInterval(()=>{Oe.setState(d=>{let h=d.designProgress;return l.current?(h+=15,h>100&&(h=100,l.current=!1)):(h-=15,h<0&&(h=0,l.current=!0)),{designProgress:h}})},1400);return()=>clearInterval(u)},[]),v.useEffect(()=>{const u=d=>{if(d.key==="Escape"&&Pe.getState().active){$e("closePositioningMode"),i();return}n(d)};return document.addEventListener("keyup",u),()=>document.removeEventListener("keyup",u)},[n,i]),p.jsxs("main",{className:"bg-transparent min-h-screen",children:[p.jsx(OE,{}),zt,!a&&p.jsx(_E,{}),!r&&p.jsxs(p.Fragment,{children:[p.jsx(fE,{}),a?p.jsx(QE,{}):p.jsxs(p.Fragment,{children:[p.jsx(pE,{}),p.jsx(qj,{})]}),p.jsx(kE,{}),p.jsx(AE,{}),p.jsx(RE,{}),p.jsx(zE,{}),p.jsx(dE,{})]}),p.jsx(uE,{})]})}a4.createRoot(document.getElementById("root")).render(p.jsx(JE,{}));
diff --git a/html/pt-br.json b/html/pt-br.json
index de728e8..8a99c2a 100644
--- a/html/pt-br.json
+++ b/html/pt-br.json
@@ -96,6 +96,22 @@
"metricsTypeMiles": "MPH",
"metricsTypeKmh": "KM/H",
"metricsTypeDescription": "Escolha sua unidade de medida preferida",
+ "vehicleThemeLabel": "Tema da HUD de Veículo",
+ "vehicleThemeClassic": "Clássico",
+ "vehicleThemeDigital": "Digital",
+ "vehicleThemeDescription": "Alterne entre o velocímetro analógico clássico e o painel digital",
+ "vehicleThemeAdminOnly": "Apenas admins podem trocar o tema da HUD de veículo",
+ "vehicleSpeedoVariantLabel": "Formato do Velocímetro",
+ "vehicleSpeedoVariantDescription": "Formato do velocímetro digital: circular, arco ou linear",
+ "playerSkinLabel": "Skin do HUD do Player",
+ "playerSkinClassic": "Clássico",
+ "playerSkinSupernatural": "Sobrenatural",
+ "playerSkinDescription": "Alterne entre a HUD clássica do player e o skin sobrenatural (vitais, dinheiro, servidor)",
+ "playerSkinAdminOnly": "Apenas admins podem trocar o skin do HUD do player",
+ "skinPaletteLabel": "Paleta",
+ "skinStyleLabel": "Estilo dos Vitais",
+ "skinLayoutLabel": "Disposição",
+ "skinFramelessLabel": "Remover fundos (orbes + dinheiro)",
"positioningMenu": "Posicionamento",
"openPositioningMode": "Abrir Modo de Posicionamento",
"openPositioningModeDescription": "Arraste, redimensione e oculte elementos do HUD livremente",
diff --git a/shared/config.lua b/shared/config.lua
index 6d915e5..5a64844 100644
--- a/shared/config.lua
+++ b/shared/config.lua
@@ -11,6 +11,24 @@ Config.DisablePoliceStress = false -- Default: false, If true will disable stres
Config.VehicleEnabled = true -- Enable/Disable the vehicle portion of the HUD (this allows you to use a custom speedometer)
Config.EngineCommand = false -- Enable/Disable the built-in engine toggle command (+engine, default key: G). Set to false if using another resource for this.
+-- Tema padrao da HUD de veiculo. Define o visual usado por todos os players
+-- (default global). Admins podem trocar individualmente pelo menu do HUD.
+-- 'classic' = velocimetro analogico atual (gauges do ui-kit)
+-- 'digital' = cluster digital/tech ciano (velocidade + fuel/eng + RPM/marcha + turbo + bussola)
+Config.VehicleHudTheme = 'classic'
+-- Formato do velocimetro no tema 'digital': 'ring' (circular), 'arc' (semicircular) ou 'linear'.
+Config.VehicleHudVariant = 'ring'
+
+-- Skin da HUD do PLAYER (vitais/dinheiro/servidor/voz). Independente do veiculo.
+-- 'classic' = HUD atual
+-- 'sobrenatural' = reskin ocultista/Diablo II (orbes de vitais, paineis de pedra)
+Config.PlayerHudSkin = 'classic'
+-- Customizacao do skin 'sobrenatural' (admins podem trocar no menu):
+Config.SupernaturalPalette = 'pergaminho' -- pergaminho | sangue | eterno | esmeralda | geada | cinzas
+Config.SupernaturalStyle = 'orbes' -- orbes | aneis | barras | cristal
+Config.SupernaturalLayout = 'classico' -- unido | separado | classico
+Config.SupernaturalFrameless = false -- true = remove os fundos de pedra das orbes + dinheiro (servidor mantem)
+
-- Admin only to change hud icons/shapes
Config.AdminOnly = false
diff --git a/web/src/App.tsx b/web/src/App.tsx
index c297dfb..52464f5 100644
--- a/web/src/App.tsx
+++ b/web/src/App.tsx
@@ -3,6 +3,7 @@ import { useEventHandler, fetchNui } from "./utils/eventHandler";
import { useMenuStore } from "./stores/menuStore";
import { usePlayerStatusHudStore } from "./stores/playerStatusHudStore";
import { usePositioningStore } from "./stores/positioningStore";
+import { usePlayerSkinStore } from "./stores/playerSkinStore";
import { useThemeStore } from "./stores/themeStore";
import { useAccentColor } from "./hooks/useAccentColor";
import debugMode from "./stores/debugStore";
@@ -19,6 +20,7 @@ import MarineHud from "./components/organisms/MarineHud";
import PositioningOverlay from "./components/organisms/PositioningOverlay";
import DevPanel from "./components/organisms/DevPanel";
import ServerLogoHud from "./components/organisms/ServerLogoHud";
+import SupernaturalSkin from "./components/organisms/SupernaturalSkin";
export default function App() {
useEventHandler();
@@ -32,6 +34,10 @@ export default function App() {
const isCinematicModeChecked = useMenuStore((s) => s.isCinematicModeChecked);
const togglePositioning = usePositioningStore((s) => s.toggle);
+ // Skin 'sobrenatural' substitui a HUD de player classica (vitais + dinheiro
+ // + server logo + voz). Nao afeta veiculo/bussola/gauges.
+ const supernatural = usePlayerSkinStore((s) => s.skin) === "sobrenatural";
+
// Design-mode progress animation
const isUpRef = useRef(true);
useEffect(() => {
@@ -77,12 +83,18 @@ export default function App() {
{debugMode && }
-
+ {!supernatural && }
{!isCinematicModeChecked && (
<>
-
-
+ {supernatural ? (
+
+ ) : (
+ <>
+
+
+ >
+ )}
diff --git a/web/src/components/menu/HudPanel.tsx b/web/src/components/menu/HudPanel.tsx
index 3ad2f4d..c6f084e 100644
--- a/web/src/components/menu/HudPanel.tsx
+++ b/web/src/components/menu/HudPanel.tsx
@@ -1,11 +1,20 @@
import { useMenuStore } from "../../stores/menuStore";
import { usePlayerStatusHudStore } from "../../stores/playerStatusHudStore";
import { usePositioningStore } from "../../stores/positioningStore";
+import { useVehicleThemeStore, SPEEDO_VARIANTS, type SpeedoVariant } from "../../stores/vehicleThemeStore";
+import {
+ usePlayerSkinStore,
+ SKIN_PALETTES,
+ VITAL_STYLES,
+ type SkinPalette,
+ type VitalStyle,
+} from "../../stores/playerSkinStore";
import { useI18nStore } from "../../utils/i18n";
import { fetchNui } from "../../utils/eventHandler";
import Button from "../atoms/Button";
import Checkbox from "../atoms/Checkbox";
import Switch from "../atoms/Switch";
+import HudSelect from "../atoms/HudSelect";
import PsLogo from "../atoms/PsLogo";
export default function HudPanel() {
@@ -30,6 +39,21 @@ export default function HudPanel() {
const isUseMPHChecked = useMenuStore((s) => s.isUseMPHChecked);
const positioningEnabled = usePositioningStore((s) => s.enabled);
+ const isAdmin = useMenuStore((s) => s.isAdmin);
+ const vehicleTheme = useVehicleThemeStore((s) => s.theme);
+ const speedoVariant = useVehicleThemeStore((s) => s.variant);
+ const setVehicleTheme = useVehicleThemeStore((s) => s.setTheme);
+ const setSpeedoVariant = useVehicleThemeStore((s) => s.setVariant);
+
+ const playerSkin = usePlayerSkinStore((s) => s.skin);
+ const skinPalette = usePlayerSkinStore((s) => s.palette);
+ const vitalStyle = usePlayerSkinStore((s) => s.vitalStyle);
+ const skinFrameless = usePlayerSkinStore((s) => s.frameless);
+ const setPlayerSkin = usePlayerSkinStore((s) => s.setSkin);
+ const setSkinPalette = usePlayerSkinStore((s) => s.setPalette);
+ const setVitalStyle = usePlayerSkinStore((s) => s.setVitalStyle);
+ const setSkinFrameless = usePlayerSkinStore((s) => s.setFrameless);
+
const dynamicIcons = usePlayerStatusHudStore((s) => s.dynamicIcons);
const set = useMenuStore.setState;
@@ -165,6 +189,31 @@ export default function HudPanel() {
/>
{t.metricsTypeDescription}
+ {/* Tema da HUD de veiculo: classico (analogico) x digital (cluster). Admin escolhe. */}
+ {t.vehicleThemeLabel}
+
+
setVehicleTheme(v ? "digital" : "classic")}
+ />
+ {vehicleTheme === "digital" && (
+
+
{t.vehicleSpeedoVariantLabel}
+
setSpeedoVariant(v as SpeedoVariant)}
+ />
+ {t.vehicleSpeedoVariantDescription}
+
+ )}
+
+
+ {isAdmin ? t.vehicleThemeDescription : t.vehicleThemeAdminOnly}
+
+
{ set({ isMapEnabledChecked: v }); fetchNui("HideMap", { checked: v }); }} />
+ {/* Skin do HUD do player: classico x sobrenatural. Admin escolhe. */}
+
+
+
setPlayerSkin(v ? "sobrenatural" : "classic")}
+ />
+ {playerSkin === "sobrenatural" && (
+
+
+
{t.skinPaletteLabel}
+
setSkinPalette(v as SkinPalette)} />
+
+
+
{t.skinStyleLabel}
+
setVitalStyle(v as VitalStyle)} />
+
+
setSkinFrameless(v)} />
+
+ )}
+
+ {isAdmin ? t.playerSkinDescription : t.playerSkinAdminOnly}
+
+
+
+
+
s.isPointerShowChecked);
const positioningActive = usePositioningStore((s) => s.active);
+ // O tema digital de veiculo ja desenha a propria fita de bussola no cluster;
+ // esconde a bussola legada quando ela estaria sobreposta (dentro do carro).
+ const vehicleTheme = useVehicleThemeStore((s) => s.theme);
+ const vehicleShown = useVehicleHudStore((s) => s.show);
+
// Smoothly tween the viewBox heading, with instant-jump for wraparound
const [tweened, setTweened] = useState(heading);
const lastHeadingRef = useRef(heading);
@@ -58,6 +65,7 @@ export default function CompassHud() {
}, [heading]);
if (!show && !debugMode && !positioningActive) return null;
+ if (vehicleTheme === "digital" && vehicleShown && !positioningActive) return null;
return (
= ["harness"];
+
interface IconsListProps {
isReversed?: boolean;
iconsToShow?: Array;
@@ -23,6 +30,13 @@ export default function IconsList({
const globalColorSettings = useColorEffectStore((s) => s.globalColorSettings);
const externalIcons = useExternalStatusStore((s) => s.icons);
+ // Com o tema digital ativo dentro do veiculo, oculta os icones duplicados
+ // pelo cluster (atualmente so o cinto). Nao some no designMode (customizacao)
+ // pra que ainda seja configuravel no menu.
+ const vehicleTheme = useVehicleThemeStore((s) => s.theme);
+ const inVehicle = useVehicleHudStore((s) => s.show);
+ const digitalActive = vehicleTheme === "digital" && inVehicle;
+
let orderList: Array =
iconsToShow.length ? iconsToShow : showingOrder;
if (isReversed) orderList = [...orderList].reverse();
@@ -42,8 +56,11 @@ export default function IconsList({
const currentEffect = colorData.colorEffects[effectIndex];
const buffColor = externalIcons[iconName as string];
+ const hiddenByDigital =
+ digitalActive && !designMode && DIGITAL_DUPLICATED_ICONS.includes(iconName);
const isVisible =
- (icon.isShowing && !iconsToNotShow.includes(iconName)) || designMode;
+ (icon.isShowing && !iconsToNotShow.includes(iconName) && !hiddenByDigital) ||
+ designMode;
if (!isVisible) return null;
const hudIconInfo = {
diff --git a/web/src/components/organisms/SupernaturalHud.tsx b/web/src/components/organisms/SupernaturalHud.tsx
new file mode 100644
index 0000000..6da4ed4
--- /dev/null
+++ b/web/src/components/organisms/SupernaturalHud.tsx
@@ -0,0 +1,250 @@
+/**
+ * Kit de pecas do skin 'sobrenatural' (tema ocultista / Diablo II do handoff).
+ *
+ * Exporta as pecas (orbes/aneis/barras + paineis de servidor/dinheiro/relogio/
+ * voz) e helpers. A composicao + posicionamento (DraggableHudElement) fica no
+ * container SupernaturalSkin, pra cada peca ser movel/escondivel separadamente.
+ *
+ * Requer Cinzel / Cinzel Decorative / JetBrains Mono (carregadas no index.css).
+ */
+import type React from "react";
+import { useEffect, useRef, useState } from "react";
+
+/* ----------------------------------------------------------------- tipos */
+export type SkinKey = "pergaminho" | "sangue" | "eterno" | "esmeralda" | "geada" | "cinzas";
+export type StyleKey = "orbes" | "aneis" | "barras" | "cristal";
+export type LayoutKey = "unido" | "separado" | "classico";
+
+export interface VitalValues {
+ vida: number;
+ folego: number;
+ fome: number;
+ sede: number;
+ sanidade: number;
+ mana: number;
+}
+
+/* --------------------------------------------------------------- paletas */
+export interface Skin { accent: string; deep: string; glow: string; stone: string; stone2: string; amb: string; }
+export const SKINS: Record = {
+ pergaminho: { accent: "#d9b25e", deep: "#6e4f1c", glow: "rgba(217,178,94,.5)", stone: "#181208", stone2: "#22190c", amb: "rgba(200,150,60,.12)" },
+ sangue: { accent: "#c75b4a", deep: "#5e1f18", glow: "rgba(199,91,74,.5)", stone: "#1a1010", stone2: "#241413", amb: "rgba(180,60,40,.10)" },
+ eterno: { accent: "#a87fe0", deep: "#3e2767", glow: "rgba(168,127,224,.5)", stone: "#150f1d", stone2: "#1f1630", amb: "rgba(120,70,200,.12)" },
+ esmeralda: { accent: "#5fb87a", deep: "#1f5236", glow: "rgba(95,184,122,.5)", stone: "#0e1611", stone2: "#142019", amb: "rgba(50,160,100,.12)" },
+ geada: { accent: "#6fc2d6", deep: "#1f4e5e", glow: "rgba(111,194,214,.5)", stone: "#0d141a", stone2: "#131e26", amb: "rgba(90,180,210,.12)" },
+ cinzas: { accent: "#bcae98", deep: "#5a5040", glow: "rgba(188,174,152,.45)",stone: "#15130f", stone2: "#1f1c16", amb: "rgba(180,170,150,.10)" },
+};
+
+/* matiz oklch por atributo */
+const HUE: Record = { vida: 25, folego: 135, fome: 60, sede: 230, sanidade: 185, mana: 295 };
+const GLYPH: Record = { vida: "ᚺ", folego: "ᛋ", fome: "ᚠ", sede: "ᛚ", sanidade: "ᛟ", mana: "ᛜ" };
+const LABELS: Record = { vida: "Vida", folego: "Fôlego", fome: "Fome", sede: "Sede", sanidade: "Sanidade", mana: "Mana" };
+export const LABEL = LABELS;
+export const ORDER: (keyof VitalValues)[] = ["vida", "folego", "fome", "sede", "sanidade", "mana"];
+
+const vc = (h: number) => `oklch(0.62 0.15 ${h})`;
+const vca = (h: number, a: number) => `oklch(0.62 0.15 ${h} / ${a})`;
+
+/* ------------------------------------------------------- keyframes (uma vez) */
+export const KEYFRAMES = `
+@keyframes hud-glowpulse{0%,100%{opacity:.55}50%{opacity:1}}
+@keyframes hud-voiceripple{0%{transform:scale(.8);opacity:.7}100%{transform:scale(2.1);opacity:0}}
+@keyframes hud-lowpulse{0%,100%{box-shadow:0 0 0 0 rgba(220,40,40,0),inset 0 0 28px rgba(0,0,0,.7)}50%{box-shadow:0 0 26px 4px rgba(220,40,40,.6),inset 0 0 28px rgba(0,0,0,.7)}}
+@keyframes hud-meniscus{0%,100%{transform:translateY(0);opacity:.85}50%{transform:translateY(-1.5px);opacity:1}}
+@keyframes hud-sheen{0%{transform:translate(-60%,-60%) rotate(28deg);opacity:0}18%{opacity:.5}40%{transform:translate(60%,60%) rotate(28deg);opacity:0}100%{transform:translate(60%,60%) rotate(28deg);opacity:0}}
+`;
+
+/* --------------------------------------------------------- paineis de pedra */
+export function panelBase(c: Skin): React.CSSProperties {
+ const stoneBg = `radial-gradient(120% 130% at 30% 0%, rgba(255,225,160,.05), transparent 55%), linear-gradient(160deg, ${c.stone2}, ${c.stone}), repeating-linear-gradient(115deg, rgba(255,255,255,.02) 0 2px, transparent 2px 6px), repeating-linear-gradient(28deg, rgba(0,0,0,.14) 0 3px, transparent 3px 9px)`;
+ return { background: stoneBg, border: "1px solid rgba(180,140,70,.4)", boxShadow: "0 10px 34px rgba(0,0,0,.6), inset 0 0 30px rgba(0,0,0,.45), inset 0 0 0 1px rgba(180,140,70,.1), inset 0 1px 0 rgba(255,220,150,.1)", borderRadius: 5, position: "relative" };
+}
+function Corners({ c }: { c: Skin }) {
+ const corner = (pos: React.CSSProperties): React.CSSProperties => ({ position: "absolute", width: 7, height: 7, transform: "rotate(45deg)", background: c.accent, boxShadow: `0 0 6px ${c.glow}`, ...pos });
+ return (<>
+
+
+ >);
+}
+const labelMono: React.CSSProperties = { fontFamily: "'JetBrains Mono',monospace", textTransform: "uppercase" };
+
+/* ============================================================ vitais */
+function Orb({ k, value, size, low }: { k: keyof VitalValues; value: number; size: number; low: boolean }) {
+ const hue = HUE[k], col = vc(hue), pct = Math.round(value), big = size > 70;
+ return (
+
+
+
+
+ {GLYPH[k]}
+ {pct}
+
+
+
{LABELS[k]}
+
+ );
+}
+
+function Ring({ k, value }: { k: keyof VitalValues; value: number }) {
+ const hue = HUE[k], col = vc(hue), pct = Math.round(value), deg = pct * 3.6;
+ return (
+
+
+
+
+ {GLYPH[k]}
+ {pct}
+
+
+
{LABELS[k]}
+
+ );
+}
+
+function Bar({ k, value, cristal }: { k: keyof VitalValues; value: number; cristal: boolean }) {
+ const hue = HUE[k], col = vc(hue), pct = Math.round(value);
+ return (
+
+
{GLYPH[k]}
+
{LABELS[k]}
+
+
{pct}
+
+ );
+}
+
+function Vital({ k, value, style }: { k: keyof VitalValues; value: number; style: StyleKey }) {
+ if (style === "orbes") {
+ const big = k === "vida" || k === "mana";
+ return ;
+ }
+ if (style === "aneis") return ;
+ return ;
+}
+
+/** Uma orbe/anel/barra, opcionalmente dentro do painel de pedra. */
+export function VitalPanel({ k, value, style, c, framed }: { k: keyof VitalValues; value: number; style: StyleKey; c: Skin; framed: boolean }) {
+ const inner = ;
+ if (!framed) return inner;
+ return {inner}
;
+}
+
+/* ============================================================ paineis */
+export function ServerPanel({ server, c }: { server: { name: string; tagline: string; sigil: string; players: string; ping: number }; c: Skin }) {
+ return (
+
+
+
+
{server.sigil}
+
+
{server.name}
+
{server.tagline}
+
+
+ {(server.players || server.ping > 0) && (
+
+ {server.players && (
+
+
+ {server.players} online
+
+ )}
+ {server.ping > 0 && (
+
+ ping
+ {server.ping}ms
+
+ )}
+
+ )}
+
+ );
+}
+
+export function MoneyPanel({ money, c, framed }: { money: { cash: string; bank: string }; c: Skin; framed: boolean }) {
+ const block = (label: string, val: string, accentVal: boolean) => {
+ const valueEl = (
+ <>
+ {label}
+
+ {val} au
+
+ >
+ );
+ return framed
+ ? {valueEl}
+ : {valueEl}
;
+ };
+ return {block("moeda viva", money.cash, false)}{block("cofre etéreo", money.bank, true)}
;
+}
+
+export function ClockPanel({ clock, c }: { clock: { time: string; date: string }; c: Skin }) {
+ return (
+
+
☾
+
+
{clock.time}
+
{clock.date}
+
+
+ );
+}
+
+export function VoicePanel({ voice, c, framed }: { voice: { talking: boolean; range: string }; c: Skin; framed: boolean }) {
+ const accent = c.accent;
+ const body = (
+
+
+ {voice.talking && }
+ ⊻
+
+
+
{voice.range}
+
+ );
+ if (!framed) return body;
+ return {body}
;
+}
+
+/* Barrinhas de voz animadas via rAF (o handoff usava Date.now() inline). */
+function VoiceBars({ talking, accent }: { talking: boolean; accent: string }) {
+ const [, force] = useState(0);
+ const t = useRef(0);
+ useEffect(() => {
+ if (!talking) return;
+ let raf = 0;
+ const loop = () => { t.current += 1; force((n) => (n + 1) % 1000); raf = requestAnimationFrame(loop); };
+ raf = requestAnimationFrame(loop);
+ return () => cancelAnimationFrame(raf);
+ }, [talking]);
+ return (
+
+ {[0, 1, 2, 3, 4].map((i) => {
+ const h = talking ? 4 + Math.abs(Math.sin(t.current / 12 + i)) * 12 : 3;
+ return ;
+ })}
+
+ );
+}
diff --git a/web/src/components/organisms/SupernaturalSkin.tsx b/web/src/components/organisms/SupernaturalSkin.tsx
new file mode 100644
index 0000000..5729170
--- /dev/null
+++ b/web/src/components/organisms/SupernaturalSkin.tsx
@@ -0,0 +1,120 @@
+import type { CSSProperties, ReactNode } from "react";
+import { usePlayerStatusHudStore } from "../../stores/playerStatusHudStore";
+import { useColorEffectStore } from "../../stores/colorEffectStore";
+import { useMoneyHudStore } from "../../stores/moneyHudStore";
+import { useSupernaturalVitalsStore } from "../../stores/supernaturalVitalsStore";
+import { usePlayerSkinStore } from "../../stores/playerSkinStore";
+import { usePositioningStore } from "../../stores/positioningStore";
+import debugMode from "../../stores/debugStore";
+import DraggableHudElement from "../atoms/DraggableHudElement";
+import ScaledHudContent from "../atoms/ScaledHudContent";
+import {
+ SKINS,
+ ORDER,
+ LABEL,
+ KEYFRAMES,
+ VitalPanel,
+ ServerPanel,
+ MoneyPanel,
+ VoicePanel,
+ type StyleKey,
+ type VitalValues,
+} from "./SupernaturalHud";
+
+/**
+ * Container do skin 'sobrenatural'. Compoe cada peca (servidor, dinheiro,
+ * relogio, voz e CADA vital) como um DraggableHudElement proprio, pra serem
+ * movidas/escondidas/redimensionadas separadamente no F10.
+ *
+ * Mapa de vitais (0-100): vida=health · fome=hunger · sede=thirst (HUD base);
+ * folego · sanidade · mana = stats custom (supernaturalVitalsStore).
+ */
+type Anchor = Pick;
+
+// Posicoes padrao de cada vital por estilo (o usuario reposiciona no F10).
+function vitalAnchor(style: StyleKey, k: keyof VitalValues, i: number): Anchor {
+ if (style === "orbes") {
+ const map: Record = {
+ vida: { left: 24, bottom: 22 },
+ folego: { left: 150, bottom: 96 },
+ fome: { left: 226, bottom: 96 },
+ sede: { left: 150, bottom: 22 },
+ sanidade: { left: 226, bottom: 22 },
+ mana: { right: 24, bottom: 22 },
+ };
+ return map[k];
+ }
+ if (style === "aneis") return { left: 24 + i * 74, bottom: 22 };
+ // barras / cristal — empilhadas
+ return { left: 24, bottom: 22 + (ORDER.length - 1 - i) * 30 };
+}
+
+function SkinEl({
+ id, label, anchor, canResize = true, children,
+}: { id: string; label: string; anchor: Anchor; canResize?: boolean; children: ReactNode }) {
+ return (
+
+
+ {children}
+
+
+ );
+}
+
+export default function SupernaturalSkin() {
+ const show = usePlayerStatusHudStore((s) => s.show);
+ const icons = usePlayerStatusHudStore((s) => s.icons);
+ const voiceEffect = useColorEffectStore((s) => (s.icons as any).voice?.currentEffect ?? 0);
+ const cash = useMoneyHudStore((s) => s.cash);
+ const bank = useMoneyHudStore((s) => s.bank);
+ const folego = useSupernaturalVitalsStore((s) => s.folego);
+ const sanidade = useSupernaturalVitalsStore((s) => s.sanidade);
+ const mana = useSupernaturalVitalsStore((s) => s.mana);
+
+ const palette = usePlayerSkinStore((s) => s.palette);
+ const vitalStyle = usePlayerSkinStore((s) => s.vitalStyle);
+ const frameless = usePlayerSkinStore((s) => s.frameless);
+ const positioningActive = usePositioningStore((s) => s.active);
+
+ if (!show && !debugMode && !positioningActive) return null;
+
+ const c = SKINS[palette];
+ const framed = !frameless; // frameless afeta vitais + dinheiro (servidor mantem)
+ const v = (name: string) => Math.round((icons as any)[name]?.progressValue ?? 0);
+ const vitals: VitalValues = {
+ vida: v("health"),
+ fome: v("hunger"),
+ sede: v("thirst"),
+ folego: Math.round(folego),
+ sanidade: Math.round(sanidade),
+ mana: Math.round(mana),
+ };
+
+ const money = { cash: cash.toLocaleString("pt-BR"), bank: bank.toLocaleString("pt-BR") };
+ const server = { name: "MRI", tagline: "roleplay", sigil: "MRI", players: "", ping: 0 };
+ const voice = { talking: voiceEffect > 0, range: voiceEffect > 0 ? "NORMAL" : "MUDO" };
+
+ return (
+ <>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {ORDER.map((k, i) => (
+
+
+
+ ))}
+ >
+ );
+}
diff --git a/web/src/components/organisms/VehicleDigitalHud.tsx b/web/src/components/organisms/VehicleDigitalHud.tsx
new file mode 100644
index 0000000..2ee6e23
--- /dev/null
+++ b/web/src/components/organisms/VehicleDigitalHud.tsx
@@ -0,0 +1,432 @@
+import { useEffect, useRef, useState, type ReactNode } from "react";
+import { useVehicleHudStore } from "../../stores/vehicleHudStore";
+import { useMarineHudStore } from "../../stores/marineHudStore";
+import { useAircraftHudStore } from "../../stores/aircraftHudStore";
+import { usePositioningStore } from "../../stores/positioningStore";
+import { useThemeStore } from "../../stores/themeStore";
+import { useVehicleThemeStore, type SpeedoVariant } from "../../stores/vehicleThemeStore";
+import debugMode from "../../stores/debugStore";
+import DraggableHudElement from "../atoms/DraggableHudElement";
+import ScaledHudContent from "../atoms/ScaledHudContent";
+import { useSmoothValue } from "../../hooks/useSmoothValue";
+
+const FONT = "'Chakra Petch', 'Yantramanav', sans-serif";
+const RPM_MAX = 8000;
+const WARNING = "#ffc24d";
+const DANGER = "#ff5a52";
+
+const SEG_HEIGHTS = [9, 11, 13, 15, 17, 19, 21, 23, 25, 27];
+
+function clamp(v: number, a: number, b: number) {
+ return Math.max(a, Math.min(b, v));
+}
+
+// Cor das barras fuel/eng por nivel (espelha a logica do handoff).
+function barColor(p: number, accent: string) {
+ return p > 50 ? accent : p > 22 ? WARNING : DANGER;
+}
+
+/**
+ * Boost/turbo derivado da aceleracao (o jogo nao expoe boost de forma
+ * confiavel). Suaviza a taxa de variacao da velocidade -> 0..100.
+ */
+function useBoost(speed: number, speedMax: number) {
+ const [boost, setBoost] = useState(0);
+ const speedRef = useRef(speed);
+ speedRef.current = speed;
+ const prevRef = useRef(speed);
+ const valRef = useRef(0);
+
+ useEffect(() => {
+ let raf = 0;
+ let last = performance.now();
+ const tick = (now: number) => {
+ const dt = (now - last) / 1000;
+ last = now;
+ if (dt > 0) {
+ const accel = (speedRef.current - prevRef.current) / dt; // unidades/s
+ prevRef.current = speedRef.current;
+ const target = clamp((accel / speedMax) * 100 * 4, 0, 100);
+ valRef.current += (target - valRef.current) * (1 - Math.exp(-dt / 0.18));
+ setBoost(valRef.current);
+ }
+ raf = requestAnimationFrame(tick);
+ };
+ raf = requestAnimationFrame(tick);
+ return () => cancelAnimationFrame(raf);
+ }, [speedMax]);
+
+ return boost;
+}
+
+interface ClusterData {
+ speed: number;
+ speedInt: number;
+ speedMax: number;
+ speedUnit: string;
+ fuel: number;
+ eng: number;
+ boost: number;
+ rpm: number;
+ gear: number;
+ bearing: number;
+ beltOn: boolean;
+ accent: string;
+ variant: SpeedoVariant;
+}
+
+export default function VehicleDigitalHud() {
+ const show = useVehicleHudStore((s) => s.show);
+ const rawSpeed = useVehicleHudStore((s) => s.speed);
+ const speed = useSmoothValue(rawSpeed, 70);
+ const fuel = useVehicleHudStore((s) => s.fuel);
+ const engine = useVehicleHudStore((s) => s.engine);
+ const rawRpm = useVehicleHudStore((s) => s.rpm);
+ const rpm = useSmoothValue(rawRpm, 90);
+ const gear = useVehicleHudStore((s) => s.gear);
+ const heading = useVehicleHudStore((s) => s.heading);
+ const showSeatBelt = useVehicleHudStore((s) => s.showSeatBelt);
+ const useMPH = useVehicleHudStore((s) => s.useMPH);
+
+ const accent = useThemeStore((s) => s.accentColor);
+ const variant = useVehicleThemeStore((s) => s.variant);
+
+ const marineActive = useMarineHudStore((s) => s.show);
+ const aircraftActive = useAircraftHudStore((s) => s.show);
+ const positioningActive = usePositioningStore((s) => s.active);
+
+ const speedMax = useMPH ? 120 : 200;
+ const boost = useBoost(speed, speedMax);
+
+ if (!show && !debugMode && !positioningActive) return null;
+ // Em barco/aviao o cluster digital de carro nao se aplica.
+ if ((marineActive || aircraftActive) && !positioningActive && !debugMode) return null;
+
+ // GTA heading e anti-horario (90 = Oeste); converte pra bussola horaria (90 = Leste).
+ const bearing = ((360 - heading) % 360 + 360) % 360;
+
+ const data: ClusterData = {
+ speed,
+ speedInt: Math.round(speed),
+ speedMax,
+ speedUnit: useMPH ? "MPH" : "KM/H",
+ fuel: clamp(Math.round(fuel), 0, 100),
+ eng: clamp(Math.round(engine), 0, 100),
+ boost: Math.round(boost),
+ rpm,
+ gear,
+ bearing,
+ beltOn: !showSeatBelt,
+ accent,
+ variant,
+ };
+
+ // Cada peca e um DraggableHudElement proprio (igual ao tema classico):
+ // pode ser movida/escondida/redimensionada de forma independente no F10.
+ // Os defaults abaixo montam o cluster do handoff ancorado no centro-baixo.
+ return (
+ <>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ >
+ );
+}
+
+/**
+ * Wrapper de uma peca individual do cluster digital. Ancora no centro-baixo
+ * (translateX(-50%)) e fica posicionavel/escondivel/redimensionavel no F10.
+ */
+function DigitalEl({
+ id,
+ label,
+ left,
+ bottom,
+ canResize = true,
+ children,
+}: {
+ id: string;
+ label: string;
+ left: string;
+ bottom: number;
+ canResize?: boolean;
+ children: ReactNode;
+}) {
+ return (
+
+
+ {children}
+
+
+ );
+}
+
+/* ---------------------------------------------------------------- speedometer */
+
+function Speedometer({
+ variant,
+ speedInt,
+ frac,
+ unit,
+ accent,
+}: {
+ variant: SpeedoVariant;
+ speedInt: number;
+ frac: number;
+ unit: string;
+ accent: string;
+}) {
+ const glow = "0 0 22px rgba(70,224,255,0.32)";
+ const empty = "rgba(255,255,255,0.07)";
+
+ if (variant === "linear") {
+ return (
+
+ );
+ }
+
+ if (variant === "arc") {
+ // SVG (em vez de circulo 280x280 com overflow:hidden) pra caixa de limites
+ // bater no visivel: o medidor do DraggableHudElement pula filhos SVG e usa
+ // so o raiz (280x146). Preenche da esquerda -> direita por cima.
+ const R = 120;
+ const cx = 140;
+ const cy = 140;
+ const sw = 28;
+ const len = Math.PI * R;
+ const d = `M ${cx - R} ${cy} A ${R} ${R} 0 0 1 ${cx + R} ${cy}`;
+ return (
+
+ );
+ }
+
+ // ring (default)
+ return (
+
+ );
+}
+
+/* -------------------------------------------------------------------- vbar */
+
+function VBar({
+ value,
+ label,
+ height,
+ color,
+ glow = false,
+}: {
+ value: number;
+ label: string;
+ height: number;
+ color: string;
+ glow?: boolean;
+}) {
+ return (
+
+ );
+}
+
+/* -------------------------------------------------------------------- belt */
+
+function BeltPill({ on, accent }: { on: boolean; accent: string }) {
+ const col = on ? accent : DANGER;
+ return (
+
+ );
+}
+
+/* --------------------------------------------------------------- tachometer */
+
+function Tachometer({ rpm, gear, accent }: { rpm: number; gear: number; accent: string }) {
+ const lit = Math.round(clamp(rpm / RPM_MAX, 0, 1) * 10);
+ const gearLabel = gear > 0 ? String(gear) : "N";
+ return (
+
+
+
+ {SEG_HEIGHTS.map((h, i) => {
+ const bg =
+ i < lit ? (i >= 8 ? DANGER : i >= 7 ? WARNING : accent) : "rgba(255,255,255,0.10)";
+ return
;
+ })}
+
+
+
{Math.round(rpm)}
+
RPM
+
+
+ );
+}
+
+/* ----------------------------------------------------------------- compass */
+
+interface Tick {
+ left: number;
+ h: number;
+ col: string;
+ label: string;
+}
+
+const COMPASS_LABELS: Record = {
+ 0: "N", 45: "NE", 90: "E", 135: "SE", 180: "S", 225: "SW", 270: "W", 315: "NW",
+};
+
+const COMPASS_TICKS: Tick[] = (() => {
+ const ticks: Tick[] = [];
+ for (let dd = 0; dd <= 720; dd += 15) {
+ const major = dd % 45 === 0;
+ ticks.push({
+ left: dd * 3,
+ h: major ? 12 : 6,
+ col: major ? "rgba(255,255,255,0.72)" : "rgba(255,255,255,0.20)",
+ label: major ? COMPASS_LABELS[dd % 360] || "" : "",
+ });
+ }
+ return ticks;
+})();
+
+function CompassStrip({ bearing, accent }: { bearing: number; accent: string }) {
+ const compassX = 118 - bearing * 3;
+ // SVG: o raiz clipa o conteudo (viewport) e e a unica caixa medida pelo
+ // DraggableHudElement (filhos SVG sao pulados), entao a caixa de limites bate
+ // nos 236x34 visiveis em vez de esticar ate os ticks distantes. Sem degrade.
+ return (
+
+
+ {COMPASS_TICKS.map((tk, i) => (
+
+
+ {tk.label && (
+
+ {tk.label}
+
+ )}
+
+ ))}
+
+
+
+
+ );
+}
diff --git a/web/src/components/organisms/VehicleHud.tsx b/web/src/components/organisms/VehicleHud.tsx
index 0fdd4c3..49ef687 100644
--- a/web/src/components/organisms/VehicleHud.tsx
+++ b/web/src/components/organisms/VehicleHud.tsx
@@ -3,13 +3,25 @@ import { useVehicleHudStore } from "../../stores/vehicleHudStore";
import { useMarineHudStore } from "../../stores/marineHudStore";
import { useAircraftHudStore } from "../../stores/aircraftHudStore";
import { usePositioningStore } from "../../stores/positioningStore";
+import { useVehicleThemeStore } from "../../stores/vehicleThemeStore";
import debugMode from "../../stores/debugStore";
import AnalogGauge from "../molecules/hud-shapes/AnalogGauge";
import DraggableHudElement from "../atoms/DraggableHudElement";
import ScaledHudContent from "../atoms/ScaledHudContent";
import { useSmoothValue } from "../../hooks/useSmoothValue";
+import VehicleDigitalHud from "./VehicleDigitalHud";
export default function VehicleHud() {
+ const theme = useVehicleThemeStore((s) => s.theme);
+
+ // Tema 'digital' = cluster do design handoff. Tema 'classic' (default) =
+ // velocimetro analogico abaixo. Trocar de tema nao remove nenhum dos dois.
+ if (theme === "digital") return ;
+
+ return ;
+}
+
+function VehicleClassicHud() {
const show = useVehicleHudStore((s) => s.show);
const rawSpeed = useVehicleHudStore((s) => s.speed);
const speed = useSmoothValue(rawSpeed, 70);
diff --git a/web/src/debugMocks.ts b/web/src/debugMocks.ts
index 1978305..16c2e61 100644
--- a/web/src/debugMocks.ts
+++ b/web/src/debugMocks.ts
@@ -8,6 +8,9 @@ import { useDynamicPanelsStore } from "./stores/dynamicPanelsStore";
import { useAircraftHudStore } from "./stores/aircraftHudStore";
import { useMarineHudStore } from "./stores/marineHudStore";
import { useServerLogoStore } from "./stores/serverLogoStore";
+import { useVehicleThemeStore } from "./stores/vehicleThemeStore";
+import { usePlayerSkinStore } from "./stores/playerSkinStore";
+import { useSupernaturalVitalsStore } from "./stores/supernaturalVitalsStore";
if (debugMode) {
usePlayerStatusHudStore.setState({ designMode: true });
@@ -16,6 +19,10 @@ if (debugMode) {
show: true,
speed: 87,
fuel: 65,
+ rpm: 4200,
+ gear: 3,
+ engine: 88,
+ heading: 135,
altitude: 120,
fuelColor: "#FFFFFF",
showAltitude: true,
@@ -24,6 +31,15 @@ if (debugMode) {
useMPH: false,
});
+ // Preview do tema novo: abre no 'digital' pra visualizar o cluster do
+ // handoff. Troque no menu (secao Veiculo) pra comparar com o 'classic'.
+ useVehicleThemeStore.setState({ theme: "digital", variant: "ring" });
+
+ // Preview do skin sobrenatural: ativa e popula os vitais custom. Troque
+ // skin/paleta/estilo/layout no menu (secao Skin do HUD).
+ usePlayerSkinStore.setState({ skin: "sobrenatural", palette: "pergaminho", vitalStyle: "orbes", layout: "classico" });
+ useSupernaturalVitalsStore.setState({ folego: 64, sanidade: 34, mana: 55 });
+
useCompassHudStore.setState({
show: true,
heading: 180,
diff --git a/web/src/index.css b/web/src/index.css
index fe25157..f62f8bd 100644
--- a/web/src/index.css
+++ b/web/src/index.css
@@ -1,4 +1,8 @@
@import '@mriqbox/ui-kit/dist/style.css';
+/* Chakra Petch — fonte do tema digital da HUD de veiculo (design handoff). */
+@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700&display=swap');
+/* Cinzel / Cinzel Decorative / JetBrains Mono — skin 'sobrenatural' (handoff). */
+@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Cinzel+Decorative:wght@700;900&family=JetBrains+Mono:wght@400;600&display=swap');
@tailwind base;
@tailwind components;
diff --git a/web/src/locale/en.json b/web/src/locale/en.json
index 1477b95..7378db3 100644
--- a/web/src/locale/en.json
+++ b/web/src/locale/en.json
@@ -94,6 +94,22 @@
"metricsTypeMiles": "MPH",
"metricsTypeKmh": "KM/H",
"metricsTypeDescription": "Choose your preferred unit of measurement",
+ "vehicleThemeLabel": "Vehicle HUD Theme",
+ "vehicleThemeClassic": "Classic",
+ "vehicleThemeDigital": "Digital",
+ "vehicleThemeDescription": "Switch between the classic analog speedometer and the digital cluster",
+ "vehicleThemeAdminOnly": "Only admins can change the vehicle HUD theme",
+ "vehicleSpeedoVariantLabel": "Speedometer Format",
+ "vehicleSpeedoVariantDescription": "Format of the digital speedometer: ring, arc or linear",
+ "playerSkinLabel": "Player HUD Skin",
+ "playerSkinClassic": "Classic",
+ "playerSkinSupernatural": "Supernatural",
+ "playerSkinDescription": "Switch between the classic player HUD and the supernatural skin (vitals, money, server)",
+ "playerSkinAdminOnly": "Only admins can change the player HUD skin",
+ "skinPaletteLabel": "Palette",
+ "skinStyleLabel": "Vitals Style",
+ "skinLayoutLabel": "Layout",
+ "skinFramelessLabel": "Remove backgrounds (orbs + money)",
"generalTab": "General",
"customizationTab": "Customization",
"positioningMenu": "Positioning",
diff --git a/web/src/locale/pt-br.json b/web/src/locale/pt-br.json
index de728e8..8a99c2a 100644
--- a/web/src/locale/pt-br.json
+++ b/web/src/locale/pt-br.json
@@ -96,6 +96,22 @@
"metricsTypeMiles": "MPH",
"metricsTypeKmh": "KM/H",
"metricsTypeDescription": "Escolha sua unidade de medida preferida",
+ "vehicleThemeLabel": "Tema da HUD de Veículo",
+ "vehicleThemeClassic": "Clássico",
+ "vehicleThemeDigital": "Digital",
+ "vehicleThemeDescription": "Alterne entre o velocímetro analógico clássico e o painel digital",
+ "vehicleThemeAdminOnly": "Apenas admins podem trocar o tema da HUD de veículo",
+ "vehicleSpeedoVariantLabel": "Formato do Velocímetro",
+ "vehicleSpeedoVariantDescription": "Formato do velocímetro digital: circular, arco ou linear",
+ "playerSkinLabel": "Skin do HUD do Player",
+ "playerSkinClassic": "Clássico",
+ "playerSkinSupernatural": "Sobrenatural",
+ "playerSkinDescription": "Alterne entre a HUD clássica do player e o skin sobrenatural (vitais, dinheiro, servidor)",
+ "playerSkinAdminOnly": "Apenas admins podem trocar o skin do HUD do player",
+ "skinPaletteLabel": "Paleta",
+ "skinStyleLabel": "Estilo dos Vitais",
+ "skinLayoutLabel": "Disposição",
+ "skinFramelessLabel": "Remover fundos (orbes + dinheiro)",
"positioningMenu": "Posicionamento",
"openPositioningMode": "Abrir Modo de Posicionamento",
"openPositioningModeDescription": "Arraste, redimensione e oculte elementos do HUD livremente",
diff --git a/web/src/stores/playerSkinStore.ts b/web/src/stores/playerSkinStore.ts
new file mode 100644
index 0000000..5c4e5b3
--- /dev/null
+++ b/web/src/stores/playerSkinStore.ts
@@ -0,0 +1,113 @@
+import { create } from "zustand";
+import { playerSkinLocalStorageName } from "../types/types";
+
+/**
+ * Skin da HUD do player. Decide o visual geral da HUD de status do jogador:
+ * - 'classic' = HUD atual (MetaLayout + MoneyHud + ServerLogo + bussola)
+ * - 'sobrenatural' = reskin ocultista/Diablo II (orbes de vitais, paineis de pedra)
+ *
+ * NAO afeta a HUD de veiculo (essa tem o proprio tema: [[vehicleThemeStore]]).
+ *
+ * O skin sobrenatural tem 3 eixos de customizacao (do handoff):
+ * - palette: 6 paletas de cor
+ * - vitalStyle: orbes | aneis | barras | cristal
+ * - layout: unido | separado | classico
+ *
+ * Camadas (igual ao tema de veiculo):
+ * 1. Config.* (shared/config.lua) -> default global via `hudconfig` (setConfig)
+ * 2. Override local do admin (menu) -> localStorage, vence o default.
+ */
+export type PlayerSkin = "classic" | "sobrenatural";
+export type SkinPalette = "pergaminho" | "sangue" | "eterno" | "esmeralda" | "geada" | "cinzas";
+export type VitalStyle = "orbes" | "aneis" | "barras" | "cristal";
+export type SkinLayout = "unido" | "separado" | "classico";
+
+export const SKIN_PALETTES: readonly SkinPalette[] = ["pergaminho", "sangue", "eterno", "esmeralda", "geada", "cinzas"];
+export const VITAL_STYLES: readonly VitalStyle[] = ["orbes", "aneis", "barras", "cristal"];
+export const SKIN_LAYOUTS: readonly SkinLayout[] = ["unido", "separado", "classico"];
+
+interface PlayerSkinState {
+ skin: PlayerSkin;
+ palette: SkinPalette;
+ vitalStyle: VitalStyle;
+ layout: SkinLayout;
+ /** Remove os paineis de pedra das orbes + dinheiro (servidor mantem). */
+ frameless: boolean;
+ overridden: boolean;
+ setConfig: (cfg: { skin?: string; palette?: string; style?: string; layout?: string; frameless?: boolean }) => void;
+ setSkin: (skin: PlayerSkin) => void;
+ setPalette: (palette: SkinPalette) => void;
+ setVitalStyle: (style: VitalStyle) => void;
+ setLayout: (layout: SkinLayout) => void;
+ setFrameless: (frameless: boolean) => void;
+}
+
+const isSkin = (v: unknown): v is PlayerSkin => v === "classic" || v === "sobrenatural";
+const isPalette = (v: unknown): v is SkinPalette => (SKIN_PALETTES as readonly string[]).includes(v as string);
+const isStyle = (v: unknown): v is VitalStyle => (VITAL_STYLES as readonly string[]).includes(v as string);
+const isLayout = (v: unknown): v is SkinLayout => (SKIN_LAYOUTS as readonly string[]).includes(v as string);
+
+function loadStored() {
+ try {
+ const raw = localStorage.getItem(playerSkinLocalStorageName);
+ if (!raw) return {};
+ const p = JSON.parse(raw);
+ return {
+ skin: isSkin(p.skin) ? p.skin : undefined,
+ palette: isPalette(p.palette) ? p.palette : undefined,
+ vitalStyle: isStyle(p.vitalStyle) ? p.vitalStyle : undefined,
+ layout: isLayout(p.layout) ? p.layout : undefined,
+ frameless: p.frameless === true,
+ overridden: p.overridden === true,
+ };
+ } catch {
+ return {};
+ }
+}
+
+function persist(s: Pick) {
+ localStorage.setItem(
+ playerSkinLocalStorageName,
+ JSON.stringify({ skin: s.skin, palette: s.palette, vitalStyle: s.vitalStyle, layout: s.layout, frameless: s.frameless, overridden: s.overridden })
+ );
+}
+
+function notifyClient(get: () => PlayerSkinState) {
+ import("../utils/eventHandler").then(({ fetchNui }) =>
+ fetchNui("setPlayerSkin", {
+ skin: get().skin,
+ palette: get().palette,
+ style: get().vitalStyle,
+ layout: get().layout,
+ frameless: get().frameless,
+ })
+ );
+}
+
+const stored = loadStored();
+
+export const usePlayerSkinStore = create((set, get) => ({
+ skin: stored.skin ?? "classic",
+ palette: stored.palette ?? "pergaminho",
+ vitalStyle: stored.vitalStyle ?? "orbes",
+ layout: stored.layout ?? "classico",
+ frameless: stored.frameless ?? false,
+ overridden: stored.overridden ?? false,
+
+ setConfig: (cfg) => {
+ if (get().overridden) return;
+ const next: Partial = {};
+ if (isSkin(cfg.skin)) next.skin = cfg.skin;
+ if (isPalette(cfg.palette)) next.palette = cfg.palette;
+ if (isStyle(cfg.style)) next.vitalStyle = cfg.style;
+ if (isLayout(cfg.layout)) next.layout = cfg.layout;
+ if (typeof cfg.frameless === "boolean") next.frameless = cfg.frameless;
+ if (Object.keys(next).length) set(next);
+ },
+
+ setSkin: (skin) => { set({ skin, overridden: true }); persist(get()); notifyClient(get); },
+ setPalette: (palette) => { set({ palette, overridden: true }); persist(get()); notifyClient(get); },
+ setVitalStyle: (vitalStyle) => { set({ vitalStyle, overridden: true }); persist(get()); notifyClient(get); },
+ setLayout: (layout) => { set({ layout, overridden: true }); persist(get()); notifyClient(get); },
+ setFrameless: (frameless) => { set({ frameless, overridden: true }); persist(get()); notifyClient(get); },
+}));
diff --git a/web/src/stores/supernaturalVitalsStore.ts b/web/src/stores/supernaturalVitalsStore.ts
new file mode 100644
index 0000000..4ae0ae7
--- /dev/null
+++ b/web/src/stores/supernaturalVitalsStore.ts
@@ -0,0 +1,34 @@
+import { create } from "zustand";
+import { capAmountToHundred } from "../types/types";
+
+/**
+ * Vitais extras do skin 'sobrenatural' que NAO existem no HUD base
+ * (folego, sanidade, mana). Sao "stats custom": valores 0-100 alimentados
+ * por outros resources via NUI:
+ *
+ * SendNUIMessage({ action = 'vitals', topic = 'supernatural',
+ * folego = 80, sanidade = 60, mana = 45 })
+ *
+ * Campos ausentes na mensagem mantem o valor atual. Default 100 ate um
+ * script setar. Mapeados como vida/fome/sede no skin vem do HUD base.
+ * Ver [[hud-theme-skin-architecture]].
+ */
+interface SupernaturalVitalsState {
+ folego: number;
+ sanidade: number;
+ mana: number;
+ receiveMessage: (data: { folego?: number; sanidade?: number; mana?: number }) => void;
+}
+
+export const useSupernaturalVitalsStore = create((set) => ({
+ folego: 100,
+ sanidade: 100,
+ mana: 100,
+
+ receiveMessage: (data) =>
+ set((s) => ({
+ folego: data.folego != null ? capAmountToHundred(data.folego) : s.folego,
+ sanidade: data.sanidade != null ? capAmountToHundred(data.sanidade) : s.sanidade,
+ mana: data.mana != null ? capAmountToHundred(data.mana) : s.mana,
+ })),
+}));
diff --git a/web/src/stores/vehicleHudStore.ts b/web/src/stores/vehicleHudStore.ts
index 1bdb934..5ebdb72 100644
--- a/web/src/stores/vehicleHudStore.ts
+++ b/web/src/stores/vehicleHudStore.ts
@@ -6,6 +6,11 @@ type VehicleStatusType = {
altitude: number;
fuel: number;
speed: number;
+ // Telemetria extra usada pelo tema 'digital' (vem do loop rapido de speed).
+ rpm: number;
+ gear: number;
+ engine: number;
+ heading: number;
odometer: number;
show: boolean;
showAltitude: boolean;
@@ -19,7 +24,13 @@ type VehicleStatusType = {
interface VehicleHudState extends VehicleStatusType {
receiveShowMessage: (data: { show: boolean; seatbelt: boolean }) => void;
receiveOdometerMessage: (data: { value: number }) => void;
- receiveSpeedMessage: (data: { speed: number }) => void;
+ receiveSpeedMessage: (data: {
+ speed: number;
+ rpm?: number;
+ gear?: number;
+ engine?: number;
+ heading?: number;
+ }) => void;
receiveUpdateMessage: (data: {
show: boolean;
isPaused: boolean;
@@ -38,6 +49,10 @@ export const useVehicleHudStore = create((set) => ({
altitude: 0,
fuel: 0,
speed: 0,
+ rpm: 0,
+ gear: 0,
+ engine: 100,
+ heading: 0,
odometer: 0,
show: false,
showAltitude: false,
@@ -54,7 +69,13 @@ export const useVehicleHudStore = create((set) => ({
set({ odometer: Math.max(0, data.value) }),
receiveSpeedMessage: (data) =>
- set({ speed: data.speed }),
+ set((state) => ({
+ speed: data.speed,
+ rpm: data.rpm ?? state.rpm,
+ gear: data.gear ?? state.gear,
+ engine: data.engine ?? state.engine,
+ heading: data.heading ?? state.heading,
+ })),
receiveUpdateMessage: (data) =>
set((state) => {
diff --git a/web/src/stores/vehicleThemeStore.ts b/web/src/stores/vehicleThemeStore.ts
new file mode 100644
index 0000000..d0aa8b1
--- /dev/null
+++ b/web/src/stores/vehicleThemeStore.ts
@@ -0,0 +1,94 @@
+import { create } from "zustand";
+import { vehicleThemeLocalStorageName } from "../types/types";
+
+/**
+ * Tema da HUD de veiculo. Decide qual visual o cluster de veiculo usa:
+ * - 'classic' = velocimetro analogico atual (gauges do ui-kit)
+ * - 'digital' = cluster digital/tech ciano do design handoff
+ *
+ * Fonte de verdade em camadas:
+ * 1. Config.VehicleHudTheme/Variant (shared/config.lua) -> default global,
+ * entregue via `hudconfig` no init (setConfig).
+ * 2. Override local do player (admin escolhe no menu) -> persistido em
+ * localStorage; vence o default do config quando presente.
+ *
+ * O override do menu eh gated por admin no HudPanel ("admin escolher").
+ */
+export type VehicleTheme = "classic" | "digital";
+export type SpeedoVariant = "ring" | "arc" | "linear";
+
+export const SPEEDO_VARIANTS: readonly SpeedoVariant[] = ["ring", "arc", "linear"];
+
+interface VehicleThemeState {
+ theme: VehicleTheme;
+ variant: SpeedoVariant;
+ /** True quando o player sobrescreveu o default via menu (persiste localmente). */
+ overridden: boolean;
+ /** Default global vindo do Config.VehicleHud* (hudconfig). */
+ setConfig: (cfg: { theme?: string; variant?: string }) => void;
+ /** Troca feita pelo admin no menu -> vira override local. */
+ setTheme: (theme: VehicleTheme) => void;
+ setVariant: (variant: SpeedoVariant) => void;
+}
+
+function isTheme(v: unknown): v is VehicleTheme {
+ return v === "classic" || v === "digital";
+}
+function isVariant(v: unknown): v is SpeedoVariant {
+ return v === "ring" || v === "arc" || v === "linear";
+}
+
+function loadStored(): { theme?: VehicleTheme; variant?: SpeedoVariant; overridden?: boolean } {
+ try {
+ const raw = localStorage.getItem(vehicleThemeLocalStorageName);
+ if (!raw) return {};
+ const parsed = JSON.parse(raw);
+ return {
+ theme: isTheme(parsed.theme) ? parsed.theme : undefined,
+ variant: isVariant(parsed.variant) ? parsed.variant : undefined,
+ overridden: parsed.overridden === true,
+ };
+ } catch {
+ return {};
+ }
+}
+
+function persist(state: Pick) {
+ localStorage.setItem(
+ vehicleThemeLocalStorageName,
+ JSON.stringify({ theme: state.theme, variant: state.variant, overridden: state.overridden })
+ );
+}
+
+const stored = loadStored();
+
+export const useVehicleThemeStore = create((set, get) => ({
+ theme: stored.theme ?? "classic",
+ variant: stored.variant ?? "ring",
+ overridden: stored.overridden ?? false,
+
+ setConfig: (cfg) => {
+ // Default do config so se aplica quando o player nao tem override local.
+ if (get().overridden) return;
+ const next: Partial = {};
+ if (isTheme(cfg.theme)) next.theme = cfg.theme;
+ if (isVariant(cfg.variant)) next.variant = cfg.variant;
+ if (Object.keys(next).length) set(next);
+ },
+
+ setTheme: (theme) => {
+ set({ theme, overridden: true });
+ persist(get());
+ import("../utils/eventHandler").then(({ fetchNui }) =>
+ fetchNui("setVehicleTheme", { theme: get().theme, variant: get().variant })
+ );
+ },
+
+ setVariant: (variant) => {
+ set({ variant, overridden: true });
+ persist(get());
+ import("../utils/eventHandler").then(({ fetchNui }) =>
+ fetchNui("setVehicleTheme", { theme: get().theme, variant: get().variant })
+ );
+ },
+}));
diff --git a/web/src/types/types.ts b/web/src/types/types.ts
index 985a319..64ef2c6 100644
--- a/web/src/types/types.ts
+++ b/web/src/types/types.ts
@@ -479,6 +479,8 @@ export const playerStoreLocalStorageName: string = "PSHudPlayerStatus";
export const layoutStoreLocalStorageName: string = "PSHudLayout";
export const colorStoreLocalStorageName: string = "PSHudColor";
export const profileLocalStorageName: string = "PSHudProfile";
+export const vehicleThemeLocalStorageName: string = "PSHudVehicleTheme";
+export const playerSkinLocalStorageName: string = "PSHudPlayerSkin";
export function capAmountToHundred(num: number) {
return Math.min(num, 100);
diff --git a/web/src/utils/eventHandler.ts b/web/src/utils/eventHandler.ts
index 5fd8011..d568db7 100644
--- a/web/src/utils/eventHandler.ts
+++ b/web/src/utils/eventHandler.ts
@@ -14,6 +14,9 @@ import { useMoneyHudStore } from "../stores/moneyHudStore";
import { useThemeStore } from "../stores/themeStore";
import { useAircraftHudStore } from "../stores/aircraftHudStore";
import { useMarineHudStore } from "../stores/marineHudStore";
+import { useVehicleThemeStore } from "../stores/vehicleThemeStore";
+import { usePlayerSkinStore } from "../stores/playerSkinStore";
+import { useSupernaturalVitalsStore } from "../stores/supernaturalVitalsStore";
import { initI18n } from "./i18n";
import {
colorStoreLocalStorageName,
@@ -209,6 +212,14 @@ function mainEvent(event: MessageEvent) {
}
break;
+ case "vitals":
+ // Stats custom do skin sobrenatural (folego/sanidade/mana), 0-100,
+ // alimentados por outros resources.
+ if (data.topic === "supernatural") {
+ useSupernaturalVitalsStore.getState().receiveMessage(data as any);
+ }
+ break;
+
case "setLang":
initI18n(data.lang);
break;
@@ -226,6 +237,12 @@ function mainEvent(event: MessageEvent) {
elements: data.positioning.elements,
});
}
+ if (data.vehicleTheme) {
+ useVehicleThemeStore.getState().setConfig(data.vehicleTheme);
+ }
+ if (data.playerSkin) {
+ usePlayerSkinStore.getState().setConfig(data.playerSkin);
+ }
break;
case "positioning":
diff --git a/web/src/utils/i18n.ts b/web/src/utils/i18n.ts
index 5913e37..f131153 100644
--- a/web/src/utils/i18n.ts
+++ b/web/src/utils/i18n.ts
@@ -115,6 +115,22 @@ const defaultTranslations: Translation = {
metricsTypeMiles: "MPH",
metricsTypeKmh: "KM/H",
metricsTypeDescription: "Choose your preferred unit of measurement",
+ vehicleThemeLabel: "Vehicle HUD Theme",
+ vehicleThemeClassic: "Classic",
+ vehicleThemeDigital: "Digital",
+ vehicleThemeDescription: "Switch between the classic analog speedometer and the digital cluster",
+ vehicleThemeAdminOnly: "Only admins can change the vehicle HUD theme",
+ vehicleSpeedoVariantLabel: "Speedometer Format",
+ vehicleSpeedoVariantDescription: "Format of the digital speedometer: ring, arc or linear",
+ playerSkinLabel: "Player HUD Skin",
+ playerSkinClassic: "Classic",
+ playerSkinSupernatural: "Supernatural",
+ playerSkinDescription: "Switch between the classic player HUD and the supernatural skin (vitals, money, server)",
+ playerSkinAdminOnly: "Only admins can change the player HUD skin",
+ skinPaletteLabel: "Palette",
+ skinStyleLabel: "Vitals Style",
+ skinLayoutLabel: "Layout",
+ skinFramelessLabel: "Remove backgrounds (orbs + money)",
positioningMenu: "Positioning",
openPositioningMode: "Open Positioning Mode",
openPositioningModeDescription: "Drag, resize and hide HUD elements freely",